diff --git a/docs/extension-websocket/archive/archive_files.json b/docs/extension-websocket/archive/archive_files.json index d92a4a1..de78ad6 100644 --- a/docs/extension-websocket/archive/archive_files.json +++ b/docs/extension-websocket/archive/archive_files.json @@ -1 +1 @@ -{"content":[{"name":"game.projectc","size":3219,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":1488,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":19674,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":2532,"pieces":[{"name":"game.dmanifest0","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game.public.der0","offset":0}]}]} \ No newline at end of file +{"content":[{"name":"game.projectc","size":3080,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":1488,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":19498,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":2532,"pieces":[{"name":"game.dmanifest0","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game.public.der0","offset":0}]}]} \ No newline at end of file diff --git a/docs/extension-websocket/archive/game.arcd0 b/docs/extension-websocket/archive/game.arcd0 index 6f56086..b2e607c 100644 Binary files a/docs/extension-websocket/archive/game.arcd0 and b/docs/extension-websocket/archive/game.arcd0 differ diff --git a/docs/extension-websocket/archive/game.arci0 b/docs/extension-websocket/archive/game.arci0 index 77b15bc..d3539de 100644 Binary files a/docs/extension-websocket/archive/game.arci0 and b/docs/extension-websocket/archive/game.arci0 differ diff --git a/docs/extension-websocket/archive/game.dmanifest0 b/docs/extension-websocket/archive/game.dmanifest0 index ed7f930..7d991ac 100644 Binary files a/docs/extension-websocket/archive/game.dmanifest0 and b/docs/extension-websocket/archive/game.dmanifest0 differ diff --git a/docs/extension-websocket/archive/game.projectc0 b/docs/extension-websocket/archive/game.projectc0 index 8db874b..79305c6 100644 --- a/docs/extension-websocket/archive/game.projectc0 +++ b/docs/extension-websocket/archive/game.projectc0 @@ -3,8 +3,6 @@ title = extension-websocket version = 1.0 write_log = 0 compress_archive = 1 -publisher = unnamed -developer = unnamed _dependencies = https://github.com/GameAnalytics/defold-openssl/archive/1.0.0.zip [display] @@ -54,7 +52,6 @@ max_characters = 8192 max_debug_vertices = 10000 texture_profiles = /builtins/graphics/default.texture_profiles verify_graphics_calls = 1 -memory_size = 512 [shader] output_spirv = 0 @@ -88,9 +85,6 @@ max_count = 128 [model] max_count = 128 -[mesh] -max_count = 128 - [gui] max_count = 64 max_particlefx_count = 64 @@ -156,8 +150,6 @@ auto_finish_transactions = 1 [network] http_timeout = 0 -http_thread_count = 4 -http_cache_enabled = 1 [library] include_dirs = websocket @@ -174,7 +166,6 @@ track_cpu = 0 [liveupdate] settings = /liveupdate.settings -enabled = 1 [tilemap] max_count = 16 diff --git a/docs/extension-websocket/archive/game.public.der0 b/docs/extension-websocket/archive/game.public.der0 index c6c5cce..708cb8a 100644 Binary files a/docs/extension-websocket/archive/game.public.der0 and b/docs/extension-websocket/archive/game.public.der0 differ diff --git a/docs/extension-websocket/extensionwebsocket.wasm b/docs/extension-websocket/extensionwebsocket.wasm index c1c7f4a..7f55974 100644 Binary files a/docs/extension-websocket/extensionwebsocket.wasm and b/docs/extension-websocket/extensionwebsocket.wasm differ diff --git a/docs/extension-websocket/extensionwebsocket_asmjs.js b/docs/extension-websocket/extensionwebsocket_asmjs.js index d41fd5b..3e129ab 100644 --- a/docs/extension-websocket/extensionwebsocket_asmjs.js +++ b/docs/extension-websocket/extensionwebsocket_asmjs.js @@ -434,7 +434,7 @@ function ssl_parse_server_hello($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$1=mb -function dmRender__RenderScript_RenderTarget_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$1=global$0-288|0;global$0=$1;$10=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$2=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;dmScript__GetInstance_28lua_State__29($0);$15=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[148682],105260);lua_settop($0,-2);label$1:{label$2:{if(($2|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){$7=1;$2=lua_type($0,1);$11=FUNCTION_TABLE[HEAP32[147630]](HEAP32[HEAP32[$15+304>>2]+4016>>2])|0;$12=($2|0)==5?1:2;luaL_checktype($0,$12,5);HEAP32[$1+264>>2]=0;HEAP8[$1+268|0]=1;HEAP32[$1+280>>2]=0;HEAP8[$1+284|0]=1;HEAP32[$1+248>>2]=0;HEAP32[$1+240>>2]=0;HEAP32[$1+244>>2]=0;HEAP32[$1+256>>2]=0;HEAP32[$1+260>>2]=0;HEAP8[$1+252|0]=1;HEAP32[$1+272>>2]=0;HEAP32[$1+276>>2]=0;HEAP8[$1+123|0]=0;HEAP8[$1+124|0]=0;HEAP8[$1+125|0]=0;HEAP8[$1+126|0]=0;HEAP8[$1+127|0]=0;HEAP8[$1+128|0]=0;HEAP8[$1+129|0]=0;HEAP8[$1+130|0]=0;HEAP32[$1+176>>2]=0;HEAP32[$1+180>>2]=0;HEAP32[$1+156>>2]=1;HEAP32[$1+148>>2]=2;HEAP32[$1+152>>2]=1;HEAP32[$1+160>>2]=0;HEAP32[$1+164>>2]=0;HEAP8[$1+167|0]=0;HEAP8[$1+168|0]=0;HEAP8[$1+169|0]=0;HEAP8[$1+170|0]=0;HEAP8[$1+171|0]=0;HEAP8[$1+172|0]=0;HEAP8[$1+173|0]=0;HEAP8[$1+174|0]=0;HEAP32[$1+200>>2]=1;HEAP32[$1+192>>2]=2;HEAP32[$1+196>>2]=1;HEAP32[$1+220>>2]=0;HEAP32[$1+224>>2]=0;HEAP32[$1+204>>2]=0;HEAP32[$1+208>>2]=0;HEAP8[$1+211|0]=0;HEAP8[$1+212|0]=0;HEAP8[$1+213|0]=0;HEAP8[$1+214|0]=0;HEAP8[$1+215|0]=0;HEAP8[$1+216|0]=0;HEAP8[$1+217|0]=0;HEAP8[$1+218|0]=0;HEAP32[$1+132>>2]=0;HEAP32[$1+136>>2]=0;HEAP32[$1+112>>2]=1;HEAP32[$1+104>>2]=2;HEAP32[$1+108>>2]=1;HEAP32[$1+96>>2]=3;HEAP32[$1+100>>2]=5;HEAP32[$1+116>>2]=0;HEAP32[$1+120>>2]=0;HEAP32[$1+140>>2]=3;HEAP32[$1+144>>2]=5;HEAP32[$1+184>>2]=3;HEAP32[$1+188>>2]=5;$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;label$4:{label$5:{label$6:{if(lua_next($0,$12)){while(1){$3=luaL_checknumber($0,-2);label$9:{if($3<4294967296&$3>=0){$6=~~$3>>>0;break label$9}$6=0}$9=-1;$2=$6+ -1|0;if($2>>>0<=3){$9=HEAP32[($2<<2)+106728>>2]}luaL_checktype($0,-1,5);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;$2=0;if(!lua_next($0,-2)){break label$2}$16=$6|$16;$4=0;$8=0;while(1){$5=luaL_checklstring($0,-2,0);$13=strncmp($5,101979,6);$14=strncmp($5,101986,5);$5=strncmp($5,101992,6);lua_settop($0,-2);$8=$13?$8:1;$4=$14?$4:1;$2=$5?$2:1;if(lua_next($0,-2)){continue}break}if(!($8&255)){$2=0;break label$2}if(!($4&255)){$2=1;break label$2}if(!($2&255)){$2=2;break label$2}$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;if(lua_next($0,-2)){$4=($1+240|0)+($9<<4)|0;$13=$4|4;$2=($1+96|0)+Math_imul($9,44)|0;$8=$2;$14=$4|6;while(1){$4=luaL_checklstring($0,-2,0);if(!lua_type($0,-1)){HEAP32[$1+36>>2]=$4;HEAP32[$1+32>>2]=101834;$7=luaL_error($0,102038,$1+32|0);break label$1}label$19:{if(!strncmp($4,101979,6)){$5=$2;$3=luaL_checknumber($0,-1);label$21:{if(Math_abs($3)<2147483648){$4=~~$3;break label$21}$4=-2147483648}HEAP32[$5>>2]=$4;if(!(($4|0)==10|($6|0)!=2)){$7=luaL_error($0,102082,0);break label$1}if(($4|0)==11|($6|0)!=4){break label$19}$7=luaL_error($0,102139,0);break label$1}if(!strncmp($4,101986,5)){$4=$8;$3=luaL_checknumber($0,-1);label$25:{if($3<4294967296&$3>=0){$5=~~$3>>>0;break label$25}$5=0}HEAP16[$4+30>>1]=$5;HEAP16[$13>>1]=$5;break label$19}if(!strncmp($4,101992,6)){$4=$2;$3=luaL_checknumber($0,-1);label$28:{if($3<4294967296&$3>=0){$5=~~$3>>>0;break label$28}$5=0}HEAP16[$4+32>>1]=$5;HEAP16[$14>>1]=$5;break label$19}label$30:{if(!strncmp($4,102200,10)){$3=luaL_checknumber($0,-1);if(!(Math_abs($3)<2147483648)){break label$30}HEAP32[$2+4>>2]=~~$3;break label$19}if(!strncmp($4,102211,10)){$3=luaL_checknumber($0,-1);if(Math_abs($3)<2147483648){HEAP32[$2+8>>2]=~~$3;break label$19}HEAP32[$2+8>>2]=-2147483648;break label$19}if(!strncmp($4,102222,6)){$3=luaL_checknumber($0,-1);if(Math_abs($3)<2147483648){HEAP32[$2+12>>2]=~~$3;break label$19}HEAP32[$2+12>>2]=-2147483648;break label$19}if(!strncmp($4,102229,6)){$3=luaL_checknumber($0,-1);if(Math_abs($3)<2147483648){HEAP32[$2+16>>2]=~~$3;break label$19}HEAP32[$2+16>>2]=-2147483648;break label$19}lua_settop($0,-3);if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($10|0)){break label$6}HEAP32[$1+80>>2]=102229;HEAP32[$1+76>>2]=102222;HEAP32[$1+72>>2]=102211;HEAP32[$1+68>>2]=102200;HEAP32[$1- -64>>2]=101992;HEAP32[$1+52>>2]=$4;HEAP32[$1+60>>2]=101986;HEAP32[$1+56>>2]=101979;HEAP32[$1+48>>2]=101834;$7=luaL_error($0,102262,$1+48|0);break label$1}HEAP32[$2+4>>2]=-2147483648}lua_settop($0,-2);if(lua_next($0,-2)){continue}break}}lua_settop($0,-2);$2=($1+240|0)+($9<<4)|0;if(!($11>>>0>=HEAPU16[$2+6>>1]?$11>>>0>=HEAPU16[$2+4>>1]:0)){lua_settop($0,-2);if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($10|0)){break label$5}$8=HEAPU16[($2|4)>>1];$2=$1;$6=$6+ -1|0;$5=105430;label$40:{if($6>>>0>3){break label$40}$5=HEAP32[($6<<2)+546568>>2]}HEAP32[$2+16>>2]=$5;HEAP32[$1+20>>2]=$8;HEAP32[$1+28>>2]=$11;HEAP32[$1+24>>2]=HEAPU16[(($1+240|0)+($9<<4)|0)+6>>1];$7=luaL_error($0,102355,$1+16|0);break label$1}if(lua_next($0,$12)){continue}break}}$2=FUNCTION_TABLE[HEAP32[147611]](HEAP32[HEAP32[$15+304>>2]+4016>>2],$16,$1+240|0,$1+96|0)|0;$6=HEAP32[$0+8>>2];HEAP32[$6+8>>2]=2;HEAP32[$6>>2]=$2;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;if(($10+1|0)!=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$4}break label$1}__assert_fail(101841,101738,722,102236);abort()}__assert_fail(101841,101738,740,102236);abort()}__assert_fail(101713,101738,750,102236);abort()}__assert_fail(101841,101738,227,105233);abort()}HEAP32[$1>>2]=HEAP32[($2<<2)+546112>>2];$7=luaL_error($0,101999,$1)}global$0=$1+288|0;return $7|0}function dmRender__Draw_28dmRender__RenderContext__2c_20dmRender__Predicate__2c_20dmRender__NamedConstantBuffer__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;if(!$0){return}if($1){$12=dmRender__ConvertMaterialTagsToMask_28unsigned_20long_20long__2c_20unsigned_20int_29($1,HEAP32[$1+256>>2])}else{$12=0}$4=HEAP32[$0+4016>>2];$7=HEAP32[$0+4020>>2];if($7){FUNCTION_TABLE[HEAP32[147589]]($4,HEAP32[$7+4>>2])}$1=HEAP32[$0+3696>>2];if(($1|0)!=HEAP32[$0+3700>>2]){$5=$7;while(1){$3=HEAP32[($13<<2)+$1>>2];label$7:{if(!HEAP32[$3+728>>2]|(HEAP32[HEAP32[$3+652>>2]+80>>2]&$12)!=($12|0)){break label$7}label$8:{if($7){break label$8}$1=HEAP32[$3+652>>2];if(($1|0)==($5|0)){break label$8}FUNCTION_TABLE[HEAP32[147589]]($4,HEAP32[$1+4>>2]);$5=$1}dmRender__ApplyMaterialConstants_28dmRender__RenderContext__2c_20dmRender__Material__2c_20dmRender__RenderObject_20const__29($0,$5,$3);dmRender__ApplyRenderObjectConstants_28dmRender__RenderContext__2c_20dmRender__Material__2c_20dmRender__RenderObject_20const__29($0,$7,$3);label$9:{if(!$2){break label$9}$6=HEAP32[$2+4>>2];if(!$6){break label$9}$15=HEAP32[$0+4016>>2];$9=0;while(1){$1=HEAP32[HEAP32[$2>>2]+($9<<2)>>2];if(($1|0)!=-1){while(1){$10=HEAP32[$2+8>>2]+Math_imul($1,48)|0;$1=HEAP32[$5+20>>2];label$13:{if(!$1){break label$13}$14=HEAP32[$10>>2];$8=HEAP32[$10+4>>2];$1=HEAP32[HEAP32[$5+16>>2]+(__wasm_i64_urem($14,$8,$1)<<2)>>2];if(($1|0)==-1){break label$13}$11=$10+16|0;$6=HEAP32[$5+24>>2];while(1){$1=($1<<4)+$6|0;if(($14|0)!=HEAP32[$1>>2]|HEAP32[$1+4>>2]!=($8|0)){$1=HEAP32[$1+12>>2];if(($1|0)!=-1){continue}break label$13}break}FUNCTION_TABLE[HEAP32[147595]]($15,$11,HEAP32[$1+8>>2])}$1=HEAP32[$10+32>>2];if(($1|0)!=-1){continue}break}$6=HEAP32[$2+4>>2]}$9=$9+1|0;if($9>>>0<$6>>>0){continue}break}}$1=HEAPU8[$3+734|0];if($1&1){FUNCTION_TABLE[HEAP32[147601]]($4,HEAP32[$3+696>>2],HEAP32[$3+700>>2]);$1=HEAPU8[$3+734|0]}if($1&2){$6=HEAP32[$0+4016>>2];label$19:{if(!(HEAPU8[$3+723|0]&16)){break label$19}$1=HEAPU8[$0+4032|0];if($1&2){HEAP8[$0+4032|0]=$1&253;break label$19}FUNCTION_TABLE[HEAP32[147606]]($6,255);FUNCTION_TABLE[HEAP32[147554]]($6,4,0,0,0,0,Math_fround(1),0)}$1=HEAP32[$3+720>>2];FUNCTION_TABLE[HEAP32[147602]]($6,($1&134217728)>>>27|0,($1&67108864)>>>26|0,($1&33554432)>>>25|0,($1&16777216)>>>24|0);FUNCTION_TABLE[HEAP32[147606]]($6,HEAPU8[$3+722|0]);$1=HEAP32[$3+720>>2];FUNCTION_TABLE[HEAP32[147607]]($6,HEAP32[$3+704>>2],$1&255,$1>>>8&255);FUNCTION_TABLE[HEAP32[147608]]($6,HEAP32[$3+708>>2],HEAP32[$3+712>>2],HEAP32[$3+716>>2])}$1=HEAP32[$0>>2];$1=$1?$1:HEAP32[$3+656>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,0,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,0,$1)}$1=HEAP32[$0+4>>2];$1=$1?$1:HEAP32[$3+660>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,1,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,1,$1)}$1=HEAP32[$0+8>>2];$1=$1?$1:HEAP32[$3+664>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,2,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,2,$1)}$1=HEAP32[$0+12>>2];$1=$1?$1:HEAP32[$3+668>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,3,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,3,$1)}$1=HEAP32[$0+16>>2];$1=$1?$1:HEAP32[$3+672>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,4,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,4,$1)}$1=HEAP32[$0+20>>2];$1=$1?$1:HEAP32[$3+676>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,5,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,5,$1)}$1=HEAP32[$0+24>>2];$1=$1?$1:HEAP32[$3+680>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,6,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,6,$1)}$1=HEAP32[$0+28>>2];$1=$1?$1:HEAP32[$3+684>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,7,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,7,$1)}FUNCTION_TABLE[HEAP32[147575]]($4,HEAP32[$3+644>>2],HEAP32[$3+640>>2],HEAP32[$5+4>>2]);$8=HEAP32[$3+728>>2];$11=HEAP32[$3+724>>2];$6=HEAP32[$3+688>>2];$1=HEAP32[$3+648>>2];label$29:{if(!$1){FUNCTION_TABLE[HEAP32[147579]]($4,$6,$11,$8);break label$29}FUNCTION_TABLE[HEAP32[147578]]($4,$6,$11,$8,HEAP32[$3+692>>2],$1)}FUNCTION_TABLE[HEAP32[147576]]($4,HEAP32[$3+644>>2]);$1=HEAP32[$0>>2];$1=$1?$1:HEAP32[$3+656>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,0,$1)}$1=HEAP32[$0+4>>2];$1=$1?$1:HEAP32[$3+660>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,1,$1)}$1=HEAP32[$0+8>>2];$1=$1?$1:HEAP32[$3+664>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,2,$1)}$1=HEAP32[$0+12>>2];$1=$1?$1:HEAP32[$3+668>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,3,$1)}$1=HEAP32[$0+16>>2];$1=$1?$1:HEAP32[$3+672>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,4,$1)}$1=HEAP32[$0+20>>2];$1=$1?$1:HEAP32[$3+676>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,5,$1)}$1=HEAP32[$0+24>>2];$1=$1?$1:HEAP32[$3+680>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,6,$1)}$1=HEAP32[$0+28>>2];$1=$1?$1:HEAP32[$3+684>>2];if(!$1){break label$7}FUNCTION_TABLE[HEAP32[147629]]($4,7,$1)}$13=$13+1|0;$1=HEAP32[$0+3696>>2];if($13>>>0>2]-$1>>2>>>0){continue}break}}}function b2SeparationFunction__FindMinSeparation_28int__2c_20int__2c_20float_29_20const($0,$1,$2,$3){var $4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=0,$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=0,$21=0,$22=Math_fround(0),$23=0,$24=Math_fround(0),$25=Math_fround(0);$8=HEAPF32[$0+48>>2];$5=Math_fround(Math_fround(1)-$3);$17=Math_fround(Math_fround($5*HEAPF32[$0+68>>2])+Math_fround(HEAPF32[$0+72>>2]*$3));$10=cosf($17);$13=HEAPF32[$0+44>>2];$9=sinf($17);$17=HEAPF32[$0+56>>2];$18=HEAPF32[$0- -64>>2];$14=HEAPF32[$0+52>>2];$15=HEAPF32[$0+60>>2];$22=HEAPF32[$0+12>>2];$11=Math_fround(Math_fround($5*HEAPF32[$0+32>>2])+Math_fround(HEAPF32[$0+36>>2]*$3));$7=cosf($11);$6=HEAPF32[$0+8>>2];$11=sinf($11);$4=HEAP32[$0+80>>2];label$1:{if($4>>>0<=2){$17=Math_fround(Math_fround(Math_fround($5*$17)+Math_fround($18*$3))-Math_fround(Math_fround($13*$9)+Math_fround($8*$10)));$18=Math_fround(Math_fround(Math_fround($5*$14)+Math_fround($15*$3))-Math_fround(Math_fround($13*$10)-Math_fround($8*$9)));$8=Math_fround(Math_fround(Math_fround($5*HEAPF32[$0+20>>2])+Math_fround(HEAPF32[$0+28>>2]*$3))-Math_fround(Math_fround($6*$11)+Math_fround($22*$7)));$22=Math_fround(Math_fround(Math_fround($5*HEAPF32[$0+16>>2])+Math_fround(HEAPF32[$0+24>>2]*$3))-Math_fround(Math_fround($6*$7)-Math_fround($22*$11)));label$3:{label$5:{label$6:{switch($4-1|0){default:$5=HEAPF32[$0+92>>2];$13=HEAPF32[$0+96>>2];$19=HEAP32[$0>>2];$12=HEAP32[$19+16>>2];$23=HEAP32[$19+20>>2];if(($23|0)>=2){$6=Math_fround(Math_fround($7*$5)+Math_fround($11*$13));$14=Math_fround(Math_fround($7*$13)-Math_fround($11*$5));$3=Math_fround(Math_fround($6*HEAPF32[$12>>2])+Math_fround($14*HEAPF32[$12+4>>2]));$4=1;while(1){$20=$12+($4<<3)|0;$15=Math_fround(Math_fround($6*HEAPF32[$20>>2])+Math_fround($14*HEAPF32[$20+4>>2]));$20=$15>$3;$3=$20?$15:$3;$21=$20?$4:$21;$4=$4+1|0;if(($23|0)!=($4|0)){continue}break}}HEAP32[$1>>2]=$21;$20=HEAP32[$0+4>>2];$4=HEAP32[$20+16>>2];$23=HEAP32[$20+20>>2];if(($23|0)>=2){$6=Math_fround(Math_fround($9*Math_fround(-$13))-Math_fround($10*$5));$14=Math_fround(Math_fround($9*$5)-Math_fround($10*$13));$3=Math_fround(Math_fround($6*HEAPF32[$4>>2])+Math_fround($14*HEAPF32[$4+4>>2]));$0=1;while(1){$21=$4+($0<<3)|0;$15=Math_fround(Math_fround($6*HEAPF32[$21>>2])+Math_fround($14*HEAPF32[$21+4>>2]));$21=$15>$3;$3=$21?$15:$3;$16=$21?$0:$16;$0=$0+1|0;if(($23|0)!=($0|0)){continue}break}}HEAP32[$2>>2]=$16;$0=HEAP32[$1>>2];if(($0|0)<0|HEAP32[$19+20>>2]<=($0|0)|(($16|0)<0|HEAP32[$20+20>>2]<=($16|0))){break label$1}$3=$8;$0=$12+($0<<3)|0;$8=HEAPF32[$0>>2];$6=HEAPF32[$0+4>>2];$3=Math_fround($3+Math_fround(Math_fround($11*$8)+Math_fround($7*$6)));$6=Math_fround($22+Math_fround(Math_fround($7*$8)-Math_fround($11*$6)));$0=$4+($16<<3)|0;$8=HEAPF32[$0>>2];$7=HEAPF32[$0+4>>2];$18=Math_fround($18+Math_fround(Math_fround($10*$8)-Math_fround($9*$7)));$9=Math_fround($9*$8);$8=Math_fround($10*$7);break label$5;case 0:$6=HEAPF32[$0+88>>2];$3=HEAPF32[$0+96>>2];$14=HEAPF32[$0+84>>2];$5=HEAPF32[$0+92>>2];HEAP32[$1>>2]=-1;$13=Math_fround(Math_fround($11*$5)+Math_fround($7*$3));$5=Math_fround(Math_fround($7*$5)-Math_fround($11*$3));$16=HEAP32[$0+4>>2];$1=HEAP32[$16+16>>2];$19=HEAP32[$16+20>>2];label$13:{if(($19|0)<=1){$4=0;HEAP32[$2>>2]=0;break label$13}$15=Math_fround(Math_fround($9*Math_fround(-$13))-Math_fround($10*$5));$24=Math_fround(Math_fround($9*$5)-Math_fround($10*$13));$3=Math_fround(Math_fround($15*HEAPF32[$1>>2])+Math_fround($24*HEAPF32[$1+4>>2]));$4=0;$0=1;while(1){$12=$1+($0<<3)|0;$25=Math_fround(Math_fround($15*HEAPF32[$12>>2])+Math_fround($24*HEAPF32[$12+4>>2]));$12=$25>$3;$3=$12?$25:$3;$4=$12?$0:$4;$0=$0+1|0;if(($19|0)!=($0|0)){continue}break}HEAP32[$2>>2]=$4;if(($4|0)<0){break label$1}}if(HEAP32[$16+20>>2]<=($4|0)){break label$1}$3=Math_fround($8+Math_fround(Math_fround($11*$14)+Math_fround($7*$6)));$6=Math_fround($22+Math_fround(Math_fround($7*$14)-Math_fround($11*$6)));$0=$1+($4<<3)|0;$8=HEAPF32[$0>>2];$7=HEAPF32[$0+4>>2];$18=Math_fround($18+Math_fround(Math_fround($10*$8)-Math_fround($9*$7)));$9=Math_fround($9*$8);$8=Math_fround($10*$7);break label$5;case 1:break label$6}}$6=HEAPF32[$0+88>>2];$3=HEAPF32[$0+96>>2];$14=HEAPF32[$0+84>>2];$5=HEAPF32[$0+92>>2];HEAP32[$2>>2]=-1;$13=Math_fround(Math_fround($9*$5)+Math_fround($10*$3));$5=Math_fround(Math_fround($10*$5)-Math_fround($9*$3));$16=HEAP32[$0>>2];$2=HEAP32[$16+16>>2];$19=HEAP32[$16+20>>2];label$16:{if(($19|0)<=1){$4=0;HEAP32[$1>>2]=0;break label$16}$15=Math_fround(Math_fround($11*Math_fround(-$13))-Math_fround($7*$5));$24=Math_fround(Math_fround($11*$5)-Math_fround($7*$13));$3=Math_fround(Math_fround($15*HEAPF32[$2>>2])+Math_fround($24*HEAPF32[$2+4>>2]));$4=0;$0=1;while(1){$12=$2+($0<<3)|0;$25=Math_fround(Math_fround($15*HEAPF32[$12>>2])+Math_fround($24*HEAPF32[$12+4>>2]));$12=$25>$3;$3=$12?$25:$3;$4=$12?$0:$4;$0=$0+1|0;if(($19|0)!=($0|0)){continue}break}HEAP32[$1>>2]=$4;if(($4|0)<0){break label$3}}if(HEAP32[$16+20>>2]<=($4|0)){break label$3}$3=Math_fround($17+Math_fround(Math_fround($9*$14)+Math_fround($10*$6)));$6=Math_fround($18+Math_fround(Math_fround($10*$14)-Math_fround($9*$6)));$0=$2+($4<<3)|0;$17=HEAPF32[$0>>2];$10=HEAPF32[$0+4>>2];$18=Math_fround($22+Math_fround(Math_fround($7*$17)-Math_fround($11*$10)));$9=Math_fround($11*$17);$17=$8;$8=Math_fround($7*$10)}return Math_fround(Math_fround($5*Math_fround($18-$6))+Math_fround($13*Math_fround(Math_fround($17+Math_fround($9+$8))-$3)))}break label$1}__assert_fail(97328,97149,183,97334);abort()}__assert_fail(97246,97276,103,97318);abort()}function btSequentialImpulseConstraintSolver__solveSingleIteration_28int_2c_20btCollisionObject___2c_20int_2c_20btPersistentManifold___2c_20int_2c_20btTypedConstraint___2c_20int_2c_20btContactSolverInfo_20const__2c_20btIDebugDraw__2c_20btStackAlloc__29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=Math_fround(0),$12=0,$13=0,$14=Math_fround(0),$15=0;label$1:{if(!(HEAP32[$4+60>>2]&1)|$1&7){break label$1}$12=HEAP32[$0+48>>2];$13=HEAP32[$0+8>>2];if(($13|0)>=1){$1=Math_imul(HEAP32[$0+124>>2],1664525)+1013904223|0;label$3:{if(($13|0)==1){break label$3}$8=HEAP32[$0+76>>2];$6=HEAP32[$8+4>>2];$1=Math_imul($1,1664525)+1013904223|0;$5=$1^$1>>>16;$5=$5>>>8^$5;$5=$5>>>4^$5;$5=$5>>>2^$5;$5=$8+((($5>>>1^$5)&1)<<2)|0;HEAP32[$8+4>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$6;if(($13|0)==2){break label$3}$6=HEAP32[$8+8>>2];$1=Math_imul($1,1664525)+1013904223|0;$5=$1^$1>>>16;$5=$5>>>8^$5;$5=$5>>>4^$5;$5=$8+((($5>>>2^$5)>>>0)%3<<2)|0;HEAP32[$8+8>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$6;if(($13|0)==3){break label$3}$6=4;$5=HEAP32[$8+12>>2];$1=Math_imul($1,1664525)+1013904223|0;$7=$1^$1>>>16;$7=$7>>>8^$7;$7=$7>>>4^$7;$7=$8+((($7>>>2^$7)&3)<<2)|0;HEAP32[$8+12>>2]=HEAP32[$7>>2];HEAP32[$7>>2]=$5;if(($13|0)==4){break label$3}while(1){$5=$6;$6=$5+1|0;$7=$8+($5<<2)|0;$9=HEAP32[$7>>2];$15=$7;$1=Math_imul($1,1664525)+1013904223|0;$7=$1;label$5:{if($5>>>0>65535){break label$5}$10=$1>>>16^$1;$7=$10;if($5>>>0>255){break label$5}$10=$10^$10>>>8;$7=$10;if($5>>>0>15){break label$5}$7=$10^$10>>>4}$5=(($7>>>0)%($6>>>0)<<2)+$8|0;HEAP32[$15>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$9;if(($6|0)!=($13|0)){continue}break}}HEAP32[$0+124>>2]=$1}if(($12|0)<1){break label$1}$1=Math_imul(HEAP32[$0+124>>2],1664525)+1013904223|0;label$6:{if(($12|0)==1){break label$6}$8=HEAP32[$0+96>>2];$6=HEAP32[$8+4>>2];$1=Math_imul($1,1664525)+1013904223|0;$5=$1^$1>>>16;$5=$5>>>8^$5;$5=$5>>>4^$5;$5=$5>>>2^$5;$5=$8+((($5>>>1^$5)&1)<<2)|0;HEAP32[$8+4>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$6;if(($12|0)==2){break label$6}$6=HEAP32[$8+8>>2];$1=Math_imul($1,1664525)+1013904223|0;$5=$1^$1>>>16;$5=$5>>>8^$5;$5=$5>>>4^$5;$5=$8+((($5>>>2^$5)>>>0)%3<<2)|0;HEAP32[$8+8>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$6;if(($12|0)==3){break label$6}$6=4;$5=HEAP32[$8+12>>2];$1=Math_imul($1,1664525)+1013904223|0;$7=$1^$1>>>16;$7=$7>>>8^$7;$7=$7>>>4^$7;$7=$8+((($7>>>2^$7)&3)<<2)|0;HEAP32[$8+12>>2]=HEAP32[$7>>2];HEAP32[$7>>2]=$5;if(($12|0)==4){break label$6}while(1){$5=$6;$6=$5+1|0;$7=$8+($5<<2)|0;$10=HEAP32[$7>>2];$15=$7;$1=Math_imul($1,1664525)+1013904223|0;$7=$1;label$8:{if($5>>>0>65535){break label$8}$9=$1>>>16^$1;$7=$9;if($5>>>0>255){break label$8}$9=$9^$9>>>8;$7=$9;if($5>>>0>15){break label$8}$7=$9^$9>>>4}$5=(($7>>>0)%($6>>>0)<<2)+$8|0;HEAP32[$15>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$10;if(($6|0)!=($12|0)){continue}break}}HEAP32[$0+124>>2]=$1}$1=HEAP32[$0+28>>2];label$9:{if(HEAP8[$4+61|0]&1){if(($1|0)>=1){$1=0;while(1){$6=HEAP32[$0+36>>2]+Math_imul($1,136)|0;btSequentialImpulseConstraintSolver__resolveSingleConstraintRowGeneric_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$6+104>>2],HEAP32[$6+108>>2],$6);$1=$1+1|0;if(($1|0)>2]){continue}break}}if(($3|0)>=1){$6=0;while(1){$1=HEAP32[($6<<2)+$2>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+24>>2]]($1,HEAP32[$1+20>>2],HEAP32[$1+24>>2],HEAPF32[$4+12>>2]);$6=$6+1|0;if(($6|0)!=($3|0)){continue}break}}$3=HEAP32[$0+8>>2];if(($3|0)>=1){$1=0;while(1){$2=HEAP32[$0+16>>2]+Math_imul(HEAP32[HEAP32[$0+76>>2]+($1<<2)>>2],136)|0;btSequentialImpulseConstraintSolver__resolveSingleConstraintRowLowerLimit_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$2+104>>2],HEAP32[$2+108>>2],$2);$1=$1+1|0;if(($3|0)!=($1|0)){continue}break}}$2=HEAP32[$0+48>>2];if(($2|0)<1){break label$9}$6=0;while(1){$1=HEAP32[$0+56>>2]+Math_imul(HEAP32[HEAP32[$0+96>>2]+($6<<2)>>2],136)|0;$11=HEAPF32[(HEAP32[$0+16>>2]+Math_imul(HEAP32[$1+100>>2],136)|0)+84>>2];if(!!($11>Math_fround(0))){$14=HEAPF32[$1+88>>2];HEAPF32[$1+128>>2]=$11*$14;HEAPF32[$1+124>>2]=$11*Math_fround(-$14);btSequentialImpulseConstraintSolver__resolveSingleConstraintRowGeneric_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$1+104>>2],HEAP32[$1+108>>2],$1)}$6=$6+1|0;if(($2|0)!=($6|0)){continue}break}break label$9}if(($1|0)>=1){$1=0;while(1){$6=HEAP32[$0+36>>2]+Math_imul($1,136)|0;btSequentialImpulseConstraintSolver__resolveSingleConstraintRowGeneric_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$6+104>>2],HEAP32[$6+108>>2],$6);$1=$1+1|0;if(($1|0)>2]){continue}break}}if(($3|0)>=1){$6=0;while(1){$1=HEAP32[($6<<2)+$2>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+24>>2]]($1,HEAP32[$1+20>>2],HEAP32[$1+24>>2],HEAPF32[$4+12>>2]);$6=$6+1|0;if(($6|0)!=($3|0)){continue}break}}$3=HEAP32[$0+8>>2];if(($3|0)>=1){$1=0;while(1){$2=HEAP32[$0+16>>2]+Math_imul(HEAP32[HEAP32[$0+76>>2]+($1<<2)>>2],136)|0;btSequentialImpulseConstraintSolver__resolveSingleConstraintRowLowerLimit_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$2+104>>2],HEAP32[$2+108>>2],$2);$1=$1+1|0;if(($3|0)!=($1|0)){continue}break}}$2=HEAP32[$0+48>>2];if(($2|0)<1){break label$9}$6=0;while(1){$1=HEAP32[$0+56>>2]+Math_imul(HEAP32[HEAP32[$0+96>>2]+($6<<2)>>2],136)|0;$11=HEAPF32[(HEAP32[$0+16>>2]+Math_imul(HEAP32[$1+100>>2],136)|0)+84>>2];if(!!($11>Math_fround(0))){$14=HEAPF32[$1+88>>2];HEAPF32[$1+128>>2]=$11*$14;HEAPF32[$1+124>>2]=$11*Math_fround(-$14);btSequentialImpulseConstraintSolver__resolveSingleConstraintRowGeneric_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$1+104>>2],HEAP32[$1+108>>2],$1)}$6=$6+1|0;if(($2|0)!=($6|0)){continue}break}}}function DumpFunction($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$3=global$0-16|0;global$0=$3;$5=$2;$4=HEAP32[$0+32>>2];label$1:{label$2:{if(!(HEAP32[$2+12>>2]?0:!(($4|0)==($1|0)|!$4))){HEAP32[$3+8>>2]=0;$1=HEAP32[$2+16>>2];if($1){break label$1}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;break label$2}HEAP32[$3+8>>2]=HEAP32[$4+12>>2]+1;$1=HEAP32[$2+16>>2];if($1){break label$1}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if($1){break label$1}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$4+16|0,HEAP32[$3+8>>2],HEAP32[$2+8>>2])|0}HEAP32[$5+16>>2]=$1}HEAP32[$3+8>>2]=HEAP32[$0+60>>2];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}HEAP32[$3+8>>2]=HEAP32[$0+64>>2];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}HEAP8[$3+8|0]=HEAPU8[$0+72|0];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}HEAP8[$3+8|0]=HEAPU8[$0+73|0];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}HEAP8[$3+8|0]=HEAPU8[$0+74|0];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}HEAP8[$3+8|0]=HEAPU8[$0+75|0];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}$5=HEAP32[$0+12>>2];$4=HEAP32[$0+44>>2];HEAP32[$3+8>>2]=$4;label$11:{label$12:{if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if(!$1){break label$12}}$7=HEAP32[$0+40>>2];HEAP32[$3+8>>2]=$7;break label$11}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$5,$4<<2,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;$7=HEAP32[$0+40>>2];HEAP32[$3+8>>2]=$7;if($1){break label$11}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}if(($7|0)>=1){while(1){$4=HEAP32[$0+8>>2]+($6<<4)|0;$5=HEAP32[$4+8>>2];HEAP8[$3+8|0]=$5;if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;$5=HEAP32[$4+8>>2]}$8=$5+ -1|0;label$16:{if($8>>>0>3){break label$16}$5=$2;label$19:{label$20:{switch($8-1|0){default:HEAP8[$3+8|0]=HEAP32[$4>>2];if($1){break label$16}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;break label$19;case 1:$8=HEAP32[$4+4>>2];HEAP32[$3+8>>2]=HEAP32[$4>>2];HEAP32[$3+12>>2]=$8;if($1){break label$16}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,8,HEAP32[$2+8>>2])|0;break label$19;case 0:break label$16;case 2:break label$20}}$4=HEAP32[$4>>2];if(!$4){HEAP32[$3+8>>2]=0;if($1){break label$16}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;break label$19}HEAP32[$3+8>>2]=HEAP32[$4+12>>2]+1;if($1){break label$16}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if($1){break label$16}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$4+16|0,HEAP32[$3+8>>2],HEAP32[$2+8>>2])|0}HEAP32[$5+16>>2]=$1}$6=$6+1|0;if(($7|0)!=($6|0)){continue}break}}$5=HEAP32[$0+52>>2];HEAP32[$3+8>>2]=$5;if(!$1){HEAP32[$2+16>>2]=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])}if(($5|0)>=1){$1=0;while(1){DumpFunction(HEAP32[HEAP32[$0+16>>2]+($1<<2)>>2],HEAP32[$0+32>>2],$2);$1=$1+1|0;if(($5|0)!=($1|0)){continue}break}}$6=0;$5=HEAP32[$0+20>>2];$6=HEAP32[$2+12>>2]?$6:HEAP32[$0+48>>2];HEAP32[$3+8>>2]=$6;$1=HEAP32[$2+16>>2];label$28:{if($1){break label$28}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if($1){break label$28}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$5,$6<<2,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}$7=0;$7=HEAP32[$2+12>>2]?$7:HEAP32[$0+56>>2];HEAP32[$3+8>>2]=$7;if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}if(($7|0)>=1){$6=0;while(1){$5=$2;$8=Math_imul($6,12);$4=HEAP32[$8+HEAP32[$0+24>>2]>>2];label$33:{label$34:{if(!$4){HEAP32[$3+8>>2]=0;if($1){break label$33}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;break label$34}HEAP32[$3+8>>2]=HEAP32[$4+12>>2]+1;if($1){break label$33}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if($1){break label$33}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$4+16|0,HEAP32[$3+8>>2],HEAP32[$2+8>>2])|0}HEAP32[$5+16>>2]=$1}$5=HEAP32[$0+24>>2];HEAP32[$3+8>>2]=HEAP32[($5+$8|0)+4>>2];$4=$3;if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;$5=HEAP32[$0+24>>2]}HEAP32[$4+8>>2]=HEAP32[($5+$8|0)+8>>2];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}$6=$6+1|0;if(($7|0)!=($6|0)){continue}break}}$4=0;$4=HEAP32[$2+12>>2]?$4:HEAP32[$0+36>>2];HEAP32[$3+8>>2]=$4;if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}if(($4|0)>=1){$6=0;while(1){$5=$2;$7=HEAP32[HEAP32[$0+28>>2]+($6<<2)>>2];label$43:{label$44:{if(!$7){HEAP32[$3+8>>2]=0;if($1){break label$43}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;break label$44}HEAP32[$3+8>>2]=HEAP32[$7+12>>2]+1;if($1){break label$43}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if($1){break label$43}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$7+16|0,HEAP32[$3+8>>2],HEAP32[$2+8>>2])|0}HEAP32[$5+16>>2]=$1}$6=$6+1|0;if(($4|0)!=($6|0)){continue}break}}global$0=$3+16|0}function b2GearJoint__SolvePositionConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=Math_fround(0),$4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=0,$31=0,$32=0,$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0),$36=Math_fround(0),$37=Math_fround(0),$38=Math_fround(0),$39=Math_fround(0),$40=Math_fround(0),$41=Math_fround(0),$42=Math_fround(0);$4=HEAP32[$0+76>>2];$9=HEAP32[$1+24>>2];$30=$9+Math_imul(HEAP32[$0+172>>2],12)|0;$35=HEAPF32[$30+4>>2];$36=HEAPF32[$30>>2];$31=$9+Math_imul(HEAP32[$0+168>>2],12)|0;$37=HEAPF32[$31+4>>2];$38=HEAPF32[$31>>2];$32=$9+Math_imul(HEAP32[$0+164>>2],12)|0;$39=HEAPF32[$32+4>>2];$40=HEAPF32[$32>>2];$9=$9+Math_imul(HEAP32[$0+160>>2],12)|0;$41=HEAPF32[$9+4>>2];$42=HEAPF32[$9>>2];$19=HEAPF32[$9+8>>2];$20=HEAPF32[$32+8>>2];$21=HEAPF32[$31+8>>2];$22=HEAPF32[$30+8>>2];$16=cosf($22);$17=sinf($22);$10=cosf($21);$3=sinf($21);$14=cosf($20);$18=sinf($20);$13=cosf($19);$11=sinf($19);label$1:{if(($4|0)==1){$23=HEAPF32[$0+224>>2];$24=HEAPF32[$0+232>>2];$11=Math_fround($23+$24);$25=Math_fround(1);$26=Math_fround(1);$12=Math_fround(Math_fround($19-$21)-HEAPF32[$0+140>>2]);break label$1}$7=HEAPF32[$0+124>>2];$15=HEAPF32[$0+128>>2];$27=Math_fround(Math_fround($3*$7)+Math_fround($10*$15));$6=Math_fround(HEAPF32[$0+108>>2]-HEAPF32[$0+192>>2]);$8=Math_fround(HEAPF32[$0+112>>2]-HEAPF32[$0+196>>2]);$28=Math_fround(Math_fround($10*$7)-Math_fround($3*$15));$26=Math_fround(Math_fround($27*Math_fround(Math_fround($10*$6)-Math_fround($3*$8)))-Math_fround($28*Math_fround(Math_fround($3*$6)+Math_fround($10*$8))));$24=HEAPF32[$0+232>>2];$5=Math_fround(HEAPF32[$0+92>>2]-HEAPF32[$0+176>>2]);$2=Math_fround(HEAPF32[$0+96>>2]-HEAPF32[$0+180>>2]);$12=Math_fround(Math_fround($13*$5)-Math_fround($11*$2));$2=Math_fround(Math_fround($11*$5)+Math_fround($13*$2));$25=Math_fround(Math_fround($27*$12)-Math_fround($28*$2));$23=HEAPF32[$0+224>>2];$11=Math_fround(Math_fround(Math_fround(HEAPF32[$0+216>>2]+HEAPF32[$0+208>>2])+Math_fround($26*Math_fround($26*$24)))+Math_fround($25*Math_fround($25*$23)));$12=Math_fround(Math_fround($42-$38)+$12);$2=Math_fround(Math_fround($41-$37)+$2);$12=Math_fround(Math_fround($7*Math_fround(Math_fround(Math_fround($10*$12)+Math_fround($3*$2))-$6))+Math_fround($15*Math_fround(Math_fround(Math_fround($10*$2)-Math_fround($3*$12))-$8)))}$7=Math_fround(0);$15=Math_fround($11+Math_fround(0));label$3:{if(HEAP32[$0+80>>2]==1){$13=Math_fround(Math_fround($20-$22)-HEAPF32[$0+144>>2]);$2=HEAPF32[$0+152>>2];$14=HEAPF32[$0+228>>2];$29=HEAPF32[$0+236>>2];$18=Math_fround(Math_fround($2*$2)*Math_fround($14+$29));$8=$2;$11=$2;$5=Math_fround(0);break label$3}$2=HEAPF32[$0+152>>2];$33=HEAPF32[$0+132>>2];$34=HEAPF32[$0+136>>2];$10=Math_fround(Math_fround($17*$33)+Math_fround($16*$34));$3=Math_fround(HEAPF32[$0+116>>2]-HEAPF32[$0+200>>2]);$13=Math_fround(HEAPF32[$0+120>>2]-HEAPF32[$0+204>>2]);$7=Math_fround(Math_fround($16*$33)-Math_fround($17*$34));$11=Math_fround($2*Math_fround(Math_fround($10*Math_fround(Math_fround($16*$3)-Math_fround($17*$13)))-Math_fround($7*Math_fround(Math_fround($17*$3)+Math_fround($16*$13)))));$29=HEAPF32[$0+236>>2];$8=Math_fround(HEAPF32[$0+100>>2]-HEAPF32[$0+184>>2]);$5=Math_fround(HEAPF32[$0+104>>2]-HEAPF32[$0+188>>2]);$6=Math_fround(Math_fround($14*$8)-Math_fround($18*$5));$5=Math_fround(Math_fround($18*$8)+Math_fround($14*$5));$8=Math_fround($2*Math_fround(Math_fround($10*$6)-Math_fround($7*$5)));$14=HEAPF32[$0+228>>2];$18=Math_fround(Math_fround(Math_fround(Math_fround($2*$2)*Math_fround(HEAPF32[$0+220>>2]+HEAPF32[$0+212>>2]))+Math_fround($11*Math_fround($11*$29)))+Math_fround($8*Math_fround($8*$14)));$6=Math_fround(Math_fround($40-$36)+$6);$5=Math_fround(Math_fround($39-$35)+$5);$13=Math_fround(Math_fround($33*Math_fround(Math_fround(Math_fround($16*$6)+Math_fround($17*$5))-$3))+Math_fround($34*Math_fround(Math_fround(Math_fround($16*$5)-Math_fround($17*$6))-$13)));$7=Math_fround($7*$2);$5=Math_fround($10*$2)}$3=Math_fround(0);$6=Math_fround($15+$18);if(!!($6>Math_fround(0))){$3=Math_fround(Math_fround(-Math_fround(Math_fround($12+Math_fround($13*$2))-HEAPF32[$0+148>>2]))/$6)}$15=HEAPF32[$0+220>>2];$6=HEAPF32[$0+216>>2];$12=HEAPF32[$0+212>>2];$2=Math_fround($3*HEAPF32[$0+208>>2]);HEAPF32[$9>>2]=Math_fround($28*$2)+$42;HEAPF32[$9+4>>2]=Math_fround($27*$2)+$41;$4=HEAP32[$1+24>>2];HEAPF32[($4+Math_imul(HEAP32[$0+160>>2],12)|0)+8>>2]=$19+Math_fround($25*Math_fround($3*$23));$4=$4+Math_imul(HEAP32[$0+164>>2],12)|0;$2=Math_fround($3*$12);HEAPF32[$4+4>>2]=Math_fround($5*$2)+$39;HEAPF32[$4>>2]=Math_fround($7*$2)+$40;$4=HEAP32[$1+24>>2];HEAPF32[($4+Math_imul(HEAP32[$0+164>>2],12)|0)+8>>2]=$20+Math_fround($8*Math_fround($3*$14));$4=$4+Math_imul(HEAP32[$0+168>>2],12)|0;$2=Math_fround($3*$6);HEAPF32[$4+4>>2]=$37-Math_fround($27*$2);HEAPF32[$4>>2]=$38-Math_fround($28*$2);$4=HEAP32[$1+24>>2];HEAPF32[($4+Math_imul(HEAP32[$0+168>>2],12)|0)+8>>2]=$21-Math_fround($26*Math_fround($3*$24));$4=$4+Math_imul(HEAP32[$0+172>>2],12)|0;$2=Math_fround($3*$15);HEAPF32[$4+4>>2]=$35-Math_fround($5*$2);HEAPF32[$4>>2]=$36-Math_fround($7*$2);HEAPF32[(HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+172>>2],12)|0)+8>>2]=$22-Math_fround($11*Math_fround($3*$29));return 1}function void_20std____2____sort_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;label$1:{label$2:while(1){$9=$1+ -4|0;label$3:while(1){$4=$0;label$4:while(1){label$5:{label$6:{label$7:{$3=$1-$4|0;$0=$3>>2;if($0>>>0<=5){label$10:{switch($0-2|0){case 0:$1=HEAP32[$2>>2];$0=HEAP32[$1+32>>2];$2=(HEAP32[$1+36>>2]-$0|0)/12|0;$1=HEAP32[$4>>2];if($2>>>0<=$1>>>0){break label$1}$3=$2;$2=HEAP32[$9>>2];if($3>>>0<=$2>>>0){break label$1}if(HEAPU32[($0+Math_imul($1,12)|0)+4>>2]>=HEAPU32[($0+Math_imul($2,12)|0)+4>>2]){break label$5}HEAP32[$4>>2]=$2;HEAP32[$9>>2]=$1;return;case 2:unsigned_20int_20std____2____sort4_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$4+4|0,$4+8|0,$9,$2);return;case 3:break label$10;case 1:break label$7;default:break label$5}}unsigned_20int_20std____2____sort5_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$4+4|0,$4+8|0,$4+12|0,$9,$2);return}if(($3|0)<=123){void_20std____2____insertion_sort_3_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$1,$2);return}$5=(($0|0)/2<<2)+$4|0;label$14:{if(($3|0)>=3997){$0=($0|0)/4<<2;$8=unsigned_20int_20std____2____sort5_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$0+$4|0,$5,$0+$5|0,$9,$2);break label$14}$8=unsigned_20int_20std____2____sort3_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$5,$9,$2)}$0=HEAP32[$2>>2];$10=HEAP32[$0+32>>2];$7=(HEAP32[$0+36>>2]-$10|0)/12|0;$6=HEAP32[$5>>2];if($7>>>0>$6>>>0){$3=HEAP32[$4>>2];if($7>>>0>$3>>>0){$0=$9;$12=HEAP32[(Math_imul($6,12)+$10|0)+4>>2];$6=HEAP32[(Math_imul($3,12)+$10|0)+4>>2];if($12>>>0>=$6>>>0){while(1){$0=$0+ -4|0;if(($4|0)==($0|0)){$0=HEAP32[$9>>2];if($7>>>0>$0>>>0){$3=$4+4|0;if(HEAPU32[(Math_imul($0,12)+$10|0)+4>>2]<$6>>>0){break label$6}if(($3|0)==($9|0)){break label$5}while(1){label$26:{$5=HEAP32[$3>>2];if($7>>>0>$5>>>0){if(HEAPU32[(Math_imul($5,12)+$10|0)+4>>2]>=$6>>>0){break label$26}HEAP32[$3>>2]=$0;HEAP32[$9>>2]=$5;$3=$3+4|0;break label$6}break label$1}$3=$3+4|0;if(($9|0)!=($3|0)){continue}break}break label$5}break label$1}$11=HEAP32[$0>>2];if($7>>>0<=$11>>>0){break label$1}if($12>>>0>=HEAPU32[(Math_imul($11,12)+$10|0)+4>>2]){continue}break}HEAP32[$4>>2]=$11;HEAP32[$0>>2]=$3;$8=$8+1|0}label$28:{$3=$4+4|0;if($3>>>0>=$0>>>0){break label$28}$6=HEAP32[$5>>2];label$29:{if($7>>>0<=$6>>>0){break label$29}while(1){$12=Math_imul($6,12)+$10|0;while(1){$11=HEAP32[$3>>2];if($7>>>0<=$11>>>0){break label$1}$13=HEAP32[$12+4>>2];if($13>>>0>2]){$3=$3+4|0;if($7>>>0>$6>>>0){continue}break label$29}break}while(1){$0=$0+ -4|0;$6=HEAP32[$0>>2];if($7>>>0<=$6>>>0){break label$1}if($13>>>0>=HEAPU32[(Math_imul($6,12)+$10|0)+4>>2]){continue}break}if($3>>>0>$0>>>0){break label$28}HEAP32[$3>>2]=$6;HEAP32[$0>>2]=$11;$8=$8+1|0;$6=($3|0)==($5|0);$3=$3+4|0;$5=$6?$0:$5;$6=HEAP32[$5>>2];if($7>>>0>$6>>>0){continue}break}}break label$1}label$18:{label$34:{if(($3|0)==($5|0)){break label$34}$0=HEAP32[$3>>2];if($7>>>0<=$0>>>0){break label$1}$6=$7;$7=HEAP32[$5>>2];if($6>>>0<=$7>>>0){break label$18}if(HEAPU32[(Math_imul($0,12)+$10|0)+4>>2]>=HEAPU32[(Math_imul($7,12)+$10|0)+4>>2]){break label$34}HEAP32[$3>>2]=$7;HEAP32[$5>>2]=$0;$8=$8+1|0}if(!$8){$5=bool_20std____2____insertion_sort_incomplete_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$3,$2);$0=$3+4|0;if(bool_20std____2____insertion_sort_incomplete_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($0,$1,$2)){$1=$3;$0=$4;if(!$5){continue label$2}break label$5}if($5){continue label$3}}if(($3-$4|0)<($1-$3|0)){void_20std____2____sort_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$3,$2);$0=$3+4|0;continue label$3}void_20std____2____sort_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($3+4|0,$1,$2);$1=$3;$0=$4;continue label$2}break label$1}break label$1}break label$1}unsigned_20int_20std____2____sort3_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$4+4|0,$9,$2);break label$5}if(($3|0)==($9|0)){break label$5}$5=$9;$0=HEAP32[$3>>2];if($7>>>0<=$0>>>0){break label$1}while(1){$8=HEAP32[$4>>2];$6=Math_imul($8,12)+$10|0;while(1){if($7>>>0<=$8>>>0){break label$1}$11=HEAP32[$6+4>>2];if(HEAPU32[(Math_imul($0,12)+$10|0)+4>>2]>=$11>>>0){$0=HEAP32[$3+4>>2];$3=$3+4|0;if($7>>>0>$0>>>0){continue}break label$1}break}while(1){$5=$5+ -4|0;$8=HEAP32[$5>>2];if($7>>>0<=$8>>>0){break label$1}if(HEAPU32[(Math_imul($8,12)+$10|0)+4>>2]<$11>>>0){continue}break}if($3>>>0>=$5>>>0){$4=$3;continue label$4}HEAP32[$3>>2]=$8;HEAP32[$5>>2]=$0;$0=HEAP32[$3+4>>2];$3=$3+4|0;if($7>>>0>$0>>>0){continue}break}break label$1}break}break}break}return}__assert_fail(155278,155196,430,155289);abort()}function void_20std____2____sort_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;label$1:while(1){$7=$1+ -4|0;label$2:while(1){$4=$0;label$3:while(1){label$4:{label$5:{label$6:{label$7:{$3=$1-$4|0;$0=$3>>2;if($0>>>0<=5){label$9:{switch($0-2|0){case 0:if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$7>>2],HEAP32[$4>>2])){break label$4}$0=HEAP32[$4>>2];HEAP32[$4>>2]=HEAP32[$7>>2];HEAP32[$7>>2]=$0;return;case 2:unsigned_20int_20std____2____sort4_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$4+4|0,$4+8|0,$7,$2);return;case 1:break label$7;case 3:break label$9;default:break label$4}}unsigned_20int_20std____2____sort5_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$4+4|0,$4+8|0,$4+12|0,$7,$2);return}if(($3|0)<=123){$5=$4+8|0;unsigned_20int_20std____2____sort3_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$4+4|0,$5,$2);$0=$4+12|0;if(($1|0)==($0|0)){break label$4}while(1){$6=$0;if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$0>>2],HEAP32[$5>>2])){$7=HEAP32[$6>>2];$3=$6;while(1){label$16:{$0=$5;HEAP32[$3>>2]=HEAP32[$0>>2];if(($0|0)==($4|0)){$0=$4;break label$16}$3=$0;$5=$0+ -4|0;if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,$7,HEAP32[$5>>2])){continue}}break}HEAP32[$0>>2]=$7}$5=$6;$0=$5+4|0;if(($1|0)!=($0|0)){continue}break}break label$4}$5=(($0|0)/2<<2)+$4|0;label$18:{if(($3|0)>=3997){$0=($0|0)/4<<2;$0=unsigned_20int_20std____2____sort5_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$0+$4|0,$5,$0+$5|0,$7,$2);break label$18}$0=unsigned_20int_20std____2____sort3_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$5,$7,$2)}$8=$0;$0=$7;if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$4>>2],HEAP32[$5>>2])){while(1){$0=$0+ -4|0;if(($4|0)==($0|0)){$3=$4+4|0;if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$4>>2],HEAP32[$7>>2])){break label$5}if(($3|0)==($7|0)){break label$4}while(1){if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$4>>2],HEAP32[$3>>2])){$0=HEAP32[$3>>2];HEAP32[$3>>2]=HEAP32[$7>>2];HEAP32[$7>>2]=$0;$3=$3+4|0;break label$5}$3=$3+4|0;if(($7|0)!=($3|0)){continue}break}break label$4}if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$0>>2],HEAP32[$5>>2])){continue}break}$3=HEAP32[$4>>2];HEAP32[$4>>2]=HEAP32[$0>>2];HEAP32[$0>>2]=$3;$8=$8+1|0}$3=$4+4|0;if($3>>>0>=$0>>>0){break label$6}while(1){$6=$3;$3=$3+4|0;if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$6>>2],HEAP32[$5>>2])){continue}while(1){$0=$0+ -4|0;if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$0>>2],HEAP32[$5>>2])){continue}break}if($6>>>0>$0>>>0){$3=$6;break label$6}else{$9=HEAP32[$6>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$0>>2]=$9;$5=($5|0)==($6|0)?$0:$5;$8=$8+1|0;continue}}}unsigned_20int_20std____2____sort3_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$4+4|0,$7,$2);break label$4}label$30:{if(($3|0)==($5|0)){break label$30}if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$5>>2],HEAP32[$3>>2])){break label$30}$0=HEAP32[$3>>2];HEAP32[$3>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$0;$8=$8+1|0}if(!$8){$6=bool_20std____2____insertion_sort_incomplete_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$3,$2);$0=$3+4|0;if(bool_20std____2____insertion_sort_incomplete_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($0,$1,$2)){$1=$3;$0=$4;if(!$6){continue label$1}break label$4}if($6){continue label$2}}if(($3-$4|0)<($1-$3|0)){void_20std____2____sort_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$3,$2);$0=$3+4|0;continue label$2}void_20std____2____sort_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($3+4|0,$1,$2);$1=$3;$0=$4;continue label$1}$0=$7;if(($3|0)==($0|0)){break label$4}while(1){$6=$3;$3=$3+4|0;if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$4>>2],HEAP32[$6>>2])){continue}while(1){$0=$0+ -4|0;if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$4>>2],HEAP32[$0>>2])){continue}break}if($6>>>0>=$0>>>0){$4=$6;continue label$3}else{$5=HEAP32[$6>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$0>>2]=$5;continue}}}break}break}break}}function read_long_string($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$7=global$0-192|0;global$0=$7;$8=HEAP32[$0>>2];$5=HEAP32[$0+60>>2];$3=HEAP32[$5+4>>2];$6=$3+1|0;$4=HEAP32[$5+8>>2];label$1:{if($6>>>0<=$4>>>0){$4=HEAP32[$5>>2];break label$1}if($4>>>0>=2147483646){luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+104>>2]=123718;HEAP32[$7+100>>2]=$3;HEAP32[$7+96>>2]=$7+112;luaO_pushfstring($4,123695,$7+96|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$5+8>>2]}$3=HEAP32[$0+52>>2];$6=$4<<1;label$4:{if(($6|0)!=-2){$4=luaM_realloc_($3,HEAP32[$5>>2],$4,$6);break label$4}$4=luaM_toobig($3)}HEAP32[$5+8>>2]=$6;HEAP32[$5>>2]=$4;$3=HEAP32[$5+4>>2];$6=$3+1|0}HEAP32[$5+4>>2]=$6;HEAP8[$4+$3|0]=$8;$3=HEAP32[$0+56>>2];$6=HEAP32[$3>>2];HEAP32[$3>>2]=$6+ -1;$4=$0;label$6:{if($6){$5=$3;$3=HEAP32[$3+4>>2];HEAP32[$5+4>>2]=$3+1;$3=HEAPU8[$3|0];break label$6}$3=luaZ_fill($3)}HEAP32[$4>>2]=$3;$4=$3+ -10|0;label$8:{if($4>>>0>3){break label$8}label$9:{switch($4-1|0){case 0:case 1:break label$8;default:break label$9}}inclinenumber($0)}$9=$1?123798:123821;while(1){label$11:{label$12:{label$13:{$8=HEAP32[$0>>2];$4=$8+1|0;if($4>>>0>14){$4=$8+ -91|0;if($4>>>0>2){break label$13}label$15:{switch($4-1|0){default:if((skip_sep($0)|0)!=($2|0)){continue}$8=HEAP32[$0>>2];$5=HEAP32[$0+60>>2];$3=HEAP32[$5+4>>2];$6=$3+1|0;$4=HEAP32[$5+8>>2];label$17:{if($6>>>0<=$4>>>0){$4=HEAP32[$5>>2];break label$17}if($4>>>0>=2147483646){luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+56>>2]=123718;HEAP32[$7+52>>2]=$3;HEAP32[$7+48>>2]=$7+112;luaO_pushfstring($4,123695,$7+48|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$5+8>>2]}$3=HEAP32[$0+52>>2];$6=$4<<1;label$20:{if(($6|0)!=-2){$4=luaM_realloc_($3,HEAP32[$5>>2],$4,$6);break label$20}$4=luaM_toobig($3)}HEAP32[$5+8>>2]=$6;HEAP32[$5>>2]=$4;$3=HEAP32[$5+4>>2];$6=$3+1|0}HEAP32[$5+4>>2]=$6;HEAP8[$4+$3|0]=$8;$3=HEAP32[$0+56>>2];$6=HEAP32[$3>>2];HEAP32[$3>>2]=$6+ -1;$4=$0;label$22:{if($6){$5=$3;$3=HEAP32[$3+4>>2];HEAP32[$5+4>>2]=$3+1;$3=HEAPU8[$3|0];break label$22}$3=luaZ_fill($3)}HEAP32[$4>>2]=$3;if($2){continue}luaX_lexerror($0,123845,91);continue;case 0:break label$13;case 1:break label$15}}if((skip_sep($0)|0)!=($2|0)){continue}$8=HEAP32[$0>>2];$5=HEAP32[$0+60>>2];$3=HEAP32[$5+4>>2];$6=$3+1|0;$4=HEAP32[$5+8>>2];label$24:{if($6>>>0<=$4>>>0){$4=HEAP32[$5>>2];break label$24}if($4>>>0>=2147483646){luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+72>>2]=123718;HEAP32[$7+68>>2]=$3;HEAP32[$7+64>>2]=$7+112;luaO_pushfstring($4,123695,$7- -64|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$5+8>>2]}$3=HEAP32[$0+52>>2];$6=$4<<1;label$27:{if(($6|0)!=-2){$4=luaM_realloc_($3,HEAP32[$5>>2],$4,$6);break label$27}$4=luaM_toobig($3)}HEAP32[$5+8>>2]=$6;HEAP32[$5>>2]=$4;$3=HEAP32[$5+4>>2];$6=$3+1|0}HEAP32[$5+4>>2]=$6;HEAP8[$4+$3|0]=$8;$3=HEAP32[$0+56>>2];$6=HEAP32[$3>>2];HEAP32[$3>>2]=$6+ -1;$4=$0;label$29:{if($6){$5=$3;$3=HEAP32[$3+4>>2];HEAP32[$5+4>>2]=$3+1;$3=HEAPU8[$3|0];break label$29}$3=luaZ_fill($3)}HEAP32[$4>>2]=$3;if($1){$4=HEAP32[$0+52>>2];$2=$2+2|0;$3=HEAP32[$0+60>>2];$2=luaS_newlstr($4,$2+HEAP32[$3>>2]|0,HEAP32[$3+4>>2]-($2<<1)|0);$0=luaH_setstr($4,HEAP32[HEAP32[$0+48>>2]+4>>2],$2);if(!HEAP32[$0+8>>2]){HEAP32[$0+8>>2]=1;HEAP32[$0>>2]=1}HEAP32[$1>>2]=$2}global$0=$7+192|0;return}switch($4-1|0){case 10:case 13:break label$12;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 11:case 12:break label$13;default:break label$11}}if($1){$5=HEAP32[$0+60>>2];$6=HEAP32[$5+4>>2];$4=$6+1|0;$3=HEAP32[$5+8>>2];label$34:{if($4>>>0<=$3>>>0){$3=HEAP32[$5>>2];break label$34}if($3>>>0>=2147483646){luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+8>>2]=123718;HEAP32[$7+4>>2]=$3;HEAP32[$7>>2]=$7+112;luaO_pushfstring($4,123695,$7);luaD_throw(HEAP32[$0+52>>2],3);$3=HEAP32[$5+8>>2]}$4=HEAP32[$0+52>>2];$6=$3<<1;label$37:{if(($6|0)!=-2){$3=luaM_realloc_($4,HEAP32[$5>>2],$3,$6);break label$37}$3=luaM_toobig($4)}HEAP32[$5+8>>2]=$6;HEAP32[$5>>2]=$3;$6=HEAP32[$5+4>>2];$4=$6+1|0}HEAP32[$5+4>>2]=$4;HEAP8[$3+$6|0]=$8;$4=HEAP32[$0+56>>2];$3=HEAP32[$4>>2];HEAP32[$4>>2]=$3+ -1;if($3){$3=$4;$4=HEAP32[$4+4>>2];HEAP32[$3+4>>2]=$4+1;HEAP32[$0>>2]=HEAPU8[$4|0];continue}HEAP32[$0>>2]=luaZ_fill($4);continue}$4=HEAP32[$0+56>>2];$3=HEAP32[$4>>2];HEAP32[$4>>2]=$3+ -1;if($3){$3=$4;$4=HEAP32[$4+4>>2];HEAP32[$3+4>>2]=$4+1;HEAP32[$0>>2]=HEAPU8[$4|0];continue}HEAP32[$0>>2]=luaZ_fill($4);continue}$5=HEAP32[$0+60>>2];$3=HEAP32[$5+4>>2];$6=$3+1|0;$4=HEAP32[$5+8>>2];label$41:{if($6>>>0<=$4>>>0){$4=HEAP32[$5>>2];break label$41}if($4>>>0>=2147483646){luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+88>>2]=123718;HEAP32[$7+84>>2]=$3;HEAP32[$7+80>>2]=$7+112;luaO_pushfstring($4,123695,$7+80|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$5+8>>2]}$3=HEAP32[$0+52>>2];$6=$4<<1;label$44:{if(($6|0)!=-2){$4=luaM_realloc_($3,HEAP32[$5>>2],$4,$6);break label$44}$4=luaM_toobig($3)}HEAP32[$5+8>>2]=$6;HEAP32[$5>>2]=$4;$3=HEAP32[$5+4>>2];$6=$3+1|0}HEAP32[$5+4>>2]=$6;HEAP8[$4+$3|0]=10;inclinenumber($0);if($1){continue}HEAP32[HEAP32[$0+60>>2]+4>>2]=0;continue}luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+40>>2]=$9;HEAP32[$7+36>>2]=$3;HEAP32[$7+32>>2]=$7+112;$4=luaO_pushfstring($4,123695,$7+32|0);$3=HEAP32[$0+52>>2];HEAP32[$7+20>>2]=123677;HEAP32[$7+16>>2]=$4;luaO_pushfstring($3,123705,$7+16|0);luaD_throw(HEAP32[$0+52>>2],3);continue}}function dmGui__SetNodeParent_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20int_2c_20bool_29($0,$1,$2,$3){var $4=0,$5=Math_fround(0),$6=0,$7=0,$8=0,$9=Math_fround(0),$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=0,$21=Math_fround(0),$22=Math_fround(0);$4=global$0-128|0;global$0=$4;label$1:{label$2:{label$3:{label$4:{if(($1|0)==($2|0)){$12=-8;break label$4}label$6:{label$7:{label$8:{$6=HEAP32[$0+32>>2];$7=(HEAP32[$0+36>>2]-$6|0)/576|0;$10=$1&65535;if($7>>>0>$10>>>0){$16=Math_imul($10,576)+$6|0;if(HEAPU16[$16+552>>1]!=($1>>>16|0)){break label$2}$13=65535;$14=Math_imul($10,576)+$6|0;$8=HEAPU16[$14+554>>1];if(($8|0)!=($1&65535)){break label$1}label$11:{if(!$2){break label$11}$1=$2&65535;if($7>>>0<=$1>>>0){break label$3}$13=Math_imul($1,576);$11=$13+$6|0;if(HEAPU16[$11+552>>1]!=($2>>>16|0)){break label$2}$13=HEAPU16[($6+$13|0)+554>>1];if(($13|0)!=($2&65535)){break label$1}while(1){$1=HEAPU16[(Math_imul($1,576)+$6|0)+560>>1];if(($1|0)==65535){break label$11}if(($1|0)==($8|0)){$12=-8;break label$4}if($7>>>0>$1>>>0){continue}break}break label$3}$20=Math_imul($10,576)+$6|0;if(HEAPU16[$20+560>>1]==($13|0)){break label$4}if(!$3){break label$6}$8=0;dmGui__CalculateNodeTransform_28dmGui__Scene__2c_20dmGui__InternalNode__2c_20dmGui__CalculateNodeTransformFlags_2c_20Vectormath__Aos__Matrix4__29($0,$16,0,$4- -64|0);if($11){dmGui__CalculateNodeTransform_28dmGui__Scene__2c_20dmGui__InternalNode__2c_20dmGui__CalculateNodeTransformFlags_2c_20Vectormath__Aos__Matrix4__29($0,$11,0,$4);$5=HEAPF32[$11+388>>2];$12=HEAP32[$11+388>>2];$9=HEAPF32[$11+384>>2];$3=HEAP32[$11+384>>2];$1=HEAP32[(Math_imul($10,576)+$6|0)+412>>2];$2=$1>>>16&3;if($2>>>0>1){$2=$3;$7=$12;$17=0;break label$7}if($2-1){$2=(wasm2js_scratch_store_f32($9<$5?$9:$5),wasm2js_scratch_load_i32(0));break label$8}$2=(wasm2js_scratch_store_f32($9>$5?$9:$5),wasm2js_scratch_load_i32(0));break label$8}$1=Math_imul($10,576)+$6|0;$15=$1;$2=HEAP32[$0+12>>2];$21=Math_fround(HEAPU32[$2+24>>2]);$18=Math_fround(HEAPU32[$0+380>>2]);$9=Math_fround($21/$18);$12=(wasm2js_scratch_store_f32($9),wasm2js_scratch_load_i32(0));$19=Math_fround(HEAPU32[$2+20>>2]);$22=Math_fround(HEAPU32[$0+376>>2]);$5=Math_fround($19/$22);$3=(wasm2js_scratch_store_f32($5),wasm2js_scratch_load_i32(0));$1=HEAPU16[$1+414>>1]&3;label$17:{if($1>>>0>1){$2=$3;$7=$12;break label$17}$5=$1-1|0?$5<$9?$5:$9:$5>$9?$5:$9;$9=$5;$2=(wasm2js_scratch_store_f32($5),wasm2js_scratch_load_i32(0));$7=$2}HEAP32[$4+24>>2]=0;HEAP32[$4+28>>2]=0;HEAP32[$4+20>>2]=$7;HEAP32[$4+44>>2]=0;HEAP32[$4+48>>2]=0;HEAP32[$4+40>>2]=1065353216;HEAP32[$4+52>>2]=0;HEAP32[$4+56>>2]=0;HEAP32[$4+60>>2]=1065353216;HEAP32[$4+4>>2]=0;HEAP32[$4+8>>2]=0;HEAP32[$4+12>>2]=0;HEAP32[$4+16>>2]=0;HEAP32[$4+32>>2]=0;HEAP32[$4+36>>2]=0;HEAP32[$4>>2]=$2;$8=(wasm2js_scratch_store_f32(Math_fround(Math_fround($19-Math_fround($22*$5))*Math_fround(.5))),wasm2js_scratch_load_i32(0));$1=HEAP32[$15+412>>2];$17=(wasm2js_scratch_store_f32(Math_fround(Math_fround($21-Math_fround($18*$9))*Math_fround(.5))),wasm2js_scratch_load_i32(0));break label$7}break label$3}$7=$2;$17=0}$15=$8;$8=($1>>>8&3)+ -1|0;$5=Math_fround(Math_fround(HEAPF32[$4+112>>2]-HEAPF32[$4+48>>2])-(wasm2js_scratch_store_i32(0,$8>>>0<2?0:$15),wasm2js_scratch_load_f32()));$18=HEAPF32[$4+56>>2];$19=HEAPF32[$4+120>>2];$15=($1>>>10&3)+ -1|0;$9=Math_fround(Math_fround(HEAPF32[$4+116>>2]-HEAPF32[$4+52>>2])-(wasm2js_scratch_store_i32(0,$15>>>0<2?0:$17),wasm2js_scratch_load_f32()));HEAPF32[$16>>2]=$8>>>0>1?Math_fround(Math_fround(Math_fround(1)/(wasm2js_scratch_store_i32(0,$2),wasm2js_scratch_load_f32()))*$5):Math_fround($5/(wasm2js_scratch_store_i32(0,$3),wasm2js_scratch_load_f32()));$2=Math_imul($10,576)+$6|0;HEAP32[$2+12>>2]=1065353216;HEAPF32[$2+8>>2]=$19-$18;HEAPF32[$2+4>>2]=$15>>>0>1?Math_fround(Math_fround(Math_fround(1)/(wasm2js_scratch_store_i32(0,$7),wasm2js_scratch_load_f32()))*$9):Math_fround($9/(wasm2js_scratch_store_i32(0,$12),wasm2js_scratch_load_f32()));HEAP32[(Math_imul($10,576)+$6|0)+412>>2]=$1|2097152}dmGui__RemoveFromNodeList_28dmGui__Scene__2c_20dmGui__InternalNode__29($0,$16);$2=65535;$8=$0+366|0;$3=$11+564|0;$7=HEAPU16[(($13|0)==65535?$8:$3)>>1];$1=0;label$25:{if(($7|0)==65535){break label$25}$1=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$1|0)/576>>>0<=$7>>>0){break label$3}$1=$1+Math_imul($7,576)|0}if($11){$2=HEAPU16[$11+554>>1];$8=$3;$3=$11+562|0}else{$3=$0+364|0}HEAP16[$20+560>>1]=$2;if($1){$2=HEAPU16[$1+554>>1];label$29:{if(($2|0)==HEAPU16[$8>>1]){HEAP16[$8>>1]=HEAPU16[$14+554>>1];HEAP16[(Math_imul($10,576)+$6|0)+558>>1]=65535;$2=HEAPU16[$1+554>>1];break label$29}$3=HEAPU16[$1+558>>1];if(($3|0)==65535){break label$29}$7=HEAP32[$0+36>>2];$0=HEAP32[$0+32>>2];if(($7-$0|0)/576>>>0<=$3>>>0){break label$3}HEAP16[($0+Math_imul($3,576)|0)+556>>1]=HEAPU16[$14+554>>1];HEAP16[(Math_imul($10,576)+$6|0)+558>>1]=$3}HEAP16[$1+558>>1]=HEAPU16[$14+554>>1];HEAP16[(Math_imul($10,576)+$6|0)+556>>1]=$2;$12=0;break label$4}$1=Math_imul($10,576)+$6|0;HEAP16[$1+556>>1]=65535;HEAP16[$1+558>>1]=HEAPU16[$3>>1];$1=HEAPU16[$3>>1];label$31:{if(($1|0)==65535){$1=HEAPU16[$14+554>>1];break label$31}$2=HEAP32[$0+36>>2];$0=HEAP32[$0+32>>2];if(($2-$0|0)/576>>>0<=$1>>>0){break label$3}$0=$0+Math_imul($1,576)|0;$1=HEAPU16[$14+554>>1];HEAP16[$0+556>>1]=$1}HEAP16[$3>>1]=$1;$12=0;if(HEAPU16[$8>>1]!=65535){break label$4}HEAP16[$8>>1]=HEAPU16[$14+554>>1]}global$0=$4+128|0;return $12}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}function propagatemark($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$3=HEAP32[$0+36>>2];HEAP8[$3+5|0]=HEAPU8[$3+5|0]|4;label$1:{label$2:{label$3:{label$4:{$1=HEAPU8[$3+4|0]+ -5|0;label$5:{if($1>>>0>4){break label$5}label$6:{switch($1-1|0){default:HEAP32[$0+36>>2]=HEAP32[$3+24>>2];$1=HEAP32[$3+8>>2];label$10:{if(!$1){break label$10}label$12:{if(!(HEAPU8[$1+5|0]&3)){break label$12}reallymarkobject($0,$1);$1=HEAP32[$3+8>>2];if($1){break label$12}break label$10}if(HEAPU8[$1+6|0]&8){break label$10}$2=luaT_gettm($1,3,HEAP32[$0+200>>2]);if(!$2|HEAP32[$2+8>>2]!=4){break label$10}$2=HEAP32[$2>>2]+16|0;$1=strchr($2,107);$2=strchr($2,118);if($1|$2){HEAP8[$3+5|0]=HEAPU8[$3+5|0]&231|((($2|0)!=0)<<4|(($1|0)!=0)<<3);HEAP32[$3+24>>2]=HEAP32[$0+44>>2];HEAP32[$0+44>>2]=$3}if($2?$1:0){break label$2}$6=($1|0)!=0;if($2){break label$4}}$1=HEAP32[$3+28>>2];if($1){while(1){$1=$1+ -1|0;$2=HEAP32[$3+12>>2]+($1<<4)|0;label$17:{if(HEAP32[$2+8>>2]<4){break label$17}$2=HEAP32[$2>>2];if(!(HEAPU8[$2+5|0]&3)){break label$17}reallymarkobject($0,$2)}if($1){continue}break}}$1=-1<>2]+($1<<5)|0;$4=HEAP32[$1+8>>2];label$21:{if($4){if(($4|0)<4){break label$21}$1=HEAP32[$1>>2];if(!(HEAPU8[$1+5|0]&3)){break label$21}reallymarkobject($0,$1);break label$21}if(HEAP32[$1+24>>2]<4){break label$21}HEAP32[$1+24>>2]=11}$1=$2+ -1|0;if($2){continue}break label$18}}while(1){$2=$1;$1=HEAP32[$3+16>>2]+($1<<5)|0;$7=$1;$5=HEAP32[$1+24>>2];$4=HEAP32[$1+8>>2];label$24:{if(!$4){if(($5|0)<4){break label$24}HEAP32[$7+24>>2]=11;break label$24}label$26:{if(($5|0)<4){break label$26}$5=HEAP32[$1+16>>2];if(!(HEAPU8[$5+5|0]&3)){break label$26}reallymarkobject($0,$5);$4=HEAP32[$1+8>>2]}if(($4|0)<4){break label$24}$1=HEAP32[$1>>2];if(!(HEAPU8[$1+5|0]&3)){break label$24}reallymarkobject($0,$1)}$1=$2+ -1|0;if($2){continue}break}}$1=0;break label$3;case 0:HEAP32[$0+36>>2]=HEAP32[$3+8>>2];$2=HEAP32[$3+12>>2];if(HEAPU8[$2+5|0]&3){reallymarkobject($0,$2)}label$28:{if(HEAPU8[$3+6|0]){$1=0;$2=HEAPU8[$3+7|0];if(!$2){$2=0;break label$28}while(1){$4=($1<<4)+$3|0;label$32:{if(HEAP32[$4+32>>2]<4){break label$32}$4=HEAP32[$4+24>>2];if(!(HEAPU8[$4+5|0]&3)){break label$32}reallymarkobject($0,$4);$2=HEAPU8[$3+7|0]}$1=$1+1|0;if($1>>>0<($2&255)>>>0){continue}break}break label$28}$2=HEAP32[$3+16>>2];if(HEAPU8[$2+5|0]&3){reallymarkobject($0,$2)}$1=0;$2=HEAPU8[$3+7|0];if(!$2){$2=0;break label$28}while(1){$4=HEAP32[(($1<<2)+$3|0)+20>>2];if(HEAPU8[$4+5|0]&3){reallymarkobject($0,$4);$2=HEAPU8[$3+7|0]}$1=$1+1|0;if($1>>>0<($2&255)>>>0){continue}break}}$0=$2&255;if(HEAPU8[$3+6|0]){return($0<<4)+24|0}return($0<<2)+20|0;case 2:HEAP32[$0+36>>2]=HEAP32[$3+108>>2];HEAP32[$3+108>>2]=HEAP32[$0+40>>2];HEAP32[$0+40>>2]=$3;HEAP8[$3+5|0]=HEAPU8[$3+5|0]&251;label$38:{if(HEAP32[$3+80>>2]<4){break label$38}$2=HEAP32[$3+72>>2];if(!(HEAPU8[$2+5|0]&3)){break label$38}reallymarkobject($0,$2)}$4=HEAP32[$3+8>>2];$2=$4;$1=HEAP32[$3+40>>2];$6=HEAP32[$3+20>>2];if($1>>>0<=$6>>>0){$2=$4;while(1){$5=HEAP32[$1+8>>2];$2=$2>>>0<$5>>>0?$5:$2;$1=$1+24|0;if($1>>>0<=$6>>>0){continue}break}}$1=HEAP32[$3+32>>2];if($1>>>0<$4>>>0){while(1){label$43:{if(HEAP32[$1+8>>2]<4){break label$43}$6=HEAP32[$1>>2];if(!(HEAPU8[$6+5|0]&3)){break label$43}reallymarkobject($0,$6);$4=HEAP32[$3+8>>2]}$1=$1+16|0;if($1>>>0<$4>>>0){continue}break}}if($1>>>0<=$2>>>0){while(1){HEAP32[$1+8>>2]=0;$1=$1+16|0;if($1>>>0<=$2>>>0){continue}break}}$0=HEAP32[$3+48>>2];label$46:{if(($0|0)>2e4){break label$46}$2=$2-HEAP32[$3+32>>2]|0;if(!(($0|0)<17|(HEAP32[$3+20>>2]-HEAP32[$3+40>>2]|0)/24<<2>=($0|0))){luaD_reallocCI($3,$0>>>1|0)}$0=HEAP32[$3+44>>2];if($2>>2>=($0|0)|($0|0)<91){break label$46}luaD_reallocstack($3,$0>>>1|0)}return(Math_imul(HEAP32[$3+48>>2],24)+(HEAP32[$3+44>>2]<<4)|0)+120|0;case 1:break label$5;case 3:break label$6}}HEAP32[$0+36>>2]=HEAP32[$3+68>>2];$2=HEAP32[$3+32>>2];if($2){HEAP8[$2+5|0]=HEAPU8[$2+5|0]&252}$2=HEAP32[$3+40>>2];if(($2|0)>=1){$1=0;while(1){$4=HEAP32[$3+8>>2]+($1<<4)|0;label$51:{if(HEAP32[$4+8>>2]<4){break label$51}$4=HEAP32[$4>>2];if(!(HEAPU8[$4+5|0]&3)){break label$51}reallymarkobject($0,$4);$2=HEAP32[$3+40>>2]}$1=$1+1|0;if(($1|0)<($2|0)){continue}break}}$2=HEAP32[$3+36>>2];if(($2|0)>=1){$1=0;while(1){$4=HEAP32[HEAP32[$3+28>>2]+($1<<2)>>2];if($4){HEAP8[$4+5|0]=HEAPU8[$4+5|0]&252;$2=HEAP32[$3+36>>2]}$1=$1+1|0;if(($1|0)<($2|0)){continue}break}}$2=HEAP32[$3+52>>2];if(($2|0)>=1){$1=0;while(1){$4=HEAP32[HEAP32[$3+16>>2]+($1<<2)>>2];if(!(!$4|!(HEAPU8[$4+5|0]&3))){reallymarkobject($0,$4);$2=HEAP32[$3+52>>2]}$1=$1+1|0;if(($1|0)<($2|0)){continue}break}}$0=HEAP32[$3+56>>2];if(($0|0)>=1){$1=0;while(1){$2=HEAP32[HEAP32[$3+24>>2]+Math_imul($1,12)>>2];if($2){HEAP8[$2+5|0]=HEAPU8[$2+5|0]&252;$0=HEAP32[$3+56>>2]}$1=$1+1|0;if(($1|0)<($0|0)){continue}break}$2=HEAP32[$3+52>>2]}$2=((Math_imul($0,12)+(HEAP32[$3+40>>2]<<4)|0)+(HEAP32[$3+36>>2]+(HEAP32[$3+48>>2]+(HEAP32[$3+44>>2]+$2|0)|0)<<2)|0)+76|0}return $2}$2=-1<>2]+($2<<5)|0;if(!(HEAP32[$2+8>>2]|HEAP32[$2+24>>2]<4)){HEAP32[$2+24>>2]=11}$2=$0+ -1|0;$1=1;if($0){continue}break label$3}}while(1){$4=$2;$2=HEAP32[$3+16>>2]+($2<<5)|0;$5=$2;$1=HEAP32[$2+24>>2];label$65:{if(HEAP32[$2+8>>2]){if(($1|0)<4){break label$65}$2=HEAP32[$2+16>>2];if(!(HEAPU8[$2+5|0]&3)){break label$65}reallymarkobject($0,$2);break label$65}if(($1|0)<4){break label$65}HEAP32[$5+24>>2]=11}$2=$4+ -1|0;$1=1;if($4){continue}break}}if(!($1|$6)){break label$1}}HEAP8[$3+5|0]=HEAPU8[$3+5|0]&251}return((HEAP32[$3+28>>2]<<4)+(32<>2]);$4=!glfwOpenWindow(HEAP32[$1+32>>2],HEAP32[$1+36>>2],8,8,8,8,32,8,(HEAPU8[$1+48|0]?65538:65537)|0);$3=-2;if($4){break label$4}glfwSetWindowSizeCallback(711);glfwSetWindowCloseCallback(712);glfwSetWindowFocusCallback(713);glfwSetWindowIconifyCallback(714);glfwSwapInterval(1);if(HEAPU8[HEAP32[147660]+96|0]&8){$3=glGetError()|0;if($3){break label$1}}HEAP32[$0+4>>2]=HEAP32[$1>>2];HEAP32[$0+8>>2]=HEAP32[$1+4>>2];HEAP32[$0+12>>2]=HEAP32[$1+8>>2];HEAP32[$0+16>>2]=HEAP32[$1+12>>2];HEAP32[$0+20>>2]=HEAP32[$1+16>>2];HEAP32[$0+24>>2]=HEAP32[$1+20>>2];HEAP32[$0+28>>2]=HEAP32[$1+24>>2];HEAP32[$0+32>>2]=HEAP32[$1+28>>2];HEAP8[$0+96|0]=HEAPU8[$0+96|0]|4;HEAP32[$0+36>>2]=HEAP32[$1+32>>2];HEAP32[$0+40>>2]=HEAP32[$1+36>>2];glfwGetWindowSize($2+92|0,$2+88|0);HEAP32[$0+44>>2]=HEAP32[$2+92>>2];$3=HEAP32[$2+88>>2];HEAP32[$0+52>>2]=0;HEAP32[$0+48>>2]=$3;if(HEAPU8[$1+49|0]){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,79677,79808,0);HEAP32[$2+64>>2]=glGetString(7937);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,79677,79823,$2- -64|0);HEAP32[$2+48>>2]=glGetString(7938);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,79677,79837,$2+48|0);HEAP32[$2+32>>2]=glGetString(7936);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,79677,79850,$2+32|0);HEAP32[$2+16>>2]=glGetString(7939);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,79677,79862,$2+16|0)}$1=glGetString(7939)|0;if(!HEAP32[147659]){$3=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,80294,8);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($3+($2+96|0)|0,79899,256-$3|0);$3=0;label$9:{if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29($2+96|0,$1)){$3=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,79878,255);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($3+($2+96|0)|0,80318,256-$3|0);$3=glfwGetProcAddress($2+96|0)|0;if($3){break label$9}}$4=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,80302,8);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($4+($2+96|0)|0,79899,256-$4|0);if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29($2+96|0,$1)){$3=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,79878,255);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($3+($2+96|0)|0,80322,256-$3|0);$3=glfwGetProcAddress($2+96|0)|0;if($3){break label$9}}$4=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,80310,8);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($4+($2+96|0)|0,79899,256-$4|0);if(!dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29($2+96|0,$1)){break label$9}$3=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,79878,255);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($3+($2+96|0)|0,80326,256-$3|0);$3=glfwGetProcAddress($2+96|0)|0}HEAP32[147659]=$3}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(79919,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|61440}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(79952,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|192}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(79984,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|256}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(80016,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|512}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(80048,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|65536}HEAP32[$0+88>>2]=16;HEAP8[$0+96|0]=HEAPU8[$0+96|0]|2;HEAP32[$2+84>>2]=1024;glGetIntegerv(3379,$2+84|0);HEAP32[$0+56>>2]=HEAP32[$2+84>>2];label$17:{if(!(HEAPU8[HEAP32[147660]+96|0]&8)){break label$17}if(!glGetError()){break label$17}while(1){if(glGetError()){continue}break}}HEAP32[$2+80>>2]=65536;glGetIntegerv(33e3,$2+80|0);$3=HEAP32[$2+80>>2];HEAP32[$0+68>>2]=($3|0)>65536?$3:65536;label$19:{if(!(HEAPU8[HEAP32[147660]+96|0]&8)){break label$19}if(!glGetError()){break label$19}while(1){if(glGetError()){continue}break}}HEAP32[$2+76>>2]=65536;glGetIntegerv(33001,$2+76|0);$3=HEAP32[$2+76>>2];HEAP32[$0+72>>2]=($3|0)>65536?$3:65536;label$21:{if(!(HEAPU8[HEAP32[147660]+96|0]&8)){break label$21}if(!glGetError()){break label$21}while(1){if(glGetError()){continue}break}}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(80048,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|65536}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(80084,$1)){HEAP32[$0+84>>2]=HEAP32[$0+84>>2]|2}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,83810,83819,0);$3=0}global$0=$2+432|0;return $3|0}__assert_fail(79713,79721,646,79782);abort()}__assert_fail(79799,79721,647,79782);abort()}dmGraphics__LogGLError_28int_2c_20char_20const__2c_20int_29($3,79782,760);__assert_fail(79806,79721,760,79782);abort()}function dmGameSystem__RenderParticlefxNodes_28dmGui__Scene__2c_20dmGui__RenderEntry_20const__2c_20Vectormath__Aos__Matrix4_20const__2c_20float_20const__2c_20dmGui__StencilScope_20const___2c_20unsigned_20int_2c_20void__29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0,$9=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=Math_fround(0);$7=global$0-80|0;global$0=$7;$16=HEAP32[$1+12>>2];$9=HEAP32[$6+8>>2];label$1:{label$2:{label$3:{if((dmGui__GetNodeType_28dmGui__Scene__2c_20unsigned_20int_29($0,HEAP32[$1+8>>2])|0)==5){$15=HEAP32[$9>>2];$17=(HEAP32[$9+4>>2]-$15|0)/752|0;$8=$17+1|0;if((HEAP32[$9+8>>2]-$15|0)/752>>>0<$8>>>0){break label$1}$12=HEAP32[HEAP32[$9+60>>2]+28>>2];$10=HEAP32[$9+72>>2];$8=Math_imul($8,752);HEAP32[$9+4>>2]=$8+$15;if(($8|0)/752>>>0<=$17>>>0){break label$3}$20=Math_imul($12,216)-$10|0;$8=HEAP32[$6+12>>2];HEAP32[$6+12>>2]=$8+1;$12=Math_imul($17,752)+$15|0;HEAP32[$12+736>>2]=$8;dmRender__RenderObject__Init_28_29($12);HEAP32[$12+644>>2]=HEAP32[$9+32>>2];$8=HEAP32[$9+36>>2];HEAP32[$12+688>>2]=1;HEAP32[$12+640>>2]=$8;$21=$9+44|0;HEAP32[$12+724>>2]=(HEAP32[$21>>2]-HEAP32[$9+40>>2]|0)/36;HEAP32[$12+652>>2]=HEAP32[$6+4>>2];HEAP32[$12+656>>2]=HEAP32[$16+72>>2];if(!$5){break label$2}$8=0;while(1){$10=($8<<4)+$1|0;if(!dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($0,HEAP32[$10+8>>2])){$10=HEAP32[$10+12>>2];$18=dmParticle__GetEmitterVertexCount_28dmParticle__Context__2c_20unsigned_20int_2c_20unsigned_20int_29(HEAP32[$9+60>>2],HEAP32[$10+84>>2],HEAP32[$10+88>>2]);dmTransform__ToTransform_28Vectormath__Aos__Matrix4_20const__29($7+32|0,($8<<6)+$2|0);$14=HEAP32[$10+84>>2];$13=HEAP32[$9+60>>2];$22=HEAPF32[$7+64>>2];HEAP32[$7+24>>2]=HEAP32[$7+56>>2];$19=HEAP32[$7+52>>2];HEAP32[$7+16>>2]=HEAP32[$7+48>>2];HEAP32[$7+20>>2]=$19;dmParticle__SetPosition_28dmParticle__Context__2c_20unsigned_20int_2c_20Vectormath__Aos__Point3_20const__29($13,$14,$7+16|0);$14=HEAP32[$10+84>>2];$13=HEAP32[$9+60>>2];$19=HEAP32[$7+36>>2];HEAP32[$7+16>>2]=HEAP32[$7+32>>2];HEAP32[$7+20>>2]=$19;$19=HEAP32[$7+44>>2];HEAP32[$7+24>>2]=HEAP32[$7+40>>2];HEAP32[$7+28>>2]=$19;dmParticle__SetRotation_28dmParticle__Context__2c_20unsigned_20int_2c_20Vectormath__Aos__Quat_20const__29($13,$14,$7+16|0);dmParticle__SetScale_28dmParticle__Context__2c_20unsigned_20int_2c_20float_29(HEAP32[$9+60>>2],HEAP32[$10+84>>2],$22);$11=$11+$18|0}$8=$8+1|0;if(($8|0)!=($5|0)){continue}break}break label$2}__assert_fail(41563,41335,888,41604);abort()}__assert_fail(42525,42362,430,42202);abort()}$18=$9+40|0;label$7:{label$8:{$14=$9+48|0;$8=HEAP32[$14>>2];$10=HEAP32[$9+44>>2];$2=($20>>>0)/36|0;$2=$11>>>0<$2>>>0?$11:$2;if(($8-$10|0)/36>>>0<$2>>>0){if(HEAP8[$9+52|0]&1){break label$8}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29((($8-HEAP32[$18>>2]|0)/36|0)+($2>>>0>128?$2:128)|0,36,$18,$14,$21);$10=HEAP32[$21>>2]}if(!$5){$2=0;break label$7}$2=0;$8=0;while(1){$11=($8<<4)+$1|0;$13=HEAP32[$11+8>>2];if(!dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($0,$13)){dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($7+32|0,$0,$13,3);HEAP32[$7+28>>2]=HEAP32[($8<<2)+$3>>2];HEAP32[$7+24>>2]=HEAP32[$7+40>>2];$13=HEAP32[$7+36>>2];HEAP32[$7+16>>2]=HEAP32[$7+32>>2];HEAP32[$7+20>>2]=$13;$11=HEAP32[$11+12>>2];HEAP32[$7+12>>2]=0;dmParticle__GenerateVertexData_28dmParticle__Context__2c_20float_2c_20unsigned_20int_2c_20unsigned_20int_2c_20Vectormath__Aos__Vector4_20const__2c_20void__2c_20unsigned_20int_2c_20unsigned_20int__2c_20dmParticle__ParticleVertexFormat_29(HEAP32[$9+60>>2],HEAPF32[$9+76>>2],HEAP32[$11+84>>2],HEAP32[$11+88>>2],$7+16|0,$10,$20,$7+12|0,1);$11=HEAP32[$7+12>>2];$20=$20-$11|0;$11=($11>>>0)/36|0;$2=$11+$2|0;$10=Math_imul($11,36)+$10|0}$8=$8+1|0;if(($8|0)!=($5|0)){continue}break}break label$7}__assert_fail(42438,42362,444,42513);abort()}HEAP32[$9+72>>2]=HEAP32[$9+72>>2]+Math_imul($2,36);$1=Math_imul($17,752)+$15|0;HEAP32[$1+728>>2]=$2;$0=HEAP32[(HEAP32[$16+68>>2]<<2)+584516>>2];label$13:{if($0>>>0<4){$0=$0<<2;HEAP32[$1+700>>2]=HEAP32[$0+42696>>2];HEAP32[$1+696>>2]=HEAP32[$0+42680>>2];$0=HEAPU8[$1+734|0]|1;HEAP8[$1+734|0]=$0;if(HEAP32[$16+80>>2]){$2=0;while(1){$0=HEAP32[$16+76>>2]+($2<<5)|0;dmRender__EnableRenderObjectConstant_28dmRender__RenderObject__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__29($12,HEAP32[$0>>2],HEAP32[$0+4>>2],$0+16|0);$2=$2+1|0;if($2>>>0>2]){continue}break}$0=HEAPU8[$1+734|0]}$3=HEAP32[$4>>2];HEAP8[$1+734|0]=$0|2;$0=Math_imul($17,752)+$15|0;$1=$0;label$17:{label$18:{if($3){HEAP32[$1+704>>2]=5;HEAP32[$0+716>>2]=2;HEAP32[$0+708>>2]=0;HEAP32[$0+712>>2]=2;$2=$0+720|0;$1=HEAPU8[$3|0]|HEAP32[$0+720>>2]&-256;HEAP32[$2>>2]=$1;$1=$1&-65281|HEAPU8[$3+1|0]<<8;HEAP32[$0+720>>2]=$1;$1=$1&-16711681|HEAPU8[$3+2|0]<<16;HEAP32[$0+720>>2]=$1;HEAP32[$0+720>>2]=$1&-251658241|(HEAPU8[$3+3|0]&15)<<24;if(!HEAPU8[$6+16|0]){break label$17}HEAP8[$6+16|0]=0;$0=HEAP32[$0+720>>2]|268435456;break label$18}HEAP32[$1+704>>2]=7;HEAP32[$0+716>>2]=0;HEAP32[$0+708>>2]=0;HEAP32[$0+712>>2]=0;$2=$0+720|0;$0=HEAP32[$2>>2]&-268435456|268435200}HEAP32[$2>>2]=$0}$0=HEAP32[$18>>2];$1=($10-$0|0)/36|0;if((HEAP32[$14>>2]-$0|0)/36>>>0<$1>>>0){break label$13}HEAP32[$21>>2]=$0+Math_imul($1,36);global$0=$7+80|0;return}HEAP32[$7>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,40265,42213,$7);__assert_fail(42237,41335,726,42239);abort()}}__assert_fail(42578,42362,457,42597);abort()}function dmScript__Slerp_28lua_State__29($0){$0=$0|0;var $1=0,$2=Math_fround(0),$3=Math_fround(0),$4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=Math_fround(0),$18=0;$5=global$0-192|0;global$0=$5;$4=dmScript__GetUserType_28lua_State__2c_20int_29($0,2);label$1:{if(($4|0)==HEAP32[279888]){break label$1}$1=1;if(($4|0)==HEAP32[279889]){break label$1}$1=2;if(($4|0)==HEAP32[279890]){break label$1}$1=3;if(($4|0)==HEAP32[279891]){break label$1}$1=($4|0)==HEAP32[279892]?4:5}$4=dmScript__GetUserType_28lua_State__2c_20int_29($0,3);label$2:{if(($4|0)==HEAP32[279888]){break label$2}$16=1;if(($4|0)==HEAP32[279889]){break label$2}$16=2;if(($4|0)==HEAP32[279890]){break label$2}$16=3;if(($4|0)==HEAP32[279891]){break label$2}$16=($4|0)==HEAP32[279892]?4:5}label$3:{label$4:{if(($1|0)!=($16|0)){break label$4}$18=luaL_checknumber($0,1);if($1>>>0>2){break label$4}$6=Math_fround($18);label$5:{switch($1-1|0){case 1:$1=lua_touserdata($0,2);$4=lua_touserdata($0,3);$7=HEAPF32[$1>>2];$11=HEAPF32[$4>>2];$2=HEAPF32[$1+4>>2];$12=HEAPF32[$4+4>>2];$8=HEAPF32[$1+8>>2];$13=HEAPF32[$4+8>>2];$9=HEAPF32[$1+12>>2];$14=HEAPF32[$4+12>>2];$3=Math_fround(Math_fround(Math_fround(Math_fround($7*$11)+Math_fround($2*$12))+Math_fround($8*$13))+Math_fround($9*$14));if(!!($3>2]=Math_fround($14*$3)+Math_fround($9*$6);HEAPF32[$1+8>>2]=Math_fround($13*$3)+Math_fround($8*$6);HEAPF32[$1+4>>2]=Math_fround($12*$3)+Math_fround($2*$6);HEAPF32[$1>>2]=Math_fround($11*$3)+Math_fround($7*$6);lua_getfield($0,-1e4,117536);lua_setmetatable($0,-2);$0=1;break label$3;case 0:$1=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,2,HEAP32[279889],0);$2=HEAPF32[$1+8>>2];$3=HEAPF32[$1>>2];$7=HEAPF32[$1+4>>2];label$11:{if(!($3!=$3|$7!=$7|$2!=$2)){$8=HEAPF32[$1+12>>2];if($8==$8){break label$11}}$8=HEAPF32[$1+12>>2];HEAPF64[$5+104>>3]=$2;HEAPF64[$5+96>>3]=$7;HEAPF64[$5+112>>3]=$8;HEAPF64[$5+88>>3]=$3;HEAP32[$5+80>>2]=2;luaL_error($0,117725,$5+80|0)}$4=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[279889],0);$3=HEAPF32[$4+8>>2];$8=HEAPF32[$4>>2];$7=HEAPF32[$4+4>>2];label$13:{if(!($8!=$8|$7!=$7|$3!=$3)){$9=HEAPF32[$4+12>>2];if($9==$9){break label$13}}$2=HEAPF32[$4+12>>2];HEAPF64[$5+56>>3]=$3;HEAPF64[$5+48>>3]=$7;HEAPF64[$5- -64>>3]=$2;HEAPF64[$5+40>>3]=$8;HEAP32[$5+32>>2]=3;luaL_error($0,117725,$5+32|0);$9=HEAPF32[$4+12>>2];$3=HEAPF32[$4+8>>2];$7=HEAPF32[$4+4>>2];$8=HEAPF32[$4>>2]}$11=HEAPF32[$1>>2];$12=HEAPF32[$1+4>>2];$13=HEAPF32[$1+8>>2];$14=HEAPF32[$1+12>>2];$2=Math_fround(Math_fround(Math_fround(Math_fround($11*$8)+Math_fround($12*$7))+Math_fround($13*$3))+Math_fround($14*$9));label$15:{if(!!($2>2]=Math_fround($9*$2)+Math_fround($14*$6);HEAPF32[$1+8>>2]=Math_fround($3*$2)+Math_fround($13*$6);HEAPF32[$1+4>>2]=Math_fround($7*$2)+Math_fround($12*$6);HEAPF32[$1>>2]=Math_fround($8*$2)+Math_fround($11*$6);lua_getfield($0,-1e4,117520);lua_setmetatable($0,-2);$0=1;break label$3;default:break label$5}}$1=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,2,HEAP32[279888],0);$2=HEAPF32[$1+8>>2];$3=HEAPF32[$1>>2];$7=HEAPF32[$1+4>>2];if(!($2==$2?!($3!=$3|$7!=$7):0)){HEAPF64[$5+184>>3]=$2;HEAPF64[$5+176>>3]=$7;HEAP32[$5+160>>2]=2;HEAPF64[$5+168>>3]=$3;luaL_error($0,117635,$5+160|0)}$4=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[279888],0);$3=HEAPF32[$4+8>>2];$8=HEAPF32[$4>>2];$7=HEAPF32[$4+4>>2];if(!($3==$3?!($8!=$8|$7!=$7):0)){HEAPF64[$5+152>>3]=$3;HEAPF64[$5+144>>3]=$7;HEAP32[$5+128>>2]=3;HEAPF64[$5+136>>3]=$8;luaL_error($0,117635,$5+128|0);$7=HEAPF32[$4+4>>2];$8=HEAPF32[$4>>2];$3=HEAPF32[$4+8>>2]}$10=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$12=HEAPF32[$1+8>>2];$2=Math_fround(Math_fround(Math_fround($10*$8)+Math_fround($11*$7))+Math_fround($12*$3));label$19:{if(!!($2>2]=Math_fround($3*$2)+Math_fround($12*$6);HEAPF32[$1+4>>2]=Math_fround($7*$2)+Math_fround($11*$6);HEAPF32[$1>>2]=Math_fround($8*$2)+Math_fround($10*$6);lua_getfield($0,-1e4,117504);lua_setmetatable($0,-2);$0=1;break label$3}HEAP32[$5+20>>2]=117536;HEAP32[$5+16>>2]=117568;HEAP32[$5+12>>2]=117504;HEAP32[$5+8>>2]=117568;HEAP32[$5+4>>2]=118981;HEAP32[$5>>2]=117568;$0=luaL_error($0,119467,$5)}global$0=$5+192|0;return $0|0}function b2PrismaticJoint__SolvePositionConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0);$3=global$0-80|0;global$0=$3;$7=HEAPF32[$0+156>>2];$4=HEAPF32[$0+72>>2];$19=HEAP32[$1+24>>2];$8=$19+Math_imul(HEAP32[$0+144>>2],12)|0;$27=HEAPF32[$8+8>>2];$2=cosf($27);$10=HEAPF32[$0+152>>2];$22=HEAPF32[$0+68>>2];$12=sinf($27);$6=HEAPF32[$0+164>>2];$15=HEAPF32[$0+80>>2];$19=$19+Math_imul(HEAP32[$0+148>>2],12)|0;$28=HEAPF32[$19+8>>2];$11=cosf($28);$16=HEAPF32[$0+160>>2];$13=HEAPF32[$0+76>>2];$14=sinf($28);$17=HEAPF32[$0+92>>2];$18=HEAPF32[$0+96>>2];$29=Math_fround(Math_fround($2*$17)-Math_fround($12*$18));$31=HEAPF32[$19>>2];$16=Math_fround($13-$16);$15=Math_fround($15-$6);$6=Math_fround(Math_fround($11*$16)-Math_fround($14*$15));$32=HEAPF32[$8>>2];$13=Math_fround($22-$10);$7=Math_fround($4-$7);$4=Math_fround(Math_fround($2*$13)-Math_fround($12*$7));$10=Math_fround(Math_fround(Math_fround($31+$6)-$32)-$4);$22=Math_fround(Math_fround($12*$17)+Math_fround($2*$18));$33=HEAPF32[$19+4>>2];$14=Math_fround(Math_fround($14*$16)+Math_fround($11*$15));$34=HEAPF32[$8+4>>2];$15=Math_fround(Math_fround($12*$13)+Math_fround($2*$7));$9=Math_fround(Math_fround(Math_fround($33+$14)-$34)-$15);$7=Math_fround(Math_fround($29*$10)+Math_fround($22*$9));$20=Math_fround(-$7);$11=$7>Math_fround(0)?$7:$20;$4=Math_fround($4+$10);$13=Math_fround($15+$9);$15=Math_fround(Math_fround($22*$4)-Math_fround($29*$13));$17=HEAPF32[$0+84>>2];$18=HEAPF32[$0+88>>2];$16=Math_fround(Math_fround($2*$17)-Math_fround($12*$18));$24=Math_fround($16*$13);$13=Math_fround(Math_fround($12*$17)+Math_fround($2*$18));$25=Math_fround($13*$4);$4=Math_fround(Math_fround($28-$27)-HEAPF32[$0+100>>2]);$19=$4>Math_fround(0);$26=Math_fround(-$4);$17=Math_fround(Math_fround($6*$22)-Math_fround($14*$29));$23=Math_fround($14*$16);$21=Math_fround($6*$13);$12=HEAPF32[$0+180>>2];$14=HEAPF32[$0+176>>2];$18=HEAPF32[$0+172>>2];$30=HEAPF32[$0+168>>2];label$1:{if(!HEAPU8[$0+136|0]){$8=0;break label$1}$8=1;$2=Math_fround(Math_fround($16*$10)+Math_fround($13*$9));$6=HEAPF32[$0+124>>2];$5=HEAPF32[$0+120>>2];$10=Math_fround($6-$5);if(!!(($10>Math_fround(0)?$10:Math_fround(-$10))Math_fround(0)?$2:Math_fround(-$2);$11=$11>$5?$11:$5;$5=Math_fround(Math_max($2$6?$11:$6;$2=Math_fround(Math_fround($2-$5)+Math_fround(.004999999888241291));$5=Math_fround(Math_max($2=$6)){$8=0;break label$1}$2=Math_fround($2-$6);$11=$11>$2?$11:$2;$2=Math_fround($2+Math_fround(-.004999999888241291));$5=Math_fround(Math_max($2>2]=$21;HEAPF32[$3+60>>2]=$21;$21=Math_fround($14+$12);HEAPF32[$3+56>>2]=$21==Math_fround(0)?Math_fround(1):$21;HEAPF32[$3+72>>2]=Math_fround($10*$7)+Math_fround($23+Math_fround($6*$4));HEAPF32[$3+52>>2]=$2;HEAPF32[$3+44>>2]=$2;HEAPF32[$3+40>>2]=$9;$2=Math_fround(Math_fround($10*$24)+Math_fround($6*$25));HEAPF32[$3+64>>2]=$2;HEAPF32[$3+48>>2]=$2;HEAPF32[$3+16>>2]=-$5;HEAPF32[$3+12>>2]=$26;HEAPF32[$3+8>>2]=$20;b2Mat33__Solve33_28b2Vec3_20const__29_20const($3+24|0,$3+40|0,$3+8|0);$5=HEAPF32[$3+32>>2];$9=HEAPF32[$3+28>>2];$2=HEAPF32[$3+24>>2];break label$6}$5=Math_fround(0);$23=Math_fround(Math_fround($7*$2)-Math_fround($4*$9));$20=Math_fround($14+$12);$20=$20==Math_fround(0)?Math_fround(1):$20;$9=Math_fround(Math_fround($20*$9)-Math_fround($2*$2));$26=$9!=Math_fround(0)?Math_fround(Math_fround(1)/$9):$9;$9=Math_fround($23*$26);$2=Math_fround(Math_fround(Math_fround($4*$2)-Math_fround($20*$7))*$26)}$8=HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+144>>2],12)|0;$7=Math_fround(Math_fround($22*$2)+Math_fround($13*$5));HEAPF32[$8+4>>2]=$34-Math_fround($30*$7);$4=Math_fround(Math_fround($29*$2)+Math_fround($16*$5));HEAPF32[$8>>2]=$32-Math_fround($30*$4);$8=HEAP32[$1+24>>2];HEAPF32[($8+Math_imul(HEAP32[$0+144>>2],12)|0)+8>>2]=$27-Math_fround($14*Math_fround(Math_fround(Math_fround($15*$2)+$9)+Math_fround($6*$5)));$8=$8+Math_imul(HEAP32[$0+148>>2],12)|0;HEAPF32[$8+4>>2]=$33+Math_fround($18*$7);HEAPF32[$8>>2]=$31+Math_fround($18*$4);HEAPF32[(HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+148>>2],12)|0)+8>>2]=$28+Math_fround($12*Math_fround(Math_fround(Math_fround($17*$2)+$9)+Math_fround($10*$5)));global$0=$3+80|0;return $35<=Math_fround(.03490658849477768)&$11<=Math_fround(.004999999888241291)}function luaD_precall($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$8=global$0-112|0;global$0=$8;if(HEAP32[$1+8>>2]!=6){$6=luaT_gettmbyobj($0,$1,16);$7=HEAP32[$0+32>>2];if(HEAP32[$6+8>>2]!=6){luaG_typeerror($0,$1,123112)}$3=HEAP32[$0+8>>2];if($3>>>0>$1>>>0){while(1){$4=$3+ -16|0;$5=HEAP32[$4+4>>2];HEAP32[$3>>2]=HEAP32[$4>>2];HEAP32[$3+4>>2]=$5;HEAP32[$3+8>>2]=HEAP32[$4+8>>2];$3=$4;if($3>>>0>$1>>>0){continue}break}$3=HEAP32[$0+8>>2]}if((HEAP32[$0+28>>2]-$3|0)<=16){$4=HEAP32[$0+44>>2];luaD_reallocstack($0,($4|0)<1?$4+1|0:$4<<1)}HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;$4=HEAP32[$6+4>>2];$1=HEAP32[$0+32>>2]+($1-$7|0)|0;HEAP32[$1>>2]=HEAP32[$6>>2];HEAP32[$1+4>>2]=$4;HEAP32[$1+8>>2]=HEAP32[$6+8>>2]}$3=HEAP32[$1>>2];$4=HEAP32[$0+32>>2];HEAP32[HEAP32[$0+20>>2]+12>>2]=HEAP32[$0+24>>2];$13=$1-$4|0;label$6:{label$7:{label$8:{if(!HEAPU8[$3+6|0]){$11=HEAP32[$3+16>>2];$4=HEAPU8[$11+75|0];if((HEAP32[$0+28>>2]-HEAP32[$0+8>>2]|0)<=$4<<4){$1=HEAP32[$0+44>>2];luaD_reallocstack($0,($1|0)<($4|0)?$1+$4|0:$1<<1)}$4=HEAP32[$0+32>>2]+$13|0;$5=HEAPU8[$11+74|0];label$11:{if(!$5){$3=$4+16|0;$1=$3+(HEAPU8[$11+73|0]<<4)|0;if(HEAPU32[$0+8>>2]<=$1>>>0){break label$11}HEAP32[$0+8>>2]=$1;break label$11}$3=HEAP32[$0+8>>2];$1=$3-$4>>4;$4=$1+ -1|0;$9=$1;$1=HEAPU8[$11+73|0];if(($9|0)<=($1|0)){while(1){HEAP32[$3+8>>2]=0;$3=$3+16|0;$4=$4+1|0;if(($1|0)!=($4|0)){continue}break}HEAP32[$0+8>>2]=$3;$4=$1}if($5&4){$3=HEAP32[$0+16>>2];if(HEAPU32[$3+68>>2]>=HEAPU32[$3+64>>2]){luaC_step($0)}$9=$4-$1|0;$12=luaH_new($0,$9,1);if(($9|0)>=1){$3=0;$6=0-$9<<4;while(1){$7=$3<<4;$5=HEAP32[$0+8>>2];$3=$3+1|0;$10=luaH_setnum($0,$12,$3);$7=$7+($5+$6|0)|0;$5=HEAP32[$7+4>>2];HEAP32[$10>>2]=HEAP32[$7>>2];HEAP32[$10+4>>2]=$5;HEAP32[$10+8>>2]=HEAP32[$7+8>>2];if(($3|0)!=($9|0)){continue}break}}$3=luaH_setstr($0,$12,luaS_newlstr($0,123117,1));HEAP32[$3+8>>2]=3;HEAPF64[$3>>3]=$9|0;$3=HEAP32[$0+8>>2]}label$19:{if(!$1){break label$19}HEAP32[$0+8>>2]=$3+16;$7=$3-($4<<4)|0;$5=HEAP32[$7+4>>2];HEAP32[$3>>2]=HEAP32[$7>>2];HEAP32[$3+4>>2]=$5;$4=(0-$4<<4)+$3|0;HEAP32[$3+8>>2]=HEAP32[$4+8>>2];HEAP32[$4+8>>2]=0;$4=1;if(($1|0)==1){break label$19}while(1){$10=HEAP32[$0+8>>2];HEAP32[$0+8>>2]=$10+16;$6=$7+($4<<4)|0;$5=HEAP32[$6+4>>2];HEAP32[$10>>2]=HEAP32[$6>>2];HEAP32[$10+4>>2]=$5;HEAP32[$10+8>>2]=HEAP32[$6+8>>2];HEAP32[$6+8>>2]=0;$4=$4+1|0;if(($1|0)!=($4|0)){continue}break}}if($12){$1=HEAP32[$0+8>>2];HEAP32[$0+8>>2]=$1+16;HEAP32[$1+8>>2]=5;HEAP32[$1>>2]=$12}$4=HEAP32[$0+32>>2]+$13|0}$1=HEAP32[$0+20>>2];label$22:{if(($1|0)!=HEAP32[$0+36>>2]){break label$22}$6=HEAP32[$0+48>>2];if(($6|0)>=20001){break label$7}$7=HEAP32[$0+40>>2];$5=$6<<1;label$23:{if(($5|1)>>>0<=178956970){$1=luaM_realloc_($0,$7,Math_imul($6,24),Math_imul($6,48));break label$23}$1=luaM_toobig($0)}HEAP32[$0+48>>2]=$5;HEAP32[$0+40>>2]=$1;HEAP32[$0+36>>2]=($1+Math_imul($5,24)|0)+ -24;$1=$1+Math_imul((HEAP32[$0+20>>2]-$7|0)/24|0,24)|0;HEAP32[$0+20>>2]=$1;if(($6|0)<10001){break label$22}luaG_runerror($0,123119,0);$1=HEAP32[$0+20>>2]}$5=$1+24|0;HEAP32[$0+20>>2]=$5;HEAP32[$1+24>>2]=$3;HEAP32[$1+28>>2]=$4;HEAP32[$0+12>>2]=$3;$6=(HEAPU8[$11+75|0]<<4)+$3|0;HEAP32[$1+32>>2]=$6;$4=HEAP32[$11+12>>2];HEAP32[$0+24>>2]=$4;HEAP32[$1+40>>2]=$2;$7=0;HEAP32[$1+44>>2]=0;$3=HEAP32[$0+8>>2];if($3>>>0<$6>>>0){while(1){HEAP32[$3+8>>2]=0;$3=$3+16|0;if($3>>>0<$6>>>0){continue}break}}HEAP32[$0+8>>2]=$6;if(!(HEAP8[$0+56|0]&1)){break label$8}$3=$4+4|0;HEAP32[$0+24>>2]=$3;$9=$0;$2=HEAP32[$0+68>>2];if(!(!$2|!HEAPU8[$0+57|0])){$1=HEAP32[$0+32>>2];HEAP32[$8+28>>2]=-1;HEAP32[$8+8>>2]=0;HEAP32[$8+104>>2]=($5-HEAP32[$0+40>>2]|0)/24;if((HEAP32[$0+28>>2]-$6|0)<=320){$4=HEAP32[$0+44>>2];luaD_reallocstack($0,($4|0)<20?$4+20|0:$4<<1)}HEAP32[HEAP32[$0+20>>2]+8>>2]=HEAP32[$0+8>>2]+320;HEAP8[$0+57|0]=0;FUNCTION_TABLE[$2]($0,$8+8|0);HEAP8[$0+57|0]=1;$1=HEAP32[$0+32>>2]+($6-$1|0)|0;HEAP32[HEAP32[$0+20>>2]+8>>2]=$1;HEAP32[$0+8>>2]=$1;$3=HEAP32[$0+24>>2]}HEAP32[$9+24>>2]=$3+ -4;break label$8}if((HEAP32[$0+28>>2]-HEAP32[$0+8>>2]|0)<=320){$1=HEAP32[$0+44>>2];luaD_reallocstack($0,($1|0)<20?$1+20|0:$1<<1)}$3=HEAP32[$0+20>>2];label$30:{if(($3|0)!=HEAP32[$0+36>>2]){break label$30}$5=HEAP32[$0+48>>2];if(($5|0)>=20001){break label$6}$3=HEAP32[$0+40>>2];$4=$5<<1;label$31:{if(($4|1)>>>0<=178956970){$1=luaM_realloc_($0,$3,Math_imul($5,24),Math_imul($5,48));break label$31}$1=luaM_toobig($0)}HEAP32[$0+48>>2]=$4;HEAP32[$0+40>>2]=$1;HEAP32[$0+36>>2]=($1+Math_imul($4,24)|0)+ -24;$3=$1+Math_imul((HEAP32[$0+20>>2]-$3|0)/24|0,24)|0;HEAP32[$0+20>>2]=$3;if(($5|0)<10001){break label$30}luaG_runerror($0,123119,0);$3=HEAP32[$0+20>>2]}$4=$3+24|0;HEAP32[$0+20>>2]=$4;$5=HEAP32[$0+32>>2];$1=$5+$13|0;HEAP32[$3+28>>2]=$1;$1=$1+16|0;HEAP32[$3+24>>2]=$1;HEAP32[$0+12>>2]=$1;$7=HEAP32[$0+8>>2];HEAP32[$3+40>>2]=$2;$2=$7+320|0;HEAP32[$3+32>>2]=$2;label$33:{if(!(HEAP8[$0+56|0]&1)){break label$33}$1=HEAP32[$0+68>>2];if(!$1|!HEAPU8[$0+57|0]){break label$33}HEAP32[$8+28>>2]=-1;HEAP32[$8+8>>2]=0;HEAP32[$8+104>>2]=($4-HEAP32[$0+40>>2]|0)/24;if((HEAP32[$0+28>>2]-$7|0)<=320){$4=HEAP32[$0+44>>2];luaD_reallocstack($0,($4|0)<20?$4+20|0:$4<<1)}HEAP32[HEAP32[$0+20>>2]+8>>2]=HEAP32[$0+8>>2]+320;HEAP8[$0+57|0]=0;FUNCTION_TABLE[$1]($0,$8+8|0);HEAP8[$0+57|0]=1;$4=HEAP32[$0+20>>2];$1=HEAP32[$0+32>>2];HEAP32[$4+8>>2]=$1+($2-$5|0);HEAP32[$0+8>>2]=$1+($7-$5|0)}$1=FUNCTION_TABLE[HEAP32[HEAP32[HEAP32[$4+4>>2]>>2]+16>>2]]($0)|0;if(($1|0)<0){$7=2;break label$8}luaD_poscall($0,HEAP32[$0+8>>2]-($1<<4)|0);$7=1}global$0=$8+112|0;return $7}luaD_throw($0,5);abort()}luaD_throw($0,5);abort()}function dmRender__ApplyMaterialConstants_28dmRender__RenderContext__2c_20dmRender__Material__2c_20dmRender__RenderObject_20const__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=0,$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=0,$27=0,$28=0,$29=0;$3=global$0-192|0;global$0=$3;$5=HEAP32[$0+4016>>2];label$1:{$4=HEAP32[$1+52>>2]-HEAP32[$1+48>>2]|0;if($4){$4=$4>>6;$28=$4>>>0>1?$4:1;$15=$0+3952|0;$11=$2+512|0;$29=$2+576|0;$21=$0+3824|0;$26=$0+3888|0;$2=$3+128|4;$0=0;while(1){$4=HEAP32[$1+48>>2];if(HEAP32[$1+52>>2]-$4>>6>>>0<=$0>>>0){break label$1}$22=$4+($0<<6)|0;$27=HEAP32[$22+24>>2];label$4:{if($27>>>0>8){break label$4}$4=HEAP32[$22+28>>2];label$5:{switch($27-1|0){default:FUNCTION_TABLE[HEAP32[147595]]($5,$22,$4);break label$4;case 0:if((FUNCTION_TABLE[HEAP32[147588]]($5)|0)==2){HEAP32[$3+128>>2]=1065353216;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$3+148>>2]=1065353216;HEAP32[$3+160>>2]=0;HEAP32[$3+164>>2]=0;HEAP32[$3+152>>2]=0;HEAP32[$3+156>>2]=0;HEAP32[$3+180>>2]=0;HEAP32[$3+172>>2]=0;HEAP32[$3+176>>2]=0;HEAP32[$3+168>>2]=1056964608;HEAP32[$3+184>>2]=1056964608;HEAP32[$3+188>>2]=1065353216;Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3- -64|0,$3+128|0,$15);FUNCTION_TABLE[HEAP32[147596]]($5,$3- -64|0,$4);break label$4}FUNCTION_TABLE[HEAP32[147596]]($5,$15,$4);break label$4;case 1:FUNCTION_TABLE[HEAP32[147596]]($5,$11,$4);break label$4;case 2:FUNCTION_TABLE[HEAP32[147596]]($5,$29,$4);break label$4;case 3:FUNCTION_TABLE[HEAP32[147596]]($5,$21,$4);break label$4;case 4:if((FUNCTION_TABLE[HEAP32[147588]]($5)|0)==2){HEAP32[$3+128>>2]=1065353216;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$3+148>>2]=1065353216;HEAP32[$3+160>>2]=0;HEAP32[$3+164>>2]=0;HEAP32[$3+152>>2]=0;HEAP32[$3+156>>2]=0;HEAP32[$3+180>>2]=0;HEAP32[$3+172>>2]=0;HEAP32[$3+176>>2]=0;HEAP32[$3+168>>2]=1056964608;HEAP32[$3+184>>2]=1056964608;HEAP32[$3+188>>2]=1065353216;Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3- -64|0,$3+128|0,$26);FUNCTION_TABLE[HEAP32[147596]]($5,$3- -64|0,$4);break label$4}FUNCTION_TABLE[HEAP32[147596]]($5,$26,$4);break label$4;case 5:Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3+128|0,$21,$11);HEAP32[$3+188>>2]=1065353216;$23=HEAPF32[$3+180>>2];$24=HEAPF32[$3+184>>2];HEAP32[$3+180>>2]=0;HEAP32[$3+184>>2]=0;$25=HEAPF32[$3+176>>2];HEAP32[$3+176>>2]=0;$7=HEAPF32[$3+128>>2];$16=HEAPF32[$3+148>>2];$10=HEAPF32[$3+132>>2];$17=HEAPF32[$3+144>>2];$6=Math_fround(Math_fround($7*$16)-Math_fround($10*$17));$18=$6;$12=HEAPF32[$3+168>>2];$8=HEAPF32[$3+160>>2];$19=HEAPF32[$3+152>>2];$20=HEAPF32[$3+136>>2];$9=Math_fround(Math_fround($10*$19)-Math_fround($20*$16));$13=HEAPF32[$3+164>>2];$14=Math_fround(Math_fround($20*$17)-Math_fround($7*$19));$6=Math_fround(Math_fround(1)/Math_fround(Math_fround($6*$12)+Math_fround(Math_fround($8*$9)+Math_fround($13*$14))));$18=Math_fround($18*$6);HEAPF32[$3+168>>2]=$18;$14=Math_fround($14*$6);HEAPF32[$3+164>>2]=$14;$9=Math_fround($9*$6);HEAPF32[$3+160>>2]=$9;HEAPF32[$3+172>>2]=-Math_fround(Math_fround($25*$9)+Math_fround(Math_fround($23*$14)+Math_fround($24*$18)));$9=Math_fround(Math_fround(Math_fround($10*$8)-Math_fround($7*$13))*$6);HEAPF32[$3+152>>2]=$9;$7=Math_fround(Math_fround(Math_fround($7*$12)-Math_fround($20*$8))*$6);HEAPF32[$3+148>>2]=$7;$10=Math_fround(Math_fround(Math_fround($20*$13)-Math_fround($10*$12))*$6);HEAPF32[$3+144>>2]=$10;HEAPF32[$3+156>>2]=-Math_fround(Math_fround($25*$10)+Math_fround(Math_fround($23*$7)+Math_fround($24*$9)));$7=Math_fround(Math_fround(Math_fround($17*$13)-Math_fround($16*$8))*$6);HEAPF32[$3+136>>2]=$7;$8=Math_fround(Math_fround(Math_fround($19*$8)-Math_fround($17*$12))*$6);HEAPF32[$3+132>>2]=$8;$6=Math_fround(Math_fround(Math_fround($16*$12)-Math_fround($19*$13))*$6);HEAPF32[$3+128>>2]=$6;HEAPF32[$3+140>>2]=-Math_fround(Math_fround($25*$6)+Math_fround(Math_fround($23*$8)+Math_fround($24*$7)));FUNCTION_TABLE[HEAP32[147596]]($5,$3+128|0,$4);break label$4;case 6:Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3+128|0,$21,$11);FUNCTION_TABLE[HEAP32[147596]]($5,$3+128|0,$4);break label$4;case 7:break label$5}}if((FUNCTION_TABLE[HEAP32[147588]]($5)|0)==2){HEAP32[$3+128>>2]=1065353216;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$3+148>>2]=1065353216;HEAP32[$3+160>>2]=0;HEAP32[$3+164>>2]=0;HEAP32[$3+152>>2]=0;HEAP32[$3+156>>2]=0;HEAP32[$3+180>>2]=0;HEAP32[$3+172>>2]=0;HEAP32[$3+176>>2]=0;HEAP32[$3+168>>2]=1056964608;HEAP32[$3+184>>2]=1056964608;HEAP32[$3+188>>2]=1065353216;Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3,$3+128|0,$15);Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3- -64|0,$3,$11);FUNCTION_TABLE[HEAP32[147596]]($5,$3- -64|0,$4);break label$4}Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3+128|0,$15,$11);FUNCTION_TABLE[HEAP32[147596]]($5,$3+128|0,$4)}$0=$0+1|0;if(($28|0)!=($0|0)){continue}break}}global$0=$3+192|0;return}__assert_fail(100533,100345,437,100544);abort()}function dmGameSystem__FactoryComp_Create_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=Math_fround(0),$11=0,$12=0,$13=0,$14=0;$1=global$0-640|0;global$0=$1;$7=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$8=dmGameSystem__CheckGoInstance_28lua_State__29($0);$6=HEAP32[HEAP32[$8+80>>2]+8>>2];HEAP32[$1+624>>2]=0;HEAP32[$1+628>>2]=0;HEAP32[$1+616>>2]=0;HEAP32[$1+620>>2]=0;HEAP32[$1+608>>2]=0;HEAP32[$1+612>>2]=0;HEAP32[$1+600>>2]=0;HEAP32[$1+604>>2]=0;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$6,64295,$1+636|0,$1+600|0,0);$14=HEAP32[$1+636>>2];label$1:{label$2:{if(($7|0)<2){break label$2}if(!lua_type($0,2)){break label$2}$2=dmScript__CheckVector3_28lua_State__2c_20int_29($0,2);$3=HEAP32[$2+4>>2];$4=HEAP32[$2>>2];HEAP32[$1+584>>2]=HEAP32[$2+8>>2];HEAP32[$1+576>>2]=$4;HEAP32[$1+580>>2]=$3;break label$1}dmGameObject__GetWorldPosition_28dmGameObject__Instance__29($1+48|0,$8);HEAP32[$1+576>>2]=HEAP32[$1+48>>2];$2=HEAP32[$1+56>>2];HEAP32[$1+580>>2]=HEAP32[$1+52>>2];HEAP32[$1+584>>2]=$2}label$3:{label$4:{if(($7|0)<3){break label$4}if(!lua_type($0,3)){break label$4}$2=dmScript__CheckQuat_28lua_State__2c_20int_29($0,3);HEAP32[$1+560>>2]=HEAP32[$2>>2];HEAP32[$1+564>>2]=HEAP32[$2+4>>2];HEAP32[$1+568>>2]=HEAP32[$2+8>>2];HEAP32[$1+572>>2]=HEAP32[$2+12>>2];break label$3}dmGameObject__GetWorldRotation_28dmGameObject__Instance__29($1+48|0,$8);$2=HEAP32[$1+52>>2];HEAP32[$1+560>>2]=HEAP32[$1+48>>2];HEAP32[$1+564>>2]=$2;$2=HEAP32[$1+60>>2];HEAP32[$1+568>>2]=HEAP32[$1+56>>2];HEAP32[$1+572>>2]=$2}$5=dmGameObject__GetInstanceFromLua_28lua_State__29($0);label$5:{label$6:{label$7:{if(($7|0)<=3){break label$7}label$8:{if(!lua_type($0,4)){break label$8}$2=$5?512:432;$13=dmScript__CheckTable_28lua_State__2c_20char__2c_20unsigned_20int_2c_20int_29($0,$5?$1+48|0:$1+128|0,$2,4);if($13>>>0<=$2>>>0){break label$8}$2=luaL_error($0,64750,0);break label$5}if(($7|0)<5){break label$7}if(!lua_type($0,5)){break label$7}$2=dmScript__ToVector3_28lua_State__2c_20int_29($0,5);if($2){$3=HEAP32[$2>>2];HEAP32[$1+32>>2]=$3;$9=HEAP32[$2+4>>2];HEAP32[$1+36>>2]=$9;$2=HEAP32[$2+8>>2];HEAP32[$1+40>>2]=$2;break label$6}$10=Math_fround(luaL_checknumber($0,5));HEAPF32[$1+40>>2]=$10;HEAPF32[$1+36>>2]=$10;HEAPF32[$1+32>>2]=$10;$2=(wasm2js_scratch_store_f32($10),wasm2js_scratch_load_i32(0));$9=$2;$3=$2;break label$6}dmGameObject__GetWorldScale_28dmGameObject__Instance__29($1,$8);$3=HEAP32[$1>>2];HEAP32[$1+32>>2]=$3;$9=HEAP32[$1+4>>2];HEAP32[$1+36>>2]=$9;$2=HEAP32[$1+8>>2];HEAP32[$1+40>>2]=$2}label$10:{label$11:{label$12:{label$13:{$4=dmGameObject__AcquireInstanceIndex_28dmGameObject__CollectionHandle__29($6);if(($4|0)!=-1){$11=dmGameObject__ConstructInstanceId_28unsigned_20int_29($4);$12=i64toi32_i32$HIGH_BITS;if(!$5){HEAP32[$1+112>>2]=$4;HEAP32[$1+80>>2]=$11;HEAP32[$1+84>>2]=$12;HEAP32[$1+48>>2]=HEAP32[$1+576>>2];$5=HEAP32[$1+584>>2];HEAP32[$1+52>>2]=HEAP32[$1+580>>2];HEAP32[$1+56>>2]=$5;$5=HEAP32[$1+564>>2];HEAP32[$1+64>>2]=HEAP32[$1+560>>2];HEAP32[$1+68>>2]=$5;HEAP32[$1+104>>2]=$2;HEAP32[$1+100>>2]=$9;HEAP32[$1+96>>2]=$3;$2=HEAP32[$1+572>>2];HEAP32[$1+72>>2]=HEAP32[$1+568>>2];HEAP32[$1+76>>2]=$2;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;if(!dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29($0,$1)){break label$13}$2=HEAP32[132386];dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($1,$1+600|0,HEAP32[$2+8>>2],HEAP32[$2+12>>2],$8,$2,$1+48|0,$13+80|0,0);dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,$11,$12);break label$10}dmScript__GetInstance_28lua_State__29($0);$2=dmScript__Ref_28lua_State__2c_20int_29($0,-1e4);$3=dmGameObject__Spawn_28dmGameObject__CollectionHandle__2c_20dmGameObject__Prototype__2c_20char_20const__2c_20unsigned_20long_20long_2c_20unsigned_20char__2c_20unsigned_20int_2c_20Vectormath__Aos__Point3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20Vectormath__Aos__Vector3_20const__29($6,dmGameSystem__CompFactoryGetPrototype_28dmGameObject__CollectionHandle__2c_20dmGameSystem__FactoryComponent__29($6,$14),HEAP32[HEAP32[HEAP32[$14>>2]>>2]>>2],$11,$12,$1+48|0,$13,$1+576|0,$1+560|0,$1+32|0);if(!$3){break label$12}if($3){HEAP32[$3+88>>2]=$4}lua_rawgeti($0,-1e4,$2);dmScript__SetInstance_28lua_State__29($0);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($0,-1e4,$2);dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,$11,$12);break label$10}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,64566,64861,0);break label$11}dmGameObject__ReleaseInstanceIndex_28unsigned_20int_2c_20dmGameObject__CollectionHandle__29($4,$6);$2=luaL_error($0,64806,0);break label$5}dmGameObject__ReleaseInstanceIndex_28unsigned_20int_2c_20dmGameObject__CollectionHandle__29($4,$6);lua_rawgeti($0,-1e4,$2);dmScript__SetInstance_28lua_State__29($0);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($0,-1e4,$2)}$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16}$2=1;if(($7+1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$5}__assert_fail(64928,64691,369,64953);abort()}global$0=$1+640|0;return $2|0}function dmParticle__ReloadInstance_28dmParticle__Context__2c_20unsigned_20int_2c_20bool_29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=Math_fround(0),$8=0,$9=0,$10=0,$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=0,$23=0,$24=0,$25=0,$26=0;label$1:{label$2:{label$3:{label$4:{if(!$1){break label$4}label$5:{label$6:{$2=HEAP32[$0>>2];$3=$1&65535;if(HEAP32[$0+4>>2]-$2>>2>>>0>$3>>>0){$5=HEAP32[$2+($3<<2)>>2];if(HEAPU16[$5+80>>1]!=($1>>>16|0)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,131153,131850,0);break label$4}if(!$5){break label$4}$2=HEAP32[$5+72>>2];if($2){dlfree($2);HEAP32[$5+16>>2]=0;HEAP32[$5+72>>2]=0}$9=HEAP32[$5+64>>2];$10=HEAP32[$9+16>>2];$3=(HEAP32[$9+4>>2]-HEAP32[$9>>2]|0)/18568|0;$6=HEAP32[$5>>2];$4=(HEAP32[$5+4>>2]-$6|0)/288|0;label$10:{if(($3|0)==($4|0)){break label$10}label$11:{if($3>>>0>=$4>>>0){break label$11}$2=$3;while(1){$6=Math_imul($2,288)+$6|0;if(HEAP8[$6+60|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(0,160,$6+48|0,$6+56|0,$6+52|0);$2=$2+1|0;if(($4|0)==($2|0)){break label$11}$6=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$6|0)/288>>>0>$2>>>0){continue}break}break label$3}if(HEAP8[$5+12|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($3,288,$5,$5+8|0,$5+4|0);$2=HEAP32[$5>>2];if((HEAP32[$5+8>>2]-$2|0)/288>>>0<$3>>>0){break label$6}$6=$2+Math_imul($3,288)|0;HEAP32[$5+4>>2]=$6;if($3>>>0<=$4>>>0){break label$10}if(($6-$2|0)/288>>>0<=$4>>>0){break label$3}memset($2+Math_imul($4,288)|0,0,Math_imul($3-$4|0,288));$6=dmTime__GetTime_28_29();$2=$4;while(1){$8=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$8|0)/288>>>0<=$2>>>0){break label$3}$11=HEAPU16[$0+34>>1];HEAP16[$0+34>>1]=$11+1;if(HEAPU32[$10+4>>2]<=$2>>>0){break label$1}$8=$8+Math_imul($2,288)|0;$11=$11+($2+$6|0)|0;dmParticle__InitEmitter_28dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20unsigned_20int_29($8,HEAP32[$10>>2]+($2<<7)|0,$11);HEAP32[$8+260>>2]=$11;$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}$3=$3>>>0>$4>>>0?$4:$3;if($3){$2=0;while(1){$4=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$4|0)/288>>>0<=$2>>>0){break label$3}if(HEAPU32[$10+4>>2]<=$2>>>0){break label$1}$4=$4+Math_imul($2,288)|0;dmParticle__InitEmitter_28dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20unsigned_20int_29($4,HEAP32[$10>>2]+($2<<7)|0,HEAP32[$4+256>>2]);$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}$3=HEAP32[$5>>2];$2=HEAP32[$5+4>>2]-$3|0;$4=($2|0)/288|0;if(!$2){HEAP32[$5+76>>2]=0;break label$5}$2=0;$6=HEAP32[$9>>2];$10=$4>>>0>1?$4:1;$8=(HEAP32[$9+4>>2]-$6|0)/18568>>>0>$10+ -1>>>0;while(1){if(!$8){break label$3}$19=$12;$4=Math_imul($2,288)+$3|0;$13=HEAPF32[$4+272>>2];$14=HEAPF32[$4+268>>2];$16=HEAPF32[($6+Math_imul($2,18568)|0)+18564>>2];$7=HEAPF32[$5+76>>2];if(!!(Math_fround($13+Math_fround($14+$16))<$7)){$17=Math_fround(Math_fround(1)/$14);$7=Math_fround($17*Math_fround($7-$13));label$20:{if($7=Math_fround(0)){$4=~~$7>>>0;break label$20}$4=0}$20=Math_fround($7-Math_fround($4>>>0));$7=Math_fround($17*$16);label$22:{if($7=Math_fround(0)){$4=~~$7>>>0;break label$22}$4=0}$7=Math_fround($13+Math_fround($14*Math_fround($20+Math_fround($4+1>>>0))))}$12=$12>$7?$19:$7;$2=$2+1|0;if(($10|0)!=($2|0)){continue}break}HEAPF32[$5+76>>2]=$12;$4=0;while(1){$11=HEAP32[$9>>2];if((HEAP32[$9+4>>2]-$11|0)/18568>>>0<=$4>>>0){break label$3}$2=HEAP32[$9+16>>2];if(HEAPU32[$2+4>>2]<=$4>>>0){break label$1}$3=Math_imul($4,288)+$3|0;$6=HEAP32[$3+48>>2];$21=HEAP32[$2>>2];HEAP32[$3+48>>2]=0;$18=HEAPU8[$3+60|0];HEAP8[$3+60|0]=$18&254;$8=HEAP32[$3+256>>2];$22=HEAP32[$3+268>>2];$23=HEAP32[$3+272>>2];$24=HEAP32[$3+276>>2];$25=HEAP32[$3+116>>2];$26=HEAP32[$3+112>>2];$15=HEAP32[$3+56>>2];$2=memset($3,0,288);HEAP32[$3+56>>2]=$15;HEAP32[$2+112>>2]=$26;HEAP32[$2+116>>2]=$25;HEAP32[$2+276>>2]=$24;HEAP32[$2+268>>2]=$22;HEAP32[$2+272>>2]=$23;HEAP32[$2+260>>2]=$8;HEAP32[$2+256>>2]=$8;HEAP32[$2+52>>2]=$6;$8=HEAP32[$2+48>>2];HEAP32[$2+48>>2]=$6;$15=$3;$3=HEAPU8[$3+60|0];HEAP8[$15+60|0]=$3&254|$18&1;if(!(!$8|$3&1)){dlfree($8)}$3=HEAP32[$2+264>>2];$12=HEAPF32[$5+76>>2];HEAP32[$2+264>>2]=1;label$26:{if(($3|0)==1){break label$26}$3=HEAP32[$5+72>>2];if(!$3){break label$26}$6=HEAP32[$5+16>>2]+1|0;HEAP32[$5+16>>2]=$6;FUNCTION_TABLE[HEAP32[$5+68>>2]]($6,HEAP32[$2+112>>2],HEAP32[$2+116>>2],1,$3)}HEAP8[$2+280|0]=HEAPU8[$2+280|0]&247;$7=Math_fround(0);if(!!($12>Math_fround(0))){$3=$11+Math_imul($4,18568)|0;$6=($4<<7)+$21|0;while(1){dmParticle__UpdateEmitter_28dmParticle__Prototype__2c_20dmParticle__Instance__2c_20dmParticle__EmitterPrototype__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20float_29($5,$3,$2,$6,Math_fround(.01666666753590107));$7=Math_fround($7+Math_fround(.01666666753590107));if($7<$12){continue}break}}$4=$4+1|0;if(($10|0)==($4|0)){break label$5}$3=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$3|0)/288>>>0>$4>>>0){continue}break}break label$3}break label$3}__assert_fail(131656,131573,457,131675);abort()}dmParticle__ReHash_28dmParticle__Context__2c_20unsigned_20int_29($0,$1)}return}__assert_fail(132466,131573,430,131839);abort()}__assert_fail(131498,131573,444,131644);abort()}__assert_fail(131789,131801,240,131839);abort()}function mbedtls_ssl_derive_keys($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$3=global$0-368|0;global$0=$3;$4=HEAP32[$0+68>>2];$7=HEAP32[$0+84>>2];$14=HEAP32[$0+64>>2];HEAP32[$7+76>>2]=HEAP32[$14+124>>2];HEAP32[$7+208>>2]=HEAP32[$0+20>>2];$2=-28928;$15=HEAP32[$4+1120>>2];$12=mbedtls_cipher_info_from_type(HEAP32[$15+8>>2]);label$1:{if(!$12){break label$1}$1=HEAP32[$15+12>>2]+ -3|0;label$2:{if($1>>>0<=5){$5=HEAP32[($1<<2)+558476>>2];break label$2}$5=0}if(!$5){break label$1}$1=$4;$11=HEAP32[$0+20>>2];label$4:{if(($11|0)<=2){HEAP32[$4+1116>>2]=2031;$2=2033;$11=2032;break label$4}$2=-27648;if(($11|0)!=3){break label$1}if(HEAP32[$15+12>>2]==7){HEAP32[$4+1116>>2]=2034;$2=2036;$11=2035;break label$4}HEAP32[$4+1116>>2]=2037;$2=2039;$11=2038}HEAP32[$1+1112>>2]=$11;HEAP32[$4+1108>>2]=$2;if(!HEAP32[$4+2252>>2]){$1=HEAP32[$0+68>>2];label$8:{if(HEAP32[$1+2272>>2]!=1){$1=$4+1128|0;$2=64;$11=168016;break label$8}FUNCTION_TABLE[HEAP32[$1+1108>>2]]($0,$3);$1=$3;if(HEAP32[$0+20>>2]!=3){$2=36;$11=168030;break label$8}$2=HEAP32[$15+12>>2]==7?48:32;$11=168030}$6=$4+1192|0;$2=FUNCTION_TABLE[HEAP32[$4+1116>>2]]($6,HEAP32[$4+1124>>2],$11,$1,$2,$14+48|0,48)|0;if($2){break label$1}FUNCTION_TABLE[HEAP32[139546]]($6,0,1060)|0}$6=$4+1184|0;$1=$6;$2=HEAP32[$1+4>>2];$19=HEAP32[$1>>2];HEAP32[$3+360>>2]=$19;HEAP32[$3+364>>2]=$2;$9=$4+1176|0;$1=$9;$8=HEAP32[$1+4>>2];$20=HEAP32[$1>>2];HEAP32[$3+352>>2]=$20;HEAP32[$3+356>>2]=$8;$10=$4+1168|0;$1=$10;$16=HEAP32[$1+4>>2];$21=HEAP32[$1>>2];HEAP32[$3+344>>2]=$21;HEAP32[$3+348>>2]=$16;$11=$4+1160|0;$1=$11;$22=HEAP32[$1+4>>2];$23=HEAP32[$1>>2];HEAP32[$3+336>>2]=$23;HEAP32[$3+340>>2]=$22;$17=$4+1152|0;$1=$17;$13=HEAP32[$1+4>>2];HEAP32[$3+328>>2]=HEAP32[$1>>2];HEAP32[$3+332>>2]=$13;$13=$4+1144|0;$1=$13;$18=HEAP32[$1+4>>2];HEAP32[$3+320>>2]=HEAP32[$1>>2];HEAP32[$3+324>>2]=$18;$1=HEAP32[$4+1132>>2];HEAP32[$3+304>>2]=HEAP32[$4+1128>>2];HEAP32[$3+308>>2]=$1;$1=$4+1136|0;$18=HEAP32[$1+4>>2];HEAP32[$3+312>>2]=HEAP32[$1>>2];HEAP32[$3+316>>2]=$18;HEAP32[$4+1128>>2]=$23;HEAP32[$4+1132>>2]=$22;HEAP32[$1>>2]=$21;HEAP32[$1+4>>2]=$16;HEAP32[$13>>2]=$20;HEAP32[$13+4>>2]=$8;HEAP32[$17>>2]=$19;HEAP32[$17+4>>2]=$2;$2=HEAP32[$3+308>>2];$1=$11;$8=HEAP32[$3+304>>2];HEAP8[$1|0]=$8;HEAP8[$1+1|0]=$8>>>8;HEAP8[$1+2|0]=$8>>>16;HEAP8[$1+3|0]=$8>>>24;HEAP8[$1+4|0]=$2;HEAP8[$1+5|0]=$2>>>8;HEAP8[$1+6|0]=$2>>>16;HEAP8[$1+7|0]=$2>>>24;$1=$10;$10=HEAP32[$3+316>>2];$2=HEAP32[$3+312>>2];HEAP8[$1|0]=$2;HEAP8[$1+1|0]=$2>>>8;HEAP8[$1+2|0]=$2>>>16;HEAP8[$1+3|0]=$2>>>24;HEAP8[$1+4|0]=$10;HEAP8[$1+5|0]=$10>>>8;HEAP8[$1+6|0]=$10>>>16;HEAP8[$1+7|0]=$10>>>24;$1=$9;$9=HEAP32[$3+324>>2];$10=HEAP32[$3+320>>2];HEAP8[$1|0]=$10;HEAP8[$1+1|0]=$10>>>8;HEAP8[$1+2|0]=$10>>>16;HEAP8[$1+3|0]=$10>>>24;HEAP8[$1+4|0]=$9;HEAP8[$1+5|0]=$9>>>8;HEAP8[$1+6|0]=$9>>>16;HEAP8[$1+7|0]=$9>>>24;$1=$6;$6=HEAP32[$3+332>>2];$9=HEAP32[$3+328>>2];HEAP8[$1|0]=$9;HEAP8[$1+1|0]=$9>>>8;HEAP8[$1+2|0]=$9>>>16;HEAP8[$1+3|0]=$9>>>24;HEAP8[$1+4|0]=$6;HEAP8[$1+5|0]=$6>>>8;HEAP8[$1+6|0]=$6>>>16;HEAP8[$1+7|0]=$6>>>24;FUNCTION_TABLE[HEAP32[139546]]($3+304|0,0,64)|0;$9=$14+48|0;$10=$4+1128|0;$2=FUNCTION_TABLE[HEAP32[$4+1116>>2]]($9,48,168053,$10,64,$3+48|0,256)|0;if($2){break label$1}$2=-27648;$6=HEAP32[$12+4>>2];if($6>>>0>10){break label$1}$16=HEAP32[$12+8>>2];$1=1<<$6;label$11:{label$12:{if(!($1&1344)){if(!($1&132)){break label$1}$2=mbedtls_md_setup($7+52|0,$5,1);if($2){break label$11}$2=mbedtls_md_setup($7- -64|0,$5,1);if($2){break label$11}$1=($5?HEAP32[$5+8>>2]:0)&255;HEAP32[$7+12>>2]=$1;$5=HEAP32[$14+120>>2]==1?10:$1;HEAP32[$7+12>>2]=$5;$8=HEAP32[$12+16>>2];HEAP32[$7+4>>2]=$8;if(HEAP32[$12+4>>2]==7){HEAP32[$7>>2]=$5;break label$12}$6=HEAP32[$12+24>>2];$2=$6+$5|0;$2=HEAP32[$14+124>>2]!=1?$2-(($5>>>0)%($6>>>0)|0)|0:$2;HEAP32[$7>>2]=$2;$5=HEAP32[$0+20>>2];if($5>>>0>3){$2=-27648;break label$11}label$19:{switch($5-2|0){case 0:case 1:break label$19;default:break label$12}}HEAP32[$7>>2]=$2+$8;break label$12}$1=0;HEAP32[$7+12>>2]=0;$8=12;$5=HEAPU8[$15+36|0];$6=($6|0)==10?12:4;HEAP32[$7+8>>2]=$6;HEAP32[$7+4>>2]=12;$5=$5&2?8:16;HEAP32[$7+16>>2]=$5;HEAP32[$7>>2]=($5-$6|0)+12}$2=-27648;if(HEAP8[HEAP32[$0>>2]+184|0]&1){break label$11}$15=($3+48|0)+($1<<1)|0;$6=$16>>>3|0;$14=$15+$6|0;$16=$6+$14|0;$5=HEAP32[$7+8>>2];$5=$5?$5:$8;memcpy($7+20|0,$16,$5);memcpy($7+36|0,$5+$16|0,$5);if(HEAP32[$0+20>>2]<1){break label$11}if($1){mbedtls_md_hmac_starts($7+52|0,$3+48|0,$1);mbedtls_md_hmac_starts($7- -64|0,($3+48|0)+$1|0,$1)}$2=HEAP32[$0>>2];$8=HEAP32[$2+68>>2];if($8){FUNCTION_TABLE[$8](HEAP32[$2+76>>2],$9,$3+48|0,$1,$6,$5)|0;$2=HEAP32[$0>>2]}$8=HEAP32[$2+72>>2];if($8){$17=HEAP32[$2+76>>2];$2=$3+48|0;$0=$10;$4=HEAP32[$4+1116>>2];$13=2;label$24:{if(($4|0)==2031){break label$24}$13=3;if(($4|0)==2034){break label$24}$13=(($4|0)==2037)<<2}FUNCTION_TABLE[$8]($17,$9,$2,$1,$6,$5,$11,$0,$13)|0}$0=$7+80|0;$2=mbedtls_cipher_setup($0,$12);if($2){break label$11}$1=$7+144|0;$2=mbedtls_cipher_setup($1,$12);if($2){break label$11}$2=mbedtls_cipher_setkey($0,$15,HEAP32[$12+8>>2],1);if($2){break label$11}$2=mbedtls_cipher_setkey($1,$14,HEAP32[$12+8>>2],0);if($2){break label$11}$2=0;if(HEAP32[$12+4>>2]!=2){break label$11}$2=mbedtls_cipher_set_padding_mode($0,4);if($2){break label$11}$2=mbedtls_cipher_set_padding_mode($1,4)}FUNCTION_TABLE[HEAP32[139546]]($3+48|0,0,256)|0;FUNCTION_TABLE[HEAP32[139546]]($10,0,64)|0}global$0=$3+368|0;return $2}function dmGameObject__PlayAnimation_28dmGameObject__AnimWorld__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20float__2c_20float_2c_20float_2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__2c_20bool_29($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15){var $16=0,$17=0,$18=0,$19=0,$20=0,$21=0,$22=0,$23=0,$24=0,$25=0;$18=global$0-48|0;global$0=$18;$17=HEAP32[$0+4>>2];$25=HEAP32[$0>>2];$16=$17-$25|0;$19=($16|0)/104|0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{if(($16|0)==676e4){HEAP32[$18>>2]=65e3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,9601,9612,$18);$1=0;break label$8}$20=HEAP32[$0+32>>2];if(!$20){break label$7}$16=HEAPU16[$0+38>>1];if($16>>>0>=HEAPU16[$0+36>>1]){break label$6}$21=$0+4|0;HEAP16[$0+38>>1]=$16+1;$20=HEAPU16[$20+($16<<1)>>1];HEAP16[$18+46>>1]=$20;$22=$0+44|0;label$10:{label$11:{$16=HEAP32[$0+48>>2];label$12:{if(!$16){break label$12}$16=HEAP32[HEAP32[$22>>2]+(($1>>>0)%($16>>>0)<<2)>>2];if(($16|0)==-1){break label$12}$23=HEAP32[$0+52>>2];while(1){$24=$23+Math_imul($16,12)|0;if(HEAP32[$24>>2]==($1|0)){break label$11}$16=HEAP32[$24+8>>2];if(($16|0)!=-1){continue}break}}$16=HEAP32[$0+68>>2];if(($16|0)==((HEAP32[$0+60>>2]-HEAP32[$0+52>>2]|0)/12|0)){HEAP32[$18+16>>2]=$16;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,9601,9673,$18+16|0);$2=HEAP32[$0+32>>2];if(!$2){break label$5}$1=HEAPU16[$0+38>>1];if(!$1|$1>>>0>HEAPU16[$0+36>>1]){break label$4}$3=$0;$0=$1+ -1|0;HEAP16[$3+38>>1]=$0;HEAP16[$2+(($0&65535)<<1)>>1]=$20;$1=0;break label$8}dmHashTable_unsigned_20long_2c_20unsigned_20short___Put_28unsigned_20long_2c_20unsigned_20short_20const__29($22,$1,$18+46|0);$17=HEAP32[$21>>2];break label$10}$22=HEAP32[$0+16>>2];$24=HEAP32[$0+20>>2]-$22>>1;$16=HEAPU16[($23+Math_imul($16,12)|0)+4>>1];if($24>>>0<=$16>>>0){break label$1}$16=HEAPU16[$22+($16<<1)>>1];if($19>>>0<=$16>>>0){break label$1}label$15:{while(1){$23=Math_imul($16,104)+$25|0;$16=HEAPU16[$23+94>>1];if(($16|0)==65535){break label$15}if($24>>>0<=$16>>>0){break label$1}$16=HEAPU16[$22+($16<<1)>>1];if($19>>>0>$16>>>0){continue}break}break label$1}HEAP16[$23+94>>1]=$20}$16=HEAP32[$0+8>>2];if(($16|0)==($17|0)){if(HEAP8[$0+12|0]&1){break label$3}$16=($16-HEAP32[$0>>2]|0)/104|0;$17=($16>>>1|0)+2048>>>1|0;$16=($17>>>0<2048?$17:2048)+$16|0;dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($16>>>0<65e3?$16:65e3,104,$0,$0+8|0,$21);$16=HEAP32[$0+8>>2]}$25=$16;$16=HEAP32[$0>>2];$17=$19+1|0;if(($25-$16|0)/104>>>0<$17>>>0){break label$2}$17=Math_imul($17,104);HEAP32[$21>>2]=$17+$16;if(($17|0)/104>>>0<=$19>>>0){break label$1}$16=memset($16+Math_imul($19,104)|0,0,104);$17=HEAP32[$0+16>>2];$21=HEAPU16[$18+46>>1];if(HEAP32[$0+20>>2]-$17>>1>>>0<=$21>>>0){break label$1}HEAP16[$17+($21<<1)>>1]=$19;HEAP16[$16+92>>1]=HEAPU16[$18+46>>1];HEAP32[$16>>2]=$1;HEAP32[$16+24>>2]=$6;HEAP32[$16+16>>2]=$4;HEAP32[$16+20>>2]=$5;HEAP32[$16+8>>2]=$2;HEAP32[$16+12>>2]=$3;$1=HEAP32[$10+4>>2];HEAP32[$16+28>>2]=HEAP32[$10>>2];HEAP32[$16+32>>2]=$1;$1=HEAP32[$10+12>>2];HEAP32[$16+36>>2]=HEAP32[$10+8>>2];HEAP32[$16+40>>2]=$1;HEAP32[$16+44>>2]=HEAP32[$10+16>>2];HEAP16[$16+94>>1]=65535;HEAP32[$16+88>>2]=-1;HEAP32[$16+84>>2]=0;HEAP32[$16+80>>2]=$14;HEAP32[$16+76>>2]=$13;$1=$11>Math_fround(0);HEAPF32[$16+72>>2]=$1?Math_fround(Math_fround(1)/$11):Math_fround(0);HEAPF32[$16+68>>2]=$1?$11:Math_fround(0);HEAPF32[$16+60>>2]=$12>Math_fround(0)?$12:Math_fround(0);HEAPF32[$16+56>>2]=$9;HEAPF32[$16+52>>2]=$8;HEAP32[$16+48>>2]=$7;$1=HEAPU8[$16+96|0]&-6|($15?4:0);$17=$1|1;HEAP8[$16+96|0]=$17;$2=$6+ -2|0;label$19:{if($2>>>0>3){break label$19}label$20:{switch($2-1|0){case 0:case 1:break label$19;default:break label$20}}$17=$1|9;HEAP8[$16+96|0]=$17}HEAP8[$16+96|0]=$17|16;$1=1;if(!$13){break label$8}$2=$0+76|0;label$21:{label$22:{$3=HEAP32[$0+80>>2];label$23:{if(!$3){break label$23}$17=HEAP32[HEAP32[$2>>2]+(($14>>>0)%($3>>>0)<<2)>>2];if(($17|0)==-1){break label$23}$3=HEAP32[$0+84>>2];while(1){$4=$3+Math_imul($17,12)|0;if(HEAP32[$4>>2]==($14|0)){break label$22}$17=HEAP32[$4+8>>2];if(($17|0)!=-1){continue}break}}$3=(HEAP32[$0+92>>2]-HEAP32[$0+84>>2]|0)/12|0;$0=HEAP32[$0+100>>2];if(($3|0)!=($0|0)){break label$21}HEAP32[$18+32>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,9601,9743,$18+32|0);$1=0;break label$8}$4=HEAP32[$0+16>>2];$3=HEAPU16[($3+Math_imul($17,12)|0)+4>>1];if(HEAP32[$0+20>>2]-$4>>1>>>0<=$3>>>0){break label$1}$5=HEAP32[$0+4>>2];$0=HEAP32[$0>>2];$3=HEAPU16[$4+($3<<1)>>1];if(($5-$0|0)/104>>>0<=$3>>>0){break label$1}$0=$0+Math_imul($3,104)|0;HEAP16[$16+90>>1]=HEAPU16[$0+92>>1];HEAP16[$0+88>>1]=HEAPU16[$18+46>>1]}dmHashTable_unsigned_20long_2c_20unsigned_20short___Put_28unsigned_20long_2c_20unsigned_20short_20const__29($2,$14,$18+46|0)}global$0=$18+48|0;return $1}__assert_fail(9813,9820,148,9886);abort()}__assert_fail(9890,9820,149,9886);abort()}__assert_fail(9813,9820,137,10377);abort()}__assert_fail(10382,9820,138,10377);abort()}__assert_fail(10161,10082,444,10236);abort()}__assert_fail(10063,10082,457,10153);abort()}__assert_fail(10355,10082,430,10366);abort()}function exp2reg($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;discharge2reg($0,$1,$2);label$1:{if(HEAP32[$1>>2]!=10){break label$1}$7=HEAP32[$1+8>>2];if(($7|0)==-1){break label$1}$3=HEAP32[$1+16>>2];if(($3|0)!=-1){$8=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$5=$3;$6=$8+($3<<2)|0;$4=HEAP32[$6>>2];$3=($4>>>14|0)+ -131071|0;$3=($3|0)==-1?-1:($5+$3|0)+1|0;if(($3|0)!=-1){continue}break}$3=$6;$8=$7+($5^-1)|0;$5=$8>>31;if(($5^$5+$8)>=131072){luaX_syntaxerror(HEAP32[$0+12>>2],123977);$4=HEAP32[$6>>2]}HEAP32[$3>>2]=($4&16383|$8<<14)+2147467264;break label$1}HEAP32[$1+16>>2]=$7}$3=HEAP32[$1+16>>2];$6=HEAP32[$1+20>>2];label$6:{if(($3|0)==($6|0)){break label$6}$12=-1;label$7:{label$8:{if(($3|0)!=-1){$4=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$8=$4+($3<<2)|0;label$11:{if(($3|0)>=1){$5=HEAP32[$8+ -4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$11}}$5=HEAP32[$8>>2]}if(($5&63)!=27){break label$8}$5=$3;$3=(HEAP32[$8>>2]>>>14|0)+ -131071|0;$3=($3|0)==-1?-1:($5+$3|0)+1|0;if(($3|0)!=-1){continue}break}}$13=-1;if(($6|0)==-1){break label$7}$4=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$3=$4+($6<<2)|0;label$14:{if(($6|0)>=1){$5=HEAP32[$3+ -4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$14}}$5=HEAP32[$3>>2]}if(($5&63)!=27){break label$8}$3=(HEAP32[$3>>2]>>>14|0)+ -131071|0;$6=($3|0)==-1?-1:($3+$6|0)+1|0;if(($6|0)!=-1){continue}break}break label$7}$5=-1;label$16:{if(HEAP32[$1>>2]==10){break label$16}$7=HEAP32[$0+32>>2];HEAP32[$0+32>>2]=-1;$5=luaK_code($0,2147450902,HEAP32[HEAP32[$0+12>>2]+8>>2]);if(($7|0)==-1){break label$16}if(($5|0)==-1){$5=$7;break label$16}$9=HEAP32[HEAP32[$0>>2]+12>>2];$3=$5;while(1){$6=$3;$8=$9+($3<<2)|0;$4=HEAP32[$8>>2];$3=($4>>>14|0)+ -131071|0;$3=($3|0)==-1?-1:($6+$3|0)+1|0;if(($3|0)!=-1){continue}break}$3=$8;$7=$7+($6^-1)|0;$6=$7>>31;if(($6^$6+$7)>=131072){luaX_syntaxerror(HEAP32[$0+12>>2],123977);$4=HEAP32[$8>>2]}HEAP32[$3>>2]=($4&16383|$7<<14)+2147467264}HEAP32[$0+28>>2]=HEAP32[$0+24>>2];$3=$2<<6;$13=luaK_code($0,$3|16386,HEAP32[HEAP32[$0+12>>2]+8>>2]);HEAP32[$0+28>>2]=HEAP32[$0+24>>2];$12=luaK_code($0,$3|8388610,HEAP32[HEAP32[$0+12>>2]+8>>2]);HEAP32[$0+28>>2]=HEAP32[$0+24>>2];if(($5|0)==-1){break label$7}$3=HEAP32[$0+32>>2];if(($3|0)!=-1){$7=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$6=$3;$8=$7+($3<<2)|0;$4=HEAP32[$8>>2];$3=($4>>>14|0)+ -131071|0;$3=($3|0)==-1?-1:($6+$3|0)+1|0;if(($3|0)!=-1){continue}break}$3=$8;$6=($6^-1)+$5|0;$5=$6>>31;if(($5^$5+$6)>=131072){luaX_syntaxerror(HEAP32[$0+12>>2],123977);$4=HEAP32[$8>>2]}HEAP32[$3>>2]=($4&16383|$6<<14)+2147467264;break label$7}HEAP32[$0+32>>2]=$5}$10=HEAP32[$0+24>>2];HEAP32[$0+28>>2]=$10;$3=HEAP32[$1+20>>2];label$25:{if(($3|0)==-1){break label$25}if(($2|0)==255){while(1){$7=HEAP32[HEAP32[$0>>2]+12>>2]+($3<<2)|0;$6=HEAP32[$7>>2];$4=($6>>>14|0)+ -131071|0;$9=($4|0)==-1;$8=($3+$4|0)+1|0;label$28:{if(($3|0)>=1){$4=$7+ -4|0;$5=HEAP32[$4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$28}}$5=$6;$4=$7}$8=$9?-1:$8;label$30:{label$31:{label$32:{if(($5&63)!=27){$3=($3^-1)+$13|0;$4=$3>>31;if(($4^$3+$4)>131071){break label$32}break label$30}HEAP32[$4>>2]=$5&8372224|$5>>>17&32704|26;$3=($3^-1)+$10|0;$4=$3>>31;if(($4^$3+$4)<131072){break label$31}}luaX_syntaxerror(HEAP32[$0+12>>2],123977)}$6=HEAP32[$7>>2]}HEAP32[$7>>2]=($6&16383|$3<<14)+2147467264;$3=$8;if(($3|0)!=-1){continue}break label$25}}$11=$2<<6;$14=$11&16320;while(1){$7=HEAP32[HEAP32[$0>>2]+12>>2]+($3<<2)|0;$6=HEAP32[$7>>2];$4=($6>>>14|0)+ -131071|0;$9=($4|0)==-1;$8=($3+$4|0)+1|0;label$35:{if(($3|0)>=1){$4=$7+ -4|0;$5=HEAP32[$4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$35}}$5=$6;$4=$7}$8=$9?-1:$8;label$37:{label$38:{label$39:{if(($5&63)==27){HEAP32[$4>>2]=($5>>>23|0)!=($2|0)?$14|$5&-16321:$11|$5&8372224|26;$3=($3^-1)+$10|0;$4=$3>>31;if(($4^$3+$4)>131071){break label$39}break label$38}$3=($3^-1)+$13|0;$4=$3>>31;if(($4^$3+$4)<131072){break label$37}}luaX_syntaxerror(HEAP32[$0+12>>2],123977)}$6=HEAP32[$7>>2]}HEAP32[$7>>2]=($6&16383|$3<<14)+2147467264;$3=$8;if(($3|0)!=-1){continue}break}}$3=HEAP32[$1+16>>2];if(($3|0)==-1){break label$6}if(($2|0)==255){while(1){$7=HEAP32[HEAP32[$0>>2]+12>>2]+($3<<2)|0;$6=HEAP32[$7>>2];$4=($6>>>14|0)+ -131071|0;$9=($4|0)==-1;$8=($3+$4|0)+1|0;label$45:{if(($3|0)>=1){$4=$7+ -4|0;$5=HEAP32[$4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$45}}$5=$6;$4=$7}$8=$9?-1:$8;label$47:{label$48:{label$49:{if(($5&63)!=27){$3=($3^-1)+$12|0;$4=$3>>31;if(($4^$3+$4)>131071){break label$49}break label$47}HEAP32[$4>>2]=$5&8372224|$5>>>17&32704|26;$3=($3^-1)+$10|0;$4=$3>>31;if(($4^$3+$4)<131072){break label$48}}luaX_syntaxerror(HEAP32[$0+12>>2],123977)}$6=HEAP32[$7>>2]}HEAP32[$7>>2]=($6&16383|$3<<14)+2147467264;$3=$8;if(($3|0)!=-1){continue}break label$6}}$11=$2<<6;$14=$11&16320;while(1){$7=HEAP32[HEAP32[$0>>2]+12>>2]+($3<<2)|0;$6=HEAP32[$7>>2];$4=($6>>>14|0)+ -131071|0;$9=($4|0)==-1;$8=($3+$4|0)+1|0;label$52:{if(($3|0)>=1){$4=$7+ -4|0;$5=HEAP32[$4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$52}}$5=$6;$4=$7}$8=$9?-1:$8;label$54:{label$55:{label$56:{if(($5&63)==27){HEAP32[$4>>2]=($5>>>23|0)!=($2|0)?$14|$5&-16321:$11|$5&8372224|26;$3=($3^-1)+$10|0;$4=$3>>31;if(($4^$3+$4)>131071){break label$56}break label$55}$3=($3^-1)+$12|0;$4=$3>>31;if(($4^$3+$4)<131072){break label$54}}luaX_syntaxerror(HEAP32[$0+12>>2],123977)}$6=HEAP32[$7>>2]}HEAP32[$7>>2]=($6&16383|$3<<14)+2147467264;$3=$8;if(($3|0)!=-1){continue}break}}HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=$2;HEAP32[$1>>2]=12}function btIDebugDraw__drawSpherePatch_28btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20float_2c_20float_2c_20float_2c_20float_2c_20float_2c_20btVector3_20const__2c_20float_29($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=Math_fround($4);$5=Math_fround($5);$6=Math_fround($6);$7=Math_fround($7);$8=Math_fround($8);$9=$9|0;$10=Math_fround($10);var $11=0,$12=0,$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=0,$21=Math_fround(0),$22=Math_fround(0),$23=0,$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=0,$28=0,$29=0,$30=0,$31=0,$32=Math_fround(0),$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0),$36=Math_fround(0),$37=Math_fround(0),$38=Math_fround(0),$39=0,$40=0,$41=0,$42=0,$43=0,$44=Math_fround(0),$45=0,$46=Math_fround(0);$11=global$0-2416|0;global$0=$11;$15=HEAPF32[$1>>2];$14=HEAPF32[$2>>2];$19=HEAPF32[$1+4>>2];$26=HEAPF32[$2+4>>2];$16=HEAPF32[$1+8>>2];$24=HEAPF32[$2+8>>2];HEAP32[$11+44>>2]=0;$21=Math_fround($24*$4);HEAPF32[$11+40>>2]=$16+$21;$22=Math_fround($26*$4);HEAPF32[$11+36>>2]=$19+$22;$18=Math_fround($14*$4);HEAPF32[$11+32>>2]=$15+$18;HEAP32[$11+28>>2]=0;HEAPF32[$11+24>>2]=$16-$21;HEAPF32[$11+20>>2]=$19-$22;HEAPF32[$11+16>>2]=$15-$18;$21=HEAPF32[$3>>2];$22=HEAPF32[$3+4>>2];$18=HEAPF32[$3+8>>2];$16=Math_fround($10*Math_fround(.01745329238474369));$15=Math_fround($16+Math_fround(-1.5707963705062866));$30=$5<=Math_fround(-1.5707963705062866);$10=$30?$15:$5;$19=Math_fround(Math_fround(1.5707963705062866)-$16);$27=$6>=Math_fround(1.5707963705062866);$5=$27?$19:$6;if(!!($10>$5)){$27=1;$30=1;$10=$15;$5=$19}$12=$7>$8;$6=$12?Math_fround($16+Math_fround(-3.1415927410125732)):$7;$25=Math_fround(($12?Math_fround(3.1415927410125732):$8)-$6);$15=Math_fround($25/$16);label$2:{if(Math_fround(Math_abs($15))=1){$15=Math_fround(Math_fround($14*$22)-Math_fround($26*$21));$19=Math_fround(Math_fround($24*$21)-Math_fround($14*$18));$16=Math_fround(Math_fround($26*$18)-Math_fround($24*$22));$39=$12|Math_fround($8-$7)>=Math_fround(6.2831854820251465);$40=$31+ -1|0;$26=Math_fround($5/Math_fround($40|0));$12=$11+1232|0;$20=$11+48|0;$28=($13|0)<2?2:$13+1|0;$29=$28+ -1|0;$24=Math_fround($25/Math_fround($29|0));$5=Math_fround($6+Math_fround($24*Math_fround(0)));$21=cosf($5);$22=sinf($5);$45=($28|0)<1;while(1){$13=$20;$20=$12;$5=Math_fround($10+Math_fround($26*Math_fround($23|0)));$7=cosf($5);$5=sinf($5);label$8:{if($45){break label$8}$18=HEAPF32[$2>>2];$25=HEAPF32[$1>>2];$32=HEAPF32[$3>>2];$33=HEAPF32[$2+4>>2];$34=HEAPF32[$1+4>>2];$35=HEAPF32[$3+4>>2];$36=HEAPF32[$2+8>>2];$14=HEAPF32[$1+8>>2];$37=HEAPF32[$3+8>>2];HEAP32[$13+12>>2]=0;$7=Math_fround($7*$4);$8=Math_fround($7*$22);$38=$14;$14=Math_fround($7*$21);$5=Math_fround($5*$4);HEAPF32[$13+8>>2]=Math_fround(Math_fround($15*$8)+Math_fround($38+Math_fround($37*$14)))+Math_fround($36*$5);HEAPF32[$13+4>>2]=Math_fround(Math_fround($19*$8)+Math_fround($34+Math_fround($14*$35)))+Math_fround($5*$33);HEAPF32[$13>>2]=Math_fround(Math_fround($16*$8)+Math_fround($25+Math_fround($14*$32)))+Math_fround($5*$18);$12=($23|0)==($40|0);$41=$12&$30;label$9:{if(!$23){if(!$27){break label$9}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11+16|0,$13,$9);break label$9}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$20,$13,$9)}$17=HEAP32[$13+12>>2];HEAP32[$11+8>>2]=HEAP32[$13+8>>2];HEAP32[$11+12>>2]=$17;$17=HEAP32[$13+4>>2];HEAP32[$11>>2]=HEAP32[$13>>2];HEAP32[$11+4>>2]=$17;if($41){FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11+32|0,$13,$9)}$42=$12|!$23;label$12:{if(!$39){if(!$42){break label$12}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$1,$13,$9);break label$12}if($29){break label$12}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11,$13,$9)}$17=1;if(($28|0)==1){break label$8}while(1){$18=HEAPF32[$2>>2];$25=HEAPF32[$1>>2];$32=HEAPF32[$3>>2];$33=HEAPF32[$2+4>>2];$34=HEAPF32[$1+4>>2];$35=HEAPF32[$3+4>>2];$36=HEAPF32[$2+8>>2];$14=HEAPF32[$1+8>>2];$37=HEAPF32[$3+8>>2];$43=$17<<4;$12=$13+$43|0;HEAP32[$12+12>>2]=0;$44=Math_fround($6+Math_fround($24*Math_fround($17|0)));$8=Math_fround($7*sinf($44));$46=Math_fround($15*$8);$38=$14;$14=Math_fround($7*cosf($44));HEAPF32[$12+8>>2]=Math_fround($46+Math_fround($38+Math_fround($37*$14)))+Math_fround($5*$36);HEAPF32[$12+4>>2]=Math_fround(Math_fround($19*$8)+Math_fround($34+Math_fround($14*$35)))+Math_fround($5*$33);HEAPF32[$12>>2]=Math_fround(Math_fround($16*$8)+Math_fround($25+Math_fround($14*$32)))+Math_fround($5*$18);label$15:{if($23){FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$20+$43|0,$12,$9);break label$15}if(!$27){break label$15}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11+16|0,$12,$9)}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$12+ -16|0,$12,$9);if($41){FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11+32|0,$12,$9)}label$18:{if($39){if(($17|0)!=($29|0)){break label$18}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11,$12,$9);break label$18}if($42^1|($17|0)!=($29|0)){break label$18}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$1,$12,$9)}$17=$17+1|0;if(($28|0)!=($17|0)){continue}break}}$12=$13;$23=$23+1|0;if(($31|0)!=($23|0)){continue}break}}global$0=$11+2416|0}function __rem_pio2_large($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=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;$7=global$0-560|0;global$0=$7;$6=$2;$2=($2+ -3|0)/24|0;$18=($2|0)>0?$2:0;$10=$6+Math_imul($18,-24)|0;$14=HEAP32[($4<<2)+219136>>2];$9=$3+ -1|0;if(($14+$9|0)>=0){$6=$3+$14|0;$2=$18-$9|0;while(1){HEAPF64[($7+320|0)+($8<<3)>>3]=($2|0)<0?0:+HEAP32[($2<<2)+219152>>2];$2=$2+1|0;$8=$8+1|0;if(($6|0)!=($8|0)){continue}break}}$13=$10+ -24|0;$6=0;$19=($14|0)>0?$14:0;$8=($3|0)<1;while(1){label$6:{if($8){$5=0;break label$6}$11=$6+$9|0;$2=0;$5=0;while(1){$5=$5+HEAPF64[($2<<3)+$0>>3]*HEAPF64[($7+320|0)+($11-$2<<3)>>3];$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}HEAPF64[($6<<3)+$7>>3]=$5;$2=($6|0)==($19|0);$6=$6+1|0;if(!$2){continue}break}$25=47-$10|0;$20=48-$10|0;$21=$10+ -25|0;$6=$14;label$9:{while(1){$5=HEAPF64[($6<<3)+$7>>3];$2=0;$8=$6;$16=($6|0)<1;if(!$16){while(1){$11=($7+480|0)+($2<<2)|0;$12=$5;$5=$5*5.960464477539063e-8;label$14:{if(Math_abs($5)<2147483648){$9=~~$5;break label$14}$9=-2147483648}$5=+($9|0);$12=$12+$5*-16777216;label$13:{if(Math_abs($12)<2147483648){$9=~~$12;break label$13}$9=-2147483648}HEAP32[$11>>2]=$9;$8=$8+ -1|0;$5=HEAPF64[($8<<3)+$7>>3]+$5;$2=$2+1|0;if(($6|0)!=($2|0)){continue}break}}$5=scalbn($5,$13);$5=$5+Math_floor($5*.125)*-8;label$17:{if(Math_abs($5)<2147483648){$11=~~$5;break label$17}$11=-2147483648}$5=$5- +($11|0);label$19:{label$20:{label$21:{$22=($13|0)<1;label$22:{if(!$22){$8=($6<<2)+$7|0;$9=HEAP32[$8+476>>2];$2=$9>>$20;$17=$8;$8=$9-($2<<$20)|0;HEAP32[$17+476>>2]=$8;$11=$2+$11|0;$9=$8>>$25;break label$22}if($13){break label$21}$9=HEAP32[(($6<<2)+$7|0)+476>>2]>>23}if(($9|0)<1){break label$19}break label$20}$9=2;if(!!($5>=.5)){break label$20}$9=0;break label$19}$2=0;$8=0;if(!$16){while(1){$17=($7+480|0)+($2<<2)|0;$16=HEAP32[$17>>2];$23=16777215;label$26:{label$27:{if($8){break label$27}$23=16777216;if($16){break label$27}$8=0;break label$26}HEAP32[$17>>2]=$23-$16;$8=1}$2=$2+1|0;if(($6|0)!=($2|0)){continue}break}}label$28:{if($21>>>0>1|$22){break label$28}if($21-1){$2=($6<<2)+$7|0;HEAP32[$2+476>>2]=HEAP32[$2+476>>2]&8388607;break label$28}$2=($6<<2)+$7|0;HEAP32[$2+476>>2]=HEAP32[$2+476>>2]&4194303}$11=$11+1|0;if(($9|0)!=2){break label$19}$5=1-$5;$9=2;if(!$8){break label$19}$5=$5-scalbn(1,$13)}if($5==0){$8=0;label$31:{$2=$6;if(($2|0)<=($14|0)){break label$31}while(1){$2=$2+ -1|0;$8=HEAP32[($7+480|0)+($2<<2)>>2]|$8;if(($2|0)>($14|0)){continue}break}if(!$8){break label$31}$10=$13;while(1){$10=$10+ -24|0;$6=$6+ -1|0;if(!HEAP32[($7+480|0)+($6<<2)>>2]){continue}break}break label$9}$2=1;while(1){$8=$2;$2=$2+1|0;if(!HEAP32[($7+480|0)+($14-$8<<2)>>2]){continue}break}$8=$6+$8|0;while(1){$9=$3+$6|0;$6=$6+1|0;HEAPF64[($7+320|0)+($9<<3)>>3]=HEAP32[($18+$6<<2)+219152>>2];$2=0;$5=0;if(($3|0)>=1){while(1){$5=$5+HEAPF64[($2<<3)+$0>>3]*HEAPF64[($7+320|0)+($9-$2<<3)>>3];$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}HEAPF64[($6<<3)+$7>>3]=$5;if(($6|0)<($8|0)){continue}break}$6=$8;continue}break}$5=scalbn($5,0-$13|0);label$38:{if(!!($5>=16777216)){$3=($7+480|0)+($6<<2)|0;$12=$5;$5=$5*5.960464477539063e-8;label$41:{if(Math_abs($5)<2147483648){$2=~~$5;break label$41}$2=-2147483648}$5=$12+ +($2|0)*-16777216;label$40:{if(Math_abs($5)<2147483648){$0=~~$5;break label$40}$0=-2147483648}HEAP32[$3>>2]=$0;$6=$6+1|0;break label$38}if(Math_abs($5)<2147483648){$2=~~$5}else{$2=-2147483648}$10=$13}HEAP32[($7+480|0)+($6<<2)>>2]=$2}$5=scalbn(1,$10);if(($6|0)>=0){$2=$6;while(1){HEAPF64[($2<<3)+$7>>3]=$5*+HEAP32[($7+480|0)+($2<<2)>>2];$5=$5*5.960464477539063e-8;$0=0;$3=($2|0)>0;$2=$2+ -1|0;if($3){continue}break}$8=$6;while(1){$3=$19>>>0<$0>>>0?$19:$0;$10=$6-$8|0;$2=0;$5=0;while(1){$5=$5+HEAPF64[($2<<3)+221920>>3]*HEAPF64[($2+$8<<3)+$7>>3];$13=($2|0)!=($3|0);$2=$2+1|0;if($13){continue}break}HEAPF64[($7+160|0)+($10<<3)>>3]=$5;$8=$8+ -1|0;$2=($0|0)!=($6|0);$0=$0+1|0;if($2){continue}break}}label$50:{if($4>>>0>3){break label$50}label$51:{label$52:{switch($4-1|0){case 2:label$55:{if(($6|0)<1){break label$55}$3=($7+160|0)+($6<<3)|0;$5=HEAPF64[$3>>3];$2=$6;while(1){$12=$5;$0=$2+ -1|0;$4=($7+160|0)+($0<<3)|0;$24=HEAPF64[$4>>3];$5=$24+$5;HEAPF64[($7+160|0)+($2<<3)>>3]=$12+($24-$5);HEAPF64[$4>>3]=$5;$4=($2|0)>1;$2=$0;if($4){continue}break}if(($6|0)<2){break label$55}$5=HEAPF64[$3>>3];$2=$6;while(1){$12=$5;$0=$2+ -1|0;$3=($7+160|0)+($0<<3)|0;$15=HEAPF64[$3>>3];$5=$15+$5;HEAPF64[($7+160|0)+($2<<3)>>3]=$12+($15-$5);HEAPF64[$3>>3]=$5;$3=($2|0)>2;$2=$0;if($3){continue}break}$15=0;while(1){$15=$15+HEAPF64[($7+160|0)+($6<<3)>>3];$0=($6|0)>2;$6=$6+ -1|0;if($0){continue}break}}$5=HEAPF64[$7+160>>3];if($9){break label$51}HEAPF64[$1>>3]=$5;$0=HEAP32[$7+172>>2];$2=HEAP32[$7+168>>2];HEAPF64[$1+16>>3]=$15;HEAP32[$1+8>>2]=$2;HEAP32[$1+12>>2]=$0;break label$50;default:$5=0;if(($6|0)>=0){while(1){$5=$5+HEAPF64[($7+160|0)+($6<<3)>>3];$0=($6|0)>0;$6=$6+ -1|0;if($0){continue}break}}HEAPF64[$1>>3]=$9?-$5:$5;break label$50;case 0:case 1:break label$52}}$5=0;if(($6|0)>=0){$2=$6;while(1){$5=$5+HEAPF64[($7+160|0)+($2<<3)>>3];$0=($2|0)>0;$2=$2+ -1|0;if($0){continue}break}}HEAPF64[$1>>3]=$9?-$5:$5;$5=HEAPF64[$7+160>>3]-$5;$2=1;if(($6|0)>=1){while(1){$5=$5+HEAPF64[($7+160|0)+($2<<3)>>3];$0=($2|0)!=($6|0);$2=$2+1|0;if($0){continue}break}}HEAPF64[$1+8>>3]=$9?-$5:$5;break label$50}HEAPF64[$1>>3]=-$5;$5=HEAPF64[$7+168>>3];HEAPF64[$1+16>>3]=-$15;HEAPF64[$1+8>>3]=-$5}global$0=$7+560|0;return $11&7}function dmGameSystem__CompParticleFXUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=0,$13=0,$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=0,$28=0,$29=Math_fround(0),$30=Math_fround(0);$1=global$0-48|0;global$0=$1;$5=HEAP32[$0+8>>2];$2=HEAP32[$0+4>>2];HEAP32[$5+100>>2]=HEAP32[$2>>2];label$1:{label$2:{label$3:{$3=HEAP32[$5>>2];$10=HEAP32[$5+4>>2];label$4:{if(($3|0)==($10|0)){break label$4}$4=$10-$3|0;$14=($4|0)/40|0;$10=HEAP32[$5+68>>2];label$5:{if(!$4){break label$5}$28=$14>>>0>1?$14:1;label$6:{while(1){$3=Math_imul($12,40)+$3|0;$13=HEAP32[$3>>2];label$8:{if(!$13){break label$8}$2=HEAP32[$5+32>>2];$27=HEAP32[$3+28>>2];if((HEAP32[$5+36>>2]-$2|0)/48>>>0<=$27>>>0){break label$6}$2=$2+Math_imul($27,48)|0;$15=HEAPF32[$2+24>>2];$16=HEAPF32[$2+20>>2];$17=HEAPF32[$2+28>>2];$18=HEAPF32[$2+16>>2];$7=HEAPF32[$2>>2];$8=HEAPF32[$2+4>>2];$9=HEAPF32[$2+8>>2];dmGameObject__GetWorldTransform_28dmGameObject__Instance__29($1,$13);$29=HEAPF32[$1+16>>2];$30=HEAPF32[$1+20>>2];$13=HEAP32[$3+16>>2];$6=HEAPF32[$1+8>>2];$21=HEAPF32[$1+32>>2];$11=Math_fround($7*$21);$7=HEAPF32[$1+12>>2];$22=HEAPF32[$1+36>>2];$19=Math_fround($8*$22);$8=HEAPF32[$1>>2];$23=HEAPF32[$1+40>>2];$20=Math_fround($9*$23);$24=Math_fround(Math_fround(Math_fround($6*$11)+Math_fround($7*$19))-Math_fround($8*$20));$9=HEAPF32[$1+4>>2];$25=Math_fround(Math_fround($6*$20)+Math_fround(Math_fround($8*$11)+Math_fround($9*$19)));$26=Math_fround(Math_fround(Math_fround($8*$19)+Math_fround($7*$20))-Math_fround($9*$11));$11=Math_fround(Math_fround(Math_fround($7*$11)+Math_fround($9*$20))-Math_fround($6*$19));HEAPF32[$1+8>>2]=HEAPF32[$1+24>>2]+Math_fround(Math_fround($8*$24)+Math_fround(Math_fround(Math_fround($6*$25)+Math_fround($7*$26))-Math_fround($9*$11)));HEAPF32[$1+4>>2]=$30+Math_fround(Math_fround($6*$11)+Math_fround(Math_fround(Math_fround($7*$24)+Math_fround($9*$25))-Math_fround($8*$26)));HEAPF32[$1>>2]=$29+Math_fround(Math_fround($9*$26)+Math_fround(Math_fround(Math_fround($8*$25)+Math_fround($7*$11))-Math_fround($6*$24)));dmParticle__SetPosition_28dmParticle__Context__2c_20unsigned_20int_2c_20Vectormath__Aos__Point3_20const__29($10,$13,$1);$13=HEAP32[$3+16>>2];HEAPF32[$1+12>>2]=Math_fround(Math_fround(Math_fround($17*$7)-Math_fround($18*$8))-Math_fround($16*$9))-Math_fround($15*$6);HEAPF32[$1+8>>2]=Math_fround(Math_fround($16*$8)+Math_fround(Math_fround($17*$6)+Math_fround($15*$7)))-Math_fround($18*$9);HEAPF32[$1+4>>2]=Math_fround(Math_fround($18*$6)+Math_fround(Math_fround($17*$9)+Math_fround($16*$7)))-Math_fround($15*$8);HEAPF32[$1>>2]=Math_fround(Math_fround($15*$9)+Math_fround(Math_fround($17*$8)+Math_fround($18*$7)))-Math_fround($16*$6);dmParticle__SetRotation_28dmParticle__Context__2c_20unsigned_20int_2c_20Vectormath__Aos__Quat_20const__29($10,$13,$1);$6=$21<$22?$21:$22;dmParticle__SetScale_28dmParticle__Context__2c_20unsigned_20int_2c_20float_29($10,HEAP32[$3+16>>2],$23<$6?$23:$6);dmParticle__SetScaleAlongZ_28dmParticle__Context__2c_20unsigned_20int_2c_20bool_29($10,HEAP32[$3+16>>2],(HEAPU8[HEAP32[$3>>2]+137|0]&2)>>>1|0);if(!(HEAP8[$2+36|0]&1)|HEAP8[$3+32|0]&1){break label$8}dmParticle__StartInstance_28dmParticle__Context__2c_20unsigned_20int_29($10,HEAP32[$3+16>>2]);HEAP16[$3+32>>1]=HEAPU16[$3+32>>1]|1}$12=$12+1|0;if(($28|0)==($12|0)){$2=HEAP32[$0+4>>2];break label$5}$3=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$3|0)/40>>>0>$12>>>0){continue}break}break label$1}break label$1}$12=HEAP32[$0+12>>2];dmParticle__Update_28dmParticle__Context__2c_20float_2c_20dmParticle__FetchAnimationResult_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmParticle__AnimationData__29_29($10,HEAPF32[$2>>2]);if(!$4){break label$4}$3=0;while(1){$0=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$0|0)/40>>>0<=$3>>>0){break label$1}label$11:{label$12:{$2=Math_imul($3,40);$0=$2+$0|0;if(HEAP32[$0>>2]?!(HEAP8[$0+32|0]&1):0){break label$12}if(!dmParticle__IsSleeping_28dmParticle__Context__2c_20unsigned_20int_29($10,HEAP32[$0+16>>2])){break label$12}$4=HEAP32[$0+20>>2];HEAP32[$5+96>>2]=HEAP32[$5+96>>2]-((HEAP32[$4+4>>2]-HEAP32[$4>>2]|0)/18568|0);dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$12>>2],HEAP32[$0+20>>2]);dmParticle__DestroyInstance_28dmParticle__Context__2c_20unsigned_20int_29($10,HEAP32[$0+16>>2]);$4=HEAP32[$5+4>>2];$0=HEAP32[$5>>2];if(($4-$0|0)/40>>>0<=$3>>>0){break label$3}$0=$0+$2|0;$2=$4+ -40|0;$4=HEAP32[$2+4>>2];HEAP32[$0>>2]=HEAP32[$2>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$2+36>>2];HEAP32[$0+32>>2]=HEAP32[$2+32>>2];HEAP32[$0+36>>2]=$4;$4=HEAP32[$2+28>>2];HEAP32[$0+24>>2]=HEAP32[$2+24>>2];HEAP32[$0+28>>2]=$4;$4=HEAP32[$2+20>>2];HEAP32[$0+16>>2]=HEAP32[$2+16>>2];HEAP32[$0+20>>2]=$4;$4=HEAP32[$2+12>>2];HEAP32[$0+8>>2]=HEAP32[$2+8>>2];HEAP32[$0+12>>2]=$4;$0=HEAP32[$5+4>>2]+ -40|0;HEAP32[$5+4>>2]=$0;if($0>>>0>2]){break label$2}$14=$14+ -1|0;break label$11}$3=$3+1|0}if($3>>>0<$14>>>0){continue}break}}global$0=$1+48|0;return 0}__assert_fail(48256,47773,464,48271);abort()}__assert_fail(48281,47773,467,48271);abort()}__assert_fail(48173,47773,430,47986);abort()}function dmHttpServer__Update_28dmHttpServer__Server__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$3=global$0-624|0;global$0=$3;if(HEAP8[$0+65604|0]&1){HEAP32[$3+16>>2]=HEAPU16[$0+20>>1];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,156923,157138,$3+16|0);dmHttpServer__Connect_28dmHttpServer__Server__2c_20unsigned_20short_29($0,HEAPU16[$0+20>>1]);HEAP8[$0+65604|0]=HEAPU8[$0+65604|0]&254}$9=dmSocket__Selector__Selector_28_29($3+24|0);dmSocket__SelectorZero_28dmSocket__Selector__29($9);dmSocket__SelectorSet_28dmSocket__Selector__2c_20dmSocket__SelectorKind_2c_20int_29($9,0,HEAP32[$0+64>>2]);$8=-1;label$2:{label$3:{label$4:{if(dmSocket__Select_28dmSocket__Selector__2c_20int_29($9,0)){break label$4}$1=HEAP32[$0+64>>2];label$5:{if(!(HEAP32[($1>>>3&536870908)+$9>>2]>>>($1&31)&1)){break label$5}$1=$3+416|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;label$6:{label$7:{$1=dmSocket__Accept_28int_2c_20dmSocket__Address__2c_20int__29(HEAP32[$0+64>>2],$1,$3+412|0);$4=$1+31|0;if($4>>>0>11){if($1){break label$5}$1=HEAP32[$0+56>>2];if(($1|0)==HEAP32[$0+52>>2]){HEAP32[$3>>2]=$1-HEAP32[$0+48>>2]>>4;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,156923,157168,$3);dmSocket__Shutdown_28int_2c_20dmSocket__ShutdownType_29(HEAP32[$3+412>>2]);dmSocket__Delete_28int_29(HEAP32[$3+412>>2]);break label$5}dmSocket__SetNoDelay_28int_2c_20bool_29(HEAP32[$3+412>>2]);$4=HEAP32[$3+412>>2];$5=dmTime__GetTime_28_29();$2=i64toi32_i32$HIGH_BITS;$1=HEAP32[$0+52>>2];if(($1|0)==HEAP32[$0+56>>2]){break label$7}HEAP32[$0+52>>2]=$1+16;HEAP32[$1+8>>2]=$5;HEAP32[$1+12>>2]=$2;HEAP32[$1+4>>2]=0;HEAP32[$1>>2]=$4;break label$5}switch($4-1|0){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break label$5;default:break label$6}}__assert_fail(157731,157693,484,157755);abort()}HEAP8[$0+65604|0]=HEAPU8[$0+65604|0]|1}dmSocket__SelectorZero_28dmSocket__Selector__29($9);$4=dmTime__GetTime_28_29();$12=i64toi32_i32$HIGH_BITS;$2=HEAP32[$0+48>>2];$7=HEAP32[$0+52>>2];label$10:{if(($2|0)==($7|0)){break label$10}$1=0;while(1){$10=$1<<4;$6=$10+$2|0;$5=HEAP32[$6+8>>2];$13=$4-$5|0;$5=$12-(HEAP32[$6+12>>2]+($4>>>0<$5>>>0)|0)|0;$11=HEAP32[$0+44>>2];if(($5|0)==($11|0)&$13>>>0>HEAPU32[$0+40>>2]|$5>>>0>$11>>>0){dmSocket__Shutdown_28int_2c_20dmSocket__ShutdownType_29(HEAP32[$6>>2]);dmSocket__Delete_28int_29(HEAP32[$6>>2]);$5=HEAP32[$0+52>>2];$2=HEAP32[$0+48>>2];if($5-$2>>4>>>0<=$1>>>0){break label$3}$5=$5+ -16|0;$6=HEAP32[$5+4>>2];$2=$2+$10|0;HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=$6;$7=HEAP32[$5+12>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=$7;$7=HEAP32[$0+52>>2]+ -16|0;HEAP32[$0+52>>2]=$7;$2=HEAP32[$0+48>>2];if($7>>>0<$2>>>0){break label$2}$1=$1+ -1|0}$1=$1+1|0;if($1>>>0<$7-$2>>4>>>0){continue}break}if(($2|0)==($7|0)){break label$10}$1=0;while(1){dmSocket__SelectorSet_28dmSocket__Selector__2c_20dmSocket__SelectorKind_2c_20int_29($9,0,HEAP32[($1<<4)+$2>>2]);$1=$1+1|0;$2=HEAP32[$0+48>>2];if($1>>>0>2]-$2>>4>>>0){continue}break}}if(dmSocket__Select_28dmSocket__Selector__2c_20int_29($9,0)){break label$4}$8=0;$1=HEAP32[$0+48>>2];if(($1|0)==HEAP32[$0+52>>2]){break label$4}$5=$0+68|0;$2=0;while(1){$7=$2<<4;$4=$7+$1|0;$1=HEAP32[$4>>2];label$16:{if(!(HEAP32[($1>>>3&536870908)+$9>>2]>>>($1&31)&1)){break label$16}$1=0;memset($3+416|0,0,204);HEAP32[$3+440>>2]=0;HEAP32[$3+596>>2]=200;$8=HEAP32[$4>>2];HEAP32[$3+448>>2]=$0;HEAP32[$3+444>>2]=$8;$8=1;label$17:{label$18:{label$19:{label$20:{while(1){$6=65535-$1|0;if($6){if(dmSocket__Receive_28int_2c_20void__2c_20int_2c_20int__29(HEAP32[$4>>2],($0+$1|0)+68|0,$6,$3+412|0)){break label$17}$6=HEAP32[$3+412>>2];if(!$6){if($8&1){break label$17}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,156923,157387,0);break label$17}$1=$1+$6|0;HEAP32[$3+604>>2]=$1;$8=0;HEAP8[((($1|0)<65535?$1:65535)+$0|0)+68|0]=0;$6=dmHttpServerPrivate__ParseHeader_28char__2c_20void__2c_20void_20_28__29_28void__2c_20char_20const__2c_20char_20const__2c_20int_2c_20int_29_2c_20void_20_28__29_28void__2c_20char_20const__2c_20char_20const__29_2c_20void_20_28__29_28void__2c_20int_29_29($5,$3+416|0,2015,2016,2017)+1|0;if($6>>>0>2){break label$19}switch($6-1|0){case 0:break label$18;case 1:continue;default:break label$20}}break}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,156923,157440,0);break label$17}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,156923,157477,0);break label$17}__assert_fail(157498,157102,568,157500);abort()}if(HEAP32[$3+440>>2]){break label$17}if(!(HEAP8[$3+616|0]&1)){break label$16}}dmSocket__Shutdown_28int_2c_20dmSocket__ShutdownType_29(HEAP32[$4>>2]);dmSocket__Delete_28int_29(HEAP32[$4>>2]);$1=HEAP32[$0+52>>2];$4=HEAP32[$0+48>>2];if($1-$4>>4>>>0<=$2>>>0){break label$3}$4=$4+$7|0;$1=$1+ -16|0;$7=HEAP32[$1+4>>2];HEAP32[$4>>2]=HEAP32[$1>>2];HEAP32[$4+4>>2]=$7;$8=HEAP32[$1+12>>2];HEAP32[$4+8>>2]=HEAP32[$1+8>>2];HEAP32[$4+12>>2]=$8;$1=HEAP32[$0+52>>2]+ -16|0;HEAP32[$0+52>>2]=$1;if($1>>>0>2]){break label$2}$2=$2+ -1|0}$2=$2+1|0;$1=HEAP32[$0+48>>2];if($2>>>0>2]-$1>>4>>>0){continue}break}$8=0}global$0=$3+624|0;return $8}__assert_fail(157760,157693,464,157775);abort()}__assert_fail(157785,157693,467,157775);abort()}function btQuantizedBvh__walkStacklessQuantizedTreeAgainstRay_28btNodeOverlapCallback__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20int_2c_20int_29_20const($0,$1,$2,$3,$4,$5,$6){var $7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(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,$43=0,$44=0;$11=global$0-32|0;global$0=$11;$22=HEAPF32[$2+4>>2];$23=HEAPF32[$3+4>>2];$24=HEAPF32[$2>>2];$25=HEAPF32[$3>>2];$13=HEAPF32[$0+28>>2];$20=HEAPF32[$0+12>>2];$16=HEAPF32[$3+8>>2];$17=HEAPF32[$2+8>>2];$7=Math_fround(($16<$17?$16:$17)+HEAPF32[$4+8>>2]);$7=$7<$20?$20:$7;$10=HEAPF32[$0+44>>2];$7=Math_fround(Math_fround(($13<$7?$13:$7)-$20)*$10);label$1:{if($7=Math_fround(0)){$26=~~$7>>>0;break label$1}$26=0}$14=HEAPF32[$0+24>>2];$21=HEAPF32[$0+8>>2];$7=Math_fround(($23<$22?$23:$22)+HEAPF32[$4+4>>2]);$7=$7<$21?$21:$7;$18=HEAPF32[$0+40>>2];$7=Math_fround(Math_fround(($14<$7?$14:$7)-$21)*$18);label$3:{if($7=Math_fround(0)){$27=~~$7>>>0;break label$3}$27=0}$12=HEAPF32[$0+20>>2];$15=HEAPF32[$0+4>>2];$7=Math_fround(($25<$24?$25:$24)+HEAPF32[$4>>2]);$7=$7<$15?$15:$7;$8=HEAPF32[$0+36>>2];$7=Math_fround(Math_fround(($12<$7?$12:$7)-$15)*$8);label$5:{if($7=Math_fround(0)){$28=~~$7>>>0;break label$5}$28=0}$7=Math_fround(($17<$16?$16:$17)+HEAPF32[$5+8>>2]);$7=$7<$20?$20:$7;$7=Math_fround(Math_fround(Math_fround(($13<$7?$13:$7)-$20)*$10)+Math_fround(1));label$7:{if($7=Math_fround(0)){$19=~~$7>>>0;break label$7}$19=0}$7=Math_fround(($22<$23?$23:$22)+HEAPF32[$5+4>>2]);$7=$7<$21?$21:$7;$7=Math_fround(Math_fround(Math_fround(($14<$7?$14:$7)-$21)*$18)+Math_fround(1));label$9:{if($7=Math_fround(0)){$9=~~$7>>>0;break label$9}$9=0}$7=Math_fround(($24<$25?$25:$24)+HEAPF32[$5>>2]);$7=$7<$15?$15:$7;$7=Math_fround(Math_fround(Math_fround(($12<$7?$12:$7)-$15)*$8)+Math_fround(1));label$11:{if($7=Math_fround(0)){$3=~~$7>>>0;break label$11}$3=0}if(0<($6|0)){$12=Math_fround($25-$24);$18=Math_fround($23-$22);$8=Math_fround($16-$17);$7=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround($12*$12)+Math_fround($18*$18))+Math_fround($8*$8)))));$10=Math_fround($8*$7);$13=Math_fround($8*$10);$8=Math_fround($12*$7);$7=Math_fround($18*$7);$18=Math_fround($13+Math_fround(Math_fround($12*$8)+Math_fround($18*$7)));$33=$26&65534;$34=$27&65534;$35=$28&65534;$36=$19|1;$37=$9|1;$38=$3|1;$3=HEAP32[$0+136>>2];$15=$10==Math_fround(0)?Math_fround(0xde0b6b000000000):Math_fround(Math_fround(1)/$10);$19=$15>2];$9=0;label$15:{label$16:{label$17:{label$18:{if($35>>>0>HEAPU16[$3+6>>1]){break label$18}$32=HEAPU16[$3>>1];if($38>>>0<$32>>>0|$33>>>0>HEAPU16[$3+10>>1]){break label$18}$26=HEAPU16[$3+4>>1];if($36>>>0<$26>>>0|$34>>>0>HEAPU16[$3+8>>1]){break label$18}$27=HEAPU16[$3+2>>1];if($37>>>0<$27>>>0){break label$18}$13=HEAPF32[$0+12>>2];$14=HEAPF32[$0+44>>2];$12=HEAPF32[$0+8>>2];$10=HEAPF32[$0+40>>2];$8=HEAPF32[$0+4>>2];$7=HEAPF32[$0+36>>2];HEAP32[$11+12>>2]=0;$28=HEAPU16[$3+10>>1];$19=HEAPU16[$3+8>>1];$9=HEAPU16[$3+6>>1];HEAP32[$11+28>>2]=0;HEAPF32[$11>>2]=Math_fround($8+Math_fround(Math_fround($32>>>0)/$7))-HEAPF32[$5>>2];HEAPF32[$11+4>>2]=Math_fround($12+Math_fround(Math_fround($27>>>0)/$10))-HEAPF32[$5+4>>2];HEAPF32[$11+8>>2]=Math_fround($13+Math_fround(Math_fround($26>>>0)/$14))-HEAPF32[$5+8>>2];HEAPF32[$11+16>>2]=Math_fround($8+Math_fround(Math_fround($9>>>0)/$7))-HEAPF32[$4>>2];HEAPF32[$11+20>>2]=Math_fround($12+Math_fround(Math_fround($19>>>0)/$10))-HEAPF32[$4+4>>2];HEAPF32[$11+24>>2]=Math_fround($13+Math_fround(Math_fround($28>>>0)/$14))-HEAPF32[$4+8>>2];label$19:{$8=HEAPF32[$2+4>>2];$13=Math_fround($16*Math_fround(HEAPF32[$40>>2]-$8));$7=HEAPF32[$2>>2];$10=Math_fround($17*Math_fround(HEAPF32[$44>>2]-$7));if($13>$10){break label$19}$14=Math_fround($17*Math_fround(HEAPF32[$43>>2]-$7));$8=Math_fround($16*Math_fround(HEAPF32[$42>>2]-$8));if($14>$8){break label$19}$7=HEAPF32[$2+8>>2];$12=Math_fround($15*Math_fround(HEAPF32[$39>>2]-$7));$10=$8<$10?$8:$10;if($12>$10){break label$19}$8=$13>$14?$13:$14;$7=Math_fround($15*Math_fround(HEAPF32[$41>>2]-$7));if($8>$7){break label$19}$9=($12>$8?$12:$8)<$18&($7<$10?$7:$10)>Math_fround(0);if(!$9|($31|0)<0){break label$18}$9=HEAP32[$3+12>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+8>>2]]($1,$9>>21,$9&2097151);break label$17}$9=0}if(($31|0)>-1){break label$17}if(!$9){break label$16}}$29=$29+1|0;$3=$3+16|0;break label$15}$9=HEAP32[$3+12>>2];$29=$29-$9|0;$3=$3-($9<<4)|0}$30=$30+1|0;if(($29|0)<($6|0)){continue}break}}if(HEAP32[147973]<($30|0)){HEAP32[147973]=$30}global$0=$11+32|0}function dmParticle__LoadResources_28dmParticle__Prototype__2c_20dmParticleDDF__ParticleFX__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=0,$10=0,$11=Math_fround(0),$12=0,$13=0,$14=0,$15=0,$16=Math_fround(0),$17=0,$18=0,$19=0,$20=0,$21=0,$22=0,$23=0,$24=0,$25=0;$14=global$0-48|0;global$0=$14;$19=HEAP32[$1+4>>2];$2=HEAP32[$0+16>>2];if($2){dmDDF__FreeMessage_28void__29($2)}HEAP32[$0+16>>2]=$1;label$2:{label$3:{label$4:{if(!(HEAP8[$0+12|0]&1)){dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($19,18568,$0,$0+8|0,$0+4|0);$2=HEAP32[$0>>2];if((HEAP32[$0+8>>2]-$2|0)/18568>>>0>=$19>>>0){$3=Math_imul($19,18568);HEAP32[$0+4>>2]=$3+$2;memset($2,0,$3);label$7:{if($19){while(1){label$10:{if(HEAPU32[$1+4>>2]>$17>>>0){$10=HEAP32[$1>>2]+($17<<7)|0;$3=$10;if(HEAP32[$3+60>>2]==2){HEAP32[$3+60>>2]=1}$2=HEAP32[$0>>2];if((HEAP32[$0+4>>2]-$2|0)/18568>>>0<=$17>>>0){break label$4}$2=$2+Math_imul($17,18568)|0;HEAP32[$2+18544>>2]=dmHashString64(HEAP32[$10+52>>2]);HEAP32[$2+18548>>2]=i64toi32_i32$HIGH_BITS;HEAP32[$2+18560>>2]=HEAP32[$3+60>>2];$2=memset($2,0,18528);$12=HEAP32[$10+88>>2];if(!$12){break label$10}$4=0;while(1){$3=HEAP32[$10+84>>2]+($4<<4)|0;$8=HEAP32[$3>>2];label$14:{if(($8|0)<=14){$5=0;$7=Math_fround(0);$13=HEAP32[$3+4>>2];$15=HEAP32[$3+8>>2];$6=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($13,$15,Math_fround(0));while(1){$18=$2+Math_imul($8,772)|0;$9=$18+Math_imul($5,12)|0;$11=Math_fround($7+Math_fround(.015625));$16=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($13,$15,$11);HEAPF32[$9+8>>2]=Math_fround($16-$6)*Math_fround(64);HEAPF32[$9+4>>2]=$6;HEAPF32[$9>>2]=$7;$7=$11;$6=$16;$5=$5+1|0;if(($5|0)!=64){continue}break}HEAP32[$18+768>>2]=HEAP32[$3+12>>2];break label$14}HEAP32[$14+32>>2]=$8;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,131153,131359,$14+32|0)}$4=$4+1|0;if(($12|0)==($4|0)){break label$10}if(HEAPU32[$10+88>>2]>$4>>>0){continue}break}__assert_fail(131789,131801,204,131839);abort()}__assert_fail(131789,131801,240,131839);abort()}$5=0;$7=Math_fround(0);while(1){$3=$2+Math_imul($5,12)|0;$6=HEAPF32[$3+3096>>2];$11=HEAPF32[$3+3092>>2];$6=$6>=Math_fround(0)?Math_fround($6+$11):$11;$7=$6>$7?$6:$7;$5=$5+1|0;if(($5|0)!=64){continue}break}HEAPF32[$2+18564>>2]=$7;$9=HEAP32[$10+96>>2];label$18:{if(!$9){break label$18}$4=0;while(1){$3=HEAP32[$10+92>>2]+Math_imul($4,12)|0;$8=HEAP32[$3>>2];label$20:{if(($8|0)<=8){$5=0;$7=Math_fround(0);$12=HEAP32[$3+4>>2];$13=HEAP32[$3+8>>2];$6=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($12,$13,Math_fround(0));while(1){$3=($2+Math_imul($8,772)|0)+Math_imul($5,12)|0;$15=$3+11588|0;$11=Math_fround($7+Math_fround(.015625));$16=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($12,$13,$11);HEAPF32[$15>>2]=Math_fround($16-$6)*Math_fround(64);HEAPF32[$3+11584>>2]=$6;HEAPF32[$3+11580>>2]=$7;$7=$11;$6=$16;$5=$5+1|0;if(($5|0)!=64){continue}break}break label$20}HEAP32[$14+16>>2]=$8;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,131153,131398,$14+16|0)}$4=$4+1|0;if(($9|0)==($4|0)){break label$18}if(HEAPU32[$10+96>>2]>$4>>>0){continue}break}__assert_fail(131789,131801,212,131839);abort()}if(HEAP8[$2+18540|0]&1){break label$7}$8=HEAP32[$10+104>>2];$20=$2+18528|0;$3=$2+18536|0;$13=$2+18532|0;dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($8,1544,$20,$3,$13);$2=HEAP32[$2+18528>>2];if((HEAP32[$3>>2]-$2|0)/1544>>>0<$8>>>0){break label$3}$3=Math_imul($8,1544);HEAP32[$13>>2]=$3+$2;memset($2,0,$3);if($8){$4=0;while(1){label$25:{label$26:{$21=HEAP32[$20>>2];if((HEAP32[$13>>2]-$21|0)/1544>>>0>$4>>>0){if(HEAPU32[$10+104>>2]<=$4>>>0){break label$26}$2=HEAP32[$10+100>>2]+($4<<6)|0;$22=HEAP32[$2+52>>2];if(!$22){break label$25}$3=$2;$9=0;while(1){$12=HEAP32[$2+48>>2]+($9<<4)|0;$15=HEAP32[$12>>2];label$29:{if(($15|0)<=1){$5=0;$7=Math_fround(0);$23=HEAP32[$12+4>>2];$24=HEAP32[$12+8>>2];$6=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($23,$24,Math_fround(0));while(1){$25=($21+Math_imul($4,1544)|0)+Math_imul($15,772)|0;$18=$25+Math_imul($5,12)|0;$11=Math_fround($7+Math_fround(.015625));$16=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($23,$24,$11);HEAPF32[$18+8>>2]=Math_fround($16-$6)*Math_fround(64);HEAPF32[$18+4>>2]=$6;HEAPF32[$18>>2]=$7;$7=$11;$6=$16;$5=$5+1|0;if(($5|0)!=64){continue}break}HEAP32[$25+768>>2]=HEAP32[$12+12>>2];break label$29}HEAP32[$14>>2]=$15;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,131153,131438,$14)}$9=$9+1|0;if(($22|0)==($9|0)){break label$25}if(HEAPU32[$3+52>>2]>$9>>>0){continue}break}__assert_fail(131789,131801,140,131839);abort()}break label$4}__assert_fail(131789,131801,220,131839);abort()}$4=$4+1|0;if(($8|0)!=($4|0)){continue}break}}$17=$17+1|0;if(($19|0)!=($17|0)){continue}break}}global$0=$14+48|0;return}break label$2}break label$3}break label$2}__assert_fail(132466,131573,430,131839);abort()}__assert_fail(131656,131573,457,131675);abort()}__assert_fail(131498,131573,444,131644);abort()}function void_20std____2____insertion_sort_3_dmParticle__SortPred__2c_20dmParticle__Particle___28dmParticle__Particle__2c_20dmParticle__Particle__2c_20dmParticle__SortPred__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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,$29=0,$30=0,$31=0,$32=0;$6=global$0-48|0;global$0=$6;$3=$0+160|0;$5=$0+320|0;$2=HEAP32[$0+464>>2];$4=HEAP32[$0+304>>2];label$1:{if($4>>>0>=HEAPU32[$0+144>>2]){if($2>>>0>=$4>>>0){break label$1}std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($3,$5);if(HEAPU32[$0+304>>2]>=HEAPU32[$0+144>>2]){break label$1}std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($0,$3);break label$1}if($2>>>0<$4>>>0){std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($0,$5);break label$1}std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($0,$3);if(HEAPU32[$0+464>>2]>=HEAPU32[$0+304>>2]){break label$1}std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($3,$5)}$4=$0+480|0;if(($4|0)!=($1|0)){while(1){$8=HEAP32[$4+144>>2];if($8>>>0>2]){$7=HEAP32[$4+56>>2];$9=HEAP32[$4+52>>2];$10=HEAP32[$4+44>>2];$11=HEAP32[$4+40>>2];$12=HEAP32[$4+36>>2];$13=HEAP32[$4+28>>2];$14=HEAP32[$4+24>>2];$15=HEAP32[$4+20>>2];$16=HEAP32[$4+48>>2];$17=HEAP32[$4+32>>2];$18=HEAP32[$4+16>>2];$19=HEAP32[$4+8>>2];$20=HEAP32[$4+4>>2];$21=HEAP32[$4>>2];HEAP32[$6+44>>2]=HEAP32[$4+88>>2];$3=HEAP32[$4+84>>2];HEAP32[$6+36>>2]=HEAP32[$4+80>>2];HEAP32[$6+40>>2]=$3;$3=HEAP32[$4+76>>2];HEAP32[$6+28>>2]=HEAP32[$4+72>>2];HEAP32[$6+32>>2]=$3;$3=HEAP32[$4+68>>2];HEAP32[$6+20>>2]=HEAP32[$4+64>>2];HEAP32[$6+24>>2]=$3;$22=HEAP32[$4+136>>2];$23=HEAP32[$4+132>>2];$24=HEAP32[$4+124>>2];$25=HEAP32[$4+120>>2];$26=HEAP32[$4+116>>2];$27=HEAP32[$4+108>>2];$28=HEAP32[$4+104>>2];$29=HEAP32[$4+100>>2];$30=HEAP32[$4+128>>2];$31=HEAP32[$4+112>>2];$32=HEAP32[$4+96>>2];HEAP32[$6+8>>2]=HEAP32[$4+156>>2];$3=HEAP32[$4+152>>2];HEAP32[$6>>2]=HEAP32[$4+148>>2];HEAP32[$6+4>>2]=$3;$3=$4;while(1){label$8:{$2=$5;HEAP32[$3>>2]=HEAP32[$2>>2];HEAP32[$3+4>>2]=HEAP32[$2+4>>2];HEAP32[$3+8>>2]=HEAP32[$2+8>>2];HEAP32[$3+16>>2]=HEAP32[$2+16>>2];HEAP32[$3+20>>2]=HEAP32[$2+20>>2];HEAP32[$3+24>>2]=HEAP32[$2+24>>2];HEAP32[$3+28>>2]=HEAP32[$2+28>>2];HEAP32[$3+32>>2]=HEAP32[$2+32>>2];HEAP32[$3+36>>2]=HEAP32[$2+36>>2];HEAP32[$3+40>>2]=HEAP32[$2+40>>2];HEAP32[$3+44>>2]=HEAP32[$2+44>>2];HEAP32[$3+48>>2]=HEAP32[$2+48>>2];HEAP32[$3+52>>2]=HEAP32[$2+52>>2];HEAP32[$3+56>>2]=HEAP32[$2+56>>2];$5=HEAP32[$2+68>>2];HEAP32[$3+64>>2]=HEAP32[$2+64>>2];HEAP32[$3+68>>2]=$5;$5=HEAP32[$2+76>>2];HEAP32[$3+72>>2]=HEAP32[$2+72>>2];HEAP32[$3+76>>2]=$5;$5=HEAP32[$2+84>>2];HEAP32[$3+80>>2]=HEAP32[$2+80>>2];HEAP32[$3+84>>2]=$5;HEAP32[$3+88>>2]=HEAP32[$2+88>>2];HEAP32[$3+96>>2]=HEAP32[$2+96>>2];HEAP32[$3+100>>2]=HEAP32[$2+100>>2];HEAP32[$3+104>>2]=HEAP32[$2+104>>2];HEAP32[$3+108>>2]=HEAP32[$2+108>>2];HEAP32[$3+112>>2]=HEAP32[$2+112>>2];HEAP32[$3+116>>2]=HEAP32[$2+116>>2];HEAP32[$3+120>>2]=HEAP32[$2+120>>2];HEAP32[$3+124>>2]=HEAP32[$2+124>>2];HEAP32[$3+128>>2]=HEAP32[$2+128>>2];HEAP32[$3+132>>2]=HEAP32[$2+132>>2];HEAP32[$3+136>>2]=HEAP32[$2+136>>2];$5=HEAP32[$2+148>>2];HEAP32[$3+144>>2]=HEAP32[$2+144>>2];HEAP32[$3+148>>2]=$5;$5=HEAP32[$2+156>>2];HEAP32[$3+152>>2]=HEAP32[$2+152>>2];HEAP32[$3+156>>2]=$5;if(($0|0)==($2|0)){$3=$0;break label$8}$5=$2+ -160|0;$3=$2;if($8>>>0>2]){continue}}break}HEAP32[$3>>2]=$21;HEAP32[$2+56>>2]=$7;HEAP32[$2+52>>2]=$9;HEAP32[$2+48>>2]=$16;HEAP32[$2+44>>2]=$10;HEAP32[$2+40>>2]=$11;HEAP32[$2+36>>2]=$12;HEAP32[$2+32>>2]=$17;HEAP32[$2+28>>2]=$13;HEAP32[$2+24>>2]=$14;HEAP32[$2+20>>2]=$15;HEAP32[$2+16>>2]=$18;HEAP32[$2+8>>2]=$19;HEAP32[$2+4>>2]=$20;$5=$2- -64|0;HEAP32[$5+24>>2]=HEAP32[$6+44>>2];$7=HEAP32[$6+40>>2];HEAP32[$5+16>>2]=HEAP32[$6+36>>2];HEAP32[$5+20>>2]=$7;$7=HEAP32[$6+32>>2];HEAP32[$5+8>>2]=HEAP32[$6+28>>2];HEAP32[$5+12>>2]=$7;$7=HEAP32[$6+24>>2];HEAP32[$5>>2]=HEAP32[$6+20>>2];HEAP32[$5+4>>2]=$7;HEAP32[$2+136>>2]=$22;HEAP32[$2+132>>2]=$23;HEAP32[$2+128>>2]=$30;HEAP32[$2+124>>2]=$24;HEAP32[$2+120>>2]=$25;HEAP32[$2+116>>2]=$26;HEAP32[$2+112>>2]=$31;HEAP32[$2+108>>2]=$27;HEAP32[$2+104>>2]=$28;HEAP32[$2+100>>2]=$29;HEAP32[$2+96>>2]=$32;HEAP32[$3+144>>2]=$8;$2=HEAP32[$6+4>>2];HEAP32[$3+148>>2]=HEAP32[$6>>2];HEAP32[$3+152>>2]=$2;HEAP32[$3+156>>2]=HEAP32[$6+8>>2]}$5=$4;$4=$4+160|0;if(($4|0)!=($1|0)){continue}break}}global$0=$6+48|0}function dmScript__URL_new_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$1=global$0-160|0;global$0=$1;$5=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;HEAP32[$1+152>>2]=0;HEAP32[$1+156>>2]=0;HEAP32[$1+144>>2]=0;HEAP32[$1+148>>2]=0;HEAP32[$1+136>>2]=0;HEAP32[$1+140>>2]=0;HEAP32[$1+128>>2]=0;HEAP32[$1+132>>2]=0;HEAP8[$1+128|0]=0;HEAP8[$1+129|0]=0;HEAP8[$1+130|0]=0;HEAP8[$1+131|0]=0;HEAP8[$1+132|0]=0;HEAP8[$1+133|0]=0;HEAP8[$1+134|0]=0;HEAP8[$1+135|0]=0;HEAP8[$1+152|0]=0;HEAP8[$1+153|0]=0;HEAP8[$1+154|0]=0;HEAP8[$1+155|0]=0;HEAP8[$1+156|0]=0;HEAP8[$1+157|0]=0;HEAP8[$1+158|0]=0;HEAP8[$1+159|0]=0;HEAP8[$1+144|0]=0;HEAP8[$1+145|0]=0;HEAP8[$1+146|0]=0;HEAP8[$1+147|0]=0;HEAP8[$1+148|0]=0;HEAP8[$1+149|0]=0;HEAP8[$1+150|0]=0;HEAP8[$1+151|0]=0;HEAP8[$1+136|0]=0;HEAP8[$1+137|0]=0;HEAP8[$1+138|0]=0;HEAP8[$1+139|0]=0;HEAP8[$1+140|0]=0;HEAP8[$1+141|0]=0;HEAP8[$1+142|0]=0;HEAP8[$1+143|0]=0;label$1:{label$2:{label$3:{if(($5|0)<=1){dmScript__ResolveURL_28lua_State__2c_20int_2c_20dmMessage__URL__2c_20dmMessage__URL__29($0,1,$1+128|0,0);break label$3}if(($5|0)==3){HEAP32[$1+120>>2]=0;HEAP32[$1+124>>2]=0;HEAP32[$1+112>>2]=0;HEAP32[$1+116>>2]=0;HEAP32[$1+104>>2]=0;HEAP32[$1+108>>2]=0;HEAP32[$1+96>>2]=0;HEAP32[$1+100>>2]=0;if(!lua_type($0,1)){HEAP8[$1+96|0]=0;HEAP8[$1+97|0]=0;HEAP8[$1+98|0]=0;HEAP8[$1+99|0]=0;HEAP8[$1+100|0]=0;HEAP8[$1+101|0]=0;HEAP8[$1+102|0]=0;HEAP8[$1+103|0]=0;HEAP8[$1+120|0]=0;HEAP8[$1+121|0]=0;HEAP8[$1+122|0]=0;HEAP8[$1+123|0]=0;HEAP8[$1+124|0]=0;HEAP8[$1+125|0]=0;HEAP8[$1+126|0]=0;HEAP8[$1+127|0]=0;HEAP8[$1+112|0]=0;HEAP8[$1+113|0]=0;HEAP8[$1+114|0]=0;HEAP8[$1+115|0]=0;HEAP8[$1+116|0]=0;HEAP8[$1+117|0]=0;HEAP8[$1+118|0]=0;HEAP8[$1+119|0]=0;HEAP8[$1+104|0]=0;HEAP8[$1+105|0]=0;HEAP8[$1+106|0]=0;HEAP8[$1+107|0]=0;HEAP8[$1+108|0]=0;HEAP8[$1+109|0]=0;HEAP8[$1+110|0]=0;HEAP8[$1+111|0]=0;dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29_1($0,$1+96|0)}label$7:{if(lua_type($0,1)){if(dmScript__IsHash_28lua_State__2c_20int_29($0,1)){$2=lua_touserdata($0,1);$3=HEAP32[$2+4>>2];HEAP32[$1+128>>2]=HEAP32[$2>>2];HEAP32[$1+132>>2]=$3;break label$7}label$10:{$2=lua_tolstring($0,1,0);$3=dmMessage__GetSocket_28char_20const__2c_20unsigned_20long_20long__29($2,$1+128|0);$4=$3+6|0;if($4>>>0>6){break label$10}switch($4-1|0){case 0:case 2:case 3:case 4:break label$10;case 1:break label$2;default:break label$7}}HEAP32[$1+4>>2]=$3;HEAP32[$1>>2]=$2;$2=luaL_error($0,112580,$1);break label$1}$2=HEAP32[$1+100>>2];HEAP32[$1+128>>2]=HEAP32[$1+96>>2];HEAP32[$1+132>>2]=$2}label$11:{label$12:{if(lua_type($0,2)){if(lua_isstring($0,2)){$2=lua_tolstring($0,2,0);label$15:{if(lua_type($0,1)){if(!lua_isstring($0,1)){break label$15}if(HEAPU8[lua_tolstring($0,1,0)|0]){break label$15}}$3=strlen($2);if(!$3){break label$12}dmScript__ResolvePath_28lua_State__2c_20char_20const__2c_20unsigned_20int_2c_20unsigned_20long_20long__29($0,$2,$3,$1+144|0);break label$11}HEAP32[$1+144>>2]=dmHashString64($2);HEAP32[$1+148>>2]=i64toi32_i32$HIGH_BITS;break label$11}HEAP32[$1+144>>2]=dmScript__CheckHash_28lua_State__2c_20int_29($0,2);HEAP32[$1+148>>2]=i64toi32_i32$HIGH_BITS;break label$11}if(!lua_type($0,1)){$2=HEAP32[$1+116>>2];HEAP32[$1+144>>2]=HEAP32[$1+112>>2];HEAP32[$1+148>>2]=$2;break label$11}if(!lua_type($0,3)){break label$11}$2=luaL_error($0,112616,0);break label$1}HEAP32[$1+88>>2]=0;HEAP32[$1+92>>2]=0;HEAP32[$1+80>>2]=0;HEAP32[$1+84>>2]=0;HEAP32[$1+72>>2]=0;HEAP32[$1+76>>2]=0;HEAP32[$1+64>>2]=0;HEAP32[$1+68>>2]=0;$2=$1- -64|0;HEAP8[$2|0]=0;HEAP8[$2+1|0]=0;HEAP8[$2+2|0]=0;HEAP8[$2+3|0]=0;HEAP8[$2+4|0]=0;HEAP8[$2+5|0]=0;HEAP8[$2+6|0]=0;HEAP8[$2+7|0]=0;HEAP8[$2+24|0]=0;HEAP8[$2+25|0]=0;HEAP8[$2+26|0]=0;HEAP8[$2+27|0]=0;HEAP8[$2+28|0]=0;HEAP8[$2+29|0]=0;HEAP8[$2+30|0]=0;HEAP8[$2+31|0]=0;HEAP8[$2+16|0]=0;HEAP8[$2+17|0]=0;HEAP8[$2+18|0]=0;HEAP8[$2+19|0]=0;HEAP8[$2+20|0]=0;HEAP8[$2+21|0]=0;HEAP8[$2+22|0]=0;HEAP8[$2+23|0]=0;HEAP8[$2+8|0]=0;HEAP8[$2+9|0]=0;HEAP8[$2+10|0]=0;HEAP8[$2+11|0]=0;HEAP8[$2+12|0]=0;HEAP8[$2+13|0]=0;HEAP8[$2+14|0]=0;HEAP8[$2+15|0]=0;dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29_1($0,$1- -64|0);$2=HEAP32[$1+84>>2];HEAP32[$1+144>>2]=HEAP32[$1+80>>2];HEAP32[$1+148>>2]=$2}if(lua_type($0,3)){if(lua_isstring($0,3)){HEAP32[$1+152>>2]=dmHashString64(lua_tolstring($0,3,0));HEAP32[$1+156>>2]=i64toi32_i32$HIGH_BITS;break label$3}HEAP32[$1+152>>2]=dmScript__CheckHash_28lua_State__2c_20int_29($0,3);HEAP32[$1+156>>2]=i64toi32_i32$HIGH_BITS;break label$3}label$20:{if(lua_type($0,1)){break label$20}if(lua_type($0,2)){break label$20}$6=HEAP32[$1+120>>2];$7=HEAP32[$1+124>>2]}HEAP32[$1+152>>2]=$6;HEAP32[$1+156>>2]=$7;break label$3}HEAP32[$1+52>>2]=112770;HEAP32[$1+48>>2]=112766;HEAP32[$1+44>>2]=112770;HEAP32[$1+40>>2]=112766;HEAP32[$1+36>>2]=112770;HEAP32[$1+32>>2]=112766;luaL_error($0,112669,$1+32|0)}$2=lua_newuserdata($0,32);$4=HEAP32[$1+156>>2];HEAP32[$2+24>>2]=HEAP32[$1+152>>2];HEAP32[$2+28>>2]=$4;$3=HEAP32[$1+148>>2];HEAP32[$2+16>>2]=HEAP32[$1+144>>2];HEAP32[$2+20>>2]=$3;$3=HEAP32[$1+140>>2];HEAP32[$2+8>>2]=HEAP32[$1+136>>2];HEAP32[$2+12>>2]=$3;$3=HEAP32[$1+132>>2];HEAP32[$2>>2]=HEAP32[$1+128>>2];HEAP32[$2+4>>2]=$3;lua_getfield($0,-1e4,112770);lua_setmetatable($0,-2);$2=1;if(($5+1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$1}__assert_fail(112774,112799,442,112821);abort()}HEAP32[$1+16>>2]=$2;$2=luaL_error($0,112547,$1+16|0)}global$0=$1+160|0;return $2|0}function dmGameSystem__AcquireResources_28dmGraphics__Context__2c_20dmResource__SResourceFactory__2c_20dmGameSystem__ModelResource__2c_20char_20const__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;$5=global$0-32|0;global$0=$5;label$1:{label$2:{label$3:{$9=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($1,HEAP32[HEAP32[$2>>2]>>2],$2+4|0);label$4:{if($9){break label$4}$9=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($1,HEAP32[HEAP32[$2>>2]+4>>2],$2+8|0);if($9){break label$4}HEAP32[$5+24>>2]=0;HEAP32[$5+28>>2]=0;HEAP32[$5+16>>2]=0;HEAP32[$5+20>>2]=0;HEAP32[$5+8>>2]=0;HEAP32[$5+12>>2]=0;HEAP32[$5>>2]=0;HEAP32[$5+4>>2]=0;label$5:{$7=HEAP32[$2>>2];$6=HEAP32[$7+12>>2];if(!$6){break label$5}$9=0;label$6:{while(1){if($6>>>0>$3>>>0){$6=$3<<2;$7=HEAP32[$6+HEAP32[$7+8>>2]>>2];label$9:{if(!HEAPU8[$7|0]){break label$9}$6=$5+$6|0;$7=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($1,$7,$6);if($7){$9=$9?$9:$7;break label$9}$6=dmResource__GetPath_28dmResource__SResourceFactory__2c_20void_20const__2c_20unsigned_20long_20long__29($1,HEAP32[$6>>2],(($3<<3)+$2|0)+56|0);$9=$6?$6:$9}if($3>>>0>6){break label$6}$3=$3+1|0;$7=HEAP32[$2>>2];$6=HEAP32[$7+12>>2];if($3>>>0<$6>>>0){continue}break label$6}break}__assert_fail(58002,58014,38,58040);abort()}if(!$9){break label$5}$0=HEAP32[$5>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+4>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+8>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+12>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+16>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+20>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+24>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+28>>2];if(!$0){break label$4}dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0);break label$4}$1=HEAP32[$5+4>>2];HEAP32[$2+20>>2]=HEAP32[$5>>2];HEAP32[$2+24>>2]=$1;$1=HEAP32[$5+12>>2];HEAP32[$2+28>>2]=HEAP32[$5+8>>2];HEAP32[$2+32>>2]=$1;$1=HEAP32[$5+28>>2];HEAP32[$2+44>>2]=HEAP32[$5+24>>2];HEAP32[$2+48>>2]=$1;$1=HEAP32[$5+20>>2];HEAP32[$2+36>>2]=HEAP32[$5+16>>2];HEAP32[$2+40>>2]=$1;$9=0;if(HEAP32[HEAP32[$2+8>>2]+104>>2]!=1){break label$4}$1=HEAP32[$2+4>>2];if(!(HEAP32[$1+20>>2]?0:!HEAP32[$1+28>>2])){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,57885,57893,0);$9=-15;break label$4}$1=HEAP32[HEAP32[$1+24>>2]>>2];if(!$1|!HEAP32[$1+4>>2]|!HEAP32[$1+12>>2]){break label$4}$3=HEAP32[$1+8>>2];label$20:{if(HEAP32[$3+64>>2]==1){$6=HEAP32[$3+60>>2]>>>2|0;if(FUNCTION_TABLE[HEAP32[147568]]($0,1)){$1=FUNCTION_TABLE[HEAP32[147562]]($0,HEAP32[$3+60>>2],HEAP32[$3+56>>2],2)|0;HEAP32[$2+120>>2]=5;HEAP32[$2+16>>2]=$1;break label$20}$10=$6<<5;$1=operator_20new_28unsigned_20long_29(($6&134217727)!=($6|0)?-1:$10);if($6){$11=HEAP32[$3+48>>2];$12=HEAP32[$3+12>>2];$13=HEAP32[$3+20>>2];$14=HEAP32[$3+8>>2];$15=HEAP32[$3+16>>2];$16=HEAP32[$3>>2];$18=HEAP32[$3+4>>2];$7=HEAP32[$3+56>>2];$3=$1;while(1){$8=$11+Math_imul(HEAP32[$7>>2],12)|0;$4=Math_imul(HEAP32[$8>>2],3);if($18>>>0<=$4>>>0){break label$3}$4=$16+($4<<2)|0;HEAP32[$3>>2]=HEAP32[$4>>2];HEAP32[$3+4>>2]=HEAP32[$4+4>>2];HEAP32[$3+8>>2]=HEAP32[$4+8>>2];$4=HEAP32[$8+4>>2]<<1;if($13>>>0<=$4>>>0){break label$2}$4=$15+($4<<2)|0;HEAP32[$3+12>>2]=HEAP32[$4>>2];HEAP32[$3+16>>2]=HEAP32[$4+4>>2];$8=Math_imul(HEAP32[$8+8>>2],3);if($12>>>0<=$8>>>0){break label$1}$8=$14+($8<<2)|0;HEAP32[$3+20>>2]=HEAP32[$8>>2];HEAP32[$3+24>>2]=HEAP32[$8+4>>2];HEAP32[$3+28>>2]=HEAP32[$8+8>>2];$7=$7+4|0;$3=$3+32|0;$17=$17+1|0;if(($17|0)!=($6|0)){continue}break}}HEAP32[$2+12>>2]=FUNCTION_TABLE[HEAP32[147555]]($0,$10,$1,2);dlfree($1);HEAP32[$2+124>>2]=$6;break label$4}$1=FUNCTION_TABLE[HEAP32[147562]]($0,HEAP32[$3+60>>2],HEAP32[$3+56>>2],2)|0;HEAP32[$2+120>>2]=3;HEAP32[$2+16>>2]=$1;$6=HEAP32[$3+60>>2]>>>1|0}HEAP32[$2+124>>2]=$6;$8=HEAP32[$3+52>>2];$10=$8<<5;$6=operator_20new_28unsigned_20long_29(($8|0)!=($8&134217727)?-1:$10);if($8){$11=HEAP32[$3+12>>2];$12=HEAP32[$3+20>>2];$13=HEAP32[$3+8>>2];$14=HEAP32[$3+16>>2];$15=HEAP32[$3>>2];$16=HEAP32[$3+4>>2];$7=HEAP32[$3+48>>2];$1=0;$3=$6;while(1){$4=Math_imul(HEAP32[$7>>2],3);if($16>>>0<=$4>>>0){break label$3}$4=$15+($4<<2)|0;HEAP32[$3>>2]=HEAP32[$4>>2];HEAP32[$3+4>>2]=HEAP32[$4+4>>2];HEAP32[$3+8>>2]=HEAP32[$4+8>>2];$4=HEAP32[$7+4>>2]<<1;if($12>>>0<=$4>>>0){break label$2}$4=$14+($4<<2)|0;HEAP32[$3+12>>2]=HEAP32[$4>>2];HEAP32[$3+16>>2]=HEAP32[$4+4>>2];$4=Math_imul(HEAP32[$7+8>>2],3);if($11>>>0<=$4>>>0){break label$1}$4=$13+($4<<2)|0;HEAP32[$3+20>>2]=HEAP32[$4>>2];HEAP32[$3+24>>2]=HEAP32[$4+4>>2];HEAP32[$3+28>>2]=HEAP32[$4+8>>2];$3=$3+32|0;$7=$7+12|0;$1=$1+1|0;if(($8|0)!=($1|0)){continue}break}}HEAP32[$2+12>>2]=FUNCTION_TABLE[HEAP32[147555]]($0,$10,$6,2);dlfree($6)}global$0=$5+32|0;return $9}__assert_fail(58002,58051,286,58040);abort()}__assert_fail(58002,58051,302,58040);abort()}__assert_fail(58002,58051,294,58040);abort()}function dmScript__Matrix4_mul_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=0,$23=Math_fround(0),$24=Math_fround(0);$2=global$0-144|0;global$0=$2;$22=1;label$1:{if(lua_isnumber($0,1)){$21=lua_tonumber($0,1);$1=dmScript__CheckMatrix4_28lua_State__2c_20int_29($0,2);$8=HEAPF32[$1>>2];HEAP32[$2+80>>2]=HEAP32[$1>>2];$9=HEAPF32[$1+4>>2];HEAP32[$2+84>>2]=HEAP32[$1+4>>2];$10=HEAPF32[$1+8>>2];HEAP32[$2+88>>2]=HEAP32[$1+8>>2];$11=HEAPF32[$1+12>>2];HEAP32[$2+92>>2]=HEAP32[$1+12>>2];$12=HEAPF32[$1+16>>2];HEAP32[$2+96>>2]=HEAP32[$1+16>>2];$13=HEAPF32[$1+20>>2];HEAP32[$2+100>>2]=HEAP32[$1+20>>2];$14=HEAPF32[$1+24>>2];HEAP32[$2+104>>2]=HEAP32[$1+24>>2];$15=HEAPF32[$1+28>>2];HEAP32[$2+108>>2]=HEAP32[$1+28>>2];$16=HEAPF32[$1+32>>2];HEAP32[$2+112>>2]=HEAP32[$1+32>>2];$17=HEAPF32[$1+36>>2];HEAP32[$2+116>>2]=HEAP32[$1+36>>2];$18=HEAPF32[$1+40>>2];HEAP32[$2+120>>2]=HEAP32[$1+40>>2];$19=HEAPF32[$1+44>>2];HEAP32[$2+124>>2]=HEAP32[$1+44>>2];$3=HEAPF32[$1+48>>2];HEAP32[$2+128>>2]=HEAP32[$1+48>>2];$5=HEAPF32[$1+52>>2];HEAP32[$2+132>>2]=HEAP32[$1+52>>2];$6=HEAPF32[$1+56>>2];HEAP32[$2+136>>2]=HEAP32[$1+56>>2];$4=HEAPF32[$1+60>>2];HEAP32[$2+140>>2]=HEAP32[$1+60>>2];$1=lua_newuserdata($0,64);$7=$4;$4=Math_fround($21);HEAPF32[$1+60>>2]=$7*$4;HEAPF32[$1+56>>2]=$6*$4;HEAPF32[$1+52>>2]=$5*$4;HEAPF32[$1+48>>2]=$3*$4;HEAPF32[$1+44>>2]=$19*$4;HEAPF32[$1+40>>2]=$18*$4;HEAPF32[$1+36>>2]=$17*$4;HEAPF32[$1+32>>2]=$16*$4;HEAPF32[$1+28>>2]=$15*$4;HEAPF32[$1+24>>2]=$14*$4;HEAPF32[$1+20>>2]=$13*$4;HEAPF32[$1+16>>2]=$12*$4;HEAPF32[$1+12>>2]=$11*$4;HEAPF32[$1+8>>2]=$10*$4;HEAPF32[$1+4>>2]=$9*$4;HEAPF32[$1>>2]=$8*$4;lua_getfield($0,-1e4,117552);lua_setmetatable($0,-2);break label$1}$1=dmScript__CheckMatrix4_28lua_State__2c_20int_29($0,1);$23=HEAPF32[$1>>2];HEAP32[$2+80>>2]=HEAP32[$1>>2];$24=HEAPF32[$1+4>>2];HEAP32[$2+84>>2]=HEAP32[$1+4>>2];$4=HEAPF32[$1+8>>2];HEAP32[$2+88>>2]=HEAP32[$1+8>>2];$8=HEAPF32[$1+12>>2];HEAP32[$2+92>>2]=HEAP32[$1+12>>2];$9=HEAPF32[$1+16>>2];HEAP32[$2+96>>2]=HEAP32[$1+16>>2];$10=HEAPF32[$1+20>>2];HEAP32[$2+100>>2]=HEAP32[$1+20>>2];$11=HEAPF32[$1+24>>2];HEAP32[$2+104>>2]=HEAP32[$1+24>>2];$12=HEAPF32[$1+28>>2];HEAP32[$2+108>>2]=HEAP32[$1+28>>2];$13=HEAPF32[$1+32>>2];HEAP32[$2+112>>2]=HEAP32[$1+32>>2];$14=HEAPF32[$1+36>>2];HEAP32[$2+116>>2]=HEAP32[$1+36>>2];$15=HEAPF32[$1+40>>2];HEAP32[$2+120>>2]=HEAP32[$1+40>>2];$16=HEAPF32[$1+44>>2];HEAP32[$2+124>>2]=HEAP32[$1+44>>2];$17=HEAPF32[$1+48>>2];HEAP32[$2+128>>2]=HEAP32[$1+48>>2];$18=HEAPF32[$1+52>>2];HEAP32[$2+132>>2]=HEAP32[$1+52>>2];$19=HEAPF32[$1+56>>2];HEAP32[$2+136>>2]=HEAP32[$1+56>>2];$3=HEAPF32[$1+60>>2];HEAP32[$2+140>>2]=HEAP32[$1+60>>2];$1=dmScript__ToUserType_28lua_State__2c_20int_2c_20unsigned_20int_29($0,2,HEAP32[279891]);if($1){Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($2+16|0,$2+80|0,$1);$1=lua_newuserdata($0,64);HEAP32[$1>>2]=HEAP32[$2+16>>2];HEAP32[$1+4>>2]=HEAP32[$2+20>>2];HEAP32[$1+8>>2]=HEAP32[$2+24>>2];HEAP32[$1+12>>2]=HEAP32[$2+28>>2];HEAP32[$1+16>>2]=HEAP32[$2+32>>2];HEAP32[$1+20>>2]=HEAP32[$2+36>>2];HEAP32[$1+24>>2]=HEAP32[$2+40>>2];HEAP32[$1+28>>2]=HEAP32[$2+44>>2];HEAP32[$1+32>>2]=HEAP32[$2+48>>2];HEAP32[$1+36>>2]=HEAP32[$2+52>>2];HEAP32[$1+40>>2]=HEAP32[$2+56>>2];HEAP32[$1+44>>2]=HEAP32[$2+60>>2];HEAP32[$1+48>>2]=HEAP32[$2+64>>2];HEAP32[$1+52>>2]=HEAP32[$2+68>>2];HEAP32[$1+56>>2]=HEAP32[$2+72>>2];HEAP32[$1+60>>2]=HEAP32[$2+76>>2];lua_getfield($0,-1e4,117552);lua_setmetatable($0,-2);break label$1}$1=dmScript__ToUserType_28lua_State__2c_20int_2c_20unsigned_20int_29($0,2,HEAP32[279889]);if($1){$5=HEAPF32[$1+4>>2];$6=HEAPF32[$1>>2];$7=HEAPF32[$1+8>>2];$20=HEAPF32[$1+12>>2];$1=lua_newuserdata($0,16);HEAPF32[$1+12>>2]=Math_fround(Math_fround(Math_fround($6*$8)+Math_fround($5*$12))+Math_fround($7*$16))+Math_fround($20*$3);HEAPF32[$1+8>>2]=Math_fround(Math_fround(Math_fround($6*$4)+Math_fround($5*$11))+Math_fround($7*$15))+Math_fround($20*$19);HEAPF32[$1+4>>2]=Math_fround(Math_fround(Math_fround($6*$24)+Math_fround($5*$10))+Math_fround($7*$14))+Math_fround($20*$18);HEAPF32[$1>>2]=Math_fround(Math_fround(Math_fround($6*$23)+Math_fround($5*$9))+Math_fround($7*$13))+Math_fround($20*$17);lua_getfield($0,-1e4,117520);lua_setmetatable($0,-2);break label$1}if(lua_isnumber($0,2)){$21=luaL_checknumber($0,2);$5=HEAPF32[$2+80>>2];$6=HEAPF32[$2+84>>2];$1=lua_newuserdata($0,64);$7=$3;$3=Math_fround($21);HEAPF32[$1+60>>2]=$7*$3;HEAPF32[$1+56>>2]=$19*$3;HEAPF32[$1+52>>2]=$18*$3;HEAPF32[$1+48>>2]=$17*$3;HEAPF32[$1+44>>2]=$16*$3;HEAPF32[$1+40>>2]=$15*$3;HEAPF32[$1+36>>2]=$14*$3;HEAPF32[$1+32>>2]=$13*$3;HEAPF32[$1+28>>2]=$12*$3;HEAPF32[$1+24>>2]=$11*$3;HEAPF32[$1+20>>2]=$10*$3;HEAPF32[$1+16>>2]=$9*$3;HEAPF32[$1+12>>2]=$8*$3;HEAPF32[$1+8>>2]=$4*$3;HEAPF32[$1+4>>2]=$6*$3;HEAPF32[$1>>2]=$5*$3;lua_getfield($0,-1e4,117552);lua_setmetatable($0,-2);break label$1}HEAP32[$2+12>>2]=117520;HEAP32[$2+8>>2]=117552;HEAP32[$2+4>>2]=117552;HEAP32[$2>>2]=117568;$22=luaL_error($0,118532,$2)}global$0=$2+144|0;return $22|0}function dmGameSystem__CollectionFactoryComp_Create_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=Math_fround(0),$9=0,$10=0,$11=0,$12=0;$1=global$0-4256|0;global$0=$1;$5=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$3=dmGameSystem__CheckGoInstance_28lua_State__29($0);$4=HEAP32[HEAP32[$3+80>>2]+8>>2];$2=$1+4240|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;$2=$1+4232|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;$2=$1+4224|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$1+4216>>2]=0;HEAP32[$1+4220>>2]=0;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$4,62745,$1+4252|0,$1+4216|0,0);$11=HEAP32[$1+4252>>2];label$1:{label$2:{if(($5|0)<2){break label$2}if(!lua_type($0,2)){break label$2}$2=dmScript__CheckVector3_28lua_State__2c_20int_29($0,2);$6=HEAP32[$2+4>>2];$7=HEAP32[$2>>2];HEAP32[$1+4200>>2]=HEAP32[$2+8>>2];HEAP32[$1+4192>>2]=$7;HEAP32[$1+4196>>2]=$6;break label$1}dmGameObject__GetWorldPosition_28dmGameObject__Instance__29($1+80|0,$3);HEAP32[$1+4192>>2]=HEAP32[$1+80>>2];$2=HEAP32[$1+88>>2];HEAP32[$1+4196>>2]=HEAP32[$1+84>>2];HEAP32[$1+4200>>2]=$2}label$3:{label$4:{if(($5|0)<3){break label$4}if(!lua_type($0,3)){break label$4}$2=dmScript__CheckQuat_28lua_State__2c_20int_29($0,3);HEAP32[$1+4176>>2]=HEAP32[$2>>2];HEAP32[$1+4180>>2]=HEAP32[$2+4>>2];HEAP32[$1+4184>>2]=HEAP32[$2+8>>2];HEAP32[$1+4188>>2]=HEAP32[$2+12>>2];break label$3}dmGameObject__GetWorldRotation_28dmGameObject__Instance__29($1+80|0,$3);$2=HEAP32[$1+84>>2];HEAP32[$1+4176>>2]=HEAP32[$1+80>>2];HEAP32[$1+4180>>2]=$2;$2=HEAP32[$1+92>>2];HEAP32[$1+4184>>2]=HEAP32[$1+88>>2];HEAP32[$1+4188>>2]=$2}$2=$1- -64|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$1+72>>2]=0;HEAP32[$1+76>>2]=0;HEAP32[$1+56>>2]=0;HEAP32[$1+60>>2]=0;HEAP32[$1+48>>2]=0;HEAP32[$1+52>>2]=0;HEAP32[$1+68>>2]=-1;dmHashTable_unsigned_20long_20long_2c_20dmGameObject__InstancePropertyBuffer___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($1+48|0,8,32);label$5:{label$6:{label$7:{label$8:{label$9:{if(($5|0)<=3){break label$9}if(lua_type($0,4)){if((lua_type($0,4)|0)!=5){break label$7}lua_pushvalue($0,4);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;if(lua_next($0,-2)){$2=0;while(1){$7=dmScript__CheckHash_28lua_State__2c_20int_29($0,-2);$12=i64toi32_i32$HIGH_BITS;$9=($1+80|0)+$2|0;$10=4096-$2|0;$6=dmScript__CheckTable_28lua_State__2c_20char__2c_20unsigned_20int_2c_20int_29($0,$9,$10,-1);if($6>>>0>$10>>>0){$0=luaL_error($0,63280,0);break label$5}HEAP32[$1>>2]=$9;HEAP32[$1+4>>2]=$6;dmHashTable_unsigned_20long_20long_2c_20dmGameObject__InstancePropertyBuffer___Put_28unsigned_20long_20long_2c_20dmGameObject__InstancePropertyBuffer_20const__29($1+48|0,$7,$12,$1);lua_settop($0,-2);$2=($2|15)+$6&-16;if(lua_next($0,-2)){continue}break}}lua_settop($0,-2)}if(($5|0)<5){break label$9}if(!lua_type($0,5)){break label$9}$2=dmScript__ToVector3_28lua_State__2c_20int_29($0,5);if($2){HEAP32[$1+32>>2]=HEAP32[$2>>2];HEAP32[$1+36>>2]=HEAP32[$2+4>>2];HEAP32[$1+40>>2]=HEAP32[$2+8>>2];break label$8}$8=Math_fround(luaL_checknumber($0,5));HEAPF32[$1+40>>2]=$8;HEAPF32[$1+36>>2]=$8;HEAPF32[$1+32>>2]=$8;break label$8}dmGameObject__GetWorldScale_28dmGameObject__Instance__29($1,$3);HEAP32[$1+32>>2]=HEAP32[$1>>2];$2=HEAP32[$1+8>>2];HEAP32[$1+36>>2]=HEAP32[$1+4>>2];HEAP32[$1+40>>2]=$2}dmScript__GetInstance_28lua_State__29($0);$2=dmScript__Ref_28lua_State__2c_20int_29($0,-1e4);HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+20>>2]=-1;$3=dmGameObject__SpawnFromCollection_28dmGameObject__CollectionHandle__2c_20void__2c_20dmHashTable_unsigned_20long_20long_2c_20dmGameObject__InstancePropertyBuffer___2c_20Vectormath__Aos__Point3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20dmHashTable_unsigned_20long_20long_2c_20unsigned_20long_20long___29($4,HEAP32[HEAP32[$11>>2]>>2],$1+48|0,$1+4192|0,$1+4176|0,$1+32|0,$1);lua_rawgeti($0,-1e4,$2);dmScript__SetInstance_28lua_State__29($0);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($0,-1e4,$2);lua_createtable($0,0,0);label$15:{if(!$3){break label$15}lua_createtable($0,0,1);lua_pushcclosure($0,525,0);lua_setfield($0,-2,63433);lua_setmetatable($0,-2);$4=HEAP32[$1+4>>2];if(!$4){break label$15}$3=0;while(1){$2=HEAP32[HEAP32[$1>>2]+($3<<2)>>2];if(($2|0)!=-1){while(1){$2=HEAP32[$1+8>>2]+Math_imul($2,24)|0;dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,HEAP32[$2>>2],HEAP32[$2+4>>2]);dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,HEAP32[$2+8>>2],HEAP32[$2+12>>2]);lua_rawset($0,-3);$2=HEAP32[$2+16>>2];if(($2|0)!=-1){continue}break}$4=HEAP32[$1+4>>2]}$3=$3+1|0;if($3>>>0<$4>>>0){continue}break}}if(($5+1|0)!=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$6}label$19:{if(HEAP8[$1+28|0]&1){break label$19}$0=HEAP32[$1+8>>2];if($0){dlfree($0)}$0=HEAP32[$1>>2];if(!$0){break label$19}dlfree($0)}$0=1;break label$5}$0=luaL_error($0,63375,0);break label$5}__assert_fail(63441,63200,413,63346);abort()}label$21:{if(HEAP8[$1+76|0]&1){break label$21}$2=HEAP32[$1+56>>2];if($2){dlfree($2)}$2=HEAP32[$1+48>>2];if(!$2){break label$21}dlfree($2)}global$0=$1+4256|0;return $0|0}function SphereTriangleDetector__getClosestPoints_28btDiscreteCollisionDetectorInterface__ClosestPointInput_20const__2c_20btDiscreteCollisionDetectorInterface__Result__2c_20btIDebugDraw__2c_20bool_29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0);$3=global$0-144|0;global$0=$3;HEAP32[$3+108>>2]=1065353216;HEAP32[$3+104>>2]=0;$5=HEAPF32[$1+80>>2];$7=HEAPF32[$1+96>>2];$14=HEAPF32[$1+120>>2];$26=HEAPF32[$1+56>>2];$21=HEAPF32[$1+112>>2];$22=HEAPF32[$1+116>>2];$27=HEAPF32[$1+52>>2];$8=HEAPF32[$1+68>>2];$15=HEAPF32[$1+84>>2];$16=HEAPF32[$1+100>>2];$6=HEAPF32[$1+20>>2];$12=HEAPF32[$1+36>>2];$17=HEAPF32[$1+72>>2];$9=HEAPF32[$1+88>>2];$13=HEAPF32[$1+24>>2];$10=HEAPF32[$1+104>>2];$18=HEAPF32[$1+40>>2];$11=HEAPF32[$1+64>>2];$19=HEAPF32[$1+32>>2];$20=HEAPF32[$1>>2];$23=HEAPF32[$1+16>>2];$28=HEAPF32[$1+48>>2];$24=HEAPF32[$1+4>>2];$25=HEAPF32[$1+8>>2];HEAP32[$3+100>>2]=0;HEAP32[$3+84>>2]=0;HEAP32[$3+68>>2]=0;HEAPF32[$3+80>>2]=Math_fround(Math_fround($25*$17)+Math_fround($13*$9))+Math_fround($18*$10);HEAPF32[$3+76>>2]=Math_fround(Math_fround($24*$17)+Math_fround($6*$9))+Math_fround($12*$10);HEAPF32[$3- -64>>2]=Math_fround(Math_fround($25*$8)+Math_fround($13*$15))+Math_fround($18*$16);HEAPF32[$3+60>>2]=Math_fround(Math_fround($24*$8)+Math_fround($6*$15))+Math_fround($12*$16);$21=Math_fround($28-$21);$22=Math_fround($27-$22);$14=Math_fround($26-$14);HEAPF32[$3+96>>2]=Math_fround(Math_fround($17*$21)+Math_fround($9*$22))+Math_fround($10*$14);HEAPF32[$3+92>>2]=Math_fround(Math_fround($21*$8)+Math_fround($22*$15))+Math_fround($14*$16);HEAP32[$3+52>>2]=0;HEAPF32[$3+72>>2]=Math_fround(Math_fround($20*$17)+Math_fround($23*$9))+Math_fround($19*$10);HEAPF32[$3+56>>2]=Math_fround(Math_fround($20*$8)+Math_fround($23*$15))+Math_fround($19*$16);HEAPF32[$3+48>>2]=Math_fround(Math_fround($11*$25)+Math_fround($5*$13))+Math_fround($7*$18);HEAPF32[$3+44>>2]=Math_fround(Math_fround($11*$24)+Math_fround($5*$6))+Math_fround($7*$12);HEAPF32[$3+40>>2]=Math_fround(Math_fround($11*$20)+Math_fround($5*$23))+Math_fround($7*$19);HEAPF32[$3+88>>2]=Math_fround(Math_fround($21*$11)+Math_fround($22*$5))+Math_fround($14*$7);label$1:{if(!SphereTriangleDetector__collide_28btVector3_20const__2c_20btVector3__2c_20btVector3__2c_20float__2c_20float__2c_20float_29($0,$3+88|0,$3+128|0,$3+112|0,$3+104|0,$3+108|0,HEAPF32[$0+12>>2])){break label$1}if($4){$15=HEAPF32[$1+72>>2];$16=HEAPF32[$1+64>>2];$17=HEAPF32[$1+68>>2];$9=HEAPF32[$1+88>>2];$10=HEAPF32[$1+80>>2];$11=HEAPF32[$1+84>>2];$6=HEAPF32[$1+104>>2];$12=HEAPF32[$1+96>>2];$13=HEAPF32[$1+100>>2];$5=HEAPF32[$3+120>>2];$7=HEAPF32[$3+112>>2];$8=HEAPF32[$3+116>>2];HEAP32[$3+36>>2]=0;$18=Math_fround(Math_fround(Math_fround($7*$12)+Math_fround($8*$13))+Math_fround($5*$6));HEAPF32[$3+32>>2]=-$18;$19=Math_fround(Math_fround(Math_fround($7*$10)+Math_fround($8*$11))+Math_fround($5*$9));HEAPF32[$3+28>>2]=-$19;$20=Math_fround(Math_fround(Math_fround($16*$7)+Math_fround($17*$8))+Math_fround($15*$5));HEAPF32[$3+24>>2]=-$20;$23=HEAPF32[$1+112>>2];$24=HEAPF32[$1+116>>2];$5=HEAPF32[$1+120>>2];HEAP32[$3+20>>2]=0;$7=HEAPF32[$3+128>>2];$8=HEAPF32[$3+132>>2];$14=$6;$6=HEAPF32[$3+136>>2];$14=Math_fround($5+Math_fround(Math_fround(Math_fround($12*$7)+Math_fround($13*$8))+Math_fround($14*$6)));$5=HEAPF32[$3+104>>2];HEAPF32[$3+16>>2]=$14+Math_fround($18*$5);HEAPF32[$3+12>>2]=Math_fround($24+Math_fround(Math_fround(Math_fround($7*$10)+Math_fround($8*$11))+Math_fround($6*$9)))+Math_fround($19*$5);HEAPF32[$3+8>>2]=Math_fround($23+Math_fround(Math_fround(Math_fround($16*$7)+Math_fround($17*$8))+Math_fround($15*$6)))+Math_fround($20*$5);FUNCTION_TABLE[HEAP32[HEAP32[$2>>2]+16>>2]]($2,$3+24|0,$3+8|0,$5);break label$1}$5=HEAPF32[$1+72>>2];$7=HEAPF32[$1+64>>2];$8=HEAPF32[$1+68>>2];$15=HEAPF32[$1+88>>2];$16=HEAPF32[$1+80>>2];$17=HEAPF32[$1+84>>2];$9=HEAPF32[$1+104>>2];$10=HEAPF32[$1+96>>2];$11=HEAPF32[$1+100>>2];HEAP32[$3+36>>2]=0;$6=HEAPF32[$3+112>>2];$12=HEAPF32[$3+116>>2];$13=HEAPF32[$3+120>>2];HEAPF32[$3+32>>2]=Math_fround(Math_fround($10*$6)+Math_fround($11*$12))+Math_fround($9*$13);HEAPF32[$3+28>>2]=Math_fround(Math_fround($6*$16)+Math_fround($12*$17))+Math_fround($13*$15);HEAPF32[$3+24>>2]=Math_fround(Math_fround($7*$6)+Math_fround($8*$12))+Math_fround($5*$13);$6=HEAPF32[$1+112>>2];$12=HEAPF32[$1+116>>2];$13=HEAPF32[$1+120>>2];HEAP32[$3+20>>2]=0;$14=$10;$10=HEAPF32[$3+128>>2];$18=$11;$11=HEAPF32[$3+132>>2];$19=$9;$9=HEAPF32[$3+136>>2];HEAPF32[$3+16>>2]=$13+Math_fround(Math_fround(Math_fround($14*$10)+Math_fround($18*$11))+Math_fround($19*$9));HEAPF32[$3+12>>2]=$12+Math_fround(Math_fround(Math_fround($10*$16)+Math_fround($11*$17))+Math_fround($9*$15));HEAPF32[$3+8>>2]=$6+Math_fround(Math_fround(Math_fround($7*$10)+Math_fround($8*$11))+Math_fround($5*$9));FUNCTION_TABLE[HEAP32[HEAP32[$2>>2]+16>>2]]($2,$3+24|0,$3+8|0,HEAPF32[$3+104>>2])}global$0=$3+144|0}function dmProfile__Initialize_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20int_29(){var $0=0,$1=0,$2=0,$3=0,$4=0,$5=0;label$1:{label$2:{label$3:{label$4:{if(HEAPU8[561908]){$0=HEAP32[282585]-HEAP32[282583]|0;label$6:{label$7:{if(!($0>>4!=256?$0:0)){dmHashTable_unsigned_20long_2c_20char_20const____SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130648,1024,1536);HEAP32[282670]=dmStringPool__New_28_29();if(HEAP32[282585]==HEAP32[282583]){if(HEAP8[1130344]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(256,16,1130332,1130340,1130336);HEAP32[282584]=HEAP32[282583]}if(HEAP8[1130644]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(3,4,1130632,1130640,1130636);HEAP32[282659]=HEAP32[282658];if(HEAP8[1130476]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(16384,24,1130464,1130472,1130468);HEAP32[282617]=HEAP32[282616];if(HEAP8[1130492]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(128,8,1130480,1130488,1130484);$0=HEAP32[282620];if(HEAP32[282622]-$0>>3>>>0<128){break label$1}HEAP32[282621]=$0+1024;if(HEAP8[1130508]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(256,12,1130496,1130504,1130500);$0=HEAP32[282624];if((HEAP32[282626]-$0|0)/12>>>0<256){break label$1}HEAP32[282628]=0;HEAP32[282629]=0;HEAP32[282625]=$0+3072;$0=HEAP32[282659];if(($0|0)==HEAP32[282660]){break label$7}HEAP32[282659]=$0+4;HEAP32[$0>>2]=1130464;if(HEAP8[1130532]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(16384,24,1130520,1130528,1130524);HEAP32[282631]=HEAP32[282630];if(HEAP8[1130548]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(128,8,1130536,1130544,1130540);$0=HEAP32[282634];if(HEAP32[282636]-$0>>3>>>0<128){break label$1}HEAP32[282635]=$0+1024;if(HEAP8[1130564]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(256,12,1130552,1130560,1130556);$0=HEAP32[282638];if((HEAP32[282640]-$0|0)/12>>>0<256){break label$1}HEAP32[282642]=0;HEAP32[282643]=0;HEAP32[282639]=$0+3072;$0=HEAP32[282659];if(($0|0)==HEAP32[282660]){break label$7}HEAP32[282659]=$0+4;HEAP32[$0>>2]=1130520;if(HEAP8[1130588]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(16384,24,1130576,1130584,1130580);HEAP32[282645]=HEAP32[282644];if(HEAP8[1130604]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(128,8,1130592,1130600,1130596);$0=HEAP32[282648];if(HEAP32[282650]-$0>>3>>>0<128){break label$1}HEAP32[282649]=$0+1024;if(HEAP8[1130620]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(256,12,1130608,1130616,1130612);$0=HEAP32[282652];if((HEAP32[282654]-$0|0)/12>>>0<256){break label$1}HEAP32[282656]=0;HEAP32[282657]=0;HEAP32[282653]=$0+3072;$0=HEAP32[282659];if(($0|0)==HEAP32[282660]){break label$7}HEAP32[282659]=$0+4;HEAP32[$0>>2]=1130576;$1=HEAP32[282659];$0=HEAP32[282658];if(($1|0)!=($0|0)){break label$6}break label$3}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,154574,154579,0);__assert_fail(154650,154652,107,154676);abort()}__assert_fail(155249,155196,484,155273);abort()}HEAP32[143153]=HEAP32[$0>>2];HEAP32[$0>>2]=HEAP32[$1+ -4>>2];$0=HEAP32[282659]+ -4|0;HEAP32[282659]=$0;if($0>>>0>4;$5=$0>>>0>1?$0:1;$0=0;while(1){$4=HEAP32[143153];$1=HEAP32[$4+32>>2];if((HEAP32[$4+36>>2]-$1|0)/12>>>0<=$0>>>0){break label$3}$1=$1+Math_imul($0,12)|0;HEAP32[$1+4>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1>>2]=$3+($0<<4);$0=$0+1|0;if(($5|0)!=($0|0)){continue}break}}dmHashTable_unsigned_20int_2c_20unsigned_20int___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130348,85,128);memset(HEAP32[282587],255,HEAP32[282588]<<2);HEAP32[282592]=-1;HEAP32[282593]=0;HEAP32[282590]=HEAP32[282589];if(HEAP8[1130392]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(128,8,1130380,1130388,1130384);HEAP32[282596]=HEAP32[282595];$2=+emscripten_get_now();HEAP8[1130703]=1;$2=$2*1e3;if($2<0x10000000000000000&$2>=0){HEAP32[282671]=~~$2>>>0;return}HEAP32[282671]=0}return}__assert_fail(155310,155196,467,155300);abort()}__assert_fail(155278,155196,430,155289);abort()}__assert_fail(155121,155196,444,155086);abort()}__assert_fail(155222,155196,457,155241);abort()}function void_20std____2____inplace_merge_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=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;label$1:{if(!$5){break label$1}while(1){label$3:{label$4:{if(!(($5|0)<=($7|0)|($4|0)<=($7|0))){if(!$4){break label$1}$8=HEAP32[$3>>2];$18=HEAP32[$1>>2];$9=$8+($18<<3)|0;$11=HEAP32[$9>>2];$9=HEAP32[$9+4>>2];while(1){$10=HEAP32[$0>>2];$12=$8+($10<<3)|0;$14=HEAP32[$12>>2];$12=HEAP32[$12+4>>2];if(($12|0)==($9|0)&$11>>>0<$14>>>0|$9>>>0<$12>>>0){break label$4}$0=$0+4|0;$4=$4+ -1|0;if($4){continue}break}break label$1}if(($4|0)>($5|0)){break label$3}if(($0|0)==($1|0)){break label$1}$8=$6;$9=$0;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($1|0)){continue}break}if(($6|0)==($8|0)){break label$1}$3=HEAP32[$3>>2];while(1){if(($1|0)==($2|0)){$1=$8-$6|0;if(!$1){break label$1}memmove($0,$6,$1);return}$4=HEAP32[$1>>2];$5=$3+($4<<3)|0;$7=HEAP32[$5>>2];$9=HEAP32[$6>>2];$11=$3+($9<<3)|0;$10=HEAP32[$11>>2];$5=HEAP32[$5+4>>2];$11=HEAP32[$11+4>>2];label$10:{if(($5|0)==($11|0)&$7>>>0<$10>>>0|$5>>>0<$11>>>0){HEAP32[$0>>2]=$4;$1=$1+4|0;break label$10}HEAP32[$0>>2]=$9;$6=$6+4|0}$0=$0+4|0;if(($6|0)!=($8|0)){continue}break}break label$1}label$12:{if(($4|0)<($5|0)){$14=($5|0)/2|0;$11=($14<<2)+$1|0;$9=$1-$0|0;label$14:{if(!$9){$10=$0;break label$14}$9=$9>>2;$10=$8+(HEAP32[$11>>2]<<3)|0;$15=HEAP32[$10>>2];$12=HEAP32[$10+4>>2];$10=$0;while(1){$16=$9>>>1|0;$13=($16<<2)+$10|0;$17=$8+(HEAP32[$13>>2]<<3)|0;$19=HEAP32[$17>>2];$20=$10;$21=$13+4|0;$10=HEAP32[$17+4>>2];$13=($10|0)==($12|0)&$15>>>0<$19>>>0|$12>>>0<$10>>>0;$10=$13?$20:$21;$9=$13?$16:($16^-1)+$9|0;if($9){continue}break}}$16=$10-$0>>2;break label$12}if(($4|0)==1){HEAP32[$0>>2]=$18;HEAP32[$1>>2]=$10;return}$16=($4|0)/2|0;$10=($16<<2)+$0|0;$9=$2-$1|0;label$18:{if(!$9){$11=$1;break label$18}$9=$9>>2;$11=$8+(HEAP32[$10>>2]<<3)|0;$15=HEAP32[$11>>2];$12=HEAP32[$11+4>>2];$11=$1;while(1){$14=$9>>>1|0;$13=($14<<2)+$11|0;$17=$8+(HEAP32[$13>>2]<<3)|0;$19=HEAP32[$17>>2];$21=$13+4|0;$20=$11;$11=HEAP32[$17+4>>2];$13=($12|0)==($11|0)&$19>>>0<$15>>>0|$11>>>0<$12>>>0;$11=$13?$21:$20;$9=$13?($14^-1)+$9|0:$14;if($9){continue}break}}$14=$11-$1>>2}$5=$5-$14|0;$4=$4-$16|0;$8=$11;label$21:{if(($1|0)==($10|0)){break label$21}$8=$10;if(($1|0)==($11|0)){break label$21}$8=$10+4|0;if(($8|0)==($1|0)){$8=$11-$1|0;$9=$8>>2;$12=HEAP32[$10>>2];if($8){memmove($10,$1,$8)}$8=($9<<2)+$10|0;HEAP32[$8>>2]=$12;break label$21}$12=$1+4|0;if(($12|0)==($11|0)){$1=$11+ -4|0;$9=HEAP32[$1>>2];$8=$11;$1=$1-$10|0;if($1){$8=$11-$1|0;memmove($8,$10,$1)}HEAP32[$10>>2]=$9;break label$21}$17=$11-$1>>2;$9=$17;$13=$1-$10>>2;$15=$13;if(($9|0)==($13|0)){$9=HEAP32[$10>>2];HEAP32[$10>>2]=$18;HEAP32[$1>>2]=$9;while(1){$9=HEAP32[$8>>2];HEAP32[$8>>2]=HEAP32[$12>>2];HEAP32[$12>>2]=$9;$12=$12+4|0;$8=$8+4|0;if(($8|0)!=($1|0)){continue}break}$8=$1;break label$21}while(1){$1=$9;$9=($15|0)%($1|0)|0;$15=$1;if($9){continue}break}if($15){$1=($15<<2)+$10|0;while(1){$1=$1+ -4|0;$15=$13<<2;$12=$1+$15|0;$18=HEAP32[$1>>2];$9=$1;while(1){$8=$12;HEAP32[$9>>2]=HEAP32[$8>>2];$9=$8;$12=$11-$8>>2;$12=($13|0)<($12|0)?$8+$15|0:($13-$12<<2)+$10|0;if(($12|0)!=($1|0)){continue}break}HEAP32[$8>>2]=$18;if(($1|0)!=($10|0)){continue}break}}$8=($17<<2)+$10|0}label$32:{if(($14+$16|0)<($4+$5|0)){void_20std____2____inplace_merge_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$10,$8,$3,$16,$14,$6,$7);$0=$8;$1=$11;break label$32}void_20std____2____inplace_merge_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($8,$11,$2,$3,$4,$5,$6,$7);$5=$14;$4=$16;$2=$8;$1=$10}if($5){continue}break label$1}break}if(($1|0)==($2|0)){break label$1}$9=$1;$8=$6;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($2|0)){continue}break}if(($6|0)==($8|0)){break label$1}$4=HEAP32[$3>>2];$12=$8;while(1){if(($0|0)==($1|0)){if(($6|0)==($8|0)){break label$1}while(1){$2=$2+ -4|0;$8=$8+ -4|0;HEAP32[$2>>2]=HEAP32[$8>>2];if(($6|0)!=($8|0)){continue}break}break label$1}$5=$12+ -4|0;$3=HEAP32[$5>>2];$7=$4+($3<<3)|0;$9=HEAP32[$7>>2];$11=$1+ -4|0;$10=HEAP32[$11>>2];$14=$4+($10<<3)|0;$16=HEAP32[$14>>2];$2=$2+ -4|0;$15=$3;$3=HEAP32[$7+4>>2];$7=HEAP32[$14+4>>2];$3=($3|0)==($7|0)&$9>>>0<$16>>>0|$3>>>0<$7>>>0;HEAP32[$2>>2]=$3?$10:$15;$1=$3?$11:$1;$8=$3?$8:$5;$12=$3?$12:$5;if(($12|0)!=($6|0)){continue}break}}}function btManifoldResult__addContactPoint_28btVector3_20const__2c_20btVector3_20const__2c_20float_29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=Math_fround($3);var $4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=0,$21=0,$22=0,$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=0,$27=0,$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0);$4=global$0-288|0;global$0=$4;label$1:{if(HEAPF32[HEAP32[$0+4>>2]+1120>>2]<$3){break label$1}$13=HEAPF32[$2+8>>2];$16=Math_fround(Math_fround(HEAPF32[$1+8>>2]*$3)+$13);$11=HEAPF32[$2+4>>2];$17=Math_fround(Math_fround(HEAPF32[$1+4>>2]*$3)+$11);$12=HEAPF32[$2>>2];$18=Math_fround(Math_fround(HEAPF32[$1>>2]*$3)+$12);$19=HEAP32[$0+4>>2];$20=HEAP32[$19+1108>>2];$21=HEAP32[$0+136>>2];$22=($20|0)==($21|0);label$2:{if(!$22){$6=Math_fround($18-HEAPF32[$0+120>>2]);$7=Math_fround($17-HEAPF32[$0+124>>2]);$8=Math_fround($16-HEAPF32[$0+128>>2]);$23=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+80>>2])+Math_fround($7*HEAPF32[$0+96>>2]))+Math_fround($8*HEAPF32[$0+112>>2]));$24=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+76>>2])+Math_fround($7*HEAPF32[$0+92>>2]))+Math_fround($8*HEAPF32[$0+108>>2]));$6=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+72>>2])+Math_fround($7*HEAPF32[$0+88>>2]))+Math_fround($8*HEAPF32[$0+104>>2]));$11=Math_fround($11-HEAPF32[$0+60>>2]);$7=Math_fround($11*HEAPF32[$0+24>>2]);$9=$0+32|0;$14=$0+16|0;$15=$0+44|0;$25=$0+28|0;$10=$0+12|0;$26=$0- -64|0;$12=Math_fround($12-HEAPF32[$0+56>>2]);$8=Math_fround($12*HEAPF32[$0+8>>2]);$27=$0+40|0;$5=$0+48|0;break label$2}$6=Math_fround($18-HEAPF32[$0+56>>2]);$7=Math_fround($17-HEAPF32[$0+60>>2]);$8=Math_fround($16-HEAPF32[$0- -64>>2]);$23=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+16>>2])+Math_fround($7*HEAPF32[$0+32>>2]))+Math_fround($8*HEAPF32[$0+48>>2]));$24=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+12>>2])+Math_fround($7*HEAPF32[$0+28>>2]))+Math_fround($8*HEAPF32[$0+44>>2]));$6=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+8>>2])+Math_fround($7*HEAPF32[$0+24>>2]))+Math_fround($8*HEAPF32[$0+40>>2]));$11=Math_fround($11-HEAPF32[$0+124>>2]);$7=Math_fround($11*HEAPF32[$0+88>>2]);$9=$0+96|0;$14=$0+80|0;$15=$0+108|0;$25=$0+92|0;$10=$0+76|0;$26=$0+128|0;$12=Math_fround($12-HEAPF32[$0+120>>2]);$8=Math_fround($12*HEAPF32[$0+72>>2]);$27=$0+104|0;$5=$0+112|0}$28=HEAPF32[$27>>2];$29=HEAPF32[$15>>2];$30=HEAPF32[$10>>2];$31=HEAPF32[$25>>2];$32=HEAPF32[$5>>2];$33=HEAPF32[$26>>2];$34=HEAPF32[$14>>2];$35=HEAPF32[$9>>2];HEAP32[$4+36>>2]=0;$13=Math_fround($13-$33);HEAPF32[$4+32>>2]=Math_fround(Math_fround($12*$34)+Math_fround($11*$35))+Math_fround($32*$13);HEAPF32[$4+28>>2]=Math_fround(Math_fround($12*$30)+Math_fround($11*$31))+Math_fround($13*$29);HEAP32[$4+20>>2]=0;HEAPF32[$4+16>>2]=$23;HEAPF32[$4+12>>2]=$24;HEAPF32[$4+8>>2]=$6;HEAPF32[$4+24>>2]=Math_fround($8+$7)+Math_fround($13*$28);$5=HEAP32[$1+12>>2];HEAP32[$4+80>>2]=HEAP32[$1+8>>2];HEAP32[$4+84>>2]=$5;$5=HEAP32[$1>>2];$1=HEAP32[$1+4>>2];HEAP32[$4+280>>2]=0;HEAP32[$4+248>>2]=0;HEAP32[$4+216>>2]=0;HEAP8[$4+124|0]=0;HEAP32[$4+136>>2]=0;HEAP32[$4+140>>2]=0;HEAP32[$4+144>>2]=0;HEAP32[$4+148>>2]=0;HEAP32[$4+152>>2]=0;HEAP32[$4+68>>2]=0;HEAPF32[$4- -64>>2]=$16;HEAPF32[$4+60>>2]=$17;HEAP32[$4+72>>2]=$5;HEAP32[$4+76>>2]=$1;HEAP32[$4+92>>2]=0;HEAP32[$4+96>>2]=0;HEAPF32[$4+88>>2]=$3;HEAP32[$4+116>>2]=0;HEAP32[$4+120>>2]=0;HEAP32[$4+128>>2]=0;HEAP32[$4+132>>2]=0;HEAPF32[$4+56>>2]=$18;$1=HEAP32[$2+12>>2];HEAP32[$4+48>>2]=HEAP32[$2+8>>2];HEAP32[$4+52>>2]=$1;$1=HEAP32[$2+4>>2];HEAP32[$4+40>>2]=HEAP32[$2>>2];HEAP32[$4+44>>2]=$1;$2=btPersistentManifold__getCacheEntry_28btManifoldPoint_20const__29_20const($19,$4+8|0);$1=HEAP32[$0+136>>2];$5=HEAP32[$0+140>>2];HEAPF32[$4+92>>2]=Math_min(Math_fround(Math_max(Math_fround(HEAPF32[$1+224>>2]*HEAPF32[$5+224>>2]),Math_fround(-10))),Math_fround(10));HEAPF32[$4+96>>2]=HEAPF32[$1+228>>2]*HEAPF32[$5+228>>2];label$4:{if(!$22){$5=$0+156|0;$9=$0+144|0;$10=$0+148|0;$1=$0+152|0;break label$4}$5=$0+152|0;$9=$0+148|0;$10=$0+144|0;$1=$0+156|0}$10=HEAP32[$10>>2];$9=HEAP32[$9>>2];$5=HEAP32[$5>>2];HEAP32[$4+112>>2]=HEAP32[$1>>2];HEAP32[$4+108>>2]=$5;HEAP32[$4+104>>2]=$9;HEAP32[$4+100>>2]=$10;$1=HEAP32[$0+4>>2];label$6:{if(($2|0)>=0){$1=$1+Math_imul($2,276)|0;$14=HEAP32[$1+148>>2];$15=HEAP32[$1+112>>2];$5=HEAP32[$1+212>>2];$9=HEAP32[$1+244>>2];$10=HEAP32[$1+276>>2];memcpy($1+4|0,$4+8|0,276);HEAP32[$1+276>>2]=$10;HEAP32[$1+244>>2]=$9;HEAP32[$1+212>>2]=$5;HEAP32[$1+128>>2]=$10;HEAP32[$1+124>>2]=$9;HEAP32[$1+116>>2]=$5;HEAP32[$1+112>>2]=$15;HEAP32[$1+148>>2]=$14;break label$6}$2=btPersistentManifold__addManifoldPoint_28btManifoldPoint_20const__29($1,$4+8|0)}$1=HEAP32[147972];if(!$1|(HEAPU8[HEAP32[$0+140>>2]+204|0]&8?0:!(HEAPU8[HEAP32[$0+136>>2]+204|0]&8))){break label$1}$5=(HEAP32[$0+4>>2]+Math_imul($2,276)|0)+4|0;$2=($20|0)!=($21|0);FUNCTION_TABLE[$1]($5,HEAP32[($2?140:136)+$0>>2],HEAP32[$4+100>>2],HEAP32[$4+108>>2],HEAP32[($2?136:140)+$0>>2],HEAP32[$4+104>>2],HEAP32[$4+112>>2])|0}global$0=$4+288|0}function dmScript__Lerp_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=0,$14=0,$15=0;$2=global$0-288|0;global$0=$2;$3=dmScript__GetUserType_28lua_State__2c_20int_29($0,2);label$1:{if(($3|0)==HEAP32[279888]){break label$1}$1=1;if(($3|0)==HEAP32[279889]){break label$1}$1=2;if(($3|0)==HEAP32[279890]){break label$1}$1=3;if(($3|0)==HEAP32[279891]){break label$1}$1=($3|0)==HEAP32[279892]?4:5}$3=dmScript__GetUserType_28lua_State__2c_20int_29($0,3);label$2:{if(($3|0)==HEAP32[279888]){break label$2}$13=1;if(($3|0)==HEAP32[279889]){break label$2}$13=2;if(($3|0)==HEAP32[279890]){break label$2}$13=3;if(($3|0)==HEAP32[279891]){break label$2}$13=($3|0)==HEAP32[279892]?4:5}$8=Math_fround(luaL_checknumber($0,1));label$3:{label$4:{if(!(($1|0)==5|($1|0)!=($13|0))){if($1>>>0>2){break label$4}label$6:{switch($1-1|0){default:$1=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,2,HEAP32[279888],0);$4=HEAPF32[$1+8>>2];$5=HEAPF32[$1>>2];$6=HEAPF32[$1+4>>2];if(!($4==$4?!($5!=$5|$6!=$6):0)){HEAPF64[$2+88>>3]=$4;HEAPF64[$2+80>>3]=$6;HEAP32[$2+64>>2]=2;HEAPF64[$2+72>>3]=$5;luaL_error($0,117635,$2- -64|0)}$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[279888],0);$4=HEAPF32[$3+8>>2];$5=HEAPF32[$3>>2];$6=HEAPF32[$3+4>>2];if(!($4==$4?!($5!=$5|$6!=$6):0)){HEAPF64[$2+56>>3]=$4;HEAPF64[$2+48>>3]=$6;HEAP32[$2+32>>2]=3;HEAPF64[$2+40>>3]=$5;luaL_error($0,117635,$2+32|0);$6=HEAPF32[$3+4>>2];$5=HEAPF32[$3>>2];$4=HEAPF32[$3+8>>2]}$7=HEAPF32[$1+8>>2];$9=HEAPF32[$1>>2];$10=HEAPF32[$1+4>>2];$1=lua_newuserdata($0,16);HEAPF32[$1+8>>2]=$7+Math_fround(Math_fround($4-$7)*$8);HEAPF32[$1+4>>2]=$10+Math_fround(Math_fround($6-$10)*$8);HEAPF32[$1>>2]=$9+Math_fround(Math_fround($5-$9)*$8);lua_getfield($0,-1e4,117504);lua_setmetatable($0,-2);$0=1;break label$3;case 0:$1=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,2,HEAP32[279889],0);$4=HEAPF32[$1+8>>2];$5=HEAPF32[$1>>2];$6=HEAPF32[$1+4>>2];label$11:{if(!($5!=$5|$6!=$6|$4!=$4)){$7=HEAPF32[$1+12>>2];if($7==$7){break label$11}}$7=HEAPF32[$1+12>>2];HEAPF64[$2+168>>3]=$4;HEAPF64[$2+160>>3]=$6;HEAPF64[$2+176>>3]=$7;HEAPF64[$2+152>>3]=$5;HEAP32[$2+144>>2]=2;luaL_error($0,117725,$2+144|0)}$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[279889],0);$4=HEAPF32[$3+8>>2];$5=HEAPF32[$3>>2];$6=HEAPF32[$3+4>>2];label$13:{if(!($5!=$5|$6!=$6|$4!=$4)){$7=HEAPF32[$3+12>>2];if($7==$7){break label$13}}$7=HEAPF32[$3+12>>2];HEAPF64[$2+120>>3]=$4;HEAPF64[$2+112>>3]=$6;HEAPF64[$2+128>>3]=$7;HEAPF64[$2+104>>3]=$5;HEAP32[$2+96>>2]=3;luaL_error($0,117725,$2+96|0);$7=HEAPF32[$3+12>>2];$4=HEAPF32[$3+8>>2];$6=HEAPF32[$3+4>>2];$5=HEAPF32[$3>>2]}$9=HEAPF32[$1+12>>2];$10=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$12=HEAPF32[$1+8>>2];$1=lua_newuserdata($0,16);HEAPF32[$1+12>>2]=$9+Math_fround(Math_fround($7-$9)*$8);HEAPF32[$1+8>>2]=$12+Math_fround(Math_fround($4-$12)*$8);HEAPF32[$1+4>>2]=$11+Math_fround(Math_fround($6-$11)*$8);HEAPF32[$1>>2]=$10+Math_fround(Math_fround($5-$10)*$8);lua_getfield($0,-1e4,117520);lua_setmetatable($0,-2);$0=1;break label$3;case 1:break label$6}}$1=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,2,HEAP32[279890],0);$4=HEAPF32[$1+8>>2];$5=HEAPF32[$1>>2];$6=HEAPF32[$1+4>>2];label$15:{if(!($5!=$5|$6!=$6|$4!=$4)){$7=HEAPF32[$1+12>>2];if($7==$7){break label$15}}$7=HEAPF32[$1+12>>2];HEAPF64[$2+264>>3]=$4;HEAPF64[$2+256>>3]=$6;HEAPF64[$2+272>>3]=$7;HEAPF64[$2+248>>3]=$5;HEAP32[$2+240>>2]=2;luaL_error($0,117819,$2+240|0)}$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[279890],0);$4=HEAPF32[$3+8>>2];$5=HEAPF32[$3>>2];$6=HEAPF32[$3+4>>2];label$17:{if(!($5!=$5|$6!=$6|$4!=$4)){$7=HEAPF32[$3+12>>2];if($7==$7){break label$17}}$7=HEAPF32[$3+12>>2];HEAPF64[$2+216>>3]=$4;HEAPF64[$2+208>>3]=$6;HEAPF64[$2+224>>3]=$7;HEAPF64[$2+200>>3]=$5;HEAP32[$2+192>>2]=3;luaL_error($0,117819,$2+192|0);$7=HEAPF32[$3+12>>2];$4=HEAPF32[$3+8>>2];$6=HEAPF32[$3+4>>2];$5=HEAPF32[$3>>2]}$9=HEAPF32[$1+12>>2];$10=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$12=HEAPF32[$1+8>>2];$1=lua_newuserdata($0,16);HEAPF32[$1+12>>2]=$9+Math_fround(Math_fround($7-$9)*$8);HEAPF32[$1+8>>2]=$12+Math_fround(Math_fround($4-$12)*$8);HEAPF32[$1+4>>2]=$11+Math_fround(Math_fround($6-$11)*$8);HEAPF32[$1>>2]=$10+Math_fround(Math_fround($5-$10)*$8);lua_getfield($0,-1e4,117536);lua_setmetatable($0,-2);$0=1;break label$3}if(!lua_isnumber($0,2)){break label$4}if(!lua_isnumber($0,3)){break label$4}$14=luaL_checknumber($0,2);$15=+Math_fround(luaL_checknumber($0,3));$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;$14=+Math_fround($14);HEAPF64[$1>>3]=($15-$14)*+$8+$14;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;$0=1;break label$3}HEAP32[$2+28>>2]=117536;HEAP32[$2+24>>2]=117568;HEAP32[$2+20>>2]=117520;HEAP32[$2+16>>2]=117568;HEAP32[$2+12>>2]=117504;HEAP32[$2+8>>2]=117568;HEAP32[$2+4>>2]=118976;HEAP32[$2>>2]=117568;$0=luaL_error($0,119375,$2)}global$0=$2+288|0;return $0|0}function read_numeral($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$7=global$0-160|0;global$0=$7;$2=HEAP32[$0>>2];while(1){$3=HEAP32[$0+60>>2];$5=HEAP32[$3+4>>2];$8=$5+1|0;$4=HEAP32[$3+8>>2];label$2:{if($8>>>0<=$4>>>0){$4=HEAP32[$3>>2];break label$2}if($4>>>0>=2147483646){luaO_chunkid($7+80|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$6=HEAP32[$0+4>>2];HEAP32[$7+72>>2]=123718;HEAP32[$7+68>>2]=$6;HEAP32[$7+64>>2]=$7+80;luaO_pushfstring($4,123695,$7- -64|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$3+8>>2]}$6=HEAP32[$0+52>>2];$5=$4<<1;label$5:{if(($5|0)!=-2){$4=luaM_realloc_($6,HEAP32[$3>>2],$4,$5);break label$5}$4=luaM_toobig($6)}HEAP32[$3+8>>2]=$5;HEAP32[$3>>2]=$4;$5=HEAP32[$3+4>>2];$8=$5+1|0}HEAP32[$3+4>>2]=$8;HEAP8[$4+$5|0]=$2;$2=HEAP32[$0+56>>2];$3=HEAP32[$2>>2];HEAP32[$2>>2]=$3+ -1;$4=$0;label$7:{if($3){$3=$2;$2=HEAP32[$2+4>>2];HEAP32[$3+4>>2]=$2+1;$2=HEAPU8[$2|0];break label$7}$2=luaZ_fill($2)}HEAP32[$4>>2]=$2;if(($2|0)==46|$2+ -48>>>0<10){continue}break}label$9:{if(!memchr(123922,$2,3)){break label$9}$3=HEAP32[$0+60>>2];$5=HEAP32[$3+4>>2];$8=$5+1|0;$4=HEAP32[$3+8>>2];label$10:{if($8>>>0<=$4>>>0){$4=HEAP32[$3>>2];break label$10}if($4>>>0>=2147483646){luaO_chunkid($7+80|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$6=HEAP32[$0+4>>2];HEAP32[$7+56>>2]=123718;HEAP32[$7+52>>2]=$6;HEAP32[$7+48>>2]=$7+80;luaO_pushfstring($4,123695,$7+48|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$3+8>>2]}$6=HEAP32[$0+52>>2];$5=$4<<1;label$13:{if(($5|0)!=-2){$4=luaM_realloc_($6,HEAP32[$3>>2],$4,$5);break label$13}$4=luaM_toobig($6)}HEAP32[$3+8>>2]=$5;HEAP32[$3>>2]=$4;$5=HEAP32[$3+4>>2];$8=$5+1|0}HEAP32[$3+4>>2]=$8;HEAP8[$4+$5|0]=$2;$2=HEAP32[$0+56>>2];$3=HEAP32[$2>>2];HEAP32[$2>>2]=$3+ -1;$4=$0;label$15:{if($3){$3=$2;$2=HEAP32[$2+4>>2];HEAP32[$3+4>>2]=$2+1;$2=HEAPU8[$2|0];break label$15}$2=luaZ_fill($2)}HEAP32[$4>>2]=$2;$4=$2&255;if($4>>>0>63){break label$9}$3=$4&31;if(32<=($4&63)>>>0){$4=1<<$3;$3=0}else{$4=(1<<$3)-1&1>>>32-$3;$3=1<<$3}if(!($3&1|$4&10240)){break label$9}$3=HEAP32[$0+60>>2];$5=HEAP32[$3+4>>2];$8=$5+1|0;$4=HEAP32[$3+8>>2];label$17:{if($8>>>0<=$4>>>0){$4=HEAP32[$3>>2];break label$17}if($4>>>0>=2147483646){luaO_chunkid($7+80|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$6=HEAP32[$0+4>>2];HEAP32[$7+40>>2]=123718;HEAP32[$7+36>>2]=$6;HEAP32[$7+32>>2]=$7+80;luaO_pushfstring($4,123695,$7+32|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$3+8>>2]}$6=HEAP32[$0+52>>2];$5=$4<<1;label$20:{if(($5|0)!=-2){$4=luaM_realloc_($6,HEAP32[$3>>2],$4,$5);break label$20}$4=luaM_toobig($6)}HEAP32[$3+8>>2]=$5;HEAP32[$3>>2]=$4;$5=HEAP32[$3+4>>2];$8=$5+1|0}HEAP32[$3+4>>2]=$8;HEAP8[$4+$5|0]=$2;$2=HEAP32[$0+56>>2];$3=HEAP32[$2>>2];HEAP32[$2>>2]=$3+ -1;$4=$0;label$22:{if($3){$3=$2;$2=HEAP32[$2+4>>2];HEAP32[$3+4>>2]=$2+1;$2=HEAPU8[$2|0];break label$22}$2=luaZ_fill($2)}HEAP32[$4>>2]=$2}$3=HEAP32[$0+60>>2];$5=HEAP32[$3+4>>2];$8=$5+1|0;$6=HEAP32[$3+8>>2];$9=$8>>>0>$6>>>0;$10=$3+8|0;$4=$3+4|0;if(!((($2|32)+ -97>>>0<26?1:$2+ -48>>>0<10)?0:($2|0)!=95)){while(1){label$28:{if(!$9){$6=HEAP32[$3>>2];break label$28}if($6>>>0>=2147483646){luaO_chunkid($7+80|0,HEAP32[$0+64>>2]+16|0,80);$6=HEAP32[$0+52>>2];$5=HEAP32[$0+4>>2];HEAP32[$7+24>>2]=123718;HEAP32[$7+20>>2]=$5;HEAP32[$7+16>>2]=$7+80;luaO_pushfstring($6,123695,$7+16|0);luaD_throw(HEAP32[$0+52>>2],3);$6=HEAP32[$10>>2]}$8=HEAP32[$0+52>>2];$5=$3;$9=$6<<1;label$31:{if(($9|0)!=-2){$6=luaM_realloc_($8,HEAP32[$3>>2],$6,$9);break label$31}$6=luaM_toobig($8)}HEAP32[$5>>2]=$6;HEAP32[$10>>2]=$9;$5=HEAP32[$4>>2];$8=$5+1|0}HEAP32[$4>>2]=$8;HEAP8[$6+$5|0]=$2;$2=HEAP32[$0+56>>2];$3=HEAP32[$2>>2];HEAP32[$2>>2]=$3+ -1;$4=$0;label$33:{if($3){$3=$2;$2=HEAP32[$2+4>>2];HEAP32[$3+4>>2]=$2+1;$2=HEAPU8[$2|0];break label$33}$2=luaZ_fill($2)}HEAP32[$4>>2]=$2;$3=HEAP32[$0+60>>2];$5=HEAP32[$3+4>>2];$8=$5+1|0;$6=HEAP32[$3+8>>2];$9=$8>>>0>$6>>>0;$10=$3+8|0;$4=$3+4|0;if(($2|0)==95|(($2|32)+ -97>>>0<26?1:$2+ -48>>>0<10)){continue}break}}label$37:{if(!$9){$2=HEAP32[$3>>2];break label$37}if($6>>>0>=2147483646){luaO_chunkid($7+80|0,HEAP32[$0+64>>2]+16|0,80);$2=HEAP32[$0+52>>2];$6=HEAP32[$0+4>>2];HEAP32[$7+8>>2]=123718;HEAP32[$7+4>>2]=$6;HEAP32[$7>>2]=$7+80;luaO_pushfstring($2,123695,$7);luaD_throw(HEAP32[$0+52>>2],3);$6=HEAP32[$10>>2]}$2=HEAP32[$0+52>>2];$5=$3;$8=$6<<1;label$40:{if(($8|0)!=-2){$2=luaM_realloc_($2,HEAP32[$3>>2],$6,$8);break label$40}$2=luaM_toobig($2)}HEAP32[$5>>2]=$2;HEAP32[$10>>2]=$8;$5=HEAP32[$4>>2];$8=$5+1|0}HEAP32[$4>>2]=$8;HEAP8[$2+$5|0]=0;$2=HEAP32[$0+60>>2];$4=HEAP32[$2>>2];$2=HEAP32[$2+4>>2];if($2){$3=HEAPU8[$0+68|0];while(1){$2=$2+ -1|0;$6=$4+$2|0;if(HEAPU8[$6|0]==46){HEAP8[$6|0]=$3}if($2){continue}break}$4=HEAP32[HEAP32[$0+60>>2]>>2]}label$42:{if(luaO_str2d($4,$1)){break label$42}$3=HEAPU8[$0+68|0];$6=HEAPU8[HEAP32[54627]];HEAP8[$0+68|0]=$6;$2=HEAP32[$0+60>>2];$4=HEAP32[$2>>2];$2=HEAP32[$2+4>>2];if($2){while(1){$2=$2+ -1|0;$5=$4+$2|0;if(($3|0)==HEAPU8[$5|0]){HEAP8[$5|0]=$6}if($2){continue}break}$4=HEAP32[HEAP32[$0+60>>2]>>2]}if(luaO_str2d($4,$1)){break label$42}$1=HEAP32[$0+60>>2];$2=HEAP32[$1+4>>2];if($2){$1=HEAP32[$1>>2];$4=HEAPU8[$0+68|0];while(1){$2=$2+ -1|0;$3=$1+$2|0;if(($4|0)==HEAPU8[$3|0]){HEAP8[$3|0]=46}if($2){continue}break}}luaX_lexerror($0,123925,284)}global$0=$7+160|0}function VP8LBuildHuffmanTable($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$6=global$0-128|0;global$0=$6;HEAP32[$6+120>>2]=0;HEAP32[$6+124>>2]=0;HEAP32[$6+112>>2]=0;HEAP32[$6+116>>2]=0;HEAP32[$6+104>>2]=0;HEAP32[$6+108>>2]=0;HEAP32[$6+96>>2]=0;HEAP32[$6+100>>2]=0;HEAP32[$6+88>>2]=0;HEAP32[$6+92>>2]=0;HEAP32[$6+80>>2]=0;HEAP32[$6+84>>2]=0;HEAP32[$6+72>>2]=0;HEAP32[$6+76>>2]=0;HEAP32[$6+64>>2]=0;HEAP32[$6+68>>2]=0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{if($3){if(!$2){break label$6}if(!$0){break label$5}if(($1|0)<1){break label$4}if(($3|0)>0){while(1){$5=HEAP32[($4<<2)+$2>>2];if(($5|0)>15){break label$2}$5=($6- -64|0)+($5<<2)|0;HEAP32[$5>>2]=HEAP32[$5>>2]+1;$4=$4+1|0;if(($4|0)!=($3|0)){continue}break}$4=HEAP32[$6+64>>2]}else{$4=0}if(($4|0)==($3|0)){break label$2}HEAP32[$6+4>>2]=0;$4=HEAP32[$6+68>>2];if(($4|0)>2){break label$2}HEAP32[$6+8>>2]=$4;$5=HEAP32[$6+72>>2];if(($5|0)>4){break label$2}$4=$4+$5|0;HEAP32[$6+12>>2]=$4;$5=HEAP32[$6+76>>2];if(($5|0)>8){break label$2}$4=$4+$5|0;HEAP32[$6+16>>2]=$4;$5=HEAP32[$6+80>>2];if(($5|0)>16){break label$2}$4=$4+$5|0;HEAP32[$6+20>>2]=$4;$5=HEAP32[$6+84>>2];if(($5|0)>32){break label$2}$4=$4+$5|0;HEAP32[$6+24>>2]=$4;$5=HEAP32[$6+88>>2];if(($5|0)>64){break label$2}$4=$4+$5|0;HEAP32[$6+28>>2]=$4;$5=HEAP32[$6+92>>2];if(($5|0)>128){break label$2}$4=$4+$5|0;HEAP32[$6+32>>2]=$4;$5=HEAP32[$6+96>>2];if(($5|0)>256){break label$2}$4=$4+$5|0;HEAP32[$6+36>>2]=$4;$5=HEAP32[$6+100>>2];if(($5|0)>512){break label$2}$4=$4+$5|0;HEAP32[$6+40>>2]=$4;$5=HEAP32[$6+104>>2];if(($5|0)>1024){break label$2}$4=$4+$5|0;HEAP32[$6+44>>2]=$4;$5=HEAP32[$6+108>>2];if(($5|0)>2048){break label$2}$4=$4+$5|0;HEAP32[$6+48>>2]=$4;$5=HEAP32[$6+112>>2];if(($5|0)>4096){break label$2}$4=$4+$5|0;HEAP32[$6+52>>2]=$4;$5=HEAP32[$6+116>>2];if(($5|0)>8192){break label$2}$4=$4+$5|0;HEAP32[$6+56>>2]=$4;$5=HEAP32[$6+120>>2];if(($5|0)>16384){break label$2}$8=$4+$5|0;HEAP32[$6+60>>2]=$8;$14=WebPSafeMalloc($3,$3>>31,4);if(!$14){break label$2}if(($3|0)>=1){$4=0;while(1){$7=HEAP32[($4<<2)+$2>>2];if(($7|0)>=1){$5=($7<<2)+$6|0;$7=HEAP32[$5>>2];HEAP32[$5>>2]=$7+1;HEAP32[($7<<2)+$14>>2]=$4}$4=$4+1|0;if(($4|0)!=($3|0)){continue}break}$8=HEAP32[$6+60>>2]}$7=1<<$1;if(($8|0)==1){$2=HEAP32[$14>>2]<<16;$4=$7;while(1){$1=$4+ -1|0;$3=($1<<2)+$0|0;HEAP16[$3>>1]=$2;HEAP16[$3+2>>1]=$2>>>16;$3=($4|0)>1;$4=$1;if($3){continue}break}dlfree($14);break label$2}$19=1;$21=1;label$16:{label$17:{if(($1|0)<1){break label$17}$9=2;$15=1;while(1){$20=$19<<1;$10=($6- -64|0)+($15<<2)|0;$5=HEAP32[$10>>2];$19=$20-$5|0;if(($19|0)<0){break label$3}if(($5|0)>=1){if(($7|0)%($9|0)){break label$1}$18=$15&255;$16=1<<$15+ -1;$13=$5+$12|0;while(1){$3=($11<<2)+$0|0;$2=$18|HEAP32[($12<<2)+$14>>2]<<16;$4=$7;while(1){$4=$4-$9|0;$17=$3+($4<<2)|0;HEAP16[$17>>1]=$2;HEAP16[$17+2>>1]=$2>>>16;if(($4|0)>0){continue}break}$3=$16;while(1){$2=$3;$3=$2>>>1|0;if($2&$11){continue}break}$5=$5+ -1|0;$11=$2+($2+ -1&$11)|0;$12=$12+1|0;if(($13|0)!=($12|0)){continue}break}HEAP32[$10>>2]=$5;$12=$13}$21=$21+$20|0;$9=$9<<1;$2=($1|0)==($15|0);$15=$15+1|0;if(!$2){continue}break}if(($1|0)<=14){break label$17}$16=$7;break label$16}$22=$7+ -1|0;$13=$1;$5=-1;$3=2;$8=$0;$16=$7;while(1){$10=$13;$23=$19<<1;$13=$10+1|0;$18=($6- -64|0)+($13<<2)|0;$17=HEAP32[$18>>2];$19=$23-$17|0;if(($19|0)<0){break label$3}label$24:{if(($17|0)<1){break label$24}$15=1<<$10;$2=$13-$1|0;$24=$2&255;$20=1<<$2;$2=$5;$9=$12;$4=$9;if(($10|0)<14){while(1){$5=$11&$22;label$27:{if(($5|0)==($2|0)){$5=$2;break label$27}$8=($7<<2)+$8|0;$4=$13;$2=$4;$7=$20-$17|0;label$29:{if(($7|0)<1){break label$29}while(1){$2=15;$4=$4+1|0;if(($4|0)==15){break label$29}$2=$4;$7=($7<<1)-HEAP32[($6- -64|0)+($4<<2)>>2]|0;if(($7|0)>0){continue}break}}$4=($5<<2)+$0|0;HEAP8[$4|0]=$2;HEAP16[$4+2>>1]=($8-$0>>>2|0)-$5;$7=1<<$2-$1;$16=$16+$7|0}if(($7|0)%($3|0)){break label$1}$12=$9+1|0;$10=($11>>>$1<<2)+$8|0;$2=HEAP32[($9<<2)+$14>>2]<<16|$24;$4=$7;while(1){$4=$4-$3|0;$9=$10+($4<<2)|0;HEAP16[$9>>1]=$2;HEAP16[$9+2>>1]=$2>>>16;if(($4|0)>0){continue}break}$2=$15;while(1){$4=$2;$2=$4>>>1|0;if($4&$11){continue}break}$10=HEAP32[$18>>2];$17=$10+ -1|0;HEAP32[$18>>2]=$17;$11=$4+($4+ -1&$11)|0;$2=$5;$9=$12;if(($10|0)>1){continue}break label$24}}while(1){$2=$11&$22;if(($2|0)!=($5|0)){$5=($2<<2)+$0|0;HEAP8[$5|0]=$13;$8=($7<<2)+$8|0;HEAP16[$5+2>>1]=($8-$0>>>2|0)-$2;$16=$16+$20|0;$5=$2;$7=$20}if(($7|0)%($3|0)){break label$1}$12=$4+1|0;$9=($11>>>$1<<2)+$8|0;$2=HEAP32[($4<<2)+$14>>2]<<16|$24;$4=$7;while(1){$4=$4-$3|0;$10=$9+($4<<2)|0;HEAP16[$10>>1]=$2;HEAP16[$10+2>>1]=$2>>>16;if(($4|0)>0){continue}break}$2=$15;while(1){$4=$2;$2=$4>>>1|0;if($4&$11){continue}break}$2=HEAP32[$18>>2];HEAP32[$18>>2]=$2+ -1;$11=$4+($4+ -1&$11)|0;$4=$12;if(($2|0)>1){continue}break}}$21=$21+$23|0;$3=$3<<1;if(($13|0)!=15){continue}break}$8=HEAP32[$6+60>>2]}dlfree($14);$7=(($8<<1)+ -1|0)==($21|0)?$16:0;break label$2}__assert_fail(183967,183920,90,183990);abort()}__assert_fail(184012,183920,91,183990);abort()}__assert_fail(184033,183920,92,183990);abort()}__assert_fail(184052,183920,93,183990);abort()}dlfree($14);$7=0}global$0=$6+128|0;return $7}__assert_fail(184066,183920,56,184082);abort()}function luaK_posfix($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0;folding_inner0:{label$1:{label$4:{label$5:{if($1>>>0<=14){label$7:{switch($1-1|0){case 12:luaK_dischargevars($0,$3);$8=HEAP32[$2+20>>2];if(($8|0)==-1){break folding_inner0}$1=HEAP32[$3+20>>2];if(($1|0)==-1){break label$5}$7=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$4=$1;$6=$7+($1<<2)|0;$5=HEAP32[$6>>2];$1=($5>>>14|0)+ -131071|0;$1=($1|0)==-1?-1:($4+$1|0)+1|0;if(($1|0)!=-1){continue}break}$1=$6;$7=$8+($4^-1)|0;$4=$7>>31;if(($4^$4+$7)>=131072){luaX_syntaxerror(HEAP32[$0+12>>2],123977);$5=HEAP32[$6>>2]}HEAP32[$1>>2]=($5&16383|$7<<14)+2147467264;break folding_inner0;case 13:luaK_dischargevars($0,$3);$8=HEAP32[$2+16>>2];if(($8|0)==-1){break folding_inner0}$1=HEAP32[$3+16>>2];if(($1|0)==-1){break label$4}$7=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$4=$1;$6=$7+($1<<2)|0;$5=HEAP32[$6>>2];$1=($5>>>14|0)+ -131071|0;$1=($1|0)==-1?-1:($4+$1|0)+1|0;if(($1|0)!=-1){continue}break}$1=$6;$7=$8+($4^-1)|0;$4=$7>>31;if(($4^$4+$7)>=131072){luaX_syntaxerror(HEAP32[$0+12>>2],123977);$5=HEAP32[$6>>2]}HEAP32[$1>>2]=($5&16383|$7<<14)+2147467264;break folding_inner0;case 5:label$28:{if(HEAP32[$3+16>>2]!=HEAP32[$3+20>>2]){luaK_exp2anyreg($0,$3);break label$28}luaK_dischargevars($0,$3)}label$30:{if(HEAP32[$3>>2]!=11){break label$30}$5=HEAP32[HEAP32[$0>>2]+12>>2];$4=HEAP32[$3+8>>2];$6=HEAP32[$5+($4<<2)>>2];if(($6&63)!=21){break label$30}label$31:{if(HEAP32[$2>>2]!=12){break label$31}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1;$4=HEAP32[$3+8>>2];$6=HEAP32[$5+($4<<2)>>2]}HEAP32[$5+($4<<2)>>2]=$6&8388607|HEAP32[$2+8>>2]<<23;HEAP32[$2>>2]=11;HEAP32[$2+8>>2]=HEAP32[$3+8>>2];return}luaK_dischargevars($0,$3);label$32:{if(HEAP32[$3>>2]!=12){break label$32}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$4=HEAP32[$0+36>>2];$5=$4+1|0;$6=HEAP32[$0>>2];label$33:{if(($4|0)=249){luaX_syntaxerror(HEAP32[$0+12>>2],123942);$6=HEAP32[$0>>2];$1=HEAP32[$0+36>>2]+1|0}HEAP8[$6+75|0]=$5}HEAP32[$0+36>>2]=$1;exp2reg($0,$3,$1+ -1|0);codearith($0,21,$2,$3);return;default:codearith($0,12,$2,$3);return;case 0:codearith($0,13,$2,$3);return;case 1:codearith($0,14,$2,$3);return;case 2:codearith($0,15,$2,$3);return;case 3:codearith($0,16,$2,$3);return;case 4:codearith($0,17,$2,$3);return;case 7:$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$36:{if(HEAP32[$3>>2]!=12){break label$36}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$37:{if(HEAP32[$2>>2]!=12){break label$37}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,23,1,$4,$5);break label$1;case 6:$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$38:{if(HEAP32[$3>>2]!=12){break label$38}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$39:{if(HEAP32[$2>>2]!=12){break label$39}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,23,0,$4,$5);break label$1;case 8:$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$40:{if(HEAP32[$3>>2]!=12){break label$40}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$41:{if(HEAP32[$2>>2]!=12){break label$41}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,24,1,$4,$5);break label$1;case 9:$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$42:{if(HEAP32[$3>>2]!=12){break label$42}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$43:{if(HEAP32[$2>>2]!=12){break label$43}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,25,1,$4,$5);break label$1;case 10:$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$44:{if(HEAP32[$3>>2]!=12){break label$44}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$45:{if(HEAP32[$2>>2]!=12){break label$45}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,24,1,$5,$4);break label$1;case 11:break label$7}}$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$46:{if(HEAP32[$3>>2]!=12){break label$46}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$47:{if(HEAP32[$2>>2]!=12){break label$47}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,25,1,$5,$4);HEAP32[$2>>2]=10;HEAP32[$2+8>>2]=$0}return}HEAP32[$3+20>>2]=$8;break folding_inner0}HEAP32[$3+16>>2]=$8;break folding_inner0}HEAP32[$2>>2]=10;HEAP32[$2+8>>2]=$0;return}$0=HEAP32[$3+4>>2];HEAP32[$2>>2]=HEAP32[$3>>2];HEAP32[$2+4>>2]=$0;$0=HEAP32[$3+20>>2];HEAP32[$2+16>>2]=HEAP32[$3+16>>2];HEAP32[$2+20>>2]=$0;$0=HEAP32[$3+12>>2];HEAP32[$2+8>>2]=HEAP32[$3+8>>2];HEAP32[$2+12>>2]=$0}function dmGameSystem__RenderListDispatch_28dmRender__RenderListDispatchParams_20const__29_4($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$2=global$0-112|0;global$0=$2;label$1:{label$2:{$5=HEAP32[$0+8>>2];label$3:{label$4:{if($5>>>0<=2){$3=HEAP32[$0+4>>2];label$6:{switch($5-1|0){case 0:$9=HEAP32[$0+20>>2];$4=HEAP32[$0+16>>2];$11=HEAP32[$0+12>>2];$15=HEAP32[$0>>2];label$8:{if(HEAP8[586240]&1){break label$8}if(!__cxa_guard_acquire(586240)){break label$8}if(HEAPU8[1130703]){$0=dmProfile__AllocateScope_28char_20const__29(50273)}else{$0=-1}HEAP32[146559]=$0;__cxa_guard_release(586240)}label$10:{if(HEAP8[586248]&1){break label$10}if(!__cxa_guard_acquire(586248)){break label$10}if(HEAPU8[1130703]){$0=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(51205,11)}else{$0=0}HEAP32[146561]=$0;__cxa_guard_release(586248)}$0=HEAP32[146559];label$12:{if(($0|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($2+96|0,$0,51205,HEAP32[146561]);break label$12}HEAP32[$2+96>>2]=0}$7=HEAP32[(Math_imul(HEAP32[$4>>2],48)+$11|0)+32>>2];$12=HEAP32[$7+128>>2];$6=($4|0)==($9|0);label$14:{if($6){break label$14}$1=dmRig__GetVertexCount_28dmRig__RigInstance__29(HEAP32[$7+132>>2]);$0=$4+4|0;if(($9|0)==($0|0)){break label$14}while(1){$1=dmRig__GetVertexCount_28dmRig__RigInstance__29(HEAP32[HEAP32[(Math_imul(HEAP32[$0>>2],48)+$11|0)+32>>2]+132>>2])+$1|0;$0=$0+4|0;if(($9|0)!=($0|0)){continue}break}}$13=$3+76|0;$14=$3+84|0;$10=HEAP32[$14>>2];$0=$3+80|0;$5=HEAP32[$0>>2];$8=($10-$5|0)/36|0;if($1>>>0>$8>>>0){if(HEAP8[$3+88|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(($1-$8|0)+(($10-HEAP32[$13>>2]|0)/36|0)|0,36,$13,$14,$0);$5=HEAP32[$0>>2]}$0=$5;if(!$6){$10=HEAP32[$3+108>>2];$6=$2+32|4;while(1){$8=HEAP32[(Math_imul(HEAP32[$4>>2],48)+$11|0)+32>>2];$16=HEAP32[$8+132>>2];HEAP32[$2+32>>2]=1065353216;$1=$6;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$2+52>>2]=1065353216;HEAP32[$2+64>>2]=0;HEAP32[$2+68>>2]=0;HEAP32[$2+56>>2]=0;HEAP32[$2+60>>2]=0;HEAP32[$2+72>>2]=1065353216;HEAP32[$2+84>>2]=0;HEAP32[$2+88>>2]=0;HEAP32[$2+76>>2]=0;HEAP32[$2+80>>2]=0;HEAP32[$2+24>>2]=1065353216;HEAP32[$2+28>>2]=1065353216;HEAP32[$2+16>>2]=1065353216;HEAP32[$2+20>>2]=1065353216;HEAP32[$2+92>>2]=1065353216;$0=dmRig__GenerateVertexData_28dmRig__RigContext__2c_20dmRig__RigInstance__2c_20Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Vector4_2c_20dmRig__RigVertexFormat_2c_20void__29($10,$16,$8- -64|0,$2+32|0,$2+16|0,0,$0);$4=$4+4|0;if(($9|0)!=($4|0)){continue}break}}$1=HEAP32[$13>>2];$6=($0-$1|0)/36|0;if((HEAP32[$14>>2]-$1|0)/36>>>0<$6>>>0){break label$1}HEAP32[$3+80>>2]=$1+Math_imul($6,36);$1=HEAP32[$3+56>>2];$6=HEAP32[$3+52>>2];$4=(($1-$6|0)/736|0)+1|0;if((HEAP32[$3+60>>2]-$6|0)/736>>>0<$4>>>0){break label$1}HEAP32[$3+56>>2]=$6+Math_imul($4,736);dmRender__RenderObject__Init_28_29($1);HEAP32[$1+644>>2]=HEAP32[$3+68>>2];$6=HEAP32[$3+72>>2];HEAP32[$1+688>>2]=1;HEAP32[$1+640>>2]=$6;$6=HEAP32[$3+76>>2];HEAP32[$1+728>>2]=($0-$5|0)/36;HEAP32[$1+724>>2]=($5-$6|0)/36;HEAP32[$1+656>>2]=HEAP32[HEAP32[HEAP32[$12+4>>2]+32>>2]+48>>2];$5=$1;$0=HEAP32[$7+960>>2];if(!$0){$0=HEAP32[$12+8>>2]}HEAP32[$5+652>>2]=$0;$5=HEAP32[$7+944>>2];if($5){$4=0;while(1){$0=($4<<5)+$7|0;dmRender__EnableRenderObjectConstant_28dmRender__RenderObject__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__29($1,HEAP32[$0+192>>2],HEAP32[$0+196>>2],$0+176|0);$4=$4+1|0;if(($5|0)!=($4|0)){continue}break}}label$23:{label$24:{label$25:{$5=HEAP32[HEAP32[$12>>2]+12>>2];if($5>>>0>3){break label$25}$0=7;$4=1;label$26:{switch($5-1|0){case 0:break label$24;case 1:break label$25;case 2:break label$26;default:break label$23}}$4=4;break label$23}HEAP32[$2>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,51217,$2);__assert_fail(51241,51139,493,51205);abort()}$0=1}HEAP32[$1+700>>2]=$0;HEAP32[$1+696>>2]=$4;HEAP8[$1+734|0]=HEAPU8[$1+734|0]|1;dmRender__AddToRender_28dmRender__RenderContext__2c_20dmRender__RenderObject__29($15,$1);if(!HEAP32[$2+96>>2]){break label$3}dmProfile__ProfileScope__EndScope_28_29($2+96|0);break label$3;case 1:break label$6;default:break label$4}}$0=HEAP32[$3+76>>2];FUNCTION_TABLE[HEAP32[147557]](HEAP32[$3+72>>2],HEAP32[$3+80>>2]-$0|0,$0,2);label$27:{if(HEAP8[586232]&1){break label$27}if(!__cxa_guard_acquire(586232)){break label$27}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(51115)}else{$0=-1}HEAP32[146557]=$0;__cxa_guard_release(586232)}$0=HEAP32[146557];if(($0|0)==-1){break label$3}dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,HEAP32[$3+80>>2]-HEAP32[$3+76>>2]|0);break label$3}__assert_fail(51133,51139,597,51186);abort()}FUNCTION_TABLE[HEAP32[147557]](HEAP32[$3+72>>2],0,0,2);HEAP32[$3+56>>2]=HEAP32[$3+52>>2];HEAP32[$3+80>>2]=HEAP32[$3+76>>2]}global$0=$2+112|0;return}__assert_fail(50479,50554,444,50625);abort()}__assert_fail(50637,50554,457,50656);abort()}function b2PrismaticJoint__SolveVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=Math_fround(0),$4=0,$5=0,$6=Math_fround(0),$7=0,$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=0,$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0);$4=global$0-48|0;global$0=$4;$5=HEAP32[$1+28>>2];$7=$5+Math_imul(HEAP32[$0+148>>2],12)|0;$10=HEAPF32[$7+8>>2];$13=HEAPF32[$7+4>>2];$22=HEAP32[$7+4>>2];$14=HEAPF32[$7>>2];$15=HEAP32[$7>>2];$5=$5+Math_imul(HEAP32[$0+144>>2],12)|0;$11=HEAPF32[$5+8>>2];$16=HEAPF32[$5+4>>2];$7=HEAP32[$5+4>>2];$17=HEAPF32[$5>>2];$5=HEAP32[$5>>2];$23=HEAPF32[$0+180>>2];$24=HEAPF32[$0+176>>2];$19=HEAPF32[$0+172>>2];$20=HEAPF32[$0+168>>2];if(!(!HEAPU8[$0+137|0]|HEAP32[$0+140>>2]==3)){$12=Math_fround(HEAPF32[$1>>2]*HEAPF32[$0+128>>2]);$18=Math_fround(-$12);$21=HEAPF32[$0+116>>2];$8=HEAPF32[$0+184>>2];$9=HEAPF32[$0+188>>2];$3=HEAPF32[$0+212>>2];$6=HEAPF32[$0+208>>2];$2=Math_fround($21+Math_fround(HEAPF32[$0+252>>2]*Math_fround(HEAPF32[$0+132>>2]-Math_fround(Math_fround(Math_fround(Math_fround(Math_fround($14-$17)*$8)+Math_fround(Math_fround($13-$16)*$9))+Math_fround($10*$3))-Math_fround($11*$6)))));$2=$2<$12?$2:$12;$2=$2<$18?$18:$2;HEAPF32[$0+116>>2]=$2;$2=Math_fround($2-$21);$10=Math_fround($10+Math_fround($23*Math_fround($3*$2)));$11=Math_fround($11-Math_fround($24*Math_fround($6*$2)));$6=Math_fround($9*$2);$22=(wasm2js_scratch_store_f32(Math_fround(Math_fround($19*$6)+$13)),wasm2js_scratch_load_i32(0));$2=Math_fround($8*$2);$15=(wasm2js_scratch_store_f32(Math_fround(Math_fround($19*$2)+$14)),wasm2js_scratch_load_i32(0));$7=(wasm2js_scratch_store_f32(Math_fround($16-Math_fround($20*$6))),wasm2js_scratch_load_i32(0));$5=(wasm2js_scratch_store_f32(Math_fround($17-Math_fround($20*$2))),wasm2js_scratch_load_i32(0))}$13=(wasm2js_scratch_store_i32(0,$15),wasm2js_scratch_load_f32());$14=(wasm2js_scratch_store_i32(0,$5),wasm2js_scratch_load_f32());$16=Math_fround($13-$14);$17=(wasm2js_scratch_store_i32(0,$22),wasm2js_scratch_load_f32());$12=(wasm2js_scratch_store_i32(0,$7),wasm2js_scratch_load_f32());$18=Math_fround($17-$12);$25=Math_fround(Math_fround(Math_fround(Math_fround($16*HEAPF32[$0+192>>2])+Math_fround($18*HEAPF32[$0+196>>2]))+Math_fround($10*HEAPF32[$0+204>>2]))-Math_fround($11*HEAPF32[$0+200>>2]));$3=Math_fround($10-$11);label$2:{if(!(!HEAPU8[$0+136|0]|!HEAP32[$0+140>>2])){$26=HEAPF32[$0+112>>2];$27=HEAPF32[$0+108>>2];$21=HEAPF32[$0+188>>2];$28=HEAPF32[$0+104>>2];$8=HEAPF32[$0+208>>2];$6=HEAPF32[$0+212>>2];$2=HEAPF32[$0+184>>2];$9=Math_fround(-$3);HEAPF32[$4+20>>2]=$9;$3=Math_fround(-$25);HEAPF32[$4+16>>2]=$3;HEAPF32[$4+24>>2]=-Math_fround(Math_fround(Math_fround(Math_fround($16*$2)+Math_fround($18*$21))+Math_fround($10*$6))-Math_fround($11*$8));$15=$0+216|0;b2Mat33__Solve33_28b2Vec3_20const__29_20const($4+32|0,$15,$4+16|0);HEAPF32[$0+104>>2]=HEAPF32[$4+32>>2]+HEAPF32[$0+104>>2];HEAPF32[$0+108>>2]=HEAPF32[$4+36>>2]+HEAPF32[$0+108>>2];$2=Math_fround(HEAPF32[$4+40>>2]+HEAPF32[$0+112>>2]);HEAPF32[$0+112>>2]=$2;$7=HEAP32[$0+140>>2]+ -1|0;if($7>>>0<=1){$2=$7-1|0?$2>Math_fround(0)?$2:Math_fround(0):$2>2]=$2}$6=HEAPF32[$0+240>>2];$2=Math_fround($2-$26);HEAPF32[$4+20>>2]=$9-Math_fround($2*HEAPF32[$0+244>>2]);HEAPF32[$4+16>>2]=$3-Math_fround($6*$2);b2Mat33__Solve22_28b2Vec2_20const__29_20const($4+8|0,$15,$4+16|0);$6=HEAPF32[$4+8>>2];$2=Math_fround($27+HEAPF32[$4+12>>2]);HEAPF32[$0+108>>2]=$2;$6=Math_fround($28+$6);HEAPF32[$0+104>>2]=$6;$2=Math_fround($2-$27);$8=Math_fround($6-$28);$3=Math_fround(HEAPF32[$0+112>>2]-$26);$6=Math_fround(Math_fround($2+Math_fround($8*HEAPF32[$0+204>>2]))+Math_fround($3*HEAPF32[$0+212>>2]));$2=Math_fround(Math_fround($2+Math_fround($8*HEAPF32[$0+200>>2]))+Math_fround($3*HEAPF32[$0+208>>2]));$9=Math_fround(Math_fround($8*HEAPF32[$0+196>>2])+Math_fround($3*HEAPF32[$0+188>>2]));$3=Math_fround(Math_fround($8*HEAPF32[$0+192>>2])+Math_fround($3*HEAPF32[$0+184>>2]));break label$2}HEAPF32[$4+20>>2]=-$3;HEAPF32[$4+16>>2]=-$25;b2Mat33__Solve22_28b2Vec2_20const__29_20const($4+32|0,$0+216|0,$4+16|0);$3=HEAPF32[$4+32>>2];HEAPF32[$0+104>>2]=$3+HEAPF32[$0+104>>2];$2=HEAPF32[$4+36>>2];HEAPF32[$0+108>>2]=$2+HEAPF32[$0+108>>2];$9=Math_fround($3*HEAPF32[$0+196>>2]);$6=Math_fround($2+Math_fround($3*HEAPF32[$0+204>>2]));$2=Math_fround($2+Math_fround($3*HEAPF32[$0+200>>2]));$3=Math_fround($3*HEAPF32[$0+192>>2])}$5=HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+144>>2],12)|0;HEAPF32[$5+4>>2]=$12-Math_fround($20*$9);HEAPF32[$5>>2]=$14-Math_fround($20*$3);$5=HEAP32[$1+28>>2];HEAPF32[($5+Math_imul(HEAP32[$0+144>>2],12)|0)+8>>2]=$11-Math_fround($24*$2);$5=$5+Math_imul(HEAP32[$0+148>>2],12)|0;HEAPF32[$5+4>>2]=Math_fround($19*$9)+$17;HEAPF32[$5>>2]=Math_fround($19*$3)+$13;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+148>>2],12)|0)+8>>2]=$10+Math_fround($23*$6);global$0=$4+48|0}function dmParticle__Update_28dmParticle__Context__2c_20float_2c_20dmParticle__FetchAnimationResult_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmParticle__AnimationData__29_29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$7=global$0-48|0;global$0=$7;label$1:{if(HEAP8[1120908]&1){break label$1}if(!__cxa_guard_acquire(1120908)){break label$1}if(HEAPU8[1130703]){$2=dmProfile__AllocateScope_28char_20const__29(131308)}else{$2=-1}HEAP32[280226]=$2;__cxa_guard_release(1120908)}label$3:{if(HEAP8[1120916]&1){break label$3}if(!__cxa_guard_acquire(1120916)){break label$3}if(HEAPU8[1130703]){$2=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(131336,6)}else{$2=0}HEAP32[280228]=$2;__cxa_guard_release(1120916)}$2=HEAP32[280226];label$5:{if(($2|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($7+16|0,$2,131336,HEAP32[280228]);break label$5}HEAP32[$7+16>>2]=0}label$7:{label$8:{label$9:{$2=HEAP32[$0>>2];$3=HEAP32[$0+4>>2]-$2|0;if(!$3){break label$9}$3=$3>>2;$13=$3>>>0>1?$3:1;label$10:{while(1){label$12:{$3=HEAP32[($9<<2)+$2>>2];if(!$3){break label$12}$4=HEAP32[$3>>2];$2=HEAP32[$3+4>>2]-$4|0;if(!$2){break label$12}$2=($2|0)/288|0;$10=$2>>>0>1?$2:1;$2=0;label$13:{while(1){if(!HEAP32[(Math_imul($2,288)+$4|0)+264>>2]){$2=$2+1|0;if(($10|0)!=($2|0)){continue}break label$13}break}HEAPF32[$3+76>>2]=HEAPF32[$3+76>>2]+$1;$14=HEAPU16[$3+80>>1]<<16|$9;$11=HEAP32[$3+64>>2];$6=0;label$16:{while(1){$5=HEAP32[$11>>2];if((HEAP32[$11+4>>2]-$5|0)/18568>>>0<=$6>>>0){break label$8}$8=HEAP32[$11+16>>2];if(HEAPU32[$8+4>>2]<=$6>>>0){break label$7}$2=Math_imul($6,288)+$4|0;$8=HEAP32[$8>>2]+($6<<7)|0;dmParticle__UpdateEmitterVelocity_28dmParticle__Instance__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20float_29($3,$2,$8,$1);$4=$5+Math_imul($6,18568)|0;dmParticle__UpdateEmitter_28dmParticle__Prototype__2c_20dmParticle__Instance__2c_20dmParticle__EmitterPrototype__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20float_29($3,$4,$2,$8,$1);$15=(HEAP32[$2+52>>2]-HEAP32[$2+48>>2]|0)/160|0;label$18:{if(HEAP8[1121012]&1){break label$18}if(!__cxa_guard_acquire(1121012)){break label$18}if(HEAPU8[1130703]){$5=dmProfile__AllocateScope_28char_20const__29(131308)}else{$5=-1}HEAP32[280252]=$5;__cxa_guard_release(1121012)}label$20:{if(HEAP8[1121020]&1){break label$20}if(!__cxa_guard_acquire(1121020)){break label$20}if(HEAPU8[1130703]){$5=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(132013,14)}else{$5=0}HEAP32[280254]=$5;__cxa_guard_release(1121020)}$5=HEAP32[280252];label$22:{if(($5|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($7+32|0,$5,132013,HEAP32[280254]);break label$22}HEAP32[$7+32>>2]=0}HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+40>>2]=0;HEAP32[$2+44>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;$5=HEAP32[$4+18552>>2];label$24:{if(!$5){break label$24}if(FUNCTION_TABLE[457]($5,HEAP32[$4+18544>>2],HEAP32[$4+18548>>2],$2)){$5=HEAPU8[$2+280|0];if($5&2){break label$24}HEAP8[$2+280|0]=$5|2;$4=$4+18544|0;HEAP32[$7>>2]=dmHashReverseSafe64(HEAP32[$4>>2],HEAP32[$4+4>>2]);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,131153,132028,$7);break label$24}if(HEAP32[$2+44>>2]!=48){break label$16}HEAP8[$2+280|0]=HEAPU8[$2+280|0]&253}if(HEAP32[$7+32>>2]){dmProfile__ProfileScope__EndScope_28_29($7+32|0)}dmParticle__UpdateEmitterRenderData_28unsigned_20int_2c_20unsigned_20int_2c_20dmParticle__Instance__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__29($14,$6,$3,$2,$8);if(HEAPU8[$2+280|0]&16){dmParticle__ReHashEmitter_28dmParticle__Emitter__29($2)}$12=$12+$15|0;$6=$6+1|0;if(($10|0)==($6|0)){break label$12}$4=HEAP32[$3>>2];if((HEAP32[$3+4>>2]-$4|0)/288>>>0>$6>>>0){continue}break}break label$8}__assert_fail(132066,131478,724,132013);abort()}$2=0;while(1){$6=Math_imul($2,288)+$4|0;HEAP32[$6+244>>2]=0;$4=HEAP32[HEAP32[$3+64>>2]+16>>2];if(HEAPU32[$4+4>>2]<=$2>>>0){break label$10}dmParticle__UpdateEmitterVelocity_28dmParticle__Instance__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20float_29($3,$6,HEAP32[$4>>2]+($2<<7)|0,$1);$2=$2+1|0;if(($10|0)==($2|0)){break label$12}$4=HEAP32[$3>>2];if((HEAP32[$3+4>>2]-$4|0)/288>>>0>$2>>>0){continue}break}break label$8}$9=$9+1|0;if(($13|0)==($9|0)){break label$9}$2=HEAP32[$0>>2];if(HEAP32[$0+4>>2]-$2>>2>>>0>$9>>>0){continue}break}break label$8}break label$7}label$29:{if(HEAP8[1120924]&1){break label$29}if(!__cxa_guard_acquire(1120924)){break label$29}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(131343)}else{$0=-1}HEAP32[280230]=$0;__cxa_guard_release(1120924)}$0=HEAP32[280230];if(($0|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,$12)}if(HEAP32[$7+16>>2]){dmProfile__ProfileScope__EndScope_28_29($7+16|0)}global$0=$7+48|0;return}__assert_fail(132466,131573,430,131839);abort()}__assert_fail(131789,131801,240,131839);abort()}function dmGameSystem__CompSpineModelEventCallback_28dmRig__RigEventType_2c_20void__2c_20void__2c_20void__29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=0,$5=0,$6=0;$3=global$0-128|0;global$0=$3;HEAP32[$3+120>>2]=0;HEAP32[$3+124>>2]=0;HEAP32[$3+112>>2]=0;HEAP32[$3+116>>2]=0;HEAP32[$3+104>>2]=0;HEAP32[$3+108>>2]=0;HEAP32[$3+96>>2]=0;HEAP32[$3+100>>2]=0;$4=HEAP32[$2+172>>2];HEAP32[$3+88>>2]=HEAP32[$2+168>>2];HEAP32[$3+92>>2]=$4;$4=HEAP32[$2+164>>2];HEAP32[$3+80>>2]=HEAP32[$2+160>>2];HEAP32[$3+84>>2]=$4;$4=HEAP32[$2+156>>2];HEAP32[$3+72>>2]=HEAP32[$2+152>>2];HEAP32[$3+76>>2]=$4;$4=HEAP32[$2+148>>2];HEAP32[$3+64>>2]=HEAP32[$2+144>>2];HEAP32[$3+68>>2]=$4;label$1:{if($0>>>0<=1){if($0-1){$4=$3+40|0;$0=$4;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;$0=HEAP32[HEAP32[HEAP32[$2>>2]+80>>2]+8>>2];label$4:{if(!$0){break label$4}$0=HEAP32[$0>>2];if(!$0){break label$4}$6=HEAP32[$0+4224>>2];$5=HEAP32[$0+4228>>2]}HEAP32[$3+16>>2]=$6;HEAP32[$3+20>>2]=$5;label$5:{if(dmMessage__IsSocketValid_28unsigned_20long_20long_29($6,$5)){if(!dmGameObject__GetComponentId_28dmGameObject__Instance__2c_20unsigned_20short_2c_20unsigned_20long_20long__29(HEAP32[$2>>2],HEAPU16[$2+980>>1],$4)){break label$5}}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50789,0);break label$1}$0=HEAP32[$2>>2];$6=HEAP32[$0+100>>2];HEAP32[$3+112>>2]=HEAP32[$0+96>>2];HEAP32[$3+116>>2]=$6;$0=HEAP32[$3+28>>2];HEAP32[$3+104>>2]=HEAP32[$3+24>>2];HEAP32[$3+108>>2]=$0;$0=HEAP32[$3+44>>2];HEAP32[$3+120>>2]=HEAP32[$3+40>>2];HEAP32[$3+124>>2]=$0;$0=HEAP32[$3+20>>2];HEAP32[$3+96>>2]=HEAP32[$3+16>>2];HEAP32[$3+100>>2]=$0;$0=HEAP32[134190];$5=HEAP32[$0+8>>2];$6=HEAP32[$0+12>>2];$4=HEAP32[$1+4>>2];HEAP32[$3+16>>2]=HEAP32[$1>>2];HEAP32[$3+20>>2]=$4;HEAP32[$3+24>>2]=HEAP32[$1+8>>2];$0=dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($3+96|0,$3- -64|0,$5,$6,0,$0,$3+16|0,16,0);HEAP8[$2+144|0]=0;HEAP8[$2+145|0]=0;HEAP8[$2+146|0]=0;HEAP8[$2+147|0]=0;HEAP8[$2+148|0]=0;HEAP8[$2+149|0]=0;HEAP8[$2+150|0]=0;HEAP8[$2+151|0]=0;HEAP8[$2+168|0]=0;HEAP8[$2+169|0]=0;HEAP8[$2+170|0]=0;HEAP8[$2+171|0]=0;HEAP8[$2+172|0]=0;HEAP8[$2+173|0]=0;HEAP8[$2+174|0]=0;HEAP8[$2+175|0]=0;HEAP8[$2+160|0]=0;HEAP8[$2+161|0]=0;HEAP8[$2+162|0]=0;HEAP8[$2+163|0]=0;HEAP8[$2+164|0]=0;HEAP8[$2+165|0]=0;HEAP8[$2+166|0]=0;HEAP8[$2+167|0]=0;HEAP8[$2+152|0]=0;HEAP8[$2+153|0]=0;HEAP8[$2+154|0]=0;HEAP8[$2+155|0]=0;HEAP8[$2+156|0]=0;HEAP8[$2+157|0]=0;HEAP8[$2+158|0]=0;HEAP8[$2+159|0]=0;if(!$0){break label$1}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50864,0);break label$1}$4=$3+40|0;$0=$4;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;$0=HEAP32[HEAP32[HEAP32[$2>>2]+80>>2]+8>>2];label$7:{if(!$0){break label$7}$0=HEAP32[$0>>2];if(!$0){break label$7}$6=HEAP32[$0+4224>>2];$5=HEAP32[$0+4228>>2]}HEAP32[$3+16>>2]=$6;HEAP32[$3+20>>2]=$5;if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29($6,$5)){break label$1}if(dmGameObject__GetComponentId_28dmGameObject__Instance__2c_20unsigned_20short_2c_20unsigned_20long_20long__29(HEAP32[$2>>2],HEAPU16[$2+980>>1],$4)){break label$1}$0=HEAP32[$2>>2];$2=HEAP32[$0+100>>2];HEAP32[$3+112>>2]=HEAP32[$0+96>>2];HEAP32[$3+116>>2]=$2;$0=HEAP32[$3+28>>2];HEAP32[$3+104>>2]=HEAP32[$3+24>>2];HEAP32[$3+108>>2]=$0;$0=HEAP32[$3+44>>2];HEAP32[$3+120>>2]=HEAP32[$3+40>>2];HEAP32[$3+124>>2]=$0;$0=HEAP32[$3+20>>2];HEAP32[$3+96>>2]=HEAP32[$3+16>>2];HEAP32[$3+100>>2]=$0;HEAP32[$3+72>>2]=0;if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29(HEAP32[$3+64>>2],HEAP32[$3+68>>2])){$0=HEAP32[$3+116>>2];HEAP32[$3+80>>2]=HEAP32[$3+112>>2];HEAP32[$3+84>>2]=$0;$0=HEAP32[$3+108>>2];HEAP32[$3+72>>2]=HEAP32[$3+104>>2];HEAP32[$3+76>>2]=$0;$0=HEAP32[$3+100>>2];HEAP32[$3+64>>2]=HEAP32[$3+96>>2];HEAP32[$3+68>>2]=$0;HEAP32[$3+88>>2]=0;HEAP32[$3+92>>2]=0}$0=HEAP32[134240];$2=$0;$6=HEAP32[$2+8>>2];$2=HEAP32[$2+12>>2];$5=HEAP32[$1+4>>2];HEAP32[$3+16>>2]=HEAP32[$1>>2];HEAP32[$3+20>>2]=$5;$5=HEAP32[$1+12>>2];HEAP32[$3+24>>2]=HEAP32[$1+8>>2];HEAP32[$3+28>>2]=$5;HEAP32[$3+36>>2]=HEAP32[$1+20>>2];HEAP32[$3+32>>2]=HEAP32[$1+16>>2];HEAP32[$3+40>>2]=HEAP32[$1+24>>2];HEAP32[$3+44>>2]=HEAP32[$1+28>>2];$5=HEAP32[$1+32>>2];$1=HEAP32[$1+36>>2];HEAP32[$3+56>>2]=0;HEAP32[$3+60>>2]=0;HEAP32[$3+48>>2]=$5;HEAP32[$3+52>>2]=$1;if(!dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($3+96|0,$3- -64|0,$6,$2,0,$0,$3+16|0,48,0)){break label$1}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50907,0);break label$1}HEAP32[$3>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50947,$3)}global$0=$3+128|0}function dmGameSystem__CompCollisionObjectOnMessage_28dmGameObject__ComponentOnMessageParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0;$2=global$0-80|0;global$0=$2;$3=HEAP32[$0+8>>2];$4=HEAP32[HEAP32[$0+12>>2]>>2];label$1:{label$2:{label$3:{label$4:{$5=HEAP32[$0+16>>2];$1=$5;$6=HEAP32[$1+64>>2];$8=HEAP32[131295];$7=HEAP32[$1+68>>2];$1=($6|0)==HEAP32[$8+8>>2]&($7|0)==HEAP32[$8+12>>2];if(!$1){$8=HEAP32[131296];if(HEAP32[$8+8>>2]!=($6|0)|HEAP32[$8+12>>2]!=($7|0)){break label$4}}$5=HEAPU8[$4+24|0];if($5&2){$0=HEAP32[$0+4>>2];if(HEAPU8[$3+13|0]){dmPhysics__SetEnabled3D_28dmPhysics__World3D__2c_20void__2c_20bool_29(HEAP32[$0+128>>2],HEAP32[$4+8>>2],$1);$1=0;break label$3}dmPhysics__SetEnabled2D_28dmPhysics__World2D__2c_20void__2c_20bool_29(HEAP32[$0+128>>2],HEAP32[$4+8>>2],$1);$1=0;break label$3}HEAP8[$4+24|0]=$5&251|$1<<2;$1=0;break label$3}$1=HEAP32[133694];if(($6|0)==HEAP32[$1+8>>2]&($7|0)==HEAP32[$1+12>>2]){$0=$5+96|0;if(HEAPU8[$3+13|0]){dmPhysics__ApplyForce3D_28dmPhysics__Context3D__2c_20void__2c_20Vectormath__Aos__Vector3_20const__2c_20Vectormath__Aos__Point3_20const__29(HEAP32[$3>>2],HEAP32[$4+8>>2],$0,$5+112|0);$1=0;break label$3}dmPhysics__ApplyForce2D_28dmPhysics__Context2D__2c_20void__2c_20Vectormath__Aos__Vector3_20const__2c_20Vectormath__Aos__Point3_20const__29(HEAP32[$3>>2],HEAP32[$4+8>>2],$0,$5+112|0);$1=0;break label$3}$1=HEAP32[133931];if(($6|0)==HEAP32[$1+8>>2]&($7|0)==HEAP32[$1+12>>2]){label$11:{if(HEAPU8[$3+13|0]){dmPhysics__GetLinearVelocity3D_28dmPhysics__Context3D__2c_20void__29($2+32|0,HEAP32[$3>>2],HEAP32[$4+8>>2]);HEAP32[$2+48>>2]=HEAP32[$2+32>>2];$1=HEAP32[$2+40>>2];HEAP32[$2+52>>2]=HEAP32[$2+36>>2];HEAP32[$2+56>>2]=$1;dmPhysics__GetAngularVelocity3D_28dmPhysics__Context3D__2c_20void__29($2+32|0,HEAP32[$4+8>>2]);break label$11}dmPhysics__GetLinearVelocity2D_28dmPhysics__Context2D__2c_20void__29($2+32|0,HEAP32[$3>>2],HEAP32[$4+8>>2]);HEAP32[$2+48>>2]=HEAP32[$2+32>>2];$1=HEAP32[$2+40>>2];HEAP32[$2+52>>2]=HEAP32[$2+36>>2];HEAP32[$2+56>>2]=$1;HEAP32[$2+40>>2]=HEAP32[HEAP32[$4+8>>2]+72>>2];HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0}$4=HEAP32[$2+40>>2];HEAP32[$2+68>>2]=HEAP32[$2+36>>2];HEAP32[$2+72>>2]=$4;HEAP32[$2+64>>2]=HEAP32[$2+32>>2];$1=0;$0=HEAP32[$0+16>>2];$3=$0+32|0;$5=$0;$0=HEAP32[133950];$0=dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($3,$5,HEAP32[$0+8>>2],HEAP32[$0+12>>2],0,$0,$2+48|0,32,0);if(!$0){break label$3}HEAP32[$2>>2]=HEAP32[HEAP32[133950]+4>>2];HEAP32[$2+4>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,37929,$2);$1=-1e3;break label$3}$1=HEAP32[133990];if(($6|0)==HEAP32[$1+8>>2]&($7|0)==HEAP32[$1+12>>2]){if(HEAPU8[$3+13|0]){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,37973,0);$1=-1e3;break label$3}$1=HEAP32[$4>>2];if(!(HEAP8[$1+168|0]&1)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,38022,0);$1=-1e3;break label$3}label$16:{$7=HEAP32[$5+100>>2];$3=HEAP32[$1+136>>2];if($7>>>0>2]){$8=HEAP32[$5+104>>2];if($8>>>0>2]){break label$16}}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,38092,0);$1=-1e3;break label$3}label$18:{$6=HEAP32[$5+108>>2];$11=($6|0)==-1;if($11){break label$18}$1=HEAP32[$3>>2];if($6>>>0>2]-HEAP32[$1>>2]>>3>>>0){break label$18}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,38137,0);$1=-1e3;break label$3}$1=HEAP32[$5+96>>2];$9=HEAP32[$4+8>>2];$10=HEAPU16[$5+116>>1]<<1&2|HEAP16[$5+112>>1]&1;HEAP16[$2+22>>1]=$10;HEAP16[$2+24>>1]=$10;dmPhysics__SetGridShapeHull_28void__2c_20unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20int_2c_20dmPhysics__HullFlags_29($9,$1,$7,$8,$6,$2+22|0);$12=HEAP32[$3+28>>2];$1=0;$9=0;$10=0;if(!$11){$9=HEAP32[$3>>2];$3=HEAP32[$9>>2];if(HEAP32[$9+4>>2]-$3>>3>>>0<=$6>>>0){break label$2}$9=HEAP32[$0+4>>2];$0=$3+($6<<3)|0;$9=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($9,HEAP32[$0>>2],HEAP32[$0+4>>2]);$10=HEAPU16[$4+20>>1]}dmPhysics__SetCollisionObjectFilter_28void__2c_20unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20short_2c_20unsigned_20short_29(HEAP32[$4+8>>2],HEAP32[$5+96>>2],Math_imul($7,$12)+$8&65535,$9,$10);break label$3}$1=0;$0=HEAP32[134010];if(HEAP32[$0+8>>2]!=($6|0)|HEAP32[$0+12>>2]!=($7|0)){break label$3}if(HEAPU8[$3+13|0]){break label$1}if(!(HEAP8[HEAP32[$4>>2]+168|0]&1)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,38245,0);$1=-1e3;break label$3}dmPhysics__SetGridShapeEnable_28void__2c_20unsigned_20int_2c_20unsigned_20int_29(HEAP32[$4+8>>2],HEAP32[$5+96>>2],HEAP32[$5+100>>2])}global$0=$2+80|0;return $1|0}__assert_fail(38858,38775,430,38452);abort()}__assert_fail(38193,37605,1111,38216);abort()}function dmGameSystem__UpdateIKInstanceCallback_28dmRig__IKTarget__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=Math_fround(0),$4=Math_fround(0),$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=0,$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=0,$28=0,$29=Math_fround(0);$5=global$0-80|0;global$0=$5;$22=HEAP32[$1+44>>2];$28=$22;label$1:{$9=HEAP32[$1+36>>2];$27=HEAP32[$1+40>>2];$22=dmGameObject__GetInstanceFromIdentifier_28dmGameObject__CollectionHandle__2c_20unsigned_20long_20long_29(HEAP32[HEAP32[HEAP32[$9>>2]+80>>2]+8>>2],$27,$22);label$2:{if(!$22){HEAP32[$5>>2]=dmHashReverseSafe64($27,$28);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,51243,$5);HEAP32[$1>>2]=0;HEAP32[$1+32>>2]=0;HEAP32[$0+8>>2]=0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;break label$2}dmGameObject__GetWorldTransform_28dmGameObject__Instance__29($5+32|0,HEAP32[$9>>2]);$3=HEAPF32[$5+64>>2];$19=Math_fround($3*HEAPF32[$9+48>>2]);if($19==Math_fround(0)){break label$1}$4=HEAPF32[$5+68>>2];$20=Math_fround($4*HEAPF32[$9+52>>2]);if($20==Math_fround(0)){break label$1}$10=HEAPF32[$5+72>>2];$23=Math_fround($10*HEAPF32[$9+56>>2]);if($23==Math_fround(0)){break label$1}$21=HEAPF32[$9+40>>2];$2=HEAPF32[$5+44>>2];$12=HEAPF32[$9+36>>2];$6=HEAPF32[$5+32>>2];$14=HEAPF32[$9+32>>2];$7=HEAPF32[$5+36>>2];$8=HEAPF32[$5+40>>2];$13=HEAPF32[$5+56>>2];$24=HEAPF32[$5+52>>2];$25=HEAPF32[$5+48>>2];$15=HEAPF32[$9+16>>2];$16=HEAPF32[$9+28>>2];$17=HEAPF32[$9+20>>2];$26=HEAPF32[$9+24>>2];dmGameObject__GetWorldPosition_28dmGameObject__Instance__29($5+16|0,$22);$11=Math_fround(Math_fround(Math_fround($8*$15)+Math_fround(Math_fround($2*$17)+Math_fround($7*$16)))-Math_fround($6*$26));$29=$13;$3=Math_fround($14*$3);$4=Math_fround($12*$4);$10=Math_fround($21*$10);$12=Math_fround(Math_fround(Math_fround($8*$3)+Math_fround($2*$4))-Math_fround($6*$10));$14=Math_fround(Math_fround($8*$10)+Math_fround(Math_fround($6*$3)+Math_fround($7*$4)));$13=Math_fround(Math_fround(Math_fround($6*$4)+Math_fround($2*$10))-Math_fround($7*$3));$18=Math_fround(Math_fround(Math_fround($2*$3)+Math_fround($7*$10))-Math_fround($8*$4));$10=Math_fround($29+Math_fround(Math_fround($6*$12)+Math_fround(Math_fround(Math_fround($8*$14)+Math_fround($2*$13))-Math_fround($7*$18))));$3=Math_fround(Math_fround(Math_fround(Math_fround($2*$16)-Math_fround($6*$15))-Math_fround($7*$17))-Math_fround($8*$26));$21=Math_fround($25+Math_fround(Math_fround($7*$13)+Math_fround(Math_fround(Math_fround($6*$14)+Math_fround($2*$18))-Math_fround($8*$12))));$4=Math_fround(Math_fround(Math_fround($6*$17)+Math_fround(Math_fround($2*$26)+Math_fround($8*$16)))-Math_fround($7*$15));$12=Math_fround($24+Math_fround(Math_fround($8*$18)+Math_fround(Math_fround(Math_fround($2*$12)+Math_fround($7*$14))-Math_fround($6*$13))));$14=Math_fround(Math_fround(Math_fround($11*$10)-Math_fround($3*$21))-Math_fround($4*$12));$24=Math_fround(Math_fround(1)/$20);$13=Math_fround($24*HEAPF32[$5+20>>2]);$25=Math_fround(Math_fround(1)/$19);$18=Math_fround($25*HEAPF32[$5+16>>2]);$23=Math_fround(Math_fround(1)/$23);$19=Math_fround($23*HEAPF32[$5+24>>2]);$20=Math_fround(Math_fround($4*$13)+Math_fround(Math_fround($3*$18)-Math_fround($11*$19)));$2=Math_fround(Math_fround(Math_fround($7*$26)+Math_fround(Math_fround($2*$15)+Math_fround($6*$16)))-Math_fround($8*$17));$6=Math_fround(Math_fround(Math_fround($2*$12)-Math_fround($3*$10))-Math_fround($11*$21));$7=Math_fround(Math_fround($4*$10)+Math_fround(Math_fround($11*$12)+Math_fround($2*$21)));$8=Math_fround(Math_fround(Math_fround($4*$21)-Math_fround($3*$12))-Math_fround($2*$10));$15=Math_fround(Math_fround($11*$18)+Math_fround(Math_fround($3*$19)-Math_fround($2*$13)));$16=Math_fround(Math_fround(Math_fround($13*Math_fround(-$11))-Math_fround($2*$18))-Math_fround($4*$19));$17=Math_fround(Math_fround(Math_fround($3*$13)-Math_fround($4*$18))+Math_fround($2*$19));HEAPF32[$0+8>>2]=Math_fround($23*Math_fround(Math_fround(Math_fround($11*$14)+Math_fround(Math_fround($3*$6)-Math_fround($4*$7)))-Math_fround($2*$8)))+Math_fround(Math_fround(Math_fround($11*$20)+Math_fround(Math_fround($3*$15)-Math_fround($4*$16)))-Math_fround($2*$17));HEAPF32[$0+4>>2]=Math_fround($24*Math_fround(Math_fround(Math_fround($2*$6)+Math_fround(Math_fround($3*$8)-Math_fround($11*$7)))-Math_fround($4*$14)))+Math_fround(Math_fround(Math_fround(Math_fround($3*$17)-Math_fround($11*$16))+Math_fround($2*$15))-Math_fround($4*$20));HEAPF32[$0>>2]=Math_fround($25*Math_fround(Math_fround(Math_fround($4*$8)+Math_fround(Math_fround($3*$14)-Math_fround($2*$7)))-Math_fround($11*$6)))+Math_fround(Math_fround(Math_fround($4*$17)+Math_fround(Math_fround($3*$20)-Math_fround($2*$16)))-Math_fround($11*$15))}global$0=$5+80|0;return}__assert_fail(51293,51406,374,51471);abort()}function ssl_write_client_hello($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$6=global$0-16|0;global$0=$6;$1=HEAP32[$0>>2];label$1:{if(!HEAP32[$1+24>>2]){$5=-29696;break label$1}if(!HEAP32[$0+8>>2]){HEAP32[$0+16>>2]=HEAPU8[$1+182|0];HEAP32[$0+20>>2]=HEAPU8[$1+183|0]}$2=HEAPU8[$1+180|0];if(!$2){$5=-28928;break label$1}$3=HEAP32[$0+204>>2];mbedtls_ssl_write_version($2,HEAPU8[$1+181|0],HEAP32[$1+184>>2]>>>1&1,$3+4|0);$5=ssl_generate_random($0);if($5){break label$1}$1=HEAP32[$0+68>>2];$2=HEAPU8[$1+1132|0]|HEAPU8[$1+1133|0]<<8|(HEAPU8[$1+1134|0]<<16|HEAPU8[$1+1135|0]<<24);$4=HEAPU8[$1+1128|0]|HEAPU8[$1+1129|0]<<8|(HEAPU8[$1+1130|0]<<16|HEAPU8[$1+1131|0]<<24);HEAP8[$3+6|0]=$4;HEAP8[$3+7|0]=$4>>>8;HEAP8[$3+8|0]=$4>>>16;HEAP8[$3+9|0]=$4>>>24;HEAP8[$3+10|0]=$2;HEAP8[$3+11|0]=$2>>>8;HEAP8[$3+12|0]=$2>>>16;HEAP8[$3+13|0]=$2>>>24;$2=$1+1152|0;$4=HEAPU8[$2+4|0]|HEAPU8[$2+5|0]<<8|(HEAPU8[$2+6|0]<<16|HEAPU8[$2+7|0]<<24);$2=HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24);HEAP8[$3+30|0]=$2;HEAP8[$3+31|0]=$2>>>8;HEAP8[$3+32|0]=$2>>>16;HEAP8[$3+33|0]=$2>>>24;HEAP8[$3+34|0]=$4;HEAP8[$3+35|0]=$4>>>8;HEAP8[$3+36|0]=$4>>>16;HEAP8[$3+37|0]=$4>>>24;$2=$1+1144|0;$4=HEAPU8[$2+4|0]|HEAPU8[$2+5|0]<<8|(HEAPU8[$2+6|0]<<16|HEAPU8[$2+7|0]<<24);$2=HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24);HEAP8[$3+22|0]=$2;HEAP8[$3+23|0]=$2>>>8;HEAP8[$3+24|0]=$2>>>16;HEAP8[$3+25|0]=$2>>>24;HEAP8[$3+26|0]=$4;HEAP8[$3+27|0]=$4>>>8;HEAP8[$3+28|0]=$4>>>16;HEAP8[$3+29|0]=$4>>>24;$1=$1+1136|0;$2=HEAPU8[$1+4|0]|HEAPU8[$1+5|0]<<8|(HEAPU8[$1+6|0]<<16|HEAPU8[$1+7|0]<<24);$1=HEAPU8[$1|0]|HEAPU8[$1+1|0]<<8|(HEAPU8[$1+2|0]<<16|HEAPU8[$1+3|0]<<24);HEAP8[$3+14|0]=$1;HEAP8[$3+15|0]=$1>>>8;HEAP8[$3+16|0]=$1>>>16;HEAP8[$3+17|0]=$1>>>24;HEAP8[$3+18|0]=$2;HEAP8[$3+19|0]=$2>>>8;HEAP8[$3+20|0]=$2>>>16;HEAP8[$3+21|0]=$2>>>24;$1=HEAP32[$0+8>>2];label$5:{label$6:{label$7:{label$8:{$2=HEAP32[$0+64>>2];$4=HEAP32[$2+12>>2];label$9:{if($4+ -16>>>0<=16){if($1){break label$8}$1=HEAP32[HEAP32[$0+68>>2]+2252>>2]?$4:0;break label$9}if($1){break label$8}$1=0}if(!HEAP32[$2+104>>2]|!HEAP32[$2+108>>2]){break label$7}$1=32;$4=HEAP32[$0>>2];$5=FUNCTION_TABLE[HEAP32[$4+24>>2]](HEAP32[$4+28>>2],$2+16|0,32)|0;if($5){break label$1}HEAP32[HEAP32[$0+64>>2]+12>>2]=32;HEAP8[$3+38|0]=32;$8=$3+39|0;break label$6}HEAP8[$3+38|0]=0;$8=$3+39|0;break label$5}HEAP8[$3+38|0]=$1;$8=$3+39|0;if(!$1){break label$5}}$5=0;while(1){HEAP8[$8|0]=HEAPU8[(HEAP32[$0+64>>2]+$5|0)+16|0];$8=$8+1|0;$5=$5+1|0;if(($1|0)!=($5|0)){continue}break}}label$12:{if(!(HEAPU8[HEAP32[$0>>2]+184|0]&2)){break label$12}$1=HEAP32[$0+68>>2];if(!HEAP32[$1+480>>2]){HEAP8[$8|0]=0;$8=$8+1|0;break label$12}HEAP8[$8|0]=HEAPU8[$1+484|0];$1=HEAP32[$0+68>>2];$8=memcpy($8+1|0,HEAP32[$1+480>>2],HEAPU8[$1+484|0])+HEAPU8[HEAP32[$0+68>>2]+484|0]|0}$7=$8+2|0;$4=HEAP32[HEAP32[$0>>2]+(HEAP32[$0+20>>2]<<2)>>2];$5=HEAP32[$4>>2];if($5){$2=$4;$1=0;while(1){$5=mbedtls_ssl_ciphersuite_from_id($5);$10=HEAP32[$0>>2];if(!ssl_validate_ciphersuite($5,$0,HEAPU8[$10+183|0],HEAPU8[$10+181|0])){$5=HEAP32[$5+16>>2]+ -3|0;label$17:{if($5>>>0<=8){$5=HEAP32[($5<<2)+167940>>2];break label$17}$5=0}HEAP8[$7|0]=HEAP32[$2>>2]>>>8;HEAP8[$7+1|0]=HEAP32[$2>>2];$9=$9+1|0;$11=$5|$11;$7=$7+2|0}$1=$1+1|0;$2=$4+($1<<2)|0;$5=HEAP32[$2>>2];if($5){continue}break}}if(!HEAP32[$0+8>>2]){HEAP8[$7|0]=65280;HEAP8[$7+1|0]=255;$9=$9+1|0;$7=$7+2|0}if(HEAP8[HEAP32[$0>>2]+186|0]&1){HEAP8[$7|0]=86;HEAP8[$7+1|0]=0;$9=$9+1|0;$7=$7+2|0}HEAP8[$8+1|0]=$9<<1;HEAP8[$8|0]=$9>>>7;HEAP8[$7|0]=1;HEAP8[$7+1|0]=0;$4=$7+4|0;ssl_write_hostname_ext($0,$4,$6+12|0);$1=HEAP32[$6+12>>2];ssl_write_renegotiation_ext($0,$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;ssl_write_signature_algorithms_ext(HEAP32[$0>>2],HEAP32[$0+204>>2],$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;$2=$0;if($11){ssl_write_supported_elliptic_curves_ext($0,$1+$4|0,$6+12|0);$1=HEAP32[$6+12>>2]+$1|0;ssl_write_supported_point_formats_ext(HEAP32[$0+204>>2],$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0}ssl_write_max_fragment_length_ext($2,$1+$4|0,$6+12|0);$1=HEAP32[$6+12>>2]+$1|0;ssl_write_truncated_hmac_ext(HEAP32[$0>>2],HEAP32[$0+204>>2],$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;ssl_write_encrypt_then_mac_ext(HEAP32[$0>>2],HEAP32[$0+204>>2],$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;ssl_write_extended_ms_ext(HEAP32[$0>>2],HEAP32[$0+204>>2],$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;ssl_write_alpn_ext($0,$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;ssl_write_session_ticket_ext($0,$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;$2=$7+2|0;label$23:{if(!$1){break label$23}$2=($1<<8&16711680|$1<<24)>>>16|0;HEAP8[$7+2|0]=$2;HEAP8[$7+3|0]=$2>>>8;$2=$1+$4|0}HEAP32[$0+208>>2]=22;HEAP32[$0+212>>2]=$2-$3;HEAP8[HEAP32[$0+204>>2]]=1;HEAP32[$0+4>>2]=HEAP32[$0+4>>2]+1;if(HEAPU8[HEAP32[$0>>2]+184|0]&2){mbedtls_ssl_send_flight_completed($0)}$5=mbedtls_ssl_write_handshake_msg($0);if($5){break label$1}if(HEAPU8[HEAP32[$0>>2]+184|0]&2){$5=mbedtls_ssl_flight_transmit($0);if($5){break label$1}}$5=0}global$0=$6+16|0;return $5}function VP8LInverseTransform($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0,$20=0;$10=global$0-16|0;global$0=$10;label$1:{label$2:{label$3:{label$4:{label$5:{if(($2|0)>($1|0)){if(HEAP32[$0+12>>2]>=($2|0)){$5=HEAP32[$0>>2];if($5>>>0>3){break label$1}$8=HEAP32[$0+8>>2];label$8:{switch($5-1|0){case 1:FUNCTION_TABLE[HEAP32[283225]]($4,Math_imul($8,$2-$1|0));break label$1;case 0:break label$4;case 2:break label$5;default:break label$8}}$7=$4;$9=$1;if(!$1){$3=HEAP32[$4>>2];$3=$3+ -16777216&-16711936|$3&16711935;HEAP32[$4>>2]=$3;if(($8|0)>=2){$5=1;while(1){$7=($5<<2)+$4|0;$6=HEAP32[$7>>2];$3=($6&-16711936)+($3&-16711936)&-16711936|($6&16711935)+($3&16711935)&16711935;HEAP32[$7>>2]=$3;$5=$5+1|0;if(($8|0)!=($5|0)){continue}break}}$9=1;$7=($8<<2)+$4|0}if(($9|0)>=($2|0)){break label$2}$3=HEAP32[$0+4>>2];$13=1<<$3;$15=$13+ -1|0;$16=$8+$15>>>$3|0;$11=HEAP32[$0+16>>2]+(Math_imul($16,$9>>$3)<<2)|0;$3=0-$8|0;label$13:{$18=$8&0-$13;if(($18|0)>1){$14=$3<<2;break label$13}if(($8|0)<2){break label$3}$5=$3<<2;while(1){$3=HEAP32[$7>>2];$6=HEAP32[$5+$7>>2];$6=($3&-16711936)+($6&-16711936)&-16711936|($3&16711935)+($6&16711935)&16711935;HEAP32[$7>>2]=$6;$14=HEAP32[(HEAP32[$11>>2]>>>6&60)+1132928>>2];$3=1;while(1){$12=$6;$6=($3<<2)+$7|0;$13=FUNCTION_TABLE[$14]($12,$6+$5|0)|0;$12=$6;$6=HEAP32[$6>>2];$6=($6&-16711936)+($13&-16711936)&-16711936|($6&16711935)+($13&16711935)&16711935;HEAP32[$12>>2]=$6;$3=$3+1|0;if(($8|0)!=($3|0)){continue}break}$9=$9+1|0;$11=$15&$9?$11:($16<<2)+$11|0;$7=($8<<2)+$7|0;if(($2|0)!=($9|0)){continue}break}break label$2}while(1){$3=HEAP32[$7>>2];$5=HEAP32[$7+$14>>2];HEAP32[$7>>2]=($3&-16711936)+($5&-16711936)&-16711936|($3&16711935)+($5&16711935)&16711935;$3=1;$5=1;$6=$11;while(1){if(($13|0)>($3|0)){$20=HEAP32[(HEAP32[$6>>2]>>>6&60)+1132928>>2];$3=($13-$3|0)+$5|0;while(1){$12=($5<<2)+$7|0;$19=FUNCTION_TABLE[$20](HEAP32[$12+ -4>>2],$12+$14|0)|0;$17=$12;$12=HEAP32[$12>>2];HEAP32[$17>>2]=($12&-16711936)+($19&-16711936)&-16711936|($12&16711935)+($19&16711935)&16711935;$5=$5+1|0;if(($3|0)!=($5|0)){continue}break}$5=$3}$6=$6+4|0;$3=0;if(($5|0)<($18|0)){continue}break}if(($5|0)<($8|0)){$12=HEAP32[(HEAP32[$6>>2]>>>6&60)+1132928>>2];while(1){$3=($5<<2)+$7|0;$6=FUNCTION_TABLE[$12](HEAP32[$3+ -4>>2],$3+$14|0)|0;$17=$3;$3=HEAP32[$3>>2];HEAP32[$17>>2]=($3&-16711936)+($6&-16711936)&-16711936|($3&16711935)+($6&16711935)&16711935;$5=$5+1|0;if(($8|0)!=($5|0)){continue}break}}$9=$9+1|0;$11=$15&$9?$11:($16<<2)+$11|0;$7=($8<<2)+$7|0;if(($2|0)!=($9|0)){continue}break}break label$2}__assert_fail(182227,182179,368,182206);abort()}__assert_fail(182159,182179,367,182206);abort()}$5=HEAP32[$0+4>>2];if(!(($3|0)!=($4|0)|($5|0)<1)){$4=$2-$1|0;$5=Math_imul($4,($8+(1<<$5)|0)+ -1>>>$5|0)<<2;$4=((Math_imul($4,$8)<<2)+$3|0)-$5|0;$5=memmove($4,$3,$5);$9=HEAP32[$0+16>>2];$7=HEAP32[$0+8>>2];$6=HEAP32[$0+4>>2];$0=8>>>$6|0;if(($0|0)<=7){if(($7|0)<1){break label$1}$11=-1<<$0^-1;$8=-1<<$6^-1;while(1){$6=0;$5=0;while(1){if(!($6&$8)){$5=HEAPU8[$4+1|0];$4=$4+4|0}HEAP32[$3>>2]=HEAP32[$9+(($5&$11)<<2)>>2];$5=$5>>>$0|0;$3=$3+4|0;$6=$6+1|0;if(($7|0)!=($6|0)){continue}break}$1=$1+1|0;if(($2|0)!=($1|0)){continue}break}break label$1}FUNCTION_TABLE[HEAP32[283249]]($5,$9,$3,$1,$2,$7);break label$1}$0=HEAP32[$0+16>>2];$7=8>>>$5|0;if(($7|0)<=7){if(($8|0)<1){break label$1}$9=-1<<$7^-1;$11=-1<<$5^-1;while(1){$6=0;$5=0;while(1){if(!($6&$11)){$5=HEAPU8[$3+1|0];$3=$3+4|0}HEAP32[$4>>2]=HEAP32[$0+(($5&$9)<<2)>>2];$5=$5>>>$7|0;$4=$4+4|0;$6=$6+1|0;if(($8|0)!=($6|0)){continue}break}$1=$1+1|0;if(($2|0)!=($1|0)){continue}break}break label$1}FUNCTION_TABLE[HEAP32[283249]]($3,$0,$4,$1,$2,$8);break label$1}$3=HEAP32[$0+4>>2];$6=1<<$3;$11=$6+ -1|0;$9=$11+$8>>>$3|0;$0=HEAP32[$0+16>>2]+(Math_imul($9,$1>>$3)<<2)|0;$3=$8&0-$6;$7=$8-$3|0;if(($3|0)>0){$14=$3<<2;while(1){HEAP8[$10+10|0]=0;HEAP16[$10+8>>1]=0;$12=$4+$14|0;$3=$4;$5=$0;while(1){$13=HEAP32[$5>>2];HEAP8[$10+8|0]=$13;HEAP8[$10+10|0]=$13>>>16;HEAP8[$10+9|0]=$13>>>8;FUNCTION_TABLE[HEAP32[283248]]($10+8|0,$3,$6);$5=$5+4|0;$3=($6<<2)+$3|0;if($3>>>0<$12>>>0){continue}break}if($3>>>0<($8<<2)+$4>>>0){$4=HEAP32[$5>>2];HEAP8[$10+8|0]=$4;HEAP8[$10+10|0]=$4>>>16;HEAP8[$10+9|0]=$4>>>8;FUNCTION_TABLE[HEAP32[283248]]($10+8|0,$3,$7);$3=($7<<2)+$3|0}$4=$3;$1=$1+1|0;$0=$11&$1?$0:($9<<2)+$0|0;if(($1|0)!=($2|0)){continue}break}break label$1}$5=($8|0)<1;$6=$7<<2;while(1){HEAP8[$10+10|0]=0;HEAP16[$10+8>>1]=0;if(!$5){$3=HEAP32[$0>>2];HEAP8[$10+8|0]=$3;HEAP8[$10+10|0]=$3>>>16;HEAP8[$10+9|0]=$3>>>8;FUNCTION_TABLE[HEAP32[283248]]($10+8|0,$4,$7);$4=$4+$6|0}$1=$1+1|0;$0=$11&$1?$0:($9<<2)+$0|0;if(($1|0)!=($2|0)){continue}break}break label$1}while(1){$5=HEAP32[$7>>2];$6=HEAP32[($3<<2)+$7>>2];HEAP32[$7>>2]=($5&-16711936)+($6&-16711936)&-16711936|($5&16711935)+($6&16711935)&16711935;$7=($8<<2)+$7|0;$9=$9+1|0;if(($9|0)!=($2|0)){continue}break}}if(HEAP32[$0+12>>2]==($2|0)){break label$1}$0=$8<<2;memcpy($4-$0|0,(Math_imul($8,($1^-1)+$2|0)<<2)+$4|0,$0)}global$0=$10+16|0}function dmGameObject__Script_Animate_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0;$1=global$0-240|0;global$0=$1;$7=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;dmScript__GetInstance_28lua_State__29($0);$2=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[145531],21457);lua_settop($0,-2);$2=HEAP32[$2+4>>2];HEAP32[$1+232>>2]=0;HEAP32[$1+236>>2]=0;HEAP32[$1+224>>2]=0;HEAP32[$1+228>>2]=0;HEAP32[$1+216>>2]=0;HEAP32[$1+220>>2]=0;HEAP32[$1+208>>2]=0;HEAP32[$1+212>>2]=0;dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29($0,$1+208|0);HEAP32[$1+200>>2]=0;HEAP32[$1+204>>2]=0;HEAP32[$1+192>>2]=0;HEAP32[$1+196>>2]=0;HEAP32[$1+184>>2]=0;HEAP32[$1+188>>2]=0;HEAP32[$1+176>>2]=0;HEAP32[$1+180>>2]=0;dmScript__ResolveURL_28lua_State__2c_20int_2c_20dmMessage__URL__2c_20dmMessage__URL__29($0,1,$1+176|0,$1+208|0);$8=HEAP32[HEAP32[$2+80>>2]+8>>2];$2=$8;label$2:{if(!$2){break label$2}$2=HEAP32[$2>>2];if(!$2){break label$2}$3=HEAP32[$2+4224>>2];$5=HEAP32[$2+4228>>2]}if(($3|0)!=HEAP32[$1+176>>2]|($5|0)!=HEAP32[$1+180>>2]){luaL_error($0,19277,0)}label$4:{if(lua_isstring($0,2)){$3=dmHashString64(lua_tolstring($0,2,0));$5=i64toi32_i32$HIGH_BITS;break label$4}$3=dmScript__CheckHash_28lua_State__2c_20int_29($0,2);$5=i64toi32_i32$HIGH_BITS}$10=dmGameObject__GetInstanceFromIdentifier_28dmGameObject__CollectionHandle__2c_20unsigned_20long_20long_29($8,HEAP32[$1+192>>2],HEAP32[$1+196>>2]);label$6:{if(!$10){HEAP32[$1>>2]=dmHashReverseSafe64(HEAP32[$1+192>>2],HEAP32[$1+196>>2]);$2=luaL_error($0,18466,$1);break label$6}$11=luaL_checkinteger($0,3);if(($11|0)>=7){$2=luaL_error($0,19343,0);break label$6}$2=$1+136|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;$6=$2;if(dmGameObject__LuaToVar_28lua_State__2c_20int_2c_20dmGameObject__PropertyVar__29($0,4,$2)){$2=luaL_error($0,19392,0);break label$6}label$11:{label$12:{label$13:{if(lua_isnumber($0,5)){$9=luaL_checkinteger($0,5);if(($9|0)>=42){break label$12}$2=0;break label$13}if(!dmScript__IsVector_28lua_State__2c_20int_29($0,5)){break label$11}$13=dmScript__CheckVector_28lua_State__2c_20int_29($0,5);lua_pushvalue($0,5);$14=113;$9=41;$12=dmScript__Ref_28lua_State__2c_20int_29($0,-1e4);$2=$0}$15=Math_fround(luaL_checknumber($0,6));$4=0;label$15:{if(($7|0)<7){break label$15}$16=Math_fround(luaL_checknumber($0,7));$4=0;if(($7|0)==7){break label$15}$17=(lua_type($0,8)|0)!=6;$4=0;if($17){break label$15}$18=114;$4=dmScript__CreateCallback_28lua_State__2c_20int_29($0,8)}HEAP32[$1+104>>2]=$12;HEAP32[$1+124>>2]=$2;HEAP32[$1+120>>2]=$14;$2=HEAP32[$1+124>>2];HEAP32[$1+96>>2]=HEAP32[$1+120>>2];HEAP32[$1+100>>2]=$2;HEAP32[$1+116>>2]=$13;HEAP32[$1+112>>2]=$9;HEAP32[$1+128>>2]=$12;$2=HEAP32[$1+116>>2];HEAP32[$1+88>>2]=HEAP32[$1+112>>2];HEAP32[$1+92>>2]=$2;label$16:{label$17:{$2=dmGameObject__Animate_28dmGameObject__CollectionHandle__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20dmGameObject__PropertyVar__2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($8,$10,HEAP32[$1+200>>2],HEAP32[$1+204>>2],$3,$5,$11,$6,$1+88|0,$15,$16,$18,$4);$6=$2+9|0;if($6>>>0>9){break label$17}label$18:{switch($6-1|0){case 7:lua_pushlstring($0,18789,0);dmScript__PushURL_28lua_State__2c_20dmMessage__URL_20const__29($0,$1+176|0);lua_concat($0,2);$2=lua_tolstring($0,-1,0);lua_settop($0,-2);HEAP32[$1+36>>2]=dmHashReverseSafe64($3,$5);HEAP32[$1+32>>2]=$2;$2=luaL_error($0,18555,$1+32|0);break label$6;case 4:case 5:lua_pushlstring($0,18789,0);dmScript__PushURL_28lua_State__2c_20dmMessage__URL_20const__29($0,$1+176|0);lua_concat($0,2);$2=lua_tolstring($0,-1,0);lua_settop($0,-2);$3=dmHashReverseSafe64($3,$5);HEAP32[$1+52>>2]=$2;HEAP32[$1+48>>2]=$3;$2=luaL_error($0,19539,$1+48|0);break label$6;case 3:$2=dmHashReverseSafe64(HEAP32[$1+200>>2],HEAP32[$1+204>>2]);HEAP32[$1+68>>2]=lua_tolstring($0,1,0);HEAP32[$1+64>>2]=$2;$2=luaL_error($0,18599,$1- -64|0);break label$6;case 8:break label$16;case 0:case 1:case 2:case 6:break label$17;default:break label$18}}lua_pushlstring($0,18789,0);dmScript__PushURL_28lua_State__2c_20dmMessage__URL_20const__29($0,$1+176|0);lua_concat($0,2);$2=lua_tolstring($0,-1,0);lua_settop($0,-2);$3=dmHashReverseSafe64($3,$5);HEAP32[$1+84>>2]=$2;HEAP32[$1+80>>2]=$3;$2=luaL_error($0,19584,$1+80|0);break label$6}HEAP32[$1+16>>2]=$2;$2=luaL_error($0,19638,$1+16|0);break label$6}$2=0;if(($7|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$6}__assert_fail(19675,19221,1482,19696);abort()}$2=luaL_error($0,19457,0);break label$6}$2=luaL_error($0,19481,0)}global$0=$1+240|0;return $2|0}function dmGui__NewScene_28dmGui__Context__2c_20dmGui__NewSceneParams_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$8=global$0-16|0;global$0=$8;$5=HEAP32[$0>>2];$2=$5;$9=HEAP32[$2+8>>2]-HEAP32[$2+12>>2]>>4;$2=memset(lua_newuserdata($2,408),0,408);HEAP32[$2+8>>2]=-2;HEAP32[$2>>2]=-2;HEAP32[$2+4>>2]=-2;$7=$0+44|0;$3=HEAP32[$7>>2];$6=$0+48|0;$4=HEAP32[$6>>2];label$1:{label$2:{if(($3|0)==($4|0)){if(HEAP8[$0+52|0]&1){break label$2}$3=$0+40|0;dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(($4-HEAP32[$3>>2]>>2)+32|0,4,$3,$6,$7);$4=HEAP32[$6>>2];$3=HEAP32[$7>>2]}if(($3|0)==($4|0)){break label$1}HEAP32[$0+44>>2]=$3+4;HEAP32[$3>>2]=$2;lua_pushvalue($5,-1);HEAP32[$2>>2]=dmScript__Ref_28lua_State__2c_20int_29($5,-1e4);lua_createtable($5,0,0);HEAP32[$2+8>>2]=dmScript__Ref_28lua_State__2c_20int_29($5,-1e4);lua_createtable($5,0,0);$3=dmScript__Ref_28lua_State__2c_20int_29($5,-1e4);HEAP32[$2+16>>2]=0;HEAP32[$2+12>>2]=$0;HEAP32[$2+4>>2]=$3;HEAP32[$2+176>>2]=HEAP32[$1+32>>2];HEAP32[$2+212>>2]=HEAP32[$1+36>>2];if(HEAP8[$2+44|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$1>>2],576,$2+32|0,$2+40|0,$2+36|0);$3=HEAPU16[$2+24>>1];$4=HEAPU16[$1>>1];label$4:{if($3>>>0<=$4>>>0){$7=HEAP32[$2+20>>2];$6=dlmalloc($4<<1);HEAP32[$2+20>>2]=$6;$6=memcpy($6,$7,$3<<1);HEAP16[$2+24>>1]=$4;if($3>>>0<$4>>>0){while(1){HEAP16[$6+($3<<1)>>1]=$3;$3=$3+1|0;if(($4|0)!=($3|0)){continue}break}}dlfree($7);if(HEAP8[$2+60|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$1+4>>2],72,$2+48|0,$2+56|0,$2+52|0);if(HEAP8[$2+76|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$1+4>>2],20,$2- -64|0,$2+72|0,$2+68|0);$3=HEAP32[$1+8>>2];dmHashTable_unsigned_20long_20long_2c_20dmGui__TextureInfo___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+112|0,$3<<1,$3);$3=HEAP32[$1+8>>2];dmHashTable_unsigned_20long_20long_2c_20dmGui__DynamicTexture___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+144|0,$3<<1,$3);$3=HEAP32[$1+12>>2];dmHashTable_unsigned_20long_20long_2c_20void____SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+80|0,$3<<1,$3);$3=HEAP32[$1+16>>2];dmHashTable_unsigned_20long_20long_2c_20void____SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+180|0,$3<<1,$3);$3=HEAP32[$1+20>>2];dmHashTable_unsigned_20long_20long_2c_20dmParticle__Prototype____SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+216|0,$3<<1,$3);if(HEAP8[$2+260|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$1+24>>2],12,$2+248|0,$2+256|0,$2+252|0);$3=$2+264|0;$4=HEAP32[$1+28>>2];dmHashTable_unsigned_20long_20long_2c_20unsigned_20short___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($3,$4<<1,$4);if(HEAP8[$2+308|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(1,8,$2+296|0,$2+304|0,$2+300|0);$4=HEAP32[$1+60>>2];HEAP32[$2+356>>2]=0;HEAP32[$2+336>>2]=$4;$4=HEAP32[$1+40>>2];HEAP32[$2+364>>2]=-1;HEAP32[$2+368>>2]=0;HEAP32[$2+360>>2]=$4;HEAP32[$2+376>>2]=HEAP32[$0+28>>2];HEAP32[$2+380>>2]=HEAP32[$0+32>>2];HEAP32[$2+388>>2]=HEAP32[$1+44>>2];HEAP32[$2+392>>2]=HEAP32[$1+48>>2];HEAP32[$2+396>>2]=HEAP32[$1+52>>2];HEAP32[$2+400>>2]=HEAP32[$1+56>>2];HEAP32[$2+384>>2]=HEAP32[$1+64>>2];$0=HEAP32[283394];$1=HEAP32[283395];$4=HEAPU16[$2+372>>1];HEAP16[$2+372>>1]=$4+1;HEAP16[$8+14>>1]=$4;dmHashTable_unsigned_20long_20long_2c_20unsigned_20short___Put_28unsigned_20long_20long_2c_20unsigned_20short_20const__29($3,$0,$1,$8+14|0);$0=HEAP32[283397];$1=$0;$3=HEAP32[283396];HEAP32[$2+328>>2]=$3;HEAP32[$2+332>>2]=$1;$0=HEAP32[$2+296>>2];HEAP32[$2+300>>2]=$0;if(($0|0)==HEAP32[$2+304>>2]){break label$1}HEAP32[$2+300>>2]=$0+8;HEAP32[$0>>2]=$3;HEAP32[$0+4>>2]=$1;if(HEAP8[$2+324|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(0,4,$2+312|0,$2+320|0,$2+316|0);lua_getfield($5,-1e4,199263);lua_setmetatable($5,-2);dmScript__SetInstance_28lua_State__29($5);dmScript__InitializeInstance_28dmScript__ScriptWorld__29(HEAP32[$2+384>>2]);$0=HEAP32[$5+8>>2];HEAP32[$0+8>>2]=0;HEAP32[$5+8>>2]=$0+16;dmScript__SetInstance_28lua_State__29($5);if(HEAP32[$5+8>>2]-HEAP32[$5+12>>2]>>4!=($9|0)){break label$4}global$0=$8+16|0;return $2}__assert_fail(202197,201674,109,202185);abort()}__assert_fail(199281,199220,422,199302);abort()}__assert_fail(202110,201431,444,202185);abort()}__assert_fail(201568,201431,484,201592);abort()}function __addtf3($0,$1,$2,$3,$4,$5,$6,$7,$8){var $9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0,$20=0;$11=global$0-112|0;global$0=$11;$12=$7;$13=$8&2147483647;$10=$2+ -1|0;$9=$1+ -1|0;if($9>>>0<4294967295){$10=$10+1|0}$14=$9;$16=($9|0)==-1&($10|0)==-1;$15=$4&2147483647;$9=$15;$17=$3;$14=($2|0)==($10|0)&$14>>>0<$1>>>0|$10>>>0<$2>>>0;$10=$3+$14|0;if($10>>>0<$14>>>0){$9=$9+1|0}$10=$10+ -1|0;$9=$9+ -1|0;$9=$10>>>0<4294967295?$9+1|0:$9;label$1:{label$2:{if(!(($10|0)==-1&($9|0)==2147418111?$16:($9|0)==2147418111&$10>>>0>4294967295|$9>>>0>2147418111)){$10=$6+ -1|0;$9=$5+ -1|0;if($9>>>0<4294967295){$10=$10+1|0}$14=$9;$16=($9|0)!=-1|($10|0)!=-1;$9=$13;$14=($6|0)==($10|0)&$14>>>0<$5>>>0|$10>>>0<$6>>>0;$10=$14+$12|0;if($10>>>0<$14>>>0){$9=$9+1|0}$10=$10+ -1|0;$9=$9+ -1|0;$9=$10>>>0<4294967295?$9+1|0:$9;if(($10|0)==-1&($9|0)==2147418111?$16:($9|0)==2147418111&$10>>>0<4294967295|$9>>>0<2147418111){break label$2}}if(!(!$17&($15|0)==2147418112?!($1|$2):($15|0)==2147418112&$17>>>0<0|$15>>>0<2147418112)){$7=$3;$8=$4|32768;$5=$1;$6=$2;break label$1}if(!(!$12&($13|0)==2147418112?!($5|$6):($13|0)==2147418112&$12>>>0<0|$13>>>0<2147418112)){$8=$8|32768;break label$1}if(!($1|$17|($15^2147418112|$2))){$9=$3;$3=!($1^$5|$3^$7|($2^$6|$4^$8^-2147483648));$7=$3?0:$9;$8=$3?2147450880:$4;$5=$3?0:$1;$6=$3?0:$2;break label$1}if(!($5|$12|($13^2147418112|$6))){break label$1}if(!($1|$17|($2|$15))){if($5|$12|($6|$13)){break label$1}$5=$1&$5;$6=$2&$6;$7=$3&$7;$8=$4&$8;break label$1}if($5|$12|($6|$13)){break label$2}$5=$1;$6=$2;$7=$3;$8=$4;break label$1}$16=($12|0)==($17|0)&($13|0)==($15|0)?($2|0)==($6|0)&$5>>>0>$1>>>0|$6>>>0>$2>>>0:($13|0)==($15|0)&$12>>>0>$17>>>0|$13>>>0>$15>>>0;$12=$16;$19=$12?$5:$1;$10=$12?$6:$2;$9=$12?$8:$4;$17=$9;$14=$12?$7:$3;$18=$14;$12=$9&65535;$8=$16?$4:$8;$15=$8;$4=$16?$3:$7;$20=$8>>>16&32767;$13=$9>>>16&32767;if(!$13){$3=!($12|$18);$7=$3<<6;$8=Math_clz32($3?$19:$18)+32|0;$3=Math_clz32($3?$10:$12);$3=$7+(($3|0)==32?$8:$3)|0;__ashlti3($11+96|0,$19,$10,$18,$12,$3+ -15|0);$18=HEAP32[$11+104>>2];$12=HEAP32[$11+108>>2];$19=HEAP32[$11+96>>2];$13=16-$3|0;$10=HEAP32[$11+100>>2]}$5=$16?$1:$5;$6=$16?$2:$6;$1=$4;$3=$15&65535;if($20){$2=$1}else{$8=$1;$7=!($1|$3);$2=$7<<6;$9=Math_clz32($7?$5:$1)+32|0;$1=Math_clz32($7?$6:$3);$1=$2+(($1|0)==32?$9:$1)|0;__ashlti3($11+80|0,$5,$6,$8,$3,$1+ -15|0);$20=16-$1|0;$5=HEAP32[$11+80>>2];$6=HEAP32[$11+84>>2];$2=HEAP32[$11+88>>2];$3=HEAP32[$11+92>>2]}$9=$3<<3|$2>>>29;$7=$2<<3|$6>>>29;$8=$9|524288;$2=$18;$3=$12<<3|$2>>>29;$1=$2<<3;$2=$3;$3=$10>>>29|$1;$16=$2;$14=$4^$14;$15=$15^$17;$1=$5;$9=$6<<3|$1>>>29;$2=$1<<3;$1=$9;$5=$13-$20|0;$4=$2;label$11:{if(!$5){break label$11}if($5>>>0>127){$7=0;$8=0;$9=0;$4=1;break label$11}__ashlti3($11- -64|0,$2,$1,$7,$8,128-$5|0);__lshrti3($11+48|0,$2,$1,$7,$8,$5);$7=HEAP32[$11+56>>2];$8=HEAP32[$11+60>>2];$9=HEAP32[$11+52>>2];$4=HEAP32[$11+48>>2]|((HEAP32[$11+64>>2]|HEAP32[$11+72>>2])!=0|(HEAP32[$11+68>>2]|HEAP32[$11+76>>2])!=0)}$12=$9;$16=$16|524288;$1=$19;$9=$10<<3|$1>>>29;$5=$1<<3;label$13:{if(($15|0)<-1?1:($15|0)<=-1?$14>>>0>4294967295?0:1:0){$6=$5;$2=$4;$1=$5-$2|0;$10=$3-$7|0;$4=($9|0)==($12|0)&$5>>>0<$2>>>0|$9>>>0<$12>>>0;$5=$10-$4|0;$2=$9-(($6>>>0<$2>>>0)+$12|0)|0;$6=($16-(($3>>>0<$7>>>0)+$8|0)|0)-($10>>>0<$4>>>0)|0;if(!($1|$5|($2|$6))){$5=0;$6=0;$7=0;$8=0;break label$1}if(($6|0)==524287&$5>>>0>4294967295|$6>>>0>524287){break label$13}$7=$1;$4=!($5|$6);$3=$4<<6;$8=Math_clz32($4?$1:$5)+32|0;$1=Math_clz32($4?$2:$6);$1=$3+(($1|0)==32?$8:$1)|0;$1=$1+ -12|0;__ashlti3($11+32|0,$7,$2,$5,$6,$1);$13=$13-$1|0;$5=HEAP32[$11+40>>2];$6=HEAP32[$11+44>>2];$1=HEAP32[$11+32>>2];$2=HEAP32[$11+36>>2];break label$13}$9=$9+$12|0;$1=$4;$2=$1+$5|0;if($2>>>0<$1>>>0){$9=$9+1|0}$1=$2;$2=$9;$5=($12|0)==($2|0)&$1>>>0<$4>>>0|$2>>>0<$12>>>0;$10=$8+$16|0;$4=$3+$7|0;if($4>>>0<$3>>>0){$10=$10+1|0}$5=$5+$4|0;$3=$10;$3=$5>>>0<$4>>>0?$3+1|0:$3;$6=$3;if(!($3&1048576)){break label$13}$1=$1&1|(($2&1)<<31|$1>>>1);$2=$5<<31|$2>>>1;$13=$13+1|0;$5=($6&1)<<31|$5>>>1;$6=$6>>>1|0}$7=0;$14=$17&-2147483648;if(($13|0)>=32767){$8=$14|2147418112;$5=0;$6=0;break label$1}$4=0;label$17:{if(($13|0)>0){$4=$13;break label$17}__ashlti3($11+16|0,$1,$2,$5,$6,$13+127|0);__lshrti3($11,$1,$2,$5,$6,1-$13|0);$1=HEAP32[$11>>2]|((HEAP32[$11+16>>2]|HEAP32[$11+24>>2])!=0|(HEAP32[$11+20>>2]|HEAP32[$11+28>>2])!=0);$2=HEAP32[$11+4>>2];$5=HEAP32[$11+8>>2];$6=HEAP32[$11+12>>2]}$12=($2&7)<<29|$1>>>3;$3=$5<<29|$2>>>3;$9=$3;$10=$1&7;$2=$10>>>0>4;$1=$2+$12|0;if($1>>>0<$2>>>0){$9=$9+1|0}$17=$1;$2=$1;$1=$9;$8=($3|0)==($1|0)&$2>>>0<$12>>>0|$1>>>0<$3>>>0;$3=$14|$6>>>3&65535;$9=$4<<16;$2=($6&7)<<29|$5>>>3|$7;$4=$2+$8|0;$9=$3|$9;$9=$4>>>0<$2>>>0?$9+1|0:$9;$3=($10|0)==4;$2=$3?$17&1:0;$10=$9;$8=$4;$3=0+$1|0;$1=$2;$4=$1+$17|0;if($4>>>0<$1>>>0){$3=$3+1|0}$5=$4;$1=$5;$6=$3;$2=($7|0)==($3|0)&$1>>>0<$2>>>0|$3>>>0<$7>>>0;$1=$8+$2|0;if($1>>>0<$2>>>0){$10=$10+1|0}$7=$1;$8=$10}HEAP32[$0>>2]=$5;HEAP32[$0+4>>2]=$6;HEAP32[$0+8>>2]=$7;HEAP32[$0+12>>2]=$8;global$0=$11+112|0}function VP8GetHeaders($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;label$1:{if(!$0){break label$1}HEAP32[$0>>2]=0;HEAP32[$0+8>>2]=175514;if(!$1){HEAP32[$0>>2]=2;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175517;break label$1}$7=HEAP32[$1+60>>2];if($7>>>0<=3){HEAP32[$0>>2]=7;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175554;break label$1}$3=HEAP32[$1+64>>2];$4=HEAPU8[$3+1|0];$5=HEAPU8[$3+2|0];$2=HEAPU8[$3|0];$6=$2>>>4&1;HEAP8[$0+42|0]=$6;$8=$2>>>1&7;HEAP8[$0+41|0]=$8;$9=($2^-1)&1;HEAP8[$0+40|0]=$9;$2=($2|$4<<8|$5<<16)>>>5|0;HEAP32[$0+44>>2]=$2;if($8>>>0>=4){HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175572;break label$1}if(!$6){HEAP32[$0>>2]=4;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175603;break label$1}$5=$7+ -3|0;$4=$3+3|0;if($9){if($5>>>0<=6){HEAP32[$0>>2]=7;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175626;break label$1}if(!(HEAPU8[$3+5|0]==42?!(HEAPU8[$4|0]!=157|HEAPU8[$3+4|0]!=1):0)){HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175654;break label$1}$2=HEAPU8[$3+6|0]|HEAPU8[$3+7|0]<<8&16128;HEAP16[$0+48>>1]=$2;HEAP8[$0+52|0]=HEAPU8[$3+7|0]>>>6;$4=HEAPU8[$3+8|0]|HEAPU8[$3+9|0]<<8&16128;HEAP16[$0+50>>1]=$4;$5=HEAPU8[$3+9|0];HEAP32[$0+292>>2]=$4+15>>>4;HEAP32[$0+288>>2]=$2+15>>>4;HEAP8[$0+53|0]=$5>>>6;HEAP32[$1+92>>2]=0;HEAP32[$1+4>>2]=$4;HEAP32[$1>>2]=$2;HEAP32[$1+84>>2]=0;HEAP32[$1+88>>2]=$4;HEAP32[$1+80>>2]=$2;HEAP32[$1+72>>2]=0;HEAP32[$1+76>>2]=0;HEAP32[$1+16>>2]=$4;HEAP32[$1+12>>2]=$2;HEAP16[$0+904>>1]=-1;HEAP8[$0+906|0]=-1;HEAP32[$0+120>>2]=0;HEAP32[$0+112>>2]=1;HEAP32[$0+116>>2]=0;HEAP32[$0+104>>2]=0;HEAP32[$0+108>>2]=0;$5=$7+ -10|0;$4=$3+10|0;$2=HEAP32[$0+44>>2]}label$6:{if($2>>>0>$5>>>0){$2=0;if(HEAP32[$0>>2]){break label$6}HEAP32[$0>>2]=7;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175668;break label$1}$3=$0+12|0;VP8InitBitReader($3,$4,$2);$6=HEAP32[$0+44>>2];if(HEAPU8[$0+40|0]){HEAP8[$0+54|0]=VP8GetValue($3,1);HEAP8[$0+55|0]=VP8GetValue($3,1)}$1=VP8GetValue($3,1);HEAP32[$0+104>>2]=$1;label$14:{if($1){HEAP32[$0+108>>2]=VP8GetValue($3,1);if(VP8GetValue($3,1)){HEAP32[$0+112>>2]=VP8GetValue($3,1);$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,7)}else{$2=0}HEAP8[$1+116|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,7)}else{$2=0}HEAP8[$1+117|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,7)}else{$2=0}HEAP8[$1+118|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,7)}else{$2=0}HEAP8[$1+119|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,6)}else{$2=0}HEAP8[$1+120|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,6)}else{$2=0}HEAP8[$1+121|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,6)}else{$2=0}HEAP8[$1+122|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,6)}else{$2=0}HEAP8[$1+123|0]=$2}if(!HEAP32[$0+108>>2]){break label$14}$1=$0;if(VP8GetValue($3,1)){$2=VP8GetValue($3,8)}else{$2=255}HEAP8[$1+904|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetValue($3,8)}else{$2=255}HEAP8[$1+905|0]=$2;$1=$0;$7=!VP8GetValue($3,1);$2=255;label$37:{if($7){break label$37}$2=VP8GetValue($3,8)}HEAP8[$1+906|0]=$2;break label$14}HEAP32[$0+108>>2]=0}if(HEAP32[$0+36>>2]){$2=0;if(HEAP32[$0>>2]){break label$6}HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175689;break label$1}HEAP32[$0+56>>2]=VP8GetValue($3,1);HEAP32[$0+60>>2]=VP8GetValue($3,6);HEAP32[$0- -64>>2]=VP8GetValue($3,3);$1=VP8GetValue($3,1);HEAP32[$0+68>>2]=$1;label$39:{if(!$1){break label$39}if(!VP8GetValue($3,1)){break label$39}if(VP8GetValue($3,1)){HEAP32[$0+72>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+76>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+80>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+84>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+88>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+92>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+96>>2]=VP8GetSignedValue($3,6)}if(!VP8GetValue($3,1)){break label$39}HEAP32[$0+100>>2]=VP8GetSignedValue($3,6)}$1=$0;if(HEAP32[$0+60>>2]){$2=HEAP32[$0+56>>2]?1:2}else{$2=0}HEAP32[$1+2308>>2]=$2;if(HEAP32[$0+36>>2]){$2=0;if(HEAP32[$0>>2]){break label$6}HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175717;break label$1}$1=1<>2]=$1;$8=7;label$49:{$2=$5-$6|0;$7=$1+ -1|0;$1=Math_imul($7,3);if($2>>>0>=$1>>>0){$9=$4+$5|0;$2=$2-$1|0;$4=$4+$6|0;$1=$1+$4|0;if($7){$5=0;while(1){$6=HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|HEAPU8[$4+2|0]<<16;$6=$6>>>0>$2>>>0?$2:$6;VP8InitBitReader((Math_imul($5,28)+$0|0)+316|0,$1,$6);$2=$2-$6|0;$1=$1+$6|0;$4=$4+3|0;$5=$5+1|0;if(($7|0)!=($5|0)){continue}break}}VP8InitBitReader((Math_imul($7,28)+$0|0)+316|0,$1,$2);$8=5;if($1>>>0<$9>>>0){break label$49}}$2=0;if(HEAP32[$0>>2]){break label$6}HEAP32[$0>>2]=$8;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175744;break label$1}VP8ParseQuant($0);if(!HEAPU8[$0+40|0]){$2=0;if(HEAP32[$0>>2]){break label$6}HEAP32[$0>>2]=4;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175768;break label$1}$2=1;VP8GetValue($3,1);VP8ParseProba($3,$0);HEAP32[$0+4>>2]=1}return $2}return 0}function dmGameSystem__Physics_GetJointProperties_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$2=global$0-112|0;global$0=$2;$6=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($2+96|0,$0,1);$1=dmScript__CheckHashOrString_28lua_State__2c_20int_29($0,2);$4=i64toi32_i32$HIGH_BITS;$5=HEAP32[HEAP32[dmGameSystem__CheckGoInstance_28lua_State__29($0)+80>>2]+8>>2];HEAP32[$2+92>>2]=0;HEAP32[$2+88>>2]=0;HEAP32[$2+56>>2]=0;HEAP32[$2+60>>2]=0;HEAP32[$2+48>>2]=0;HEAP32[$2+52>>2]=0;HEAP32[$2+40>>2]=0;HEAP32[$2+44>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$5,67041,$2+92|0,$2+32|0,$2+88|0);$5=dmGameSystem__GetJointParams_28void__2c_20void__2c_20unsigned_20long_20long_2c_20dmPhysics__JointType__2c_20dmPhysics__ConnectJointParams__29(HEAP32[$2+88>>2],HEAP32[$2+92>>2],$1,$4,$2+84|0,$2+32|0);label$1:{if($5){HEAP32[$2>>2]=dmHashReverseSafe64($1,$4);HEAP32[$2+8>>2]=$5;HEAP32[$2+4>>2]=HEAP32[($5<<2)+528176>>2];$7=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($6,68772,$2);break label$1}lua_createtable($0,0,0);$1=HEAPU8[$2+32|0];$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68100);$1=HEAP32[$2+84>>2];if($1>>>0>3){break label$1}label$3:{label$4:{switch($1-1|0){default:$3=+HEAPF32[$2+36>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68118);$3=+HEAPF32[$2+40>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68125);$3=+HEAPF32[$2+44>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68135);break label$3;case 0:$3=+HEAPF32[$2+36>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68143);break label$3;case 1:$3=+HEAPF32[$2+44>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68154);$3=+HEAPF32[$2+48>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68170);$3=+HEAPF32[$2+52>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68182);$3=+HEAPF32[$2+56>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68194);$3=+HEAPF32[$2+60>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68211);$1=HEAPU8[$2- -64|0];$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68223);$1=HEAPU8[$2+65|0];$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68236);$3=+HEAPF32[$2+36>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68819);$3=+HEAPF32[$2+40>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68831);break label$3;case 2:break label$4}}HEAP32[$2+24>>2]=HEAP32[$2+52>>2];$1=HEAP32[$2+48>>2];HEAP32[$2+16>>2]=HEAP32[$2+44>>2];HEAP32[$2+20>>2]=$1;dmScript__PushVector3_28lua_State__2c_20Vectormath__Aos__Vector3_20const__29($0,$2+16|0);lua_setfield($0,-2,68318);$3=+HEAPF32[$2+56>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68154);$1=HEAPU8[$2+60|0];$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68223);$3=+HEAPF32[$2- -64>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68331);$3=+HEAPF32[$2+68>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68349);$1=HEAPU8[$2+72|0];$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68236);$3=+HEAPF32[$2+76>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68367);$3=+HEAPF32[$2+80>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68211);$3=+HEAPF32[$2+36>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68843);$3=+HEAPF32[$2+40>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68831)}$7=1}dmScript__LuaStackCheck___LuaStackCheck_28_29($6);global$0=$2+112|0;return $7|0}function UpsampleArgbLinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$10=HEAPU8[$5|0];$11=HEAPU8[$4|0];$12=HEAPU8[$3|0];$17=HEAPU8[$2|0];$16=HEAPU8[$0|0];HEAP8[$6|0]=255;$13=$11|$10<<16;$10=$17|$12<<16;$12=($13+Math_imul($10,3)|0)+131074|0;$17=$12>>>2&255;$11=Math_imul($16,19077)>>>8|0;$16=(Math_imul($17,33050)>>>8|0)+$11|0;$9=$16+ -17685|0;HEAP8[$6+3|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$12=$12>>>18&255;$16=$11+(Math_imul($12,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$6+1|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$11=$11-(Math_imul($17,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$6+2|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255;if($1){$11=HEAPU8[$1|0];HEAP8[$7|0]=255;$11=Math_imul($11,19077)>>>8|0;$12=(Math_imul($13,3)+$10|0)+131074|0;$17=$12>>>2&255;$16=$11+(Math_imul($17,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$7+3|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$12=$12>>>18&255;$16=$11+(Math_imul($12,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$7+1|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$11=$11-(Math_imul($17,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$7+2|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255}$16=$8+ -1|0;label$3:{if(($8|0)<3){$11=$13;$12=$10;break label$3}$11=$16>>1;$26=($11|0)>1?$11:1;$17=1;while(1){$24=$17<<1;$19=$24+ -1|0;$14=HEAPU8[$19+$0|0];$12=HEAPU8[$2+$17|0];$18=HEAPU8[$3+$17|0];$11=HEAPU8[$4+$17|0];$23=HEAPU8[$5+$17|0];$25=$19<<2;$9=$25+$6|0;HEAP8[$9|0]=255;$11=$11|$23<<16;$12=$12|$18<<16;$23=$13+$12|0;$18=($11+($23+$10|0)|0)+524296|0;$14=Math_imul($14,19077)>>>8|0;$23=$18+($23<<1)>>>3|0;$20=$23+$10|0;$21=$20>>>1&255;$22=$14+(Math_imul($21,33050)>>>8|0)|0;$15=$22+ -17685|0;HEAP8[$9+3|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<17685?0:255;$20=$20>>>17&255;$22=$14+(Math_imul($20,26149)>>>8|0)|0;$15=$22+ -14234|0;HEAP8[$9+1|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<14234?0:255;$15=$9;$9=$14-(Math_imul($21,6419)>>>8|0)-(Math_imul($20,13320)>>>8)|0;$14=$9+8708|0;HEAP8[$15+2|0]=$14>>>0<16384?$14>>>6|0:($9|0)<-8708?0:255;$14=HEAPU8[$0+$24|0];$20=$17<<3;$9=$20+$6|0;HEAP8[$9|0]=255;$18=$18+($10+$11<<1)>>>3|0;$21=$18+$12|0;$22=$21>>>1&255;$10=Math_imul($14,19077)>>>8|0;$14=(Math_imul($22,33050)>>>8|0)+$10|0;$15=$14+ -17685|0;HEAP8[$9+3|0]=$15>>>0<16384?$15>>>6|0:$14>>>0<17685?0:255;$14=$21>>>17&255;$21=$10+(Math_imul($14,26149)>>>8|0)|0;$15=$21+ -14234|0;HEAP8[$9+1|0]=$15>>>0<16384?$15>>>6|0:$21>>>0<14234?0:255;$15=$9;$10=$10-(Math_imul($22,6419)>>>8|0)-(Math_imul($14,13320)>>>8)|0;$9=$10+8708|0;HEAP8[$15+2|0]=$9>>>0<16384?$9>>>6|0:($10|0)<-8708?0:255;if($1){$9=HEAPU8[$1+$19|0];$10=$7+$25|0;HEAP8[$10|0]=255;$19=$13+$18|0;$18=$19>>>1&255;$13=Math_imul($9,19077)>>>8|0;$9=(Math_imul($18,33050)>>>8|0)+$13|0;$14=$9+ -17685|0;HEAP8[$10+3|0]=$14>>>0<16384?$14>>>6|0:$9>>>0<17685?0:255;$9=$19>>>17&255;$19=$13+(Math_imul($9,26149)>>>8|0)|0;$14=$19+ -14234|0;HEAP8[$10+1|0]=$14>>>0<16384?$14>>>6|0:$19>>>0<14234?0:255;$15=$10;$10=$13-(Math_imul($18,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+2|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255;$13=HEAPU8[$1+$24|0];$10=$7+$20|0;HEAP8[$10|0]=255;$13=Math_imul($13,19077)>>>8|0;$9=$11+$23|0;$24=$9>>>1&255;$19=$13+(Math_imul($24,33050)>>>8|0)|0;$18=$19+ -17685|0;HEAP8[$10+3|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<17685?0:255;$9=$9>>>17&255;$19=$13+(Math_imul($9,26149)>>>8|0)|0;$18=$19+ -14234|0;HEAP8[$10+1|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<14234?0:255;$15=$10;$10=$13-(Math_imul($24,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+2|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255}$9=($17|0)!=($26|0);$17=$17+1|0;$10=$12;$13=$11;if($9){continue}break}}label$7:{if($8&1){break label$7}$2=HEAPU8[$0+$16|0];$3=$16<<2;$0=$3+$6|0;HEAP8[$0|0]=255;$2=Math_imul($2,19077)>>>8|0;$4=(Math_imul($12,3)+$11|0)+131074|0;$5=$4>>>2&255;$6=$2+(Math_imul($5,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$0+3|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:255;$4=$4>>>18&255;$6=$2+(Math_imul($4,26149)>>>8|0)|0;$8=$6+ -14234|0;HEAP8[$0+1|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<14234?0:255;$6=$0;$0=$2-(Math_imul($5,6419)>>>8|0)-(Math_imul($4,13320)>>>8)|0;$2=$0+8708|0;HEAP8[$6+2|0]=$2>>>0<16384?$2>>>6|0:($0|0)<-8708?0:255;if(!$1){break label$7}$1=HEAPU8[$1+$16|0];$0=$3+$7|0;HEAP8[$0|0]=255;$1=Math_imul($1,19077)>>>8|0;$2=(Math_imul($11,3)+$12|0)+131074|0;$3=$2>>>2&255;$4=$1+(Math_imul($3,33050)>>>8|0)|0;$5=$4+ -17685|0;HEAP8[$0+3|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<17685?0:255;$2=$2>>>18&255;$4=$1+(Math_imul($2,26149)>>>8|0)|0;$5=$4+ -14234|0;HEAP8[$0+1|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<14234?0:255;$4=$0;$0=$1-(Math_imul($3,6419)>>>8|0)-(Math_imul($2,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$4+2|0]=$1>>>0<16384?$1>>>6|0:($0|0)<-8708?0:255}return}__assert_fail(182795,182809,100,182920);abort()}function UpsampleRgbaLinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$10=HEAPU8[$5|0];$11=HEAPU8[$4|0];$12=HEAPU8[$3|0];$17=HEAPU8[$2|0];$16=HEAPU8[$0|0];HEAP8[$6+3|0]=255;$13=$11|$10<<16;$10=$17|$12<<16;$12=($13+Math_imul($10,3)|0)+131074|0;$17=$12>>>2&255;$11=Math_imul($16,19077)>>>8|0;$16=(Math_imul($17,33050)>>>8|0)+$11|0;$9=$16+ -17685|0;HEAP8[$6+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$12=$12>>>18&255;$16=$11+(Math_imul($12,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$6|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$11=$11-(Math_imul($17,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$6+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255;if($1){$11=HEAPU8[$1|0];HEAP8[$7+3|0]=255;$11=Math_imul($11,19077)>>>8|0;$12=(Math_imul($13,3)+$10|0)+131074|0;$17=$12>>>2&255;$16=$11+(Math_imul($17,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$7+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$12=$12>>>18&255;$16=$11+(Math_imul($12,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$7|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$11=$11-(Math_imul($17,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$7+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255}$16=$8+ -1|0;label$3:{if(($8|0)<3){$11=$13;$12=$10;break label$3}$11=$16>>1;$26=($11|0)>1?$11:1;$17=1;while(1){$24=$17<<1;$19=$24+ -1|0;$14=HEAPU8[$19+$0|0];$12=HEAPU8[$2+$17|0];$18=HEAPU8[$3+$17|0];$11=HEAPU8[$4+$17|0];$23=HEAPU8[$5+$17|0];$25=$19<<2;$9=$25+$6|0;HEAP8[$9+3|0]=255;$11=$11|$23<<16;$12=$12|$18<<16;$23=$13+$12|0;$18=($11+($23+$10|0)|0)+524296|0;$14=Math_imul($14,19077)>>>8|0;$23=$18+($23<<1)>>>3|0;$20=$23+$10|0;$21=$20>>>1&255;$22=$14+(Math_imul($21,33050)>>>8|0)|0;$15=$22+ -17685|0;HEAP8[$9+2|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<17685?0:255;$20=$20>>>17&255;$22=$14+(Math_imul($20,26149)>>>8|0)|0;$15=$22+ -14234|0;HEAP8[$9|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<14234?0:255;$15=$9;$9=$14-(Math_imul($21,6419)>>>8|0)-(Math_imul($20,13320)>>>8)|0;$14=$9+8708|0;HEAP8[$15+1|0]=$14>>>0<16384?$14>>>6|0:($9|0)<-8708?0:255;$14=HEAPU8[$0+$24|0];$20=$17<<3;$9=$20+$6|0;HEAP8[$9+3|0]=255;$18=$18+($10+$11<<1)>>>3|0;$21=$18+$12|0;$22=$21>>>1&255;$10=Math_imul($14,19077)>>>8|0;$14=(Math_imul($22,33050)>>>8|0)+$10|0;$15=$14+ -17685|0;HEAP8[$9+2|0]=$15>>>0<16384?$15>>>6|0:$14>>>0<17685?0:255;$14=$21>>>17&255;$21=$10+(Math_imul($14,26149)>>>8|0)|0;$15=$21+ -14234|0;HEAP8[$9|0]=$15>>>0<16384?$15>>>6|0:$21>>>0<14234?0:255;$15=$9;$10=$10-(Math_imul($22,6419)>>>8|0)-(Math_imul($14,13320)>>>8)|0;$9=$10+8708|0;HEAP8[$15+1|0]=$9>>>0<16384?$9>>>6|0:($10|0)<-8708?0:255;if($1){$9=HEAPU8[$1+$19|0];$10=$7+$25|0;HEAP8[$10+3|0]=255;$19=$13+$18|0;$18=$19>>>1&255;$13=Math_imul($9,19077)>>>8|0;$9=(Math_imul($18,33050)>>>8|0)+$13|0;$14=$9+ -17685|0;HEAP8[$10+2|0]=$14>>>0<16384?$14>>>6|0:$9>>>0<17685?0:255;$9=$19>>>17&255;$19=$13+(Math_imul($9,26149)>>>8|0)|0;$14=$19+ -14234|0;HEAP8[$10|0]=$14>>>0<16384?$14>>>6|0:$19>>>0<14234?0:255;$15=$10;$10=$13-(Math_imul($18,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255;$13=HEAPU8[$1+$24|0];$10=$7+$20|0;HEAP8[$10+3|0]=255;$13=Math_imul($13,19077)>>>8|0;$9=$11+$23|0;$24=$9>>>1&255;$19=$13+(Math_imul($24,33050)>>>8|0)|0;$18=$19+ -17685|0;HEAP8[$10+2|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<17685?0:255;$9=$9>>>17&255;$19=$13+(Math_imul($9,26149)>>>8|0)|0;$18=$19+ -14234|0;HEAP8[$10|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<14234?0:255;$15=$10;$10=$13-(Math_imul($24,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255}$9=($17|0)!=($26|0);$17=$17+1|0;$10=$12;$13=$11;if($9){continue}break}}label$7:{if($8&1){break label$7}$2=HEAPU8[$0+$16|0];$3=$16<<2;$0=$3+$6|0;HEAP8[$0+3|0]=255;$2=Math_imul($2,19077)>>>8|0;$4=(Math_imul($12,3)+$11|0)+131074|0;$5=$4>>>2&255;$6=$2+(Math_imul($5,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$0+2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:255;$4=$4>>>18&255;$6=$2+(Math_imul($4,26149)>>>8|0)|0;$8=$6+ -14234|0;HEAP8[$0|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<14234?0:255;$6=$0;$0=$2-(Math_imul($5,6419)>>>8|0)-(Math_imul($4,13320)>>>8)|0;$2=$0+8708|0;HEAP8[$6+1|0]=$2>>>0<16384?$2>>>6|0:($0|0)<-8708?0:255;if(!$1){break label$7}$1=HEAPU8[$1+$16|0];$0=$3+$7|0;HEAP8[$0+3|0]=255;$1=Math_imul($1,19077)>>>8|0;$2=(Math_imul($11,3)+$12|0)+131074|0;$3=$2>>>2&255;$4=$1+(Math_imul($3,33050)>>>8|0)|0;$5=$4+ -17685|0;HEAP8[$0+2|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<17685?0:255;$2=$2>>>18&255;$4=$1+(Math_imul($2,26149)>>>8|0)|0;$5=$4+ -14234|0;HEAP8[$0|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<14234?0:255;$4=$0;$0=$1-(Math_imul($3,6419)>>>8|0)-(Math_imul($2,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$4+1|0]=$1>>>0<16384?$1>>>6|0:($0|0)<-8708?0:255}return}__assert_fail(182795,182809,98,182858);abort()}function UpsampleBgraLinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$10=HEAPU8[$5|0];$11=HEAPU8[$4|0];$12=HEAPU8[$3|0];$17=HEAPU8[$2|0];$16=HEAPU8[$0|0];HEAP8[$6+3|0]=255;$13=$11|$10<<16;$10=$17|$12<<16;$12=($13+Math_imul($10,3)|0)+131074|0;$17=$12>>>18&255;$11=Math_imul($16,19077)>>>8|0;$16=(Math_imul($17,26149)>>>8|0)+$11|0;$9=$16+ -14234|0;HEAP8[$6+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$6|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$6+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255;if($1){$11=HEAPU8[$1|0];HEAP8[$7+3|0]=255;$11=Math_imul($11,19077)>>>8|0;$12=(Math_imul($13,3)+$10|0)+131074|0;$17=$12>>>18&255;$16=$11+(Math_imul($17,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$7+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$7|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$7+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255}$16=$8+ -1|0;label$3:{if(($8|0)<3){$11=$13;$12=$10;break label$3}$11=$16>>1;$26=($11|0)>1?$11:1;$17=1;while(1){$24=$17<<1;$19=$24+ -1|0;$14=HEAPU8[$19+$0|0];$12=HEAPU8[$2+$17|0];$18=HEAPU8[$3+$17|0];$11=HEAPU8[$4+$17|0];$23=HEAPU8[$5+$17|0];$25=$19<<2;$9=$25+$6|0;HEAP8[$9+3|0]=255;$11=$11|$23<<16;$12=$12|$18<<16;$23=$13+$12|0;$18=($11+($23+$10|0)|0)+524296|0;$14=Math_imul($14,19077)>>>8|0;$23=$18+($23<<1)>>>3|0;$20=$23+$10|0;$21=$20>>>17&255;$22=$14+(Math_imul($21,26149)>>>8|0)|0;$15=$22+ -14234|0;HEAP8[$9+2|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<14234?0:255;$20=$20>>>1&255;$22=$14+(Math_imul($20,33050)>>>8|0)|0;$15=$22+ -17685|0;HEAP8[$9|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<17685?0:255;$15=$9;$9=$14-(Math_imul($20,6419)>>>8|0)-(Math_imul($21,13320)>>>8)|0;$14=$9+8708|0;HEAP8[$15+1|0]=$14>>>0<16384?$14>>>6|0:($9|0)<-8708?0:255;$14=HEAPU8[$0+$24|0];$20=$17<<3;$9=$20+$6|0;HEAP8[$9+3|0]=255;$18=$18+($10+$11<<1)>>>3|0;$21=$18+$12|0;$22=$21>>>17&255;$10=Math_imul($14,19077)>>>8|0;$14=(Math_imul($22,26149)>>>8|0)+$10|0;$15=$14+ -14234|0;HEAP8[$9+2|0]=$15>>>0<16384?$15>>>6|0:$14>>>0<14234?0:255;$14=$21>>>1&255;$21=$10+(Math_imul($14,33050)>>>8|0)|0;$15=$21+ -17685|0;HEAP8[$9|0]=$15>>>0<16384?$15>>>6|0:$21>>>0<17685?0:255;$15=$9;$10=$10-(Math_imul($14,6419)>>>8|0)-(Math_imul($22,13320)>>>8)|0;$9=$10+8708|0;HEAP8[$15+1|0]=$9>>>0<16384?$9>>>6|0:($10|0)<-8708?0:255;if($1){$9=HEAPU8[$1+$19|0];$10=$7+$25|0;HEAP8[$10+3|0]=255;$19=$13+$18|0;$18=$19>>>17&255;$13=Math_imul($9,19077)>>>8|0;$9=(Math_imul($18,26149)>>>8|0)+$13|0;$14=$9+ -14234|0;HEAP8[$10+2|0]=$14>>>0<16384?$14>>>6|0:$9>>>0<14234?0:255;$9=$19>>>1&255;$19=$13+(Math_imul($9,33050)>>>8|0)|0;$14=$19+ -17685|0;HEAP8[$10|0]=$14>>>0<16384?$14>>>6|0:$19>>>0<17685?0:255;$15=$10;$10=$13-(Math_imul($9,6419)>>>8|0)-(Math_imul($18,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255;$13=HEAPU8[$1+$24|0];$10=$7+$20|0;HEAP8[$10+3|0]=255;$13=Math_imul($13,19077)>>>8|0;$9=$11+$23|0;$24=$9>>>17&255;$19=$13+(Math_imul($24,26149)>>>8|0)|0;$18=$19+ -14234|0;HEAP8[$10+2|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<14234?0:255;$9=$9>>>1&255;$19=$13+(Math_imul($9,33050)>>>8|0)|0;$18=$19+ -17685|0;HEAP8[$10|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<17685?0:255;$15=$10;$10=$13-(Math_imul($9,6419)>>>8|0)-(Math_imul($24,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255}$9=($17|0)!=($26|0);$17=$17+1|0;$10=$12;$13=$11;if($9){continue}break}}label$7:{if($8&1){break label$7}$2=HEAPU8[$0+$16|0];$3=$16<<2;$0=$3+$6|0;HEAP8[$0+3|0]=255;$2=Math_imul($2,19077)>>>8|0;$4=(Math_imul($12,3)+$11|0)+131074|0;$5=$4>>>18&255;$6=$2+(Math_imul($5,26149)>>>8|0)|0;$8=$6+ -14234|0;HEAP8[$0+2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<14234?0:255;$4=$4>>>2&255;$6=$2+(Math_imul($4,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$0|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:255;$6=$0;$0=$2-(Math_imul($4,6419)>>>8|0)-(Math_imul($5,13320)>>>8)|0;$2=$0+8708|0;HEAP8[$6+1|0]=$2>>>0<16384?$2>>>6|0:($0|0)<-8708?0:255;if(!$1){break label$7}$1=HEAPU8[$1+$16|0];$0=$3+$7|0;HEAP8[$0+3|0]=255;$1=Math_imul($1,19077)>>>8|0;$2=(Math_imul($11,3)+$12|0)+131074|0;$3=$2>>>18&255;$4=$1+(Math_imul($3,26149)>>>8|0)|0;$5=$4+ -14234|0;HEAP8[$0+2|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<14234?0:255;$2=$2>>>2&255;$4=$1+(Math_imul($2,33050)>>>8|0)|0;$5=$4+ -17685|0;HEAP8[$0|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<17685?0:255;$4=$0;$0=$1-(Math_imul($2,6419)>>>8|0)-(Math_imul($3,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$4+1|0]=$1>>>0<16384?$1>>>6|0:($0|0)<-8708?0:255}return}__assert_fail(182795,182809,99,182899);abort()}function str_format($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,wasm2js_i32$0=0,wasm2js_i32$1=0,wasm2js_i32$2=0;$1=global$0-1680|0;global$0=$1;$11=1;$5=luaL_checklstring($0,1,$1+1672|0);$2=HEAP32[$1+1672>>2];$3=$1+632|0;HEAP32[$3+4>>2]=0;HEAP32[$3+8>>2]=$0;HEAP32[$3>>2]=$3+12;label$1:{if(($2|0)>=1){$12=$2+$5|0;$13=$1+608|1;$9=$1+1668|0;$7=1;while(1){$2=HEAPU8[$5|0];label$4:{if(($2|0)!=37){$4=HEAP32[$1+632>>2];if($4>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAP32[$1+632>>2];$2=HEAPU8[$5|0]}HEAP32[$1+632>>2]=$4+1;HEAP8[$4|0]=$2;$5=$5+1|0;break label$4}$6=$5+1|0;$2=HEAPU8[$5+1|0];if(($2|0)==37){$4=37;$2=HEAP32[$1+632>>2];if($2>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAPU8[$6|0];$2=HEAP32[$1+632>>2]}HEAP32[$1+632>>2]=$2+1;HEAP8[$2|0]=$4;$5=$5+2|0;break label$4}$3=0;$5=$6;label$9:{if(!$2){break label$9}while(1){if(($2&255)>>>0>63){$3=$2;break label$9}$10=$2&255;$4=$10&31;if(32<=($10&63)>>>0){$10=1<<$4;$4=0}else{$10=(1<<$4)-1&1>>>32-$4;$4=1<<$4}if(!($4&1|$10&75785)){$3=$2;break label$9}$2=HEAPU8[$5+1|0];$4=$5+1|0;$5=$4;if($2){continue}break}$5=$4}$4=$5+1|0;$2=$5;if($2-$6>>>0>=6){luaL_error($0,128758,0);$3=HEAPU8[$5|0]}$5=($3&255)+ -48>>>0<10?$4:$2;$2=HEAPU8[$5|0]+ -48>>>0<10?$5+1|0:$5;$5=HEAPU8[$2|0];if(($5|0)==46){$5=HEAPU8[$2+1|0]+ -48>>>0<10;$3=$5?$2+2|0:$2+1|0;$2=HEAPU8[($5?2:1)+$2|0]+ -48>>>0<10?$3+1|0:$3;$5=HEAPU8[$2|0]}if(($5&255)+ -48>>>0<=9){luaL_error($0,128790,0)}HEAP8[$1+608|0]=37;$5=($2-$6|0)+1|0;HEAP8[strncpy($13,$6,$5)+$5|0]=0;label$18:{label$19:{label$20:{label$21:{$3=HEAP8[$2|0];$6=$3+ -69|0;if($6>>>0>51){break label$21}$7=$7+1|0;$5=$2+1|0;label$22:{switch($6-1|0){case 29:$2=$1;$8=luaL_checknumber($0,$7);label$27:{if(Math_abs($8)<2147483648){$3=~~$8;break label$27}$3=-2147483648}HEAP32[$2+16>>2]=$3;siprintf($1+96|0,$1+608|0,$1+16|0);break label$19;case 30:case 35:$3=strlen($1+608|0)+($1+608|0)|0;$2=$3+ -1|0;$6=HEAPU8[$2|0];HEAP8[$2|0]=108;HEAP8[$2+1|0]=0;HEAP8[$3+1|0]=0;HEAP8[$3|0]=$6;$2=$1;$8=luaL_checknumber($0,$7);label$29:{if(Math_abs($8)<2147483648){$3=~~$8;break label$29}$3=-2147483648}HEAP32[$2+32>>2]=$3;siprintf($1+96|0,$1+608|0,$1+32|0);break label$19;case 18:case 41:case 47:case 50:$3=strlen($1+608|0)+($1+608|0)|0;$2=$3+ -1|0;$6=HEAPU8[$2|0];HEAP8[$2|0]=108;HEAP8[$2+1|0]=0;HEAP8[$3+1|0]=0;HEAP8[$3|0]=$6;$2=$1;$8=luaL_checknumber($0,$7);label$31:{if($8<4294967296&$8>=0){$3=~~$8>>>0;break label$31}$3=0}HEAP32[$2+48>>2]=$3;siprintf($1+96|0,$1+608|0,$1+48|0);break label$19;case 43:$2=luaL_checklstring($0,$7,$1+1676|0);$4=HEAP32[$1+632>>2];if($4>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAP32[$1+632>>2]}HEAP32[$1+632>>2]=$4+1;HEAP8[$4|0]=34;$3=HEAP32[$1+1676>>2];HEAP32[$1+1676>>2]=$3+ -1;if($3){while(1){label$36:{label$37:{label$38:{label$39:{label$40:{$4=HEAP8[$2|0];if($4>>>0>34){if(($4|0)!=92){break label$40}break label$37}switch($4-1|0){case 9:case 33:break label$37;case 12:break label$38;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:break label$40;default:break label$39}}$3=HEAP32[$1+632>>2];if($3>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAPU8[$2|0];$3=HEAP32[$1+632>>2]}HEAP32[$1+632>>2]=$3+1;HEAP8[$3|0]=$4;break label$36}luaL_addlstring($1+632|0,128838,4);break label$36}luaL_addlstring($1+632|0,128835,2);break label$36}$4=HEAP32[$1+632>>2];if($4>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAP32[$1+632>>2]}HEAP32[$1+632>>2]=$4+1;HEAP8[$4|0]=92;$4=HEAP32[$1+632>>2];if($4>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAP32[$1+632>>2]}$3=HEAPU8[$2|0];HEAP32[$1+632>>2]=$4+1;HEAP8[$4|0]=$3}$3=HEAP32[$1+1676>>2];HEAP32[$1+1676>>2]=$3+ -1;$2=$2+1|0;if($3){continue}break}}$2=HEAP32[$1+632>>2];if($2>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$2=HEAP32[$1+632>>2]}HEAP32[$1+632>>2]=$2+1;HEAP8[$2|0]=34;break label$4;case 45:break label$20;case 0:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 34:case 36:case 37:case 38:case 39:case 40:case 42:case 44:case 46:case 48:case 49:break label$21;default:break label$22}}HEAPF64[$1+64>>3]=luaL_checknumber($0,$7);__small_sprintf($1+96|0,$1+608|0,$1- -64|0);break label$19}HEAP32[$1>>2]=$3;$11=luaL_error($0,128724,$1);break label$1}$3=luaL_checklstring($0,$7,$1+1676|0);if(wasm2js_i32$0=!strchr($1+608|0,46),wasm2js_i32$1=0,wasm2js_i32$2=HEAPU32[$1+1676>>2]>99,wasm2js_i32$2?wasm2js_i32$0:wasm2js_i32$1){break label$18}HEAP32[$1+80>>2]=$3;siprintf($1+96|0,$1+608|0,$1+80|0)}luaL_addlstring($1+632|0,$1+96|0,strlen($1+96|0));break label$4}lua_pushvalue($0,$7);luaL_addvalue($1+632|0)}if($5>>>0<$12>>>0){continue}break}}luaL_pushresult($1+632|0)}global$0=$1+1680|0;return $11|0}function dmRig__InstanceCreate_28dmRig__InstanceCreateParams_20const__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$6=global$0-16|0;global$0=$6;$5=HEAP32[$0>>2];$1=HEAP32[$5+8>>2];label$1:{label$2:{label$3:{label$5:{if(($1|0)==HEAP32[$5+4>>2]){$2=2;HEAP32[$6>>2]=$1-HEAP32[$5>>2]>>2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,133044,133084,$6);break label$5}$1=operator_20new_28unsigned_20long_29(232);HEAP32[$1+104>>2]=0;HEAP32[$1+108>>2]=0;HEAP8[$1+60|0]=4;HEAP32[$1+56>>2]=1;HEAP32[$1+48>>2]=0;HEAP32[$1+40>>2]=0;HEAP32[$1+44>>2]=0;HEAP32[$1+32>>2]=0;HEAP8[$1+28|0]=4;HEAP32[$1+24>>2]=1;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+132>>2]=0;HEAP32[$1+136>>2]=0;HEAP32[$1+112>>2]=0;HEAP32[$1+116>>2]=0;HEAP32[$1+140>>2]=0;HEAP32[$1+144>>2]=0;HEAP32[$1+148>>2]=0;HEAP32[$1+152>>2]=0;HEAP32[$1+156>>2]=0;HEAP32[$1+160>>2]=0;HEAP32[$1+164>>2]=0;HEAP32[$1+168>>2]=0;HEAP32[$1+172>>2]=0;HEAP32[$1+176>>2]=0;HEAP32[$1+180>>2]=0;HEAP32[$1+184>>2]=0;HEAP32[$1+188>>2]=0;HEAP32[$1+192>>2]=0;HEAP32[HEAP32[$0+4>>2]>>2]=$1;$1=HEAP32[HEAP32[$0+4>>2]>>2];$2=dmObjectPool_dmRig__RigInstance____Alloc_28_29($5);$1=memset($1,0,232);HEAP32[$1+64>>2]=$2;$3=HEAP32[$5+16>>2];if(HEAP32[$5+20>>2]-$3>>3>>>0<=$2>>>0){break label$3}$4=HEAP32[$5>>2];$2=HEAP32[$3+($2<<3)>>2];if(HEAP32[$5+4>>2]-$4>>2>>>0<=$2>>>0){break label$3}HEAP32[$4+($2<<2)>>2]=$1;$2=HEAP32[$0+20>>2];HEAP32[$1+200>>2]=HEAP32[$0+16>>2];HEAP32[$1+204>>2]=$2;HEAP32[$1+92>>2]=HEAP32[$0+56>>2];HEAP32[$1+96>>2]=HEAP32[$0+60>>2];HEAP32[$1+100>>2]=HEAP32[$0+64>>2];HEAP32[$1+120>>2]=HEAP32[$0+68>>2];HEAP32[$1+124>>2]=HEAP32[$0+72>>2];HEAP32[$1+128>>2]=HEAP32[$0+76>>2];HEAP32[$1+68>>2]=HEAP32[$0+32>>2];HEAP32[$1+72>>2]=HEAP32[$0+36>>2];HEAP32[$1+76>>2]=HEAP32[$0+40>>2];HEAP32[$1+80>>2]=HEAP32[$0+44>>2];HEAP32[$1+84>>2]=HEAP32[$0+48>>2];HEAP32[$1+88>>2]=HEAP32[$0+52>>2];HEAP8[$1+224|0]=HEAPU8[$1+224|0]|4;if(HEAP8[$1+192|0]&1){break label$2}$2=HEAP32[$0+40>>2];dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$2+28>>2],24,$1+180|0,$1+188|0,$1+184|0);$4=HEAP32[$1+180>>2];$3=HEAP32[$2+28>>2];if((HEAP32[$1+188>>2]-$4|0)/24>>>0<$3>>>0){break label$1}HEAP32[$1+184>>2]=$4+Math_imul($3,24);if(HEAP8[$1+116|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($3,4,$1+104|0,$1+112|0,$1+108|0);$3=HEAP32[$1+104>>2];$2=HEAP32[$2+28>>2];if(HEAP32[$1+112>>2]-$3>>2>>>0<$2>>>0){break label$1}HEAP32[$1+108>>2]=$3+($2<<2);dmRig__SetMesh_28dmRig__RigInstance__2c_20unsigned_20long_20long_29($1,HEAP32[$1+200>>2],HEAP32[$1+204>>2]);$2=HEAP32[HEAP32[$1+76>>2]+24>>2];$4=HEAP32[$1+72>>2];label$7:{if(!$4){HEAP32[$1+220>>2]=$2;break label$7}$3=HEAP32[$4+4>>2];HEAP32[$1+220>>2]=$2>>>0>$3>>>0?$2:$3;if(HEAP8[$1+144|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($3,48,$1+132|0,$1+140|0,$1+136|0);$7=HEAP32[$1+132>>2];if((HEAP32[$1+140>>2]-$7|0)/48>>>0<$3>>>0){break label$1}$2=Math_imul($3,48)+$7|0;HEAP32[$1+136>>2]=$2;if($3){$9=($2-$7|0)/48|0;while(1){if(($8|0)==($9|0)){break label$3}$2=Math_imul($8,48)+$7|0;HEAP32[$2+32>>2]=1065353216;HEAP32[$2+36>>2]=1065353216;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=1065353216;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+40>>2]=1065353216;HEAP32[$2+24>>2]=0;$8=$8+1|0;if(($3|0)!=($8|0)){continue}break}}if(HEAP8[$1+176|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$4+12>>2],48,$1+164|0,$1+172|0,$1+168|0);$2=HEAP32[$1+164>>2];$3=HEAP32[$4+12>>2];if((HEAP32[$1+172>>2]-$2|0)/48>>>0<$3>>>0){break label$1}$3=Math_imul($3,48);HEAP32[$1+168>>2]=$3+$2;memset($2,0,$3);if(HEAP8[$1+160|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$4+12>>2],8,$1+148|0,$1+156|0,$1+152|0);$2=HEAP32[$1+148>>2];$3=HEAP32[$4+12>>2];if(HEAP32[$1+156>>2]-$2>>3>>>0<$3>>>0){break label$1}HEAP32[$1+152>>2]=$2+($3<<3)}$2=HEAP32[$0+24>>2];$3=HEAP32[$0+28>>2];if(($2|0)!=HEAP32[280290]|($3|0)!=HEAP32[280291]){dmRig__PlayAnimation_28dmRig__RigInstance__2c_20unsigned_20long_20long_2c_20dmRig__RigPlayback_2c_20float_2c_20float_2c_20float_29($1,$2,$3,4,Math_fround(0),Math_fround(0),Math_fround(1))}$2=0;if(!HEAPU8[$0+80|0]){break label$5}dmRig__DoAnimate_28dmRig__RigContext__2c_20dmRig__RigInstance__2c_20float_29($5,$1,Math_fround(0))}global$0=$6+16|0;return $2}__assert_fail(133208,133219,430,133189);abort()}__assert_fail(133290,133219,444,133365);abort()}__assert_fail(133377,133219,457,133396);abort()}function btIDebugDraw__drawSphere_28float_2c_20btTransform_20const__2c_20btVector3_20const__29($0,$1,$2,$3){var $4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0);$4=global$0-32|0;global$0=$4;$17=HEAPF32[$2+52>>2];$25=HEAPF32[$2+24>>2];$10=HEAPF32[$2+20>>2];$18=HEAPF32[$2+56>>2];$26=HEAPF32[$2+40>>2];$7=HEAPF32[$2+36>>2];$11=HEAPF32[$2+16>>2];$8=HEAPF32[$2+32>>2];$19=HEAPF32[$2+48>>2];$27=HEAPF32[$2+8>>2];$9=HEAPF32[$2>>2];$12=HEAPF32[$2+4>>2];HEAP32[$4+28>>2]=0;$28=Math_fround($12*Math_fround(0));$13=Math_fround($27*Math_fround(0));$14=Math_fround(Math_fround(Math_fround($9*$1)+$28)+$13);$20=Math_fround($19-$14);HEAPF32[$4+16>>2]=$20;$29=Math_fround($7*Math_fround(0));$5=Math_fround($26*Math_fround(0));$15=Math_fround(Math_fround(Math_fround($8*$1)+$29)+$5);$21=Math_fround($18-$15);HEAPF32[$4+24>>2]=$21;$30=Math_fround($10*Math_fround(0));$6=Math_fround($25*Math_fround(0));$16=Math_fround(Math_fround(Math_fround($11*$1)+$30)+$6);$22=Math_fround($17-$16);HEAPF32[$4+20>>2]=$22;HEAP32[$4+12>>2]=0;$31=Math_fround($8*Math_fround(0));$7=Math_fround(Math_fround($31+Math_fround($7*$1))+$5);$23=Math_fround($18+$7);HEAPF32[$4+8>>2]=$23;$8=Math_fround($11*Math_fround(0));$5=Math_fround(Math_fround($8+Math_fround($10*$1))+$6);$24=Math_fround($17+$5);HEAPF32[$4+4>>2]=$24;$9=Math_fround($9*Math_fround(0));$6=Math_fround(Math_fround($9+Math_fround($12*$1))+$13);$10=Math_fround($19+$6);HEAPF32[$4>>2]=$10;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$23;HEAPF32[$4+20>>2]=$24;HEAPF32[$4+16>>2]=$10;HEAP32[$4+12>>2]=0;$11=Math_fround($18+$15);HEAPF32[$4+8>>2]=$11;$12=Math_fround($17+$16);HEAPF32[$4+4>>2]=$12;$13=Math_fround($19+$14);HEAPF32[$4>>2]=$13;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$11;HEAPF32[$4+20>>2]=$12;HEAPF32[$4+16>>2]=$13;HEAP32[$4+12>>2]=0;$14=Math_fround($18-$7);HEAPF32[$4+8>>2]=$14;$15=Math_fround($17-$5);HEAPF32[$4+4>>2]=$15;$16=Math_fround($19-$6);HEAPF32[$4>>2]=$16;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$14;HEAPF32[$4+20>>2]=$15;HEAPF32[$4+16>>2]=$16;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$21;HEAPF32[$4+4>>2]=$22;HEAPF32[$4>>2]=$20;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$21;HEAPF32[$4+20>>2]=$22;HEAPF32[$4+16>>2]=$20;HEAP32[$4+12>>2]=0;$5=Math_fround(Math_fround($31+$29)+Math_fround($26*$1));$7=Math_fround($18+$5);HEAPF32[$4+8>>2]=$7;$6=Math_fround(Math_fround($8+$30)+Math_fround($25*$1));$8=Math_fround($17+$6);HEAPF32[$4+4>>2]=$8;$1=Math_fround(Math_fround($9+$28)+Math_fround($27*$1));$9=Math_fround($19+$1);HEAPF32[$4>>2]=$9;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$7;HEAPF32[$4+20>>2]=$8;HEAPF32[$4+16>>2]=$9;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$11;HEAPF32[$4+4>>2]=$12;HEAPF32[$4>>2]=$13;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$11;HEAPF32[$4+20>>2]=$12;HEAPF32[$4+16>>2]=$13;HEAP32[$4+12>>2]=0;$5=Math_fround($18-$5);HEAPF32[$4+8>>2]=$5;$6=Math_fround($17-$6);HEAPF32[$4+4>>2]=$6;$1=Math_fround($19-$1);HEAPF32[$4>>2]=$1;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$5;HEAPF32[$4+20>>2]=$6;HEAPF32[$4+16>>2]=$1;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$21;HEAPF32[$4+4>>2]=$22;HEAPF32[$4>>2]=$20;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$14;HEAPF32[$4+20>>2]=$15;HEAPF32[$4+16>>2]=$16;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$7;HEAPF32[$4+4>>2]=$8;HEAPF32[$4>>2]=$9;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$7;HEAPF32[$4+20>>2]=$8;HEAPF32[$4+16>>2]=$9;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$23;HEAPF32[$4+4>>2]=$24;HEAPF32[$4>>2]=$10;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$23;HEAPF32[$4+20>>2]=$24;HEAPF32[$4+16>>2]=$10;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$5;HEAPF32[$4+4>>2]=$6;HEAPF32[$4>>2]=$1;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$5;HEAPF32[$4+20>>2]=$6;HEAPF32[$4+16>>2]=$1;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$14;HEAPF32[$4+4>>2]=$15;HEAPF32[$4>>2]=$16;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);global$0=$4+32|0}function b2WeldJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=0,$7=0,$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0);$7=global$0-48|0;global$0=$7;$2=HEAP32[$0+48>>2];$16=HEAP32[$2+8>>2];HEAP32[$0+116>>2]=$16;$9=HEAP32[$0+52>>2];$17=HEAP32[$9+8>>2];HEAP32[$0+120>>2]=$17;$12=HEAPF32[$2+32>>2];$6=HEAP32[$2+32>>2];$3=HEAPF32[$2+28>>2];HEAP32[$0+140>>2]=HEAP32[$2+28>>2];HEAP32[$0+144>>2]=$6;$18=HEAPF32[$9+32>>2];$13=HEAP32[$9+32>>2];$11=HEAPF32[$9+28>>2];HEAP32[$0+148>>2]=HEAP32[$9+28>>2];HEAP32[$0+152>>2]=$13;$19=HEAPF32[$2+120>>2];HEAP32[$0+156>>2]=HEAP32[$2+120>>2];$20=HEAPF32[$9+120>>2];HEAP32[$0+160>>2]=HEAP32[$9+120>>2];$14=HEAPF32[$2+128>>2];HEAP32[$0+164>>2]=HEAP32[$2+128>>2];$15=HEAPF32[$9+128>>2];HEAP32[$0+168>>2]=HEAP32[$9+128>>2];$8=HEAPF32[$0+84>>2];$6=HEAP32[$1+24>>2];$2=Math_imul($16,12);$21=HEAPF32[($6+$2|0)+8>>2];$4=sinf($21);$10=HEAPF32[$0+80>>2];$5=cosf($21);$13=HEAP32[$1+28>>2];$2=$13+$2|0;$26=HEAPF32[$2>>2];$9=HEAP32[$2>>2];$27=HEAPF32[$2+4>>2];$16=HEAP32[$2+4>>2];$22=HEAPF32[$2+8>>2];$25=Math_imul($17,12);$2=$13+$25|0;$28=HEAPF32[$2>>2];$17=HEAP32[$2>>2];$29=HEAPF32[$2+4>>2];$13=HEAP32[$2+4>>2];$23=HEAPF32[$2+8>>2];$24=HEAPF32[($6+$25|0)+8>>2];$10=Math_fround($10-$3);$8=Math_fround($8-$12);$3=Math_fround(Math_fround($5*$10)-Math_fround($4*$8));HEAPF32[$0+124>>2]=$3;$8=Math_fround(Math_fround($4*$10)+Math_fround($5*$8));HEAPF32[$0+128>>2]=$8;$4=HEAPF32[$0+92>>2];$5=sinf($24);$12=HEAPF32[$0+88>>2];$10=cosf($24);$11=Math_fround($12-$11);$12=Math_fround($4-$18);$4=Math_fround(Math_fround($10*$11)-Math_fround($5*$12));HEAPF32[$0+132>>2]=$4;$5=Math_fround(Math_fround($5*$11)+Math_fround($10*$12));HEAPF32[$0+136>>2]=$5;$11=Math_fround(Math_fround($3*$14)+Math_fround($4*$15));HEAPF32[$7+36>>2]=$11;$10=Math_fround($14+$15);HEAPF32[$7+40>>2]=$10;HEAPF32[$7+28>>2]=$11;$11=Math_fround($19+$20);HEAPF32[$7+24>>2]=Math_fround($11+Math_fround(Math_fround($3*$3)*$14))+Math_fround(Math_fround($4*$4)*$15);$12=Math_fround(-$8);$18=Math_fround(Math_fround($14*$12)-Math_fround($5*$15));HEAPF32[$7+32>>2]=$18;HEAPF32[$7+16>>2]=$18;$3=Math_fround(Math_fround(Math_fround($3*$12)*$14)-Math_fround(Math_fround($5*$4)*$15));HEAPF32[$7+20>>2]=$3;HEAPF32[$7+8>>2]=Math_fround($11+Math_fround(Math_fround($8*$8)*$14))+Math_fround(Math_fround($5*$5)*$15);HEAPF32[$7+12>>2]=$3;$6=$0+172|0;$3=Math_fround(0);$2=$0;label$1:{if(!!(HEAPF32[$0+68>>2]>Math_fround(0))){b2Mat33__GetInverse22_28b2Mat33__29_20const($7+8|0,$6);$3=Math_fround(HEAPF32[$0+68>>2]*Math_fround(6.2831854820251465));$4=$10>Math_fround(0)?Math_fround(Math_fround(1)/$10):Math_fround(0);$5=Math_fround($3*Math_fround($4*$3));$8=HEAPF32[$1>>2];$3=Math_fround($8*Math_fround(Math_fround($3*Math_fround(Math_fround($4+$4)*HEAPF32[$0+72>>2]))+Math_fround($8*$5)));$3=$3!=Math_fround(0)?Math_fround(Math_fround(1)/$3):Math_fround(0);$4=Math_fround($10+$3);HEAPF32[$0+204>>2]=$4!=Math_fround(0)?Math_fround(Math_fround(1)/$4):Math_fround(0);$4=Math_fround(Math_fround(Math_fround($8*Math_fround(Math_fround($24-$21)-HEAPF32[$0+96>>2]))*$5)*$3);break label$1}b2Mat33__GetSymInverse33_28b2Mat33__29_20const($7+8|0,$6);$4=Math_fround(0)}HEAPF32[$2+76>>2]=$4;HEAPF32[$0+100>>2]=$3;label$3:{if(HEAPU8[$1+20|0]){$5=HEAPF32[$1+8>>2];$3=Math_fround($5*HEAPF32[$0+104>>2]);HEAPF32[$0+104>>2]=$3;$4=Math_fround($5*HEAPF32[$0+108>>2]);HEAPF32[$0+108>>2]=$4;$5=Math_fround($5*HEAPF32[$0+112>>2]);HEAPF32[$0+112>>2]=$5;$23=Math_fround($23+Math_fround(Math_fround($5+Math_fround(Math_fround($4*HEAPF32[$0+132>>2])-Math_fround($3*HEAPF32[$0+136>>2])))*$15));$22=Math_fround($22-Math_fround(Math_fround($5+Math_fround(Math_fround($4*HEAPF32[$0+124>>2])-Math_fround($3*HEAPF32[$0+128>>2])))*$14));$17=(wasm2js_scratch_store_f32(Math_fround(Math_fround($3*$20)+$28)),wasm2js_scratch_load_i32(0));$9=(wasm2js_scratch_store_f32(Math_fround($26-Math_fround($3*$19))),wasm2js_scratch_load_i32(0));$13=(wasm2js_scratch_store_f32(Math_fround(Math_fround($4*$20)+$29)),wasm2js_scratch_load_i32(0));$16=(wasm2js_scratch_store_f32(Math_fround($27-Math_fround($4*$19))),wasm2js_scratch_load_i32(0));break label$3}HEAP32[$0+104>>2]=0;HEAP32[$0+108>>2]=0;HEAP32[$0+112>>2]=0}$6=HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+116>>2],12)|0;HEAP32[$6+4>>2]=$16;HEAP32[$6>>2]=$9;$6=HEAP32[$1+28>>2];HEAPF32[($6+Math_imul(HEAP32[$0+116>>2],12)|0)+8>>2]=$22;$6=$6+Math_imul(HEAP32[$0+120>>2],12)|0;HEAP32[$6+4>>2]=$13;HEAP32[$6>>2]=$17;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+120>>2],12)|0)+8>>2]=$23;global$0=$7+48|0}function inflate_table($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=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;$7=global$0+ -64|0;HEAP32[$7+48>>2]=0;HEAP32[$7+52>>2]=0;HEAP32[$7+56>>2]=0;HEAP32[$7+60>>2]=0;HEAP32[$7+32>>2]=0;HEAP32[$7+36>>2]=0;HEAP32[$7+40>>2]=0;HEAP32[$7+44>>2]=0;label$1:{label$2:{label$3:{label$4:{label$5:{if($2){while(1){$9=($7+32|0)+(HEAPU16[($10<<1)+$1>>1]<<1)|0;HEAP16[$9>>1]=HEAPU16[$9>>1]+1;$10=$10+1|0;if(($10|0)!=($2|0)){continue}break}$10=HEAP32[$4>>2];$11=15;$6=HEAPU16[$7+62>>1];if($6){break label$4}break label$5}$10=HEAP32[$4>>2]}$11=14;$6=0;if(HEAPU16[$7+60>>1]){break label$4}$11=13;if(HEAPU16[$7+58>>1]){break label$4}$11=12;if(HEAPU16[$7+56>>1]){break label$4}$11=11;if(HEAPU16[$7+54>>1]){break label$4}$11=10;if(HEAPU16[$7+52>>1]){break label$4}$11=9;if(HEAPU16[$7+50>>1]){break label$4}$11=8;if(HEAPU16[$7+48>>1]){break label$4}$11=7;if(HEAPU16[$7+46>>1]){break label$4}$11=6;if(HEAPU16[$7+44>>1]){break label$4}$11=5;if(HEAPU16[$7+42>>1]){break label$4}$11=4;if(HEAPU16[$7+40>>1]){break label$4}$11=3;if(HEAPU16[$7+38>>1]){break label$4}$11=2;if(HEAPU16[$7+36>>1]){break label$4}if(!HEAPU16[$7+34>>1]){$0=HEAP32[$3>>2];HEAP32[$3>>2]=$0+4;HEAP16[$0>>1]=320;HEAP16[$0+2>>1]=0;$0=HEAP32[$3>>2];HEAP32[$3>>2]=$0+4;HEAP16[$0>>1]=320;HEAP16[$0+2>>1]=0;HEAP32[$4>>2]=1;break label$2}$12=($10|0)!=0;$11=1;$10=1;break label$3}$12=$10>>>0>$11>>>0?$11:$10;$10=1;while(1){if(HEAPU16[($7+32|0)+($10<<1)>>1]){break label$3}$10=$10+1|0;if(($11|0)!=($10|0)){continue}break}$10=$11}$9=-1;$14=HEAPU16[$7+34>>1];if($14>>>0>2){break label$1}$15=HEAPU16[$7+36>>1];$8=4-($15+($14<<1)|0)|0;if(($8|0)<0){break label$1}$16=HEAPU16[$7+38>>1];$8=($8<<1)-$16|0;if(($8|0)<0){break label$1}$17=HEAPU16[$7+40>>1];$8=($8<<1)-$17|0;if(($8|0)<0){break label$1}$19=HEAPU16[$7+42>>1];$8=($8<<1)-$19|0;if(($8|0)<0){break label$1}$20=HEAPU16[$7+44>>1];$8=($8<<1)-$20|0;if(($8|0)<0){break label$1}$23=HEAPU16[$7+46>>1];$8=($8<<1)-$23|0;if(($8|0)<0){break label$1}$24=HEAPU16[$7+48>>1];$8=($8<<1)-$24|0;if(($8|0)<0){break label$1}$21=HEAPU16[$7+50>>1];$8=($8<<1)-$21|0;if(($8|0)<0){break label$1}$26=HEAPU16[$7+52>>1];$8=($8<<1)-$26|0;if(($8|0)<0){break label$1}$27=HEAPU16[$7+54>>1];$8=($8<<1)-$27|0;if(($8|0)<0){break label$1}$13=HEAPU16[$7+56>>1];$8=($8<<1)-$13|0;if(($8|0)<0){break label$1}$22=HEAPU16[$7+58>>1];$8=($8<<1)-$22|0;if(($8|0)<0){break label$1}$25=HEAPU16[$7+60>>1];$8=($8<<1)-$25|0;if(($8|0)<0){break label$1}$6=($8<<1)-$6|0;if(($6|0)<0|(!$0|($11|0)!=1?$6:0)){break label$1}$9=0;HEAP16[$7+2>>1]=0;HEAP16[$7+4>>1]=$14;$6=$14+$15|0;HEAP16[$7+6>>1]=$6;$6=$6+$16|0;HEAP16[$7+8>>1]=$6;$6=$6+$17|0;HEAP16[$7+10>>1]=$6;$6=$6+$19|0;HEAP16[$7+12>>1]=$6;$6=$6+$20|0;HEAP16[$7+14>>1]=$6;$6=$6+$23|0;HEAP16[$7+16>>1]=$6;$6=$6+$24|0;HEAP16[$7+18>>1]=$6;$6=$6+$21|0;HEAP16[$7+20>>1]=$6;$6=$6+$26|0;HEAP16[$7+22>>1]=$6;$6=$6+$27|0;HEAP16[$7+24>>1]=$6;$6=$6+$13|0;HEAP16[$7+26>>1]=$6;$6=$6+$22|0;HEAP16[$7+28>>1]=$6;HEAP16[$7+30>>1]=$6+$25;if($2){while(1){$6=HEAPU16[($9<<1)+$1>>1];if($6){$6=($6<<1)+$7|0;$8=HEAPU16[$6>>1];HEAP16[$6>>1]=$8+1;HEAP16[($8<<1)+$5>>1]=$9}$9=$9+1|0;if(($9|0)!=($2|0)){continue}break}}$13=$12>>>0<$10>>>0?$10:$12;$9=1;$23=0;label$14:{if($0>>>0<=1){$14=19;$24=0;$22=$5;$19=$5;if($0-1){break label$14}if($13>>>0>9){break label$1}$19=195102;$22=195038;$14=256;$23=1;break label$14}$19=195744;$22=195680;$24=($0|0)==2;$14=-1;if(($0|0)!=2){break label$14}if($13>>>0>9){break label$1}}$15=1<<$13;$26=$15+ -1|0;$16=HEAP32[$3>>2];$17=0;$6=$13;$12=0;$0=-1;while(1){$25=1<<$6;label$17:{while(1){$20=$10-$18|0;$6=HEAPU16[($17<<1)+$5>>1];$9=0;label$19:{if(($14|0)>($6|0)){break label$19}if(($14|0)>=($6|0)){$6=0;$9=96;break label$19}$2=$6<<1;$6=HEAPU16[$2+$22>>1];$9=HEAPU8[$2+$19|0]}$27=$12>>>$18|0;$8=-1<<$20;$2=$25;while(1){$2=$2+$8|0;$21=($27+$2<<2)+$16|0;HEAP16[$21+2>>1]=$6;HEAP8[$21+1|0]=$20;HEAP8[$21|0]=$9;if($2){continue}break}$9=1<<$10+ -1;while(1){$2=$9;$9=$2>>>1|0;if($2&$12){continue}break}$9=($7+32|0)+($10<<1)|0;$6=HEAPU16[$9>>1]+ -1|0;HEAP16[$9>>1]=$6;$12=$2?$2+($2+ -1&$12)|0:0;$17=$17+1|0;if(!($6&65535)){if(($10|0)==($11|0)){break label$17}$10=HEAPU16[(HEAPU16[($17<<1)+$5>>1]<<1)+$1>>1]}if($10>>>0<=$13>>>0){continue}$2=$12&$26;if(($2|0)==($0|0)){continue}break}$18=$18?$18:$13;$6=$10-$18|0;$0=1<<$6;if($10>>>0<$11>>>0){$8=$11-$18|0;$9=$10;label$25:{while(1){$0=$0-HEAPU16[($7+32|0)+($9<<1)>>1]|0;if(($0|0)<1){break label$25}$0=$0<<1;$6=$6+1|0;$9=$18+$6|0;if($9>>>0<$11>>>0){continue}break}$6=$8}$0=1<<$6}$9=1;$15=$0+$15|0;if($15>>>0>852&$23|$15>>>0>592&$24){break label$1}$0=HEAP32[$3>>2];$9=$0+($2<<2)|0;HEAP8[$9+1|0]=$13;HEAP8[$9|0]=$6;$16=($25<<2)+$16|0;HEAP16[$9+2>>1]=$16-$0>>>2;$0=$2;continue}break}if($12){$0=($12<<2)+$16|0;HEAP16[$0+2>>1]=0;HEAP8[$0+1|0]=$20;HEAP8[$0|0]=64}HEAP32[$3>>2]=HEAP32[$3>>2]+($15<<2);HEAP32[$4>>2]=$13}$9=0}return $9}function mbedtls_ssl_decrypt_buf($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$4=global$0-256|0;global$0=$4;label$1:{if(!$0){$3=-27648;break label$1}if(!$1){$3=-27648;break label$1}$3=HEAP32[$1+12>>2];if(!$3){$3=-27648;break label$1}$2=HEAP32[$1+16>>2];$8=HEAP32[$1+20>>2];if($2>>>0<$8>>>0){$3=-27648;break label$1}$6=HEAP32[$1+24>>2];if($2-$8>>>0<$6>>>0){$3=-27648;break label$1}$2=HEAP32[$0+144>>2];$5=0;label$7:{if(!$2){break label$7}$5=HEAP32[$2+4>>2]}$2=$5+ -2|0;if($2>>>0>8){$3=-27648;break label$1}$10=$0+144|0;$5=$3+$8|0;$3=-27648;label$9:{label$10:{label$11:{switch($2-1|0){case 3:case 5:case 7:$3=-29056;$2=HEAP32[$0+4>>2];$12=HEAP32[$0+8>>2];$11=$2-$12|0;$7=$11+HEAP32[$0+16>>2]|0;if($6>>>0<$7>>>0){break label$1}$2=($2|0)!=12;label$13:{if(!($2|($12|0)!=4)){HEAP32[$4>>2]=HEAP32[$0+36>>2];$2=HEAPU8[$5+4|0]|HEAPU8[$5+5|0]<<8|(HEAPU8[$5+6|0]<<16|HEAPU8[$5+7|0]<<24);HEAP32[$4+4>>2]=HEAPU8[$5|0]|HEAPU8[$5+1|0]<<8|(HEAPU8[$5+2|0]<<16|HEAPU8[$5+3|0]<<24);HEAP32[$4+8>>2]=$2;break label$13}$3=-27648;if(($12|0)!=12|$2){break label$1}HEAP32[$4+8>>2]=HEAP32[$0+44>>2];$2=HEAP32[$0+40>>2];HEAP32[$4>>2]=HEAP32[$0+36>>2];HEAP32[$4+4>>2]=$2;HEAP8[$4+4|0]=HEAPU8[$4+4|0]^HEAPU8[$1|0];HEAP8[$4+5|0]=HEAPU8[$4+5|0]^HEAPU8[$1+1|0];HEAP8[$4+6|0]=HEAPU8[$4+6|0]^HEAPU8[$1+2|0];HEAP8[$4+7|0]=HEAPU8[$4+7|0]^HEAPU8[$1+3|0];HEAP8[$4+8|0]=HEAPU8[$4+8|0]^HEAPU8[$1+4|0];HEAP8[$4+9|0]=HEAPU8[$4+9|0]^HEAPU8[$1+5|0];HEAP8[$4+10|0]=HEAPU8[$4+10|0]^HEAPU8[$1+6|0];HEAP8[$4+11|0]=HEAPU8[$4+11|0]^HEAPU8[$1+7|0]}HEAP32[$1+24>>2]=$6-$7;HEAP32[$1+20>>2]=$8+$11;ssl_extract_add_data_from_record($4+192|0,$4+188|0,$1);memcpy((HEAP32[$0+8>>2]+$0|0)+36|0,$5,$11);$3=-29056;$7=$5+$11|0;$2=HEAP32[$1+24>>2];$0=mbedtls_cipher_auth_decrypt($10,$4,HEAP32[$0+4>>2],$4+192|0,HEAP32[$4+188>>2],$7,$2,$7,$4+252|0,$2+$7|0,HEAP32[$0+16>>2]);if(($0|0)==-25344){break label$1}if($0){$3=$0;break label$1}$3=-27648;if(HEAP32[$4+252>>2]==HEAP32[$1+24>>2]){break label$10}break label$1;case 0:case 1:case 2:case 4:case 6:break label$1;default:break label$11}}$3=HEAP32[$0+4>>2];$2=HEAP32[$0+208>>2]>1?$3:0;if($6>>>0<$3+$2>>>0){$3=-29056;break label$1}$8=$2;$2=HEAP32[$0+12>>2];if($6>>>0<($8+$2|0)+1>>>0){$3=-29056;break label$1}if(HEAP32[$0+76>>2]==1){HEAP32[$1+24>>2]=$6-$2;ssl_extract_add_data_from_record($4+192|0,$4+188|0,$1);$2=$0- -64|0;mbedtls_md_hmac_update($2,$4+192|0,HEAP32[$4+188>>2]);mbedtls_md_hmac_update($2,$5,HEAP32[$1+24>>2]);mbedtls_md_hmac_finish($2,$4);mbedtls_md_hmac_reset($2);if(mbedtls_ssl_safer_memcmp(HEAP32[$1+24>>2]+$5|0,$4,HEAP32[$0+12>>2])){$3=-29056;break label$1}$6=HEAP32[$1+24>>2];$13=1;$3=HEAP32[$0+4>>2]}if(($6>>>0)%($3>>>0)){$3=-29056;break label$1}if(HEAP32[$0+208>>2]>=2){memcpy($0+36|0,$5,$3);HEAP32[$1+20>>2]=HEAP32[$1+20>>2]+$3;$6=HEAP32[$1+24>>2]-$3|0;HEAP32[$1+24>>2]=$6;$5=$3+$5|0}$2=$0+36|0;$3=mbedtls_cipher_crypt($10,$2,$3,$5,$6,$5,$4+252|0);if($3){break label$1}$9=HEAP32[$1+24>>2];if(($9|0)!=HEAP32[$4+252>>2]){$3=-27648;break label$1}if(HEAP32[$0+208>>2]<=1){memcpy($2,$0+184|0,HEAP32[$0+4>>2]);$9=HEAP32[$1+24>>2]}$3=HEAPU8[($5+$9|0)+ -1|0];$2=$13?$9>>>0>$3>>>0:$9>>>0>=($3+HEAP32[$0+12>>2]|0)+1>>>0;if(HEAP32[$0+208>>2]<1){$3=-27648;break label$1}$10=$2?$3:0;$8=$10+1|0;$3=$9+ -256|0;$3=$3>>>0>$9>>>0?0:$3;label$27:{if($3>>>0>=$9>>>0){$6=0;break label$27}$12=$9-$8|0;$6=0;while(1){$7=$3>>>0>=$12>>>0|$7;$6=(($10|0)==HEAPU8[$3+$5|0]?$7:0)+$6|0;$3=$3+1|0;if(($9|0)!=($3|0)){continue}break}}$11=$2&($6|0)==($8|0);$8=$8&($11?511:0);$2=$9-$8|0;HEAP32[$1+24>>2]=$2;if(!$13){HEAP32[$1+24>>2]=$2-HEAP32[$0+12>>2];ssl_extract_add_data_from_record($4+192|0,$4+188|0,$1);if(HEAP32[$0+208>>2]<1){break label$9}$3=HEAP32[$1+24>>2];$14=memset($4,0,128);$2=HEAP32[$0+64>>2];$7=0;label$31:{if(!$2){break label$31}$7=HEAP32[$2>>2]}$2=$7+ -3|0;if($2>>>0>4){break label$9}label$32:{label$33:{switch($2-2|0){default:$13=HEAP32[$14+188>>2];$2=($13+HEAP32[$1+24>>2]|0)+8|0;$9=$2>>>6|0;$7=$2+$8>>>6|0;break label$32;case 2:break label$33;case 0:break label$9}}$13=HEAP32[$14+188>>2];$2=($13+HEAP32[$1+24>>2]|0)+16|0;$9=$2>>>7|0;$7=$2+$8>>>7|0}$10=$3+$8|0;$2=$10+ -256|0;$12=$2>>>0>$10>>>0?0:$2;$6=$0- -64|0;mbedtls_md_hmac_update($6,$14+192|0,$13);mbedtls_md_hmac_update($6,$5,HEAP32[$1+24>>2]);ssl_read_memory(HEAP32[$1+24>>2]+$5|0,$8);mbedtls_md_hmac_finish($6,$14+128|0);$3=0;$7=$7-$9&($11?255:0);while(1){label$36:{if(!$6){break label$36}$2=HEAP32[$6>>2];if(!$2){break label$36}FUNCTION_TABLE[HEAP32[$2+44>>2]](HEAP32[$6+4>>2],$14)|0}$2=($3|0)==($7|0);$3=$3+1|0;if(!$2){continue}break}mbedtls_md_hmac_reset($6);ssl_read_memory($5+$12|0,HEAP32[$0+12>>2]+($10-$12|0)|0);if(mbedtls_ssl_safer_memcmp(HEAP32[$1+24>>2]+$5|0,$14+128|0,HEAP32[$0+12>>2])){$3=-29056;break label$1}$3=-29056;if(!!$11){break label$10}break label$1}$3=-29056;if(!$11){break label$1}}$3=0;break label$1}$3=-27648}global$0=$4+256|0;return $3}function void_20std____2____inplace_merge_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;label$1:{if(!$5){break label$1}while(1){label$3:{label$4:{if(!(($5|0)<=($7|0)|($4|0)<=($7|0))){if(!$4){break label$1}$8=HEAP32[HEAP32[$3>>2]+236>>2];$17=HEAP32[$1>>2];$9=HEAP32[($8+($17<<4)|0)+8>>2];while(1){$12=HEAP32[$0>>2];if($9>>>0>HEAPU32[($8+($12<<4)|0)+8>>2]){break label$4}$0=$0+4|0;$4=$4+ -1|0;if($4){continue}break}break label$1}if(($4|0)>($5|0)){break label$3}if(($0|0)==($1|0)){break label$1}$8=$6;$9=$0;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($1|0)){continue}break}if(($6|0)==($8|0)){break label$1}$3=HEAP32[$3>>2];while(1){if(($1|0)==($2|0)){$1=$8-$6|0;if(!$1){break label$1}memmove($0,$6,$1);return}$5=HEAP32[$3+236>>2];$4=HEAP32[$1>>2];$7=HEAP32[$6>>2];label$10:{if(HEAPU32[($5+($4<<4)|0)+8>>2]>HEAPU32[($5+($7<<4)|0)+8>>2]){HEAP32[$0>>2]=$4;$1=$1+4|0;break label$10}HEAP32[$0>>2]=$7;$6=$6+4|0}$0=$0+4|0;if(($6|0)!=($8|0)){continue}break}break label$1}label$12:{if(($4|0)<($5|0)){$15=($5|0)/2|0;$12=($15<<2)+$1|0;$9=$1-$0|0;label$14:{if(!$9){$11=$0;break label$14}$9=$9>>2;$13=HEAP32[($8+(HEAP32[$12>>2]<<4)|0)+8>>2];$11=$0;while(1){$10=$9>>>1|0;$14=($10<<2)+$11|0;$16=$13>>>0>HEAPU32[($8+(HEAP32[$14>>2]<<4)|0)+8>>2];$11=$16?$11:$14+4|0;$9=$16?$10:($10^-1)+$9|0;if($9){continue}break}}$16=$11-$0>>2;break label$12}if(($4|0)==1){HEAP32[$0>>2]=$17;HEAP32[$1>>2]=$12;return}$16=($4|0)/2|0;$11=($16<<2)+$0|0;$9=$2-$1|0;label$18:{if(!$9){$12=$1;break label$18}$9=$9>>2;$13=HEAP32[($8+(HEAP32[$11>>2]<<4)|0)+8>>2];$12=$1;while(1){$10=$9>>>1|0;$14=($10<<2)+$12|0;$15=HEAPU32[($8+(HEAP32[$14>>2]<<4)|0)+8>>2]>$13>>>0;$12=$15?$14+4|0:$12;$9=$15?($10^-1)+$9|0:$10;if($9){continue}break}}$15=$12-$1>>2}$5=$5-$15|0;$4=$4-$16|0;$8=$12;label$21:{if(($1|0)==($11|0)){break label$21}$8=$11;if(($1|0)==($12|0)){break label$21}$8=$11+4|0;if(($8|0)==($1|0)){$8=$12-$1|0;$9=$8>>2;$10=HEAP32[$11>>2];if($8){memmove($11,$1,$8)}$8=($9<<2)+$11|0;HEAP32[$8>>2]=$10;break label$21}$10=$1+4|0;if(($10|0)==($12|0)){$1=$12+ -4|0;$9=HEAP32[$1>>2];$8=$12;$1=$1-$11|0;if($1){$8=$12-$1|0;memmove($8,$11,$1)}HEAP32[$11>>2]=$9;break label$21}$18=$12-$1>>2;$9=$18;$14=$1-$11>>2;$13=$14;if(($9|0)==($14|0)){$9=HEAP32[$11>>2];HEAP32[$11>>2]=$17;HEAP32[$1>>2]=$9;while(1){$9=HEAP32[$8>>2];HEAP32[$8>>2]=HEAP32[$10>>2];HEAP32[$10>>2]=$9;$10=$10+4|0;$8=$8+4|0;if(($8|0)!=($1|0)){continue}break}$8=$1;break label$21}while(1){$1=$9;$9=($13|0)%($1|0)|0;$13=$1;if($9){continue}break}if($13){$1=($13<<2)+$11|0;while(1){$1=$1+ -4|0;$13=$14<<2;$10=$1+$13|0;$17=HEAP32[$1>>2];$9=$1;while(1){$8=$10;HEAP32[$9>>2]=HEAP32[$8>>2];$9=$8;$10=$12-$8>>2;$10=($14|0)<($10|0)?$8+$13|0:($14-$10<<2)+$11|0;if(($10|0)!=($1|0)){continue}break}HEAP32[$8>>2]=$17;if(($1|0)!=($11|0)){continue}break}}$8=($18<<2)+$11|0}label$32:{if(($15+$16|0)<($4+$5|0)){void_20std____2____inplace_merge_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$11,$8,$3,$16,$15,$6,$7);$0=$8;$1=$12;break label$32}void_20std____2____inplace_merge_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($8,$12,$2,$3,$4,$5,$6,$7);$5=$15;$4=$16;$2=$8;$1=$11}if($5){continue}break label$1}break}if(($1|0)==($2|0)){break label$1}$9=$1;$8=$6;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($2|0)){continue}break}if(($6|0)==($8|0)){break label$1}$5=HEAP32[$3>>2];$10=$8;while(1){if(($0|0)==($1|0)){if(($6|0)==($8|0)){break label$1}while(1){$2=$2+ -4|0;$8=$8+ -4|0;HEAP32[$2>>2]=HEAP32[$8>>2];if(($6|0)!=($8|0)){continue}break}break label$1}$3=HEAP32[$5+236>>2];$4=$10+ -4|0;$7=HEAP32[$4>>2];$9=$1+ -4|0;$12=HEAP32[$9>>2];$3=HEAPU32[($3+($7<<4)|0)+8>>2]>HEAPU32[($3+($12<<4)|0)+8>>2];$2=$2+ -4|0;HEAP32[$2>>2]=$3?$12:$7;$1=$3?$9:$1;$8=$3?$8:$4;$10=$3?$10:$4;if(($10|0)!=($6|0)){continue}break}}}function dmWebsocket__WebsocketOnUpdate_28dmExtension__Params__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$2=global$0-2304|0;global$0=$2;$0=HEAP32[145211];$1=HEAP32[145212]-$0|0;label$1:{if(!$1){break label$1}$6=$1>>2;label$2:{label$3:{while(1){$1=$5<<2;$0=HEAP32[$1+$0>>2];$3=HEAP32[$0+2220>>2];label$5:{if($3>>>0>4){break label$5}label$6:{switch($3-1|0){case 3:if(HEAP32[$0+2240>>2]){dmWebsocket__HandleCallback_28dmWebsocket__WebsocketConnection__2c_20int_29($0,3)}dmWebsocket__HandleCallback_28dmWebsocket__WebsocketConnection__2c_20int_29($0,1);$3=HEAP32[145212];$4=HEAP32[145211];if($3-$4>>2>>>0<=$5>>>0){break label$3}HEAP32[$1+$4>>2]=HEAP32[$3+ -4>>2];$1=HEAP32[145212]+ -4|0;HEAP32[145212]=$1;if($1>>>0>2];if($1){dmScript__DestroyCallback_28dmScript__LuaCallbackInfo__29($1)}$1=HEAP32[$0+2196>>2];if(($1|0)!=-1){dmSocket__Delete_28int_29($1)}$6=$6+ -1|0;$5=$5+ -1|0;dlfree(HEAP32[$0+2228>>2]);dlfree($0);break label$5;case 2:HEAP32[$2+176>>2]=0;label$14:{$1=dmWebsocket__Receive_28dmWebsocket__WebsocketConnection__2c_20void__2c_20int_2c_20int__29($0,HEAP32[$0+2228>>2],HEAP32[$0+2236>>2]+ -1|0,$2+176|0);$3=$1+3|0;if($3>>>0>3){break label$14}label$15:{switch($3-1|0){case 0:case 1:break label$14;case 2:break label$15;default:break label$5}}HEAP32[$0+2232>>2]=HEAP32[$0+2232>>2]+HEAP32[$2+176>>2];HEAP8[(HEAP32[$0+2236>>2]+HEAP32[$0+2228>>2]|0)+ -1|0]=0;HEAP8[$0+2224|0]=HEAPU8[$0+2224|0]|2;dmWebsocket__HandleCallback_28dmWebsocket__WebsocketConnection__2c_20int_29($0,2);HEAP32[$0+2232>>2]=0;HEAP8[$0+2224|0]=HEAPU8[$0+2224|0]&253;break label$5}HEAP32[$2>>2]=dmSocket__ResultToString_28dmSocket__Result_29($1);dmWebsocket__SetStatus_28dmWebsocket__WebsocketConnection__2c_20dmWebsocket__Result_2c_20char_20const__2c_20____29($0,1,1868,$2);if(HEAP32[$0+2220>>2]==4){break label$5}HEAP32[$0+2220>>2]=4;break label$5;case 1:dmSocket__SetBlocking_28int_2c_20bool_29(HEAP32[$0+2196>>2],0);HEAP8[HEAP32[$0+2228>>2]]=0;HEAP32[$0+2232>>2]=0;if(HEAP32[$0+2220>>2]!=3){HEAP32[$0+2220>>2]=3}dmWebsocket__HandleCallback_28dmWebsocket__WebsocketConnection__2c_20int_29($0,0);break label$5;case 0:label$17:{label$18:{$1=dmWebsocket__SendClientHandshake_28dmWebsocket__WebsocketConnection__29($0);if($1>>>0>5){break label$18}switch($1-1|0){case 0:case 1:case 2:case 3:break label$18;case 4:break label$5;default:break label$17}}HEAP32[$2+48>>2]=$1;dmWebsocket__SetStatus_28dmWebsocket__WebsocketConnection__2c_20dmWebsocket__Result_2c_20char_20const__2c_20____29($0,1,1984,$2+48|0);if(HEAP32[$0+2220>>2]==4){break label$5}HEAP32[$0+2220>>2]=4;break label$5}if(HEAP32[$0+2220>>2]==2){break label$5}HEAP32[$0+2220>>2]=2;break label$5;default:break label$6}}HEAP32[$0+2200>>2]=0;$3=$0+76|0;HEAP32[$2+144>>2]=$3;HEAP32[$2+148>>2]=$0+144;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($2+176|0,2124,2013,$2+144|0);$1=$2+152|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$4=dmSocket__GetHostByName_28char_20const__2c_20dmSocket__Address__2c_20bool_2c_20bool_29($2+176|0,$1,1,0);if($4){HEAP32[$2+132>>2]=dmSocket__ResultToString_28dmSocket__Result_29($4);HEAP32[$2+128>>2]=$2+176;dmWebsocket__SetStatus_28dmWebsocket__WebsocketConnection__2c_20dmWebsocket__Result_2c_20char_20const__2c_20____29($0,1,2019,$2+128|0);if(HEAP32[$0+2220>>2]==4){break label$5}HEAP32[$0+2220>>2]=4;break label$5}$4=dmSocket__New_28dmSocket__Domain_2c_20dmSocket__Type_2c_20dmSocket__Protocol_2c_20int__29(HEAP32[$2+152>>2],0,0,$0+2196|0);if($4){HEAP32[$2+116>>2]=dmSocket__ResultToString_28dmSocket__Result_29($4);HEAP32[$2+112>>2]=$3;dmWebsocket__SetStatus_28dmWebsocket__WebsocketConnection__2c_20dmWebsocket__Result_2c_20char_20const__2c_20____29($0,1,2065,$2+112|0);if(HEAP32[$0+2220>>2]==4){break label$5}HEAP32[$0+2220>>2]=4;break label$5}$4=HEAP32[$0+140>>2];$8=HEAP32[$0+2196>>2];HEAP32[$2+104>>2]=HEAP32[$1+16>>2];$7=HEAP32[$1+12>>2];HEAP32[$2+96>>2]=HEAP32[$1+8>>2];HEAP32[$2+100>>2]=$7;$7=HEAP32[$1+4>>2];HEAP32[$2+88>>2]=HEAP32[$1>>2];HEAP32[$2+92>>2]=$7;$1=dmSocket__Connect_28int_2c_20dmSocket__Address_2c_20int_29($8,$2+88|0,$4);if($1){$4=HEAP32[$0+140>>2];HEAP32[$2+72>>2]=dmSocket__ResultToString_28dmSocket__Result_29($1);HEAP32[$2+68>>2]=$4;HEAP32[$2+64>>2]=$3;dmWebsocket__SetStatus_28dmWebsocket__WebsocketConnection__2c_20dmWebsocket__Result_2c_20char_20const__2c_20____29($0,1,2102,$2- -64|0);if(HEAP32[$0+2220>>2]==4){break label$5}HEAP32[$0+2220>>2]=4;break label$5}if(HEAP32[$0+2220>>2]==1){break label$5}HEAP32[$0+2220>>2]=1}$5=$5+1|0;if($5>>>0>=$6>>>0){break label$1}$0=HEAP32[145211];if(HEAP32[145212]-$0>>2>>>0>$5>>>0){continue}break}__assert_fail(1772,1416,430,1783);abort()}__assert_fail(2180,1416,464,2195);abort()}__assert_fail(2205,1416,467,2195);abort()}global$0=$2+2304|0;return 0}function b2RevoluteJoint__SolveVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=0,$4=Math_fround(0),$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0);$3=global$0-48|0;global$0=$3;$14=HEAP32[$1+28>>2];$5=$14+Math_imul(HEAP32[$0+132>>2],12)|0;$9=HEAPF32[$5+8>>2];$11=HEAPF32[$5+4>>2];$12=HEAPF32[$5>>2];$5=$14+Math_imul(HEAP32[$0+128>>2],12)|0;$10=HEAPF32[$5+8>>2];$15=HEAPF32[$5+4>>2];$16=HEAPF32[$5>>2];$17=HEAPF32[$0+172>>2];$18=HEAPF32[$0+168>>2];$20=HEAPF32[$0+176>>2];$21=HEAPF32[$0+180>>2];$4=Math_fround($20+$21);if(!(!HEAPU8[$0+100|0]|$4==Math_fround(0)|HEAP32[$0+224>>2]==3)){$2=Math_fround(HEAPF32[$1>>2]*HEAPF32[$0+104>>2]);$7=Math_fround(-$2);$6=HEAPF32[$0+96>>2];$8=Math_fround($6-Math_fround(HEAPF32[$0+220>>2]*Math_fround(Math_fround($9-$10)-HEAPF32[$0+108>>2])));$2=$8<$2?$8:$2;$2=$2<$7?$7:$2;HEAPF32[$0+96>>2]=$2;$2=Math_fround($2-$6);$9=Math_fround($9+Math_fround($21*$2));$10=Math_fround($10-Math_fround($20*$2))}label$2:{if(!(!HEAP32[$0+224>>2]|(!HEAPU8[$0+112|0]|$4==Math_fround(0)))){$4=HEAPF32[$0+148>>2];$2=HEAPF32[$0+140>>2];$7=HEAPF32[$0+144>>2];$6=HEAPF32[$0+136>>2];HEAPF32[$3+40>>2]=$9-$10;$22=Math_fround(Math_fround(Math_fround(Math_fround($9*$7)+$11)-$15)-Math_fround($10*$6));HEAPF32[$3+36>>2]=$22;$23=Math_fround(Math_fround(Math_fround($12-Math_fround($9*$4))-$16)+Math_fround($10*$2));HEAPF32[$3+32>>2]=$23;$5=$0+184|0;b2Mat33__Solve33_28b2Vec3_20const__29_20const($3+16|0,$5,$3+32|0);$6=HEAPF32[$3+24>>2];$7=Math_fround(-$6);$8=HEAPF32[$3+20>>2];$2=Math_fround(-$8);$19=HEAPF32[$3+16>>2];$4=Math_fround(-$19);$14=HEAP32[$0+224>>2]+ -1|0;label$4:{if($14>>>0>2){break label$4}label$5:{switch($14-1|0){case 1:HEAPF32[$0+84>>2]=HEAPF32[$0+84>>2]-$19;HEAPF32[$0+88>>2]=HEAPF32[$0+88>>2]-$8;HEAPF32[$0+92>>2]=HEAPF32[$0+92>>2]-$6;break label$4;default:$13=HEAPF32[$0+92>>2];$6=Math_fround($13-$6);if(!!($6>2];HEAPF32[$3+20>>2]=Math_fround($13*HEAPF32[$0+212>>2])-$22;HEAPF32[$3+16>>2]=Math_fround($13*$4)-$23;b2Mat33__Solve22_28b2Vec2_20const__29_20const($3+8|0,$5,$3+16|0);$7=HEAPF32[$0+92>>2];$2=HEAPF32[$3+12>>2];$4=HEAPF32[$3+8>>2];HEAP32[$0+92>>2]=0;HEAPF32[$0+84>>2]=$4+HEAPF32[$0+84>>2];HEAPF32[$0+88>>2]=$2+HEAPF32[$0+88>>2];$7=Math_fround(-$7);break label$4}HEAPF32[$0+92>>2]=$6;HEAPF32[$0+84>>2]=HEAPF32[$0+84>>2]-$19;HEAPF32[$0+88>>2]=HEAPF32[$0+88>>2]-$8;break label$4;case 0:break label$5}}$13=HEAPF32[$0+92>>2];$6=Math_fround($13-$6);if(!!($6>Math_fround(0))){$4=HEAPF32[$0+208>>2];HEAPF32[$3+20>>2]=Math_fround($13*HEAPF32[$0+212>>2])-$22;HEAPF32[$3+16>>2]=Math_fround($13*$4)-$23;b2Mat33__Solve22_28b2Vec2_20const__29_20const($3+8|0,$5,$3+16|0);$7=HEAPF32[$0+92>>2];$2=HEAPF32[$3+12>>2];$4=HEAPF32[$3+8>>2];HEAP32[$0+92>>2]=0;HEAPF32[$0+84>>2]=$4+HEAPF32[$0+84>>2];HEAPF32[$0+88>>2]=$2+HEAPF32[$0+88>>2];$7=Math_fround(-$7);break label$4}HEAPF32[$0+92>>2]=$6;HEAPF32[$0+84>>2]=HEAPF32[$0+84>>2]-$19;HEAPF32[$0+88>>2]=HEAPF32[$0+88>>2]-$8}$6=Math_fround($7+Math_fround(Math_fround($2*HEAPF32[$0+144>>2])-Math_fround($4*HEAPF32[$0+148>>2])));$8=Math_fround($7+Math_fround(Math_fround($2*HEAPF32[$0+136>>2])-Math_fround($4*HEAPF32[$0+140>>2])));$7=Math_fround(Math_fround($17*$2)+$11);$12=Math_fround(Math_fround($17*$4)+$12);$4=Math_fround($16-Math_fround($18*$4));$11=Math_fround($15-Math_fround($18*$2));break label$2}$4=HEAPF32[$0+148>>2];$2=HEAPF32[$0+140>>2];HEAPF32[$3+20>>2]=-Math_fround(Math_fround(Math_fround(Math_fround($9*HEAPF32[$0+144>>2])+$11)-$15)-Math_fround($10*HEAPF32[$0+136>>2]));HEAPF32[$3+16>>2]=-Math_fround(Math_fround(Math_fround($12-Math_fround($9*$4))-$16)+Math_fround($10*$2));b2Mat33__Solve22_28b2Vec2_20const__29_20const($3+32|0,$0+184|0,$3+16|0);$4=HEAPF32[$3+32>>2];HEAPF32[$0+84>>2]=$4+HEAPF32[$0+84>>2];$2=HEAPF32[$3+36>>2];HEAPF32[$0+88>>2]=$2+HEAPF32[$0+88>>2];$6=Math_fround(Math_fround($2*HEAPF32[$0+144>>2])-Math_fround($4*HEAPF32[$0+148>>2]));$8=Math_fround(Math_fround($2*HEAPF32[$0+136>>2])-Math_fround($4*HEAPF32[$0+140>>2]));$12=Math_fround(Math_fround($17*$4)+$12);$4=Math_fround($16-Math_fround($18*$4));$7=Math_fround(Math_fround($17*$2)+$11);$11=Math_fround($15-Math_fround($18*$2))}$5=HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+128>>2],12)|0;HEAPF32[$5+4>>2]=$11;HEAPF32[$5>>2]=$4;$5=HEAP32[$1+28>>2];HEAPF32[($5+Math_imul(HEAP32[$0+128>>2],12)|0)+8>>2]=$10-Math_fround($20*$8);$5=$5+Math_imul(HEAP32[$0+132>>2],12)|0;HEAPF32[$5+4>>2]=$7;HEAPF32[$5>>2]=$12;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+132>>2],12)|0)+8>>2]=$9+Math_fround($21*$6);global$0=$3+48|0}function void_20std____2____inplace_merge_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;label$1:{if(!$5){break label$1}while(1){label$3:{label$4:{if(!(($5|0)<=($7|0)|($4|0)<=($7|0))){if(!$4){break label$1}$8=HEAP32[$3>>2];$17=HEAP32[$1>>2];$9=HEAP32[($8+Math_imul($17,48)|0)+24>>2];while(1){$12=HEAP32[$0>>2];if($9>>>0>2]){break label$4}$0=$0+4|0;$4=$4+ -1|0;if($4){continue}break}break label$1}if(($4|0)>($5|0)){break label$3}if(($0|0)==($1|0)){break label$1}$8=$6;$9=$0;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($1|0)){continue}break}if(($6|0)==($8|0)){break label$1}$3=HEAP32[$3>>2];while(1){if(($1|0)==($2|0)){$1=$8-$6|0;if(!$1){break label$1}memmove($0,$6,$1);return}$4=HEAP32[$1>>2];$5=HEAP32[$6>>2];label$10:{if(HEAPU32[($3+Math_imul($4,48)|0)+24>>2]>2]){HEAP32[$0>>2]=$4;$1=$1+4|0;break label$10}HEAP32[$0>>2]=$5;$6=$6+4|0}$0=$0+4|0;if(($6|0)!=($8|0)){continue}break}break label$1}label$12:{if(($4|0)<($5|0)){$15=($5|0)/2|0;$12=($15<<2)+$1|0;$9=$1-$0|0;label$14:{if(!$9){$11=$0;break label$14}$9=$9>>2;$13=HEAP32[($8+Math_imul(HEAP32[$12>>2],48)|0)+24>>2];$11=$0;while(1){$10=$9>>>1|0;$14=($10<<2)+$11|0;$16=$13>>>0>2],48)|0)+24>>2];$11=$16?$11:$14+4|0;$9=$16?$10:($10^-1)+$9|0;if($9){continue}break}}$16=$11-$0>>2;break label$12}if(($4|0)==1){HEAP32[$0>>2]=$17;HEAP32[$1>>2]=$12;return}$16=($4|0)/2|0;$11=($16<<2)+$0|0;$9=$2-$1|0;label$18:{if(!$9){$12=$1;break label$18}$9=$9>>2;$13=HEAP32[($8+Math_imul(HEAP32[$11>>2],48)|0)+24>>2];$12=$1;while(1){$10=$9>>>1|0;$14=($10<<2)+$12|0;$15=HEAPU32[($8+Math_imul(HEAP32[$14>>2],48)|0)+24>>2]<$13>>>0;$12=$15?$14+4|0:$12;$9=$15?($10^-1)+$9|0:$10;if($9){continue}break}}$15=$12-$1>>2}$5=$5-$15|0;$4=$4-$16|0;$8=$12;label$21:{if(($1|0)==($11|0)){break label$21}$8=$11;if(($1|0)==($12|0)){break label$21}$8=$11+4|0;if(($8|0)==($1|0)){$8=$12-$1|0;$9=$8>>2;$10=HEAP32[$11>>2];if($8){memmove($11,$1,$8)}$8=($9<<2)+$11|0;HEAP32[$8>>2]=$10;break label$21}$10=$1+4|0;if(($10|0)==($12|0)){$1=$12+ -4|0;$9=HEAP32[$1>>2];$8=$12;$1=$1-$11|0;if($1){$8=$12-$1|0;memmove($8,$11,$1)}HEAP32[$11>>2]=$9;break label$21}$18=$12-$1>>2;$9=$18;$14=$1-$11>>2;$13=$14;if(($9|0)==($14|0)){$9=HEAP32[$11>>2];HEAP32[$11>>2]=$17;HEAP32[$1>>2]=$9;while(1){$9=HEAP32[$8>>2];HEAP32[$8>>2]=HEAP32[$10>>2];HEAP32[$10>>2]=$9;$10=$10+4|0;$8=$8+4|0;if(($8|0)!=($1|0)){continue}break}$8=$1;break label$21}while(1){$1=$9;$9=($13|0)%($1|0)|0;$13=$1;if($9){continue}break}if($13){$1=($13<<2)+$11|0;while(1){$1=$1+ -4|0;$13=$14<<2;$10=$1+$13|0;$17=HEAP32[$1>>2];$9=$1;while(1){$8=$10;HEAP32[$9>>2]=HEAP32[$8>>2];$9=$8;$10=$12-$8>>2;$10=($14|0)<($10|0)?$8+$13|0:($14-$10<<2)+$11|0;if(($10|0)!=($1|0)){continue}break}HEAP32[$8>>2]=$17;if(($1|0)!=($11|0)){continue}break}}$8=($18<<2)+$11|0}label$32:{if(($15+$16|0)<($4+$5|0)){void_20std____2____inplace_merge_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$11,$8,$3,$16,$15,$6,$7);$0=$8;$1=$12;break label$32}void_20std____2____inplace_merge_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($8,$12,$2,$3,$4,$5,$6,$7);$5=$15;$4=$16;$2=$8;$1=$11}if($5){continue}break label$1}break}if(($1|0)==($2|0)){break label$1}$9=$1;$8=$6;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($2|0)){continue}break}if(($6|0)==($8|0)){break label$1}$4=HEAP32[$3>>2];$10=$8;while(1){if(($0|0)==($1|0)){if(($6|0)==($8|0)){break label$1}while(1){$2=$2+ -4|0;$8=$8+ -4|0;HEAP32[$2>>2]=HEAP32[$8>>2];if(($6|0)!=($8|0)){continue}break}break label$1}$5=$10+ -4|0;$7=HEAP32[$5>>2];$9=$1+ -4|0;$12=HEAP32[$9>>2];$3=HEAPU32[($4+Math_imul($7,48)|0)+24>>2]>2];$2=$2+ -4|0;HEAP32[$2>>2]=$3?$12:$7;$1=$3?$9:$1;$8=$3?$8:$5;$10=$3?$10:$5;if(($10|0)!=($6|0)){continue}break}}}function b2ContactSolver__InitializeVelocityConstraints_28_29($0){var $1=0,$2=Math_fround(0),$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=0,$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=0,$21=0,$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=Math_fround(0);$8=global$0+ -64|0;global$0=$8;label$1:{if(HEAP32[$0+48>>2]>=1){while(1){$1=HEAP32[$0+40>>2]+Math_imul($17,152)|0;$14=HEAP32[HEAP32[$0+44>>2]+(HEAP32[$1+148>>2]<<2)>>2];if(HEAP32[$14+132>>2]<=0){break label$1}$13=HEAPF32[$1+132>>2];$18=HEAPF32[$1+128>>2];$15=HEAPF32[$1+124>>2];$27=HEAPF32[$1+120>>2];$16=HEAP32[$0+28>>2];$9=Math_imul(HEAP32[$1+116>>2],12);$3=$16+$9|0;$19=HEAPF32[$3+8>>2];$28=HEAPF32[$3+4>>2];$29=HEAPF32[$3>>2];$20=HEAP32[$0+24>>2];$9=$20+$9|0;$2=HEAPF32[$9+8>>2];$21=Math_imul(HEAP32[$1+112>>2],12);$3=$16+$21|0;$22=HEAPF32[$3+8>>2];$30=HEAPF32[$3+4>>2];$31=HEAPF32[$3>>2];$3=HEAP32[$0+36>>2]+Math_imul($17,88)|0;$32=HEAPF32[$3+76>>2];$33=HEAPF32[$3+80>>2];$23=HEAPF32[$9>>2];$24=HEAPF32[$9+4>>2];$7=HEAPF32[$3+60>>2];$5=HEAPF32[$3+56>>2];$9=$20+$21|0;$25=HEAPF32[$9>>2];$26=HEAPF32[$9+4>>2];$10=HEAPF32[$3+52>>2];$12=HEAPF32[$3+48>>2];$6=HEAPF32[$9+8>>2];$11=cosf($6);HEAPF32[$8+60>>2]=$11;$6=sinf($6);HEAPF32[$8+56>>2]=$6;$4=cosf($2);HEAPF32[$8+44>>2]=$4;$2=sinf($2);HEAPF32[$8+40>>2]=$2;HEAPF32[$8+52>>2]=$26-Math_fround(Math_fround($11*$10)+Math_fround($6*$12));HEAPF32[$8+48>>2]=$25-Math_fround(Math_fround($11*$12)-Math_fround($6*$10));HEAPF32[$8+36>>2]=$24-Math_fround(Math_fround($4*$7)+Math_fround($2*$5));HEAPF32[$8+32>>2]=$23-Math_fround(Math_fround($4*$5)-Math_fround($2*$7));b2WorldManifold__Initialize_28b2Manifold_20const__2c_20b2Transform_20const__2c_20float_2c_20b2Transform_20const__2c_20float_29($8+8|0,$14- -64|0,$8+48|0,$32,$8+32|0,$33);$3=HEAP32[$8+12>>2];HEAP32[$1+72>>2]=HEAP32[$8+8>>2];HEAP32[$1+76>>2]=$3;$16=HEAP32[$1+144>>2];label$4:{if(($16|0)<1){break label$4}$7=Math_fround($27+$15);$9=0;while(1){$14=($8+8|0)+($9<<3)|0;$2=HEAPF32[$14+8>>2];$3=Math_imul($9,36)+$1|0;$10=Math_fround(HEAPF32[$14+12>>2]-$26);HEAPF32[$3+4>>2]=$10;$12=Math_fround($2-$25);HEAPF32[$3>>2]=$12;$2=HEAPF32[$14+8>>2];$11=Math_fround(HEAPF32[$14+12>>2]-$24);HEAPF32[$3+12>>2]=$11;$6=Math_fround($2-$23);HEAPF32[$3+8>>2]=$6;$5=HEAPF32[$1+76>>2];$2=HEAPF32[$1+72>>2];HEAP32[$3+32>>2]=0;$4=Math_fround(Math_fround($12*$5)-Math_fround($10*$2));$15=Math_fround($7+Math_fround($4*Math_fround($18*$4)));$4=Math_fround(Math_fround($5*$6)-Math_fround($2*$11));$4=Math_fround($15+Math_fround($4*Math_fround($13*$4)));HEAPF32[$3+24>>2]=$4>Math_fround(0)?Math_fround(Math_fround(1)/$4):Math_fround(0);$4=Math_fround(-$2);$15=Math_fround(Math_fround($12*$4)-Math_fround($5*$10));$4=Math_fround(Math_fround($6*$4)-Math_fround($5*$11));$4=Math_fround(Math_fround($7+Math_fround($15*Math_fround($18*$15)))+Math_fround($4*Math_fround($13*$4)));HEAPF32[$3+28>>2]=$4>Math_fround(0)?Math_fround(Math_fround(1)/$4):Math_fround(0);$5=Math_fround(Math_fround($5*Math_fround(Math_fround(Math_fround($28+Math_fround($19*$6))-$30)-Math_fround($22*$12)))+Math_fround($2*Math_fround(Math_fround($22*$10)+Math_fround(Math_fround($29-Math_fround($19*$11))-$31))));if(!!($5>2]=$5*Math_fround(-HEAPF32[$1+140>>2])}$9=$9+1|0;if(($16|0)!=($9|0)){continue}break}if(HEAP32[$1+144>>2]!=2){break label$4}$10=HEAPF32[$1+76>>2];$5=Math_fround(Math_fround(HEAPF32[$1>>2]*$10)-Math_fround(HEAPF32[$1+4>>2]*$2));$12=Math_fround($18*$5);$6=Math_fround(Math_fround($10*HEAPF32[$1+8>>2])-Math_fround($2*HEAPF32[$1+12>>2]));$11=Math_fround($13*$6);$5=Math_fround(Math_fround($7+Math_fround($5*$12))+Math_fround($6*$11));$6=Math_fround(Math_fround($10*HEAPF32[$1+36>>2])-Math_fround($2*HEAPF32[$1+40>>2]));$2=Math_fround(Math_fround($10*HEAPF32[$1+44>>2])-Math_fround($2*HEAPF32[$1+48>>2]));$13=Math_fround(Math_fround($7+Math_fround($6*Math_fround($18*$6)))+Math_fround($2*Math_fround($13*$2)));$2=Math_fround(Math_fround($7+Math_fround($12*$6))+Math_fround($11*$2));$7=Math_fround(Math_fround($5*$13)-Math_fround($2*$2));if(!!(Math_fround($5*$5)>2]=$5;HEAPF32[$1+108>>2]=$13;HEAPF32[$1+104>>2]=$2;HEAPF32[$1+100>>2]=$2;$7=$7!=Math_fround(0)?Math_fround(Math_fround(1)/$7):$7;HEAPF32[$1+92>>2]=$5*$7;HEAPF32[$1+80>>2]=$13*$7;$2=Math_fround($2*Math_fround(-$7));HEAPF32[$1+88>>2]=$2;HEAPF32[$1+84>>2]=$2;break label$4}HEAP32[$1+144>>2]=1}$17=$17+1|0;if(($17|0)>2]){continue}break}}global$0=$8- -64|0;return}__assert_fail(96860,96787,168,96885);abort()}function dmHashBuffer32($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$6=global$0-16|0;global$0=$6;$2=$0;$3=$1;if($3>>>0>=4){while(1){$7=$5;$5=Math_imul(HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24),1540483477);$5=Math_imul($7^Math_imul($5>>>24^$5,1540483477),1540483477);$2=$2+4|0;$3=$3+ -4|0;if($3>>>0>3){continue}break}}$3=$3+ -1|0;if($3>>>0<=2){label$4:{switch($3-1|0){case 1:$4=HEAPU8[$2+2|0]<<16;case 0:$4=HEAPU8[$2+1|0]<<8|$4;break;default:break label$4}}$4=Math_imul(HEAPU8[$2|0]^$4,1540483477)}$2=Math_imul($1,1540483477);$2=Math_imul(Math_imul($4>>>24^$4,1540483477)^$5,1540483477)^Math_imul($2>>>24^$2,1540483477);$2=Math_imul($2>>>13^$2,1540483477);$3=$2>>>15|0;label$7:{if(HEAP8[1130232]&1){break label$7}if(!__cxa_guard_acquire(1130232)){break label$7}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$4=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$4;__cxa_guard_release(1130232)}$3=$2^$3;if(!(!HEAPU8[1130132]|$1>>>0>1024)){label$9:{if(HEAP8[1130232]&1){break label$9}if(!__cxa_guard_acquire(1130232)){break label$9}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$4=HEAP32[282532];dmMutex__Lock_28dmMutex__Mutex__29($4);label$10:{if(HEAP8[1130232]&1){break label$10}if(!__cxa_guard_acquire(1130232)){break label$10}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$2=HEAP32[282535];label$11:{label$12:{if(!$2){break label$12}$2=HEAP32[HEAP32[282534]+(($3>>>0)%($2>>>0)<<2)>>2];if(($2|0)==-1){break label$12}$5=HEAP32[282536];while(1){$2=$5+($2<<4)|0;if(($3|0)==HEAP32[$2>>2]){break label$11}$2=HEAP32[$2+12>>2];if(($2|0)!=-1){continue}break}}if(HEAP32[282540]==HEAP32[282538]-HEAP32[282536]>>4){label$15:{if(HEAP8[1130232]&1){break label$15}if(!__cxa_guard_acquire(1130232)){break label$15}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$2=HEAP32[282538]-HEAP32[282536]>>4;label$16:{if(HEAP8[1130232]&1){break label$16}if(!__cxa_guard_acquire(1130232)){break label$16}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$5=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$5;__cxa_guard_release(1130232)}dmHashTable_unsigned_20int_2c_20ReverseHashEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130136,1024,$2+256|0)}$0=memcpy(dlmalloc($1+1|0),$0,$1);HEAP8[$0+$1|0]=0;HEAP16[$6+12>>1]=$1;HEAP32[$6+8>>2]=$0;dmHashTable_unsigned_20int_2c_20ReverseHashEntry___Put_28unsigned_20int_2c_20ReverseHashEntry_20const__29(1130136,$3,$6+8|0)}dmMutex__Unlock_28dmMutex__Mutex__29($4)}global$0=$6+16|0;return $3}function void_20std____2____inplace_merge_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;label$1:{if(!$5){break label$1}while(1){label$3:{label$4:{if(!(($5|0)<=($7|0)|($4|0)<=($7|0))){if(!$4){break label$1}$8=HEAP32[HEAP32[$3>>2]+232>>2];$17=HEAP32[$1>>2];$9=HEAP32[($8+($17<<4)|0)+8>>2];while(1){$12=HEAP32[$0>>2];if($9>>>0>HEAPU32[($8+($12<<4)|0)+8>>2]){break label$4}$0=$0+4|0;$4=$4+ -1|0;if($4){continue}break}break label$1}if(($4|0)>($5|0)){break label$3}if(($0|0)==($1|0)){break label$1}$8=$6;$9=$0;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($1|0)){continue}break}if(($6|0)==($8|0)){break label$1}$3=HEAP32[$3>>2];while(1){if(($1|0)==($2|0)){$1=$8-$6|0;if(!$1){break label$1}memmove($0,$6,$1);return}$5=HEAP32[$3+232>>2];$4=HEAP32[$1>>2];$7=HEAP32[$6>>2];label$10:{if(HEAPU32[($5+($4<<4)|0)+8>>2]>HEAPU32[($5+($7<<4)|0)+8>>2]){HEAP32[$0>>2]=$4;$1=$1+4|0;break label$10}HEAP32[$0>>2]=$7;$6=$6+4|0}$0=$0+4|0;if(($6|0)!=($8|0)){continue}break}break label$1}label$12:{if(($4|0)<($5|0)){$15=($5|0)/2|0;$12=($15<<2)+$1|0;$9=$1-$0|0;label$14:{if(!$9){$11=$0;break label$14}$9=$9>>2;$13=HEAP32[($8+(HEAP32[$12>>2]<<4)|0)+8>>2];$11=$0;while(1){$10=$9>>>1|0;$14=($10<<2)+$11|0;$16=$13>>>0>HEAPU32[($8+(HEAP32[$14>>2]<<4)|0)+8>>2];$11=$16?$11:$14+4|0;$9=$16?$10:($10^-1)+$9|0;if($9){continue}break}}$16=$11-$0>>2;break label$12}if(($4|0)==1){HEAP32[$0>>2]=$17;HEAP32[$1>>2]=$12;return}$16=($4|0)/2|0;$11=($16<<2)+$0|0;$9=$2-$1|0;label$18:{if(!$9){$12=$1;break label$18}$9=$9>>2;$13=HEAP32[($8+(HEAP32[$11>>2]<<4)|0)+8>>2];$12=$1;while(1){$10=$9>>>1|0;$14=($10<<2)+$12|0;$15=HEAPU32[($8+(HEAP32[$14>>2]<<4)|0)+8>>2]>$13>>>0;$12=$15?$14+4|0:$12;$9=$15?($10^-1)+$9|0:$10;if($9){continue}break}}$15=$12-$1>>2}$5=$5-$15|0;$4=$4-$16|0;$8=$12;label$21:{if(($1|0)==($11|0)){break label$21}$8=$11;if(($1|0)==($12|0)){break label$21}$8=$11+4|0;if(($8|0)==($1|0)){$8=$12-$1|0;$9=$8>>2;$10=HEAP32[$11>>2];if($8){memmove($11,$1,$8)}$8=($9<<2)+$11|0;HEAP32[$8>>2]=$10;break label$21}$10=$1+4|0;if(($10|0)==($12|0)){$1=$12+ -4|0;$9=HEAP32[$1>>2];$8=$12;$1=$1-$11|0;if($1){$8=$12-$1|0;memmove($8,$11,$1)}HEAP32[$11>>2]=$9;break label$21}$18=$12-$1>>2;$9=$18;$14=$1-$11>>2;$13=$14;if(($9|0)==($14|0)){$9=HEAP32[$11>>2];HEAP32[$11>>2]=$17;HEAP32[$1>>2]=$9;while(1){$9=HEAP32[$8>>2];HEAP32[$8>>2]=HEAP32[$10>>2];HEAP32[$10>>2]=$9;$10=$10+4|0;$8=$8+4|0;if(($8|0)!=($1|0)){continue}break}$8=$1;break label$21}while(1){$1=$9;$9=($13|0)%($1|0)|0;$13=$1;if($9){continue}break}if($13){$1=($13<<2)+$11|0;while(1){$1=$1+ -4|0;$13=$14<<2;$10=$1+$13|0;$17=HEAP32[$1>>2];$9=$1;while(1){$8=$10;HEAP32[$9>>2]=HEAP32[$8>>2];$9=$8;$10=$12-$8>>2;$10=($14|0)<($10|0)?$8+$13|0:($14-$10<<2)+$11|0;if(($10|0)!=($1|0)){continue}break}HEAP32[$8>>2]=$17;if(($1|0)!=($11|0)){continue}break}}$8=($18<<2)+$11|0}label$32:{if(($15+$16|0)<($4+$5|0)){void_20std____2____inplace_merge_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$11,$8,$3,$16,$15,$6,$7);$0=$8;$1=$12;break label$32}void_20std____2____inplace_merge_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($8,$12,$2,$3,$4,$5,$6,$7);$5=$15;$4=$16;$2=$8;$1=$11}if($5){continue}break label$1}break}if(($1|0)==($2|0)){break label$1}$9=$1;$8=$6;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($2|0)){continue}break}if(($6|0)==($8|0)){break label$1}$5=HEAP32[$3>>2];$10=$8;while(1){if(($0|0)==($1|0)){if(($6|0)==($8|0)){break label$1}while(1){$2=$2+ -4|0;$8=$8+ -4|0;HEAP32[$2>>2]=HEAP32[$8>>2];if(($6|0)!=($8|0)){continue}break}break label$1}$3=HEAP32[$5+232>>2];$4=$10+ -4|0;$7=HEAP32[$4>>2];$9=$1+ -4|0;$12=HEAP32[$9>>2];$3=HEAPU32[($3+($7<<4)|0)+8>>2]>HEAPU32[($3+($12<<4)|0)+8>>2];$2=$2+ -4|0;HEAP32[$2>>2]=$3?$12:$7;$1=$3?$9:$1;$8=$3?$8:$4;$10=$3?$10:$4;if(($10|0)!=($6|0)){continue}break}}}function dmGameObject__PostUpdate_28dmGameObject__CollectionHandle__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$3=global$0-48|0;global$0=$3;$2=HEAP32[$0>>2];label$1:{if(HEAP8[582020]&1){break label$1}if(!__cxa_guard_acquire(582020)){break label$1}if(HEAPU8[1130703]){$0=dmProfile__AllocateScope_28char_20const__29(11164)}else{$0=-1}HEAP32[145504]=$0;__cxa_guard_release(582020)}label$3:{if(HEAP8[582028]&1){break label$3}if(!__cxa_guard_acquire(582028)){break label$3}if(HEAPU8[1130703]){$0=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(12566,10)}else{$0=0}HEAP32[145506]=$0;__cxa_guard_release(582028)}$0=HEAP32[145504];label$5:{if(($0|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+16|0,$0,12566,HEAP32[145506]);break label$5}HEAP32[$3+16>>2]=0}label$7:{label$8:{if($2){$8=HEAP32[$2+4>>2];if(!$8){break label$8}$6=HEAP32[$8>>2];if(!$6){$0=1;break label$7}$0=1;while(1){$11=HEAPU16[($8+($1<<1)|0)+24488>>1];$4=$8+Math_imul($11,96)|0;$5=$4;if(HEAP32[$4+68>>2]){label$13:{if(HEAP8[582036]&1){break label$13}if(!__cxa_guard_acquire(582036)){break label$13}if(HEAPU8[1130703]){$7=dmProfile__AllocateScope_28char_20const__29(11164)}else{$7=-1}HEAP32[145508]=$7;__cxa_guard_release(582036)}$7=HEAP32[145508];label$15:{if(($7|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+32|0,$7,HEAP32[$4+12>>2],HEAP32[$4+16>>2]);break label$15}HEAP32[$3+32>>2]=0}HEAP32[$3>>2]=HEAP32[$2+8>>2];HEAP32[$3+4>>2]=HEAP32[(($11<<2)+$2|0)+12>>2];HEAP32[$3+8>>2]=HEAP32[$4+24>>2];$4=!FUNCTION_TABLE[HEAP32[$5+68>>2]]($3);if(HEAP32[$3+32>>2]){dmProfile__ProfileScope__EndScope_28_29($3+32|0)}$0=$0&$4}$1=$1+1|0;if(($6|0)!=($1|0)){continue}break}break label$7}__assert_fail(12518,10811,2532,12566);abort()}__assert_fail(15751,10811,2534,12566);abort()}label$18:{$4=HEAPU16[$2+4268>>1];label$19:{if(($4|0)!=32767){$8=0;while(1){HEAP32[$2+4268>>2]=2147450879;$11=$8;$8=$8+1|0;$1=$4;label$22:{label$23:{label$24:{label$26:{label$27:{label$28:{while(1){$9=HEAP32[$2+2056>>2];$10=HEAP32[$2+2060>>2]-$9>>2;$1=$1&65535;if($10>>>0<=$1>>>0){break label$18}$5=HEAP32[$9+($1<<2)>>2];$1=HEAP32[$5+140>>2];$7=HEAP32[$5+136>>2];$6=$1;$12=$10;$10=$1&32767;if($12>>>0<=$10>>>0){break label$18}$12=$10<<2;if(($5|0)!=HEAP32[$9+$12>>2]){break label$28}if(!($6&32768)){break label$27}$1=$0;label$31:{if(!(!($7&256)|!$5)){HEAP32[$5+136>>2]=$7&-257;HEAP32[$5+140>>2]=$6;$0=HEAP32[$2+2056>>2];if(HEAP32[$2+2060>>2]-$0>>2>>>0<=$10>>>0){break label$18}if(($5|0)!=HEAP32[$0+$12>>2]){break label$26}$0=0;if(!dmGameObject__FinalComponents_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($2,$5)){break label$31}}$0=$1}$1=HEAPU16[$5+148>>1];if(($1|0)!=32767){continue}break}$1=HEAP32[$2+4228>>2];HEAP32[$3+32>>2]=HEAP32[$2+4224>>2];HEAP32[$3+36>>2]=$1;$1=HEAP32[$2+4236>>2];HEAP32[$3+40>>2]=HEAP32[$2+4232>>2];HEAP32[$3+44>>2]=$1;$0=dmGameObject__DispatchMessages_28dmGameObject__Collection__2c_20unsigned_20long_20long__2c_20unsigned_20int_29($2,$3+32|0,2)&$0;while(1){$5=HEAP32[$2+2056>>2];$9=HEAP32[$2+2060>>2]-$5>>2;if($9>>>0<=$4>>>0){break label$18}$6=HEAP32[$5+($4<<2)>>2];$4=$6;$1=HEAP32[$4+140>>2];$7=$1;$1=$1&32767;if($9>>>0<=$1>>>0){break label$18}if(($6|0)!=HEAP32[$5+($1<<2)>>2]){break label$24}if(!($7&32768)){break label$23}$4=HEAPU16[$6+148>>1];dmGameObject__DoDeleteInstance_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($2,$6);$13=$13+1|0;if(($4|0)!=32767){continue}break}break label$22}__assert_fail(11833,10811,2574,12566);abort()}__assert_fail(15755,10811,2575,12566);abort()}__assert_fail(11833,10811,1709,15648);abort()}__assert_fail(11833,10811,2593,12566);abort()}__assert_fail(15755,10811,2594,12566);abort()}if($11>>>0<=8){$4=HEAPU16[$2+4268>>1];if(($4|0)!=32767){continue}}break}if(($8|0)!=10){break label$19}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,10938,15779,0);break label$19}$1=HEAP32[$2+4228>>2];HEAP32[$3+32>>2]=HEAP32[$2+4224>>2];HEAP32[$3+36>>2]=$1;$1=HEAP32[$2+4236>>2];HEAP32[$3+40>>2]=HEAP32[$2+4232>>2];HEAP32[$3+44>>2]=$1;$0=dmGameObject__DispatchMessages_28dmGameObject__Collection__2c_20unsigned_20long_20long__2c_20unsigned_20int_29($2,$3+32|0,2)&$0}label$35:{if(HEAP8[582044]&1){break label$35}if(!__cxa_guard_acquire(582044)){break label$35}if(HEAPU8[1130703]){$1=dmProfile__AllocateCounter_28char_20const__29(15866)}else{$1=-1}HEAP32[145510]=$1;__cxa_guard_release(582044)}$1=HEAP32[145510];if(($1|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($1,$13)}if(HEAP32[$3+16>>2]){dmProfile__ProfileScope__EndScope_28_29($3+16|0)}global$0=$3+48|0;return $0}__assert_fail(16081,13666,430,14890);abort()}function dmDDF__DoSaveMessage_28void_20const__2c_20dmDDF__Descriptor_20const__2c_20void__2c_20bool_20_28__29_28void__2c_20void_20const__2c_20unsigned_20int_29_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$8=global$0-16|0;global$0=$8;$4=$8+8|0;HEAP32[$4+4>>2]=$2;HEAP32[$4>>2]=$3;label$1:{if(HEAPU8[$1+24|0]){while(1){$10=4;$9=HEAP32[$1+20>>2]+Math_imul($13,20)|0;$14=$9;label$4:{label$5:{$7=HEAP32[$9+4>>2];$6=$7>>>22&63;$5=$6+ -9|0;if($5>>>0>3){break label$5}label$6:{switch($5-1|0){case 1:$10=HEAP32[HEAP32[$9+8>>2]+16>>2];break label$4;case 0:break label$5;case 2:break label$6;default:break label$4}}$10=8;break label$4}$10=dmDDF__ScalarTypeSize_28unsigned_20int_29($6);$7=HEAP32[$14+4>>2]}$11=HEAP32[$9+12>>2]+$0|0;$15=1;label$8:{if(($7&-268435456)==805306368){$15=HEAP32[$11+4>>2];if(!$15){break label$8}$11=HEAP32[$11>>2]}$12=0;label$10:{label$11:{label$12:{label$13:{while(1){$5=($7>>>22&63)+ -1|0;if($5>>>0>17){break label$10}$6=Math_imul($10,$12)+$11|0;label$15:{label$16:{label$17:{switch($5-1|0){default:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,1)){break label$1}if(dmDDF__OutputStream__WriteDouble_28double_29($4,HEAPF64[$6>>3])){break label$16}break label$1;case 0:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,5)){break label$1}if(dmDDF__OutputStream__WriteFloat_28float_29($4,HEAPF32[$6>>2])){break label$16}break label$1;case 1:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(dmDDF__OutputStream__WriteVarInt64_28unsigned_20long_20long_29($4,HEAP32[$6>>2],HEAP32[$6+4>>2])){break label$16}break label$1;case 2:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(dmDDF__OutputStream__WriteVarInt64_28unsigned_20long_20long_29($4,HEAP32[$6>>2],HEAP32[$6+4>>2])){break label$16}break label$1;case 3:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(dmDDF__OutputStream__WriteVarInt32SignExtended_28int_29($4,HEAP32[$6>>2])){break label$16}break label$1;case 4:__assert_fail(25009,25015,95,25039);abort();case 5:__assert_fail(25009,25015,99,25039);abort();case 6:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(dmDDF__OutputStream__WriteBool_28bool_29($4,HEAPU8[$6|0])){break label$16}break label$1;case 7:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,2)){break label$1}if(dmDDF__OutputStream__WriteString_28char_20const__29($4,HEAP32[$6>>2])){break label$16}break label$1;case 8:__assert_fail(25009,25015,109,25039);abort();case 9:HEAP32[$8+4>>2]=0;$5=dmDDF__SaveMessage_28void_20const__2c_20dmDDF__Descriptor_20const__2c_20void__2c_20bool_20_28__29_28void__2c_20void_20const__2c_20unsigned_20int_29_29($6,HEAP32[$9+8>>2],$8+4|0,155);if($5){break label$1}$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,HEAP32[$14+4>>2]&4194303,2)){break label$1}if(!dmDDF__OutputStream__WriteVarInt32_28unsigned_20int_29($4,HEAP32[$8+4>>2])){break label$1}$5=dmDDF__SaveMessage_28void_20const__2c_20dmDDF__Descriptor_20const__2c_20void__2c_20bool_20_28__29_28void__2c_20void_20const__2c_20unsigned_20int_29_29($6,HEAP32[$9+8>>2],$2,$3);if(!$5){break label$16}break label$1;case 10:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,2)){break label$1}if(!dmDDF__OutputStream__WriteVarInt32_28unsigned_20int_29($4,HEAP32[$6+4>>2])){break label$1}if(FUNCTION_TABLE[HEAP32[$4>>2]](HEAP32[$4+4>>2],HEAP32[$6>>2],HEAP32[$6+4>>2])){break label$16}break label$1;case 11:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(dmDDF__OutputStream__WriteVarInt32_28unsigned_20int_29($4,HEAP32[$6>>2])){break label$16}break label$1;case 16:break label$11;case 15:break label$12;case 14:break label$13;case 13:break label$15;case 12:break label$17}}$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(!dmDDF__OutputStream__WriteVarInt32_28unsigned_20int_29($4,HEAP32[$6>>2])){break label$1}}$12=$12+1|0;if(($15|0)==($12|0)){break label$8}$7=HEAP32[$14+4>>2];continue}break}__assert_fail(25009,25015,148,25039);abort()}__assert_fail(25009,25015,152,25039);abort()}__assert_fail(25009,25015,156,25039);abort()}__assert_fail(25009,25015,160,25039);abort()}__assert_fail(25009,25015,164,25039);abort()}$13=$13+1|0;if($13>>>0>2]=6;HEAP32[$6+36>>2]=HEAP32[$1+24>>2];$4=HEAP32[$1>>2];$5=-11;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{$3=HEAP32[309427];label$7:{if(!$3){break label$7}while(1){if(strcmp(HEAP32[$3>>2],$4)){$3=HEAP32[$3+32>>2];if($3){continue}break label$7}break}$5=FUNCTION_TABLE[HEAP32[$3+4>>2]]($6+32|0,$6+44|0)|0;if(!$5){break label$6}$4=HEAP32[$1>>2]}HEAP32[$6>>2]=$4;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,211606,211612,$6);break label$5}FUNCTION_TABLE[HEAP32[$3+20>>2]](HEAP32[$6+44>>2],$6+24|0);$9=HEAPF32[$1+4>>2];$2=memset(operator_20new_28unsigned_20long_29(33952),0,33952);dmSound__SoundSystem__SoundSystem_28_29($2);HEAP32[309426]=$2;HEAP8[$2+33948|0]=1;HEAP16[$2+33946>>1]=0;HEAP32[$2+4>>2]=$3;HEAP32[$2+8>>2]=HEAP32[$6+44>>2];HEAP32[$6+16>>2]=HEAP32[$1+28>>2];HEAP32[$2>>2]=dmSoundCodec__New_28dmSoundCodec__NewCodecContextParams_20const__29($6+16|0);$5=HEAP32[$1+28>>2];$7=HEAP32[$1+8>>2];if($0){$3=HEAP32[$1+12>>2];$4=HEAP32[$1+16>>2];$9=dmConfigFile__GetFloat_28dmConfigFile__Config__2c_20char_20const__2c_20float_29($0,211639,Math_fround(1));$7=dmConfigFile__GetInt_28dmConfigFile__Config__2c_20char_20const__2c_20int_29($0,211650,$7);dmConfigFile__GetInt_28dmConfigFile__Config__2c_20char_20const__2c_20int_29($0,211671,$4);dmConfigFile__GetInt_28dmConfigFile__Config__2c_20char_20const__2c_20int_29($0,211695,$3);$5=dmConfigFile__GetInt_28dmConfigFile__Config__2c_20char_20const__2c_20int_29($0,211719,$5)}if(HEAP8[$2+32|0]&1){break label$4}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($5,64,$2+20|0,$2+28|0,$2+24|0);$0=HEAP32[$2+20>>2];if(HEAP32[$2+28>>2]-$0>>6>>>0<$5>>>0){break label$3}HEAP32[$2+24>>2]=$0+($5<<6);$3=HEAPU16[$2+40>>1];$0=$5&65535;if($3>>>0>$0>>>0){break label$2}$4=HEAP32[$2+36>>2];$8=dlmalloc($0<<1);HEAP32[$2+36>>2]=$8;$8=memcpy($8,$4,$3<<1);HEAP16[$2+40>>1]=$5;if($3>>>0<$0>>>0){while(1){HEAP16[$8+($3<<1)>>1]=$3;$3=$3+1|0;if(($0|0)!=($3|0)){continue}break}}dlfree($4);if($5){$4=0;while(1){$0=HEAP32[$2+20>>2];if(HEAP32[$2+24>>2]-$0>>6>>>0<=$4>>>0){break label$1}$0=$0+($4<<6)|0;HEAP32[$0+56>>2]=0;HEAP32[$0+60>>2]=0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$0+48>>2]=0;HEAP32[$0+52>>2]=0;HEAP32[$0+40>>2]=0;HEAP32[$0+44>>2]=0;HEAP32[$0+32>>2]=0;HEAP32[$0+36>>2]=0;HEAP32[$0+24>>2]=0;HEAP32[$0+28>>2]=0;HEAP32[$0+16>>2]=0;HEAP32[$0+20>>2]=0;HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=0;HEAP32[$0+56>>2]=-1;HEAP32[$0+4>>2]=dlmalloc(Math_imul(HEAP32[$1+24>>2],20)+4|0);HEAP32[$0+40>>2]=1065353216;HEAP32[$0+44>>2]=0;$4=$4+1|0;if(($4|0)!=($5|0)){continue}break}}if(HEAP8[$2+60|0]&1){break label$4}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($7,24,$2+48|0,$2+56|0,$2+52|0);$0=HEAP32[$2+48>>2];if((HEAP32[$2+56>>2]-$0|0)/24>>>0<$7>>>0){break label$3}HEAP32[$2+52>>2]=$0+Math_imul($7,24);$3=HEAPU16[$2+68>>1];$0=$7&65535;if($3>>>0>$0>>>0){break label$2}$5=HEAP32[$2+64>>2];$4=dlmalloc($0<<1);HEAP32[$2+64>>2]=$4;$4=memcpy($4,$5,$3<<1);HEAP16[$2+68>>1]=$7;if($3>>>0<$0>>>0){while(1){HEAP16[$4+($3<<1)>>1]=$3;$3=$3+1|0;if(($0|0)!=($3|0)){continue}break}}dlfree($5);if($7){$0=HEAP32[$2+48>>2];$5=(HEAP32[$2+52>>2]-$0|0)/24|0;$3=0;while(1){if(($3|0)==($5|0)){break label$1}HEAP16[($0+Math_imul($3,24)|0)+16>>1]=65535;$3=$3+1|0;if(($7|0)!=($3|0)){continue}break}}HEAP32[$2+33908>>2]=HEAP32[$6+24>>2];$0=HEAP32[$1+24>>2];HEAP32[$2+33912>>2]=$0;$0=$0<<2;HEAP32[$2+33920>>2]=dlmalloc($0);HEAP32[$2+33924>>2]=dlmalloc($0);HEAP32[$2+33928>>2]=dlmalloc($0);HEAP32[$2+33932>>2]=dlmalloc($0);HEAP32[$2+33936>>2]=dlmalloc($0);$5=0;$0=dlmalloc($0);HEAP16[$2+33944>>1]=0;HEAP32[$2+33940>>2]=$0;dmHashTable_unsigned_20long_20long_2c_20int___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+76|0,65,32);$0=memset($2+112|0,0,33792)+Math_imul(dmSound__GetOrCreateGroup_28char_20const__29(211591),1056)|0;HEAP32[$0+8>>2]=0;HEAPF32[$0+16>>2]=$9;HEAPF32[$0+12>>2]=$9;HEAP8[$2+33949|0]=1;HEAP8[$2+33950|0]=0;HEAP32[$2+33904>>2]=-14;HEAP32[$2+12>>2]=0;HEAP32[$2+16>>2]=0;if(!HEAPU8[$1+32|0]){break label$5}HEAP32[$2+16>>2]=dmMutex__New_28_29();HEAP32[$2+12>>2]=dmThread__New_28void_20_28__29_28void__29_2c_20unsigned_20int_2c_20void__2c_20char_20const__29($2)}global$0=$6+48|0;return $5}__assert_fail(212421,212496,444,212567);abort()}__assert_fail(212579,212496,457,212598);abort()}__assert_fail(212606,212629,109,212567);abort()}__assert_fail(212695,212496,430,212706);abort()}function b2RevoluteJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=0,$20=0,$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0);$2=HEAP32[$0+48>>2];$20=HEAP32[$2+8>>2];HEAP32[$0+128>>2]=$20;$8=HEAP32[$0+52>>2];$17=HEAP32[$8+8>>2];HEAP32[$0+132>>2]=$17;$4=HEAPF32[$2+32>>2];$6=HEAP32[$2+32>>2];$13=HEAPF32[$2+28>>2];HEAP32[$0+152>>2]=HEAP32[$2+28>>2];HEAP32[$0+156>>2]=$6;$26=HEAPF32[$8+32>>2];$19=HEAP32[$8+32>>2];$7=HEAPF32[$8+28>>2];HEAP32[$0+160>>2]=HEAP32[$8+28>>2];HEAP32[$0+164>>2]=$19;$21=HEAPF32[$2+120>>2];HEAP32[$0+168>>2]=HEAP32[$2+120>>2];$22=HEAPF32[$8+120>>2];HEAP32[$0+172>>2]=HEAP32[$8+120>>2];$14=HEAPF32[$2+128>>2];HEAP32[$0+176>>2]=HEAP32[$2+128>>2];$15=HEAPF32[$8+128>>2];HEAP32[$0+180>>2]=HEAP32[$8+128>>2];$5=HEAPF32[$0+72>>2];$6=HEAP32[$1+24>>2];$2=Math_imul($20,12);$9=HEAPF32[($6+$2|0)+8>>2];$3=sinf($9);$11=HEAPF32[$0+68>>2];$10=cosf($9);$18=HEAP32[$1+28>>2];$2=$18+$2|0;$27=HEAPF32[$2>>2];$8=HEAP32[$2>>2];$28=HEAPF32[$2+4>>2];$19=HEAP32[$2+4>>2];$23=HEAPF32[$2+8>>2];$25=Math_imul($17,12);$2=$18+$25|0;$29=HEAPF32[$2>>2];$17=HEAP32[$2>>2];$30=HEAPF32[$2+4>>2];$18=HEAP32[$2+4>>2];$24=HEAPF32[$2+8>>2];$12=HEAPF32[($6+$25|0)+8>>2];$11=Math_fround($11-$13);$5=Math_fround($5-$4);$13=Math_fround(Math_fround($10*$11)-Math_fround($3*$5));HEAPF32[$0+136>>2]=$13;$11=Math_fround(Math_fround($3*$11)+Math_fround($10*$5));HEAPF32[$0+140>>2]=$11;$3=Math_fround($14+$15);HEAPF32[$0+216>>2]=$3;HEAPF32[$0+220>>2]=$3>Math_fround(0)?Math_fround(Math_fround(1)/$3):$3;$10=HEAPF32[$0+80>>2];$5=sinf($12);$16=HEAPF32[$0+76>>2];$4=cosf($12);$7=Math_fround($16-$7);$16=Math_fround($10-$26);$10=Math_fround(Math_fround($4*$7)-Math_fround($5*$16));HEAPF32[$0+144>>2]=$10;$5=Math_fround(Math_fround($5*$7)+Math_fround($4*$16));HEAPF32[$0+148>>2]=$5;$4=Math_fround(-$11);$7=Math_fround(Math_fround($14*$4)-Math_fround($5*$15));HEAPF32[$0+208>>2]=$7;$16=Math_fround(Math_fround($13*$14)+Math_fround($10*$15));HEAPF32[$0+212>>2]=$16;HEAPF32[$0+192>>2]=$7;HEAPF32[$0+204>>2]=$16;$7=Math_fround($21+$22);HEAPF32[$0+184>>2]=Math_fround($7+Math_fround(Math_fround($11*$11)*$14))+Math_fround(Math_fround($5*$5)*$15);$4=Math_fround(Math_fround(Math_fround($13*$4)*$14)-Math_fround(Math_fround($5*$10)*$15));HEAPF32[$0+196>>2]=$4;HEAPF32[$0+188>>2]=$4;HEAPF32[$0+200>>2]=Math_fround($7+Math_fround(Math_fround($13*$13)*$14))+Math_fround(Math_fround($10*$10)*$15);if(!(HEAPU8[$0+100|0]?$3!=Math_fround(0):0)){HEAP32[$0+96>>2]=0}label$3:{if(!(!HEAPU8[$0+112|0]|$3==Math_fround(0))){$4=HEAPF32[$0+124>>2];$7=HEAPF32[$0+120>>2];$3=Math_fround($4-$7);if(!!(($3>Math_fround(0)?$3:Math_fround(-$3))>2]=3;break label$3}$3=Math_fround(Math_fround($12-$9)-HEAPF32[$0+116>>2]);if(!!($3<=$7)){if(HEAP32[$0+224>>2]!=1){HEAP32[$0+92>>2]=0}HEAP32[$0+224>>2]=1;break label$3}if(!!($3>=$4)){if(HEAP32[$0+224>>2]!=2){HEAP32[$0+92>>2]=0}HEAP32[$0+224>>2]=2;break label$3}HEAP32[$0+224>>2]=0;HEAP32[$0+92>>2]=0;break label$3}HEAP32[$0+224>>2]=0}label$10:{if(HEAPU8[$1+20|0]){$9=HEAPF32[$1+8>>2];$3=Math_fround($9*HEAPF32[$0+84>>2]);HEAPF32[$0+84>>2]=$3;$4=Math_fround($9*HEAPF32[$0+96>>2]);HEAPF32[$0+96>>2]=$4;$12=Math_fround($9*HEAPF32[$0+88>>2]);HEAPF32[$0+88>>2]=$12;$9=Math_fround($9*HEAPF32[$0+92>>2]);HEAPF32[$0+92>>2]=$9;$24=Math_fround($24+Math_fround(Math_fround($9+Math_fround($4+Math_fround(Math_fround($10*$12)-Math_fround($3*$5))))*$15));$23=Math_fround($23-Math_fround(Math_fround($9+Math_fround($4+Math_fround(Math_fround($13*$12)-Math_fround($3*$11))))*$14));$17=(wasm2js_scratch_store_f32(Math_fround(Math_fround($3*$22)+$29)),wasm2js_scratch_load_i32(0));$8=(wasm2js_scratch_store_f32(Math_fround($27-Math_fround($3*$21))),wasm2js_scratch_load_i32(0));$18=(wasm2js_scratch_store_f32(Math_fround(Math_fround($12*$22)+$30)),wasm2js_scratch_load_i32(0));$19=(wasm2js_scratch_store_f32(Math_fround($28-Math_fround($12*$21))),wasm2js_scratch_load_i32(0));break label$10}HEAP32[$0+84>>2]=0;HEAP32[$0+88>>2]=0;HEAP32[$0+92>>2]=0;HEAP32[$0+96>>2]=0}$6=HEAP32[$1+28>>2]+Math_imul($20,12)|0;HEAP32[$6+4>>2]=$19;HEAP32[$6>>2]=$8;$6=HEAP32[$1+28>>2];HEAPF32[($6+Math_imul(HEAP32[$0+128>>2],12)|0)+8>>2]=$23;$6=$6+Math_imul(HEAP32[$0+132>>2],12)|0;HEAP32[$6+4>>2]=$18;HEAP32[$6>>2]=$17;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+132>>2],12)|0)+8>>2]=$24}function dmGameSystem__CopyStreamInternal_28dmGameSystem__BufferStream__2c_20unsigned_20int_2c_20dmGameSystem__BufferStream_20const__2c_20unsigned_20int_2c_20unsigned_20int_29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$5=HEAP32[$0+40>>2];if($5>>>0>8){return 0}label$2:{label$3:{label$4:{switch($5-1|0){default:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+Math_imul($6,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+Math_imul($8,$6)|0;while(1){HEAP8[$0+$1|0]=HEAPU8[$2+$3|0];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:$2+$6|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:$0+$7|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 0:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<1)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<1)|0;while(1){HEAP16[($1<<1)+$0>>1]=HEAPU16[($3<<1)+$2>>1];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<1)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<1)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 1:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<2)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<2)|0;while(1){HEAP32[($1<<2)+$0>>2]=HEAP32[($3<<2)+$2>>2];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<2)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<2)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 2:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<3)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<3)|0;while(1){$8=($3<<3)+$2|0;$10=HEAP32[$8+4>>2];$9=($1<<3)+$0|0;HEAP32[$9>>2]=HEAP32[$8>>2];HEAP32[$9+4>>2]=$10;$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<3)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<3)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 3:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+Math_imul($6,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+Math_imul($8,$6)|0;while(1){HEAP8[$0+$1|0]=HEAPU8[$2+$3|0];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:$2+$6|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:$0+$7|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 4:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<1)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<1)|0;while(1){HEAP16[($1<<1)+$0>>1]=HEAPU16[($3<<1)+$2>>1];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<1)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<1)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 5:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<2)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<2)|0;while(1){HEAP32[($1<<2)+$0>>2]=HEAP32[($3<<2)+$2>>2];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<2)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<2)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 6:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<3)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<3)|0;while(1){$8=($3<<3)+$2|0;$10=HEAP32[$8+4>>2];$9=($1<<3)+$0|0;HEAP32[$9>>2]=HEAP32[$8>>2];HEAP32[$9+4>>2]=$10;$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<3)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<3)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 7:break label$4}}if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<2)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<2)|0;while(1){HEAP32[($1<<2)+$0>>2]=HEAP32[($3<<2)+$2>>2];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<2)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<2)+$0|0;$4=$4+ -1|0;if($4){continue}break}}return 1}return 1}function dmSSDP__UpdateListeningSockets_28dmSSDP__SSDP__2c_20dmSocket__IfAddr__2c_20unsigned_20int_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$3=global$0-416|0;global$0=$3;if($2){$9=$3+248|4;while(1){$5=Math_imul($7,160)+$1|0;HEAP32[$3+264>>2]=HEAP32[$5+148>>2];$8=HEAP32[$5+144>>2];HEAP32[$3+256>>2]=HEAP32[$5+140>>2];HEAP32[$3+260>>2]=$8;$8=HEAP32[$5+136>>2];HEAP32[$3+248>>2]=HEAP32[$5+132>>2];HEAP32[$3+252>>2]=$8;$5=$4;label$4:{label$5:{label$6:{if($4>>>0>=HEAPU32[$0+6852>>2]){break label$6}while(1){$8=Math_imul($4,160)+$0|0;$5=memcmp($8+1740|0,$9,16);if(($5|0)<=-1){HEAP32[$3+224>>2]=$4;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158017,$3+224|0);$5=$4+1|0;$6=(($4<<2)+$0|0)+6724|0;if(HEAP32[$6>>2]!=-1){$4=$8+1736|0;HEAP32[$3+216>>2]=HEAP32[$4+16>>2];$8=HEAP32[$4+12>>2];HEAP32[$3+208>>2]=HEAP32[$4+8>>2];HEAP32[$3+212>>2]=$8;$8=HEAP32[$4+4>>2];HEAP32[$3+200>>2]=HEAP32[$4>>2];HEAP32[$3+204>>2]=$8;$4=dmSocket__AddressToIPString_28dmSocket__Address_29($3+200|0);HEAP32[$3+192>>2]=$4;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,157987,157992,$3+192|0);dlfree($4);dmSocket__Delete_28int_29(HEAP32[$6>>2])}$4=$5;if($4>>>0>2]){continue}break label$6}break}if(!$5){$5=(($4<<2)+$0|0)+6724|0;if(HEAP32[$5>>2]!=-1){break label$5}}$5=$4}HEAP32[$3+176>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158126,$3+176|0);$8=($3+272|0)+($7<<2)|0;HEAP32[$8>>2]=-1;label$11:{label$12:{$4=HEAP32[$3+248>>2]+ -1|0;if($4>>>0<=1){if($4-1){break label$12}HEAP32[$3+48>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158168,$3+48|0);break label$11}HEAP32[$3+32>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158212,$3+32|0);break label$11}HEAP32[$3+412>>2]=-1;label$14:{label$15:{label$16:{if(!dmSocket__New_28dmSocket__Domain_2c_20dmSocket__Type_2c_20dmSocket__Protocol_2c_20int__29(1,1,1,$3+412|0)){if(!dmSocket__SetReuseAddress_28int_2c_20bool_29(HEAP32[$3+412>>2])){break label$16}}$4=HEAP32[$3+412>>2];if(($4|0)==-1){break label$15}dmSocket__Delete_28int_29($4);break label$15}$4=HEAP32[$3+412>>2];if(($4|0)!=-1){break label$14}}HEAP32[$3+64>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158259,$3- -64|0);break label$11}HEAP32[$3+168>>2]=HEAP32[$3+264>>2];$6=HEAP32[$3+260>>2];HEAP32[$3+160>>2]=HEAP32[$3+256>>2];HEAP32[$3+164>>2]=$6;$6=HEAP32[$3+252>>2];HEAP32[$3+152>>2]=HEAP32[$3+248>>2];HEAP32[$3+156>>2]=$6;if(dmSocket__SetMulticastIf_28int_2c_20dmSocket__Address_29($4,$3+152|0)){HEAP32[$3+144>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158311,$3+144|0);dmSocket__Delete_28int_29($4);break label$11}HEAP32[$3+136>>2]=HEAP32[$3+264>>2];$6=HEAP32[$3+260>>2];HEAP32[$3+128>>2]=HEAP32[$3+256>>2];HEAP32[$3+132>>2]=$6;$6=HEAP32[$3+252>>2];HEAP32[$3+120>>2]=HEAP32[$3+248>>2];HEAP32[$3+124>>2]=$6;if(dmSocket__Bind_28int_2c_20dmSocket__Address_2c_20int_29($4,$3+120|0,0)){HEAP32[$3+112>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158359,$3+112|0);dmSocket__Delete_28int_29($4);break label$11}HEAP32[$3+104>>2]=HEAP32[$3+264>>2];$6=HEAP32[$3+260>>2];HEAP32[$3+96>>2]=HEAP32[$3+256>>2];HEAP32[$3+100>>2]=$6;$6=HEAP32[$3+252>>2];HEAP32[$3+88>>2]=HEAP32[$3+248>>2];HEAP32[$3+92>>2]=$6;$6=dmSocket__AddressToIPString_28dmSocket__Address_29($3+88|0);HEAP32[$3+80>>2]=$6;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,157987,158402,$3+80|0);dlfree($6);HEAP32[$8>>2]=$4}$4=$5;break label$4}HEAP32[$3+244>>2]=$4;HEAP32[$3+240>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158068,$3+240|0);HEAP32[($3+272|0)+($7<<2)>>2]=HEAP32[$5>>2];$4=$4+1|0}$7=$7+1|0;if(($7|0)!=($2|0)){continue}break}}$5=HEAP32[$0+6852>>2];if($4>>>0<$5>>>0){while(1){$7=(($4<<2)+$0|0)+6724|0;if(HEAP32[$7>>2]!=-1){$5=Math_imul($4,160)+$0|0;HEAP32[$3+24>>2]=HEAP32[$5+1752>>2];$9=$5+1744|0;$8=HEAP32[$9+4>>2];HEAP32[$3+16>>2]=HEAP32[$9>>2];HEAP32[$3+20>>2]=$8;$5=$5+1736|0;$9=HEAP32[$5+4>>2];HEAP32[$3+8>>2]=HEAP32[$5>>2];HEAP32[$3+12>>2]=$9;$5=dmSocket__AddressToIPString_28dmSocket__Address_29($3+8|0);HEAP32[$3>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,157987,157992,$3);dlfree($5);dmSocket__Delete_28int_29(HEAP32[$7>>2]);$5=HEAP32[$0+6852>>2]}$4=$4+1|0;if($4>>>0<$5>>>0){continue}break}}HEAP32[$0+6852>>2]=$2;memcpy($0+1604|0,$1,Math_imul($2,160));memcpy($0+6724|0,$3+272|0,$2<<2);global$0=$3+416|0}function UpsampleRgb565LinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$12=Math_imul(HEAPU8[$0|0],19077)>>>8|0;$13=HEAPU8[$4|0]|HEAPU8[$5|0]<<16;$9=HEAPU8[$2|0]|HEAPU8[$3|0]<<16;$11=($13+Math_imul($9,3)|0)+131074|0;$16=$11>>>2&255;$11=$11>>>18|0;$15=$12-(Math_imul($16,6419)>>>8|0)-(Math_imul($11,13320)>>>8)|0;$10=$15+8708|0;$15=$10>>>0<16384?$10>>6:($15|0)<-8708?0:255;$11=$12+(Math_imul($11,26149)>>>8|0)|0;$10=$11+ -14234|0;HEAP8[$6|0]=$15>>>5|($10>>>0<16384?$10>>>6|0:$11>>>0<14234?0:248)&248;$12=$12+(Math_imul($16,33050)>>>8|0)|0;$11=$12+ -17685|0;HEAP8[$6+1|0]=$15<<3&224|($11>>>0<16384?$11>>>9|0:$12>>>0<17685?0:31);if($1){$12=Math_imul(HEAPU8[$1|0],19077)>>>8|0;$11=(Math_imul($13,3)+$9|0)+131074|0;$16=$11>>>2&255;$11=$11>>>18|0;$15=$12-(Math_imul($16,6419)>>>8|0)-(Math_imul($11,13320)>>>8)|0;$10=$15+8708|0;$15=$10>>>0<16384?$10>>6:($15|0)<-8708?0:255;$11=$12+(Math_imul($11,26149)>>>8|0)|0;$10=$11+ -14234|0;HEAP8[$7|0]=$15>>>5|($10>>>0<16384?$10>>>6|0:$11>>>0<14234?0:248)&248;$12=$12+(Math_imul($16,33050)>>>8|0)|0;$11=$12+ -17685|0;HEAP8[$7+1|0]=$15<<3&224|($11>>>0<16384?$11>>>9|0:$12>>>0<17685?0:31)}$15=$8+ -1|0;label$3:{if(($8|0)<3){$12=$13;$11=$9;break label$3}$12=$15>>1;$26=($12|0)>1?$12:1;$16=1;while(1){$12=HEAPU8[$4+$16|0]|HEAPU8[$5+$16|0]<<16;$11=HEAPU8[$2+$16|0]|HEAPU8[$3+$16|0]<<16;$24=$13+$11|0;$10=($12+($24+$9|0)|0)+524296|0;$23=$16<<1;$17=$23+ -1|0;$21=$17<<1;$22=$21+$6|0;$14=Math_imul(HEAPU8[$0+$17|0],19077)>>>8|0;$24=$10+($24<<1)>>>3|0;$19=$24+$9|0;$25=$19>>>1&255;$19=$19>>>17|0;$20=$14-(Math_imul($25,6419)>>>8|0)-(Math_imul($19,13320)>>>8)|0;$18=$20+8708|0;$20=$18>>>0<16384?$18>>6:($20|0)<-8708?0:255;$19=$14+(Math_imul($19,26149)>>>8|0)|0;$18=$19+ -14234|0;HEAP8[$22|0]=$20>>>5|($18>>>0<16384?$18>>>6|0:$19>>>0<14234?0:248)&248;$18=$22;$14=$14+(Math_imul($25,33050)>>>8|0)|0;$22=$14+ -17685|0;HEAP8[$18+1|0]=$20<<3&224|($22>>>0<16384?$22>>>9|0:$14>>>0<17685?0:31);$22=$16<<2;$19=$22+$6|0;$14=Math_imul(HEAPU8[$0+$23|0],19077)>>>8|0;$10=$10+($9+$12<<1)>>>3|0;$9=$10+$11|0;$25=$9>>>1&255;$9=$9>>>17|0;$20=$14-(Math_imul($25,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$18=$20+8708|0;$20=$18>>>0<16384?$18>>6:($20|0)<-8708?0:255;$9=$14+(Math_imul($9,26149)>>>8|0)|0;$18=$9+ -14234|0;HEAP8[$19|0]=$20>>>5|($18>>>0<16384?$18>>>6|0:$9>>>0<14234?0:248)&248;$9=$14+(Math_imul($25,33050)>>>8|0)|0;$14=$9+ -17685|0;HEAP8[$19+1|0]=$20<<3&224|($14>>>0<16384?$14>>>9|0:$9>>>0<17685?0:31);if($1){$14=$7+$21|0;$9=Math_imul(HEAPU8[$1+$17|0],19077)>>>8|0;$13=$10+$13|0;$10=$13>>>1&255;$13=$13>>>17|0;$17=$9-(Math_imul($10,6419)>>>8|0)-(Math_imul($13,13320)>>>8)|0;$21=$17+8708|0;$17=$21>>>0<16384?$21>>6:($17|0)<-8708?0:255;$13=$9+(Math_imul($13,26149)>>>8|0)|0;$21=$13+ -14234|0;HEAP8[$14|0]=$17>>>5|($21>>>0<16384?$21>>>6|0:$13>>>0<14234?0:248)&248;$9=$9+(Math_imul($10,33050)>>>8|0)|0;$13=$9+ -17685|0;HEAP8[$14+1|0]=$17<<3&224|($13>>>0<16384?$13>>>9|0:$9>>>0<17685?0:31);$13=$7+$22|0;$9=Math_imul(HEAPU8[$1+$23|0],19077)>>>8|0;$10=$12+$24|0;$23=$10>>>1&255;$10=$10>>>17|0;$17=$9-(Math_imul($23,6419)>>>8|0)-(Math_imul($10,13320)>>>8)|0;$14=$17+8708|0;$17=$14>>>0<16384?$14>>6:($17|0)<-8708?0:255;$10=$9+(Math_imul($10,26149)>>>8|0)|0;$14=$10+ -14234|0;HEAP8[$13|0]=$17>>>5|($14>>>0<16384?$14>>>6|0:$10>>>0<14234?0:248)&248;$18=$13;$9=$9+(Math_imul($23,33050)>>>8|0)|0;$13=$9+ -17685|0;HEAP8[$18+1|0]=$17<<3&224|($13>>>0<16384?$13>>>9|0:$9>>>0<17685?0:31)}$10=($16|0)!=($26|0);$16=$16+1|0;$9=$11;$13=$12;if($10){continue}break}}label$7:{if($8&1){break label$7}$2=$15<<1;$3=$2+$6|0;$0=Math_imul(HEAPU8[$0+$15|0],19077)>>>8|0;$4=(Math_imul($11,3)+$12|0)+131074|0;$5=$4>>>2&255;$4=$4>>>18|0;$6=$0-(Math_imul($5,6419)>>>8|0)-(Math_imul($4,13320)>>>8)|0;$8=$6+8708|0;$6=$8>>>0<16384?$8>>6:($6|0)<-8708?0:255;$4=$0+(Math_imul($4,26149)>>>8|0)|0;$8=$4+ -14234|0;HEAP8[$3|0]=$6>>>5|($8>>>0<16384?$8>>>6|0:$4>>>0<14234?0:248)&248;$4=$3;$0=$0+(Math_imul($5,33050)>>>8|0)|0;$3=$0+ -17685|0;HEAP8[$4+1|0]=$6<<3&224|($3>>>0<16384?$3>>>9|0:$0>>>0<17685?0:31);if(!$1){break label$7}$2=$2+$7|0;$0=Math_imul(HEAPU8[$1+$15|0],19077)>>>8|0;$1=(Math_imul($12,3)+$11|0)+131074|0;$3=$1>>>2&255;$1=$1>>>18|0;$4=$0-(Math_imul($3,6419)>>>8|0)-(Math_imul($1,13320)>>>8)|0;$5=$4+8708|0;$4=$5>>>0<16384?$5>>6:($4|0)<-8708?0:255;$1=$0+(Math_imul($1,26149)>>>8|0)|0;$5=$1+ -14234|0;HEAP8[$2|0]=$4>>>5|($5>>>0<16384?$5>>>6|0:$1>>>0<14234?0:248)&248;$0=$0+(Math_imul($3,33050)>>>8|0)|0;$1=$0+ -17685|0;HEAP8[$2+1|0]=$4<<3&224|($1>>>0<16384?$1>>>9|0:$0>>>0<17685?0:31)}return}__assert_fail(182795,182809,102,182966);abort()}function b2PulleyJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=0,$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=0,$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0);$2=HEAP32[$0+48>>2];$22=HEAP32[$2+8>>2];HEAP32[$0+120>>2]=$22;$9=HEAP32[$0+52>>2];$17=HEAP32[$9+8>>2];HEAP32[$0+124>>2]=$17;$13=HEAPF32[$2+32>>2];$6=HEAP32[$2+32>>2];$10=HEAPF32[$2+28>>2];HEAP32[$0+160>>2]=HEAP32[$2+28>>2];HEAP32[$0+164>>2]=$6;$20=HEAPF32[$9+32>>2];$21=HEAP32[$9+32>>2];$14=HEAPF32[$9+28>>2];HEAP32[$0+168>>2]=HEAP32[$9+28>>2];HEAP32[$0+172>>2]=$21;HEAP32[$0+176>>2]=HEAP32[$2+120>>2];HEAP32[$0+180>>2]=HEAP32[$9+120>>2];HEAP32[$0+184>>2]=HEAP32[$2+128>>2];HEAP32[$0+188>>2]=HEAP32[$9+128>>2];$15=HEAPF32[$0+96>>2];$6=HEAP32[$1+24>>2];$2=Math_imul($22,12);$9=$6+$2|0;$3=HEAPF32[$9+8>>2];$4=sinf($3);$5=HEAPF32[$0+92>>2];$3=cosf($3);$18=HEAP32[$1+28>>2];$2=$18+$2|0;$28=HEAPF32[$2>>2];$21=HEAP32[$2>>2];$29=HEAPF32[$2+4>>2];$25=HEAP32[$2+4>>2];$23=HEAPF32[$2+8>>2];$26=Math_imul($17,12);$2=$18+$26|0;$30=HEAPF32[$2>>2];$17=HEAP32[$2>>2];$31=HEAPF32[$2+4>>2];$18=HEAP32[$2+4>>2];$24=HEAPF32[$2+8>>2];$2=$6+$26|0;$12=HEAPF32[$2+4>>2];$16=HEAPF32[$2>>2];$11=HEAPF32[$9+4>>2];$19=HEAPF32[$9>>2];$7=HEAPF32[$2+8>>2];$5=Math_fround($5-$10);$15=Math_fround($15-$13);$10=Math_fround(Math_fround($3*$5)-Math_fround($4*$15));HEAPF32[$0+144>>2]=$10;$15=Math_fround(Math_fround($4*$5)+Math_fround($3*$15));HEAPF32[$0+148>>2]=$15;$5=HEAPF32[$0+104>>2];$4=sinf($7);$8=HEAPF32[$0+100>>2];$3=cosf($7);$14=Math_fround($8-$14);$5=Math_fround($5-$20);$7=Math_fround(Math_fround($3*$14)-Math_fround($4*$5));HEAPF32[$0+152>>2]=$7;$14=Math_fround(Math_fround($4*$14)+Math_fround($3*$5));HEAPF32[$0+156>>2]=$14;$4=Math_fround(Math_fround($19+$10)-HEAPF32[$0+68>>2]);HEAPF32[$0+128>>2]=$4;$3=Math_fround(Math_fround($11+$15)-HEAPF32[$0+72>>2]);HEAPF32[$0+132>>2]=$3;$5=Math_fround(Math_fround($16+$7)-HEAPF32[$0+76>>2]);HEAPF32[$0+136>>2]=$5;$12=Math_fround(Math_fround($12+$14)-HEAPF32[$0+80>>2]);HEAPF32[$0+140>>2]=$12;$11=Math_fround(Math_sqrt(Math_fround(Math_fround($5*$5)+Math_fround($12*$12))));$2=$0;$16=Math_fround(Math_sqrt(Math_fround(Math_fround($4*$4)+Math_fround($3*$3))));label$1:{if(!!($16>Math_fround(.04999999701976776))){$13=$4;$4=Math_fround(Math_fround(1)/$16);$16=Math_fround($13*$4);HEAPF32[$0+128>>2]=$16;$4=Math_fround($3*$4);break label$1}HEAP32[$0+128>>2]=0;$16=Math_fround(0);$4=Math_fround(0)}HEAPF32[$2+132>>2]=$4;$2=$0;label$3:{if(!!($11>Math_fround(.04999999701976776))){$3=Math_fround(Math_fround(1)/$11);$5=Math_fround($5*$3);HEAPF32[$0+136>>2]=$5;$3=Math_fround($12*$3);break label$3}HEAP32[$0+136>>2]=0;$5=Math_fround(0);$3=Math_fround(0)}HEAPF32[$2+140>>2]=$3;$12=HEAPF32[$0+176>>2];$11=Math_fround(Math_fround($10*$4)-Math_fround($15*$16));$20=HEAPF32[$0+184>>2];$13=Math_fround($12+Math_fround($11*Math_fround($11*$20)));$11=HEAPF32[$0+112>>2];$19=HEAPF32[$0+180>>2];$8=Math_fround(Math_fround($7*$3)-Math_fround($14*$5));$27=HEAPF32[$0+188>>2];$8=Math_fround($13+Math_fround(Math_fround($11*$11)*Math_fround($19+Math_fround($8*Math_fround($8*$27)))));HEAPF32[$0+192>>2]=$8>Math_fround(0)?Math_fround(Math_fround(1)/$8):$8;label$5:{if(HEAPU8[$1+20|0]){$8=Math_fround(HEAPF32[$1+8>>2]*HEAPF32[$0+116>>2]);HEAPF32[$0+116>>2]=$8;$13=$7;$7=$3;$3=Math_fround($8*Math_fround(-$11));$7=Math_fround($7*$3);$3=Math_fround($5*$3);$24=Math_fround($24+Math_fround($27*Math_fround(Math_fround($13*$7)-Math_fround($14*$3))));$13=$10;$10=$4;$4=Math_fround(-$8);$10=Math_fround($10*$4);$4=Math_fround($16*$4);$23=Math_fround($23+Math_fround($20*Math_fround(Math_fround($13*$10)-Math_fround($15*$4))));$18=(wasm2js_scratch_store_f32(Math_fround(Math_fround($19*$7)+$31)),wasm2js_scratch_load_i32(0));$17=(wasm2js_scratch_store_f32(Math_fround(Math_fround($19*$3)+$30)),wasm2js_scratch_load_i32(0));$25=(wasm2js_scratch_store_f32(Math_fround(Math_fround($12*$10)+$29)),wasm2js_scratch_load_i32(0));$21=(wasm2js_scratch_store_f32(Math_fround(Math_fround($12*$4)+$28)),wasm2js_scratch_load_i32(0));break label$5}HEAP32[$0+116>>2]=0}$6=HEAP32[$1+28>>2]+Math_imul($22,12)|0;HEAP32[$6+4>>2]=$25;HEAP32[$6>>2]=$21;$6=HEAP32[$1+28>>2];HEAPF32[($6+Math_imul(HEAP32[$0+120>>2],12)|0)+8>>2]=$23;$6=$6+Math_imul(HEAP32[$0+124>>2],12)|0;HEAP32[$6+4>>2]=$18;HEAP32[$6>>2]=$17;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+124>>2],12)|0)+8>>2]=$24}function b2DistanceJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=0,$21=0,$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=0,$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0);$2=HEAP32[$0+48>>2];$21=HEAP32[$2+8>>2];HEAP32[$0+108>>2]=$21;$9=HEAP32[$0+52>>2];$14=HEAP32[$9+8>>2];HEAP32[$0+112>>2]=$14;$6=HEAPF32[$2+32>>2];$8=HEAP32[$2+32>>2];$13=HEAPF32[$2+28>>2];HEAP32[$0+140>>2]=HEAP32[$2+28>>2];HEAP32[$0+144>>2]=$8;$22=HEAPF32[$9+32>>2];$20=HEAP32[$9+32>>2];$10=HEAPF32[$9+28>>2];HEAP32[$0+148>>2]=HEAP32[$9+28>>2];HEAP32[$0+152>>2]=$20;HEAP32[$0+156>>2]=HEAP32[$2+120>>2];HEAP32[$0+160>>2]=HEAP32[$9+120>>2];HEAP32[$0+164>>2]=HEAP32[$2+128>>2];HEAP32[$0+168>>2]=HEAP32[$9+128>>2];$11=HEAPF32[$0+84>>2];$8=HEAP32[$1+24>>2];$2=Math_imul($21,12);$9=$8+$2|0;$5=HEAPF32[$9+8>>2];$4=sinf($5);$3=HEAPF32[$0+80>>2];$5=cosf($5);$15=HEAP32[$1+28>>2];$2=$15+$2|0;$29=HEAPF32[$2>>2];$20=HEAP32[$2>>2];$30=HEAPF32[$2+4>>2];$25=HEAP32[$2+4>>2];$23=HEAPF32[$2+8>>2];$26=Math_imul($14,12);$2=$15+$26|0;$31=HEAPF32[$2>>2];$14=HEAP32[$2>>2];$32=HEAPF32[$2+4>>2];$15=HEAP32[$2+4>>2];$24=HEAPF32[$2+8>>2];$7=HEAPF32[$9+4>>2];$2=$8+$26|0;$16=HEAPF32[$2+4>>2];$17=HEAPF32[$9>>2];$18=HEAPF32[$2>>2];$12=HEAPF32[$2+8>>2];$3=Math_fround($3-$13);$11=Math_fround($11-$6);$13=Math_fround(Math_fround($5*$3)-Math_fround($4*$11));HEAPF32[$0+124>>2]=$13;$11=Math_fround(Math_fround($4*$3)+Math_fround($5*$11));HEAPF32[$0+128>>2]=$11;$3=HEAPF32[$0+92>>2];$4=sinf($12);$6=HEAPF32[$0+88>>2];$5=cosf($12);$10=Math_fround($6-$10);$3=Math_fround($3-$22);$12=Math_fround(Math_fround($5*$10)-Math_fround($4*$3));HEAPF32[$0+132>>2]=$12;$10=Math_fround(Math_fround($4*$10)+Math_fround($5*$3));HEAPF32[$0+136>>2]=$10;$4=Math_fround(Math_fround(Math_fround($18+$12)-$17)-$13);HEAPF32[$0+116>>2]=$4;$3=Math_fround(Math_fround(Math_fround($16+$10)-$7)-$11);HEAPF32[$0+120>>2]=$3;$2=$0;$16=Math_fround(Math_sqrt(Math_fround(Math_fround($4*$4)+Math_fround($3*$3))));label$1:{if(!!($16>Math_fround(.004999999888241291))){$6=$4;$4=Math_fround(Math_fround(1)/$16);$5=Math_fround($6*$4);HEAPF32[$0+116>>2]=$5;$4=Math_fround($3*$4);break label$1}HEAP32[$0+116>>2]=0;$5=Math_fround(0);$4=Math_fround(0)}HEAPF32[$2+120>>2]=$4;$3=Math_fround(0);$17=HEAPF32[$0+160>>2];$18=HEAPF32[$0+156>>2];$7=Math_fround(Math_fround($13*$4)-Math_fround($11*$5));$27=HEAPF32[$0+164>>2];$6=Math_fround($17+Math_fround($18+Math_fround($7*Math_fround($7*$27))));$7=Math_fround(Math_fround($12*$4)-Math_fround($10*$5));$28=HEAPF32[$0+168>>2];$6=Math_fround($6+Math_fround($7*Math_fround($7*$28)));$7=$6!=Math_fround(0)?Math_fround(Math_fround(1)/$6):Math_fround(0);HEAPF32[$0+172>>2]=$7;$2=$0;$19=HEAPF32[$0+68>>2];if(!($19>Math_fround(0))){$6=Math_fround(0)}else{$3=Math_fround($19*Math_fround(6.2831854820251465));$19=Math_fround($3*Math_fround($3*$7));$22=$6;$6=HEAPF32[$1>>2];$3=Math_fround($6*Math_fround(Math_fround($3*Math_fround(Math_fround($7+$7)*HEAPF32[$0+72>>2]))+Math_fround($6*$19)));$3=$3!=Math_fround(0)?Math_fround(Math_fround(1)/$3):Math_fround(0);$7=Math_fround($22+$3);HEAPF32[$0+172>>2]=$7!=Math_fround(0)?Math_fround(Math_fround(1)/$7):Math_fround(0);$6=Math_fround(Math_fround($19*Math_fround($6*Math_fround($16-HEAPF32[$0+104>>2])))*$3)}HEAPF32[$2+76>>2]=$6;HEAPF32[$0+96>>2]=$3;label$5:{if(HEAPU8[$1+20|0]){$3=Math_fround(HEAPF32[$1+8>>2]*HEAPF32[$0+100>>2]);HEAPF32[$0+100>>2]=$3;$4=Math_fround($4*$3);$5=Math_fround($5*$3);$24=Math_fround($24+Math_fround($28*Math_fround(Math_fround($12*$4)-Math_fround($10*$5))));$23=Math_fround($23-Math_fround($27*Math_fround(Math_fround($13*$4)-Math_fround($11*$5))));$15=(wasm2js_scratch_store_f32(Math_fround(Math_fround($17*$4)+$32)),wasm2js_scratch_load_i32(0));$14=(wasm2js_scratch_store_f32(Math_fround(Math_fround($17*$5)+$31)),wasm2js_scratch_load_i32(0));$25=(wasm2js_scratch_store_f32(Math_fround($30-Math_fround($18*$4))),wasm2js_scratch_load_i32(0));$20=(wasm2js_scratch_store_f32(Math_fround($29-Math_fround($18*$5))),wasm2js_scratch_load_i32(0));break label$5}HEAP32[$0+100>>2]=0}$8=HEAP32[$1+28>>2]+Math_imul($21,12)|0;HEAP32[$8+4>>2]=$25;HEAP32[$8>>2]=$20;$8=HEAP32[$1+28>>2];HEAPF32[($8+Math_imul(HEAP32[$0+108>>2],12)|0)+8>>2]=$23;$8=$8+Math_imul(HEAP32[$0+112>>2],12)|0;HEAP32[$8+4>>2]=$15;HEAP32[$8>>2]=$14;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+112>>2],12)|0)+8>>2]=$24}function dmRender__DebugRenderer__DebugRenderer_28_29($0){var $1=0;$0=memset($0,0,736);HEAP32[$0+516>>2]=0;HEAP32[$0+520>>2]=0;HEAP32[$0+512>>2]=1065353216;HEAP32[$0+524>>2]=0;HEAP32[$0+528>>2]=0;HEAP32[$0+536>>2]=0;HEAP32[$0+540>>2]=0;HEAP32[$0+532>>2]=1065353216;HEAP32[$0+544>>2]=0;HEAP32[$0+548>>2]=0;HEAP32[$0+556>>2]=0;HEAP32[$0+560>>2]=0;HEAP32[$0+552>>2]=1065353216;HEAP32[$0+564>>2]=0;HEAP32[$0+568>>2]=0;HEAP32[$0+580>>2]=0;HEAP32[$0+584>>2]=0;HEAP32[$0+572>>2]=1065353216;HEAP32[$0+576>>2]=1065353216;HEAP32[$0+588>>2]=0;HEAP32[$0+592>>2]=0;HEAP32[$0+600>>2]=0;HEAP32[$0+604>>2]=0;HEAP32[$0+596>>2]=1065353216;HEAP32[$0+608>>2]=0;HEAP32[$0+612>>2]=0;HEAP32[$0+616>>2]=1065353216;HEAP32[$0+628>>2]=0;HEAP32[$0+632>>2]=0;HEAP32[$0+620>>2]=0;HEAP32[$0+624>>2]=0;HEAP32[$0+508>>2]=-1;HEAP32[$0+636>>2]=1065353216;HEAP32[$0+476>>2]=-1;HEAP32[$0+444>>2]=-1;HEAP32[$0+412>>2]=-1;HEAP32[$0+380>>2]=-1;HEAP32[$0+348>>2]=-1;HEAP32[$0+316>>2]=-1;HEAP32[$0+284>>2]=-1;HEAP32[$0+252>>2]=-1;HEAP32[$0+220>>2]=-1;HEAP32[$0+188>>2]=-1;HEAP32[$0+156>>2]=-1;HEAP32[$0+124>>2]=-1;HEAP32[$0+92>>2]=-1;HEAP32[$0+60>>2]=-1;HEAP32[$0+28>>2]=-1;memset($0+752|0,0,736);$1=$0+1268|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1264>>2]=1065353216;$1=$0+1276|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1288|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1284>>2]=1065353216;$1=$0+1296|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1308|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1304>>2]=1065353216;$1=$0+1316|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1332|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1324|0;HEAP32[$1>>2]=1065353216;HEAP32[$1+4>>2]=1065353216;$1=$0+1340|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1352|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1348>>2]=1065353216;$1=$0+1360|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1368>>2]=1065353216;$1=$0+1380|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1372|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1260>>2]=-1;HEAP32[$0+1388>>2]=1065353216;HEAP32[$0+1228>>2]=-1;HEAP32[$0+1196>>2]=-1;HEAP32[$0+1164>>2]=-1;HEAP32[$0+1132>>2]=-1;HEAP32[$0+1100>>2]=-1;HEAP32[$0+1068>>2]=-1;HEAP32[$0+1036>>2]=-1;HEAP32[$0+1004>>2]=-1;HEAP32[$0+972>>2]=-1;HEAP32[$0+940>>2]=-1;HEAP32[$0+908>>2]=-1;HEAP32[$0+876>>2]=-1;HEAP32[$0+844>>2]=-1;HEAP32[$0+812>>2]=-1;HEAP32[$0+780>>2]=-1;memset($0+1504|0,0,736);$1=$0+2020|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2016>>2]=1065353216;$1=$0+2028|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2040|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2036>>2]=1065353216;$1=$0+2048|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2060|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2056>>2]=1065353216;$1=$0+2068|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2084|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2076|0;HEAP32[$1>>2]=1065353216;HEAP32[$1+4>>2]=1065353216;$1=$0+2092|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2104|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2100>>2]=1065353216;$1=$0+2112|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2120>>2]=1065353216;$1=$0+2132|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2124|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2012>>2]=-1;HEAP32[$0+2140>>2]=1065353216;HEAP32[$0+1980>>2]=-1;HEAP32[$0+1948>>2]=-1;HEAP32[$0+1916>>2]=-1;HEAP32[$0+1884>>2]=-1;HEAP32[$0+1852>>2]=-1;HEAP32[$0+1820>>2]=-1;HEAP32[$0+1788>>2]=-1;HEAP32[$0+1756>>2]=-1;HEAP32[$0+1724>>2]=-1;HEAP32[$0+1692>>2]=-1;HEAP32[$0+1660>>2]=-1;HEAP32[$0+1628>>2]=-1;HEAP32[$0+1596>>2]=-1;HEAP32[$0+1564>>2]=-1;HEAP32[$0+1532>>2]=-1;memset($0+2256|0,0,736);$1=$0+2772|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2768>>2]=1065353216;$1=$0+2780|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2792|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2788>>2]=1065353216;$1=$0+2800|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2812|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2808>>2]=1065353216;$1=$0+2820|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2836|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2828|0;HEAP32[$1>>2]=1065353216;HEAP32[$1+4>>2]=1065353216;$1=$0+2844|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2856|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2852>>2]=1065353216;$1=$0+2864|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2872>>2]=1065353216;$1=$0+2884|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2876|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2764>>2]=-1;HEAP32[$0+2892>>2]=1065353216;HEAP32[$0+2732>>2]=-1;HEAP32[$0+2700>>2]=-1;HEAP32[$0+2668>>2]=-1;HEAP32[$0+2636>>2]=-1;HEAP32[$0+2604>>2]=-1;HEAP32[$0+2572>>2]=-1;HEAP32[$0+2540>>2]=-1;HEAP32[$0+2508>>2]=-1;HEAP32[$0+2476>>2]=-1;HEAP32[$0+2444>>2]=-1;HEAP32[$0+2412>>2]=-1;HEAP32[$0+2380>>2]=-1;HEAP32[$0+2348>>2]=-1;HEAP32[$0+2316>>2]=-1;HEAP32[$0+2284>>2]=-1}function dmGameSystem__CopyBuffer_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$1=global$0-160|0;global$0=$1;$7=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($1+144|0,$0,0);label$1:{if((lua_type($0,1)|0)==7){$2=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,1,HEAP32[146720],0);label$3:{if(HEAP32[$2+4>>2]==2){$4=HEAP32[$2>>2]+4|0;break label$3}$4=$2}if(dmBuffer__IsBufferValid_28unsigned_20int_29(HEAP32[$4>>2])){break label$1}luaL_error($0,60872,0)}luaL_typerror($0,1,60592);$2=0}label$5:{if((lua_type($0,3)|0)==7){$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[146720],0);label$7:{if(HEAP32[$3+4>>2]==2){$4=HEAP32[$3>>2]+4|0;break label$7}$4=$3}if(dmBuffer__IsBufferValid_28unsigned_20int_29(HEAP32[$4>>2])){break label$5}luaL_error($0,60872,0)}luaL_typerror($0,3,60592);$3=0}if(HEAP32[$2+4>>2]==2){$2=HEAP32[$2>>2]+4|0}$14=HEAP32[$2>>2];if(HEAP32[$3+4>>2]==2){$3=HEAP32[$3>>2]+4|0}$11=HEAP32[$3>>2];$12=luaL_checkinteger($0,2);$15=luaL_checkinteger($0,4);$8=luaL_checkinteger($0,5);label$13:{if(($8|0)<=0){HEAP32[$1>>2]=$8;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62253,$1);break label$13}dmBuffer__GetCount_28unsigned_20int_2c_20unsigned_20int__29($14,$1+140|0);dmBuffer__GetCount_28unsigned_20int_2c_20unsigned_20int__29($11,$1+136|0);$0=HEAP32[$1+140>>2];if(($8+$12|0)>($0|0)){HEAP32[$1+24>>2]=$8;HEAP32[$1+20>>2]=$12;HEAP32[$1+16>>2]=$0;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62282,$1+16|0);break label$13}if(($8+$15|0)>HEAP32[$1+136>>2]){HEAP32[$1+40>>2]=$8;HEAP32[$1+36>>2]=$12;HEAP32[$1+32>>2]=$0;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62379,$1+32|0);break label$13}dmBuffer__GetNumStreams_28unsigned_20int_2c_20unsigned_20int__29($11,$1+132|0);$0=HEAP32[$1+132>>2];$9=$1-Math_imul($0,96)|0;global$0=$9;$2=0;if(!$0){break label$13}while(1){$10=$2<<1;$3=Math_imul($10|1,48)+$9|0;dmBuffer__GetStreamName_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long_20long__29($11,$2,$3+8|0);$4=HEAP32[$3+12>>2];$0=$4;$5=Math_imul($2,96)+$9|0;$13=$5+36|0;$6=HEAP32[$3+8>>2];$5=dmBuffer__GetStream_28unsigned_20int_2c_20unsigned_20long_20long_2c_20void___2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__29($14,$6,$0,$5+16|0,$5+28|0,$13,$5+32|0);if($5){if(($5|0)==6){HEAP32[$1+64>>2]=dmHashReverseSafe64($6,$0);$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62475,$1- -64|0);break label$13}$0=$1;if($5>>>0<=8){$4=HEAP32[($5<<2)+558112>>2]}else{$4=134896}HEAP32[$0+48>>2]=$4;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62538,$1+48|0);break label$13}$5=$3+36|0;dmBuffer__GetStream_28unsigned_20int_2c_20unsigned_20long_20long_2c_20void___2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__29($11,$6,$0,$3+16|0,$3+28|0,$5,$3+32|0);$10=Math_imul($10,48)+$9|0;$4=$10;dmBuffer__GetStreamType_28unsigned_20int_2c_20unsigned_20long_20long_2c_20dmBuffer__ValueType__2c_20unsigned_20int__29($14,$6,$0,$10+40|0,$13);dmBuffer__GetStreamType_28unsigned_20int_2c_20unsigned_20long_20long_2c_20dmBuffer__ValueType__2c_20unsigned_20int__29($11,$6,$0,$3+40|0,$5);if(HEAP32[$10+40>>2]!=HEAP32[$3+40>>2]){$8=dmHashReverseSafe64($6,$0);$0=HEAP32[$4+40>>2];label$23:{if($0>>>0<=8){$0=HEAP32[($0<<2)+558148>>2];break label$23}$0=135080}$4=$1;$3=HEAP32[$3+40>>2];label$25:{if($3>>>0<=8){$2=HEAP32[($3<<2)+558148>>2];break label$25}$2=135080}HEAP32[$4+120>>2]=$2;HEAP32[$1+116>>2]=$0;HEAP32[$1+112>>2]=$8;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62600,$1+112|0);break label$13}if(HEAP32[$13>>2]!=HEAP32[$5>>2]){$0=dmHashReverseSafe64($6,$0);$2=HEAP32[$13>>2];HEAP32[$1+104>>2]=HEAP32[$5>>2];HEAP32[$1+100>>2]=$2;HEAP32[$1+96>>2]=$0;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62670,$1+96|0);break label$13}$2=$2+1|0;$0=HEAP32[$1+132>>2];if($2>>>0<$0>>>0){continue}break}$2=0;if(!$0){break label$13}$0=0;while(1){$6=Math_imul($0,96)+$9|0;$3=HEAP32[$6+36>>2];$4=$6;$6=$0<<1;if(dmGameSystem__CopyStreamInternal_28dmGameSystem__BufferStream__2c_20unsigned_20int_2c_20dmGameSystem__BufferStream_20const__2c_20unsigned_20int_2c_20unsigned_20int_29($4,Math_imul($3,$12),Math_imul($6|1,48)+$9|0,Math_imul($3,$15),Math_imul($3,$8))){$0=$0+1|0;if($0>>>0>2]){continue}break label$13}break}HEAP32[$1+80>>2]=HEAP32[(Math_imul($6,48)+$9|0)+40>>2];$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62223,$1+80|0)}dmScript__LuaStackCheck___LuaStackCheck_28_29($7);global$0=$1+160|0;return $2|0}function UpsampleRgbLinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$11=Math_imul(HEAPU8[$0|0],19077)>>>8|0;$14=HEAPU8[$4|0]|HEAPU8[$5|0]<<16;$10=HEAPU8[$2|0]|HEAPU8[$3|0]<<16;$12=($14+Math_imul($10,3)|0)+131074|0;$17=$12>>>18|0;$16=$11+(Math_imul($17,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$6|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$6+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$6+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255;if($1){$11=Math_imul(HEAPU8[$1|0],19077)>>>8|0;$12=(Math_imul($14,3)+$10|0)+131074|0;$17=$12>>>18|0;$16=$11+(Math_imul($17,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$7|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$7+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$7+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255}$16=$8+ -1|0;label$3:{if(($8|0)<3){$11=$14;$12=$10;break label$3}$11=$16>>1;$26=($11|0)>1?$11:1;$17=1;while(1){$11=HEAPU8[$4+$17|0]|HEAPU8[$5+$17|0]<<16;$12=HEAPU8[$2+$17|0]|HEAPU8[$3+$17|0]<<16;$18=$14+$12|0;$9=($11+($18+$10|0)|0)+524296|0;$22=$17<<1;$19=$22+ -1|0;$23=Math_imul($19,3);$13=$23+$6|0;$25=$9+($18<<1)>>>3|0;$20=$25+$10|0;$24=$20>>>17|0;$18=Math_imul(HEAPU8[$0+$19|0],19077)>>>8|0;$15=(Math_imul($24,26149)>>>8|0)+$18|0;$21=$15+ -14234|0;HEAP8[$13|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<14234?0:255;$20=$20>>>1&255;$15=$18+(Math_imul($20,33050)>>>8|0)|0;$21=$15+ -17685|0;HEAP8[$13+2|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<17685?0:255;$15=$13;$13=$18-(Math_imul($20,6419)>>>8|0)-(Math_imul($24,13320)>>>8)|0;$18=$13+8708|0;HEAP8[$15+1|0]=$18>>>0<16384?$18>>>6|0:($13|0)<-8708?0:255;$18=Math_imul($17,6);$13=$18+$6|0;$9=$9+($10+$11<<1)>>>3|0;$20=$9+$12|0;$24=$20>>>1&255;$10=Math_imul(HEAPU8[$0+$22|0],19077)>>>8|0;$15=(Math_imul($24,33050)>>>8|0)+$10|0;$21=$15+ -17685|0;HEAP8[$13+2|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<17685?0:255;$20=$20>>>17|0;$15=$10+(Math_imul($20,26149)>>>8|0)|0;$21=$15+ -14234|0;HEAP8[$13|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<14234?0:255;$15=$13;$10=$10-(Math_imul($24,6419)>>>8|0)-(Math_imul($20,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255;if($1){$10=$7+$23|0;$9=$9+$14|0;$13=$9>>>17|0;$14=Math_imul(HEAPU8[$1+$19|0],19077)>>>8|0;$19=(Math_imul($13,26149)>>>8|0)+$14|0;$23=$19+ -14234|0;HEAP8[$10|0]=$23>>>0<16384?$23>>>6|0:$19>>>0<14234?0:255;$9=$9>>>1&255;$19=$14+(Math_imul($9,33050)>>>8|0)|0;$23=$19+ -17685|0;HEAP8[$10+2|0]=$23>>>0<16384?$23>>>6|0:$19>>>0<17685?0:255;$15=$10;$10=$14-(Math_imul($9,6419)>>>8|0)-(Math_imul($13,13320)>>>8)|0;$14=$10+8708|0;HEAP8[$15+1|0]=$14>>>0<16384?$14>>>6|0:($10|0)<-8708?0:255;$10=$7+$18|0;$14=Math_imul(HEAPU8[$1+$22|0],19077)>>>8|0;$9=$11+$25|0;$19=$9>>>1&255;$22=$14+(Math_imul($19,33050)>>>8|0)|0;$13=$22+ -17685|0;HEAP8[$10+2|0]=$13>>>0<16384?$13>>>6|0:$22>>>0<17685?0:255;$9=$9>>>17|0;$22=$14+(Math_imul($9,26149)>>>8|0)|0;$13=$22+ -14234|0;HEAP8[$10|0]=$13>>>0<16384?$13>>>6|0:$22>>>0<14234?0:255;$13=$10;$10=$14-(Math_imul($19,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$14=$10+8708|0;HEAP8[$13+1|0]=$14>>>0<16384?$14>>>6|0:($10|0)<-8708?0:255}$9=($17|0)!=($26|0);$17=$17+1|0;$10=$12;$14=$11;if($9){continue}break}}label$7:{if($8&1){break label$7}$3=Math_imul($16,3);$2=$3+$6|0;$0=Math_imul(HEAPU8[$0+$16|0],19077)>>>8|0;$4=(Math_imul($12,3)+$11|0)+131074|0;$5=$4>>>18|0;$6=$0+(Math_imul($5,26149)>>>8|0)|0;$8=$6+ -14234|0;HEAP8[$2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<14234?0:255;$4=$4>>>2&255;$6=$0+(Math_imul($4,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$2+2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:255;$6=$2;$0=$0-(Math_imul($4,6419)>>>8|0)-(Math_imul($5,13320)>>>8)|0;$2=$0+8708|0;HEAP8[$6+1|0]=$2>>>0<16384?$2>>>6|0:($0|0)<-8708?0:255;if(!$1){break label$7}$0=$3+$7|0;$1=Math_imul(HEAPU8[$1+$16|0],19077)>>>8|0;$2=(Math_imul($11,3)+$12|0)+131074|0;$3=$2>>>18|0;$4=$1+(Math_imul($3,26149)>>>8|0)|0;$5=$4+ -14234|0;HEAP8[$0|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<14234?0:255;$2=$2>>>2&255;$4=$1+(Math_imul($2,33050)>>>8|0)|0;$5=$4+ -17685|0;HEAP8[$0+2|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<17685?0:255;$4=$0;$0=$1-(Math_imul($2,6419)>>>8|0)-(Math_imul($3,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$4+1|0]=$1>>>0<16384?$1>>>6|0:($0|0)<-8708?0:255}return}__assert_fail(182795,182809,96,182838);abort()}function UpsampleBgrLinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$11=Math_imul(HEAPU8[$0|0],19077)>>>8|0;$14=HEAPU8[$4|0]|HEAPU8[$5|0]<<16;$10=HEAPU8[$2|0]|HEAPU8[$3|0]<<16;$12=($14+Math_imul($10,3)|0)+131074|0;$17=$12>>>18|0;$16=$11+(Math_imul($17,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$6+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$6|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$6+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255;if($1){$11=Math_imul(HEAPU8[$1|0],19077)>>>8|0;$12=(Math_imul($14,3)+$10|0)+131074|0;$17=$12>>>18|0;$16=$11+(Math_imul($17,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$7+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$7|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$7+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255}$16=$8+ -1|0;label$3:{if(($8|0)<3){$11=$14;$12=$10;break label$3}$11=$16>>1;$26=($11|0)>1?$11:1;$17=1;while(1){$11=HEAPU8[$4+$17|0]|HEAPU8[$5+$17|0]<<16;$12=HEAPU8[$2+$17|0]|HEAPU8[$3+$17|0]<<16;$18=$14+$12|0;$9=($11+($18+$10|0)|0)+524296|0;$22=$17<<1;$19=$22+ -1|0;$23=Math_imul($19,3);$13=$23+$6|0;$25=$9+($18<<1)>>>3|0;$20=$25+$10|0;$24=$20>>>17|0;$18=Math_imul(HEAPU8[$0+$19|0],19077)>>>8|0;$15=(Math_imul($24,26149)>>>8|0)+$18|0;$21=$15+ -14234|0;HEAP8[$13+2|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<14234?0:255;$20=$20>>>1&255;$15=$18+(Math_imul($20,33050)>>>8|0)|0;$21=$15+ -17685|0;HEAP8[$13|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<17685?0:255;$15=$13;$13=$18-(Math_imul($20,6419)>>>8|0)-(Math_imul($24,13320)>>>8)|0;$18=$13+8708|0;HEAP8[$15+1|0]=$18>>>0<16384?$18>>>6|0:($13|0)<-8708?0:255;$18=Math_imul($17,6);$13=$18+$6|0;$9=$9+($10+$11<<1)>>>3|0;$20=$9+$12|0;$24=$20>>>17|0;$10=Math_imul(HEAPU8[$0+$22|0],19077)>>>8|0;$15=(Math_imul($24,26149)>>>8|0)+$10|0;$21=$15+ -14234|0;HEAP8[$13+2|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<14234?0:255;$20=$20>>>1&255;$15=$10+(Math_imul($20,33050)>>>8|0)|0;$21=$15+ -17685|0;HEAP8[$13|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<17685?0:255;$15=$13;$10=$10-(Math_imul($20,6419)>>>8|0)-(Math_imul($24,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255;if($1){$10=$7+$23|0;$9=$9+$14|0;$13=$9>>>17|0;$14=Math_imul(HEAPU8[$1+$19|0],19077)>>>8|0;$19=(Math_imul($13,26149)>>>8|0)+$14|0;$23=$19+ -14234|0;HEAP8[$10+2|0]=$23>>>0<16384?$23>>>6|0:$19>>>0<14234?0:255;$9=$9>>>1&255;$19=$14+(Math_imul($9,33050)>>>8|0)|0;$23=$19+ -17685|0;HEAP8[$10|0]=$23>>>0<16384?$23>>>6|0:$19>>>0<17685?0:255;$15=$10;$10=$14-(Math_imul($9,6419)>>>8|0)-(Math_imul($13,13320)>>>8)|0;$14=$10+8708|0;HEAP8[$15+1|0]=$14>>>0<16384?$14>>>6|0:($10|0)<-8708?0:255;$10=$7+$18|0;$14=Math_imul(HEAPU8[$1+$22|0],19077)>>>8|0;$9=$11+$25|0;$19=$9>>>17|0;$22=$14+(Math_imul($19,26149)>>>8|0)|0;$13=$22+ -14234|0;HEAP8[$10+2|0]=$13>>>0<16384?$13>>>6|0:$22>>>0<14234?0:255;$9=$9>>>1&255;$22=$14+(Math_imul($9,33050)>>>8|0)|0;$13=$22+ -17685|0;HEAP8[$10|0]=$13>>>0<16384?$13>>>6|0:$22>>>0<17685?0:255;$13=$10;$10=$14-(Math_imul($9,6419)>>>8|0)-(Math_imul($19,13320)>>>8)|0;$14=$10+8708|0;HEAP8[$13+1|0]=$14>>>0<16384?$14>>>6|0:($10|0)<-8708?0:255}$9=($17|0)!=($26|0);$17=$17+1|0;$10=$12;$14=$11;if($9){continue}break}}label$7:{if($8&1){break label$7}$3=Math_imul($16,3);$2=$3+$6|0;$0=Math_imul(HEAPU8[$0+$16|0],19077)>>>8|0;$4=(Math_imul($12,3)+$11|0)+131074|0;$5=$4>>>18|0;$6=$0+(Math_imul($5,26149)>>>8|0)|0;$8=$6+ -14234|0;HEAP8[$2+2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<14234?0:255;$4=$4>>>2&255;$6=$0+(Math_imul($4,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:255;$6=$2;$0=$0-(Math_imul($4,6419)>>>8|0)-(Math_imul($5,13320)>>>8)|0;$2=$0+8708|0;HEAP8[$6+1|0]=$2>>>0<16384?$2>>>6|0:($0|0)<-8708?0:255;if(!$1){break label$7}$0=$3+$7|0;$1=Math_imul(HEAPU8[$1+$16|0],19077)>>>8|0;$2=(Math_imul($11,3)+$12|0)+131074|0;$3=$2>>>18|0;$4=$1+(Math_imul($3,26149)>>>8|0)|0;$5=$4+ -14234|0;HEAP8[$0+2|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<14234?0:255;$2=$2>>>2&255;$4=$1+(Math_imul($2,33050)>>>8|0)|0;$5=$4+ -17685|0;HEAP8[$0|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<17685?0:255;$4=$0;$0=$1-(Math_imul($2,6419)>>>8|0)-(Math_imul($3,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$4+1|0]=$1>>>0<16384?$1>>>6|0:($0|0)<-8708?0:255}return}__assert_fail(182795,182809,97,182879);abort()}function __intscan($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$11=global$0-16|0;global$0=$11;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{if($1>>>0<=36){while(1){$5=HEAP32[$0+4>>2];label$9:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$9}$5=__shgetc($0)}if(($5|0)==32|$5+ -9>>>0<5){continue}break}$8=$5+ -43|0;label$11:{if($8>>>0>2|!($8-1)){break label$11}$12=($5|0)==45?-1:0;$5=HEAP32[$0+4>>2];if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$11}$5=__shgetc($0)}label$13:{if(!($1&-17|($5|0)!=48)){$5=HEAP32[$0+4>>2];label$15:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$15}$5=__shgetc($0)}if(($5&-33)==88){$1=HEAP32[$0+4>>2];label$18:{if($1>>>0>2]){HEAP32[$0+4>>2]=$1+1;$5=HEAPU8[$1|0];break label$18}$5=__shgetc($0)}$1=16;if(HEAPU8[$5+218769|0]<16){break label$5}if(!HEAP32[$0+104>>2]){$3=0;$4=0;if($2){break label$1}break label$2}$1=HEAP32[$0+4>>2];HEAP32[$0+4>>2]=$1+ -1;if(!$2){break label$2}HEAP32[$0+4>>2]=$1+ -2;$3=0;$4=0;break label$1}if($1){break label$13}$1=8;break label$5}$1=$1?$1:10;if($1>>>0>HEAPU8[$5+218769|0]){break label$13}if(HEAP32[$0+104>>2]){HEAP32[$0+4>>2]=HEAP32[$0+4>>2]+ -1}$3=0;$4=0;__shlim($0,0,0);HEAP32[310273]=28;break label$1}if(($1|0)!=10){break label$5}$2=$5+ -48|0;if($2>>>0<=9){$1=0;while(1){$6=Math_imul($1,10);$1=HEAP32[$0+4>>2];label$24:{if($1>>>0>2]){HEAP32[$0+4>>2]=$1+1;$5=HEAPU8[$1|0];break label$24}$5=__shgetc($0)}$1=$2+$6|0;$2=$5+ -48|0;if($1>>>0<429496729?$2>>>0<=9:0){continue}break}$7=$1;$6=0}if($2>>>0>9){break label$6}$8=__wasm_i64_mul($7,0,10,0);$1=i64toi32_i32$HIGH_BITS;while(1){$5=HEAP32[$0+4>>2];label$27:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$27}$5=__shgetc($0)}$6=$1;$1=$2+$8|0;if($1>>>0<$2>>>0){$6=$6+1|0}$7=$1;$2=$5+ -48|0;if(($6|0)==429496729&$1>>>0>=2576980378|$6>>>0>429496729|$2>>>0>9){break label$6}$8=__wasm_i64_mul($7,$6,10,0);$1=i64toi32_i32$HIGH_BITS;if(($1|0)==-1&$8>>>0<=($2^-1)>>>0|$1>>>0<4294967295){continue}break}$1=10;break label$4}HEAP32[310273]=28;$3=0;$4=0;break label$1}$1=10;if($2>>>0<=9){break label$4}break label$3}if($1+ -1&$1){$2=HEAPU8[$5+218769|0];if($1>>>0>$2>>>0){while(1){$7=Math_imul($1,$7)+$2|0;$10=$7>>>0<=119304646;$8=$1;$5=HEAP32[$0+4>>2];label$32:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$32}$5=__shgetc($0)}$2=HEAPU8[$5+218769|0];if($8>>>0>$2>>>0?$10:0){continue}break}}if($1>>>0<=$2>>>0){break label$4}$8=$1;while(1){$9=__wasm_i64_mul($7,$6,$8,0);$10=i64toi32_i32$HIGH_BITS;$2=$2&255;if(($10|0)==-1&$9>>>0>($2^-1)>>>0|$10>>>0>4294967295){break label$4}$5=HEAP32[$0+4>>2];label$35:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$35}$5=__shgetc($0)}$6=$10;$7=$2+$9|0;if($7>>>0<$2>>>0){$6=$6+1|0}$2=HEAPU8[$5+218769|0];if($1>>>0<=$2>>>0){break label$4}__multi3($11,$8,0,$7,$6);if(!(HEAP32[$11+8>>2]|HEAP32[$11+12>>2])){continue}break}break label$4}$8=HEAP8[(Math_imul($1,23)>>>5&7)+219025|0];$2=HEAPU8[$5+218769|0];if($1>>>0>$2>>>0){while(1){$7=$7<<$8|$2;$13=$7>>>0<=134217727;$9=$1;$5=HEAP32[$0+4>>2];label$39:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$39}$5=__shgetc($0)}$2=HEAPU8[$5+218769|0];if($9>>>0>$2>>>0?$13:0){continue}break}}$9=$8&31;if(32<=($8&63)>>>0){$9=-1>>>$9|0}else{$10=-1>>>$9|0;$9=(1<<$9)-1<<32-$9|-1>>>$9}if(!$10&$9>>>0<$7>>>0|$10>>>0<0|$1>>>0<=$2>>>0){break label$4}while(1){$13=$2&255;$2=$8;$5=$2&31;if(32<=($2&63)>>>0){$6=$7<<$5;$2=0}else{$6=(1<<$5)-1&$7>>>32-$5|$6<<$5;$2=$7<<$5}$7=$13|$2;$2=HEAP32[$0+4>>2];label$42:{if($2>>>0>2]){HEAP32[$0+4>>2]=$2+1;$5=HEAPU8[$2|0];break label$42}$5=__shgetc($0)}if(($6|0)==($10|0)&$7>>>0>$9>>>0|$6>>>0>$10>>>0){break label$4}$2=HEAPU8[$5+218769|0];if($1>>>0>$2>>>0){continue}break}}if($1>>>0<=HEAPU8[$5+218769|0]){break label$3}while(1){$2=$1;$5=HEAP32[$0+4>>2];label$45:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$45}$5=__shgetc($0)}if($2>>>0>HEAPU8[$5+218769|0]){continue}break}HEAP32[310273]=68;$12=$3&1?0:$12;$7=$3;$6=$4}if(HEAP32[$0+104>>2]){HEAP32[$0+4>>2]=HEAP32[$0+4>>2]+ -1}label$48:{if(($4|0)==($6|0)&$7>>>0<$3>>>0|$6>>>0<$4>>>0){break label$48}if(!($12|$3&1)){HEAP32[310273]=68;$4=$4+ -1|0;$0=$3+ -1|0;if($0>>>0<4294967295){$4=$4+1|0}$3=$0;break label$1}if(($4|0)==($6|0)&$7>>>0<=$3>>>0|$6>>>0<$4>>>0){break label$48}HEAP32[310273]=68;break label$1}$0=$12;$1=$0^$7;$3=$1-$0|0;$2=$0>>31;$4=($2^$6)-($2+($1>>>0<$0>>>0)|0)|0;break label$1}$3=0;$4=0;__shlim($0,0,0)}global$0=$11+16|0;i64toi32_i32$HIGH_BITS=$4;return $3}function dmGameObject__Animate_28dmGameObject__CollectionHandle__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20dmGameObject__PropertyVar__2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12){var $13=0,$14=0,$15=0,$16=Math_fround(0),$17=0,$18=0,$19=0,$20=Math_fround(0),$21=0,$22=0,$23=0;$13=global$0-240|0;global$0=$13;label$1:{if(!$1){$14=-6;break label$1}$15=dmGameObject__PropertyDesc__PropertyDesc_28_29($13+160|0);$14=dmGameObject__GetProperty_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__29($1,$2,$3,$4,$5,$15);if($14){break label$1}$14=-9;if(HEAPU8[$15+76|0]){break label$1}$17=HEAP32[$7>>2];$18=HEAP32[$15+32>>2];if(($17|0)!=($18|0)){$14=-4;if($18+ -3>>>0>1|$17){break label$1}$16=Math_fround(HEAPF64[$7+8>>3]);label$4:{if(($18|0)==3){HEAPF32[$13+104>>2]=$16;HEAPF32[$13+100>>2]=$16;HEAPF32[$13+96>>2]=$16;HEAP32[$13+120>>2]=3;HEAP32[$13+128>>2]=HEAP32[$13+96>>2];HEAP32[$13+132>>2]=HEAP32[$13+100>>2];HEAP32[$13+136>>2]=HEAP32[$13+104>>2];break label$4}HEAPF32[$13+92>>2]=$16;HEAPF32[$13+88>>2]=$16;HEAPF32[$13+84>>2]=$16;HEAPF32[$13+80>>2]=$16;dmGameObject__PropertyVar__PropertyVar_28Vectormath__Aos__Vector4_29($13+120|0,$13+80|0)}$14=HEAP32[$13+124>>2];HEAP32[$7>>2]=HEAP32[$13+120>>2];HEAP32[$7+4>>2]=$14;$14=HEAP32[$13+156>>2];HEAP32[$7+32>>2]=HEAP32[$13+152>>2];HEAP32[$7+36>>2]=$14;$14=HEAP32[$13+148>>2];HEAP32[$7+24>>2]=HEAP32[$13+144>>2];HEAP32[$7+28>>2]=$14;$14=HEAP32[$13+140>>2];HEAP32[$7+16>>2]=HEAP32[$13+136>>2];HEAP32[$7+20>>2]=$14;$14=HEAP32[$13+132>>2];HEAP32[$7+8>>2]=HEAP32[$13+128>>2];HEAP32[$7+12>>2]=$14;$17=HEAP32[$15+32>>2]}$14=-3;if($17>>>0>5){break label$1}label$6:{label$7:{switch($17-1|0){case 3:case 4:$17=4;case 2:$0=dmGameObject__GetWorld_28dmGameObject__CollectionHandle__29($0);HEAP32[$13+72>>2]=HEAP32[$8+16>>2];$18=HEAP32[$8+12>>2];$14=$13- -64|0;HEAP32[$14>>2]=HEAP32[$8+8>>2];HEAP32[$14+4>>2]=$18;$14=HEAP32[$8+4>>2];HEAP32[$13+56>>2]=HEAP32[$8>>2];HEAP32[$13+60>>2]=$14;$14=-7;if(!dmGameObject__PlayAnimation_28dmGameObject__AnimWorld__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20float__2c_20float_2c_20float_2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__2c_20bool_29($0,$1,$2,$3,$4,$5,$6,0,Math_fround(0),Math_fround(0),$13+56|0,$9,$10,$11,$12,1)){break label$1}HEAP32[$8+8>>2]=0;$11=$7+8|0;$12=$15+40|0;$7=0;while(1){$4=$7<<2;$16=HEAPF32[$4+$11>>2];$20=HEAPF32[$4+$12>>2];$5=$15+($7<<3)|0;$18=HEAP32[$5>>2];$21=HEAP32[$5+4>>2];$5=HEAP32[$15+72>>2];HEAP32[$13+48>>2]=HEAP32[$8+16>>2];$19=HEAP32[$8+12>>2];HEAP32[$13+40>>2]=HEAP32[$8+8>>2];HEAP32[$13+44>>2]=$19;$19=HEAP32[$8+4>>2];HEAP32[$13+32>>2]=HEAP32[$8>>2];HEAP32[$13+36>>2]=$19;if(!dmGameObject__PlayAnimation_28dmGameObject__AnimWorld__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20float__2c_20float_2c_20float_2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__2c_20bool_29($0,$1,$2,$3,$18,$21,$6,$5?$4+$5|0:0,$20,$16,$13+32|0,$9,$10,0,0,0)){break label$1}$7=$7+1|0;if(($17|0)!=($7|0)){continue}break}break label$6;case 0:case 1:break label$1;default:break label$7}}$0=dmGameObject__GetWorld_28dmGameObject__CollectionHandle__29($0);$22=HEAPF64[$15+40>>3];$15=HEAP32[$15+72>>2];$23=HEAPF64[$7+8>>3];HEAP32[$13+24>>2]=HEAP32[$8+16>>2];$7=HEAP32[$8+12>>2];HEAP32[$13+16>>2]=HEAP32[$8+8>>2];HEAP32[$13+20>>2]=$7;$7=HEAP32[$8+4>>2];HEAP32[$13+8>>2]=HEAP32[$8>>2];HEAP32[$13+12>>2]=$7;$14=-7;if(!dmGameObject__PlayAnimation_28dmGameObject__AnimWorld__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20float__2c_20float_2c_20float_2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__2c_20bool_29($0,$1,$2,$3,$4,$5,$6,$15,Math_fround($22),Math_fround($23),$13+8|0,$9,$10,$11,$12,0)){break label$1}}$14=0}global$0=$13+240|0;return $14}function dmGameSystem__RenderSpineNodes_28dmGui__Scene__2c_20dmGui__RenderEntry_20const__2c_20Vectormath__Aos__Matrix4_20const__2c_20float_20const__2c_20dmGui__StencilScope_20const___2c_20unsigned_20int_2c_20void__29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;$9=global$0-112|0;global$0=$9;$10=HEAP32[$6+8>>2];$16=HEAP32[$1+8>>2];label$1:{label$2:{label$3:{label$4:{label$5:{if((dmGui__GetNodeType_28dmGui__Scene__2c_20unsigned_20int_29($0,$16)|0)==4){$12=HEAP32[$10>>2];$13=(HEAP32[$10+4>>2]-$12|0)/752|0;$7=$13+1|0;if((HEAP32[$10+8>>2]-$12|0)/752>>>0<$7>>>0){break label$1}$7=Math_imul($7,752);HEAP32[$10+4>>2]=$7+$12;if(($7|0)/752>>>0<=$13>>>0){break label$5}$8=HEAP32[$6+12>>2];HEAP32[$6+12>>2]=$8+1;$7=$12+Math_imul($13,752)|0;HEAP32[$7+736>>2]=$8;if($5){$8=0;while(1){$15=HEAP32[(($8<<4)+$1|0)+8>>2];if(!dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($0,$15)){$14=dmRig__GetVertexCount_28dmRig__RigInstance__29(dmGui__GetNodeRigInstance_28dmGui__Scene__2c_20unsigned_20int_29($0,$15))+$14|0}$8=$8+1|0;if(($8|0)!=($5|0)){continue}break}}dmRender__RenderObject__Init_28_29($7);HEAP32[$7+644>>2]=HEAP32[$10+32>>2];$8=HEAP32[$10+36>>2];HEAP32[$7+688>>2]=1;HEAP32[$7+640>>2]=$8;$15=$10+44|0;$8=HEAP32[$15>>2];$11=HEAP32[$10+40>>2];HEAP32[$7+728>>2]=$14;HEAP32[$7+724>>2]=($8-$11|0)/36;HEAP32[$7+652>>2]=HEAP32[$6+4>>2];$8=dmGui__GetNodeBlendMode_28dmGui__Scene__2c_20unsigned_20int_29($0,$16);if($8>>>0>=4){break label$4}$7=$12+Math_imul($13,752)|0;$8=$8<<2;HEAP32[$7+700>>2]=HEAP32[$8+42696>>2];HEAP32[$7+696>>2]=HEAP32[$8+42680>>2];$8=HEAPU8[$7+734|0];HEAP8[$7+734|0]=$8|1;$4=HEAP32[$4>>2];HEAP8[$7+734|0]=$8|3;label$10:{label$11:{if($4){HEAP32[$7+704>>2]=5;HEAP32[$7+716>>2]=2;HEAP32[$7+708>>2]=0;HEAP32[$7+712>>2]=2;$8=$7+720|0;$11=HEAPU8[$4|0]|HEAP32[$7+720>>2]&-256;HEAP32[$8>>2]=$11;$11=$11&-65281|HEAPU8[$4+1|0]<<8;HEAP32[$7+720>>2]=$11;$11=$11&-16711681|HEAPU8[$4+2|0]<<16;HEAP32[$7+720>>2]=$11;HEAP32[$7+720>>2]=$11&-251658241|(HEAPU8[$4+3|0]&15)<<24;if(!HEAPU8[$6+16|0]){break label$10}HEAP8[$6+16|0]=0;$4=HEAP32[$7+720>>2]|268435456;break label$11}HEAP32[$7+704>>2]=7;HEAP32[$7+716>>2]=0;HEAP32[$7+708>>2]=0;HEAP32[$7+712>>2]=0;$8=$7+720|0;$4=HEAP32[$8>>2]&-268435456|268435200}HEAP32[$8>>2]=$4}$8=dmGui__GetNodeTexture_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__NodeTextureType__29($0,$16,$9+32|0);if(HEAP32[$9+32>>2]==2){if(!$8){break label$3}$8=HEAP32[$8+48>>2]}label$13:{if($8){HEAP32[($12+Math_imul($13,752)|0)+656>>2]=$8;break label$13}HEAP32[($12+Math_imul($13,752)|0)+656>>2]=HEAP32[$10+56>>2]}$12=$10+40|0;$13=$10+48|0;$6=HEAP32[$13>>2];$4=HEAP32[$10+44>>2];if(($6-$4|0)/36>>>0<$14>>>0){if(HEAP8[$10+52|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29((($6-HEAP32[$12>>2]|0)/36|0)+($14>>>0>128?$14:128)|0,36,$12,$13,$15);$4=HEAP32[$15>>2]}if($5){$7=$9+32|4;$8=0;while(1){$6=HEAP32[(($8<<4)+$1|0)+8>>2];if(!dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($0,$6)){$16=HEAP32[$10+80>>2];$11=dmGui__GetNodeRigInstance_28dmGui__Scene__2c_20unsigned_20int_29($0,$6);$14=HEAP32[($8<<2)+$3>>2];dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($9+96|0,$0,$6,3);HEAP32[$9+108>>2]=$14;$17=HEAP32[$9+96>>2];$18=HEAP32[$9+100>>2];$6=HEAP32[$9+104>>2];HEAP32[$9+32>>2]=1065353216;HEAP32[$7+8>>2]=0;HEAP32[$7+12>>2]=0;HEAP32[$7>>2]=0;HEAP32[$7+4>>2]=0;HEAP32[$9+52>>2]=1065353216;HEAP32[$9+64>>2]=0;HEAP32[$9+68>>2]=0;HEAP32[$9+56>>2]=0;HEAP32[$9+60>>2]=0;HEAP32[$9+72>>2]=1065353216;HEAP32[$9+84>>2]=0;HEAP32[$9+88>>2]=0;HEAP32[$9+76>>2]=0;HEAP32[$9+80>>2]=0;HEAP32[$9+28>>2]=$14;HEAP32[$9+24>>2]=$6;HEAP32[$9+16>>2]=$17;HEAP32[$9+20>>2]=$18;HEAP32[$9+92>>2]=1065353216;$4=dmRig__GenerateVertexData_28dmRig__RigContext__2c_20dmRig__RigInstance__2c_20Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Vector4_2c_20dmRig__RigVertexFormat_2c_20void__29($16,$11,($8<<6)+$2|0,$9+32|0,$9+16|0,0,$4)}$8=$8+1|0;if(($8|0)!=($5|0)){continue}break}}$0=HEAP32[$12>>2];$1=($4-$0|0)/36|0;if((HEAP32[$13>>2]-$0|0)/36>>>0<$1>>>0){break label$1}HEAP32[$15>>2]=$0+Math_imul($1,36);global$0=$9+112|0;return}__assert_fail(41626,41335,993,41662);abort()}__assert_fail(42525,42362,430,42202);abort()}HEAP32[$9>>2]=$8;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,40265,42213,$9);__assert_fail(42237,41335,726,42239);abort()}__assert_fail(42252,41335,780,42268);abort()}__assert_fail(42438,42362,444,42513);abort()}__assert_fail(42578,42362,457,42597);abort()}function b2Island__SolveTOI_28b2TimeStep_20const__2c_20int_2c_20int_29($0,$1,$2,$3){var $4=0,$5=0,$6=Math_fround(0),$7=0,$8=0,$9=0,$10=0,$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0);$8=global$0-128|0;global$0=$8;$4=HEAP32[$0+28>>2];label$1:{if(($4|0)>($2|0)){label$3:{if(($4|0)>($3|0)){if(($4|0)>0){break label$3}$9=HEAP32[$0+24>>2];break label$1}__assert_fail(97106,97056,398,97097);abort()}while(1){$10=HEAP32[HEAP32[$0+8>>2]+($7<<2)>>2];$4=HEAP32[$10+48>>2];$11=Math_imul($7,12);$5=$11+HEAP32[$0+20>>2]|0;HEAP32[$5>>2]=HEAP32[$10+44>>2];HEAP32[$5+4>>2]=$4;HEAP32[($11+HEAP32[$0+20>>2]|0)+8>>2]=HEAP32[$10+56>>2];$4=HEAP32[$10+68>>2];$5=$11+HEAP32[$0+24>>2]|0;HEAP32[$5>>2]=HEAP32[$10+64>>2];HEAP32[$5+4>>2]=$4;$9=HEAP32[$0+24>>2];HEAP32[($11+$9|0)+8>>2]=HEAP32[$10+72>>2];$7=$7+1|0;if(($7|0)>2]){continue}break}break label$1}__assert_fail(97032,97056,397,97097);abort()}HEAP32[$8+80>>2]=HEAP32[$0+12>>2];HEAP32[$8+84>>2]=HEAP32[$0+36>>2];HEAP32[$8+96>>2]=HEAP32[$0>>2];$4=HEAP32[$1+12>>2];$5=$8- -64|0;HEAP32[$5>>2]=HEAP32[$1+8>>2];HEAP32[$5+4>>2]=$4;$5=$1+16|0;$4=HEAP32[$5+4>>2];HEAP32[$8+72>>2]=HEAP32[$5>>2];HEAP32[$8+76>>2]=$4;$4=HEAP32[$1+4>>2];HEAP32[$8+56>>2]=HEAP32[$1>>2];HEAP32[$8+60>>2]=$4;$4=HEAP32[$0+20>>2];HEAP32[$8+92>>2]=$9;HEAP32[$8+88>>2]=$4;$10=b2ContactSolver__b2ContactSolver_28b2ContactSolverDef__29($8,$8+56|0);$7=0;label$6:{if(HEAP32[$1+16>>2]<=0){break label$6}while(1){$4=b2ContactSolver__SolveTOIPositionConstraints_28int_2c_20int_29($10,$2,$3);$7=$7+1|0;if(($7|0)>=HEAP32[$1+16>>2]){break label$6}if(!$4){continue}break}}$11=$2<<2;$9=HEAP32[$11+HEAP32[$0+8>>2]>>2];$5=Math_imul($2,12);$4=$5+HEAP32[$0+20>>2]|0;$2=HEAP32[$4+4>>2];HEAP32[$9+36>>2]=HEAP32[$4>>2];HEAP32[$9+40>>2]=$2;$4=HEAP32[$0+8>>2];$2=HEAP32[$0+20>>2];HEAP32[HEAP32[$4+$11>>2]+52>>2]=HEAP32[($2+$5|0)+8>>2];$9=$3<<2;$5=HEAP32[$9+$4>>2];$4=Math_imul($3,12);$3=$4+$2|0;$2=HEAP32[$3+4>>2];HEAP32[$5+36>>2]=HEAP32[$3>>2];HEAP32[$5+40>>2]=$2;HEAP32[HEAP32[$9+HEAP32[$0+8>>2]>>2]+52>>2]=HEAP32[($4+HEAP32[$0+20>>2]|0)+8>>2];b2ContactSolver__InitializeVelocityConstraints_28_29($10);$7=0;if(HEAP32[$1+12>>2]>0){while(1){b2ContactSolver__SolveVelocityConstraints_28_29($10);$7=$7+1|0;if(($7|0)>2]){continue}break}}$3=0;if(HEAP32[$0+28>>2]>0){$13=HEAPF32[$1>>2];while(1){$9=Math_imul($3,12);$5=$9+HEAP32[$0+24>>2]|0;$14=HEAPF32[$5+8>>2];$2=$9+HEAP32[$0+20>>2]|0;$12=HEAPF32[$2+8>>2];$17=HEAPF32[$2+4>>2];$4=HEAP32[$5>>2];$1=HEAP32[$5+4>>2];$15=HEAPF32[$5>>2];$6=Math_fround($13*$15);$18=Math_fround($6*$6);$16=HEAPF32[$5+4>>2];$6=Math_fround($13*$16);$6=Math_fround($18+Math_fround($6*$6));if(!!($6>Math_fround(4))){$6=Math_fround(Math_fround(2)/Math_fround(Math_sqrt($6)));$1=(wasm2js_scratch_store_f32(Math_fround($6*$16)),wasm2js_scratch_load_i32(0));$4=(wasm2js_scratch_store_f32(Math_fround($6*$15)),wasm2js_scratch_load_i32(0))}$18=Math_fround(HEAPF32[$2>>2]+Math_fround($13*(wasm2js_scratch_store_i32(0,$4),wasm2js_scratch_load_f32())));HEAPF32[$2>>2]=$18;$17=Math_fround($17+Math_fround($13*(wasm2js_scratch_store_i32(0,$1),wasm2js_scratch_load_f32())));HEAPF32[$2+4>>2]=$17;$2=$9+HEAP32[$0+20>>2]|0;$6=Math_fround($13*$14);if(!!(Math_fround($6*$6)>Math_fround(2.4674012660980225))){$14=Math_fround($14*Math_fround(Math_fround(1.5707963705062866)/($6>Math_fround(0)?$6:Math_fround(-$6))));$6=Math_fround($13*$14)}$12=Math_fround($12+$6);HEAPF32[$2+8>>2]=$12;$2=$9+HEAP32[$0+24>>2]|0;HEAP32[$2+4>>2]=$1;HEAP32[$2>>2]=$4;HEAPF32[($9+HEAP32[$0+24>>2]|0)+8>>2]=$14;$2=HEAP32[HEAP32[$0+8>>2]+($3<<2)>>2];HEAPF32[$2+72>>2]=$14;HEAP32[$2+64>>2]=$4;HEAP32[$2+68>>2]=$1;HEAPF32[$2+56>>2]=$12;HEAPF32[$2+48>>2]=$17;HEAPF32[$2+44>>2]=$18;$15=cosf($12);HEAPF32[$2+24>>2]=$15;$16=sinf($12);HEAPF32[$2+20>>2]=$16;$6=HEAPF32[$2+28>>2];$12=HEAPF32[$2+32>>2];HEAPF32[$2+16>>2]=$17-Math_fround(Math_fround($16*$6)+Math_fround($15*$12));HEAPF32[$2+12>>2]=$18-Math_fround(Math_fround($15*$6)-Math_fround($16*$12));$3=$3+1|0;if(($3|0)>2]){continue}break}}if(!(!HEAP32[$0+4>>2]|HEAP32[$0+36>>2]<1)){$9=HEAP32[$10+40>>2];$2=0;while(1){$5=HEAP32[HEAP32[$0+12>>2]+($2<<2)>>2];$4=$9+Math_imul($2,152)|0;$11=HEAP32[$4+144>>2];HEAP32[$8+120>>2]=$11;$7=0;if(($11|0)>0){while(1){$3=($8+104|0)+($7<<2)|0;$1=Math_imul($7,36)+$4|0;HEAP32[$3>>2]=HEAP32[$1+16>>2];HEAP32[$3+8>>2]=HEAP32[$1+20>>2];$7=$7+1|0;if(($11|0)!=($7|0)){continue}break}}$1=HEAP32[$0+4>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+20>>2]]($1,$5,$8+104|0);$2=$2+1|0;if(($2|0)>2]){continue}break}}b2ContactSolver___b2ContactSolver_28_29($10);global$0=$8+128|0}function UpsampleRgba4444LinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$11=Math_imul(HEAPU8[$0|0],19077)>>>8|0;$12=HEAPU8[$4|0]|HEAPU8[$5|0]<<16;$9=HEAPU8[$2|0]|HEAPU8[$3|0]<<16;$13=($12+Math_imul($9,3)|0)+131074|0;$16=$13>>>2&255;$15=$11+(Math_imul($16,33050)>>>8|0)|0;$10=$15+ -17685|0;HEAP8[$6+1|0]=($10>>>0<16384?$10>>>6|0:$15>>>0<17685?0:240)|15;$13=$13>>>18|0;$15=$11+(Math_imul($13,26149)>>>8|0)|0;$10=$15+ -14234|0;$11=$11-(Math_imul($16,6419)>>>8|0)-(Math_imul($13,13320)>>>8)|0;$13=$11+8708|0;HEAP8[$6|0]=($10>>>0<16384?$10>>>6|0:$15>>>0<14234?0:240)&240|($13>>>0<16384?$13>>>10|0:($11|0)<-8708?0:15);if($1){$11=Math_imul(HEAPU8[$1|0],19077)>>>8|0;$13=(Math_imul($12,3)+$9|0)+131074|0;$16=$13>>>2&255;$15=$11+(Math_imul($16,33050)>>>8|0)|0;$10=$15+ -17685|0;HEAP8[$7+1|0]=($10>>>0<16384?$10>>>6|0:$15>>>0<17685?0:240)|15;$13=$13>>>18|0;$15=$11+(Math_imul($13,26149)>>>8|0)|0;$10=$15+ -14234|0;$11=$11-(Math_imul($16,6419)>>>8|0)-(Math_imul($13,13320)>>>8)|0;$13=$11+8708|0;HEAP8[$7|0]=($10>>>0<16384?$10>>>6|0:$15>>>0<14234?0:240)&240|($13>>>0<16384?$13>>>10|0:($11|0)<-8708?0:15)}$15=$8+ -1|0;label$3:{if(($8|0)<3){$11=$12;$13=$9;break label$3}$11=$15>>1;$26=($11|0)>1?$11:1;$16=1;while(1){$11=HEAPU8[$4+$16|0]|HEAPU8[$5+$16|0]<<16;$13=HEAPU8[$2+$16|0]|HEAPU8[$3+$16|0]<<16;$17=$13+$12|0;$10=($11+($17+$9|0)|0)+524296|0;$21=$16<<1;$18=$21+ -1|0;$23=$18<<1;$14=$23+$6|0;$25=$10+($17<<1)>>>3|0;$19=$25+$9|0;$20=$19>>>1&255;$17=Math_imul(HEAPU8[$0+$18|0],19077)>>>8|0;$24=(Math_imul($20,33050)>>>8|0)+$17|0;$22=$24+ -17685|0;HEAP8[$14+1|0]=($22>>>0<16384?$22>>>6|0:$24>>>0<17685?0:240)|15;$22=$14;$14=$19>>>17|0;$19=$17-(Math_imul($20,6419)>>>8|0)-(Math_imul($14,13320)>>>8)|0;$20=$19+8708|0;$17=$17+(Math_imul($14,26149)>>>8|0)|0;$14=$17+ -14234|0;HEAP8[$22|0]=($20>>>0<16384?$20>>>10|0:($19|0)<-8708?0:15)|($14>>>0<16384?$14>>>6|0:$17>>>0<14234?0:240)&240;$17=$16<<2;$14=$17+$6|0;$10=$10+($9+$11<<1)>>>3|0;$19=$10+$13|0;$20=$19>>>1&255;$9=Math_imul(HEAPU8[$0+$21|0],19077)>>>8|0;$24=(Math_imul($20,33050)>>>8|0)+$9|0;$22=$24+ -17685|0;HEAP8[$14+1|0]=($22>>>0<16384?$22>>>6|0:$24>>>0<17685?0:240)|15;$22=$14;$14=$19>>>17|0;$19=$9-(Math_imul($20,6419)>>>8|0)-(Math_imul($14,13320)>>>8)|0;$20=$19+8708|0;$9=$9+(Math_imul($14,26149)>>>8|0)|0;$14=$9+ -14234|0;HEAP8[$22|0]=($20>>>0<16384?$20>>>10|0:($19|0)<-8708?0:15)|($14>>>0<16384?$14>>>6|0:$9>>>0<14234?0:240)&240;if($1){$23=$7+$23|0;$9=Math_imul(HEAPU8[$1+$18|0],19077)>>>8|0;$12=$10+$12|0;$10=$12>>>1&255;$18=$9+(Math_imul($10,33050)>>>8|0)|0;$14=$18+ -17685|0;HEAP8[$23+1|0]=($14>>>0<16384?$14>>>6|0:$18>>>0<17685?0:240)|15;$14=$23;$12=$12>>>17|0;$18=$9+(Math_imul($12,26149)>>>8|0)|0;$23=$18+ -14234|0;$9=$9-(Math_imul($10,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$9+8708|0;HEAP8[$14|0]=($23>>>0<16384?$23>>>6|0:$18>>>0<14234?0:240)&240|($12>>>0<16384?$12>>>10|0:($9|0)<-8708?0:15);$12=$7+$17|0;$9=Math_imul(HEAPU8[$1+$21|0],19077)>>>8|0;$10=$11+$25|0;$18=$10>>>1&255;$21=$9+(Math_imul($18,33050)>>>8|0)|0;$17=$21+ -17685|0;HEAP8[$12+1|0]=($17>>>0<16384?$17>>>6|0:$21>>>0<17685?0:240)|15;$14=$12;$12=$10>>>17|0;$10=$9+(Math_imul($12,26149)>>>8|0)|0;$21=$10+ -14234|0;$9=$9-(Math_imul($18,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$9+8708|0;HEAP8[$14|0]=($21>>>0<16384?$21>>>6|0:$10>>>0<14234?0:240)&240|($12>>>0<16384?$12>>>10|0:($9|0)<-8708?0:15)}$10=($16|0)!=($26|0);$16=$16+1|0;$9=$13;$12=$11;if($10){continue}break}}label$7:{if($8&1){break label$7}$2=$15<<1;$3=$2+$6|0;$0=Math_imul(HEAPU8[$0+$15|0],19077)>>>8|0;$4=(Math_imul($13,3)+$11|0)+131074|0;$5=$4>>>2&255;$6=$0+(Math_imul($5,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$3+1|0]=($8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:240)|15;$8=$3;$3=$4>>>18|0;$4=$0+(Math_imul($3,26149)>>>8|0)|0;$6=$4+ -14234|0;$0=$0-(Math_imul($5,6419)>>>8|0)-(Math_imul($3,13320)>>>8)|0;$3=$0+8708|0;HEAP8[$8|0]=($6>>>0<16384?$6>>>6|0:$4>>>0<14234?0:240)&240|($3>>>0<16384?$3>>>10|0:($0|0)<-8708?0:15);if(!$1){break label$7}$2=$2+$7|0;$0=Math_imul(HEAPU8[$1+$15|0],19077)>>>8|0;$3=(Math_imul($11,3)+$13|0)+131074|0;$4=$3>>>2&255;$1=$0+(Math_imul($4,33050)>>>8|0)|0;$5=$1+ -17685|0;HEAP8[$2+1|0]=($5>>>0<16384?$5>>>6|0:$1>>>0<17685?0:240)|15;$5=$2;$1=$3>>>18|0;$2=$0+(Math_imul($1,26149)>>>8|0)|0;$3=$2+ -14234|0;$0=$0-(Math_imul($4,6419)>>>8|0)-(Math_imul($1,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$5|0]=($3>>>0<16384?$3>>>6|0:$2>>>0<14234?0:240)&240|($1>>>0<16384?$1>>>10|0:($0|0)<-8708?0:15)}return}__assert_fail(182795,182809,101,182941);abort()}function btAxisSweep3Internal_unsigned_20short___addHandle_28btVector3_20const__2c_20btVector3_20const__2c_20void__2c_20short_2c_20short_2c_20btDispatcher__2c_20void__29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=0,$10=0,$11=0,$12=0;$10=global$0-16|0;global$0=$10;btAxisSweep3Internal_unsigned_20short___quantize_28unsigned_20short__2c_20btVector3_20const__2c_20int_29_20const($0,$10+10|0,$1,0);btAxisSweep3Internal_unsigned_20short___quantize_28unsigned_20short__2c_20btVector3_20const__2c_20int_29_20const($0,$10+4|0,$2,1);$1=HEAP32[$0+60>>2];$11=HEAPU16[$0+64>>1];$9=$1+($11<<6)|0;HEAP16[$0+64>>1]=HEAPU16[$9+48>>1];$2=HEAPU16[$0+56>>1]+1|0;HEAP16[$0+56>>1]=$2;HEAP32[$9+8>>2]=$7;HEAP16[$9+6>>1]=$5;HEAP16[$9+4>>1]=$4;HEAP32[$9>>2]=$3;HEAP32[$9+12>>2]=$11;HEAP16[$1+54>>1]=HEAPU16[$1+54>>1]+2;$1=HEAP32[$0+68>>2];$2=$2<<1;$4=$2&65534;$3=$4<<2;$5=$3|4;$7=$1+$5|0;$8=$1;$4=$4+ -1|0;$1=$4<<2;$8=$8+$1|0;$8=HEAPU16[$8>>1]|HEAPU16[$8+2>>1]<<16;HEAP16[$7>>1]=$8;HEAP16[$7+2>>1]=$8>>>16;$7=HEAPU16[$10+10>>1];$8=HEAP32[$0+68>>2];$12=$8+$1|0;HEAP16[$12+2>>1]=$11;HEAP16[$12>>1]=$7;$7=HEAPU16[$10+4>>1];$8=$3+$8|0;HEAP16[$8+2>>1]=$11;HEAP16[$8>>1]=$7;HEAP16[$9+54>>1]=$2;HEAP16[$9+48>>1]=$4;$7=HEAP32[$0+60>>2];HEAP16[$7+56>>1]=HEAPU16[$7+56>>1]+2;$7=HEAP32[$0+72>>2];$8=$7+$5|0;$7=$1+$7|0;$7=HEAPU16[$7>>1]|HEAPU16[$7+2>>1]<<16;HEAP16[$8>>1]=$7;HEAP16[$8+2>>1]=$7>>>16;$7=HEAPU16[$10+12>>1];$8=HEAP32[$0+72>>2];$12=$8+$1|0;HEAP16[$12+2>>1]=$11;HEAP16[$12>>1]=$7;$7=HEAPU16[$10+6>>1];$8=$3+$8|0;HEAP16[$8+2>>1]=$11;HEAP16[$8>>1]=$7;HEAP16[$9+56>>1]=$2;HEAP16[$9+50>>1]=$4;$7=HEAP32[$0+60>>2];HEAP16[$7+58>>1]=HEAPU16[$7+58>>1]+2;$7=$5;$5=HEAP32[$0+76>>2];$7=$7+$5|0;$5=$1+$5|0;$5=HEAPU16[$5>>1]|HEAPU16[$5+2>>1]<<16;HEAP16[$7>>1]=$5;HEAP16[$7+2>>1]=$5>>>16;$5=HEAPU16[$10+14>>1];$7=$1;$1=HEAP32[$0+76>>2];$7=$7+$1|0;HEAP16[$7+2>>1]=$11;HEAP16[$7>>1]=$5;$5=HEAPU16[$10+8>>1];$1=$1+$3|0;HEAP16[$1+2>>1]=$11;HEAP16[$1>>1]=$5;HEAP16[$9+58>>1]=$2;HEAP16[$9+52>>1]=$4;$3=HEAP32[$0+68>>2];$5=HEAPU16[$9+48>>1]<<2;$2=$3+$5|0;$1=$2+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$2>>1]<$4>>>0){$7=HEAP32[$0+60>>2];$5=$7+(HEAPU16[($3+$5|0)+2>>1]<<6)|0;while(1){$3=$2+ -4|0;$7=(HEAPU16[$3+2>>1]<<6)+$7|0;$4=$4&1?$7+54|0:$7+48|0;HEAP16[$4>>1]=HEAPU16[$4>>1]+1;HEAP16[$5+48>>1]=HEAPU16[$5+48>>1]+ -1;$4=HEAPU16[$2>>1]|HEAPU16[$2+2>>1]<<16;$7=HEAPU16[$1>>1]|HEAPU16[$1+2>>1]<<16;HEAP16[$2>>1]=$7;HEAP16[$2+2>>1]=$7>>>16;HEAP16[$1>>1]=$4;HEAP16[$1+2>>1]=$4>>>16;$1=$1+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$3>>1]<$4>>>0){$7=HEAP32[$0+60>>2];$2=$3;continue}break}$3=HEAP32[$0+68>>2]}$5=HEAPU16[$9+54>>1];$2=($5<<2)+$3|0;$1=$2+ -4|0;$4=HEAPU16[$1>>1];label$4:{if(HEAPU16[$2>>1]>=$4>>>0){break label$4}$7=HEAP32[$0+60>>2];$5=$7+(HEAPU16[(($5<<2)+$3|0)+2>>1]<<6)|0;while(1){$3=$2+ -4|0;$7=(HEAPU16[$3+2>>1]<<6)+$7|0;$4=$4&1?$7+54|0:$7+48|0;HEAP16[$4>>1]=HEAPU16[$4>>1]+1;HEAP16[$5+54>>1]=HEAPU16[$5+54>>1]+ -1;$4=HEAPU16[$2>>1]|HEAPU16[$2+2>>1]<<16;$7=HEAPU16[$1>>1]|HEAPU16[$1+2>>1]<<16;HEAP16[$2>>1]=$7;HEAP16[$2+2>>1]=$7>>>16;HEAP16[$1>>1]=$4;HEAP16[$1+2>>1]=$4>>>16;$1=$1+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$3>>1]>=$4>>>0){break label$4}$7=HEAP32[$0+60>>2];$2=$3;continue}}$3=HEAP32[$0+72>>2];$5=HEAPU16[$9+50>>1]<<2;$2=$3+$5|0;$1=$2+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$2>>1]<$4>>>0){$7=HEAP32[$0+60>>2];$5=$7+(HEAPU16[($3+$5|0)+2>>1]<<6)|0;while(1){$3=$2+ -4|0;$7=(HEAPU16[$3+2>>1]<<6)+$7|0;$4=$4&1?$7+56|0:$7+50|0;HEAP16[$4>>1]=HEAPU16[$4>>1]+1;HEAP16[$5+50>>1]=HEAPU16[$5+50>>1]+ -1;$4=HEAPU16[$2>>1]|HEAPU16[$2+2>>1]<<16;$7=HEAPU16[$1>>1]|HEAPU16[$1+2>>1]<<16;HEAP16[$2>>1]=$7;HEAP16[$2+2>>1]=$7>>>16;HEAP16[$1>>1]=$4;HEAP16[$1+2>>1]=$4>>>16;$1=$1+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$3>>1]<$4>>>0){$7=HEAP32[$0+60>>2];$2=$3;continue}break}$3=HEAP32[$0+72>>2]}$5=HEAPU16[$9+56>>1];$2=($5<<2)+$3|0;$1=$2+ -4|0;$4=HEAPU16[$1>>1];label$9:{if(HEAPU16[$2>>1]>=$4>>>0){break label$9}$7=HEAP32[$0+60>>2];$5=$7+(HEAPU16[(($5<<2)+$3|0)+2>>1]<<6)|0;while(1){$3=$2+ -4|0;$7=(HEAPU16[$3+2>>1]<<6)+$7|0;$4=$4&1?$7+56|0:$7+50|0;HEAP16[$4>>1]=HEAPU16[$4>>1]+1;HEAP16[$5+56>>1]=HEAPU16[$5+56>>1]+ -1;$4=HEAPU16[$2>>1]|HEAPU16[$2+2>>1]<<16;$7=HEAPU16[$1>>1]|HEAPU16[$1+2>>1]<<16;HEAP16[$2>>1]=$7;HEAP16[$2+2>>1]=$7>>>16;HEAP16[$1>>1]=$4;HEAP16[$1+2>>1]=$4>>>16;$1=$1+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$3>>1]>=$4>>>0){break label$9}$7=HEAP32[$0+60>>2];$2=$3;continue}}btAxisSweep3Internal_unsigned_20short___sortMinDown_28int_2c_20unsigned_20short_2c_20btDispatcher__2c_20bool_29($0,2,HEAPU16[$9+52>>1]);btAxisSweep3Internal_unsigned_20short___sortMaxDown_28int_2c_20unsigned_20short_2c_20btDispatcher__2c_20bool_29($0,2,HEAPU16[$9+58>>1],$6);global$0=$10+16|0;return $11}function newkey($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0;$14=global$0-112|0;global$0=$14;$3=HEAP32[$2+8>>2]+ -1|0;label$3:{if($3>>>0<=3){label$5:{switch($3-1|0){case 1:$9=HEAPF64[$2>>3];if($9==0){$4=HEAP32[$1+16>>2];$3=$4;break label$3}$4=HEAP32[$1+16>>2];wasm2js_scratch_store_f64(+$9);$5=wasm2js_scratch_load_i32(1)|0;$3=wasm2js_scratch_load_i32(0)|0;$5=$3+$5|0;$3=$4+(($5>>>0)%(((-1<>>0)<<5)|0;break label$3;case 2:$4=HEAP32[$1+16>>2];$3=$4+((HEAP32[HEAP32[$2>>2]+8>>2]&(-1<>2];$3=$4+((HEAP32[$2>>2]&(-1<>2];$3=$4+(HEAPU32[$2>>2]%(((-1<>>0)<<5)|0;break label$3}$4=HEAP32[$1+16>>2];$3=$4+(HEAPU32[$2>>2]%(((-1<>>0)<<5)|0}label$1:{label$2:{if(HEAP32[$3+8>>2]?0:($3|0)!=124744){break label$2}$5=HEAP32[$1+20>>2];label$11:{label$12:{label$13:{label$14:{label$15:{label$16:{label$17:{while(1){$6=$5;$5=$5+ -32|0;HEAP32[$1+20>>2]=$5;if($6>>>0<=$4>>>0){break label$17}if(HEAP32[$6+ -8>>2]){continue}break}$7=HEAP32[$3+24>>2]+ -1|0;if($7>>>0>3){break label$12}switch($7-1|0){case 0:break label$13;case 2:break label$15;case 1:break label$16;default:break label$14}}$13=memset($14,0,108);$3=HEAP32[$1+28>>2];$8=1;$7=1;while(1){label$20:{$6=$7;if(($6|0)>($3|0)){$6=$3;if(($8|0)>($3|0)){break label$20}}$5=0;if(($8|0)<=($6|0)){$11=HEAP32[$1+12>>2];while(1){$5=(HEAP32[($11+($8<<4)|0)+ -8>>2]!=0)+$5|0;$12=($6|0)!=($8|0);$8=$8+1|0;if($12){continue}break}$8=$6+1|0}$6=($10<<2)+$13|0;HEAP32[$6>>2]=HEAP32[$6>>2]+$5;$7=$7<<1;$15=$5+$15|0;$10=$10+1|0;if(($10|0)!=27){continue}}break}$8=-1<>2]){$4=0;label$26:{if(HEAP32[$5+24>>2]!=3){break label$26}$9=HEAPF64[$5+16>>3];label$27:{if(Math_abs($9)<2147483648){$5=~~$9;break label$27}$5=-2147483648}if($9!=+($5|0)){break label$26}$5=$5+ -1|0;if($5>>>0>67108863){break label$26}$4=1;$5=(luaO_log2($5)<<2)+$13|0;HEAP32[$5+4>>2]=HEAP32[$5+4>>2]+1}$6=$4+$6|0;$3=$3+1|0}if($8){$8=$8+ -1|0;$4=HEAP32[$1+16>>2];continue}break}$7=$6+$15|0;$6=0;$5=0;label$30:{if(HEAP32[$2+8>>2]!=3){break label$30}$9=HEAPF64[$2>>3];label$31:{if(Math_abs($9)<2147483648){$4=~~$9;break label$31}$4=-2147483648}if($9!=+($4|0)){break label$30}$4=$4+ -1|0;if($4>>>0>67108863){break label$30}$5=1;$4=(luaO_log2($4)<<2)+$13|0;HEAP32[$4+4>>2]=HEAP32[$4+4>>2]+1}$8=1;$11=$5+$7|0;label$33:{if(($11|0)<1){$7=0;$10=0;break label$33}$10=0;$7=0;$5=0;$4=0;while(1){$17=$10;$10=HEAP32[($4<<2)+$13>>2];$16=($10|0)>0;$12=$5+$10|0;$6=$16&($12|0)>($6|0);$10=$6?$8:$17;$7=$6?$12:$7;$5=$16?$12:$5;if(($11|0)==($5|0)){break label$33}$4=$4+1|0;$6=$8&2147483647;$8=$8<<1;if(($6|0)<($11|0)){continue}break}}resize($0,$1,$10,(($3+$15|0)-$7|0)+1|0);$3=luaH_get($1,$2);HEAP8[$1+6|0]=0;if(($3|0)!=123176){break label$1}$3=HEAP32[$2+8>>2];label$36:{if($3>>>0>3){break label$36}label$37:{switch($3-1|0){default:luaG_runerror($0,124681,0);$3=newkey($0,$1,$2);break label$1;case 0:case 1:break label$36;case 2:break label$37}}$9=HEAPF64[$2>>3];if($9==$9){break label$36}luaG_runerror($0,124700,0)}$3=newkey($0,$1,$2);break label$1}$9=HEAPF64[$3+16>>3];if($9==0){break label$11}$10=$4;wasm2js_scratch_store_f64(+$9);$7=wasm2js_scratch_load_i32(1)|0;$4=wasm2js_scratch_load_i32(0)|0;$7=$4+$7|0;$4=$10+(($7>>>0)%(((-1<>>0)<<5)|0;break label$11}$4=((HEAP32[HEAP32[$3+16>>2]+8>>2]&(-1<>2]&(-1<>2]%(((-1<>>0)<<5)+$4|0;break label$11}$4=(HEAPU32[$3+16>>2]%(((-1<>>0)<<5)+$4|0}if(($3|0)!=($4|0)){while(1){$6=$4;$4=HEAP32[$4+28>>2];if(($3|0)!=($4|0)){continue}break}HEAP32[$6+28>>2]=$5;$6=HEAP32[$3+28>>2];HEAP32[$5+24>>2]=HEAP32[$3+24>>2];HEAP32[$5+28>>2]=$6;$6=HEAP32[$3+20>>2];HEAP32[$5+16>>2]=HEAP32[$3+16>>2];HEAP32[$5+20>>2]=$6;$6=HEAP32[$3+12>>2];HEAP32[$5+8>>2]=HEAP32[$3+8>>2];HEAP32[$5+12>>2]=$6;$6=HEAP32[$3+4>>2];HEAP32[$5>>2]=HEAP32[$3>>2];HEAP32[$5+4>>2]=$6;HEAP32[$3+28>>2]=0;HEAP32[$3+8>>2]=0;break label$2}HEAP32[$6+ -4>>2]=HEAP32[$3+28>>2];HEAP32[$3+28>>2]=$5;$3=$5}$5=HEAP32[$2+4>>2];HEAP32[$3+16>>2]=HEAP32[$2>>2];HEAP32[$3+20>>2]=$5;HEAP32[$3+24>>2]=HEAP32[$2+8>>2];if(!(HEAPU8[$1+5|0]&4)|(!(HEAPU8[HEAP32[$2>>2]+5|0]&3)|HEAP32[$2+8>>2]<4)){break label$1}$0=HEAP32[$0+16>>2];HEAP8[$1+5|0]=HEAPU8[$1+5|0]&251;HEAP32[$1+24>>2]=HEAP32[$0+40>>2];HEAP32[$0+40>>2]=$1}global$0=$14+112|0;return $3}function dmGameSystem__CompSoundUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=0,$12=0,$13=0;$1=global$0-128|0;global$0=$1;label$1:{label$2:{$6=HEAP32[$0+8>>2];$2=HEAP32[$6>>2];if(($2|0)!=HEAP32[$6+4>>2]){while(1){$4=Math_imul($7,96)+$2|0;$2=HEAP32[$4+8>>2];label$5:{if(!$2){break label$5}$8=HEAPF32[$4+84>>2];$9=Math_fround($8-HEAPF32[HEAP32[$0+4>>2]>>2]);HEAPF32[$4+84>>2]=$9;if(!($9=Math_fround(0))){$2=dmSound__Play_28dmSound__SoundInstance__29($2);if(!$2){break label$5}HEAP32[$1+48>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,48692,48827,$1+48|0);break label$6}$3=HEAPU8[$4+92|0];if(!($3&6|(HEAPU8[$2+60|0]&4)>>>2)){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$4>>2],HEAP32[$4+4>>2]);$5=dmSound__DeleteSoundInstance_28dmSound__SoundInstance__29(HEAP32[$4+8>>2]);HEAP32[$4+8>>2]=0;$3=HEAP32[$6+68>>2];if(!$3){break label$2}$2=HEAP32[$6+76>>2];if(!$2|$2>>>0>HEAPU32[$6+72>>2]){break label$1}$2=$2+ -1|0;HEAP32[$6+76>>2]=$2;HEAP32[($2<<2)+$3>>2]=$7;if($5){HEAP32[$1>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,48692,48853,$1);break label$6}if(!(HEAP32[$4+40>>2]|HEAP32[$4+44>>2])|HEAP32[$4+88>>2]==-1){break label$5}$2=HEAP32[132614];$11=HEAP32[$2+8>>2];$12=HEAP32[$2+12>>2];$3=$4+16|0;$2=HEAP32[$3+28>>2];HEAP32[$1+112>>2]=HEAP32[$3+24>>2];HEAP32[$1+116>>2]=$2;$2=HEAP32[$3+20>>2];HEAP32[$1+104>>2]=HEAP32[$3+16>>2];HEAP32[$1+108>>2]=$2;$2=HEAP32[$3+12>>2];HEAP32[$1+96>>2]=HEAP32[$3+8>>2];HEAP32[$1+100>>2]=$2;$2=HEAP32[$3+4>>2];HEAP32[$1+88>>2]=HEAP32[$3>>2];HEAP32[$1+92>>2]=$2;$2=HEAP32[$4+76>>2];HEAP32[$1+80>>2]=HEAP32[$4+72>>2];HEAP32[$1+84>>2]=$2;$5=$4- -64|0;$2=HEAP32[$5+4>>2];HEAP32[$1+72>>2]=HEAP32[$5>>2];HEAP32[$1+76>>2]=$2;$2=HEAP32[$4+60>>2];$5=$1- -64|0;HEAP32[$5>>2]=HEAP32[$4+56>>2];HEAP32[$5+4>>2]=$2;$10=HEAP32[$4+52>>2];$5=HEAP32[$4+48>>2];HEAP32[$1+56>>2]=$5;HEAP32[$1+60>>2]=$10;$2=$4+48|0;label$10:{if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29($5,$10)){break label$10}if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29(HEAP32[$1+88>>2],HEAP32[$1+92>>2])){break label$10}HEAP32[$1+120>>2]=HEAP32[$4+88>>2];if(!dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($1+56|0,$1+88|0,$11,$12,0,HEAP32[132614],$1+120|0,4,0)){break label$10}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,48692,48880,0)}HEAP8[$2|0]=0;HEAP8[$2+1|0]=0;HEAP8[$2+2|0]=0;HEAP8[$2+3|0]=0;HEAP8[$2+4|0]=0;HEAP8[$2+5|0]=0;HEAP8[$2+6|0]=0;HEAP8[$2+7|0]=0;HEAP8[$2+24|0]=0;HEAP8[$2+25|0]=0;HEAP8[$2+26|0]=0;HEAP8[$2+27|0]=0;HEAP8[$2+28|0]=0;HEAP8[$2+29|0]=0;HEAP8[$2+30|0]=0;HEAP8[$2+31|0]=0;HEAP8[$2+16|0]=0;HEAP8[$2+17|0]=0;HEAP8[$2+18|0]=0;HEAP8[$2+19|0]=0;HEAP8[$2+20|0]=0;HEAP8[$2+21|0]=0;HEAP8[$2+22|0]=0;HEAP8[$2+23|0]=0;HEAP8[$2+8|0]=0;HEAP8[$2+9|0]=0;HEAP8[$2+10|0]=0;HEAP8[$2+11|0]=0;HEAP8[$2+12|0]=0;HEAP8[$2+13|0]=0;HEAP8[$2+14|0]=0;HEAP8[$2+15|0]=0;HEAP8[$3|0]=0;HEAP8[$3+1|0]=0;HEAP8[$3+2|0]=0;HEAP8[$3+3|0]=0;HEAP8[$3+4|0]=0;HEAP8[$3+5|0]=0;HEAP8[$3+6|0]=0;HEAP8[$3+7|0]=0;HEAP8[$3+24|0]=0;HEAP8[$3+25|0]=0;HEAP8[$3+26|0]=0;HEAP8[$3+27|0]=0;HEAP8[$3+28|0]=0;HEAP8[$3+29|0]=0;HEAP8[$3+30|0]=0;HEAP8[$3+31|0]=0;HEAP8[$3+16|0]=0;HEAP8[$3+17|0]=0;HEAP8[$3+18|0]=0;HEAP8[$3+19|0]=0;HEAP8[$3+20|0]=0;HEAP8[$3+21|0]=0;HEAP8[$3+22|0]=0;HEAP8[$3+23|0]=0;HEAP8[$3+8|0]=0;HEAP8[$3+9|0]=0;HEAP8[$3+10|0]=0;HEAP8[$3+11|0]=0;HEAP8[$3+12|0]=0;HEAP8[$3+13|0]=0;HEAP8[$3+14|0]=0;HEAP8[$3+15|0]=0;break label$5}if($3&1){$2=dmSound__Stop_28dmSound__SoundInstance__29(HEAP32[$4+8>>2]);if(!$2){break label$5}HEAP32[$1+32>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,48692,48853,$1+32|0);break label$6}if(!($3&2)){break label$5}HEAP8[$4+92|0]=$3&253;$2=dmSound__Pause_28dmSound__SoundInstance__2c_20bool_29(HEAP32[$4+8>>2],($3&4)>>>2|0);if(!$2){break label$5}HEAP32[$1+16>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,48692,48919,$1+16|0)}$13=-1e3}$7=$7+1|0;$2=HEAP32[$6>>2];if($7>>>0<(HEAP32[$6+4>>2]-$2|0)/96>>>0){continue}break}}dmSound__Update_28_29();global$0=$1+128|0;return $13|0}__assert_fail(49562,49289,137,49569);abort()}__assert_fail(49574,49289,138,49569);abort()}function mbedtls_mpi_div_mpi($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;$5=global$0-80|0;global$0=$5;label$1:{if(!mbedtls_mpi_cmp_int($3,0)){$3=-12;break label$1}$4=$5- -64|0;HEAP32[$4+8>>2]=0;HEAP32[$4>>2]=1;HEAP32[$4+4>>2]=0;HEAP32[$5+56>>2]=0;HEAP32[$5+48>>2]=1;HEAP32[$5+52>>2]=0;HEAP32[$5+40>>2]=0;HEAP32[$5+32>>2]=1;HEAP32[$5+36>>2]=0;HEAP32[$5+24>>2]=0;HEAP32[$5+16>>2]=1;HEAP32[$5+20>>2]=0;HEAP32[$5+8>>2]=0;HEAP32[$5>>2]=1;HEAP32[$5+4>>2]=0;label$3:{if((mbedtls_mpi_cmp_abs($2,$3)|0)<=-1){if($0){$4=mbedtls_mpi_lset($0,0);if($4){break label$3}}$3=0;if(!$1){break label$1}$4=mbedtls_mpi_copy($1,$2);if($4){break label$3}break label$1}$4=mbedtls_mpi_copy($5- -64|0,$2);if($4){break label$3}$4=mbedtls_mpi_copy($5+48|0,$3);if($4){break label$3}HEAP32[$5+64>>2]=1;HEAP32[$5+48>>2]=1;$4=mbedtls_mpi_grow($5+32|0,HEAP32[$2+4>>2]+2|0);if($4){break label$3}$4=mbedtls_mpi_lset($5+32|0,0);if($4){break label$3}$4=mbedtls_mpi_grow($5+16|0,2);if($4){break label$3}$4=mbedtls_mpi_grow($5,3);if($4){break label$3}$4=mbedtls_mpi_bitlen($5+48|0)&31;if(($4|0)!=31){$14=$4^31;$4=mbedtls_mpi_shift_l($5- -64|0,$14);if($4){break label$3}$4=mbedtls_mpi_shift_l($5+48|0,$14);if($4){break label$3}}$7=HEAP32[$5+68>>2]+ -1|0;$12=HEAP32[$5+52>>2];$10=$12+ -1|0;$8=$7-$10|0;$6=$8<<5;$4=mbedtls_mpi_shift_l($5+48|0,$6);if($4){break label$3}$8=$8<<2;while(1){if((mbedtls_mpi_cmp_mpi($5- -64|0,$5+48|0)|0)>=0){$4=$8+HEAP32[$5+40>>2]|0;HEAP32[$4>>2]=HEAP32[$4>>2]+1;$4=mbedtls_mpi_sub_mpi($5- -64|0,$5- -64|0,$5+48|0);if(!$4){continue}break label$3}break}$4=mbedtls_mpi_shift_r($5+48|0,$6);if($4){break label$3}if($7>>>0>$10>>>0){$17=$12+ -2<<2;while(1){$15=$7<<2;$4=HEAP32[$5+72>>2];$8=HEAP32[$15+$4>>2];$16=$10<<2;$9=HEAP32[$16+HEAP32[$5+56>>2]>>2];label$11:{if($8>>>0>=$9>>>0){$4=-1;$6=HEAP32[$5+40>>2];$11=$7-$12|0;HEAP32[$6+($11<<2)>>2]=-1;$8=$7+ -1|0;break label$11}$6=HEAP32[$5+40>>2];$11=$7-$12|0;$18=$6+($11<<2)|0;$13=$8;$8=$7+ -1|0;$4=mbedtls_int_div_int($13,HEAP32[$4+($8<<2)>>2],$9);HEAP32[$18>>2]=$4}$9=$11<<2;HEAP32[$9+$6>>2]=$4;$13=$7+ -2|0;$4=mbedtls_mpi_lset($5+16|0,0);label$13:{if($10){if($4){break label$3}while(1){$4=HEAP32[$5+24>>2];$6=HEAP32[$5+56>>2];HEAP32[$4>>2]=HEAP32[$6+$17>>2];HEAP32[$4+4>>2]=HEAP32[$6+$16>>2];$4=mbedtls_mpi_mul_int($5+16|0,$5+16|0,HEAP32[$9+HEAP32[$5+40>>2]>>2]);if($4){break label$3}$4=mbedtls_mpi_lset($5,0);if($4){break label$3}label$16:{if($7>>>0>=2){$4=HEAP32[$5+8>>2];$6=HEAP32[$5+72>>2];HEAP32[$4>>2]=HEAP32[$6+($13<<2)>>2];break label$16}$4=HEAP32[$5+8>>2];HEAP32[$4>>2]=0;$6=HEAP32[$5+72>>2]}HEAP32[$4+4>>2]=HEAP32[($8<<2)+$6>>2];HEAP32[$4+8>>2]=HEAP32[$6+$15>>2];if((mbedtls_mpi_cmp_mpi($5+16|0,$5)|0)<1){break label$13}$4=$9+HEAP32[$5+40>>2]|0;HEAP32[$4>>2]=HEAP32[$4>>2]+ -1;$4=mbedtls_mpi_lset($5+16|0,0);if(!$4){continue}break}break label$3}if($4){break label$3}while(1){$4=HEAP32[$5+24>>2];HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=HEAP32[HEAP32[$5+56>>2]>>2];$4=mbedtls_mpi_mul_int($5+16|0,$5+16|0,HEAP32[$9+HEAP32[$5+40>>2]>>2]);if($4){break label$3}$4=mbedtls_mpi_lset($5,0);if($4){break label$3}label$19:{if($7>>>0>=2){$4=HEAP32[$5+8>>2];$6=HEAP32[$5+72>>2];HEAP32[$4>>2]=HEAP32[$6+($13<<2)>>2];break label$19}$4=HEAP32[$5+8>>2];HEAP32[$4>>2]=0;$6=HEAP32[$5+72>>2]}HEAP32[$4+4>>2]=HEAP32[($8<<2)+$6>>2];HEAP32[$4+8>>2]=HEAP32[$6+$15>>2];if((mbedtls_mpi_cmp_mpi($5+16|0,$5)|0)<1){break label$13}$4=$9+HEAP32[$5+40>>2]|0;HEAP32[$4>>2]=HEAP32[$4>>2]+ -1;$4=mbedtls_mpi_lset($5+16|0,0);if(!$4){continue}break}break label$3}$4=mbedtls_mpi_mul_int($5+16|0,$5+48|0,HEAP32[$9+HEAP32[$5+40>>2]>>2]);if($4){break label$3}$7=$11<<5;$4=mbedtls_mpi_shift_l($5+16|0,$7);if($4){break label$3}$4=mbedtls_mpi_sub_mpi($5- -64|0,$5- -64|0,$5+16|0);if($4){break label$3}if((mbedtls_mpi_cmp_int($5- -64|0,0)|0)<=-1){$4=mbedtls_mpi_copy($5+16|0,$5+48|0);if($4){break label$3}$4=mbedtls_mpi_shift_l($5+16|0,$7);if($4){break label$3}$4=mbedtls_mpi_add_mpi($5- -64|0,$5- -64|0,$5+16|0);if($4){break label$3}$4=$9+HEAP32[$5+40>>2]|0;HEAP32[$4>>2]=HEAP32[$4>>2]+ -1}$7=$8;if($7>>>0>$10>>>0){continue}break}}if($0){$4=mbedtls_mpi_copy($0,$5+32|0);if($4){break label$3}HEAP32[$0>>2]=Math_imul(HEAP32[$3>>2],HEAP32[$2>>2])}if(!$1){$4=0;break label$3}$4=mbedtls_mpi_shift_r($5- -64|0,$14);if($4){break label$3}HEAP32[$5+64>>2]=HEAP32[$2>>2];$4=mbedtls_mpi_copy($1,$5- -64|0);if($4){break label$3}$4=0;if(mbedtls_mpi_cmp_int($1,0)){break label$3}HEAP32[$1>>2]=1}mbedtls_mpi_free($5- -64|0);mbedtls_mpi_free($5+48|0);mbedtls_mpi_free($5+32|0);mbedtls_mpi_free($5+16|0);mbedtls_mpi_free($5);$3=$4}global$0=$5+80|0;return $3}function btVoronoiSimplexSolver__closestPtPointTriangle_28btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btSubSimplexClosestResult__29($0,$1,$2,$3,$4){var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0);$10=HEAPU8[$4+16|0]&-16;HEAP8[$4+16|0]=$10;$27=HEAPF32[$3>>2];$12=HEAPF32[$1>>2];$17=Math_fround($27-$12);$11=HEAPF32[$0>>2];$5=Math_fround($11-$12);$28=HEAPF32[$3+4>>2];$13=HEAPF32[$1+4>>2];$18=Math_fround($28-$13);$8=HEAPF32[$0+4>>2];$6=Math_fround($8-$13);$29=HEAPF32[$3+8>>2];$14=HEAPF32[$1+8>>2];$19=Math_fround($29-$14);$15=HEAPF32[$0+8>>2];$7=Math_fround($15-$14);$9=Math_fround(Math_fround(Math_fround($17*$5)+Math_fround($18*$6))+Math_fround($19*$7));$0=$4;$23=HEAPF32[$2>>2];$20=Math_fround($23-$12);$24=HEAPF32[$2+4>>2];$21=Math_fround($24-$13);$25=HEAPF32[$2+8>>2];$22=Math_fround($25-$14);$6=Math_fround(Math_fround(Math_fround($20*$5)+Math_fround($21*$6))+Math_fround($22*$7));label$1:{if(!($6<=Math_fround(0)^1|$9<=Math_fround(0)^1)){$2=HEAP32[$1+4>>2];HEAP32[$4>>2]=HEAP32[$1>>2];HEAP32[$4+4>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$4+8>>2]=HEAP32[$1+8>>2];HEAP32[$4+12>>2]=$2;HEAP8[$4+16|0]=$10|1;$6=Math_fround(0);$5=Math_fround(0);$7=Math_fround(1);break label$1}$5=Math_fround($11-$23);$7=Math_fround($8-$24);$16=Math_fround($15-$25);$26=Math_fround(Math_fround(Math_fround($17*$5)+Math_fround($18*$7))+Math_fround($19*$16));$7=Math_fround(Math_fround(Math_fround($20*$5)+Math_fround($21*$7))+Math_fround($22*$16));if(!($7>=Math_fround(0)^1|$26<=$7^1)){$1=HEAP32[$2+4>>2];HEAP32[$4>>2]=HEAP32[$2>>2];HEAP32[$4+4>>2]=$1;$1=HEAP32[$2+12>>2];HEAP32[$4+8>>2]=HEAP32[$2+8>>2];HEAP32[$4+12>>2]=$1;HEAP8[$4+16|0]=$10|2;$6=Math_fround(1);$5=Math_fround(0);$7=Math_fround(0);break label$1}$16=Math_fround(Math_fround($6*$26)-Math_fround($7*$9));label$4:{if($7<=Math_fround(0)^1|$6>=Math_fround(0)^1){break label$4}$5=Math_fround(0);if(!($16<=Math_fround(0))){break label$4}HEAP32[$4+12>>2]=0;HEAP8[$4+16|0]=$10|3;$6=Math_fround($6/Math_fround($6-$7));HEAPF32[$4+8>>2]=$14+Math_fround($22*$6);HEAPF32[$4+4>>2]=$13+Math_fround($21*$6);HEAPF32[$4>>2]=$12+Math_fround($20*$6);$7=Math_fround(Math_fround(1)-$6);break label$1}$5=Math_fround($11-$27);$8=Math_fround($8-$28);$15=Math_fround($15-$29);$11=Math_fround(Math_fround(Math_fround($20*$5)+Math_fround($21*$8))+Math_fround($22*$15));$5=Math_fround(Math_fround(Math_fround($17*$5)+Math_fround($18*$8))+Math_fround($19*$15));if(!($5>=Math_fround(0)^1|$11<=$5^1)){$1=HEAP32[$3+4>>2];HEAP32[$4>>2]=HEAP32[$3>>2];HEAP32[$4+4>>2]=$1;$1=HEAP32[$3+12>>2];HEAP32[$4+8>>2]=HEAP32[$3+8>>2];HEAP32[$4+12>>2]=$1;HEAP8[$4+16|0]=$10|4;$5=Math_fround(1);$6=Math_fround(0);$7=Math_fround(0);break label$1}$8=Math_fround(Math_fround($11*$9)-Math_fround($6*$5));label$6:{if($5<=Math_fround(0)^1|$9>=Math_fround(0)^1){break label$6}$6=Math_fround(0);if(!($8<=Math_fround(0))){break label$6}HEAP32[$4+12>>2]=0;HEAP8[$4+16|0]=$10|5;$5=Math_fround($9/Math_fround($9-$5));HEAPF32[$4+8>>2]=$14+Math_fround($19*$5);HEAPF32[$4+4>>2]=$13+Math_fround($18*$5);HEAPF32[$4>>2]=$12+Math_fround($17*$5);$7=Math_fround(Math_fround(1)-$5);break label$1}label$7:{$9=Math_fround(Math_fround($7*$5)-Math_fround($11*$26));if(!($9<=Math_fround(0))){break label$7}$6=Math_fround($26-$7);if(!($6>=Math_fround(0))){break label$7}$5=Math_fround($11-$5);if(!($5>=Math_fround(0))){break label$7}HEAP32[$4+12>>2]=0;HEAP8[$4+16|0]=$10|6;$5=Math_fround($6/Math_fround($6+$5));HEAPF32[$4+8>>2]=$25+Math_fround(Math_fround($29-$25)*$5);HEAPF32[$4+4>>2]=$24+Math_fround(Math_fround($28-$24)*$5);HEAPF32[$4>>2]=$23+Math_fround(Math_fround($27-$23)*$5);$6=Math_fround(Math_fround(1)-$5);$7=Math_fround(0);break label$1}HEAP32[$4+12>>2]=0;HEAP8[$4+16|0]=$10|7;$6=Math_fround(Math_fround(1)/Math_fround($16+Math_fround($9+$8)));$5=Math_fround($16*$6);$6=Math_fround($8*$6);HEAPF32[$4+8>>2]=Math_fround($19*$5)+Math_fround($14+Math_fround($22*$6));HEAPF32[$4+4>>2]=Math_fround($18*$5)+Math_fround($13+Math_fround($21*$6));HEAPF32[$4>>2]=Math_fround($17*$5)+Math_fround($12+Math_fround($20*$6));$7=Math_fround(Math_fround(Math_fround(1)-$6)-$5)}HEAPF32[$0+20>>2]=$7;HEAP32[$4+32>>2]=0;HEAPF32[$4+28>>2]=$5;HEAPF32[$4+24>>2]=$6}function SphereTriangleDetector__collide_28btVector3_20const__2c_20btVector3__2c_20btVector3__2c_20float__2c_20float__2c_20float_29($0,$1,$2,$3,$4,$5,$6){var $7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=Math_fround(0),$27=Math_fround(0),$28=0;$10=global$0-32|0;global$0=$10;$11=HEAP32[$0+4>>2];$21=Math_fround(HEAPF32[$11+28>>2]*HEAPF32[$11+12>>2]);$15=HEAPF32[$1+8>>2];$11=HEAP32[$0+8>>2];$8=HEAPF32[$11+60>>2];$26=Math_fround($15-$8);$7=HEAPF32[$11+52>>2];$12=Math_fround(HEAPF32[$11+68>>2]-$7);$19=HEAPF32[$11+56>>2];$13=Math_fround(HEAPF32[$11+88>>2]-$19);$14=Math_fround(HEAPF32[$11+72>>2]-$19);$16=Math_fround(HEAPF32[$11+84>>2]-$7);$9=Math_fround(Math_fround($12*$13)-Math_fround($14*$16));$20=$9;$18=Math_fround($9*$9);$9=Math_fround(HEAPF32[$11+92>>2]-$8);$27=Math_fround($14*$9);$14=Math_fround(HEAPF32[$11+76>>2]-$8);$8=Math_fround($27-Math_fround($14*$13));$16=Math_fround(Math_fround($14*$16)-Math_fround($12*$9));$18=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($18+Math_fround(Math_fround($8*$8)+Math_fround($16*$16))))));$9=Math_fround($20*$18);$13=HEAPF32[$1>>2];$12=Math_fround($8*$18);$20=Math_fround(Math_fround($13-$7)*$12);$14=HEAPF32[$1+4>>2];$7=Math_fround($16*$18);$8=Math_fround(Math_fround($26*$9)+Math_fround($20+Math_fround(Math_fround($14-$19)*$7)));if(!!($8=Math_fround(0)^1|$8<$21)|$8<$6^1){break label$2}$25=HEAP32[$1+12>>2];HEAP32[$10+24>>2]=HEAP32[$1+8>>2];HEAP32[$10+28>>2]=$25;$25=HEAP32[$1+4>>2];HEAP32[$10+16>>2]=HEAP32[$1>>2];HEAP32[$10+20>>2]=$25;HEAP32[$10+12>>2]=0;HEAPF32[$10+8>>2]=$9;HEAPF32[$10+4>>2]=$7;HEAPF32[$10>>2]=$12;label$3:{if(SphereTriangleDetector__pointInTriangle_28btVector3_20const__2c_20btVector3_20const__2c_20btVector3__29($11+52|0,$10,$10+16|0)){$22=Math_fround($15-Math_fround($8*$9));$23=Math_fround($14-Math_fround($8*$7));$24=Math_fround($13-Math_fround($8*$12));break label$3}if((FUNCTION_TABLE[HEAP32[HEAP32[$11>>2]+88>>2]]($11)|0)<1){break label$2}$20=Math_fround($6*$6);$11=0;while(1){$17=HEAP32[$0+8>>2];FUNCTION_TABLE[HEAP32[HEAP32[$17>>2]+92>>2]]($17,$11,$10+16|0,$10);$7=Math_fround(0);$14=HEAPF32[$10+16>>2];$8=Math_fround(HEAPF32[$1>>2]-$14);$6=Math_fround(HEAPF32[$10>>2]-$14);$19=HEAPF32[$10+20>>2];$9=Math_fround(HEAPF32[$1+4>>2]-$19);$15=Math_fround(HEAPF32[$10+4>>2]-$19);$16=HEAPF32[$10+24>>2];$12=Math_fround(HEAPF32[$1+8>>2]-$16);$13=Math_fround(HEAPF32[$10+8>>2]-$16);$18=Math_fround(Math_fround(Math_fround($8*$6)+Math_fround($9*$15))+Math_fround($12*$13));label$6:{if(!($18>Math_fround(0))){break label$6}$7=Math_fround(Math_fround(Math_fround($6*$6)+Math_fround($15*$15))+Math_fround($13*$13));if(!!($18<$7)){$7=Math_fround($18/$7);$12=Math_fround($12-Math_fround($13*$7));$9=Math_fround($9-Math_fround($15*$7));$8=Math_fround($8-Math_fround($6*$7));break label$6}$12=Math_fround($12-$13);$9=Math_fround($9-$15);$8=Math_fround($8-$6);$7=Math_fround(1)}if(!!(Math_fround(Math_fround(Math_fround($8*$8)+Math_fround($9*$9))+Math_fround($12*$12))<$20)){$24=Math_fround($14+Math_fround($6*$7));$23=Math_fround($19+Math_fround($15*$7));$28=1;$22=Math_fround($16+Math_fround($13*$7))}$11=$11+1|0;$17=HEAP32[$0+8>>2];if(($11|0)<(FUNCTION_TABLE[HEAP32[HEAP32[$17>>2]+88>>2]]($17)|0)){continue}break}$17=0;if(!$28){break label$2}$15=HEAPF32[$1+8>>2];$14=HEAPF32[$1+4>>2];$13=HEAPF32[$1>>2]}$17=1;$6=Math_fround($13-$24);$8=Math_fround($14-$23);$7=Math_fround($15-$22);$9=Math_fround(Math_fround(Math_fround($6*$6)+Math_fround($8*$8))+Math_fround($7*$7));if(!!($9>2]=0;$20=$7;$9=Math_fround(Math_sqrt($9));$7=Math_fround(Math_fround(1)/$9);HEAPF32[$3+8>>2]=$20*$7;HEAPF32[$3+4>>2]=$8*$7;HEAPF32[$3>>2]=$6*$7;HEAP32[$2+12>>2]=0;HEAPF32[$2+8>>2]=$22;HEAPF32[$2+4>>2]=$23;HEAPF32[$2>>2]=$24;HEAPF32[$4>>2]=-Math_fround($21-$9);break label$2}$17=0;if(Math_fround(Math_fround(Math_fround($6*Math_fround(0))+Math_fround($8*Math_fround(0)))+Math_fround($7*Math_fround(0)))>=Math_fround(0)){break label$2}HEAP32[$2+12>>2]=0;HEAPF32[$2+8>>2]=$22;HEAPF32[$2+4>>2]=$23;HEAPF32[$2>>2]=$24;HEAP32[$5>>2]=0;$17=1}global$0=$10+32|0;return $17}function dmResource__ReloadResource_28dmResource__SResourceFactory__2c_20char_20const__2c_20dmResource__SResourceDescriptor___29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$3=global$0-1232|0;global$0=$3;$9=HEAP32[$0+5140>>2];dmMutex__Lock_28dmMutex__Mutex__29($9);$5=HEAP32[$0+7368>>2];if($5){dmHttpCache__SetConsistencyPolicy_28dmHttpCache__Cache__2c_20dmHttpCache__ConsistencyPolicy_29($5,0)}HEAP32[$3+100>>2]=$1;HEAP32[$3+96>>2]=26259;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($3+208|0,1024,26253,$3+96|0);$7=$3+208|0;$6=$7;label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{while(1){label$9:{$5=HEAPU8[$6|0];label$10:{label$11:{if(($5|0)!=47){if($5){break label$11}HEAP8[$7|0]=0;$5=dmHashBuffer64($3+208|0,strlen($3+208|0));$6=i64toi32_i32$HIGH_BITS;$7=0;$8=HEAP32[$0>>2];$4=HEAP32[$8+4>>2];label$13:{if(!$4){break label$13}$4=HEAP32[HEAP32[$8>>2]+(__wasm_i64_urem($5,$6,$4)<<2)>>2];if(($4|0)==-1){break label$13}$8=HEAP32[$8+8>>2];while(1){$4=Math_imul($4,56);$7=$4+$8|0;if(($5|0)==HEAP32[$7>>2]&($6|0)==HEAP32[$7+4>>2]){break label$13}$4=HEAP32[($4+$8|0)+48>>2];if(($4|0)!=-1){continue}break}$7=0}$5=$7?$7+8|0:0;if($2){HEAP32[$2>>2]=$5}if(!$7){break label$6}$8=HEAP32[$5+24>>2];if(!HEAP32[$8+32>>2]){break label$5}$6=$0+7376|0;$7=$0+7380|0;$10=$0+7384|0;$4=HEAP32[$0+7376>>2];if((HEAP32[$10>>2]-$4|0)!=1048576){if(HEAP8[$0+7388|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(1048576,1,$6,$10,$0+7380|0);$4=HEAP32[$0+7376>>2]}HEAP32[$7>>2]=$4;$6=dmResource__DoLoadResourceLocked_28dmResource__SResourceFactory__2c_20char_20const__2c_20char_20const__2c_20unsigned_20int__2c_20dmArray_char___29($0,$3+208|0,$1,$3+204|0,$6);if($6){break label$7}$4=HEAP32[$0+7376>>2];HEAP32[$3+160>>2]=$0;$6=HEAP32[$8+12>>2];HEAP32[$3+188>>2]=0;HEAP32[$3+164>>2]=$6;HEAP32[$3+180>>2]=$4;HEAP32[$3+192>>2]=$5;$4=HEAP32[$3+204>>2];HEAP32[$3+184>>2]=$4;HEAP32[$3+176>>2]=$1;HEAP32[$5+12>>2]=0;$6=FUNCTION_TABLE[HEAP32[$8+32>>2]]($3+160|0)|0;if($6){break label$7}HEAP32[HEAP32[$3+192>>2]+20>>2]=$4;$4=HEAP32[$0+12>>2];label$18:{if(!$4){break label$18}$7=HEAP32[$4>>2];if(($7|0)==HEAP32[$4+4>>2]){break label$18}$6=0;while(1){$4=($6<<3)+$7|0;$7=HEAP32[$4+4>>2];HEAP32[$3+128>>2]=$1;HEAP32[$3+124>>2]=$5;HEAP32[$3+120>>2]=$7;FUNCTION_TABLE[HEAP32[$4>>2]]($3+120|0);$4=HEAP32[$0+12>>2];$7=HEAP32[$4>>2];$6=$6+1|0;if($6>>>0>2]-$7>>3>>>0){continue}break}}if(HEAP32[$5+12>>2]){break label$9}$6=0;break label$7}if(($4&255)==47){break label$10}}HEAP8[$7|0]=$5;$7=$7+1|0}$6=$6+1|0;$4=$5;continue}break}$4=HEAP32[$5+36>>2];HEAP32[$3+152>>2]=HEAP32[$5+32>>2];HEAP32[$3+156>>2]=$4;$4=HEAP32[$5+28>>2];HEAP32[$3+144>>2]=HEAP32[$5+24>>2];HEAP32[$3+148>>2]=$4;$4=HEAP32[$5+20>>2];HEAP32[$3+136>>2]=HEAP32[$5+16>>2];HEAP32[$3+140>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$3+128>>2]=HEAP32[$5+8>>2];HEAP32[$3+132>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$3+120>>2]=HEAP32[$5>>2];HEAP32[$3+124>>2]=$4;HEAP32[$3+128>>2]=HEAP32[$5+12>>2];HEAP32[$3+104>>2]=$0;HEAP32[$3+108>>2]=HEAP32[$8+12>>2];HEAP32[$3+112>>2]=$3+120;$6=FUNCTION_TABLE[HEAP32[$8+28>>2]]($3+104|0)|0;HEAP32[$5+12>>2]=0}$4=$6+15|0;if($4>>>0>15){break label$4}label$20:{switch($4-1|0){case 14:HEAP32[$3+48>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,26260,28405,$3+48|0);$6=0;break label$3;case 6:HEAP32[$3+64>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,26260,28435,$3- -64|0);$6=-8;break label$3;case 0:case 1:break label$20;case 2:case 3:case 4:case 5:case 7:case 8:case 9:case 10:case 12:case 13:break label$4;case 11:break label$6;default:break label$5}}HEAP32[$3+80>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,26260,28467,$3+80|0);break label$3}HEAP32[$3>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,26260,28516,$3);$6=-3;break label$3}HEAP32[$3+16>>2]=HEAP32[HEAP32[HEAP32[$2>>2]+24>>2]+8>>2];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,26260,28575,$3+16|0);$6=-15;break label$3}HEAP32[$3+36>>2]=$6;HEAP32[$3+32>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,26260,28620,$3+32|0)}$0=HEAP32[$0+7368>>2];if($0){dmHttpCache__SetConsistencyPolicy_28dmHttpCache__Cache__2c_20dmHttpCache__ConsistencyPolicy_29($0,1)}dmMutex__Unlock_28dmMutex__Mutex__29($9);global$0=$3+1232|0;return $6}__assert_fail(29450,28946,444,29525);abort()}function symbexec($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0,$20=0;label$1:{$8=HEAPU8[$0+75|0];label$2:{if($8>>>0>250){break label$2}$4=HEAPU8[$0+74|0];if(($4&5)==4|HEAPU8[$0+73|0]+($4&1)>>>0>$8>>>0){break label$2}$19=HEAPU8[$0+72|0];if(HEAP32[$0+36>>2]>($19|0)){break label$2}$11=HEAP32[$0+44>>2];if(($11|0)<1){break label$2}$3=HEAP32[$0+48>>2];if(!(!$3|($3|0)==($11|0))){break label$2}$12=HEAP32[$0+12>>2];$16=$11+ -1|0;$3=HEAP32[$12+($16<<2)>>2];if(($3&63)!=30){break label$2}$7=$3;if(($1|0)<1){break label$2}$20=($4&6)!=2;$10=$16;while(1){$13=($6<<2)+$12|0;$7=HEAP32[$13>>2];$17=$7&63;if($17>>>0>37){break label$1}$9=$7>>>6&255;if($9>>>0>=$8>>>0){break label$1}$4=HEAPU8[$17+123488|0];$18=$4<<24>>24;$3=0;$5=$4&3;label$4:{if($5>>>0>2){$5=0;break label$4}label$6:{switch($5-1|0){default:$5=$7>>>23|0;label$9:{$3=$4>>>4&3;if($3>>>0>3){break label$9}label$10:{switch($3-1|0){default:if(!$5){break label$9}break label$1;case 1:if($5>>>0<$8>>>0){break label$9}break label$1;case 2:break label$10;case 0:break label$9}}if(($7|0)<=-1){if(($5&255)>2]){break label$9}break label$1}if($5>>>0<$8>>>0){break label$9}break label$1}$14=$7>>>14|0;$4=$14&511;$15=$18>>>2&3;if($15>>>0>3){$3=$4;break label$4}$3=$4;label$15:{switch($15-1|0){default:$3=0;$7=0;if(!$4){break label$4}break label$2;case 1:if($4>>>0<$8>>>0){break label$4}break label$1;case 2:break label$15;case 0:break label$4}}if($7&4194304){if(($14&255)>2]){break label$4}break label$1}if($4>>>0<$8>>>0){break label$4}break label$1;case 0:$5=$7>>>14|0;if(($4&48)!=48){break label$4}$7=0;if(($5|0)>2]){break label$4}break label$2;case 1:break label$6}}$14=$7>>>14|0;$5=$14+ -131071|0;if(($4&48)!=32){break label$4}$7=0;$15=$5+$6|0;$3=$15+1|0;if(($3|0)<0|($3|0)>=($11|0)){break label$2}if(($3|0)<1){$3=0;break label$4}$3=($6+$14|0)+ -131070|0;$4=0;label$20:{while(1){if((HEAP32[($15-$4<<2)+$12>>2]&8372287)!=34){break label$20}$4=$4+1|0;if(($3|0)!=($4|0)){continue}break}$4=$3}$3=0;if($4&1){break label$2}}if(($18|0)<=-1){$7=0;if((HEAP32[$13+4>>2]&63)!=22|($6+2|0)>=($11|0)){break label$2}}$10=($2|0)==($9|0)?($18&64)>>>6|0?$6:$10:$10;$4=$17+ -2|0;label$23:{if($4>>>0>35){break label$23}label$24:{label$25:{label$26:{label$27:{label$28:{label$29:{label$30:{label$31:{switch($4-1|0){default:if(($3|0)!=1){break label$23}$7=0;if(($6+2|0)>=($11|0)){break label$2}if((HEAP32[$13+4>>2]&8372287)!=34){break label$23}break label$2;case 0:$10=($9|0)>($2|0)?$10:($5|0)<($2|0)?$10:$6;break label$23;case 1:case 5:if(($5|0)<($19|0)){break label$23}break label$1;case 2:case 4:if(HEAP32[(HEAP32[$0+8>>2]+($5<<4)|0)+8>>2]==4){break label$23}break label$1;case 8:$3=$9+1|0;if($3>>>0>=$8>>>0){break label$1}$10=($2|0)==($3|0)?$6:$10;break label$23;case 18:if(($5|0)<($3|0)){break label$23}break label$1;case 30:$7=0;if(!$3){break label$2}$4=$3;$3=$9+2|0;if($4+$3>>>0>=$8>>>0){break label$2}$10=($3|0)>($2|0)?$10:$6;break label$23;case 3:case 6:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 20:case 21:case 22:case 23:case 24:case 32:break label$23;case 34:break label$25;case 33:break label$26;case 31:break label$27;case 27:break label$28;case 25:case 26:break label$29;case 19:break label$30;case 28:case 29:break label$31}}if($9+3>>>0<$8>>>0){break label$30}break label$1}$3=($5+$6|0)+1|0;$6=(($3|0)>($1|0)?0:($2|0)==255?0:($6|0)>=($3|0)?0:$5)+$6|0;break label$23}$7=0;if(($5+$9|0)>($8|0)?$5:0){break label$2}label$39:{if(!$3){$3=HEAP32[$13+4>>2];$4=$3&63;if(($4|0)!=34?$4+ -28>>>0>=3:0){break label$2}if($3>>>0<=8388607){break label$39}break label$2}$3=$3+ -1|0;if(!$3){break label$39}if(($3+$9|0)>($8|0)){break label$2}}$10=($9|0)>($2|0)?$10:$6;break label$23}if(($5|0)<2|(($5+$9|0)+ -1|0)<=($8|0)){break label$23}break label$1}$7=0;if(($5+$9|0)>=($8|0)?($5|0)>=1:0){break label$2}if($3){break label$23}$6=$6+1|0;if(($6|0)<($16|0)){break label$23}break label$2}$7=0;if(($5|0)>=HEAP32[$0+52>>2]){break label$2}$3=HEAPU8[HEAP32[HEAP32[$0+16>>2]+($5<<2)>>2]+72|0];$5=$3+$6|0;if(($5|0)>=($11|0)){break label$2}$4=1;if(!$3){break label$24}while(1){if(HEAPU8[($4+$6<<2)+$12|0]&59){break label$2}$9=($3|0)==($4|0);$4=$4+1|0;if(!$9){continue}break}break label$24}$7=0;if($20){break label$2}if(!$5){$3=HEAP32[$13+4>>2];$4=$3&63;if((($4|0)!=34?$4+ -28>>>0>=3:0)|$3>>>0>8388607){break label$2}}if((($5+$9|0)+ -1|0)>($8|0)){break label$2}break label$23}$6=($2|0)==255?$6:$5}$6=$6+1|0;if(($6|0)<($1|0)){continue}break}$7=HEAP32[($10<<2)+$12>>2]}return $7}return 0}function unsigned_20int_20std____2____sort4_dmGui__RenderEntrySortPred__2c_20dmGui__RenderEntry___28dmGui__RenderEntry__2c_20dmGui__RenderEntry__2c_20dmGui__RenderEntry__2c_20dmGui__RenderEntry__2c_20dmGui__RenderEntrySortPred__29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$5=global$0-16|0;$9=HEAP32[$2>>2];$6=HEAP32[$2+4>>2];$7=HEAP32[$1+4>>2];$4=$7;$10=HEAP32[$0+4>>2];$8=HEAP32[$1>>2];label$1:{label$2:{if(($4|0)==($10|0)&$8>>>0>=HEAPU32[$0>>2]|$4>>>0>$10>>>0){$4=0;if(($6|0)==($7|0)&$9>>>0>=$8>>>0|$6>>>0>$7>>>0){break label$1}$4=HEAP32[$1+12>>2];HEAP32[$5+8>>2]=HEAP32[$1+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$1+4>>2];HEAP32[$5>>2]=HEAP32[$1>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$4;$4=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=$4;$6=HEAP32[$1+4>>2];$7=HEAP32[$0+4>>2];$4=1;if(($6|0)==($7|0)&HEAPU32[$1>>2]>=HEAPU32[$0>>2]|$6>>>0>$7>>>0){break label$1}$4=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$4;$4=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$1+8>>2]=HEAP32[$5+8>>2];HEAP32[$1+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$1>>2]=HEAP32[$5>>2];HEAP32[$1+4>>2]=$4;break label$2}if(($6|0)==($7|0)&$9>>>0<$8>>>0|$6>>>0<$7>>>0){$4=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$2+12>>2];HEAP32[$0+8>>2]=HEAP32[$2+8>>2];HEAP32[$0+12>>2]=$4;$4=HEAP32[$2+4>>2];HEAP32[$0>>2]=HEAP32[$2>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=$4;$4=1;break label$1}$4=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$4;$4=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$1+8>>2]=HEAP32[$5+8>>2];HEAP32[$1+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$1>>2]=HEAP32[$5>>2];HEAP32[$1+4>>2]=$4;$6=HEAP32[$2+4>>2];$7=HEAP32[$1+4>>2];$4=1;if(($6|0)==($7|0)&HEAPU32[$2>>2]>=HEAPU32[$1>>2]|$6>>>0>$7>>>0){break label$1}$4=HEAP32[$1+12>>2];HEAP32[$5+8>>2]=HEAP32[$1+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$1+4>>2];HEAP32[$5>>2]=HEAP32[$1>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$4;$4=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=$4}$4=2}$6=HEAP32[$3+4>>2];$7=HEAP32[$2+4>>2];if(($6|0)==($7|0)&HEAPU32[$3>>2]>2]|$6>>>0<$7>>>0){$6=HEAP32[$2+12>>2];HEAP32[$5+8>>2]=HEAP32[$2+8>>2];HEAP32[$5+12>>2]=$6;$6=HEAP32[$2+4>>2];HEAP32[$5>>2]=HEAP32[$2>>2];HEAP32[$5+4>>2]=$6;$6=HEAP32[$3+12>>2];HEAP32[$2+8>>2]=HEAP32[$3+8>>2];HEAP32[$2+12>>2]=$6;$6=HEAP32[$3+4>>2];HEAP32[$2>>2]=HEAP32[$3>>2];HEAP32[$2+4>>2]=$6;$6=HEAP32[$5+12>>2];HEAP32[$3+8>>2]=HEAP32[$5+8>>2];HEAP32[$3+12>>2]=$6;$6=HEAP32[$5+4>>2];HEAP32[$3>>2]=HEAP32[$5>>2];HEAP32[$3+4>>2]=$6;$3=HEAP32[$2+4>>2];$6=HEAP32[$1+4>>2];if(($3|0)==($6|0)&HEAPU32[$2>>2]>=HEAPU32[$1>>2]|$3>>>0>$6>>>0){return $4+1|0}$3=HEAP32[$1+12>>2];HEAP32[$5+8>>2]=HEAP32[$1+8>>2];HEAP32[$5+12>>2]=$3;$3=HEAP32[$1+4>>2];HEAP32[$5>>2]=HEAP32[$1>>2];HEAP32[$5+4>>2]=$3;$3=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$3;$3=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$3;$3=HEAP32[$5+12>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=$3;$3=HEAP32[$5+4>>2];HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=$3;$2=HEAP32[$1+4>>2];$3=HEAP32[$0+4>>2];if(($2|0)==($3|0)&HEAPU32[$1>>2]>=HEAPU32[$0>>2]|$2>>>0>$3>>>0){return $4+2|0}$2=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$2;$2=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$2;$2=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$2;$0=HEAP32[$5+12>>2];HEAP32[$1+8>>2]=HEAP32[$5+8>>2];HEAP32[$1+12>>2]=$0;$0=HEAP32[$5+4>>2];HEAP32[$1>>2]=HEAP32[$5>>2];HEAP32[$1+4>>2]=$0;$4=$4+3|0}return $4}function btAxisSweep3Internal_unsigned_20short___removeHandle_28unsigned_20short_2c_20btDispatcher__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$8=HEAP32[$0+60>>2];$3=HEAP32[$0+92>>2];if(!FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+56>>2]]($3)){$3=HEAP32[$0+92>>2];FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+16>>2]]($3,$8+($1<<6)|0,$2)}$9=HEAPU16[$0+56>>1];$6=HEAP32[$0+60>>2];HEAP16[$6+54>>1]=HEAPU16[$6+54>>1]+ -2;HEAP16[$6+56>>1]=HEAPU16[$6+56>>1]+ -2;HEAP16[$6+58>>1]=HEAPU16[$6+58>>1]+ -2;$7=HEAP32[$0+68>>2];$10=$8+($1<<6)|0;$4=HEAPU16[$10+54>>1]<<2;$3=$7+$4|0;$2=HEAPU16[$0+6>>1];HEAP16[$3>>1]=$2;$5=HEAPU16[$3+6>>1];$11=$7;label$2:{if(!$5){break label$2}$6=$6+(HEAPU16[($4+$7|0)+2>>1]<<6)|0;while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+54|0:$4+48|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$6+54>>1]=HEAPU16[$6+54>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1];$11=HEAP32[$0+68>>2]}$4=$11;$6=HEAPU16[$10+48>>1];$3=$6<<2;HEAP16[$3+$7>>1]=$2;$3=$3+$4|0;$5=HEAPU16[$3+6>>1];if($5){$6=HEAP32[$0+60>>2]+(HEAPU16[($4+($6<<2)|0)+2>>1]<<6)|0;$2=HEAPU16[$3>>1];while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+54|0:$4+48|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$6+48>>1]=HEAPU16[$6+48>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1]}$6=($9<<1)+ -1|0;$3=$7+($6<<2)|0;HEAP16[$3>>1]=$2;HEAP16[$3+2>>1]=0;$7=HEAP32[$0+72>>2];$10=$8+($1<<6)|0;$9=HEAPU16[$10+56>>1]<<2;$3=$7+$9|0;HEAP16[$3>>1]=$2;$5=HEAPU16[$3+6>>1];$4=$7;label$8:{if(!$5){break label$8}$9=HEAP32[$0+60>>2]+(HEAPU16[($7+$9|0)+2>>1]<<6)|0;while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+56|0:$4+50|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$9+56>>1]=HEAPU16[$9+56>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1];$4=HEAP32[$0+72>>2]}$9=HEAPU16[$10+50>>1];$3=$9<<2;HEAP16[$3+$7>>1]=$2;$3=$3+$4|0;$5=HEAPU16[$3+6>>1];if($5){$9=HEAP32[$0+60>>2]+(HEAPU16[($4+($9<<2)|0)+2>>1]<<6)|0;$2=HEAPU16[$3>>1];while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+56|0:$4+50|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$9+50>>1]=HEAPU16[$9+50>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1]}$3=$7+($6<<2)|0;HEAP16[$3>>1]=$2;HEAP16[$3+2>>1]=0;$7=HEAP32[$0+76>>2];$9=$8+($1<<6)|0;$8=HEAPU16[$9+58>>1]<<2;$3=$7+$8|0;HEAP16[$3>>1]=$2;$5=HEAPU16[$3+6>>1];$4=$7;label$14:{if(!$5){break label$14}$8=HEAP32[$0+60>>2]+(HEAPU16[($8+$7|0)+2>>1]<<6)|0;while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+58|0:$4+52|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$8+58>>1]=HEAPU16[$8+58>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1];$4=HEAP32[$0+76>>2]}$8=HEAPU16[$9+52>>1];$3=$8<<2;HEAP16[$3+$7>>1]=$2;$3=$3+$4|0;$5=HEAPU16[$3+6>>1];if($5){$8=HEAP32[$0+60>>2]+(HEAPU16[($4+($8<<2)|0)+2>>1]<<6)|0;$2=HEAPU16[$3>>1];while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+58|0:$4+52|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$8+52>>1]=HEAPU16[$8+52>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1]}$3=$7+($6<<2)|0;HEAP16[$3>>1]=$2;HEAP16[$3+2>>1]=0;HEAP16[(HEAP32[$0+60>>2]+($1<<6)|0)+48>>1]=HEAPU16[$0+64>>1];HEAP16[$0+64>>1]=$1;HEAP16[$0+56>>1]=HEAPU16[$0+56>>1]+ -1}function dlfree($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;label$1:{if(!$0){break label$1}$3=$0+ -8|0;$2=HEAP32[$0+ -4>>2];$0=$2&-8;$5=$3+$0|0;label$2:{if($2&1){break label$2}if(!($2&3)){break label$1}$2=HEAP32[$3>>2];$3=$3-$2|0;if($3>>>0>>0<=255){$4=HEAP32[$3+8>>2];$2=$2>>>3|0;$1=HEAP32[$3+12>>2];if(($1|0)==($4|0)){HEAP32[310328]=HEAP32[310328]&__wasm_rotl_i32(-2,$2);break label$2}HEAP32[$4+12>>2]=$1;HEAP32[$1+8>>2]=$4;break label$2}$7=HEAP32[$3+24>>2];$2=HEAP32[$3+12>>2];label$6:{if(($3|0)!=($2|0)){$1=HEAP32[$3+8>>2];HEAP32[$1+12>>2]=$2;HEAP32[$2+8>>2]=$1;break label$6}label$9:{$4=$3+20|0;$1=HEAP32[$4>>2];if($1){break label$9}$4=$3+16|0;$1=HEAP32[$4>>2];if($1){break label$9}$2=0;break label$6}while(1){$6=$4;$2=$1;$4=$2+20|0;$1=HEAP32[$4>>2];if($1){continue}$4=$2+16|0;$1=HEAP32[$2+16>>2];if($1){continue}break}HEAP32[$6>>2]=0}if(!$7){break label$2}$4=HEAP32[$3+28>>2];$1=($4<<2)+1241616|0;label$11:{if(HEAP32[$1>>2]==($3|0)){HEAP32[$1>>2]=$2;if($2){break label$11}HEAP32[310329]=HEAP32[310329]&__wasm_rotl_i32(-2,$4);break label$2}HEAP32[$7+(HEAP32[$7+16>>2]==($3|0)?16:20)>>2]=$2;if(!$2){break label$2}}HEAP32[$2+24>>2]=$7;$1=HEAP32[$3+16>>2];if($1){HEAP32[$2+16>>2]=$1;HEAP32[$1+24>>2]=$2}$1=HEAP32[$3+20>>2];if(!$1){break label$2}HEAP32[$2+20>>2]=$1;HEAP32[$1+24>>2]=$2;break label$2}$2=HEAP32[$5+4>>2];if(($2&3)!=3){break label$2}HEAP32[310330]=$0;HEAP32[$5+4>>2]=$2&-2;HEAP32[$3+4>>2]=$0|1;HEAP32[$0+$3>>2]=$0;return}if($5>>>0<=$3>>>0){break label$1}$2=HEAP32[$5+4>>2];if(!($2&1)){break label$1}label$14:{if(!($2&2)){if(HEAP32[310334]==($5|0)){HEAP32[310334]=$3;$0=HEAP32[310331]+$0|0;HEAP32[310331]=$0;HEAP32[$3+4>>2]=$0|1;if(HEAP32[310333]!=($3|0)){break label$1}HEAP32[310330]=0;HEAP32[310333]=0;return}if(HEAP32[310333]==($5|0)){HEAP32[310333]=$3;$0=HEAP32[310330]+$0|0;HEAP32[310330]=$0;HEAP32[$3+4>>2]=$0|1;HEAP32[$0+$3>>2]=$0;return}$0=($2&-8)+$0|0;label$18:{if($2>>>0<=255){$1=HEAP32[$5+8>>2];$2=$2>>>3|0;$4=HEAP32[$5+12>>2];if(($1|0)==($4|0)){HEAP32[310328]=HEAP32[310328]&__wasm_rotl_i32(-2,$2);break label$18}HEAP32[$1+12>>2]=$4;HEAP32[$4+8>>2]=$1;break label$18}$7=HEAP32[$5+24>>2];$2=HEAP32[$5+12>>2];label$23:{if(($5|0)!=($2|0)){$1=HEAP32[$5+8>>2];HEAP32[$1+12>>2]=$2;HEAP32[$2+8>>2]=$1;break label$23}label$26:{$4=$5+20|0;$1=HEAP32[$4>>2];if($1){break label$26}$4=$5+16|0;$1=HEAP32[$4>>2];if($1){break label$26}$2=0;break label$23}while(1){$6=$4;$2=$1;$4=$2+20|0;$1=HEAP32[$4>>2];if($1){continue}$4=$2+16|0;$1=HEAP32[$2+16>>2];if($1){continue}break}HEAP32[$6>>2]=0}if(!$7){break label$18}$4=HEAP32[$5+28>>2];$1=($4<<2)+1241616|0;label$28:{if(HEAP32[$1>>2]==($5|0)){HEAP32[$1>>2]=$2;if($2){break label$28}HEAP32[310329]=HEAP32[310329]&__wasm_rotl_i32(-2,$4);break label$18}HEAP32[$7+(HEAP32[$7+16>>2]==($5|0)?16:20)>>2]=$2;if(!$2){break label$18}}HEAP32[$2+24>>2]=$7;$1=HEAP32[$5+16>>2];if($1){HEAP32[$2+16>>2]=$1;HEAP32[$1+24>>2]=$2}$1=HEAP32[$5+20>>2];if(!$1){break label$18}HEAP32[$2+20>>2]=$1;HEAP32[$1+24>>2]=$2}HEAP32[$3+4>>2]=$0|1;HEAP32[$0+$3>>2]=$0;if(HEAP32[310333]!=($3|0)){break label$14}HEAP32[310330]=$0;return}HEAP32[$5+4>>2]=$2&-2;HEAP32[$3+4>>2]=$0|1;HEAP32[$0+$3>>2]=$0}if($0>>>0<=255){$0=$0>>>3|0;$2=($0<<3)+1241352|0;$1=HEAP32[310328];$0=1<<$0;label$32:{if(!($1&$0)){HEAP32[310328]=$0|$1;$0=$2;break label$32}$0=HEAP32[$2+8>>2]}HEAP32[$2+8>>2]=$3;HEAP32[$0+12>>2]=$3;HEAP32[$3+12>>2]=$2;HEAP32[$3+8>>2]=$0;return}HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=0;$5=$3;$4=$0>>>8|0;$1=0;label$34:{if(!$4){break label$34}$1=31;if($0>>>0>16777215){break label$34}$2=$4;$4=$4+1048320>>>16&8;$1=$2<<$4;$7=$1+520192>>>16&4;$1=$1<<$7;$6=$1+245760>>>16&2;$1=($1<<$6>>>15|0)-($6|($4|$7))|0;$1=($1<<1|$0>>>$1+21&1)+28|0}HEAP32[$5+28>>2]=$1;$6=($1<<2)+1241616|0;label$35:{label$36:{$4=HEAP32[310329];$2=1<<$1;label$37:{if(!($4&$2)){HEAP32[310329]=$2|$4;HEAP32[$6>>2]=$3;HEAP32[$3+24>>2]=$6;break label$37}$4=$0<<(($1|0)==31?0:25-($1>>>1|0)|0);$2=HEAP32[$6>>2];while(1){$1=$2;if((HEAP32[$2+4>>2]&-8)==($0|0)){break label$36}$2=$4>>>29|0;$4=$4<<1;$6=$1+($2&4)|0;$2=HEAP32[$6+16>>2];if($2){continue}break}HEAP32[$6+16>>2]=$3;HEAP32[$3+24>>2]=$1}HEAP32[$3+12>>2]=$3;HEAP32[$3+8>>2]=$3;break label$35}$0=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$3;HEAP32[$1+8>>2]=$3;HEAP32[$3+24>>2]=0;HEAP32[$3+12>>2]=$1;HEAP32[$3+8>>2]=$0}$0=HEAP32[310336]+ -1|0;HEAP32[310336]=$0;if($0){break label$1}$3=1241768;while(1){$0=HEAP32[$3>>2];$3=$0+8|0;if($0){continue}break}HEAP32[310336]=-1}}function dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($0,$1,$2,$3,$4,$5,$6,$7,$8){var $9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;$15=global$0-16|0;global$0=$15;label$1:{if(HEAP8[1130304]&1){break label$1}if(!__cxa_guard_acquire(1130304)){break label$1}if(HEAPU8[1130703]){$11=dmProfile__AllocateScope_28char_20const__29(153961)}else{$11=-1}HEAP32[282575]=$11;__cxa_guard_release(1130304)}label$3:{if(HEAP8[1130312]&1){break label$3}if(!__cxa_guard_acquire(1130312)){break label$3}if(HEAPU8[1130703]){$11=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(153979,4)}else{$11=0}HEAP32[282577]=$11;__cxa_guard_release(1130312)}$9=HEAP32[282575];label$5:{if(($9|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($15,$9,153979,HEAP32[282577]);break label$5}HEAP32[$15>>2]=0}label$7:{if(HEAP8[1130320]&1){break label$7}if(!__cxa_guard_acquire(1130320)){break label$7}if(HEAPU8[1130703]){$11=dmProfile__AllocateCounter_28char_20const__29(153984)}else{$11=-1}HEAP32[282579]=$11;__cxa_guard_release(1130320)}$9=HEAP32[282579];if(($9|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($9,1)}$10=-2;label$10:{label$11:{label$12:{if(!$1){break label$12}$9=HEAP32[282570];$13=HEAP32[$1>>2];$14=HEAP32[$1+4>>2];while(1){if(HEAP32[$9+32>>2]){continue}break}label$14:{$12=HEAP32[$9+4>>2];label$15:{if(!$12){break label$15}$12=HEAP32[HEAP32[$9>>2]+(__wasm_i64_urem($13,$14,$12)<<2)>>2];if(($12|0)==-1){break label$15}$16=HEAP32[$9+8>>2];while(1){$11=($12<<6)+$16|0;if(($13|0)==HEAP32[$11>>2]&($14|0)==HEAP32[$11+4>>2]){break label$14}$12=HEAP32[$11+56>>2];if(($12|0)!=-1){continue}break}}HEAP32[$9+32>>2]=0;break label$12}$13=($12<<6)+$16|0;$10=HEAP32[$13+8>>2];if(!$10){break label$10}$14=$13+8|0;HEAP32[$14>>2]=$10+1;HEAP32[$9+32>>2]=0;dmMutex__Lock_28dmMutex__Mutex__29(HEAP32[$13+36>>2]);$17=$7+111&-16;if($17>>>0>=4097){break label$11}$11=($12<<6)+$16|0;$18=$11;$9=HEAP32[$11+44>>2];label$17:{if($9){$10=HEAP32[$9+4096>>2];if(4096-$10>>>0>=$17>>>0){break label$17}$10=($12<<6)+$16|0;HEAP32[$9+4100>>2]=HEAP32[$10+52>>2];HEAP32[$10+52>>2]=$9}$9=HEAP32[$11+48>>2];label$19:{if($9){HEAP32[$11+48>>2]=HEAP32[$9+4100>>2];break label$19}$9=operator_20new_28unsigned_20long_29(4104)}HEAP32[$9+4096>>2]=0;HEAP32[$9+4100>>2]=0;HEAP32[$18+44>>2]=$9;$10=0}HEAP32[$9+4096>>2]=$10+$17;$9=$9+$10|0;label$21:{if($0){$10=HEAP32[$0+4>>2];HEAP32[$9>>2]=HEAP32[$0>>2];HEAP32[$9+4>>2]=$10;$10=HEAP32[$0+28>>2];HEAP32[$9+24>>2]=HEAP32[$0+24>>2];HEAP32[$9+28>>2]=$10;$10=HEAP32[$0+20>>2];HEAP32[$9+16>>2]=HEAP32[$0+16>>2];HEAP32[$9+20>>2]=$10;$10=HEAP32[$0+12>>2];HEAP32[$9+8>>2]=HEAP32[$0+8>>2];HEAP32[$9+12>>2]=$10;break label$21}HEAP8[$9|0]=0;HEAP8[$9+1|0]=0;HEAP8[$9+2|0]=0;HEAP8[$9+3|0]=0;HEAP8[$9+4|0]=0;HEAP8[$9+5|0]=0;HEAP8[$9+6|0]=0;HEAP8[$9+7|0]=0;HEAP8[$9+24|0]=0;HEAP8[$9+25|0]=0;HEAP8[$9+26|0]=0;HEAP8[$9+27|0]=0;HEAP8[$9+28|0]=0;HEAP8[$9+29|0]=0;HEAP8[$9+30|0]=0;HEAP8[$9+31|0]=0;HEAP8[$9+16|0]=0;HEAP8[$9+17|0]=0;HEAP8[$9+18|0]=0;HEAP8[$9+19|0]=0;HEAP8[$9+20|0]=0;HEAP8[$9+21|0]=0;HEAP8[$9+22|0]=0;HEAP8[$9+23|0]=0;HEAP8[$9+8|0]=0;HEAP8[$9+9|0]=0;HEAP8[$9+10|0]=0;HEAP8[$9+11|0]=0;HEAP8[$9+12|0]=0;HEAP8[$9+13|0]=0;HEAP8[$9+14|0]=0;HEAP8[$9+15|0]=0}$0=HEAP32[$1+4>>2];HEAP32[$9+32>>2]=HEAP32[$1>>2];HEAP32[$9+36>>2]=$0;$0=HEAP32[$1+28>>2];HEAP32[$9+56>>2]=HEAP32[$1+24>>2];HEAP32[$9+60>>2]=$0;$0=HEAP32[$1+20>>2];HEAP32[$9+48>>2]=HEAP32[$1+16>>2];HEAP32[$9+52>>2]=$0;$0=HEAP32[$1+12>>2];HEAP32[$9+40>>2]=HEAP32[$1+8>>2];HEAP32[$9+44>>2]=$0;HEAP32[$9+88>>2]=$8;HEAP32[$9+84>>2]=0;HEAP32[$9+80>>2]=$7;HEAP32[$9+76>>2]=$5;HEAP32[$9+72>>2]=$4;HEAP32[$9+64>>2]=$2;HEAP32[$9+68>>2]=$3;memcpy($9+96|0,$6,$7);$0=($12<<6)+$16|0;$1=$0;label$23:{if(HEAP32[$0+24>>2]){HEAP32[HEAP32[$0+28>>2]+84>>2]=$9;break label$23}HEAP32[$1+24>>2]=$9}HEAP32[$0+28>>2]=$9;dmMutex__Unlock_28dmMutex__Mutex__29(HEAP32[$13+36>>2]);$0=HEAP32[282570];while(1){if(HEAP32[$0+32>>2]){continue}break}$1=HEAP32[$14>>2]+ -1|0;HEAP32[$14>>2]=$1;$10=0;HEAP32[$0+32>>2]=0;if($1){break label$12}dmMessage__DisposeSocket_28dmMessage__MessageSocket__29($14)}if(HEAP32[$15>>2]){dmProfile__ProfileScope__EndScope_28_29($15)}global$0=$15+16|0;return $10}__assert_fail(154170,154132,95,154199);abort()}__assert_fail(154113,154132,259,154156);abort()}function b2WorldManifold__Initialize_28b2Manifold_20const__2c_20b2Transform_20const__2c_20float_2c_20b2Transform_20const__2c_20float_29($0,$1,$2,$3,$4,$5){var $6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=0,$19=Math_fround(0);label$1:{if(!HEAP32[$1+68>>2]){break label$1}$13=HEAP32[$1+64>>2];if($13>>>0>2){break label$1}label$2:{switch($13-1|0){default:HEAP32[$0>>2]=1065353216;HEAP32[$0+4>>2]=0;$8=HEAPF32[$2+12>>2];$6=HEAPF32[$1+56>>2];$9=HEAPF32[$2+8>>2];$11=HEAPF32[$1+60>>2];$7=Math_fround(HEAPF32[$2>>2]+Math_fround(Math_fround($8*$6)-Math_fround($9*$11)));$12=HEAPF32[$4+12>>2];$14=HEAPF32[$1>>2];$15=HEAPF32[$4+8>>2];$16=HEAPF32[$1+4>>2];$10=Math_fround(HEAPF32[$4>>2]+Math_fround(Math_fround($12*$14)-Math_fround($15*$16)));$17=Math_fround($7-$10);$9=Math_fround(Math_fround(Math_fround($6*$9)+Math_fround($8*$11))+HEAPF32[$2+4>>2]);$11=Math_fround(Math_fround(Math_fround($14*$15)+Math_fround($12*$16))+HEAPF32[$4+4>>2]);$8=Math_fround($9-$11);label$5:{if(!(Math_fround(Math_fround($17*$17)+Math_fround($8*$8))>Math_fround(1.4210854715202004e-14))){$8=Math_fround(1);$6=Math_fround(0);break label$5}$6=Math_fround($11-$9);HEAPF32[$0+4>>2]=$6;$8=Math_fround($10-$7);HEAPF32[$0>>2]=$8;$12=Math_fround(Math_sqrt(Math_fround(Math_fround($8*$8)+Math_fround($6*$6))));if($12>2]=$6;$8=Math_fround($8*$12);HEAPF32[$0>>2]=$8}HEAPF32[$0+12>>2]=Math_fround(Math_fround($9+Math_fround($6*$3))+Math_fround($11-Math_fround($6*$5)))*Math_fround(.5);HEAPF32[$0+8>>2]=Math_fround(Math_fround($7+Math_fround($8*$3))+Math_fround($10-Math_fround($8*$5)))*Math_fround(.5);return;case 0:$6=HEAPF32[$1+48>>2];$7=HEAPF32[$2+8>>2];$10=HEAPF32[$2+12>>2];$9=HEAPF32[$1+52>>2];$8=Math_fround(Math_fround($6*$7)+Math_fround($10*$9));HEAPF32[$0+4>>2]=$8;$6=Math_fround(Math_fround($10*$6)-Math_fround($7*$9));HEAPF32[$0>>2]=$6;if(HEAP32[$1+68>>2]<1){break label$1}$7=HEAPF32[$1+56>>2];$10=HEAPF32[$2+8>>2];$9=HEAPF32[$2+12>>2];$11=HEAPF32[$1+60>>2];$12=Math_fround(Math_fround(Math_fround($7*$10)+Math_fround($9*$11))+HEAPF32[$2+4>>2]);$10=Math_fround(HEAPF32[$2>>2]+Math_fround(Math_fround($9*$7)-Math_fround($10*$11)));$9=Math_fround($8*$5);$11=Math_fround($6*$5);$2=0;while(1){$13=($2<<3)+$0|0;$18=Math_imul($2,24)+$1|0;$7=HEAPF32[$18>>2];$14=HEAPF32[$4+8>>2];$15=HEAPF32[$4+12>>2];$16=HEAPF32[$18+4>>2];$5=Math_fround(Math_fround(Math_fround($7*$14)+Math_fround($15*$16))+HEAPF32[$4+4>>2]);$19=Math_fround($5-$9);$17=$5;$7=Math_fround(HEAPF32[$4>>2]+Math_fround(Math_fround($15*$7)-Math_fround($14*$16)));$5=Math_fround($3-Math_fround(Math_fround($6*Math_fround($7-$10))+Math_fround(Math_fround($5-$12)*$8)));HEAPF32[$13+12>>2]=Math_fround($19+Math_fround($17+Math_fround($8*$5)))*Math_fround(.5);HEAPF32[$13+8>>2]=Math_fround(Math_fround($7-$11)+Math_fround($7+Math_fround($6*$5)))*Math_fround(.5);$2=$2+1|0;if(($2|0)>2]){continue}break}break label$1;case 1:break label$2}}$6=HEAPF32[$1+48>>2];$7=HEAPF32[$4+8>>2];$10=HEAPF32[$4+12>>2];$9=HEAPF32[$1+52>>2];$8=Math_fround(Math_fround($6*$7)+Math_fround($10*$9));HEAPF32[$0+4>>2]=$8;$6=Math_fround(Math_fround($10*$6)-Math_fround($7*$9));HEAPF32[$0>>2]=$6;if(HEAP32[$1+68>>2]>=1){$7=HEAPF32[$1+56>>2];$10=HEAPF32[$4+8>>2];$9=HEAPF32[$4+12>>2];$11=HEAPF32[$1+60>>2];$12=Math_fround(Math_fround(Math_fround($7*$10)+Math_fround($9*$11))+HEAPF32[$4+4>>2]);$10=Math_fround(HEAPF32[$4>>2]+Math_fround(Math_fround($9*$7)-Math_fround($10*$11)));$9=Math_fround($8*$3);$11=Math_fround($6*$3);$4=0;while(1){$13=($4<<3)+$0|0;$18=Math_imul($4,24)+$1|0;$7=HEAPF32[$18>>2];$14=HEAPF32[$2+8>>2];$15=HEAPF32[$2+12>>2];$16=HEAPF32[$18+4>>2];$3=Math_fround(Math_fround(Math_fround($7*$14)+Math_fround($15*$16))+HEAPF32[$2+4>>2]);$19=Math_fround($3-$9);$17=$3;$7=Math_fround(HEAPF32[$2>>2]+Math_fround(Math_fround($15*$7)-Math_fround($14*$16)));$3=Math_fround($5-Math_fround(Math_fround($6*Math_fround($7-$10))+Math_fround(Math_fround($3-$12)*$8)));HEAPF32[$13+12>>2]=Math_fround($19+Math_fround($17+Math_fround($8*$3)))*Math_fround(.5);HEAPF32[$13+8>>2]=Math_fround(Math_fround($7-$11)+Math_fround($7+Math_fround($6*$3)))*Math_fround(.5);$4=$4+1|0;if(($4|0)>2]){continue}break}}HEAPF32[$0+4>>2]=-$8;HEAPF32[$0>>2]=-$6}}function dmHttpCache__Begin_28dmHttpCache__Cache__2c_20char_20const__2c_20char_20const__2c_20unsigned_20int_2c_20dmHttpCache__CacheCreator___29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$6=global$0-224|0;global$0=$6;$15=HEAP32[$0+48>>2];dmMutex__Lock_28dmMutex__Mutex__29($15);HEAP32[$4>>2]=0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{if(!(HEAPU8[$2|0]|$3)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,147820,148144,0);break label$6}$9=dmHashString64($1);$8=i64toi32_i32$HIGH_BITS;dmHashInit64($6+192|0,0);dmHashUpdateBuffer64($6+192|0,$1,strlen($1));dmHashUpdateBuffer64($6+192|0,$2,strlen($2));$11=$0+16|0;$12=dmHashFinal64($6+192|0);$13=i64toi32_i32$HIGH_BITS;label$8:{label$9:{$7=HEAP32[$0+20>>2];label$10:{if(!$7){break label$10}$5=HEAP32[HEAP32[$11>>2]+(__wasm_i64_urem($9,$8,$7)<<2)>>2];if(($5|0)==-1){break label$10}$10=HEAP32[$0+24>>2];while(1){$14=$10+Math_imul($5,136)|0;if(($9|0)==HEAP32[$14>>2]&($8|0)==HEAP32[$14+4>>2]){break label$9}$5=HEAP32[$14+128>>2];if(($5|0)!=-1){continue}break}}memset($6+72|0,0,120);$5=HEAP32[$0+40>>2];if(($5|0)==((HEAP32[$0+32>>2]-HEAP32[$0+24>>2]|0)/136|0)){$5=$5+128|0;$7=$5<<1;dmHashTable_unsigned_20long_20long_2c_20dmHttpCache__Entry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($11,$7>>>0<3?1:($7>>>0)/3|0,$5)}dmHashTable_unsigned_20long_20long_2c_20dmHttpCache__Entry___Put_28unsigned_20long_20long_2c_20dmHttpCache__Entry_20const__29($11,$9,$8,$6+72|0);$7=HEAP32[$0+20>>2];break label$8}$5=$10+Math_imul($5,136)|0;if(!(!HEAPU8[$2|0]|(($12|0)!=HEAP32[$5+80>>2]|($13|0)!=HEAP32[$5+84>>2]))){HEAP32[$6+68>>2]=$2;HEAP32[$6+64>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,147820,148202,$6- -64|0);break label$6}$5=HEAPU16[$5+120>>1];if($5&255){HEAP32[$6+52>>2]=$2;HEAP32[$6+48>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,147820,148271,$6+48|0);break label$6}if(!($5&256)){break label$8}HEAP32[$6+36>>2]=$2;HEAP32[$6+32>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,147820,148339,$6+32|0);break label$6}$10=0;label$15:{if(!$7){break label$15}$5=HEAP32[HEAP32[$11>>2]+(__wasm_i64_urem($9,$8,$7)<<2)>>2];if(($5|0)==-1){break label$15}$11=HEAP32[$0+24>>2];while(1){$5=Math_imul($5,136);$10=$5+$11|0;$7=$10;if(($9|0)==HEAP32[$7>>2]&($8|0)==HEAP32[$7+4>>2]){break label$15}$5=HEAP32[($5+$11|0)+128>>2];if(($5|0)!=-1){continue}break}$10=0}$5=$10?$10+8|0:0;dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($5,$2,64);$2=dmPoolAllocator__Duplicate_28dmPoolAllocator__Pool__2c_20char_20const__29(HEAP32[$0+84>>2],$1);HEAP32[$5+72>>2]=$12;HEAP32[$5+76>>2]=$13;HEAP32[$5+64>>2]=$2;HEAP32[$5+80>>2]=dmTime__GetTime_28_29();HEAP32[$5+84>>2]=i64toi32_i32$HIGH_BITS;$9=$5;$7=$5;if($3){$8=dmTime__GetTime_28_29();$2=i64toi32_i32$HIGH_BITS;$3=Math_imul($3,1e6);$8=$3+$8|0;if($8>>>0<$3>>>0){$2=$2+1|0}}else{$2=0;$8=0}HEAP32[$7+88>>2]=$8;HEAP32[$9+92>>2]=$2;HEAP16[$5+112>>1]=HEAPU16[$5+112>>1]|256;$3=HEAPU16[$0+56>>1];$2=HEAPU16[$0+58>>1];if(($3|0)==($2|0)){break label$6}$5=HEAP32[$0+52>>2];if(!$5){break label$5}if($2>>>0>=$3>>>0){break label$4}HEAP16[$0+58>>1]=$2+1;$2=HEAPU16[$5+($2<<1)>>1];$5=HEAP32[$0>>2];$9=strlen($5)+10|0;$3=dlmalloc($9);HEAP32[$6+20>>2]=$2;HEAP32[$6+16>>2]=$5;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($3,$9,148411,$6+16|0);$5=fopen($3,148077);if(!$5){HEAP32[$6>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,147820,148423,$6);dlfree($3);$3=HEAP32[$0+52>>2];if(!$3){break label$3}$1=HEAPU16[$0+58>>1];if(!$1|$1>>>0>HEAPU16[$0+56>>1]){break label$2}$4=$0;$0=$1+ -1|0;HEAP16[$4+58>>1]=$0;HEAP16[$3+(($0&65535)<<1)>>1]=$2;break label$6}$7=HEAP32[$0+68>>2];$0=HEAP32[$0+64>>2];if($7-$0>>6>>>0<=$2>>>0){break label$1}$0=$0+($2<<6)|0;HEAP16[$0+56>>1]=$2;dmHashInit64($0+8|0,0);HEAP32[$0+40>>2]=$12;HEAP32[$0+44>>2]=$13;HEAP32[$0>>2]=$3;HEAP32[$0+4>>2]=$5;HEAP32[$0+48>>2]=dmHashString64($1);HEAP32[$0+52>>2]=i64toi32_i32$HIGH_BITS;HEAP8[$0+58|0]=HEAPU8[$0+58|0]&254;HEAP32[$4>>2]=$0}dmMutex__Unlock_28dmMutex__Mutex__29($15);global$0=$6+224|0;return}__assert_fail(149415,149152,148,149422);abort()}__assert_fail(149426,149152,149,149422);abort()}__assert_fail(149415,149152,137,149446);abort()}__assert_fail(149451,149152,138,149446);abort()}__assert_fail(149305,149252,430,149316);abort()}function dmGui__UpdateAnimations_28dmGui__Scene__2c_20float_29($0,$1){var $2=0,$3=0,$4=Math_fround(0),$5=0,$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$10=global$0-32|0;global$0=$10;label$1:{$2=HEAP32[$0+48>>2];label$2:{if(($2|0)==HEAP32[$0+52>>2]){break label$2}label$3:{while(1){label$5:{$3=Math_imul($12,72)+$2|0;$4=HEAPF32[$3+20>>2];$7=HEAPF32[$3+24>>2];label$6:{if($4>$7){break label$6}$5=HEAPU8[$3+68|0];if($5&4){break label$6}$6=HEAP32[$3+52>>2];$9=$6+ -3|0;$11=$7==Math_fround(0);if($9>>>0>2?!($11|$4!=$7):0){break label$6}$13=HEAP32[$0+32>>2];$15=(HEAP32[$0+36>>2]-$13|0)/576|0;$2=HEAP32[$3>>2];while(1){$2=$2&65535;if($15>>>0<=$2>>>0){break label$5}$2=$13+Math_imul($2,576)|0;if(!(HEAPU8[$2+414|0]&16)){break label$6}$2=HEAPU16[$2+560>>1];if(($2|0)!=65535){continue}break}$14=$14+1|0;$8=HEAPF32[$3+16>>2];if(!!($8<$1)){if($5&1){HEAP32[$3+8>>2]=HEAP32[HEAP32[$3+4>>2]>>2];$5=$5&254;HEAP8[$3+68|0]=$5;$4=Math_fround(-$8);HEAPF32[$3+20>>2]=$4;HEAP32[$3+16>>2]=0}$8=$4;$4=Math_fround(HEAPF32[$3+28>>2]*$1);$8=Math_fround($8+$4);$4=Math_fround(Math_fround($8+Math_fround($4*Math_fround(.5)))-$7)>=Math_fround(0)?$7:$8;HEAPF32[$3+20>>2]=$4;$7=$11?Math_fround(1):Math_fround($7-$4)>=Math_fround(0)?Math_fround($4/$7):Math_fround(1);label$13:{label$14:{label$15:{$2=$6+ -1|0;if($2>>>0>3){break label$15}switch($2-1|0){case 0:case 1:break label$15;default:break label$14}}$4=$7;if(!($5&8)){break label$13}}$4=Math_fround(Math_fround(1)-$7)}$2=$6+ -2|0;label$16:{if($2>>>0>3){break label$16}label$17:{switch($2-1|0){case 0:case 1:break label$16;default:break label$17}}$4=Math_fround($4+$4);if(!($4>Math_fround(1))){break label$16}$4=Math_fround(Math_fround(2)-$4)}HEAP32[$10+24>>2]=HEAP32[$3+48>>2];$2=HEAP32[$3+44>>2];HEAP32[$10+16>>2]=HEAP32[$3+40>>2];HEAP32[$10+20>>2]=$2;$2=HEAP32[$3+36>>2];HEAP32[$10+8>>2]=HEAP32[$3+32>>2];HEAP32[$10+12>>2]=$2;$4=dmEasing__GetValue_28dmEasing__Curve_2c_20float_29($10+8|0,$4);$8=HEAPF32[$3+8>>2];HEAPF32[HEAP32[$3+4>>2]>>2]=$8+Math_fround($4*Math_fround(HEAPF32[$3+12>>2]-$8));$2=HEAP32[$0+32>>2];$5=HEAPU16[$3>>1];if((HEAP32[$0+36>>2]-$2|0)/576>>>0<=$5>>>0){break label$1}$2=$2+Math_imul($5,576)|0;HEAP32[$2+412>>2]=HEAP32[$2+412>>2]|2097152;if(!($7>=Math_fround(1))){break label$6}if($9>>>0<=2){HEAPF32[$3+20>>2]=HEAPF32[$3+20>>2]-HEAPF32[$3+24>>2];if(($6|0)!=5){break label$6}HEAP8[$3+68|0]=HEAPU8[$3+68|0]^8;break label$6}$2=HEAPU8[$3+68|0];if($2&2){break label$6}HEAP8[$3+68|0]=$2|2;$2=HEAP32[$3+56>>2];if($2){FUNCTION_TABLE[$2]($0,HEAP32[$3>>2],1,HEAP32[$3+60>>2],HEAP32[$3+64>>2])}$2=HEAP32[$3+40>>2];if(!$2){break label$6}FUNCTION_TABLE[$2]($3+32|0);break label$6}HEAPF32[$3+16>>2]=$8-$1}$12=$12+1|0;$6=HEAP32[$0+52>>2];$2=HEAP32[$0+48>>2];$3=$6-$2|0;$9=($3|0)/72|0;if($12>>>0<$9>>>0){continue}break label$3}break}break label$1}if(!$3){$9=0;break label$2}$3=0;label$21:{while(1){if(($6-$2|0)/72>>>0>$3>>>0){$13=Math_imul($3,72);$5=$13+$2|0;$12=HEAPU8[$5+68|0];$11=$12&4;label$24:{label$25:{label$26:{if(!(HEAPF32[$5+20>>2]>=HEAPF32[$5+24>>2])){if($11){break label$26}break label$24}if(!$11){break label$25}}if($12&2){break label$25}$11=HEAP32[$5+56>>2];if(!$11){break label$25}HEAP8[$5+68|0]=$12|2;FUNCTION_TABLE[$11]($0,HEAP32[$5>>2],0,HEAP32[$5+60>>2],HEAP32[$5+64>>2]);$2=HEAP32[$0+48>>2];$6=HEAP32[$0+52>>2]}if(($6-$2|0)/72>>>0<=$3>>>0){break label$1}$2=$2+$13|0;memmove($2,$2+72|0,($6-$2|0)+ -72|0);$2=HEAP32[$0+48>>2];$5=((HEAP32[$0+52>>2]-$2|0)/72|0)+ -1|0;if((HEAP32[$0+56>>2]-$2|0)/72>>>0<$5>>>0){break label$21}$6=Math_imul($5,72)+$2|0;HEAP32[$0+52>>2]=$6;$9=$9+ -1|0;$3=$3+ -1|0}$3=$3+1|0;if($3>>>0<$9>>>0){continue}break label$2}break}break label$1}__assert_fail(202434,201431,457,202453);abort()}label$28:{if(HEAP8[1134468]&1){break label$28}if(!__cxa_guard_acquire(1134468)){break label$28}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(199609)}else{$0=-1}HEAP32[283616]=$0;__cxa_guard_release(1134468)}$0=HEAP32[283616];if(($0|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,$9)}label$31:{if(HEAP8[1134476]&1){break label$31}if(!__cxa_guard_acquire(1134476)){break label$31}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(199624)}else{$0=-1}HEAP32[283618]=$0;__cxa_guard_release(1134476)}$0=HEAP32[283618];if(($0|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,$14)}global$0=$10+32|0;return}__assert_fail(201597,201431,430,201608);abort()}function mbedtls_aes_setkey_enc($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$3=$0;$4=10;label$1:{label$2:{if(($2|0)==128){break label$2}if(($2|0)!=256){$5=-32;if(($2|0)!=192){break label$1}$4=12;break label$2}$4=14}HEAP32[$3>>2]=$4;if(!HEAPU8[1121360]){aes_gen_tables();HEAP8[1121360]=1}$3=$0+8|0;HEAP32[$0+4>>2]=$3;$5=$2>>>5|0;if($5){$2=0;while(1){$4=$2<<2;HEAP32[($4+$0|0)+8>>2]=HEAPU8[$1+$4|0]|HEAPU8[($4|1)+$1|0]<<8|HEAPU8[($4|2)+$1|0]<<16|HEAPU8[($4|3)+$1|0]<<24;$2=$2+1|0;if(($5|0)!=($2|0)){continue}break}}$5=0;$1=HEAP32[$0>>2]+ -10|0;if($1>>>0>4){break label$1}label$7:{switch($1-1|0){default:$1=HEAP32[$3>>2];$2=0;while(1){$0=HEAP32[$3+12>>2];$1=HEAPU8[($0>>>8&255)+1121424|0]^(HEAP32[($2<<2)+1121376>>2]^$1)^HEAPU8[($0>>>16&255)+1121424|0]<<8^HEAPU8[($0>>>24|0)+1121424|0]<<16^HEAPU8[($0&255)+1121424|0]<<24;HEAP32[$3+16>>2]=$1;$4=HEAP32[$3+4>>2]^$1;HEAP32[$3+20>>2]=$4;$4=$4^HEAP32[$3+8>>2];HEAP32[$3+24>>2]=$4;HEAP32[$3+28>>2]=$0^$4;$3=$3+16|0;$2=$2+1|0;if(($2|0)!=10){continue}break}break label$1;case 1:$1=HEAP32[$0+28>>2];$2=HEAPU8[($1>>>8&255)+1121424|0]^(HEAP32[280344]^HEAP32[$0+8>>2])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+32>>2]=$2;$3=$2^HEAP32[$0+12>>2];HEAP32[$0+36>>2]=$3;$4=$3^HEAP32[$0+16>>2];HEAP32[$0+40>>2]=$4;$5=$4^HEAP32[$0+20>>2];HEAP32[$0+44>>2]=$5;$6=$5^HEAP32[$0+24>>2];HEAP32[$0+48>>2]=$6;$1=$1^$6;HEAP32[$0+52>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280345])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+56>>2]=$2;$3=$2^$3;HEAP32[$0+60>>2]=$3;$4=$3^$4;HEAP32[$0- -64>>2]=$4;$5=$4^$5;HEAP32[$0+68>>2]=$5;$6=$5^$6;HEAP32[$0+72>>2]=$6;$1=$1^$6;HEAP32[$0+76>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280346])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+80>>2]=$2;$3=$2^$3;HEAP32[$0+84>>2]=$3;$4=$3^$4;HEAP32[$0+88>>2]=$4;$5=$4^$5;HEAP32[$0+92>>2]=$5;$6=$5^$6;HEAP32[$0+96>>2]=$6;$1=$1^$6;HEAP32[$0+100>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280347])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+104>>2]=$2;$3=$2^$3;HEAP32[$0+108>>2]=$3;$4=$3^$4;HEAP32[$0+112>>2]=$4;$5=$4^$5;HEAP32[$0+116>>2]=$5;$6=$5^$6;HEAP32[$0+120>>2]=$6;$1=$1^$6;HEAP32[$0+124>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280348])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+128>>2]=$2;$3=$2^$3;HEAP32[$0+132>>2]=$3;$4=$3^$4;HEAP32[$0+136>>2]=$4;$5=$4^$5;HEAP32[$0+140>>2]=$5;$6=$5^$6;HEAP32[$0+144>>2]=$6;$1=$1^$6;HEAP32[$0+148>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280349])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+152>>2]=$2;$3=$2^$3;HEAP32[$0+156>>2]=$3;$4=$3^$4;HEAP32[$0+160>>2]=$4;$5=$4^$5;HEAP32[$0+164>>2]=$5;$6=$5^$6;HEAP32[$0+168>>2]=$6;$1=$1^$6;HEAP32[$0+172>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280350])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+176>>2]=$2;$3=$2^$3;HEAP32[$0+180>>2]=$3;$4=$3^$4;HEAP32[$0+184>>2]=$4;$5=$4^$5;HEAP32[$0+188>>2]=$5;$6=$5^$6;HEAP32[$0+192>>2]=$6;$1=$1^$6;HEAP32[$0+196>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280351])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+200>>2]=$2;$2=$2^$3;HEAP32[$0+204>>2]=$2;$2=$2^$4;HEAP32[$0+208>>2]=$2;$2=$2^$5;HEAP32[$0+212>>2]=$2;$2=$2^$6;HEAP32[$0+216>>2]=$2;HEAP32[$0+220>>2]=$1^$2;return 0;case 0:case 2:break label$1;case 3:break label$7}}$0=HEAP32[$3>>2];$4=0;while(1){$1=HEAP32[$3+28>>2];$0=HEAPU8[($1>>>8&255)+1121424|0]^(HEAP32[($4<<2)+1121376>>2]^$0)^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$3+32>>2]=$0;$2=HEAP32[$3+4>>2]^$0;HEAP32[$3+36>>2]=$2;$2=$2^HEAP32[$3+8>>2];HEAP32[$3+40>>2]=$2;$2=$2^HEAP32[$3+12>>2];HEAP32[$3+44>>2]=$2;$2=HEAP32[$3+16>>2]^HEAPU8[($2&255)+1121424|0]^HEAPU8[($2>>>8&255)+1121424|0]<<8^HEAPU8[($2>>>16&255)+1121424|0]<<16^HEAPU8[($2>>>24|0)+1121424|0]<<24;HEAP32[$3+48>>2]=$2;$2=$2^HEAP32[$3+20>>2];HEAP32[$3+52>>2]=$2;$2=$2^HEAP32[$3+24>>2];HEAP32[$3+56>>2]=$2;HEAP32[$3+60>>2]=$1^$2;$3=$3+32|0;$4=$4+1|0;if(($4|0)!=7){continue}break}}return $5}function dmGui__SetScript_28dmGui__Script__2c_20dmLuaDDF__LuaSource__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$4=global$0-112|0;global$0=$4;$2=HEAP32[HEAP32[$0+24>>2]>>2];$6=HEAP32[$2+8>>2]-HEAP32[$2+12>>2]>>4;label$1:{if(dmScript__LuaLoad_28lua_State__2c_20dmLuaDDF__LuaSource__29($2,$1)){$3=-1;HEAP32[$4+96>>2]=lua_tolstring($2,-1,0);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,201160,$4+96|0);lua_settop($2,-2);break label$1}lua_rawgeti($2,-1e4,HEAP32[$0+32>>2]);dmScript__SetInstance_28lua_State__29($2);$5=dmScript__PCall_28lua_State__2c_20int_2c_20int_29($2,0,-1);$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;dmScript__SetInstance_28lua_State__29($2);$3=-2;if($5){break label$1}$3=HEAP32[$0>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0>>2]=-2}lua_getfield($2,-10002,201619);label$4:{if((lua_type($2,-1)|0)==6){HEAP32[$0>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4);break label$4}if(lua_type($2,-1)){HEAP32[$4+84>>2]=HEAP32[$1+8>>2];HEAP32[$4+80>>2]=201619;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4+80|0)}lua_settop($2,-2)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201619);$3=HEAP32[$0+4>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0+4>>2]=-2}lua_getfield($2,-10002,201624);label$8:{if((lua_type($2,-1)|0)!=6){if(lua_type($2,-1)){HEAP32[$4+68>>2]=HEAP32[$1+8>>2];HEAP32[$4+64>>2]=201624;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4- -64|0)}lua_settop($2,-2);break label$8}HEAP32[$0+4>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201624);$3=HEAP32[$0+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0+8>>2]=-2}lua_getfield($2,-10002,201630);label$12:{if((lua_type($2,-1)|0)!=6){if(lua_type($2,-1)){HEAP32[$4+52>>2]=HEAP32[$1+8>>2];HEAP32[$4+48>>2]=201630;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4+48|0)}lua_settop($2,-2);break label$12}HEAP32[$0+8>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201630);$3=HEAP32[$0+12>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0+12>>2]=-2}lua_getfield($2,-10002,201637);label$16:{if((lua_type($2,-1)|0)!=6){if(lua_type($2,-1)){HEAP32[$4+36>>2]=HEAP32[$1+8>>2];HEAP32[$4+32>>2]=201637;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4+32|0)}lua_settop($2,-2);break label$16}HEAP32[$0+12>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201637);$3=HEAP32[$0+16>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0+16>>2]=-2}lua_getfield($2,-10002,201648);label$20:{if((lua_type($2,-1)|0)!=6){if(lua_type($2,-1)){HEAP32[$4+20>>2]=HEAP32[$1+8>>2];HEAP32[$4+16>>2]=201648;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4+16|0)}lua_settop($2,-2);break label$20}HEAP32[$0+16>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201648);$3=HEAP32[$0+20>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0+20>>2]=-2}lua_getfield($2,-10002,201657);label$24:{if((lua_type($2,-1)|0)!=6){if(lua_type($2,-1)){HEAP32[$4+4>>2]=HEAP32[$1+8>>2];HEAP32[$4>>2]=201657;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4)}lua_settop($2,-2);break label$24}HEAP32[$0+20>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201657);$3=0;if(HEAPU8[1130703]){$1=HEAP32[$1+8>>2];$5=strlen($1);$1=dmProfile__Internalize_28char_20const__2c_20unsigned_20int_2c_20unsigned_20int_29($1,$5,dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29($1,$5))}else{$1=0}HEAP32[$0+28>>2]=$1}if(HEAP32[$2+8>>2]-HEAP32[$2+12>>2]>>4==($6|0)){global$0=$4+112|0;return $3}__assert_fail(199281,199220,4447,201215);abort()}function dmGameSystem__CompModelGetProperty_28dmGameObject__ComponentGetPropertyParams_20const__2c_20dmGameObject__PropertyDesc__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=Math_fround(0),$8=0;$2=global$0-48|0;global$0=$2;label$1:{$3=HEAP32[$0+4>>2];$4=HEAP32[$3+16>>2];label$2:{label$3:{label$4:{label$5:{$5=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$3+20>>2]-$4>>3>>>0>$5>>>0){$8=HEAP32[$3+4>>2];$3=HEAP32[$3>>2];$4=HEAP32[$4+($5<<3)>>2];if($8-$3>>2>>>0<=$4>>>0){break label$1}$5=HEAP32[$3+($4<<2)>>2];$3=HEAP32[$0+16>>2];$4=HEAP32[$0+20>>2];if(($3|0)==HEAP32[146366]&($4|0)==HEAP32[146367]){$0=HEAP32[$5+132>>2];$3=HEAP32[$0+204>>2];HEAP32[$2+16>>2]=HEAP32[$0+200>>2];HEAP32[$2+20>>2]=$3;HEAP32[$2+8>>2]=1;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$2}if(($3|0)==HEAP32[146368]&($4|0)==HEAP32[146369]){$0=HEAP32[$5+132>>2];$0=((HEAP8[$0+224|0]&1)<<5)+$0|0;$3=HEAP32[$0+12>>2];HEAP32[$2+16>>2]=HEAP32[$0+8>>2];HEAP32[$2+20>>2]=$3;HEAP32[$2+8>>2]=1;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$2}if(($3|0)==HEAP32[146370]&($4|0)==HEAP32[146371]){$0=$2+8|0;$7=dmRig__GetCursor_28dmRig__RigInstance__2c_20bool_29(HEAP32[$5+132>>2]);HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$7;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$2}if(($3|0)==HEAP32[146372]&($4|0)==HEAP32[146373]){$0=$2+8|0;$7=dmRig__GetPlaybackRate_28dmRig__RigInstance__29(HEAP32[$5+132>>2]);HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$7;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$2}label$11:{if(($3|0)!=HEAP32[146344]|($4|0)!=HEAP32[146345]){if(HEAP32[146348]!=($3|0)|HEAP32[146349]!=($4|0)){break label$11}break label$3}$3=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$0=HEAP32[$5+992>>2];if(!$0){$0=HEAP32[HEAP32[$5+128>>2]+8>>2]}$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($3,$0,$1);break label$2}$6=1;if(HEAP32[146350]==($3|0)&HEAP32[146351]==($4|0)){break label$3}$6=2;if(HEAP32[146352]==($3|0)&HEAP32[146353]==($4|0)){break label$3}$6=3;if(HEAP32[146354]==($3|0)&HEAP32[146355]==($4|0)){break label$3}$6=4;if(HEAP32[146356]==($3|0)&HEAP32[146357]==($4|0)){break label$3}$6=5;if(HEAP32[146358]==($3|0)&HEAP32[146359]==($4|0)){break label$3}$6=6;if(HEAP32[146360]==($3|0)&HEAP32[146361]==($4|0)){break label$3}$6=7;if(HEAP32[146362]==($3|0)&HEAP32[146363]==($4|0)){break label$3}$0=HEAP32[$5+992>>2];if(!$0){break label$5}break label$4}break label$1}$0=HEAP32[HEAP32[$5+128>>2]+8>>2]}$0=dmGameSystem__GetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__2c_20bool_2c_20bool_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmRender__Constant___29_2c_20void__29($0,$3,$4,$1,1,474,$5);break label$2}$3=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$4=$6<<2;$0=HEAP32[($4+$5|0)+960>>2];if(!$0){$0=HEAP32[($4+HEAP32[$5+128>>2]|0)+20>>2]}$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($3,$0,$1)}global$0=$2+48|0;return $0|0}__assert_fail(46554,46388,430,46565);abort()}function dmGui__PlayNodeFlipbookAnim_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$2,$3,$4,$5,$6,$7,$8){var $9=0,$10=0,$11=0,$12=0,$13=0,$14=Math_fround(0),$15=0,$16=0,$17=0,$18=Math_fround(0);$12=global$0-32|0;global$0=$12;label$1:{label$2:{label$4:{label$5:{$11=HEAP32[$0+32>>2];$10=$1&65535;if((HEAP32[$0+36>>2]-$11|0)/576>>>0>$10>>>0){$15=$1>>>16|0;if(($15|0)!=HEAPU16[(Math_imul($10,576)+$11|0)+552>>1]){break label$5}$9=Math_imul($10,576)+$11|0;if(HEAPU16[$9+554>>1]!=($1&65535)){break label$4}HEAP32[$9+464>>2]=0;HEAP32[$9+468>>2]=0;HEAP32[$9+472>>2]=0;label$7:{if(!($2|$3)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,200963,0);$0=-7;break label$7}$17=Math_imul($10,576)+$11|0;if(HEAP32[$17+436>>2]!=2){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,201015,0);$0=-7;break label$7}$16=$9+472|0;HEAP32[$9+464>>2]=$2;HEAP32[$9+468>>2]=$3;label$10:{$9=HEAP32[$0+388>>2];label$11:{if(!$9){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,202022,0);$9=-2;break label$11}$13=Math_imul($10,576)+$11|0;$9=FUNCTION_TABLE[$9](HEAP32[$13+432>>2],$2,$3,$13+440|0)|0;if(!$9){break label$10}}$6=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$6|0)/576>>>0<=$10>>>0){break label$2}if(HEAPU16[($6+Math_imul($10,576)|0)+552>>1]!=($15|0)){break label$1}$6=HEAP32[$0+48>>2];$7=HEAP32[$0+52>>2]-$6|0;$0=($7|0)/72|0;label$13:{if(!$7){break label$13}$7=$0>>>0>1?$0:1;$0=0;while(1){$8=$6+Math_imul($0,72)|0;if(!(HEAP32[$8+4>>2]==($16|0)?HEAP32[$8>>2]==($1|0):0)){$0=$0+1|0;if(($7|0)!=($0|0)){continue}break label$13}break}$0=$6+Math_imul($0,72)|0;HEAP8[$0+68|0]=HEAPU8[$0+68|0]|4}$0=Math_imul($10,576)+$11|0;HEAP32[$0+440>>2]=0;HEAP32[$0+444>>2]=0;HEAP32[$0+464>>2]=0;HEAP32[$0+468>>2]=0;HEAP32[$0+456>>2]=0;HEAP32[$0+460>>2]=0;HEAP32[$0+448>>2]=0;HEAP32[$0+452>>2]=0;$0=dmHashReverseSafe64($2,$3);if(($9|0)==-1){HEAP32[$12>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201079,$12);$0=-5;break label$7}HEAP32[$12+20>>2]=$9;HEAP32[$12+16>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201118,$12+16|0);$0=-5;break label$7}label$18:{if((HEAP32[$13+440>>2]&1006632960)==402653184){$2=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$2|0)/576>>>0<=$10>>>0){break label$2}if(HEAPU16[($2+Math_imul($10,576)|0)+552>>1]!=($15|0)){break label$1}$2=HEAP32[$0+48>>2];$0=HEAP32[$0+52>>2]-$2|0;if(!$0){break label$18}$0=($0|0)/72|0;$3=$0>>>0>1?$0:1;$0=0;while(1){$6=$2+Math_imul($0,72)|0;if(!(HEAP32[$6+4>>2]==($16|0)?HEAP32[$6>>2]==($1|0):0)){$0=$0+1|0;if(($3|0)!=($0|0)){continue}break label$18}break}$0=$2+Math_imul($0,72)|0;HEAP8[$0+68|0]=HEAPU8[$0+68|0]|4;break label$18}dmGui__AnimateTextureSetAnim_28dmGui__Scene__2c_20unsigned_20int_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$4,$5,$6,$7,$8)}$0=0;$1=HEAP32[(Math_imul($10,576)+$11|0)+412>>2];if(!($1&262144)|($1&224)==64|HEAP32[$17+436>>2]!=2){break label$7}$6=HEAP32[(Math_imul($10,576)+$11|0)+452>>2];if(!$6){break label$7}$0=HEAP32[$13+440>>2];$2=$0&8191;$3=($0>>>13&8191)-$2|0;$4=Math_fround(HEAPF32[$16>>2]*Math_fround($3|0));label$23:{if(Math_fround(Math_abs($4))($1|0)?$1:$3+ -1|0)|0;$1=($1|0)<0?0:$6+($1<<5)|0;$4=HEAPF32[$1+12>>2];label$25:{$5=HEAPF32[$1>>2];$14=HEAPF32[$1+8>>2];if($5==$14){break label$25}$18=HEAPF32[$1+20>>2];if($4==$18){break label$25}$2=Math_imul($10,576)+$11|0;HEAPF32[$2+64>>2]=Math_fround(HEAPF32[$1+4>>2]-$18)*Math_fround(HEAPU16[$2+446>>1]);HEAPF32[$2+68>>2]=Math_fround($14-$5)*Math_fround(HEAPU16[$2+444>>1]);break label$7}$14=HEAPF32[$1+4>>2];$2=Math_imul($10,576)+$11|0;HEAPF32[$2+64>>2]=Math_fround(HEAPF32[$1+16>>2]-$5)*Math_fround(HEAPU16[$2+444>>1]);HEAPF32[$2+68>>2]=Math_fround($4-$14)*Math_fround(HEAPU16[$2+446>>1])}global$0=$12+32|0;return $0}break label$2}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,3862,201967);abort()}function dmGameSystem__UpdateIKPositionCallback_28dmRig__IKTarget__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0);$8=global$0-48|0;global$0=$8;$11=HEAP32[$1+36>>2];dmGameObject__GetWorldTransform_28dmGameObject__Instance__29($8,HEAP32[$11>>2]);$3=HEAPF32[$8+32>>2];$18=Math_fround($3*HEAPF32[$11+48>>2]);label$1:{label$2:{if($18==Math_fround(0)){break label$2}$4=HEAPF32[$8+36>>2];$20=Math_fround($4*HEAPF32[$11+52>>2]);if($20==Math_fround(0)){break label$2}$9=HEAPF32[$8+40>>2];$21=Math_fround($9*HEAPF32[$11+56>>2]);if($21!=Math_fround(0)){break label$1}}__assert_fail(51293,51406,374,51471);abort()}$2=HEAPF32[$8+8>>2];$12=HEAPF32[$11+16>>2];$5=HEAPF32[$8+12>>2];$13=HEAPF32[$11+20>>2];$6=HEAPF32[$8+4>>2];$14=HEAPF32[$11+28>>2];$7=HEAPF32[$8>>2];$22=HEAPF32[$11+24>>2];$10=Math_fround(Math_fround(Math_fround($2*$12)+Math_fround(Math_fround($5*$13)+Math_fround($6*$14)))-Math_fround($7*$22));$3=Math_fround(HEAPF32[$11+32>>2]*$3);$4=Math_fround(HEAPF32[$11+36>>2]*$4);$9=Math_fround(HEAPF32[$11+40>>2]*$9);$15=Math_fround(Math_fround(Math_fround($2*$3)+Math_fround($5*$4))-Math_fround($7*$9));$19=Math_fround(Math_fround($2*$9)+Math_fround(Math_fround($7*$3)+Math_fround($6*$4)));$16=Math_fround(Math_fround(Math_fround($7*$4)+Math_fround($5*$9))-Math_fround($6*$3));$17=Math_fround(Math_fround(Math_fround($5*$3)+Math_fround($6*$9))-Math_fround($2*$4));$9=Math_fround(HEAPF32[$8+24>>2]+Math_fround(Math_fround($7*$15)+Math_fround(Math_fround(Math_fround($2*$19)+Math_fround($5*$16))-Math_fround($6*$17))));$3=Math_fround(Math_fround(Math_fround(Math_fround($5*$14)-Math_fround($7*$12))-Math_fround($6*$13))-Math_fround($2*$22));$23=Math_fround(HEAPF32[$8+16>>2]+Math_fround(Math_fround($6*$16)+Math_fround(Math_fround(Math_fround($7*$19)+Math_fround($5*$17))-Math_fround($2*$15))));$4=Math_fround(Math_fround(Math_fround($7*$13)+Math_fround(Math_fround($5*$22)+Math_fround($2*$14)))-Math_fround($6*$12));$15=Math_fround(HEAPF32[$8+20>>2]+Math_fround(Math_fround($2*$17)+Math_fround(Math_fround(Math_fround($5*$15)+Math_fround($6*$19))-Math_fround($7*$16))));$19=Math_fround(Math_fround(Math_fround($10*$9)-Math_fround($3*$23))-Math_fround($4*$15));$24=Math_fround(Math_fround(1)/$20);$16=Math_fround($24*HEAPF32[$1+20>>2]);$25=Math_fround(Math_fround(1)/$18);$17=Math_fround($25*HEAPF32[$1+16>>2]);$21=Math_fround(Math_fround(1)/$21);$18=Math_fround($21*HEAPF32[$1+24>>2]);$20=Math_fround(Math_fround($4*$16)+Math_fround(Math_fround($3*$17)-Math_fround($10*$18)));$2=Math_fround(Math_fround(Math_fround($6*$22)+Math_fround(Math_fround($5*$12)+Math_fround($7*$14)))-Math_fround($2*$13));$5=Math_fround(Math_fround(Math_fround($2*$15)-Math_fround($3*$9))-Math_fround($10*$23));$6=Math_fround(Math_fround($4*$9)+Math_fround(Math_fround($10*$15)+Math_fround($2*$23)));$7=Math_fround(Math_fround(Math_fround($4*$23)-Math_fround($3*$15))-Math_fround($2*$9));$12=Math_fround(Math_fround($10*$17)+Math_fround(Math_fround($3*$18)-Math_fround($2*$16)));$13=Math_fround(Math_fround(Math_fround($16*Math_fround(-$10))-Math_fround($2*$17))-Math_fround($4*$18));$14=Math_fround(Math_fround(Math_fround($3*$16)-Math_fround($4*$17))+Math_fround($2*$18));HEAPF32[$0+8>>2]=Math_fround($21*Math_fround(Math_fround(Math_fround($10*$19)+Math_fround(Math_fround($3*$5)-Math_fround($4*$6)))-Math_fround($2*$7)))+Math_fround(Math_fround(Math_fround($10*$20)+Math_fround(Math_fround($3*$12)-Math_fround($4*$13)))-Math_fround($2*$14));HEAPF32[$0+4>>2]=Math_fround($24*Math_fround(Math_fround(Math_fround($2*$5)+Math_fround(Math_fround($3*$7)-Math_fround($10*$6)))-Math_fround($4*$19)))+Math_fround(Math_fround(Math_fround(Math_fround($3*$14)-Math_fround($10*$13))+Math_fround($2*$12))-Math_fround($4*$20));HEAPF32[$0>>2]=Math_fround($25*Math_fround(Math_fround(Math_fround($4*$7)+Math_fround(Math_fround($3*$19)-Math_fround($2*$6)))-Math_fround($10*$5)))+Math_fround(Math_fround(Math_fround($4*$14)+Math_fround(Math_fround($3*$20)-Math_fround($2*$13)))-Math_fround($10*$12));global$0=$8+48|0}function mpi_mul_hlp($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0;if($0>>>0>=16){$7=$3;while(1){$5=__wasm_i64_mul(HEAP32[$1>>2],0,$7,0)+$4|0;$6=$5+HEAP32[$2>>2]|0;HEAP32[$2>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($5>>>0<$4>>>0)|0)+($6>>>0<$5>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+4>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+4>>2]|0;HEAP32[$2+4>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+8>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+8>>2]|0;HEAP32[$2+8>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+12>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+12>>2]|0;HEAP32[$2+12>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+16>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+16>>2]|0;HEAP32[$2+16>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+20>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+20>>2]|0;HEAP32[$2+20>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+24>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+24>>2]|0;HEAP32[$2+24>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+28>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+28>>2]|0;HEAP32[$2+28>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+32>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+32>>2]|0;HEAP32[$2+32>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+36>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+36>>2]|0;HEAP32[$2+36>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+40>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+40>>2]|0;HEAP32[$2+40>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+44>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+44>>2]|0;HEAP32[$2+44>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+48>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+48>>2]|0;HEAP32[$2+48>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+52>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+52>>2]|0;HEAP32[$2+52>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+56>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+56>>2]|0;HEAP32[$2+56>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+60>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+60>>2]|0;HEAP32[$2+60>>2]=$6;$4=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$2=$2- -64|0;$1=$1- -64|0;$0=$0+ -16|0;if($0>>>0>15){continue}break}}if($0>>>0>=8){$7=$3;while(1){$5=__wasm_i64_mul(HEAP32[$1>>2],0,$7,0)+$4|0;$6=$5+HEAP32[$2>>2]|0;HEAP32[$2>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($5>>>0<$4>>>0)|0)+($6>>>0<$5>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+4>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+4>>2]|0;HEAP32[$2+4>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+8>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+8>>2]|0;HEAP32[$2+8>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+12>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+12>>2]|0;HEAP32[$2+12>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+16>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+16>>2]|0;HEAP32[$2+16>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+20>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+20>>2]|0;HEAP32[$2+20>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+24>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+24>>2]|0;HEAP32[$2+24>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+28>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+28>>2]|0;HEAP32[$2+28>>2]=$6;$4=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$2=$2+32|0;$1=$1+32|0;$0=$0+ -8|0;if($0>>>0>7){continue}break}}if($0){while(1){$7=__wasm_i64_mul(HEAP32[$1>>2],0,$3,0)+$4|0;$5=$7+HEAP32[$2>>2]|0;HEAP32[$2>>2]=$5;$4=(i64toi32_i32$HIGH_BITS+($7>>>0<$4>>>0)|0)+($5>>>0<$7>>>0)|0;$2=$2+4|0;$1=$1+4|0;$0=$0+ -1|0;if($0){continue}break}}$0=HEAP32[$2>>2];$1=$0+$4|0;HEAP32[$2>>2]=$1;if($1>>>0<$0>>>0){while(1){$0=HEAP32[$2+4>>2];$1=$0+1|0;HEAP32[$2+4>>2]=$1;$2=$2+4|0;if($1>>>0<$0>>>0){continue}break}}}function dmGui__DeleteNode_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$11=global$0-16|0;global$0=$11;label$1:{label$2:{label$3:{label$4:{label$5:{$9=HEAP32[$0+32>>2];$7=$1&65535;if((HEAP32[$0+36>>2]-$9|0)/576>>>0>$7>>>0){$10=$1>>>16|0;$15=Math_imul($7,576)+$9|0;if(($10|0)!=HEAPU16[$15+552>>1]){break label$3}$8=Math_imul($7,576)+$9|0;$12=HEAPU16[$8+554>>1];if(($12|0)!=($1&65535)){break label$2}$4=HEAP32[$8+412>>2];label$8:{if(($4&240)!=64){break label$8}$3=Math_imul($7,576)+$9|0;if(!HEAP32[$3+524>>2]){break label$8}HEAP32[$11+8>>2]=HEAP32[$0+176>>2];HEAP32[$11+12>>2]=HEAP32[$3+524>>2];dmRig__InstanceDestroy_28dmRig__InstanceDestroyParams_20const__29($11+8|0);HEAP32[$3+524>>2]=0;$4=HEAP32[$8+412>>2]}$6=HEAP32[$0+252>>2];$3=HEAP32[$0+248>>2];$13=$6-$3|0;$5=($13|0)/12|0;if(!$13|($4&240)!=80){break label$5}label$9:{label$10:{if($2){$13=Math_imul($7,576);$16=$13+$9|0;$4=0;while(1){if(($6-$3|0)/12>>>0<=$4>>>0){break label$4}$14=Math_imul($4,12);label$14:{if(HEAP32[($14+$3|0)+8>>2]!=($1|0)){$4=$4+1|0;break label$14}$3=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$3|0)/576>>>0<=$7>>>0){break label$4}$3=$3+$13|0;if(($10|0)!=HEAPU16[$3+552>>1]){break label$3}if(($12|0)!=HEAPU16[$3+554>>1]){break label$2}dmParticle__DestroyInstance_28dmParticle__Context__2c_20unsigned_20int_29(HEAP32[$0+212>>2],HEAP32[$3+540>>2]);HEAP32[$16+540>>2]=0;$6=HEAP32[$0+252>>2];$3=HEAP32[$0+248>>2];if(($6-$3|0)/12>>>0<=$4>>>0){break label$10}$3=$3+$14|0;$6=$6+ -12|0;$14=HEAP32[$6+4>>2];HEAP32[$3>>2]=HEAP32[$6>>2];HEAP32[$3+4>>2]=$14;HEAP32[$3+8>>2]=HEAP32[$6+8>>2];$6=HEAP32[$0+252>>2]+ -12|0;HEAP32[$0+252>>2]=$6;$3=HEAP32[$0+248>>2];if($6>>>0<$3>>>0){break label$9}$5=$5+ -1|0}if($4>>>0<$5>>>0){continue}break}break label$5}$6=$5>>>0>1?$5:1;$4=0;while(1){$3=Math_imul($4,12)+$3|0;if(HEAP32[$3+8>>2]==($1|0)){dmParticle__StopInstance_28dmParticle__Context__2c_20unsigned_20int_29(HEAP32[$0+212>>2],HEAP32[$3>>2]);HEAP32[$8+412>>2]=HEAP32[$8+412>>2]|268435456}$4=$4+1|0;if(($6|0)==($4|0)){break label$5}$3=HEAP32[$0+248>>2];if((HEAP32[$0+252>>2]-$3|0)/12>>>0>$4>>>0){continue}break}break label$4}__assert_fail(202392,201431,464,202407);abort()}__assert_fail(202417,201431,467,202407);abort()}break label$4}$3=HEAPU16[(Math_imul($7,576)+$9|0)+562>>1];if(($3|0)!=65535){while(1){$4=HEAP32[$0+32>>2];$3=$3&65535;if((HEAP32[$0+36>>2]-$4|0)/576>>>0<=$3>>>0){break label$4}$4=$4+Math_imul($3,576)|0;$3=HEAPU16[$4+558>>1];dmGui__DeleteNode_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_29($0,HEAPU16[$4+554>>1]|HEAPU16[$4+552>>1]<<16,$2);if(($3|0)!=65535){continue}break}}$10=HEAP32[$0+52>>2];$4=HEAP32[$0+48>>2];$3=$10-$4|0;if($3){$6=($3|0)/72|0;$3=0;while(1){if(($10-$4|0)/72>>>0<=$3>>>0){break label$4}$12=Math_imul($3,72);$5=$12+$4|0;if(HEAP32[$5>>2]==($1|0)){$4=HEAPU8[$5+68|0];label$27:{if($4&2){break label$27}HEAP8[$5+68|0]=$4|2;$4=HEAP32[$5+56>>2];if($4){FUNCTION_TABLE[$4]($0,$1,0,HEAP32[$5+60>>2],HEAP32[$5+64>>2])}$4=HEAP32[$5+40>>2];if(!$4){break label$27}FUNCTION_TABLE[$4]($5+32|0)}$5=HEAP32[$0+52>>2];$4=HEAP32[$0+48>>2];if(($5-$4|0)/72>>>0<=$3>>>0){break label$4}$4=$4+$12|0;memmove($4,$4+72|0,($5-$4|0)+ -72|0);$4=HEAP32[$0+48>>2];$5=((HEAP32[$0+52>>2]-$4|0)/72|0)+ -1|0;if((HEAP32[$0+56>>2]-$4|0)/72>>>0<$5>>>0){break label$1}$10=Math_imul($5,72)+$4|0;HEAP32[$0+52>>2]=$10;$6=$6+ -1|0;$3=$3+ -1|0}$3=$3+1|0;if($3>>>0<$6>>>0){continue}break}}label$18:{label$19:{label$20:{if(!(HEAPU8[$8+415|0]&16?!$2:0)){dmGui__RemoveFromNodeList_28dmGui__Scene__2c_20dmGui__InternalNode__29($0,$15);$3=HEAP32[$0+20>>2];if(!$3){break label$20}$2=HEAPU16[$0+26>>1];if(!$2|$2>>>0>HEAPU16[$0+24>>1]){break label$19}$1=HEAPU16[$8+554>>1];$2=$2+ -1|0;HEAP16[$0+26>>1]=$2;HEAP16[$3+(($2&65535)<<1)>>1]=$1;$2=HEAP32[$0+32>>2];if(($1+1|0)==((HEAP32[$0+36>>2]-$2|0)/576|0)){if((HEAP32[$0+40>>2]-$2|0)/576>>>0<$1>>>0){break label$18}HEAP32[$0+36>>2]=$2+Math_imul($1,576)}$0=HEAP32[(Math_imul($7,576)+$9|0)+420>>2];if($0){dlfree($0)}memset($15,0,576);HEAP16[$8+554>>1]=65535}global$0=$11+16|0;return}__assert_fail(201667,201674,137,201592);abort()}__assert_fail(201764,201674,138,201592);abort()}break label$1}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}__assert_fail(202434,201431,457,202453);abort()}function deflate_fast($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;label$1:{while(1){label$3:{label$4:{if(HEAPU32[$0+116>>2]<=261){fill_window($0);$2=HEAP32[$0+116>>2];if(!($2>>>0>=262|$1)){return 0}if(!$2){break label$1}if($2>>>0<3){break label$4}}$2=HEAP32[$0+108>>2];$3=HEAP32[$0+84>>2]&(HEAPU8[($2+HEAP32[$0+56>>2]|0)+2|0]^HEAP32[$0+72>>2]<>2]);HEAP32[$0+72>>2]=$3;$4=HEAP32[$0+68>>2]+($3<<1)|0;$3=HEAPU16[$4>>1];HEAP16[HEAP32[$0+64>>2]+(($2&HEAP32[$0+52>>2])<<1)>>1]=$3;HEAP16[$4>>1]=$2;if(!$3|$2-$3>>>0>HEAP32[$0+44>>2]+ -262>>>0){break label$4}$2=longest_match($0,$3);HEAP32[$0+96>>2]=$2;break label$3}$2=HEAP32[$0+96>>2]}label$7:{if($2>>>0>=3){$3=HEAP32[$0+5792>>2];$4=HEAP32[$0+108>>2]-HEAP32[$0+112>>2]|0;HEAP16[HEAP32[$0+5796>>2]+($3<<1)>>1]=$4;HEAP32[$0+5792>>2]=$3+1;$2=$2+ -3|0;HEAP8[$3+HEAP32[$0+5784>>2]|0]=$2;$2=(HEAPU8[($2&255)+196320|0]<<2|1024)+$0|0;HEAP16[$2+152>>1]=HEAPU16[$2+152>>1]+1;$2=$4+ -1&65535;$2=((HEAPU8[($2>>>0<256?$2:($2>>>7|0)+256|0)+195808|0]<<2)+$0|0)+2440|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+1;$2=HEAP32[$0+96>>2];$3=HEAP32[$0+116>>2]-$2|0;HEAP32[$0+116>>2]=$3;$7=HEAP32[$0+5792>>2]==(HEAP32[$0+5788>>2]+ -1|0);if(!($3>>>0<3|$2>>>0>HEAPU32[$0+128>>2])){$4=$2+ -1|0;HEAP32[$0+96>>2]=$4;$6=HEAP32[$0+72>>2];$2=HEAP32[$0+108>>2];$9=HEAP32[$0+52>>2];$10=HEAP32[$0+64>>2];$11=HEAP32[$0+68>>2];$12=HEAP32[$0+84>>2];$13=HEAP32[$0+56>>2];$5=HEAP32[$0+88>>2];while(1){$3=$2;$2=$2+1|0;HEAP32[$0+108>>2]=$2;$6=(HEAPU8[($3+$13|0)+3|0]^$6<<$5)&$12;HEAP32[$0+72>>2]=$6;$8=($6<<1)+$11|0;HEAP16[(($2&$9)<<1)+$10>>1]=HEAPU16[$8>>1];HEAP16[$8>>1]=$2;$4=$4+ -1|0;HEAP32[$0+96>>2]=$4;if($4){continue}break}$2=$3+2|0;HEAP32[$0+108>>2]=$2;break label$7}HEAP32[$0+96>>2]=0;$2=$2+HEAP32[$0+108>>2]|0;HEAP32[$0+108>>2]=$2;$3=HEAP32[$0+56>>2]+$2|0;$4=HEAPU8[$3|0];HEAP32[$0+72>>2]=$4;HEAP32[$0+72>>2]=HEAP32[$0+84>>2]&(HEAPU8[$3+1|0]^$4<>2]);break label$7}$2=HEAPU8[HEAP32[$0+56>>2]+HEAP32[$0+108>>2]|0];$3=HEAP32[$0+5792>>2];HEAP16[HEAP32[$0+5796>>2]+($3<<1)>>1]=0;HEAP32[$0+5792>>2]=$3+1;HEAP8[$3+HEAP32[$0+5784>>2]|0]=$2;$2=($2<<2)+$0|0;HEAP16[$2+148>>1]=HEAPU16[$2+148>>1]+1;HEAP32[$0+116>>2]=HEAP32[$0+116>>2]+ -1;$2=HEAP32[$0+108>>2]+1|0;HEAP32[$0+108>>2]=$2;$7=HEAP32[$0+5792>>2]==(HEAP32[$0+5788>>2]+ -1|0)}if(!$7){continue}$3=$0;$4=HEAP32[$0+92>>2];if(($4|0)>=0){$5=$4+HEAP32[$0+56>>2]|0}else{$5=0}_tr_flush_block($3,$5,$2-$4|0,0);HEAP32[$0+92>>2]=HEAP32[$0+108>>2];$2=HEAP32[$0>>2];$3=HEAP32[$2+28>>2];_tr_flush_bits($3);$4=HEAP32[$2+16>>2];$6=HEAP32[$3+20>>2];$4=$6>>>0>$4>>>0?$4:$6;label$13:{if(!$4){break label$13}memcpy(HEAP32[$2+12>>2],HEAP32[$3+16>>2],$4);HEAP32[$2+12>>2]=$4+HEAP32[$2+12>>2];HEAP32[$3+16>>2]=$4+HEAP32[$3+16>>2];HEAP32[$2+20>>2]=$4+HEAP32[$2+20>>2];HEAP32[$2+16>>2]=HEAP32[$2+16>>2]-$4;$2=HEAP32[$3+20>>2]-$4|0;HEAP32[$3+20>>2]=$2;if($2){break label$13}HEAP32[$3+16>>2]=HEAP32[$3+8>>2]}if(HEAP32[HEAP32[$0>>2]+16>>2]){continue}break}return 0}$2=HEAP32[$0+108>>2];HEAP32[$0+5812>>2]=$2>>>0<2?$2:2;if(($1|0)==4){$1=$0;$3=HEAP32[$0+92>>2];if(($3|0)>=0){$5=$3+HEAP32[$0+56>>2]|0}else{$5=0}_tr_flush_block($1,$5,$2-$3|0,1);HEAP32[$0+92>>2]=HEAP32[$0+108>>2];$1=HEAP32[$0>>2];$2=HEAP32[$1+28>>2];_tr_flush_bits($2);$3=HEAP32[$1+16>>2];$4=HEAP32[$2+20>>2];$3=$4>>>0>$3>>>0?$3:$4;label$17:{if(!$3){break label$17}memcpy(HEAP32[$1+12>>2],HEAP32[$2+16>>2],$3);HEAP32[$1+12>>2]=$3+HEAP32[$1+12>>2];HEAP32[$2+16>>2]=$3+HEAP32[$2+16>>2];HEAP32[$1+20>>2]=$3+HEAP32[$1+20>>2];HEAP32[$1+16>>2]=HEAP32[$1+16>>2]-$3;$1=HEAP32[$2+20>>2]-$3|0;HEAP32[$2+20>>2]=$1;if($1){break label$17}HEAP32[$2+16>>2]=HEAP32[$2+8>>2]}return(HEAP32[HEAP32[$0>>2]+16>>2]?3:2)|0}label$18:{if(!HEAP32[$0+5792>>2]){break label$18}$1=$0;$3=HEAP32[$0+92>>2];if(($3|0)>=0){$5=$3+HEAP32[$0+56>>2]|0}else{$5=0}_tr_flush_block($1,$5,$2-$3|0,0);HEAP32[$0+92>>2]=HEAP32[$0+108>>2];$1=HEAP32[$0>>2];$2=HEAP32[$1+28>>2];_tr_flush_bits($2);$3=HEAP32[$1+16>>2];$4=HEAP32[$2+20>>2];$3=$4>>>0>$3>>>0?$3:$4;label$21:{if(!$3){break label$21}memcpy(HEAP32[$1+12>>2],HEAP32[$2+16>>2],$3);HEAP32[$1+12>>2]=$3+HEAP32[$1+12>>2];HEAP32[$2+16>>2]=$3+HEAP32[$2+16>>2];HEAP32[$1+20>>2]=$3+HEAP32[$1+20>>2];HEAP32[$1+16>>2]=HEAP32[$1+16>>2]-$3;$1=HEAP32[$2+20>>2]-$3|0;HEAP32[$2+20>>2]=$1;if($1){break label$21}HEAP32[$2+16>>2]=HEAP32[$2+8>>2]}if(HEAP32[HEAP32[$0>>2]+16>>2]){break label$18}return 0}return 1}function dmHashBuffer64($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$3=global$0-16|0;global$0=$3;$4=dmHashBufferNoReverse64($0,$1);$5=i64toi32_i32$HIGH_BITS;label$1:{if(HEAP8[1130232]&1){break label$1}if(!__cxa_guard_acquire(1130232)){break label$1}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}if(!(!HEAPU8[1130132]|$1>>>0>1024)){label$3:{if(HEAP8[1130232]&1){break label$3}if(!__cxa_guard_acquire(1130232)){break label$3}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$7=HEAP32[282532];dmMutex__Lock_28dmMutex__Mutex__29($7);label$4:{if(HEAP8[1130232]&1){break label$4}if(!__cxa_guard_acquire(1130232)){break label$4}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$2=HEAP32[282543];label$5:{label$6:{if(!$2){break label$6}$2=HEAP32[HEAP32[282542]+(__wasm_i64_urem($4,$5,$2)<<2)>>2];if(($2|0)==-1){break label$6}$6=HEAP32[282544];while(1){$2=$6+Math_imul($2,24)|0;if(HEAP32[$2>>2]==($4|0)&($5|0)==HEAP32[$2+4>>2]){break label$5}$2=HEAP32[$2+16>>2];if(($2|0)!=-1){continue}break}}if(HEAP32[282548]==((HEAP32[282546]-HEAP32[282544]|0)/24|0)){label$9:{if(HEAP8[1130232]&1){break label$9}if(!__cxa_guard_acquire(1130232)){break label$9}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$2=(HEAP32[282546]-HEAP32[282544]|0)/24|0;label$10:{if(HEAP8[1130232]&1){break label$10}if(!__cxa_guard_acquire(1130232)){break label$10}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$6=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$6;__cxa_guard_release(1130232)}dmHashTable_unsigned_20long_20long_2c_20ReverseHashEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130168,1024,$2+256|0)}$0=memcpy(dlmalloc($1+1|0),$0,$1);HEAP8[$0+$1|0]=0;HEAP16[$3+12>>1]=$1;HEAP32[$3+8>>2]=$0;dmHashTable_unsigned_20long_20long_2c_20ReverseHashEntry___Put_28unsigned_20long_20long_2c_20ReverseHashEntry_20const__29(1130168,$4,$5,$3+8|0)}dmMutex__Unlock_28dmMutex__Mutex__29($7)}global$0=$3+16|0;i64toi32_i32$HIGH_BITS=$5;return $4|0}function dmRender__InitializeDebugRenderer_28dmRender__RenderContext__2c_20unsigned_20int_2c_20void_20const__2c_20unsigned_20int_2c_20void_20const__2c_20unsigned_20int_29($0,$1,$2,$3,$4,$5){var $6=0,$7=0;$6=global$0-832|0;global$0=$6;HEAP32[$0+3568>>2]=$0;HEAP32[$0+3580>>2]=$1;HEAP32[$0+3572>>2]=FUNCTION_TABLE[HEAP32[147555]](HEAP32[$0+4016>>2],$1<<7,0,0);$7=HEAP32[136485];HEAP32[$6+816>>2]=HEAP32[136484];HEAP32[$6+820>>2]=$7;$7=HEAP32[136483];HEAP32[$6+808>>2]=HEAP32[136482];HEAP32[$6+812>>2]=$7;$7=HEAP32[136481];HEAP32[$6+800>>2]=HEAP32[136480];HEAP32[$6+804>>2]=$7;$7=HEAP32[136479];HEAP32[$6+792>>2]=HEAP32[136478];HEAP32[$6+796>>2]=$7;$7=HEAP32[136477];HEAP32[$6+784>>2]=HEAP32[136476];HEAP32[$6+788>>2]=$7;HEAP32[$0+3576>>2]=FUNCTION_TABLE[HEAP32[147570]](HEAP32[$0+4016>>2],$6+784|0,2);$1=$1<<5;$7=-1;label$1:{if(!$3){$2=-1;break label$1}$2=dmDDF__LoadMessage_28void_20const__2c_20unsigned_20int_2c_20dmDDF__Descriptor_20const__2c_20void___29($2,$3,541208,$6+780|0);if($2){HEAP32[$6+16>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,97995,98002,$6+16|0);$2=-1;break label$1}$2=dmGraphics__GetShaderProgram_28dmGraphics__Context__2c_20dmGraphics__ShaderDesc__29(HEAP32[$0+4016>>2],HEAP32[$6+780>>2]);$2=FUNCTION_TABLE[HEAP32[147580]](HEAP32[$0+4016>>2],$2)|0;dmDDF__FreeMessage_28void__29(HEAP32[$6+780>>2]);if(!$5|($2|0)==-1){break label$1}$3=dmDDF__LoadMessage_28void_20const__2c_20unsigned_20int_2c_20dmDDF__Descriptor_20const__2c_20void___29($4,$5,541208,$6+780|0);if($3){HEAP32[$6>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,97995,98052,$6);break label$1}$3=dmGraphics__GetShaderProgram_28dmGraphics__Context__2c_20dmGraphics__ShaderDesc__29(HEAP32[$0+4016>>2],HEAP32[$6+780>>2]);$7=FUNCTION_TABLE[HEAP32[147581]](HEAP32[$0+4016>>2],$3)|0;dmDDF__FreeMessage_28void__29(HEAP32[$6+780>>2])}$3=dmRender__NewMaterial_28dmRender__RenderContext__2c_20unsigned_20long_2c_20unsigned_20long_29($0,$2,$7);dmRender__SetMaterialProgramConstantType_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmRenderDDF__MaterialDesc__ConstantType_29($3,dmHashString64(98104),i64toi32_i32$HIGH_BITS,1);dmRender__AddMaterialTag_28dmRender__Material__2c_20unsigned_20long_20long_29($3,dmHashString64(98114),i64toi32_i32$HIGH_BITS);$2=dmRender__NewMaterial_28dmRender__RenderContext__2c_20unsigned_20long_2c_20unsigned_20long_29($0,$2,$7);dmRender__SetMaterialProgramConstantType_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmRenderDDF__MaterialDesc__ConstantType_29($2,dmHashString64(98104),i64toi32_i32$HIGH_BITS,1);dmRender__AddMaterialTag_28dmRender__Material__2c_20unsigned_20long_20long_29($2,dmHashString64(98123),i64toi32_i32$HIGH_BITS);$4=dmRender__RenderObject__RenderObject_28_29($6+32|0);HEAP32[$6+720>>2]=1;HEAP32[$6+684>>2]=$3;HEAP32[$6+672>>2]=HEAP32[$0+3572>>2];$5=HEAP32[$0+3576>>2];HEAP32[$6+760>>2]=0;HEAP32[$6+676>>2]=$5;dmRender__RenderObject__operator__28dmRender__RenderObject_20const__29($0+32|0,$4);HEAP32[$0+768>>2]=operator_20new_28unsigned_20long_29($1);$4=dmRender__RenderObject__RenderObject_28_29($4);HEAP32[$6+720>>2]=0;HEAP32[$6+684>>2]=$3;HEAP32[$6+672>>2]=HEAP32[$0+3572>>2];$3=HEAP32[$0+3576>>2];HEAP32[$6+760>>2]=0;HEAP32[$6+676>>2]=$3;dmRender__RenderObject__operator__28dmRender__RenderObject_20const__29($0+784|0,$4);HEAP32[$0+1520>>2]=operator_20new_28unsigned_20long_29($1);$3=dmRender__RenderObject__RenderObject_28_29($4);HEAP32[$6+720>>2]=1;HEAP32[$6+684>>2]=$2;HEAP32[$6+672>>2]=HEAP32[$0+3572>>2];$4=HEAP32[$0+3576>>2];HEAP32[$6+760>>2]=0;HEAP32[$6+676>>2]=$4;dmRender__RenderObject__operator__28dmRender__RenderObject_20const__29($0+1536|0,$3);HEAP32[$0+2272>>2]=operator_20new_28unsigned_20long_29($1);$3=dmRender__RenderObject__RenderObject_28_29($3);HEAP32[$6+720>>2]=0;HEAP32[$6+684>>2]=$2;HEAP32[$6+672>>2]=HEAP32[$0+3572>>2];$2=HEAP32[$0+3576>>2];HEAP32[$6+760>>2]=0;HEAP32[$6+676>>2]=$2;dmRender__RenderObject__operator__28dmRender__RenderObject_20const__29($0+2288|0,$3);HEAP32[$0+3024>>2]=operator_20new_28unsigned_20long_29($1);$1=dmHashString64(98114);HEAP32[$0+3296>>2]=1;$2=$0+3040|0;HEAP32[$2>>2]=$1;HEAP32[$2+4>>2]=i64toi32_i32$HIGH_BITS;$1=dmHashString64(98123);HEAP32[$0+3584>>2]=0;HEAP32[$0+3560>>2]=1;$0=$0+3304|0;HEAP32[$0>>2]=$1;HEAP32[$0+4>>2]=i64toi32_i32$HIGH_BITS;global$0=$6+832|0}function dmPhysics__AllHitsRayResultCallback__addSingleResult_28btCollisionWorld__LocalRayResult__2c_20bool_29($0,$1,$2){$0=$0|0;$1=$1|0;$2=$2|0;var $3=0,$4=0,$5=0,$6=0,$7=0,$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0);HEAP32[$0+8>>2]=HEAP32[$1>>2];$4=HEAP32[$0+24>>2];label$1:{if(($4|0)!=HEAP32[$0+28>>2]){break label$1}$7=$4?$4<<1:1;if(($4|0)>=($7|0)){break label$1}if($7){$3=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($7<<2);$4=HEAP32[$0+24>>2]}if(($4|0)>=1){while(1){$6=$5<<2;HEAP32[$6+$3>>2]=HEAP32[$6+HEAP32[$0+32>>2]>>2];$5=$5+1|0;if(($5|0)!=($4|0)){continue}break}}$5=HEAP32[$0+32>>2];if($5){if(HEAPU8[$0+36|0]){if($5){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$5+ -4>>2])}$4=HEAP32[$0+24>>2]}HEAP32[$0+32>>2]=0}HEAP32[$0+32>>2]=$3;HEAP32[$0+28>>2]=$7;HEAP8[$0+36|0]=1}HEAP32[HEAP32[$0+32>>2]+($4<<2)>>2]=HEAP32[$1>>2];HEAP32[$0+24>>2]=$4+1;label$9:{if($2){$11=HEAPF32[$1+16>>2];$12=HEAPF32[$1+12>>2];$9=HEAPF32[$1+8>>2];$8=HEAPF32[$1+20>>2];break label$9}$8=HEAPF32[$1+8>>2];$2=HEAP32[$0+8>>2];$9=HEAPF32[$1+12>>2];$13=HEAPF32[$1+16>>2];$11=Math_fround(Math_fround(Math_fround($8*HEAPF32[$2+36>>2])+Math_fround($9*HEAPF32[$2+40>>2]))+Math_fround($13*HEAPF32[$2+44>>2]));$12=Math_fround(Math_fround(Math_fround($8*HEAPF32[$2+20>>2])+Math_fround($9*HEAPF32[$2+24>>2]))+Math_fround($13*HEAPF32[$2+28>>2]));$9=Math_fround(Math_fround(Math_fround(HEAPF32[$2+4>>2]*$8)+Math_fround(HEAPF32[$2+8>>2]*$9))+Math_fround(HEAPF32[$2+12>>2]*$13));$8=Math_fround(0)}$3=HEAP32[$0+44>>2];label$11:{if(($3|0)!=HEAP32[$0+48>>2]){break label$11}$4=$3?$3<<1:1;if(($3|0)>=($4|0)){break label$11}label$12:{if(!$4){$2=0;break label$12}$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($4<<4);$3=HEAP32[$0+44>>2]}if(($3|0)>=1){$5=0;while(1){$6=$5<<4;$7=$6+$2|0;$6=$6+HEAP32[$0+52>>2]|0;$10=HEAP32[$6+4>>2];HEAP32[$7>>2]=HEAP32[$6>>2];HEAP32[$7+4>>2]=$10;$10=HEAP32[$6+12>>2];HEAP32[$7+8>>2]=HEAP32[$6+8>>2];HEAP32[$7+12>>2]=$10;$5=$5+1|0;if(($5|0)!=($3|0)){continue}break}}$3=HEAP32[$0+52>>2];if($3){if(HEAPU8[$0+56|0]){if($3){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$3+ -4>>2])}}HEAP32[$0+52>>2]=0}HEAP32[$0+52>>2]=$2;HEAP32[$0+48>>2]=$4;HEAP8[$0+56|0]=1;$3=HEAP32[$0+44>>2]}$2=HEAP32[$0+52>>2]+($3<<4)|0;HEAPF32[$2+12>>2]=$8;HEAPF32[$2+8>>2]=$11;HEAPF32[$2+4>>2]=$12;HEAPF32[$2>>2]=$9;HEAP32[$0+44>>2]=HEAP32[$0+44>>2]+1;$8=HEAPF32[$1+24>>2];$11=Math_fround(Math_fround(1)-$8);$12=Math_fround(Math_fround($11*HEAPF32[$0+108>>2])+Math_fround($8*HEAPF32[$0+124>>2]));$9=Math_fround(Math_fround($11*HEAPF32[$0+104>>2])+Math_fround($8*HEAPF32[$0+120>>2]));$8=Math_fround(Math_fround($11*HEAPF32[$0+100>>2])+Math_fround($8*HEAPF32[$0+116>>2]));$3=HEAP32[$0- -64>>2];label$19:{if(($3|0)!=HEAP32[$0+68>>2]){break label$19}$4=$3?$3<<1:1;if(($3|0)>=($4|0)){break label$19}label$20:{if(!$4){$2=0;break label$20}$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($4<<4);$3=HEAP32[$0+64>>2]}if(($3|0)>=1){$5=0;while(1){$6=$5<<4;$7=$6+$2|0;$6=$6+HEAP32[$0+72>>2]|0;$10=HEAP32[$6+4>>2];HEAP32[$7>>2]=HEAP32[$6>>2];HEAP32[$7+4>>2]=$10;$10=HEAP32[$6+12>>2];HEAP32[$7+8>>2]=HEAP32[$6+8>>2];HEAP32[$7+12>>2]=$10;$5=$5+1|0;if(($5|0)!=($3|0)){continue}break}}$3=HEAP32[$0+72>>2];if($3){if(HEAPU8[$0+76|0]){if($3){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$3+ -4>>2])}}HEAP32[$0+72>>2]=0}HEAP32[$0+72>>2]=$2;HEAP32[$0+68>>2]=$4;HEAP8[$0+76|0]=1;$3=HEAP32[$0+64>>2]}$2=HEAP32[$0+72>>2]+($3<<4)|0;HEAPF32[$2+8>>2]=$12;HEAPF32[$2+4>>2]=$9;HEAPF32[$2>>2]=$8;HEAP32[$0+64>>2]=HEAP32[$0+64>>2]+1;$2=HEAP32[$0+84>>2];label$27:{if(($2|0)!=HEAP32[$0+88>>2]){break label$27}$7=$2?$2<<1:1;if(($2|0)>=($7|0)){break label$27}$5=0;$3=0;if($7){$3=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($7<<2);$2=HEAP32[$0+84>>2]}$4=HEAP32[$0+92>>2];label$29:{label$30:{if(($2|0)>=1){while(1){$6=$5<<2;HEAP32[$6+$3>>2]=HEAP32[$4+$6>>2];$5=$5+1|0;if(($5|0)!=($2|0)){continue}break label$30}}if(!$4){break label$29}}if(HEAPU8[$0+96|0]){if($4){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$4+ -4>>2])}$2=HEAP32[$0+84>>2]}HEAP32[$0+92>>2]=0}HEAP32[$0+92>>2]=$3;HEAP32[$0+88>>2]=$7;HEAP8[$0+96|0]=1}HEAP32[HEAP32[$0+92>>2]+($2<<2)>>2]=HEAP32[$1+24>>2];HEAP32[$0+84>>2]=$2+1;return Math_fround(HEAPF32[$0+4>>2])}function dmResource__CreateResource_28dmResource__ResourcePreloader__2c_20dmResource__PreloadRequest__2c_20void__2c_20unsigned_20int_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0;$4=global$0-96|0;global$0=$4;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{label$9:{label$10:{label$11:{label$12:{if(HEAP32[$1+56>>2]==-17){if(HEAPU16[$1+38>>1]){break label$12}$6=HEAP32[$1+8>>2];if(!$6){break label$11}HEAP32[$4+88>>2]=0;HEAP32[$4+92>>2]=0;HEAP32[$4+72>>2]=0;HEAP32[$4+76>>2]=0;HEAP32[$4+80>>2]=0;HEAP32[$4+84>>2]=0;HEAP32[$4+64>>2]=0;HEAP32[$4+68>>2]=0;$5=HEAP32[$1+28>>2];$7=HEAP32[$1+24>>2];HEAP32[$4+84>>2]=1;HEAP32[$4+56>>2]=$7;HEAP32[$4+60>>2]=$5;HEAP32[$4+80>>2]=$6;HEAP32[$4+24>>2]=HEAP32[$0+155704>>2];HEAP32[$4+28>>2]=HEAP32[$6+12>>2];HEAP32[$4+44>>2]=HEAP32[$1+52>>2];HEAP32[$4+48>>2]=$4+56;HEAP32[$4+32>>2]=HEAP32[$1>>2];label$14:{if(!$2){$2=HEAP32[$1+44>>2];if(!$2){break label$10}$3=HEAP32[$1+48>>2];HEAP32[$4+40>>2]=$3;HEAP32[$4+36>>2]=$2;HEAP32[$4+76>>2]=$3;HEAP32[$1+56>>2]=FUNCTION_TABLE[HEAP32[$6+20>>2]]($4+24|0);dmBlockAllocator__Free_28dmBlockAllocator__Context__2c_20void__2c_20unsigned_20int_29(HEAP32[$0+173488>>2],HEAP32[$1+44>>2],HEAP32[$1+48>>2]);HEAP32[$1+44>>2]=0;$2=HEAP32[$1+56>>2];break label$14}HEAP32[$4+40>>2]=$3;HEAP32[$4+36>>2]=$2;HEAP32[$4+76>>2]=$3;$2=FUNCTION_TABLE[HEAP32[$6+20>>2]]($4+24|0)|0;HEAP32[$1+56>>2]=$2}if(!(!HEAP32[$6+24>>2]|$2)){$3=$0+173500|0;$5=$0+173504|0;$7=HEAP32[$5>>2];$8=$0+173508|0;$2=HEAP32[$8>>2];if(($7|0)==($2|0)){if(HEAP8[$0+173512|0]&1){break label$9}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(($2-HEAP32[$3>>2]>>6)+128|0,64,$3,$8,$5);$7=HEAP32[$5>>2];$2=HEAP32[$8>>2]}$3=HEAP32[$3>>2];$8=$7-$3>>6;$7=$8+1|0;if($2-$3>>6>>>0<$7>>>0){break label$8}$2=$7<<6;HEAP32[$5>>2]=$2+$3;if(!$2){break label$7}$2=$3+($8<<6)|0;HEAP8[$2+56|0]=0;HEAP32[$2>>2]=HEAP32[$0+155704>>2];HEAP32[$2+4>>2]=HEAP32[$6+12>>2];$3=HEAP32[$1+52>>2];HEAP32[$2+12>>2]=0;HEAP32[$2+8>>2]=$3;$3=HEAP32[$4+60>>2];HEAP32[$2+16>>2]=HEAP32[$4+56>>2];HEAP32[$2+20>>2]=$3;$3=$4- -64|0;$5=HEAP32[$3+4>>2];HEAP32[$2+24>>2]=HEAP32[$3>>2];HEAP32[$2+28>>2]=$5;$3=HEAP32[$4+76>>2];HEAP32[$2+32>>2]=HEAP32[$4+72>>2];HEAP32[$2+36>>2]=$3;$3=HEAP32[$4+84>>2];HEAP32[$2+40>>2]=HEAP32[$4+80>>2];HEAP32[$2+44>>2]=$3;$3=HEAP32[$4+92>>2];HEAP32[$2+48>>2]=HEAP32[$4+88>>2];HEAP32[$2+52>>2]=$3}if(HEAP32[$1+44>>2]){break label$6}HEAP32[$1+52>>2]=0;$2=HEAP16[$1+32>>1];if(($2|0)!=-1){$2=(($2<<6)+$0|0)+88150|0;$3=HEAPU16[$2>>1];if(!$3){break label$5}HEAP16[$2>>1]=$3+ -1}dmResource__RemoveChildren_28dmResource__ResourcePreloader__2c_20dmResource__PreloadRequest__29($0,$1);if(HEAP32[$1+56>>2]){break label$2}if(!HEAP32[$4+64>>2]){break label$4}$2=dmResource__FindByHash_28dmResource__SResourceFactory__2c_20unsigned_20long_20long_29(HEAP32[$0+155704>>2],HEAP32[$1+24>>2],HEAP32[$1+28>>2]);if($2){HEAP32[$2+28>>2]=HEAP32[$2+28>>2]+1;HEAP32[$1+60>>2]=HEAP32[$2+8>>2];break label$3}$2=dmResource__InsertResource_28dmResource__SResourceFactory__2c_20char_20const__2c_20unsigned_20long_20long_2c_20dmResource__SResourceDescriptor__29(HEAP32[$0+155704>>2],HEAP32[$1>>2],HEAP32[$1+24>>2],HEAP32[$1+28>>2],$4+56|0);HEAP32[$1+56>>2]=$2;if($2){break label$3}HEAP32[$1+60>>2]=HEAP32[$4+64>>2];break label$2}__assert_fail(31712,31097,516,31748);abort()}__assert_fail(31763,31097,517,31748);abort()}__assert_fail(31793,31097,519,31748);abort()}__assert_fail(31830,31097,540,31748);abort()}__assert_fail(32433,31450,444,32508);abort()}__assert_fail(31532,31450,457,31551);abort()}__assert_fail(31916,31450,386,31927);abort()}__assert_fail(31844,31097,577,31748);abort()}__assert_fail(31623,31097,316,31683);abort()}__assert_fail(31863,31097,593,31748);abort()}$3=HEAP32[$4+64>>2];if(!$3){break label$1}label$21:{if(!HEAP32[$6+24>>2]){break label$21}$1=HEAP32[$0+173496>>2];$2=HEAP32[$0+173500>>2];$5=HEAP32[$0+173504>>2]-$2>>6;if($1>>>0>=$5>>>0){break label$21}while(1){if(($3|0)==HEAP32[($2+($1<<6)|0)+24>>2]){HEAP8[($2+($1<<6)|0)+56|0]=1;break label$2}$1=$1+1|0;if($1>>>0<$5>>>0){continue}break}}HEAP32[$4+8>>2]=HEAP32[$0+155704>>2];HEAP32[$4+12>>2]=HEAP32[$6+12>>2];HEAP32[$4+16>>2]=$4+56;FUNCTION_TABLE[HEAP32[$6+28>>2]]($4+8|0)|0}global$0=$4+96|0;return}__assert_fail(31887,31097,623,31748);abort()}function dmPhysics__TransformCopyShape_28dmPhysics__Context2D__2c_20b2Shape_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20float_29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=0,$12=0,$13=0,$14=0;$12=global$0-144|0;global$0=$12;$7=HEAP32[$1+4>>2];label$1:{label$2:{if($7>>>0>4){break label$2}$10=$1;$8=Math_fround($4+$4);$5=Math_fround($8*$5);$4=Math_fround(Math_fround(1)-Math_fround($8*$4));$8=Math_fround(HEAPF32[$0+64>>2]*$6);$3=Math_fround($8*$3);$2=Math_fround($8*$2);label$3:{label$4:{switch($7-1|0){default:$7=operator_20new_28unsigned_20long_29(32);HEAP8[$7+20|0]=HEAPU8[$10+20|0];$11=HEAP32[$10+16>>2];HEAP32[$7+12>>2]=HEAP32[$10+12>>2];HEAP32[$7+16>>2]=$11;$11=HEAP32[$10+8>>2];HEAP32[$7+4>>2]=HEAP32[$10+4>>2];HEAP32[$7+8>>2]=$11;HEAP32[$7>>2]=544848;$9=$3;$3=Math_fround(HEAPF32[$1+24>>2]*$6);$8=Math_fround(HEAPF32[$1+28>>2]*$6);HEAPF32[$7+28>>2]=$9+Math_fround(Math_fround($5*$3)+Math_fround($4*$8));HEAPF32[$7+24>>2]=$2+Math_fround(Math_fround($4*$3)-Math_fround($5*$8));$1=$7;label$8:{if(!(HEAP8[$0+88|0]&1)){$2=HEAPF32[$7+8>>2];break label$8}$2=HEAPF32[$7+8>>2];HEAP32[$7+12>>2]=HEAP32[$7+8>>2]}$6=Math_fround($2*$6);HEAPF32[$1+8>>2]=$6;$1=$7;break label$3;case 0:$0=operator_20new_28unsigned_20long_29(60);HEAP8[$0+20|0]=HEAPU8[$10+20|0];$7=HEAP32[$10+16>>2];HEAP32[$0+12>>2]=HEAP32[$10+12>>2];HEAP32[$0+16>>2]=$7;$7=HEAP32[$10+8>>2];HEAP32[$0+4>>2]=HEAP32[$10+4>>2];HEAP32[$0+8>>2]=$7;HEAP32[$0>>2]=544888;HEAP16[$0+56>>1]=HEAPU16[$1+56>>1];$7=HEAP32[$1+28>>2];HEAP32[$0+24>>2]=HEAP32[$1+24>>2];HEAP32[$0+28>>2]=$7;$7=$1+32|0;$11=HEAP32[$7+4>>2];HEAP32[$0+32>>2]=HEAP32[$7>>2];HEAP32[$0+36>>2]=$11;$7=$1;$11=$7+40|0;$13=HEAP32[$11+4>>2];HEAP32[$0+40>>2]=HEAP32[$11>>2];HEAP32[$0+44>>2]=$13;$11=HEAP32[$7+52>>2];HEAP32[$0+48>>2]=HEAP32[$7+48>>2];HEAP32[$0+52>>2]=$11;if(HEAPU8[$0+56|0]){$8=Math_fround(HEAPF32[$7+40>>2]*$6);$9=Math_fround(HEAPF32[$7+44>>2]*$6);HEAPF32[$0+44>>2]=$3+Math_fround(Math_fround($5*$8)+Math_fround($4*$9));HEAPF32[$0+40>>2]=$2+Math_fround(Math_fround($4*$8)-Math_fround($5*$9))}$8=Math_fround(HEAPF32[$7+24>>2]*$6);$9=Math_fround(HEAPF32[$7+28>>2]*$6);HEAPF32[$0+28>>2]=$3+Math_fround(Math_fround($5*$8)+Math_fround($4*$9));HEAPF32[$0+24>>2]=$2+Math_fround(Math_fround($4*$8)-Math_fround($5*$9));$8=Math_fround(HEAPF32[$1+32>>2]*$6);$9=Math_fround(HEAPF32[$7+36>>2]*$6);HEAPF32[$0+36>>2]=$3+Math_fround(Math_fround($5*$8)+Math_fround($4*$9));HEAPF32[$0+32>>2]=$2+Math_fround(Math_fround($4*$8)-Math_fround($5*$9));$1=$0;if(!HEAPU8[$0+57|0]){break label$3}$9=$3;$3=Math_fround(HEAPF32[$7+48>>2]*$6);$8=Math_fround(HEAPF32[$7+52>>2]*$6);HEAPF32[$0+52>>2]=$9+Math_fround(Math_fround($5*$3)+Math_fround($4*$8));HEAPF32[$0+48>>2]=$2+Math_fround(Math_fround($4*$3)-Math_fround($5*$8));$1=$0;break label$3;case 1:$7=operator_20new_28unsigned_20long_29(420);HEAP8[$7+20|0]=HEAPU8[$10+20|0];$0=HEAP32[$10+16>>2];HEAP32[$7+12>>2]=HEAP32[$10+12>>2];HEAP32[$7+16>>2]=$0;$0=HEAP32[$10+8>>2];HEAP32[$7+4>>2]=HEAP32[$10+4>>2];HEAP32[$7+8>>2]=$0;HEAP32[$7>>2]=544968;memcpy($7+24|0,$1+24|0,396);$0=0;$11=HEAP32[$1+416>>2];if(($11|0)>0){while(1){$13=$0<<3;$14=$13+($12+16|0)|0;$13=$1+$13|0;$8=Math_fround(HEAPF32[$13+160>>2]*$6);$9=Math_fround(HEAPF32[$13+164>>2]*$6);HEAPF32[$14+4>>2]=$3+Math_fround(Math_fround($5*$8)+Math_fround($4*$9));HEAPF32[$14>>2]=$2+Math_fround(Math_fround($4*$8)-Math_fround($5*$9));$0=$0+1|0;if(($11|0)!=($0|0)){continue}break}}b2PolygonShape__Set_28b2Vec2_20const__2c_20int_29($7,$12+16|0,$11);$1=$7;break label$3;case 2:break label$2;case 3:break label$4}}$0=operator_20new_28unsigned_20long_29(64);$7=HEAP32[$1+40>>2];$9=$3;$3=Math_fround(HEAPF32[$1+24>>2]*$6);$8=Math_fround(HEAPF32[$1+28>>2]*$6);HEAPF32[$12+12>>2]=$9+Math_fround(Math_fround($5*$3)+Math_fround($4*$8));HEAPF32[$12+8>>2]=$2+Math_fround(Math_fround($4*$3)-Math_fround($5*$8));$11=HEAP32[$1+56>>2];$13=HEAP32[$1+52>>2];$2=HEAPF32[$1+44>>2];$3=HEAPF32[$1+48>>2];$1=HEAP32[$12+12>>2];HEAP32[$12>>2]=HEAP32[$12+8>>2];HEAP32[$12+4>>2]=$1;b2GridShape__b2GridShape_28b2HullSet_20const__2c_20b2Vec2_2c_20float_2c_20float_2c_20unsigned_20int_2c_20unsigned_20int_29($0,$7,$12,Math_fround($2*$6),Math_fround($3*$6),$13,$11);$1=$0}if(!HEAP32[$10+4>>2]){break label$1}}HEAPF32[$1+12>>2]=$6}global$0=$12+144|0;return $1}function dmGameSystem__AcquireResources_28dmResource__SResourceFactory__2c_20dmGui__Context__2c_20dmGuiDDF__SceneDesc__2c_20dmGameSystem__GuiSceneResource__2c_20char_20const__29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0;$6=global$0-16|0;global$0=$6;HEAP32[$3>>2]=$2;label$1:{label$2:{label$3:{label$4:{label$5:{$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[$2+64>>2],$3+80|0);label$6:{if($2){break label$6}if(HEAP32[HEAP32[$3+80>>2]+104>>2]){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,56274,56282,0);$2=-15;break label$6}$2=HEAP32[HEAP32[$3>>2]>>2];if(!(!$2|!HEAPU8[$2|0])){$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,$2,$3+4|0);if($2){break label$6}}if(HEAP8[$3+52|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[HEAP32[$3>>2]+88>>2],4,$3+40|0,$3+48|0,$3+44|0);HEAP32[$3+44>>2]=HEAP32[$3+40>>2];$2=HEAP32[$3>>2];$4=HEAP32[$2+88>>2];if($4){while(1){HEAP32[$6+12>>2]=0;if($4>>>0<=$5>>>0){break label$5}$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[(HEAP32[$2+84>>2]+($5<<3)|0)+4>>2],$6+12|0);if($2){break label$6}$2=HEAP32[$3+44>>2];if(($2|0)==HEAP32[$3+48>>2]){break label$1}$4=HEAP32[$6+12>>2];HEAP32[$3+44>>2]=$2+4;HEAP32[$2>>2]=$4;$5=$5+1|0;$2=HEAP32[$3>>2];$4=HEAP32[$2+88>>2];if($5>>>0<$4>>>0){continue}break}}if(HEAP8[$3+68|0]&1){break label$2}$4=$3- -64|0;dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$2+96>>2],4,$3+56|0,$4,$3+60|0);HEAP32[$3+60>>2]=HEAP32[$3+56>>2];$2=HEAP32[$3>>2];if(HEAP32[$2+96>>2]){$5=0;while(1){HEAP32[$6+12>>2]=0;$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[(HEAP32[$2+92>>2]+($5<<3)|0)+4>>2],$6+12|0);if($2){break label$6}$2=HEAP32[$3+60>>2];if(($2|0)==HEAP32[$4>>2]){break label$1}$7=HEAP32[$6+12>>2];HEAP32[$3+60>>2]=$2+4;HEAP32[$2>>2]=$7;$5=$5+1|0;$2=HEAP32[$3>>2];if($5>>>0>2]){continue}break}}if(HEAP8[$3+20|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$2+8>>2],4,$3+8|0,$3+16|0,$3+12|0);HEAP32[$3+12>>2]=HEAP32[$3+8>>2];$2=HEAP32[$3>>2];$4=HEAP32[$2+8>>2];if($4){$5=0;while(1){if($4>>>0<=$5>>>0){break label$4}$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[(HEAP32[$2+4>>2]+($5<<3)|0)+4>>2],$6+12|0);if($2){break label$6}$2=HEAP32[$3+12>>2];if(($2|0)==HEAP32[$3+16>>2]){break label$1}$4=HEAP32[$6+12>>2];HEAP32[$3+12>>2]=$2+4;HEAP32[$2>>2]=$4;$5=$5+1|0;$2=HEAP32[$3>>2];$4=HEAP32[$2+8>>2];if($5>>>0<$4>>>0){continue}break}}dmResource__GetTypeFromExtension_28dmResource__SResourceFactory__2c_20char_20const__2c_20unsigned_20long__29($0,56412,$6+12|0);if(HEAP8[$3+36|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[HEAP32[$3>>2]+16>>2],8,$3+24|0,$3+32|0,$3+28|0);HEAP32[$3+28>>2]=HEAP32[$3+24>>2];$2=HEAP32[$3>>2];$4=HEAP32[$2+16>>2];if($4){$5=0;while(1){if($4>>>0<=$5>>>0){break label$3}$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[(HEAP32[$2+12>>2]+($5<<3)|0)+4>>2],$6+8|0);if($2){break label$6}$2=dmResource__GetType_28dmResource__SResourceFactory__2c_20void__2c_20unsigned_20long__29($0,HEAP32[$6+8>>2],$6+4|0);if($2){break label$6}$4=HEAP32[$6+8>>2];label$17:{if(HEAP32[$6+4>>2]!=HEAP32[$6+12>>2]){$2=$4;$4=0;break label$17}$2=HEAP32[$4+48>>2]}$7=HEAP32[$3+28>>2];if(($7|0)==HEAP32[$3+32>>2]){break label$1}HEAP32[$3+28>>2]=$7+8;HEAP32[$7+4>>2]=$2;HEAP32[$7>>2]=$4;$5=$5+1|0;$2=HEAP32[$3>>2];$4=HEAP32[$2+16>>2];if($5>>>0<$4>>>0){continue}break}}$0=__strdup(HEAP32[$2>>2]);HEAP32[$3+76>>2]=$1;HEAP32[$3+72>>2]=$0;$2=0}global$0=$6+16|0;return $2}__assert_fail(56424,56516,256,56505);abort()}__assert_fail(56424,56516,212,56505);abort()}__assert_fail(56424,56516,220,56505);abort()}__assert_fail(56620,56549,444,56695);abort()}__assert_fail(56707,56549,484,56731);abort()}function ProcessRows($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0;label$1:{$5=HEAP32[$0+108>>2];$2=$1-$5|0;if(($2|0)>=1){$6=HEAP32[$0+176>>2];$3=HEAP32[$0+100>>2];$9=HEAP32[$0+16>>2]+(Math_imul($3,$5)<<2)|0;$3=memcpy(HEAP32[$0+20>>2],$9,Math_imul($2,$3)<<2);label$3:{if(($6|0)<1){break label$3}$2=$6+ -1|0;VP8LInverseTransform((Math_imul($2,20)+$0|0)+180|0,$5,$1,$9,$3);if(($6|0)<2){break label$3}while(1){$6=$2+ -1|0;VP8LInverseTransform((Math_imul($6,20)+$0|0)+180|0,$5,$1,$3,$3);$9=($2|0)>1;$2=$6;if($9){continue}break}}$5=HEAP32[$0+108>>2];label$5:{label$6:{label$7:{label$8:{if(($5|0)<($1|0)){$2=HEAP32[$0+8>>2];$3=HEAP32[$2+80>>2];$8=HEAP32[$2+76>>2];if(($3|0)<=($8|0)){break label$8}$9=HEAP32[$2+84>>2];$7=($9|0)>($5|0);$6=HEAP32[$2+88>>2];$6=($6|0)<($1|0)?$6:$1;$10=$7?$9:$5;if(($6|0)<=($10|0)){break label$5}$12=HEAP32[$2>>2];$4=HEAP32[$0+20>>2];$6=$6-$10|0;HEAP32[$2+16>>2]=$6;$3=$3-$8|0;HEAP32[$2+12>>2]=$3;HEAP32[$2+8>>2]=$10-$9;$10=$12<<2;$8=($8<<2)+($7?$4+Math_imul($10,$9-$5|0)|0:$4)|0;$9=HEAP32[$0+12>>2];$13=HEAP32[$9>>2];if($13>>>0<=10){$12=HEAP32[$9+20>>2];$7=HEAP32[$9+16>>2]+Math_imul($12,HEAP32[$0+116>>2])|0;label$11:{if(HEAP32[$2+92>>2]){if(($6|0)<1){$3=0;break label$11}$5=0;$3=0;while(1){$4=HEAP32[$0+268>>2];$2=HEAP32[$4+32>>2];$11=$6-$5|0;$2=(($2+HEAP32[$4+24>>2]|0)+ -1|0)/($2|0)|0;$4=($2|0)>($11|0)?$11:$2;if(($4|0)<1|($4|0)>($11|0)){break label$7}$2=0;$14=Math_imul($5,$10)+$8|0;WebPMultARGBRows($14,$10,HEAP32[HEAP32[$0+268>>2]+44>>2],$4);WebPRescalerImport(HEAP32[$0+268>>2],$11,$14,$10);$5=$5+$4|0;$4=HEAP32[$0+268>>2];$15=$4- -64|0;label$15:{if(HEAP32[$15>>2]>=HEAP32[$4+56>>2]){break label$15}$17=Math_imul($3,$12)+$7|0;$11=HEAP32[$4+52>>2];$14=HEAP32[$4+68>>2];while(1){if(HEAP32[$4+24>>2]>0){break label$15}WebPRescalerExportRow($4);FUNCTION_TABLE[HEAP32[283159]]($14,$11,1);VP8LConvertFromBGRA($14,$11,$13,$17+Math_imul($2,$12)|0);$2=$2+1|0;if(HEAP32[$15>>2]>2]){continue}break}}$3=$2+$3|0;if(($5|0)<($6|0)){continue}break}break label$11}if(($6|0)>=1){$2=$6;while(1){VP8LConvertFromBGRA($8,$3,$13,$7);$7=$7+$12|0;$8=$8+$10|0;$5=($2|0)>1;$2=$2+ -1|0;if($5){continue}break}}$3=$6}$5=HEAP32[$0+116>>2]+$3|0;break label$6}$5=HEAP32[$0+116>>2];if(HEAP32[$2+92>>2]){if(($6|0)<1){break label$6}$7=0;while(1){$3=HEAP32[$0+268>>2];$2=HEAP32[$3+32>>2];$4=$6-$7|0;$2=(($2+HEAP32[$3+24>>2]|0)+ -1|0)/($2|0)|0;$2=($2|0)>($4|0)?$4:$2;WebPMultARGBRows($8,$10,HEAP32[HEAP32[$0+268>>2]+44>>2],$2);WebPRescalerImport(HEAP32[$0+268>>2],$4,$8,$10);$7=$2+$7|0;$14=Math_imul($2,$10);$13=0;$4=HEAP32[$0+268>>2];$15=$4- -64|0;label$21:{if(HEAP32[$15>>2]>=HEAP32[$4+56>>2]){break label$21}$12=HEAP32[$4+52>>2];$11=HEAP32[$4+68>>2];$17=$11+3|0;$2=$5;while(1){if(HEAP32[$4+24>>2]>0){break label$21}WebPRescalerExportRow($4);FUNCTION_TABLE[HEAP32[283159]]($11,$12,1);$3=HEAP32[$0+12>>2];FUNCTION_TABLE[HEAP32[283301]]($11,HEAP32[$3+16>>2]+Math_imul(HEAP32[$3+32>>2],$2)|0,$12);$16=$2>>1;FUNCTION_TABLE[HEAP32[283302]]($11,HEAP32[$3+20>>2]+Math_imul($16,HEAP32[$3+36>>2])|0,HEAP32[$3+24>>2]+Math_imul($16,HEAP32[$3+40>>2])|0,$12,($2^-1)&1);$16=HEAP32[$3+28>>2];if($16){FUNCTION_TABLE[HEAP32[283165]]($17,0,$12,1,$16+Math_imul(HEAP32[$3+44>>2],$2)|0,0)|0}$13=$13+1|0;$2=$2+1|0;if(HEAP32[$15>>2]>2]){continue}break}}$8=$8+$14|0;$5=$5+$13|0;if(($7|0)<($6|0)){continue}break}break label$6}if(($6|0)<1){break label$6}$2=$9;while(1){FUNCTION_TABLE[HEAP32[283301]]($8,HEAP32[$2+16>>2]+Math_imul(HEAP32[$2+32>>2],$5)|0,$3);$7=$5>>1;FUNCTION_TABLE[HEAP32[283302]]($8,HEAP32[$2+20>>2]+Math_imul($7,HEAP32[$2+36>>2])|0,HEAP32[$2+24>>2]+Math_imul($7,HEAP32[$2+40>>2])|0,$3,($5^-1)&1);$7=HEAP32[$2+28>>2];if($7){FUNCTION_TABLE[HEAP32[283165]]($8+3|0,0,$3,1,$7+Math_imul(HEAP32[$2+44>>2],$5)|0,0)|0}$5=$5+1|0;if(($6|0)<2){break label$6}$6=$6+ -1|0;$8=$8+$10|0;$2=HEAP32[$0+12>>2];continue}}__assert_fail(178008,176499,657,178024);abort()}__assert_fail(178038,176499,658,178024);abort()}__assert_fail(178069,176499,550,178116);abort()}HEAP32[$0+116>>2]=$5;if(($5|0)<=HEAP32[$9+8>>2]){break label$5}__assert_fail(177928,176499,764,177965);abort()}HEAP32[$0+108>>2]=$1;if(HEAP32[$0+104>>2]<($1|0)){break label$1}}return}__assert_fail(177977,176499,770,177965);abort()}function poly1305_process($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=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,$29=0,$30=0,$31=0,$32=0,$33=0,$34=0;$14=HEAP32[$0+48>>2];$11=HEAP32[$0+44>>2];$8=HEAP32[$0+40>>2];$6=HEAP32[$0+36>>2];$4=HEAP32[$0+32>>2];if($1){$23=HEAP32[$0+12>>2];$20=$23+($23>>>2|0)|0;$21=HEAP32[$0+8>>2];$24=$21+($21>>>2|0)|0;$17=HEAP32[$0+4>>2];$25=$17+($17>>>2|0)|0;$18=HEAP32[$0>>2];while(1){$9=$4;$7=HEAPU8[($12|1)+$2|0];$4=$7>>>24|0;$10=HEAPU8[$2+$12|0]|$7<<8;$7=$4;$5=$10;$10=HEAPU8[($12|2)+$2|0];$4=$10>>>16|0;$10=$5|$10<<16;$7=$4|$7;$5=HEAPU8[($12|3)+$2|0];$4=$5>>>8|0;$10=$5<<24|$10;$9=$10+$9|0;$5=$4|$7;$5=$9>>>0<$10>>>0?$5+1|0:$5;$16=$9;$28=__wasm_i64_mul($18,0,$9,0);$29=i64toi32_i32$HIGH_BITS;$9=$20;$10=$6;$4=0;$6=$5;$5=$10+$5|0;if($5>>>0<$6>>>0){$4=$4+1|0}$10=$5;$6=$4;$4=HEAPU8[($12|5)+$2|0];$5=$4>>>24|0;$13=HEAPU8[($12|4)+$2|0]|$4<<8;$7=HEAPU8[($12|6)+$2|0];$4=$7>>>16|0;$7=$13|$7<<16;$13=$4|$5;$19=$9;$4=HEAPU8[($12|7)+$2|0];$5=$4>>>8|0;$9=$4<<24|$7;$4=$9+$10|0;$6=($5|$13)+$6|0;$6=$4>>>0<$9>>>0?$6+1|0:$6;$15=$4;$9=__wasm_i64_mul($19,0,$4,0);$30=i64toi32_i32$HIGH_BITS;$7=$24;$5=$8;$8=$6;$6=$5+$6|0;$4=0;$4=$6>>>0<$8>>>0?$4+1|0:$4;$10=$6;$5=HEAPU8[($12|9)+$2|0];$6=$5>>>24|0;$13=HEAPU8[($12|8)+$2|0]|$5<<8;$8=HEAPU8[($12|10)+$2|0];$5=$8>>>16|0;$8=$13|$8<<16;$13=$5|$6;$5=HEAPU8[($12|11)+$2|0];$6=$5>>>8|0;$8=$5<<24|$8;$5=$8+$10|0;$4=($6|$13)+$4|0;$4=$5>>>0<$8>>>0?$4+1|0:$4;$19=$5;$31=__wasm_i64_mul($7,0,$5,0);$8=i64toi32_i32$HIGH_BITS;$7=$4;$11=$4+$11|0;$4=0;$10=$11;$11=$11>>>0<$7>>>0?$4+1|0:$4;$6=HEAPU8[($12|13)+$2|0];$4=$6>>>24|0;$5=HEAPU8[($12|12)+$2|0]|$6<<8;$7=HEAPU8[($12|14)+$2|0];$6=$7>>>16|0;$7=$5|$7<<16;$6=$4|$6;$5=HEAPU8[($12|15)+$2|0];$4=$5>>>8|0;$7=$5<<24|$7;$5=$7+$10|0;$4=($4|$6)+$11|0;$4=$5>>>0<$7>>>0?$4+1|0:$4;$26=$5;$32=__wasm_i64_mul($25,0,$5,0);$11=i64toi32_i32$HIGH_BITS;$22=($3+$14|0)+$4|0;$7=__wasm_i64_mul($25,0,$22,0);$10=i64toi32_i32$HIGH_BITS;$4=__wasm_i64_mul($23,0,$16,0);$5=i64toi32_i32$HIGH_BITS;$6=__wasm_i64_mul($21,0,$15,0);$4=$6+$4|0;$5=i64toi32_i32$HIGH_BITS+$5|0;$5=$4>>>0<$6>>>0?$5+1|0:$5;$14=__wasm_i64_mul($17,0,$19,0);$6=$14+$4|0;$4=i64toi32_i32$HIGH_BITS+$5|0;$33=$6;$14=$6>>>0<$14>>>0?$4+1|0:$4;$4=__wasm_i64_mul($21,0,$16,0);$5=i64toi32_i32$HIGH_BITS;$13=__wasm_i64_mul($17,0,$15,0);$4=$13+$4|0;$6=i64toi32_i32$HIGH_BITS+$5|0;$6=$4>>>0<$13>>>0?$6+1|0:$6;$13=__wasm_i64_mul($18,0,$19,0);$5=$13+$4|0;$4=i64toi32_i32$HIGH_BITS+$6|0;$6=$5;$13=$5>>>0<$13>>>0?$4+1|0:$4;$4=__wasm_i64_mul($17,0,$16,0);$16=i64toi32_i32$HIGH_BITS;$15=__wasm_i64_mul($18,0,$15,0);$5=$15+$4|0;$4=i64toi32_i32$HIGH_BITS+$16|0;$4=$5>>>0<$15>>>0?$4+1|0:$4;$16=$4;$15=$6;$34=$5;$5=$29+$30|0;$4=$9+$28|0;if($4>>>0<$9>>>0){$5=$5+1|0}$9=$4;$6=$4+$31|0;$4=$5+$8|0;$8=$6;$5=$6+$32|0;$6=($6>>>0<$9>>>0?$4+1|0:$4)+$11|0;$11=$5;$8=$5>>>0<$8>>>0?$6+1|0:$6;$6=$34+$8|0;$4=$16;$4=$6>>>0<$8>>>0?$4+1|0:$4;$5=$6;$6=__wasm_i64_mul($20,0,$19,0);$5=$5+$6|0;$4=i64toi32_i32$HIGH_BITS+$4|0;$4=$5>>>0<$6>>>0?$4+1|0:$4;$6=__wasm_i64_mul($24,0,$26,0);$5=$6+$5|0;$4=i64toi32_i32$HIGH_BITS+$4|0;$4=$5>>>0<$6>>>0?$4+1|0:$4;$8=$5;$5=$5+$7|0;$6=$4+$10|0;$6=$5>>>0<$8>>>0?$6+1|0:$6;$8=$5;$9=$6;$6=$15+$6|0;$5=$13;$5=$6>>>0<$9>>>0?$5+1|0:$5;$9=__wasm_i64_mul($20,0,$26,0);$6=$9+$6|0;$4=i64toi32_i32$HIGH_BITS+$5|0;$4=$6>>>0<$9>>>0?$4+1|0:$4;$5=$6;$6=__wasm_i64_mul($24,0,$22,0);$5=$5+$6|0;$4=i64toi32_i32$HIGH_BITS+$4|0;$9=$5;$7=$5>>>0<$6>>>0?$4+1|0:$4;$4=$7+$33|0;$6=$14;$6=$4>>>0<$7>>>0?$6+1|0:$6;$7=__wasm_i64_mul($18,0,$26,0);$5=$7+$4|0;$4=i64toi32_i32$HIGH_BITS+$6|0;$4=$5>>>0<$7>>>0?$4+1|0:$4;$6=__wasm_i64_mul($20,0,$22,0);$5=$6+$5|0;$4=i64toi32_i32$HIGH_BITS+$4|0;$4=$5>>>0<$6>>>0?$4+1|0:$4;$6=$5;$5=Math_imul($18,$22)+$4|0;$4=$5&3;$10=0;$14=0;$7=0;$16=$4;$13=$6;$15=$9;$6=$5&-4;$4=0;$5=$11+($5>>>2|0)|0;if($5>>>0<$11>>>0){$4=$4+1|0}$11=$5;$6=$6+$5|0;$9=$6;$6=$6>>>0<$11>>>0?$4+1|0:$4;$5=$6+$8|0;$4=$7;$7=$5;$11=$5>>>0<$6>>>0?$4+1|0:$4;$4=$15+$11|0;$6=$14;$5=$4;$11=$4>>>0<$11>>>0?$6+1|0:$6;$6=$13+$11|0;$4=$10;$10=$6;$14=$16+($6>>>0<$11>>>0?$4+1|0:$4)|0;$4=$9;$6=$7;$8=$5;$11=$10;$12=$12+16|0;$27=$27+1|0;if(($27|0)!=($1|0)){continue}break}}HEAP32[$0+48>>2]=$14;HEAP32[$0+44>>2]=$11;HEAP32[$0+40>>2]=$8;HEAP32[$0+36>>2]=$6;HEAP32[$0+32>>2]=$4}function dmRender__NewMaterial_28dmRender__RenderContext__2c_20unsigned_20long_2c_20unsigned_20long_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$4=global$0-144|0;global$0=$4;$3=operator_20new_28unsigned_20long_29(112);HEAP32[$3>>2]=0;HEAP32[$3+4>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;HEAP32[$3+48>>2]=0;HEAP32[$3+52>>2]=0;HEAP32[$3+88>>2]=0;HEAP32[$3+92>>2]=0;HEAP32[$3+104>>2]=1;HEAP32[$3+40>>2]=0;HEAP32[$3+44>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=0;HEAP32[$3+56>>2]=0;HEAP32[$3+60>>2]=0;$5=$3- -64|0;HEAP32[$5>>2]=0;HEAP32[$5+4>>2]=0;HEAP32[$3+72>>2]=0;HEAP32[$3+76>>2]=0;HEAP32[$3+80>>2]=0;HEAP32[$3+96>>2]=0;HEAP32[$3+100>>2]=0;HEAP32[$3>>2]=$0;HEAP32[$3+36>>2]=-1;HEAP32[$3+12>>2]=$2;HEAP32[$3+8>>2]=$1;$0=FUNCTION_TABLE[HEAP32[147582]](HEAP32[$0+4016>>2],$1,$2)|0;HEAP32[$3+4>>2]=$0;$5=FUNCTION_TABLE[HEAP32[147593]]($0)|0;label$1:{if(!$5){$0=0;break label$1}$0=0;$1=0;while(1){HEAP32[$4+12>>2]=-1;FUNCTION_TABLE[HEAP32[147592]](HEAP32[$3+4>>2],$1,$4+16|0,128,$4+12|0)|0;$2=HEAP32[$4+12>>2];label$4:{if($2+ -7>>>0<=1){$6=$6+1|0;break label$4}if($2+ -9>>>0<=1){$0=$0+1|0;break label$4}HEAP32[$4+4>>2]=$2;HEAP32[$4>>2]=$4+16;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,99883,99890,$4)}$1=$1+1|0;if(($5|0)!=($1|0)){continue}break}}$1=$0+$6|0;label$7:{label$8:{if($1){dmHashTable_unsigned_20long_20long_2c_20int___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($3+16|0,$1<<1,$1);if(HEAP8[$3+60|0]&1){break label$8}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($6,64,$3+48|0,$3+56|0,$3+52|0)}if($0){if(HEAP8[$3+76|0]&1){break label$8}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($0,32,$3- -64|0,$3+72|0,$3+68|0);$2=0;while(1){$1=HEAP32[$3+68>>2];if(($1|0)==HEAP32[$3+72>>2]){break label$7}HEAP32[$3+68>>2]=$1+32;HEAP32[$1+20>>2]=1;HEAP32[$1+24>>2]=1;HEAP32[$1+12>>2]=5;HEAP32[$1+16>>2]=2;HEAP32[$1+8>>2]=$2<<24|16777215;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$2=$2+1|0;if(($2|0)!=($0|0)){continue}break}}label$12:{if($5){$7=$3+16|0;$2=0;while(1){$0=FUNCTION_TABLE[HEAP32[147592]](HEAP32[$3+4>>2],$2,$4+16|0,128,$4+12|0)|0;$1=FUNCTION_TABLE[HEAP32[147594]](HEAP32[$3+4>>2],$4+16|0)|0;HEAP32[$4+8>>2]=$1;label$15:{if(($1|0)==-1){break label$15}if(!$0){break label$12}$1=dmHashString64($4+16|0);$6=i64toi32_i32$HIGH_BITS;$0=HEAP32[$4+12>>2];if($0+ -7>>>0<=1){dmHashTable_unsigned_20long_20long_2c_20int___Put_28unsigned_20long_20long_2c_20int_20const__29($7,$1,$6,$4+8|0);$16=HEAP32[$4+8>>2];label$17:{if(HEAP32[$4+12>>2]!=7){$8=0;$9=0;$10=0;$11=0;$12=0;$13=0;$14=0;$15=0;break label$17}$0=strlen($4+16|0);dmStrlCat_28char__2c_20char_20const__2c_20unsigned_20long_29($4+16|0,99991,128);$8=dmHashString64($4+16|0);$9=i64toi32_i32$HIGH_BITS;$0=$0+($4+16|0)|0;HEAP8[$0|0]=0;dmStrlCat_28char__2c_20char_20const__2c_20unsigned_20long_29($4+16|0,99994,128);$10=dmHashString64($4+16|0);$11=i64toi32_i32$HIGH_BITS;HEAP8[$0|0]=0;dmStrlCat_28char__2c_20char_20const__2c_20unsigned_20long_29($4+16|0,99997,128);$12=dmHashString64($4+16|0);$13=i64toi32_i32$HIGH_BITS;HEAP8[$0|0]=0;dmStrlCat_28char__2c_20char_20const__2c_20unsigned_20long_29($4+16|0,1e5,128);$14=dmHashString64($4+16|0);HEAP8[$0|0]=0;$15=i64toi32_i32$HIGH_BITS}$0=HEAP32[$3+52>>2];if(($0|0)==HEAP32[$3+56>>2]){break label$7}HEAP32[$3+52>>2]=$0- -64;HEAP32[$0+56>>2]=$14;HEAP32[$0+60>>2]=$15;HEAP32[$0+48>>2]=$12;HEAP32[$0+52>>2]=$13;HEAP32[$0+40>>2]=$10;HEAP32[$0+44>>2]=$11;HEAP32[$0+32>>2]=$8;HEAP32[$0+36>>2]=$9;HEAP32[$0+28>>2]=$16;HEAP32[$0+24>>2]=0;HEAP32[$0+16>>2]=$1;HEAP32[$0+20>>2]=$6;HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;break label$15}if($0+ -9>>>0>1){break label$15}dmHashTable_unsigned_20long_20long_2c_20int___Put_28unsigned_20long_20long_2c_20int_20const__29($7,$1,$6,$4+8|0)}$2=$2+1|0;if(($5|0)!=($2|0)){continue}break}}global$0=$4+144|0;return $3}__assert_fail(99932,99952,108,99979);abort()}__assert_fail(100270,100345,444,100189);abort()}__assert_fail(100416,100345,484,100440);abort()}function unsigned_20int_20std____2____sort4_bool_20_28___29_28dmRender__Tag_20const__2c_20dmRender__Tag_20const__29_2c_20dmRender__Tag___28dmRender__Tag__2c_20dmRender__Tag__2c_20dmRender__Tag__2c_20dmRender__Tag__2c_20bool_20_28___29_28dmRender__Tag_20const__2c_20dmRender__Tag_20const__29_29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0;$6=global$0-16|0;global$0=$6;$5=FUNCTION_TABLE[HEAP32[$4>>2]]($1,$0)|0;$7=FUNCTION_TABLE[HEAP32[$4>>2]]($2,$1)|0;label$1:{label$2:{if(!$5){$5=0;if(!$7){break label$1}$5=HEAP32[$1+12>>2];HEAP32[$6+8>>2]=HEAP32[$1+8>>2];HEAP32[$6+12>>2]=$5;$5=HEAP32[$1+4>>2];HEAP32[$6>>2]=HEAP32[$1>>2];HEAP32[$6+4>>2]=$5;$5=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$5;$5=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$5;$5=HEAP32[$6+12>>2];HEAP32[$2+8>>2]=HEAP32[$6+8>>2];HEAP32[$2+12>>2]=$5;$5=HEAP32[$6+4>>2];HEAP32[$2>>2]=HEAP32[$6>>2];HEAP32[$2+4>>2]=$5;$5=1;if(!FUNCTION_TABLE[HEAP32[$4>>2]]($1,$0)){break label$1}$5=HEAP32[$0+12>>2];HEAP32[$6+8>>2]=HEAP32[$0+8>>2];HEAP32[$6+12>>2]=$5;$5=HEAP32[$0+4>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$6+4>>2]=$5;$5=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$5;$5=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$5;$5=HEAP32[$6+12>>2];HEAP32[$1+8>>2]=HEAP32[$6+8>>2];HEAP32[$1+12>>2]=$5;$5=HEAP32[$6+4>>2];HEAP32[$1>>2]=HEAP32[$6>>2];HEAP32[$1+4>>2]=$5;break label$2}if($7){$5=HEAP32[$0+12>>2];HEAP32[$6+8>>2]=HEAP32[$0+8>>2];HEAP32[$6+12>>2]=$5;$5=HEAP32[$0+4>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$6+4>>2]=$5;$5=HEAP32[$2+12>>2];HEAP32[$0+8>>2]=HEAP32[$2+8>>2];HEAP32[$0+12>>2]=$5;$5=HEAP32[$2+4>>2];HEAP32[$0>>2]=HEAP32[$2>>2];HEAP32[$0+4>>2]=$5;$5=HEAP32[$6+12>>2];HEAP32[$2+8>>2]=HEAP32[$6+8>>2];HEAP32[$2+12>>2]=$5;$5=HEAP32[$6+4>>2];HEAP32[$2>>2]=HEAP32[$6>>2];HEAP32[$2+4>>2]=$5;$5=1;break label$1}$5=HEAP32[$0+12>>2];HEAP32[$6+8>>2]=HEAP32[$0+8>>2];HEAP32[$6+12>>2]=$5;$5=HEAP32[$0+4>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$6+4>>2]=$5;$5=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$5;$5=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$5;$5=HEAP32[$6+12>>2];HEAP32[$1+8>>2]=HEAP32[$6+8>>2];HEAP32[$1+12>>2]=$5;$5=HEAP32[$6+4>>2];HEAP32[$1>>2]=HEAP32[$6>>2];HEAP32[$1+4>>2]=$5;$5=1;if(!FUNCTION_TABLE[HEAP32[$4>>2]]($2,$1)){break label$1}$5=HEAP32[$1+12>>2];HEAP32[$6+8>>2]=HEAP32[$1+8>>2];HEAP32[$6+12>>2]=$5;$5=HEAP32[$1+4>>2];HEAP32[$6>>2]=HEAP32[$1>>2];HEAP32[$6+4>>2]=$5;$5=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$5;$5=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$5;$5=HEAP32[$6+12>>2];HEAP32[$2+8>>2]=HEAP32[$6+8>>2];HEAP32[$2+12>>2]=$5;$5=HEAP32[$6+4>>2];HEAP32[$2>>2]=HEAP32[$6>>2];HEAP32[$2+4>>2]=$5}$5=2}label$5:{if(!FUNCTION_TABLE[HEAP32[$4>>2]]($3,$2)){break label$5}$7=HEAP32[$2+12>>2];HEAP32[$6+8>>2]=HEAP32[$2+8>>2];HEAP32[$6+12>>2]=$7;$7=HEAP32[$2+4>>2];HEAP32[$6>>2]=HEAP32[$2>>2];HEAP32[$6+4>>2]=$7;$7=HEAP32[$3+12>>2];HEAP32[$2+8>>2]=HEAP32[$3+8>>2];HEAP32[$2+12>>2]=$7;$7=HEAP32[$3+4>>2];HEAP32[$2>>2]=HEAP32[$3>>2];HEAP32[$2+4>>2]=$7;$7=HEAP32[$6+12>>2];HEAP32[$3+8>>2]=HEAP32[$6+8>>2];HEAP32[$3+12>>2]=$7;$7=HEAP32[$6+4>>2];HEAP32[$3>>2]=HEAP32[$6>>2];HEAP32[$3+4>>2]=$7;if(!FUNCTION_TABLE[HEAP32[$4>>2]]($2,$1)){$5=$5+1|0;break label$5}$3=HEAP32[$1+12>>2];HEAP32[$6+8>>2]=HEAP32[$1+8>>2];HEAP32[$6+12>>2]=$3;$3=HEAP32[$1+4>>2];HEAP32[$6>>2]=HEAP32[$1>>2];HEAP32[$6+4>>2]=$3;$3=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$3;$3=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$3;$3=HEAP32[$6+12>>2];HEAP32[$2+8>>2]=HEAP32[$6+8>>2];HEAP32[$2+12>>2]=$3;$3=HEAP32[$6+4>>2];HEAP32[$2>>2]=HEAP32[$6>>2];HEAP32[$2+4>>2]=$3;if(!FUNCTION_TABLE[HEAP32[$4>>2]]($1,$0)){$5=$5+2|0;break label$5}$2=HEAP32[$0+12>>2];HEAP32[$6+8>>2]=HEAP32[$0+8>>2];HEAP32[$6+12>>2]=$2;$2=HEAP32[$0+4>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$6+4>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$2;$2=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$2;$0=HEAP32[$6+12>>2];HEAP32[$1+8>>2]=HEAP32[$6+8>>2];HEAP32[$1+12>>2]=$0;$0=HEAP32[$6+4>>2];HEAP32[$1>>2]=HEAP32[$6>>2];HEAP32[$1+4>>2]=$0;$5=$5+3|0}global$0=$6+16|0;return $5}function btSequentialImpulseConstraintSolver__setFrictionConstraintImpulse_28btSolverConstraint__2c_20btRigidBody__2c_20btRigidBody__2c_20btManifoldPoint__2c_20btContactSolverInfo_20const__29($0,$1,$2,$3,$4,$5){var $6=Math_fround(0),$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=0,$12=0,$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0;$0=HEAP32[$0+56>>2];$8=HEAP32[$1+100>>2];$12=HEAP32[$5+60>>2];label$1:{if($12&8){if($12&4){$17=$0+Math_imul($8,136)|0;$6=Math_fround(HEAPF32[$4+120>>2]*HEAPF32[$5+56>>2]);HEAPF32[$17+84>>2]=$6;label$4:{if(!$2){break label$4}$7=HEAPF32[$2+336>>2];if($7==Math_fround(0)){break label$4}$11=$0+Math_imul($8,136)|0;$9=HEAPF32[$11+24>>2];$10=HEAPF32[$11+20>>2];HEAPF32[$2+504>>2]=HEAPF32[$2+504>>2]+Math_fround($6*Math_fround(Math_fround($7*HEAPF32[$11+16>>2])*HEAPF32[$2+340>>2]));HEAPF32[$2+508>>2]=Math_fround($6*Math_fround(Math_fround($7*$10)*HEAPF32[$2+344>>2]))+HEAPF32[$2+508>>2];HEAPF32[$2+512>>2]=Math_fround($6*Math_fround(Math_fround($7*$9)*HEAPF32[$2+348>>2]))+HEAPF32[$2+512>>2];$7=HEAPF32[$11+56>>2];$9=HEAPF32[$11+52>>2];HEAPF32[$2+520>>2]=Math_fround(Math_fround($6*HEAPF32[$2+536>>2])*HEAPF32[$11+48>>2])+HEAPF32[$2+520>>2];$10=HEAPF32[$2+544>>2];HEAPF32[$2+524>>2]=Math_fround($9*Math_fround($6*HEAPF32[$2+540>>2]))+HEAPF32[$2+524>>2];HEAPF32[$2+528>>2]=Math_fround($7*Math_fround($6*$10))+HEAPF32[$2+528>>2]}label$5:{if(!$3){break label$5}$6=HEAPF32[$3+336>>2];if($6==Math_fround(0)){break label$5}$8=$0+Math_imul($8,136)|0;$10=HEAPF32[$8+72>>2];$13=HEAPF32[$8+68>>2];$14=HEAPF32[$8+24>>2];$15=HEAPF32[$8+20>>2];$16=HEAPF32[$8+16>>2];$7=HEAPF32[$17+84>>2];$9=Math_fround(-$7);HEAPF32[$3+520>>2]=HEAPF32[$3+520>>2]-Math_fround(HEAPF32[$8+64>>2]*Math_fround(HEAPF32[$3+536>>2]*$9));HEAPF32[$3+504>>2]=HEAPF32[$3+504>>2]-Math_fround($7*Math_fround(Math_fround($6*$16)*HEAPF32[$3+340>>2]));HEAPF32[$3+508>>2]=HEAPF32[$3+508>>2]-Math_fround($7*Math_fround(Math_fround($6*$15)*HEAPF32[$3+344>>2]));HEAPF32[$3+512>>2]=HEAPF32[$3+512>>2]-Math_fround($7*Math_fround(Math_fround($6*$14)*HEAPF32[$3+348>>2]));$6=HEAPF32[$3+544>>2];HEAPF32[$3+524>>2]=HEAPF32[$3+524>>2]-Math_fround($13*Math_fround(HEAPF32[$3+540>>2]*$9));HEAPF32[$3+528>>2]=HEAPF32[$3+528>>2]-Math_fround($10*Math_fround($6*$9))}if(!($12&16)){break label$1}$8=HEAP32[$1+100>>2]+1|0;$11=$0+Math_imul($8,136)|0;$6=Math_fround(HEAPF32[$4+124>>2]*HEAPF32[$5+56>>2]);HEAPF32[$11+84>>2]=$6;label$6:{if(!$2){break label$6}$7=HEAPF32[$2+336>>2];if($7==Math_fround(0)){break label$6}$1=$0+Math_imul($8,136)|0;$9=HEAPF32[$1+24>>2];$10=HEAPF32[$1+20>>2];HEAPF32[$2+504>>2]=HEAPF32[$2+504>>2]+Math_fround($6*Math_fround($7*HEAPF32[$1+16>>2]));HEAPF32[$2+508>>2]=Math_fround($6*Math_fround($7*$10))+HEAPF32[$2+508>>2];HEAPF32[$2+512>>2]=Math_fround($6*Math_fround($7*$9))+HEAPF32[$2+512>>2];$7=HEAPF32[$1+56>>2];$9=HEAPF32[$1+52>>2];HEAPF32[$2+520>>2]=Math_fround(Math_fround($6*HEAPF32[$2+536>>2])*HEAPF32[$1+48>>2])+HEAPF32[$2+520>>2];$10=HEAPF32[$2+544>>2];HEAPF32[$2+524>>2]=Math_fround($9*Math_fround($6*HEAPF32[$2+540>>2]))+HEAPF32[$2+524>>2];HEAPF32[$2+528>>2]=Math_fround($7*Math_fround($6*$10))+HEAPF32[$2+528>>2]}if(!$3){break label$1}$6=HEAPF32[$3+336>>2];if($6==Math_fround(0)){break label$1}$0=$0+Math_imul($8,136)|0;$10=HEAPF32[$0+72>>2];$13=HEAPF32[$0+68>>2];$14=HEAPF32[$0+24>>2];$15=HEAPF32[$0+20>>2];$16=HEAPF32[$0+16>>2];$7=HEAPF32[$11+84>>2];$9=Math_fround(-$7);HEAPF32[$3+520>>2]=HEAPF32[$3+520>>2]-Math_fround(HEAPF32[$0+64>>2]*Math_fround(HEAPF32[$3+536>>2]*$9));HEAPF32[$3+504>>2]=HEAPF32[$3+504>>2]-Math_fround($7*Math_fround($6*$16));HEAPF32[$3+508>>2]=HEAPF32[$3+508>>2]-Math_fround($7*Math_fround($6*$15));HEAPF32[$3+512>>2]=HEAPF32[$3+512>>2]-Math_fround($7*Math_fround($6*$14));$6=HEAPF32[$3+544>>2];HEAPF32[$3+524>>2]=HEAPF32[$3+524>>2]-Math_fround($13*Math_fround(HEAPF32[$3+540>>2]*$9));HEAPF32[$3+528>>2]=HEAPF32[$3+528>>2]-Math_fround($10*Math_fround($6*$9));return}HEAP32[($0+Math_imul($8,136)|0)+84>>2]=0;if(!($12&16)){break label$1}HEAP32[($0+Math_imul(HEAP32[$1+100>>2],136)|0)+220>>2]=0;return}HEAP32[($0+Math_imul($8,136)|0)+84>>2]=0;if(!($12&16)){break label$1}HEAP32[($0+Math_imul(HEAP32[$1+100>>2],136)|0)+220>>2]=0}}function WebPAllocateDecBuffer($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$14=global$0-16|0;global$0=$14;$7=2;label$1:{if(!$3|(($1|0)<1|($0|0)<1)){break label$1}label$2:{if(!$2){break label$2}label$3:{if(!HEAP32[$2+8>>2]){$4=$1;$5=$0;break label$3}$4=HEAP32[$2+24>>2];if(($4|0)<1){break label$1}$5=HEAP32[$2+20>>2];if(($5|0)<1){break label$1}$8=HEAP32[$2+16>>2];$9=HEAP32[$2+12>>2];if(($8|$9)<0|(($9&-2)+$5|0)>($0|0)|(($8&-2)+$4|0)>($1|0)){break label$1}}if(!HEAP32[$2+28>>2]){$1=$4;$0=$5;break label$2}HEAP32[$14+12>>2]=HEAP32[$2+32>>2];HEAP32[$14+8>>2]=HEAP32[$2+36>>2];if(!WebPRescalerGetScaledDimensions($5,$4,$14+12|0,$14+8|0)){break label$1}$1=HEAP32[$14+8>>2];$0=HEAP32[$14+12>>2]}HEAP32[$3+8>>2]=$1;HEAP32[$3+4>>2]=$0;if(($1|0)<1|($0|0)<1){break label$1}$9=HEAP32[$3>>2];if($9>>>0>12){break label$1}label$6:{if(HEAP32[$3+12>>2]|HEAP32[$3+80>>2]){break label$6}$4=$1;$15=Math_imul(HEAP32[($9<<2)+178144>>2],$0);$5=$15;$8=__wasm_i64_mul($1,0,$5,$5>>31);$12=i64toi32_i32$HIGH_BITS;label$7:{if($9>>>0<11){$0=0;$5=0;break label$7}$5=($0+1|0)/2|0;$1=($1+1|0)/2|0;$6=__wasm_i64_mul($5,$5>>31,$1,$1>>31);$10=i64toi32_i32$HIGH_BITS;if(($9|0)!=12){$0=0;break label$7}$11=__wasm_i64_mul($0,0,$4,0);$16=i64toi32_i32$HIGH_BITS}$7=1;$1=$6;$4=$10<<1|$1>>>31;$13=$1<<1;$18=$13;$10=$12+$16|0;$1=$11;$12=$1+$8|0;if($12>>>0<$1>>>0){$10=$10+1|0}$16=$12;$12=$18+$12|0;$1=$4+$10|0;$1=WebPSafeMalloc($12,$12>>>0<$16>>>0?$1+1|0:$1,1);if(!$1){break label$1}HEAP32[$3+16>>2]=$1;HEAP32[$3+80>>2]=$1;if($9>>>0>=11){HEAP32[$3+48>>2]=$8;HEAP32[$3+32>>2]=$15;HEAP32[$3+52>>2]=$6;HEAP32[$3+36>>2]=$5;HEAP32[$3+56>>2]=$6;HEAP32[$3+40>>2]=$5;$1=$1+$8|0;HEAP32[$3+20>>2]=$1;HEAP32[$3+24>>2]=$1+$6;if(($9|0)==12){HEAP32[$3+28>>2]=$1+$13}HEAP32[$3+44>>2]=$0;HEAP32[$3+60>>2]=$11;break label$6}HEAP32[$3+24>>2]=$8;HEAP32[$3+20>>2]=$15}$7=2;$8=HEAP32[$3>>2];if($8>>>0>12){break label$1}$6=HEAP32[$3+8>>2];$5=HEAP32[$3+4>>2];label$12:{label$13:{label$14:{if($8>>>0>=11){$1=HEAP32[$3+40>>2];$0=$1>>31;$9=$0^$0+$1;$1=($5+1|0)/2|0;$15=($9|0)>=($1|0);$4=HEAP32[$3+36>>2];$0=$4>>31;$13=$0^$0+$4;$12=($13|0)>=($1|0);$4=HEAP32[$3+32>>2];$0=$4>>31;$4=$0^$0+$4;$16=($4|0)>=($5|0);$10=$5>>31;$0=$5;$11=$6+ -1|0;$18=$11;$19=$11>>31;$17=__wasm_i64_mul($11,$19,$4,0);$7=$0+$17|0;$4=i64toi32_i32$HIGH_BITS+$10|0;$4=$7>>>0<$17>>>0?$4+1|0:$4;$17=!$4&$7>>>0<=HEAPU32[$3+48>>2]|$4>>>0<0;$7=$1>>31;$4=(($6+1|0)/2|0)+ -1|0;$21=$4;$20=$4>>31;$13=__wasm_i64_mul($4,$20,$13,0);$6=$13+$1|0;$4=i64toi32_i32$HIGH_BITS+$7|0;$4=$6>>>0<$13>>>0?$4+1|0:$4;$4=(!$4&$6>>>0<=HEAPU32[$3+52>>2]|$4>>>0<0)&$17;$6=__wasm_i64_mul($9,0,$21,$20);$13=$4;$4=$7+i64toi32_i32$HIGH_BITS|0;$6=$1+$6|0;if($6>>>0<$1>>>0){$4=$4+1|0}$1=$6;$6=HEAP32[$3+16>>2];$9=HEAP32[$3+20>>2];$1=$13&(!$4&$1>>>0<=HEAPU32[$3+56>>2]|$4>>>0<0)&$16&$12&$15&($6|0)!=0&($9|0)!=0;$15=HEAP32[$3+24>>2];$1=$1&($15|0)!=0;if(($8|0)!=12){break label$14}$8=HEAP32[$3+44>>2];$4=$8>>31;$4=$4^$4+$8;$1=$1&($4|0)>=($5|0);$5=__wasm_i64_mul($4,0,$18,$19);$4=$1;$10=$10+i64toi32_i32$HIGH_BITS|0;$1=$0+$5|0;if($1>>>0<$0>>>0){$10=$10+1|0}$0=$4&(!$10&$1>>>0<=HEAPU32[$3+60>>2]|$10>>>0<0)&HEAP32[$3+28>>2]!=0;$7=$0?0:2;if(!$2|!$0){break label$1}break label$12}$1=HEAP32[$3+20>>2];$0=$1>>31;$0=$0^$0+$1;$4=($0|0)>=(Math_imul($5,HEAP32[($8<<2)+178144>>2])|0);$8=$5>>31;$7=$5;$6=$6+ -1|0;$5=$6;$11=__wasm_i64_mul($5,$5>>31,$0,0);$5=$7+$11|0;$0=i64toi32_i32$HIGH_BITS+$8|0;$0=$5>>>0<$11>>>0?$0+1|0:$0;$5=(!$0&$5>>>0<=HEAPU32[$3+24>>2]|$0>>>0<0)&$4;$0=HEAP32[$3+16>>2];$5=$5&($0|0)!=0;$7=$5?0:2;if(!$2|!$5){break label$1}if(HEAP32[$2+48>>2]){break label$13}$7=0;break label$1}if(!(!$2|$1^1)){break label$12}$7=$1?0:2;break label$1}$7=0;HEAP32[$3+20>>2]=0-$1;HEAP32[$3+16>>2]=$0+Math_imul($1,$6);break label$1}if(!HEAP32[$2+48>>2]){$7=0;break label$1}$7=0;$0=HEAP32[$3+32>>2];HEAP32[$3+32>>2]=0-$0;$1=HEAP32[$3+36>>2];HEAP32[$3+36>>2]=0-$1;$2=HEAP32[$3+40>>2];HEAP32[$3+40>>2]=0-$2;HEAP32[$3+16>>2]=$6+Math_imul($0,$11);$0=$11>>1;HEAP32[$3+20>>2]=$9+Math_imul($0,$1);HEAP32[$3+24>>2]=$15+Math_imul($0,$2);$0=HEAP32[$3+28>>2];if(!$0){break label$1}$1=HEAP32[$3+44>>2];HEAP32[$3+44>>2]=0-$1;HEAP32[$3+28>>2]=$0+Math_imul($1,$11)}global$0=$14+16|0;return $7}function dmGameObject__GetPropertyDefault_28dmGameObject__Properties__2c_20unsigned_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar__29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=0,$6=0,$7=0,$8=0,$9=0;$9=global$0-32|0;global$0=$9;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{label$9:{label$10:{$5=HEAP32[$1+40>>2];$6=HEAP32[$5+48>>2];label$11:{if($6){$7=HEAP32[$5+44>>2];$1=0;while(1){if(($1|0)==($6|0)){break label$10}$8=$7+($1<<5)|0;if(HEAP32[$8+8>>2]==($2|0)&HEAP32[$8+12>>2]==($3|0)){$0=0;HEAP32[$4>>2]=0;$1=HEAP32[($7+($1<<5)|0)+16>>2];if(HEAPU32[$5+104>>2]<=$1>>>0){break label$1}HEAPF64[$4+8>>3]=HEAPF32[HEAP32[$5+100>>2]+($1<<2)>>2];break label$11}$1=$1+1|0;if(($6|0)!=($1|0)){continue}break}}$6=HEAP32[$5+56>>2];label$15:{if($6){$7=HEAP32[$5+52>>2];$1=0;while(1){if(($1|0)==($6|0)){break label$9}$8=$7+($1<<5)|0;if(HEAP32[$8+8>>2]==($2|0)&HEAP32[$8+12>>2]==($3|0)){HEAP32[$4>>2]=1;$0=HEAP32[($7+($1<<5)|0)+16>>2];if(HEAPU32[$5+112>>2]<=$0>>>0){break label$8}$0=HEAP32[$5+108>>2]+($0<<3)|0;$1=HEAP32[$0+4>>2];HEAP32[$4+8>>2]=HEAP32[$0>>2];HEAP32[$4+12>>2]=$1;break label$15}$1=$1+1|0;if(($6|0)!=($1|0)){continue}break}}$6=HEAP32[$5- -64>>2];if($6){$7=HEAP32[$5+60>>2];$1=0;while(1){if(($1|0)==($6|0)){break label$7}$8=$7+($1<<5)|0;if(HEAP32[$8+8>>2]==($2|0)&HEAP32[$8+12>>2]==($3|0)){HEAP32[$4>>2]=2;$2=$9;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;$3=HEAP32[$0+40>>2];FUNCTION_TABLE[HEAP32[$0+44>>2]]($3,$2);$0=HEAP32[($7+($1<<5)|0)+16>>2];if(HEAPU32[$5+120>>2]<=$0>>>0){break label$2}$0=dmScript__ResolveURL_28lua_State__2c_20char_20const__2c_20dmMessage__URL__2c_20dmMessage__URL__29($3,HEAP32[HEAP32[$5+116>>2]+($0<<2)>>2],$4+8|0,$9)?-2:0;break label$11}$1=$1+1|0;if(($6|0)!=($1|0)){continue}break}}$0=HEAP32[$5+72>>2];if($0){$6=HEAP32[$5+68>>2];$1=0;while(1){if(($0|0)==($1|0)){break label$6}$7=$6+($1<<5)|0;if(HEAP32[$7+8>>2]==($2|0)&HEAP32[$7+12>>2]==($3|0)){HEAP32[$4>>2]=3;$0=HEAP32[($6+($1<<5)|0)+16>>2];if(HEAPU32[$5+104>>2]<=$0>>>0){break label$1}$0=HEAP32[$5+100>>2]+($0<<2)|0;HEAP32[$4+8>>2]=HEAP32[$0>>2];HEAP32[$4+12>>2]=HEAP32[$0+4>>2];HEAP32[$4+16>>2]=HEAP32[$0+8>>2];break label$15}$1=$1+1|0;if(($0|0)!=($1|0)){continue}break}}$0=HEAP32[$5+80>>2];if($0){$6=HEAP32[$5+76>>2];$1=0;while(1){if(($0|0)==($1|0)){break label$5}$7=$6+($1<<5)|0;if(HEAP32[$7+8>>2]==($2|0)&HEAP32[$7+12>>2]==($3|0)){HEAP32[$4>>2]=4;$0=HEAP32[($6+($1<<5)|0)+16>>2];if(HEAPU32[$5+104>>2]<=$0>>>0){break label$1}$0=HEAP32[$5+100>>2]+($0<<2)|0;HEAP32[$4+8>>2]=HEAP32[$0>>2];HEAP32[$4+12>>2]=HEAP32[$0+4>>2];HEAP32[$4+16>>2]=HEAP32[$0+8>>2];HEAP32[$4+20>>2]=HEAP32[$0+12>>2];break label$15}$1=$1+1|0;if(($0|0)!=($1|0)){continue}break}}$0=HEAP32[$5+88>>2];if($0){$6=HEAP32[$5+84>>2];$1=0;while(1){if(($0|0)==($1|0)){break label$4}$7=$6+($1<<5)|0;if(HEAP32[$7+8>>2]==($2|0)&HEAP32[$7+12>>2]==($3|0)){HEAP32[$4>>2]=5;$0=HEAP32[($6+($1<<5)|0)+16>>2];if(HEAPU32[$5+104>>2]<=$0>>>0){break label$1}$0=HEAP32[$5+100>>2]+($0<<2)|0;HEAP32[$4+8>>2]=HEAP32[$0>>2];HEAP32[$4+12>>2]=HEAP32[$0+4>>2];HEAP32[$4+16>>2]=HEAP32[$0+8>>2];HEAP32[$4+20>>2]=HEAP32[$0+12>>2];break label$15}$1=$1+1|0;if(($0|0)!=($1|0)){continue}break}}$0=-1;$6=HEAP32[$5+96>>2];if(!$6){break label$11}$7=HEAP32[$5+92>>2];$1=0;while(1){if(($1|0)==($6|0)){break label$3}label$32:{$8=$7+($1<<5)|0;if(HEAP32[$8+8>>2]==($2|0)&HEAP32[$8+12>>2]==($3|0)){HEAP32[$4>>2]=6;$0=HEAP32[($7+($1<<5)|0)+16>>2];if(HEAPU32[$5+104>>2]>$0>>>0){break label$32}break label$1}$1=$1+1|0;if(($6|0)!=($1|0)){continue}break label$11}break}HEAP8[$4+8|0]=HEAPF32[HEAP32[$5+100>>2]+($0<<2)>>2]!=Math_fround(0)}$0=0}global$0=$9+32|0;return $0|0}__assert_fail(22141,22153,34,22195);abort()}__assert_fail(22141,22153,42,22195);abort()}__assert_fail(22141,22153,98,22195);abort()}__assert_fail(22141,22153,50,22195);abort()}__assert_fail(22141,22153,58,22195);abort()}__assert_fail(22141,22153,66,22195);abort()}__assert_fail(22141,22153,74,22195);abort()}__assert_fail(22141,22153,82,22195);abort()}__assert_fail(22141,22153,106,22195);abort()}__assert_fail(22141,22153,90,22195);abort()}function dmScript__Sys_GetIfaddrs_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$2=global$0-2880|0;global$0=$2;$7=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$1=$2+180|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+340|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+500|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+660|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+820|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+980|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1140|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1300|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1460|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1620|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1780|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1940|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+2100|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+2260|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+2420|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+2580|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$2+44>>2]=0;HEAP32[$2+44>>2]=0;lua_createtable($0,HEAP32[$2+44>>2],0);if(HEAP32[$2+44>>2]){$8=$2+2736|0;$9=$2+2672|0;while(1){lua_createtable($0,0,0);$3=($2+48|0)+Math_imul($5,160)|0;lua_pushstring($0,$3);lua_setfield($0,-2,114226);label$3:{if(HEAPU8[$3+128|0]&4){HEAP32[$2+40>>2]=HEAP32[$3+148>>2];$1=HEAP32[$3+144>>2];HEAP32[$2+32>>2]=HEAP32[$3+140>>2];HEAP32[$2+36>>2]=$1;$1=HEAP32[$3+136>>2];HEAP32[$2+24>>2]=HEAP32[$3+132>>2];HEAP32[$2+28>>2]=$1;$1=dmSocket__AddressToIPString_28dmSocket__Address_29($2+24|0);if($1){lua_pushstring($0,$1);dlfree($1);break label$3}$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=0;HEAP32[$0+8>>2]=$4+16;dlfree($1);break label$3}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16}lua_setfield($0,-2,114231);$1=HEAP32[$3+132>>2]+ -1|0;label$6:{if($1>>>0<=1){if($1-1){lua_pushstring($0,114239);break label$6}lua_pushstring($0,114244);break label$6}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16}lua_setfield($0,-2,114249);label$9:{if(HEAPU8[$3+128|0]&8){$1=HEAPU8[$3+152|0];$4=HEAPU8[$3+153|0];$6=HEAPU8[$3+154|0];$10=HEAPU8[$3+155|0];$11=HEAPU8[$3+156|0];HEAP32[$2+20>>2]=HEAPU8[$3+157|0];HEAP32[$2+16>>2]=$11;HEAP32[$2+12>>2]=$10;HEAP32[$2+8>>2]=$6;HEAP32[$2+4>>2]=$4;HEAP32[$2>>2]=$1;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($2+2608|0,64,114256,$2);lua_pushstring($0,$2+2608|0);break label$9}$4=0;memset($2+2608|0,0,264);dmSys__GetSystemInfo_28dmSys__SystemInfo__29($2+2608|0);$1=$9;$1=(HEAPU8[$1|0]|HEAPU8[$1+1|0]<<8|(HEAPU8[$1+2|0]<<16|HEAPU8[$1+3|0]<<24))!=1919184449|(HEAPU8[$1+4|0]|HEAPU8[$1+5|0]<<8|(HEAPU8[$1+6|0]<<16|HEAPU8[$1+7|0]<<24))!=6580591;if(!$1){$4=(strtol($8,0)|0)>22}$6=HEAP32[$2+2868>>2];if($6){dlfree($6)}if(!$1&$4){lua_pushstring($0,114286);break label$9}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16}lua_setfield($0,-2,114304);$1=HEAP32[$3+128>>2]&1;$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,114308);$1=HEAP32[$3+128>>2]>>>1&1;$3=HEAP32[$0+8>>2];HEAP32[$3+8>>2]=1;HEAP32[$3>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,114311);$5=$5+1|0;lua_rawseti($0,-2,$5);if($5>>>0>2]){continue}break}}if(($7+1|0)!=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){__assert_fail(113851,113876,836,114319);abort()}global$0=$2+2880|0;return 1}function dmEngine__Dispatch_28dmMessage__Message__2c_20void__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$4=global$0-80|0;global$0=$4;$2=HEAP32[$0+76>>2];label$1:{if($2){$3=$0+96|0;dmDDF__ResolvePointers_28dmDDF__Descriptor_20const__2c_20void__29($2,$3);if(($2|0)==HEAP32[137950]){$0=HEAP32[$3>>2];HEAP32[$1+144>>2]=-1;HEAP32[$1+140>>2]=$0;HEAP8[$1+148|0]=0;break label$1}if(($2|0)==HEAP32[138026]){HEAP32[$1+12>>2]=__strdup(5349);$2=0;$3=HEAP32[$3>>2];if($3){$6=__strdup($3)}$3=HEAP32[$0+100>>2];if($3){$2=__strdup($3)}$3=0;$5=HEAP32[$0+104>>2];if($5){$7=__strdup($5)}$5=HEAP32[$0+108>>2];if($5){$3=__strdup($5)}$5=0;$9=HEAP32[$0+112>>2];if($9){$8=__strdup($9)}$0=HEAP32[$0+116>>2];if($0){$5=__strdup($0)}HEAP32[$1+16>>2]=$6;$0=1;label$11:{if(!$6|!HEAPU8[$6|0]){break label$11}HEAP32[$1+20>>2]=$2;$0=2;if(!$2|!HEAPU8[$2|0]){break label$11}HEAP32[$1+24>>2]=$7;$0=3;if(!$7|!HEAPU8[$7|0]){break label$11}HEAP32[$1+28>>2]=$3;$0=4;if(!$3|!HEAPU8[$3|0]){break label$11}HEAP32[$1+32>>2]=$8;$0=5;if(!$8|!HEAPU8[$8|0]){break label$11}HEAP32[$1+36>>2]=$5;$0=6;if(!$5){break label$11}$0=HEAPU8[$5|0]?7:6}HEAP8[$1+148|0]=0;HEAP32[$1+8>>2]=$0;HEAP32[$1+144>>2]=1;break label$1}if(($2|0)==HEAP32[137951]){dmProfiler__ToggleProfiler_28_29();break label$1}if(($2|0)==HEAP32[137952]){if(!HEAPU8[561908]){break label$1}HEAP8[$1+204|0]=HEAPU8[$1+204|0]^1;break label$1}if(($2|0)==HEAP32[137984]){HEAP32[$1+520>>2]=HEAP32[$0+100>>2];$2=FUNCTION_TABLE[HEAP32[147544]](HEAP32[$1+184>>2])|0;$3=FUNCTION_TABLE[HEAP32[147545]](HEAP32[$1+184>>2])|0;HEAP32[$4+56>>2]=0;HEAP32[$4+60>>2]=0;HEAP32[$4+64>>2]=0;HEAP32[$4+68>>2]=0;HEAP32[$4+72>>2]=0;HEAP32[$4+76>>2]=30;HEAP32[$4+60>>2]=$3;HEAP32[$4+56>>2]=$2;HEAP32[$4+72>>2]=HEAP32[$0+96>>2];HEAP32[$4+76>>2]=HEAP32[$0+104>>2];HEAP32[$4+16>>2]=-3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,2222,4727,$4+16|0);HEAP32[$1+508>>2]=0;break label$1}if(($2|0)==HEAP32[137985]){if(HEAP32[$1+508>>2]){$0=HEAP32[$1+512>>2];if($0){dlfree($0)}HEAP32[$1+508>>2]=0;HEAP32[$1+512>>2]=0;break label$1}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,2222,4758,0);break label$1}if(($2|0)==HEAP32[138062]){$0=HEAP32[$3>>2];$0=$0?$0:1;HEAP32[$1+480>>2]=$0;HEAP32[130700]=$0;break label$1}if(($2|0)==HEAP32[115262]){FUNCTION_TABLE[HEAP32[147541]](HEAP32[$1+184>>2]);break label$1}if(($2|0)==HEAP32[138046]){if(HEAPU8[$1+449|0]){break label$1}$0=HEAP32[$3>>2];$3=($0|0)>0?$0:0;$2=HEAP32[$1+504>>2];label$22:{if(!$2){HEAP8[$1+448|0]=1;break label$22}$5=($0|0)<1;HEAP8[$1+448|0]=$5&($2|0)==1;if(($2|0)!=1|$5){break label$22}HEAP32[$1+480>>2]=HEAPU32[$1+480>>2]/($0>>>0)}FUNCTION_TABLE[HEAP32[147553]](HEAP32[$1+184>>2],$3);break label$1}if(($2|0)==HEAP32[115278]){$0=HEAP32[$1+244>>2];$2=HEAP32[$1+228>>2];if($2){dmGameObject__LuaLoad_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29($0,$2,$3);break label$1}dmGameObject__LuaLoad_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29($0,HEAP32[$1+232>>2],$3);dmGameObject__LuaLoad_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29($0,HEAP32[$1+240>>2],$3);dmGameObject__LuaLoad_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29($0,HEAP32[$1+236>>2],$3);break label$1}$1=dmMessage__GetSocketName_28unsigned_20long_20long_29(HEAP32[$0>>2],HEAP32[$0+4>>2]);$3=dmHashReverseSafe64(HEAP32[$0+16>>2],HEAP32[$0+20>>2]);$0=dmHashReverseSafe64(HEAP32[$0+24>>2],HEAP32[$0+28>>2]);$2=HEAP32[$2+4>>2];HEAP32[$4+48>>2]=$0;HEAP32[$4+44>>2]=$3;HEAP32[$4+40>>2]=$1;HEAP32[$4+36>>2]=3557;HEAP32[$4+32>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,2222,4783,$4+32|0);break label$1}$1=dmMessage__GetSocketName_28unsigned_20long_20long_29(HEAP32[$0>>2],HEAP32[$0+4>>2]);$2=dmHashReverseSafe64(HEAP32[$0+16>>2],HEAP32[$0+20>>2]);HEAP32[$4+12>>2]=dmHashReverseSafe64(HEAP32[$0+24>>2],HEAP32[$0+28>>2]);HEAP32[$4+8>>2]=$2;HEAP32[$4+4>>2]=$1;HEAP32[$4>>2]=3557;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,2222,4846,$4)}global$0=$4+80|0}function FinishRow($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$14=HEAP32[$0+2280>>2];$19=HEAP32[$0+160>>2];$20=HEAP32[$0+2308>>2];$16=HEAP32[$0+2268>>2];$12=HEAP32[$0+2284>>2];$17=HEAP32[$0+2276>>2];$21=HEAP32[$0+2272>>2];$22=HEAP32[$0+308>>2];$18=HEAP32[$0+164>>2];if(HEAP32[$0+148>>2]==2){ReconstructRow($0,$0+160|0)}label$2:{label$3:{label$4:{label$5:{if(!HEAP32[$0+168>>2]){break label$5}$3=HEAP32[$0+296>>2];if(($3|0)>=HEAP32[$0+304>>2]){break label$5}$13=HEAP32[$0+164>>2];while(1){$10=HEAP32[$0+172>>2]+($3<<2)|0;$4=HEAPU8[$10|0];label$7:{if(!$4){break label$7}if($4>>>0<=2){break label$4}$6=HEAP32[$0+160>>2];$2=HEAP32[$0+2280>>2];$5=(HEAP32[$0+2268>>2]+(Math_imul($6,$2)<<4)|0)+($3<<4)|0;if(HEAP32[$0+2308>>2]==1){if(($3|0)>=1){FUNCTION_TABLE[HEAP32[283182]]($5,$2,$4+4|0)}if(HEAPU8[$10+2|0]){FUNCTION_TABLE[HEAP32[283184]]($5,$2,$4)}if(($13|0)>=1){FUNCTION_TABLE[HEAP32[283181]]($5,$2,$4+4|0)}if(!HEAPU8[$10+2|0]){break label$7}FUNCTION_TABLE[HEAP32[283183]]($5,$2,$4);break label$7}$8=HEAPU8[$10+1|0];$9=$3<<3;$11=HEAP32[$0+2284>>2];$6=Math_imul($11,$6)<<3;$7=$9+($6+HEAP32[$0+2276>>2]|0)|0;$9=$9+($6+HEAP32[$0+2272>>2]|0)|0;$6=HEAPU8[$10+3|0];if(($3|0)>=1){$15=$4+4|0;FUNCTION_TABLE[HEAP32[283174]]($5,$2,$15,$8,$6);FUNCTION_TABLE[HEAP32[283176]]($9,$7,$11,$15,$8,$6)}if(HEAPU8[$10+2|0]){FUNCTION_TABLE[HEAP32[283178]]($5,$2,$4,$8,$6);FUNCTION_TABLE[HEAP32[283180]]($9,$7,$11,$4,$8,$6)}if(($13|0)>=1){$15=$4+4|0;FUNCTION_TABLE[HEAP32[283173]]($5,$2,$15,$8,$6);FUNCTION_TABLE[HEAP32[283175]]($9,$7,$11,$15,$8,$6)}if(!HEAPU8[$10+2|0]){break label$7}FUNCTION_TABLE[HEAP32[283177]]($5,$2,$4,$8,$6);FUNCTION_TABLE[HEAP32[283179]]($9,$7,$11,$4,$8,$6)}$3=$3+1|0;if(($3|0)>2]){continue}break}}$9=Math_imul($14,$19)<<4;$7=HEAPU8[$20+175175|0];$14=Math_imul($7,$14);$8=$16-$14|0;$4=Math_imul($12,$19)<<3;$11=Math_imul($12,$7>>>1|0);$6=$17-$11|0;$10=$21-$11|0;label$15:{if(!HEAP32[$0+540>>2]){break label$15}$3=HEAP32[$0+296>>2];$2=HEAP32[$0+304>>2];if(($3|0)>=($2|0)){break label$15}$5=$0+544|0;while(1){$12=HEAP32[$0+176>>2]+Math_imul($3,800)|0;$13=HEAPU8[$12+796|0];if($13>>>0>=4){$20=HEAP32[$0+2276>>2];$17=$3<<3;$2=HEAP32[$0+2284>>2];$16=Math_imul($2,HEAP32[$0+160>>2])<<3;Dither8x8($5,$17+($16+HEAP32[$0+2272>>2]|0)|0,$2,$13);Dither8x8($5,$17+($20+$16|0)|0,$2,HEAPU8[$12+796|0]);$2=HEAP32[$0+304>>2]}$3=$3+1|0;if(($3|0)<($2|0)){continue}break}}$8=$8+$9|0;$6=$4+$6|0;$10=$4+$10|0;$12=$22+ -1|0;$2=1;label$18:{if(!HEAP32[$1+44>>2]){break label$18}$3=$18<<4;$13=$3+16|0;label$19:{if($18){$4=$8;$5=$10;$2=$6;$3=$3-$7|0;break label$19}$2=$4+HEAP32[$0+2276>>2]|0;$5=$4+HEAP32[$0+2272>>2]|0;$4=$9+HEAP32[$0+2268>>2]|0;$3=0}HEAP32[$1+28>>2]=$2;HEAP32[$1+24>>2]=$5;HEAP32[$1+20>>2]=$4;$4=0;HEAP32[$1+104>>2]=0;$2=HEAP32[$1+88>>2];$5=$13-(($18|0)>=($12|0)?0:$7)|0;$7=($5|0)>($2|0)?$2:$5;if(!(!HEAP32[$0+2348>>2]|($7|0)<=($3|0))){$4=VP8DecompressAlphaRows($0,$3,$7-$3|0);HEAP32[$1+104>>2]=$4;if(!$4){break label$2}}$5=HEAP32[$1+84>>2];if(($5|0)>($3|0)){$3=$5-$3|0;if($3&1){break label$3}HEAP32[$1+20>>2]=HEAP32[$1+20>>2]+Math_imul($3,HEAP32[$0+2280>>2]);$2=Math_imul(HEAP32[$0+2284>>2],$3>>1);HEAP32[$1+24>>2]=$2+HEAP32[$1+24>>2];HEAP32[$1+28>>2]=$2+HEAP32[$1+28>>2];label$23:{if(!$4){$4=0;break label$23}$4=Math_imul($3,HEAP32[$1>>2])+$4|0;HEAP32[$1+104>>2]=$4}$3=$5}$2=1;if(($7|0)<=($3|0)){break label$18}$2=HEAP32[$1+76>>2];HEAP32[$1+20>>2]=$2+HEAP32[$1+20>>2];$9=$2>>1;HEAP32[$1+24>>2]=$9+HEAP32[$1+24>>2];HEAP32[$1+28>>2]=$9+HEAP32[$1+28>>2];if($4){HEAP32[$1+104>>2]=$4+$2}HEAP32[$1+8>>2]=$3-$5;HEAP32[$1+16>>2]=$7-$3;HEAP32[$1+12>>2]=HEAP32[$1+80>>2]-$2;$2=FUNCTION_TABLE[HEAP32[$1+44>>2]]($1)|0}if(!(HEAP32[$0+156>>2]!=($19+1|0)|($18|0)>=($12|0))){memcpy(HEAP32[$0+2268>>2]-$14|0,$8+(HEAP32[$0+2280>>2]<<4)|0,$14);$1=0-$11|0;memcpy($1+HEAP32[$0+2272>>2]|0,$10+(HEAP32[$0+2284>>2]<<3)|0,$11);memcpy($1+HEAP32[$0+2276>>2]|0,$6+(HEAP32[$0+2284>>2]<<3)|0,$11)}return $2|0}__assert_fail(175366,175020,214,175377);abort()}__assert_fail(175341,175020,474,175356);abort()}if(!HEAP32[$0>>2]){HEAP32[$0+8>>2]=175312;HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=0}return 0}function btMinkowskiPenetrationDepthSolver__getPenetrationDirections_28_29(){label$1:{if(HEAP8[593008]&1){break label$1}if(!__cxa_guard_acquire(593008)){break label$1}HEAP32[148168]=1042701022;HEAP32[148169]=1056964440;HEAP32[148164]=-1093024784;HEAP32[148165]=1050556081;HEAP32[148160]=-1093024784;HEAP32[148161]=-1096927567;HEAP32[148156]=1042701022;HEAP32[148157]=-1090519208;HEAP32[148152]=1057396286;HEAP32[148153]=0;HEAP32[148148]=1060121912;HEAP32[148149]=1056964507;HEAP32[148144]=-1098475836;HEAP32[148145]=1062148969;HEAP32[148140]=-1084636143;HEAP32[148141]=0;HEAP32[148136]=-1098475836;HEAP32[148137]=-1085334679;HEAP32[148132]=1060121912;HEAP32[148133]=-1090519141;HEAP32[148128]=1058437413;HEAP32[148129]=1062149053;HEAP32[148124]=-2147483648;HEAP32[148125]=1065353216;HEAP32[148120]=-1089046235;HEAP32[148121]=1062149053;HEAP32[148116]=-1082951543;HEAP32[148117]=1050556148;HEAP32[148112]=-1082951543;HEAP32[148113]=-1096927500;HEAP32[148108]=-1089046235;HEAP32[148109]=-1085334595;HEAP32[148104]=0;HEAP32[148105]=-1082130432;HEAP32[148100]=1058437413;HEAP32[148101]=-1085334595;HEAP32[148096]=1064532105;HEAP32[148097]=-1096927500;HEAP32[148092]=1064532105;HEAP32[148093]=1050556148;HEAP32[148088]=1049007812;HEAP32[148089]=1062148969;HEAP32[148084]=-1087361736;HEAP32[148085]=1056964507;HEAP32[148080]=-1104782626;HEAP32[148081]=1056964440;HEAP32[148076]=-1087361736;HEAP32[148077]=-1090519141;HEAP32[148072]=-1090087362;HEAP32[148073]=-2147483648;HEAP32[148068]=1062847505;HEAP32[148069]=-2147483648;HEAP32[148064]=1054458864;HEAP32[148065]=1050556081;HEAP32[148060]=1049007812;HEAP32[148061]=-1085334679;HEAP32[148056]=-1104782626;HEAP32[148057]=-1090519208;HEAP32[148052]=1054458864;HEAP32[148053]=-1096927567;HEAP32[148048]=-2147483648;HEAP32[148049]=0;HEAP32[148044]=1063581978;HEAP32[148045]=0;HEAP32[148040]=1049461434;HEAP32[148041]=1062847522;HEAP32[148036]=-1086767520;HEAP32[148037]=1057396202;HEAP32[148032]=-1086767520;HEAP32[148033]=-1090087446;HEAP32[148028]=1049461434;HEAP32[148029]=-1084636126;HEAP32[148024]=1060716128;HEAP32[148025]=1057396202;HEAP32[148020]=-1098022214;HEAP32[148021]=1062847522;HEAP32[148016]=-1083901670;HEAP32[148017]=-2147483648;HEAP32[148012]=-1098022214;HEAP32[148013]=-1084636126;HEAP32[148008]=1060716128;HEAP32[148009]=-1090087446;HEAP32[148006]=-1082130432;HEAP32[148007]=0;HEAP32[148004]=0;HEAP32[148005]=-2147483648;HEAP32[148170]=1062847606;HEAP32[148171]=0;HEAP32[148166]=1062847606;HEAP32[148167]=0;HEAP32[148162]=1062847606;HEAP32[148163]=0;HEAP32[148158]=1062847606;HEAP32[148159]=0;HEAP32[148154]=1062847572;HEAP32[148155]=0;HEAP32[148150]=1057396386;HEAP32[148151]=0;HEAP32[148146]=1057396420;HEAP32[148147]=0;HEAP32[148142]=1057396386;HEAP32[148143]=0;HEAP32[148138]=1057396420;HEAP32[148139]=0;HEAP32[148134]=1057396386;HEAP32[148135]=0;HEAP32[148130]=-2147483648;HEAP32[148131]=0;HEAP32[148126]=-2147483648;HEAP32[148127]=0;HEAP32[148122]=-2147483648;HEAP32[148123]=0;HEAP32[148118]=-2147483648;HEAP32[148119]=0;HEAP32[148114]=-2147483648;HEAP32[148115]=0;HEAP32[148110]=0;HEAP32[148111]=0;HEAP32[148106]=0;HEAP32[148107]=0;HEAP32[148102]=0;HEAP32[148103]=0;HEAP32[148098]=0;HEAP32[148099]=0;HEAP32[148094]=0;HEAP32[148095]=0;HEAP32[148090]=-1090087228;HEAP32[148091]=0;HEAP32[148086]=-1090087262;HEAP32[148087]=0;HEAP32[148082]=-1084636042;HEAP32[148083]=0;HEAP32[148078]=-1090087262;HEAP32[148079]=0;HEAP32[148074]=-1084636076;HEAP32[148075]=0;HEAP32[148070]=-1090087262;HEAP32[148071]=0;HEAP32[148066]=-1084636042;HEAP32[148067]=0;HEAP32[148062]=-1090087228;HEAP32[148063]=0;HEAP32[148058]=-1084636042;HEAP32[148059]=0;HEAP32[148054]=-1084636042;HEAP32[148055]=0;HEAP32[148050]=1065353216;HEAP32[148051]=0;HEAP32[148046]=1055193471;HEAP32[148047]=0;HEAP32[148042]=1055193572;HEAP32[148043]=0;HEAP32[148038]=1055193572;HEAP32[148039]=0;HEAP32[148034]=1055193572;HEAP32[148035]=0;HEAP32[148030]=1055193605;HEAP32[148031]=0;HEAP32[148026]=-1092290076;HEAP32[148027]=0;HEAP32[148022]=-1092290043;HEAP32[148023]=0;HEAP32[148018]=-1092290177;HEAP32[148019]=0;HEAP32[148014]=-1092290076;HEAP32[148015]=0;HEAP32[148010]=-1092290076;HEAP32[148011]=0;__cxa_guard_release(593008)}}function bool_20std____2____insertion_sort_incomplete_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$6=1;$5=$1-$0>>2;label$1:{if($5>>>0<=5){label$3:{switch($5-2|0){case 0:$5=HEAP32[$2>>2];$8=HEAP32[$5+208>>2];$12=HEAP32[$0>>2];$14=HEAP32[HEAP32[$5+16>>2]+8>>2];$9=$1+ -4|0;$7=HEAP32[($14+(HEAP32[$9>>2]<<3)|0)+4>>2];$10=HEAP32[$5+204>>2];$5=HEAP32[$5+200>>2];$4=HEAP32[(($7>>>0)%($10>>>0)<<2)+$5>>2];$1=0;label$7:{if(($4|0)==-1){break label$7}label$8:{while(1){$1=Math_imul($4,12);$3=$1+$8|0;if(($7|0)==HEAP32[$3>>2]){break label$8}$4=HEAP32[($1+$8|0)+8>>2];if(($4|0)!=-1){continue}break}$3=0}$1=$3?$3+4|0:0}$2=HEAP32[($14+($12<<3)|0)+4>>2];$4=HEAP32[$5+(($2>>>0)%($10>>>0)<<2)>>2];if(HEAP32[$8+Math_imul($4,12)>>2]!=($2|0)){while(1){$4=HEAP32[($8+Math_imul($4,12)|0)+8>>2];if(($2|0)!=HEAP32[$8+Math_imul($4,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$1>>2],HEAP32[($8+Math_imul($4,12)|0)+4>>2])|0)>-1){break label$1}$1=HEAP32[$0>>2];HEAP32[$0>>2]=HEAP32[$9>>2];HEAP32[$9>>2]=$1;return 1;case 1:unsigned_20int_20std____2____sort3_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$0+4|0,$1+ -4|0,$2);return 1;case 2:unsigned_20int_20std____2____sort4_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$0+4|0,$0+8|0,$1+ -4|0,$2);return 1;case 3:break label$3;default:break label$1}}unsigned_20int_20std____2____sort5_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$0+4|0,$0+8|0,$0+12|0,$1+ -4|0,$2);return 1}$10=$0+8|0;unsigned_20int_20std____2____sort3_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$0+4|0,$10,$2);$3=$0+12|0;if(($3|0)==($1|0)){break label$1}label$12:{while(1){$7=HEAP32[$2>>2];$11=HEAP32[$7+208>>2];$15=HEAP32[$10>>2];$6=0;$5=$3;$8=HEAP32[HEAP32[$7+16>>2]+8>>2];$9=HEAP32[($8+(HEAP32[$3>>2]<<3)|0)+4>>2];$12=HEAP32[$7+204>>2];$7=HEAP32[$7+200>>2];$4=HEAP32[(($9>>>0)%($12>>>0)<<2)+$7>>2];if(($4|0)!=-1){label$15:{while(1){$6=Math_imul($4,12);$3=$6+$11|0;if(($9|0)==HEAP32[$3>>2]){break label$15}$4=HEAP32[($6+$11|0)+8>>2];if(($4|0)!=-1){continue}break}$3=0}$6=$3?$3+4|0:0}$3=HEAP32[($8+($15<<3)|0)+4>>2];$4=HEAP32[$7+(($3>>>0)%($12>>>0)<<2)>>2];if(HEAP32[$11+Math_imul($4,12)>>2]!=($3|0)){while(1){$4=HEAP32[($11+Math_imul($4,12)|0)+8>>2];if(($3|0)!=HEAP32[$11+Math_imul($4,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$6>>2],HEAP32[($11+Math_imul($4,12)|0)+4>>2])|0)<=-1){$16=HEAP32[$5>>2];$3=$5;while(1){label$21:{$6=$10;HEAP32[$3>>2]=HEAP32[$6>>2];if(($0|0)==($6|0)){$6=$0;break label$21}$10=$6+ -4|0;$11=HEAP32[$10>>2];$3=HEAP32[$2>>2];$13=HEAP32[$3+208>>2];$12=HEAP32[$3+200>>2];$15=HEAP32[HEAP32[$3+16>>2]+8>>2];$8=HEAP32[($15+($16<<3)|0)+4>>2];$9=HEAP32[$3+204>>2];$4=HEAP32[$12+(($8>>>0)%($9>>>0)<<2)>>2];$3=0;label$23:{if(($4|0)==-1){break label$23}label$24:{while(1){$7=Math_imul($4,12);$3=$7+$13|0;if(($8|0)==HEAP32[$3>>2]){break label$24}$4=HEAP32[($7+$13|0)+8>>2];if(($4|0)!=-1){continue}break}$3=0}$3=$3?$3+4|0:0}$7=$3;$3=HEAP32[($15+($11<<3)|0)+4>>2];$4=HEAP32[$12+(($3>>>0)%($9>>>0)<<2)>>2];if(HEAP32[Math_imul($4,12)+$13>>2]!=($3|0)){while(1){$4=HEAP32[(Math_imul($4,12)+$13|0)+8>>2];if(($3|0)!=HEAP32[Math_imul($4,12)+$13>>2]){continue}break}}$3=$6;if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$7>>2],HEAP32[(Math_imul($4,12)+$13|0)+4>>2])|0)<0){continue}}break}HEAP32[$6>>2]=$16;$14=$14+1|0;if(($14|0)==8){break label$12}}$10=$5;$3=$5+4|0;if(($3|0)!=($1|0)){continue}break}return 1}$6=($5+4|0)==($1|0)}return $6}function dmGameSystem__SetCollisionObjectData_28dmGameSystem__CollisionWorld__2c_20dmGameSystem__CollisionComponent__2c_20dmGameSystem__CollisionObjectResource__2c_20dmPhysicsDDF__CollisionObjectDesc__2c_20bool_2c_20dmPhysics__CollisionObjectData__29($0,$1,$2,$3,$4,$5){HEAP32[$5>>2]=$1;HEAP32[$5+4>>2]=HEAP32[$3+4>>2];HEAP32[$5+8>>2]=HEAP32[$3+8>>2];HEAP32[$5+12>>2]=HEAP32[$3+12>>2];HEAP32[$5+16>>2]=HEAP32[$3+16>>2];$1=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,HEAP32[$2+128>>2],HEAP32[$2+132>>2]);HEAP16[$5+30>>1]=0;HEAP16[$5+28>>1]=$1;HEAP32[$5+20>>2]=HEAP32[$3+48>>2];HEAP32[$5+24>>2]=HEAP32[$3+52>>2];HEAP16[$5+32>>1]=HEAPU16[$5+32>>1]&65532|(HEAPU8[$3+56|0]|($4?2:0));$1=HEAP32[$2+4>>2];$3=$1;$4=HEAP32[$2>>2];label$1:{if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+12>>2];$3=$1;$4=HEAP32[$2+8>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+20>>2];$3=$1;$4=HEAP32[$2+16>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+28>>2];$3=$1;$4=HEAP32[$2+24>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+36>>2];$3=$1;$4=HEAP32[$2+32>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+44>>2];$3=$1;$4=HEAP32[$2+40>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+52>>2];$3=$1;$4=HEAP32[$2+48>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+60>>2];$3=$1;$4=HEAP32[$2+56>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+68>>2];$3=$1;$4=HEAP32[$2+64>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+76>>2];$3=$1;$4=HEAP32[$2+72>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+84>>2];$3=$1;$4=HEAP32[$2+80>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+92>>2];$3=$1;$4=HEAP32[$2+88>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+100>>2];$3=$1;$4=HEAP32[$2+96>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+108>>2];$3=$1;$4=HEAP32[$2+104>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+116>>2];$3=$1;$4=HEAP32[$2+112>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+124>>2];$3=$1;$2=HEAP32[$2+120>>2];if(!($1|$2)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$2,$3)|HEAPU16[$5+30>>1]}}function dispose_chunk($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$5=$0+$1|0;label$1:{label$2:{$2=HEAP32[$0+4>>2];if($2&1){break label$2}if(!($2&3)){break label$1}$2=HEAP32[$0>>2];$1=$2+$1|0;$0=$0-$2|0;if(($0|0)!=HEAP32[310333]){if($2>>>0<=255){$4=$2>>>3|0;$2=HEAP32[$0+8>>2];$3=HEAP32[$0+12>>2];if(($3|0)==($2|0)){HEAP32[310328]=HEAP32[310328]&__wasm_rotl_i32(-2,$4);break label$2}HEAP32[$2+12>>2]=$3;HEAP32[$3+8>>2]=$2;break label$2}$7=HEAP32[$0+24>>2];$2=HEAP32[$0+12>>2];label$6:{if(($2|0)!=($0|0)){$3=HEAP32[$0+8>>2];HEAP32[$3+12>>2]=$2;HEAP32[$2+8>>2]=$3;break label$6}label$9:{$3=$0+20|0;$4=HEAP32[$3>>2];if($4){break label$9}$3=$0+16|0;$4=HEAP32[$3>>2];if($4){break label$9}$2=0;break label$6}while(1){$6=$3;$2=$4;$3=$2+20|0;$4=HEAP32[$3>>2];if($4){continue}$3=$2+16|0;$4=HEAP32[$2+16>>2];if($4){continue}break}HEAP32[$6>>2]=0}if(!$7){break label$2}$3=HEAP32[$0+28>>2];$4=($3<<2)+1241616|0;label$11:{if(HEAP32[$4>>2]==($0|0)){HEAP32[$4>>2]=$2;if($2){break label$11}HEAP32[310329]=HEAP32[310329]&__wasm_rotl_i32(-2,$3);break label$2}HEAP32[$7+(HEAP32[$7+16>>2]==($0|0)?16:20)>>2]=$2;if(!$2){break label$2}}HEAP32[$2+24>>2]=$7;$3=HEAP32[$0+16>>2];if($3){HEAP32[$2+16>>2]=$3;HEAP32[$3+24>>2]=$2}$3=HEAP32[$0+20>>2];if(!$3){break label$2}HEAP32[$2+20>>2]=$3;HEAP32[$3+24>>2]=$2;break label$2}$2=HEAP32[$5+4>>2];if(($2&3)!=3){break label$2}HEAP32[310330]=$1;HEAP32[$5+4>>2]=$2&-2;HEAP32[$0+4>>2]=$1|1;HEAP32[$5>>2]=$1;return}$2=HEAP32[$5+4>>2];label$14:{if(!($2&2)){if(HEAP32[310334]==($5|0)){HEAP32[310334]=$0;$1=HEAP32[310331]+$1|0;HEAP32[310331]=$1;HEAP32[$0+4>>2]=$1|1;if(HEAP32[310333]!=($0|0)){break label$1}HEAP32[310330]=0;HEAP32[310333]=0;return}if(HEAP32[310333]==($5|0)){HEAP32[310333]=$0;$1=HEAP32[310330]+$1|0;HEAP32[310330]=$1;HEAP32[$0+4>>2]=$1|1;HEAP32[$0+$1>>2]=$1;return}$1=($2&-8)+$1|0;label$18:{if($2>>>0<=255){$4=$2>>>3|0;$2=HEAP32[$5+8>>2];$3=HEAP32[$5+12>>2];if(($3|0)==($2|0)){HEAP32[310328]=HEAP32[310328]&__wasm_rotl_i32(-2,$4);break label$18}HEAP32[$2+12>>2]=$3;HEAP32[$3+8>>2]=$2;break label$18}$7=HEAP32[$5+24>>2];$2=HEAP32[$5+12>>2];label$21:{if(($5|0)!=($2|0)){$3=HEAP32[$5+8>>2];HEAP32[$3+12>>2]=$2;HEAP32[$2+8>>2]=$3;break label$21}label$24:{$3=$5+20|0;$4=HEAP32[$3>>2];if($4){break label$24}$3=$5+16|0;$4=HEAP32[$3>>2];if($4){break label$24}$2=0;break label$21}while(1){$6=$3;$2=$4;$3=$2+20|0;$4=HEAP32[$3>>2];if($4){continue}$3=$2+16|0;$4=HEAP32[$2+16>>2];if($4){continue}break}HEAP32[$6>>2]=0}if(!$7){break label$18}$3=HEAP32[$5+28>>2];$4=($3<<2)+1241616|0;label$26:{if(HEAP32[$4>>2]==($5|0)){HEAP32[$4>>2]=$2;if($2){break label$26}HEAP32[310329]=HEAP32[310329]&__wasm_rotl_i32(-2,$3);break label$18}HEAP32[$7+(HEAP32[$7+16>>2]==($5|0)?16:20)>>2]=$2;if(!$2){break label$18}}HEAP32[$2+24>>2]=$7;$3=HEAP32[$5+16>>2];if($3){HEAP32[$2+16>>2]=$3;HEAP32[$3+24>>2]=$2}$3=HEAP32[$5+20>>2];if(!$3){break label$18}HEAP32[$2+20>>2]=$3;HEAP32[$3+24>>2]=$2}HEAP32[$0+4>>2]=$1|1;HEAP32[$0+$1>>2]=$1;if(HEAP32[310333]!=($0|0)){break label$14}HEAP32[310330]=$1;return}HEAP32[$5+4>>2]=$2&-2;HEAP32[$0+4>>2]=$1|1;HEAP32[$0+$1>>2]=$1}if($1>>>0<=255){$2=$1>>>3|0;$1=($2<<3)+1241352|0;$3=HEAP32[310328];$2=1<<$2;label$30:{if(!($3&$2)){HEAP32[310328]=$2|$3;$2=$1;break label$30}$2=HEAP32[$1+8>>2]}HEAP32[$1+8>>2]=$0;HEAP32[$2+12>>2]=$0;HEAP32[$0+12>>2]=$1;HEAP32[$0+8>>2]=$2;return}HEAP32[$0+16>>2]=0;HEAP32[$0+20>>2]=0;$3=$0;$4=$1>>>8|0;$2=0;label$32:{if(!$4){break label$32}$2=31;if($1>>>0>16777215){break label$32}$6=$4+1048320>>>16&8;$4=$4<<$6;$2=$4+520192>>>16&4;$5=$4<<$2;$4=$5+245760>>>16&2;$2=($5<<$4>>>15|0)-($4|($2|$6))|0;$2=($2<<1|$1>>>$2+21&1)+28|0}HEAP32[$3+28>>2]=$2;$4=($2<<2)+1241616|0;label$33:{$3=HEAP32[310329];$6=1<<$2;label$34:{if(!($3&$6)){HEAP32[310329]=$3|$6;HEAP32[$4>>2]=$0;break label$34}$3=$1<<(($2|0)==31?0:25-($2>>>1|0)|0);$2=HEAP32[$4>>2];while(1){$4=$2;if((HEAP32[$2+4>>2]&-8)==($1|0)){break label$33}$2=$3>>>29|0;$3=$3<<1;$6=$4+($2&4)|0;$2=HEAP32[$6+16>>2];if($2){continue}break}HEAP32[$6+16>>2]=$0}HEAP32[$0+24>>2]=$4;HEAP32[$0+12>>2]=$0;HEAP32[$0+8>>2]=$0;return}$1=HEAP32[$4+8>>2];HEAP32[$1+12>>2]=$0;HEAP32[$4+8>>2]=$0;HEAP32[$0+24>>2]=0;HEAP32[$0+12>>2]=$4;HEAP32[$0+8>>2]=$1}}function dmGui__AnimateNodeHash_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11){var $12=0,$13=0,$14=0,$15=Math_fround(0),$16=0,$17=0;$12=global$0-160|0;global$0=$12;$13=HEAP32[$0+32>>2];$14=$1&65535;label$1:{if((HEAP32[$0+36>>2]-$13|0)/576>>>0>$14>>>0){if(HEAPU16[($13+Math_imul($14,576)|0)+552>>1]!=($1>>>16|0)){break label$1}$16=dmGui__GetPropertyDesc_28unsigned_20long_20long_29($2,$3);label$3:{if($16){$13=($13+Math_imul($14,576)|0)+(HEAP32[$16+8>>2]<<4)|0;$2=HEAPU8[$16+12|0];if(($2|0)==255){$15=HEAPF32[$4>>2];$2=HEAP32[$5>>2];$3=HEAP32[$5+4>>2];$17=HEAP32[$5+16>>2];$14=$17;$16=HEAP32[$5+12>>2];HEAP32[$12+148>>2]=$16;HEAP32[$12+152>>2]=$14;HEAP32[$12+144>>2]=0;$17=HEAP32[$12+148>>2];HEAP32[$12+96>>2]=HEAP32[$12+144>>2];HEAP32[$12+100>>2]=$17;HEAP32[$12+104>>2]=HEAP32[$12+152>>2];HEAP32[$12+136>>2]=$2;HEAP32[$12+140>>2]=$3;HEAP32[$12+88>>2]=$2;HEAP32[$12+92>>2]=$3;dmGui__AnimateComponent_28dmGui__Scene__2c_20unsigned_20int_2c_20float__2c_20float_2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$13,$15,$12+88|0,$6,$7,$8,Math_fround(1),0,0,0);$15=HEAPF32[$4+4>>2];HEAP32[$12+148>>2]=$16;HEAP32[$12+152>>2]=$14;HEAP32[$12+144>>2]=0;$17=HEAP32[$12+148>>2];HEAP32[$12+72>>2]=HEAP32[$12+144>>2];HEAP32[$12+76>>2]=$17;HEAP32[$12+80>>2]=HEAP32[$12+152>>2];HEAP32[$12+136>>2]=$2;HEAP32[$12+140>>2]=$3;HEAP32[$12+64>>2]=$2;HEAP32[$12+68>>2]=$3;dmGui__AnimateComponent_28dmGui__Scene__2c_20unsigned_20int_2c_20float__2c_20float_2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$13+4|0,$15,$12- -64|0,$6,$7,$8,Math_fround(1),0,0,0);$15=HEAPF32[$4+8>>2];HEAP32[$12+148>>2]=$16;HEAP32[$12+152>>2]=$14;HEAP32[$12+144>>2]=0;$14=HEAP32[$12+148>>2];HEAP32[$12+48>>2]=HEAP32[$12+144>>2];HEAP32[$12+52>>2]=$14;HEAP32[$12+56>>2]=HEAP32[$12+152>>2];HEAP32[$12+136>>2]=$2;HEAP32[$12+140>>2]=$3;HEAP32[$12+40>>2]=$2;HEAP32[$12+44>>2]=$3;dmGui__AnimateComponent_28dmGui__Scene__2c_20unsigned_20int_2c_20float__2c_20float_2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$13+8|0,$15,$12+40|0,$6,$7,$8,Math_fround(1),0,0,0);$15=HEAPF32[$4+12>>2];HEAP32[$12+32>>2]=HEAP32[$5+16>>2];$2=HEAP32[$5+12>>2];HEAP32[$12+24>>2]=HEAP32[$5+8>>2];HEAP32[$12+28>>2]=$2;$2=HEAP32[$5+4>>2];HEAP32[$12+16>>2]=HEAP32[$5>>2];HEAP32[$12+20>>2]=$2;dmGui__AnimateComponent_28dmGui__Scene__2c_20unsigned_20int_2c_20float__2c_20float_2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$13+12|0,$15,$12+16|0,$6,$7,$8,Math_fround(1),$9,$10,$11);break label$3}$2=$2<<2;$15=HEAPF32[$2+$4>>2];HEAP32[$12+128>>2]=HEAP32[$5+16>>2];$3=HEAP32[$5+12>>2];HEAP32[$12+120>>2]=HEAP32[$5+8>>2];HEAP32[$12+124>>2]=$3;$3=HEAP32[$5+4>>2];HEAP32[$12+112>>2]=HEAP32[$5>>2];HEAP32[$12+116>>2]=$3;dmGui__AnimateComponent_28dmGui__Scene__2c_20unsigned_20int_2c_20float__2c_20float_2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$2+$13|0,$15,$12+112|0,$6,$7,$8,Math_fround(1),$9,$10,$11);break label$3}HEAP32[$12>>2]=dmHashReverseSafe64($2,$3);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,200919,$12)}global$0=$12+160|0;return}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,3758,200903);abort()}function b2DynamicTree__InsertLeaf_28int_29($0,$1){var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=0,$6=0,$7=Math_fround(0),$8=0,$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=0,$24=Math_fround(0);HEAP32[$0+24>>2]=HEAP32[$0+24>>2]+1;$8=HEAP32[$0>>2];if(($8|0)==-1){HEAP32[$0>>2]=$1;HEAP32[(HEAP32[$0+4>>2]+Math_imul($1,36)|0)+20>>2]=-1;return}$6=HEAP32[$0+4>>2];$2=$6+Math_imul($1,36)|0;$10=HEAPF32[$2+8>>2];$11=HEAPF32[$2+4>>2];$14=HEAPF32[$2>>2];$15=HEAPF32[$2+12>>2];$9=HEAP32[($6+Math_imul($8,36)|0)+24>>2];label$2:{if(($9|0)==-1){break label$2}while(1){$2=$6+Math_imul($8,36)|0;$4=HEAPF32[$2+8>>2];$3=HEAPF32[$2>>2];$7=HEAPF32[$2+12>>2];$12=HEAPF32[$2+4>>2];$13=Math_fround(Math_fround(($4>$10?$4:$10)-($3<$14?$3:$14))+Math_fround(($7>$15?$7:$15)-($12<$11?$12:$11)));$13=Math_fround($13+$13);$4=Math_fround(Math_fround($4-$3)+Math_fround($7-$12));$4=Math_fround($13-Math_fround($4+$4));$4=Math_fround($4+$4);$5=$6+Math_imul($9,36)|0;$3=HEAPF32[$5+8>>2];$7=$10>$3?$10:$3;$12=HEAPF32[$5+4>>2];$16=$11<$12?$11:$12;$17=HEAPF32[$5>>2];$20=$14<$17?$14:$17;$18=HEAPF32[$5+12>>2];$21=$15>$18?$15:$18;$19=HEAP32[$2+28>>2];label$4:{if(HEAP32[$5+24>>2]==-1){$3=Math_fround(Math_fround($7-$20)+Math_fround($21-$16));$7=Math_fround($3+$3);break label$4}$7=Math_fround(Math_fround($7-$20)+Math_fround($21-$16));$3=Math_fround(Math_fround($3-$17)+Math_fround($18-$12));$7=Math_fround(Math_fround($7+$7)-Math_fround($3+$3))}$2=$6+Math_imul($19,36)|0;$12=HEAPF32[$2+8>>2];$16=$10>$12?$10:$12;$17=HEAPF32[$2+4>>2];$20=$11<$17?$11:$17;$18=HEAPF32[$2>>2];$21=$14<$18?$14:$18;$22=HEAPF32[$2+12>>2];$24=$15>$22?$15:$22;$3=Math_fround($13+$13);$13=Math_fround($4+$7);$5=!!($3<$13);label$6:{if(HEAP32[$2+24>>2]==-1){$7=Math_fround(Math_fround($16-$21)+Math_fround($24-$20));$7=Math_fround($7+$7);break label$6}$7=Math_fround(Math_fround($16-$21)+Math_fround($24-$20));$16=Math_fround($7+$7);$7=Math_fround(Math_fround($12-$18)+Math_fround($22-$17));$7=Math_fround($16-Math_fround($7+$7))}$4=Math_fround($4+$7);if($3<$4?$5:0){break label$2}$8=$13<$4?$9:$19;$9=HEAP32[($6+Math_imul($8,36)|0)+24>>2];if(($9|0)!=-1){continue}break}}$19=Math_imul($8,36);$5=HEAP32[($19+$6|0)+20>>2];$6=b2DynamicTree__AllocateNode_28_29($0);$23=Math_imul($6,36);HEAP32[($23+HEAP32[$0+4>>2]|0)+20>>2]=$5;$9=HEAP32[$0+4>>2];$2=$9+$23|0;HEAP32[$2+16>>2]=0;$9=$9+$19|0;$4=HEAPF32[$9>>2];$3=HEAPF32[$9+4>>2];HEAPF32[$2+4>>2]=$11<$3?$11:$3;HEAPF32[$2>>2]=$14<$4?$14:$4;$4=HEAPF32[$9+8>>2];$3=HEAPF32[$9+12>>2];HEAPF32[$2+12>>2]=$15>$3?$15:$3;HEAPF32[$2+8>>2]=$10>$4?$10:$4;$2=HEAP32[$0+4>>2];HEAP32[($2+$23|0)+32>>2]=HEAP32[($2+$19|0)+32>>2]+1;label$8:{if(($5|0)!=-1){$5=$2+Math_imul($5,36)|0;HEAP32[(HEAP32[$5+24>>2]==($8|0)?$5+24|0:$5+28|0)>>2]=$6;$5=$2+Math_imul($6,36)|0;HEAP32[$5+28>>2]=$1;HEAP32[$5+24>>2]=$8;HEAP32[($2+Math_imul($8,36)|0)+20>>2]=$6;$2=(HEAP32[$0+4>>2]+Math_imul($1,36)|0)+20|0;break label$8}$5=$2+Math_imul($6,36)|0;HEAP32[$5+28>>2]=$1;HEAP32[$5+24>>2]=$8;HEAP32[($2+Math_imul($8,36)|0)+20>>2]=$6;HEAP32[(HEAP32[$0+4>>2]+Math_imul($1,36)|0)+20>>2]=$6;$2=$0}HEAP32[$2>>2]=$6;label$10:{label$11:{$1=HEAP32[(HEAP32[$0+4>>2]+Math_imul($1,36)|0)+20>>2];if(($1|0)!=-1){while(1){$1=b2DynamicTree__Balance_28int_29($0,$1);$6=HEAP32[$0+4>>2];$2=Math_imul($1,36);$1=$6+$2|0;$8=HEAP32[$1+24>>2];if(($8|0)==-1){break label$11}$5=HEAP32[$1+28>>2];if(($5|0)==-1){break label$10}$8=$6+Math_imul($8,36)|0;$9=HEAP32[$8+32>>2];$6=$6+Math_imul($5,36)|0;$5=HEAP32[$6+32>>2];HEAP32[$1+32>>2]=(($9|0)>($5|0)?$9:$5)+1;$4=HEAPF32[$6>>2];$3=HEAPF32[$8>>2];$10=HEAPF32[$8+4>>2];$11=HEAPF32[$6+4>>2];HEAPF32[$1+4>>2]=$10<$11?$10:$11;HEAPF32[$1>>2]=$3<$4?$3:$4;$4=HEAPF32[$6+8>>2];$3=HEAPF32[$8+8>>2];$10=HEAPF32[$8+12>>2];$11=HEAPF32[$6+12>>2];HEAPF32[$1+12>>2]=$10>$11?$10:$11;HEAPF32[$1+8>>2]=$3>$4?$3:$4;$1=HEAP32[($2+HEAP32[$0+4>>2]|0)+20>>2];if(($1|0)!=-1){continue}break}}return}__assert_fail(93984,93770,307,93999);abort()}__assert_fail(94010,93770,308,93999);abort()}function dmGameSystem__UpdateTransforms_28dmGameSystem__SpineModelWorld__29($0){var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=0,$19=0,$20=0;$2=global$0-144|0;global$0=$2;label$1:{if(HEAP8[586216]&1){break label$1}if(!__cxa_guard_acquire(586216)){break label$1}if(HEAPU8[1130703]){$1=dmProfile__AllocateScope_28char_20const__29(50273)}else{$1=-1}HEAP32[146553]=$1;__cxa_guard_release(586216)}label$3:{if(HEAP8[586224]&1){break label$3}if(!__cxa_guard_acquire(586224)){break label$3}if(HEAPU8[1130703]){$1=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(50284,16)}else{$1=0}HEAP32[146555]=$1;__cxa_guard_release(586224)}$1=HEAP32[146553];label$5:{if(($1|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($2+128|0,$1,50284,HEAP32[146555]);break label$5}HEAP32[$2+128>>2]=0}$1=HEAP32[$0>>2];$3=HEAP32[$0+4>>2]-$1|0;label$7:{if(!$3){break label$7}$3=$3>>2;$18=$3>>>0>1?$3:1;$3=0;while(1){$1=HEAP32[($3<<2)+$1>>2];label$9:{if((HEAPU8[$1+982|0]&5)!=5|!HEAP32[HEAP32[$1+132>>2]+196>>2]){break label$9}$15=dmGameObject__GetWorldMatrix_28dmGameObject__Instance__29(HEAP32[$1>>2]);$9=HEAPF32[$1+20>>2];$6=HEAPF32[$1+28>>2];$13=HEAPF32[$1+24>>2];$10=HEAPF32[$1+56>>2];$7=HEAPF32[$1+52>>2];$11=HEAPF32[$1+48>>2];$19=HEAP32[$1+40>>2];$4=HEAPF32[$1+16>>2];$20=HEAP32[$1+36>>2];HEAP32[$2+112>>2]=HEAP32[$1+32>>2];HEAP32[$2+116>>2]=$20;HEAP32[$2+124>>2]=1065353216;HEAP32[$2+120>>2]=$19;HEAPF32[$2+76>>2]=$11*Math_fround(0);HEAPF32[$2+92>>2]=$7*Math_fround(0);HEAPF32[$2+108>>2]=$10*Math_fround(0);$14=Math_fround($9+$9);$8=Math_fround($4*$14);$12=Math_fround($13+$13);$5=Math_fround($6*$12);HEAPF32[$2+68>>2]=$11*Math_fround($8+$5);$16=Math_fround($4*$12);$17=Math_fround($14*$6);HEAPF32[$2+72>>2]=$11*Math_fround($16-$17);HEAPF32[$2+80>>2]=$7*Math_fround($8-$5);$8=Math_fround($9*$12);$5=$6;$6=Math_fround($4+$4);$5=Math_fround($5*$6);HEAPF32[$2+88>>2]=$7*Math_fround($8+$5);HEAPF32[$2+96>>2]=$10*Math_fround($16+$17);HEAPF32[$2+100>>2]=$10*Math_fround($8-$5);$5=$7;$4=Math_fround(Math_fround(1)-Math_fround($4*$6));$7=Math_fround($13*$12);HEAPF32[$2+84>>2]=$5*Math_fround($4-$7);$6=$4;$4=Math_fround($9*$14);HEAPF32[$2+104>>2]=$10*Math_fround($6-$4);HEAPF32[$2+64>>2]=$11*Math_fround(Math_fround(Math_fround(1)-$4)-$7);if((HEAPU8[HEAP32[$1>>2]+137|0]&2)>>>1){Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($2,$15,$2- -64|0);HEAP32[$1+64>>2]=HEAP32[$2>>2];HEAP32[$1+68>>2]=HEAP32[$2+4>>2];HEAP32[$1+72>>2]=HEAP32[$2+8>>2];HEAP32[$1+76>>2]=HEAP32[$2+12>>2];HEAP32[$1+80>>2]=HEAP32[$2+16>>2];HEAP32[$1+84>>2]=HEAP32[$2+20>>2];HEAP32[$1+88>>2]=HEAP32[$2+24>>2];HEAP32[$1+92>>2]=HEAP32[$2+28>>2];HEAP32[$1+96>>2]=HEAP32[$2+32>>2];HEAP32[$1+100>>2]=HEAP32[$2+36>>2];HEAP32[$1+104>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+44>>2];HEAP32[$1+112>>2]=HEAP32[$2+48>>2];HEAP32[$1+116>>2]=HEAP32[$2+52>>2];HEAP32[$1+120>>2]=HEAP32[$2+56>>2];HEAP32[$1+124>>2]=HEAP32[$2+60>>2];break label$9}dmTransform__MulNoScaleZ_28Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__29($2,$15,$2- -64|0);HEAP32[$1+64>>2]=HEAP32[$2>>2];HEAP32[$1+68>>2]=HEAP32[$2+4>>2];HEAP32[$1+72>>2]=HEAP32[$2+8>>2];HEAP32[$1+76>>2]=HEAP32[$2+12>>2];HEAP32[$1+80>>2]=HEAP32[$2+16>>2];HEAP32[$1+84>>2]=HEAP32[$2+20>>2];HEAP32[$1+88>>2]=HEAP32[$2+24>>2];HEAP32[$1+92>>2]=HEAP32[$2+28>>2];HEAP32[$1+96>>2]=HEAP32[$2+32>>2];HEAP32[$1+100>>2]=HEAP32[$2+36>>2];HEAP32[$1+104>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+44>>2];HEAP32[$1+112>>2]=HEAP32[$2+48>>2];HEAP32[$1+116>>2]=HEAP32[$2+52>>2];HEAP32[$1+120>>2]=HEAP32[$2+56>>2];HEAP32[$1+124>>2]=HEAP32[$2+60>>2]}$3=$3+1|0;if(($18|0)==($3|0)){break label$7}$1=HEAP32[$0>>2];if(HEAP32[$0+4>>2]-$1>>2>>>0>$3>>>0){continue}break}__assert_fail(50664,50554,430,50675);abort()}if(HEAP32[$2+128>>2]){dmProfile__ProfileScope__EndScope_28_29($2+128|0)}global$0=$2+144|0}function dmGameSystem__RenderListDispatch_28dmRender__RenderListDispatchParams_20const__29_6($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$4=global$0-32|0;global$0=$4;label$1:{label$2:{label$3:{label$4:{$2=HEAP32[$0+8>>2];label$5:{if($2>>>0>2){break label$5}$1=HEAP32[$0+4>>2];label$6:{switch($2-1|0){default:HEAP32[$1+52>>2]=HEAP32[$1+44>>2];HEAP32[$1+24>>2]=HEAP32[$1+20>>2];break label$5;case 1:FUNCTION_TABLE[HEAP32[147557]](HEAP32[$1+40>>2],0,0,2);$0=HEAP32[$1+44>>2];FUNCTION_TABLE[HEAP32[147557]](HEAP32[$1+40>>2],HEAP32[$1+52>>2]-$0|0,$0,2);label$9:{if(HEAP8[586844]&1){break label$9}if(!__cxa_guard_acquire(586844)){break label$9}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(54164)}else{$0=-1}HEAP32[146710]=$0;__cxa_guard_release(586844)}$0=HEAP32[146710];if(($0|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,HEAP32[$1+52>>2]-HEAP32[$1+44>>2]|0)}label$12:{if(HEAP8[586852]&1){break label$12}if(!__cxa_guard_acquire(586852)){break label$12}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(54185)}else{$0=-1}HEAP32[146712]=$0;__cxa_guard_release(586852)}$0=HEAP32[146712];if(($0|0)==-1){break label$5}dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,(HEAP32[$1+52>>2]-HEAP32[$1+44>>2]|0)/20|0);break label$5;case 0:break label$6}}$5=HEAP32[$0+20>>2];$8=HEAP32[$0+16>>2];$9=HEAP32[$0+12>>2];$11=HEAP32[$0>>2];label$14:{if(HEAP8[586860]&1){break label$14}if(!__cxa_guard_acquire(586860)){break label$14}if(HEAPU8[1130703]){$0=dmProfile__AllocateScope_28char_20const__29(53450)}else{$0=-1}HEAP32[146714]=$0;__cxa_guard_release(586860)}label$16:{if(HEAP8[586868]&1){break label$16}if(!__cxa_guard_acquire(586868)){break label$16}if(HEAPU8[1130703]){$0=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(54203,11)}else{$0=0}HEAP32[146716]=$0;__cxa_guard_release(586868)}$0=HEAP32[146714];label$18:{if(($0|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($4+16|0,$0,54203,HEAP32[146716]);break label$18}HEAP32[$4+16>>2]=0}$2=HEAP32[$1+4>>2];$0=HEAPU16[(Math_imul(HEAP32[$8>>2],48)+$9|0)+32>>1];if(HEAP32[$1+8>>2]-$2>>2>>>0<=$0>>>0){break label$4}$6=HEAP32[$2+($0<<2)>>2];if(!(HEAP8[$6+946|0]&1)){break label$3}$10=HEAP32[$6+936>>2];$0=HEAP32[$6+932>>2];if(!$0){$0=HEAP32[$10>>2]}$3=HEAP32[$1+24>>2];$7=HEAP32[$1+20>>2];$2=(($3-$7|0)/736|0)+1|0;if((HEAP32[$1+28>>2]-$7|0)/736>>>0<$2>>>0){break label$2}HEAP32[$1+24>>2]=$7+Math_imul($2,736);$7=HEAP32[$1+52>>2];HEAP32[$1+52>>2]=dmGameSystem__CreateVertexData_28dmGameSystem__TileGridWorld__2c_20dmGameSystem__TileGridVertex__2c_20dmGameSystem__TextureSetResource__2c_20dmRender__RenderListEntry__2c_20unsigned_20int__2c_20unsigned_20int__29($1,$7,$0,$9,$8,$5);dmRender__RenderObject__Init_28_29($3);HEAP32[$3+644>>2]=HEAP32[$1+36>>2];$2=HEAP32[$1+40>>2];HEAP32[$3+688>>2]=1;HEAP32[$3+640>>2]=$2;HEAP32[$3+724>>2]=($7-HEAP32[$1+44>>2]|0)/20;HEAP32[$3+728>>2]=(HEAP32[$1+52>>2]-$7|0)/20;$5=$3;$2=HEAP32[$6+928>>2];if(!$2){$2=HEAP32[HEAP32[$6+936>>2]+24>>2]}HEAP32[$5+652>>2]=$2;HEAP32[$3+656>>2]=HEAP32[$0+48>>2];$2=HEAP32[$6+912>>2];if($2){$0=0;while(1){$5=($0<<5)+$6|0;dmRender__EnableRenderObjectConstant_28dmRender__RenderObject__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__29($3,HEAP32[$5+160>>2],HEAP32[$5+164>>2],$5+144|0);$0=$0+1|0;if(($2|0)!=($0|0)){continue}break}}$0=HEAP32[HEAP32[$10+4>>2]+16>>2];if($0>>>0>=4){break label$1}HEAP8[$3+734|0]=HEAPU8[$3+734|0]|1;$0=$0<<2;HEAP32[$3+700>>2]=HEAP32[$0+54528>>2];HEAP32[$3+696>>2]=HEAP32[$0+54512>>2];dmRender__AddToRender_28dmRender__RenderContext__2c_20dmRender__RenderObject__29($11,$3);if(!HEAP32[$4+16>>2]){break label$5}dmProfile__ProfileScope__EndScope_28_29($4+16|0)}global$0=$4+32|0;return}__assert_fail(54153,53995,430,54142);abort()}__assert_fail(54215,53386,611,54203);abort()}__assert_fail(54078,53995,457,54097);abort()}HEAP32[$4>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,53242,54232,$4);__assert_fail(54256,53386,661,54203);abort()}function dmGameSystem__UpdateTransforms_28dmGameSystem__ModelWorld__29($0){var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=0,$19=0,$20=0;$2=global$0-144|0;global$0=$2;label$1:{if(HEAP8[585500]&1){break label$1}if(!__cxa_guard_acquire(585500)){break label$1}if(HEAPU8[1130703]){$1=dmProfile__AllocateScope_28char_20const__29(46186)}else{$1=-1}HEAP32[146374]=$1;__cxa_guard_release(585500)}label$3:{if(HEAP8[585508]&1){break label$3}if(!__cxa_guard_acquire(585508)){break label$3}if(HEAPU8[1130703]){$1=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(46192,16)}else{$1=0}HEAP32[146376]=$1;__cxa_guard_release(585508)}$1=HEAP32[146374];label$5:{if(($1|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($2+128|0,$1,46192,HEAP32[146376]);break label$5}HEAP32[$2+128>>2]=0}$1=HEAP32[$0>>2];$3=HEAP32[$0+4>>2]-$1|0;label$7:{if(!$3){break label$7}$3=$3>>2;$18=$3>>>0>1?$3:1;$3=0;while(1){$1=HEAP32[($3<<2)+$1>>2];label$9:{if((HEAPU8[$1+1014|0]&5)!=5|!HEAP32[HEAP32[$1+132>>2]+196>>2]){break label$9}$15=dmGameObject__GetWorldMatrix_28dmGameObject__Instance__29(HEAP32[$1>>2]);$9=HEAPF32[$1+20>>2];$6=HEAPF32[$1+28>>2];$13=HEAPF32[$1+24>>2];$10=HEAPF32[$1+56>>2];$7=HEAPF32[$1+52>>2];$11=HEAPF32[$1+48>>2];$19=HEAP32[$1+40>>2];$4=HEAPF32[$1+16>>2];$20=HEAP32[$1+36>>2];HEAP32[$2+112>>2]=HEAP32[$1+32>>2];HEAP32[$2+116>>2]=$20;HEAP32[$2+124>>2]=1065353216;HEAP32[$2+120>>2]=$19;HEAPF32[$2+76>>2]=$11*Math_fround(0);HEAPF32[$2+92>>2]=$7*Math_fround(0);HEAPF32[$2+108>>2]=$10*Math_fround(0);$14=Math_fround($9+$9);$8=Math_fround($4*$14);$12=Math_fround($13+$13);$5=Math_fround($6*$12);HEAPF32[$2+68>>2]=$11*Math_fround($8+$5);$16=Math_fround($4*$12);$17=Math_fround($14*$6);HEAPF32[$2+72>>2]=$11*Math_fround($16-$17);HEAPF32[$2+80>>2]=$7*Math_fround($8-$5);$8=Math_fround($9*$12);$5=$6;$6=Math_fround($4+$4);$5=Math_fround($5*$6);HEAPF32[$2+88>>2]=$7*Math_fround($8+$5);HEAPF32[$2+96>>2]=$10*Math_fround($16+$17);HEAPF32[$2+100>>2]=$10*Math_fround($8-$5);$5=$7;$4=Math_fround(Math_fround(1)-Math_fround($4*$6));$7=Math_fround($13*$12);HEAPF32[$2+84>>2]=$5*Math_fround($4-$7);$6=$4;$4=Math_fround($9*$14);HEAPF32[$2+104>>2]=$10*Math_fround($6-$4);HEAPF32[$2+64>>2]=$11*Math_fround(Math_fround(Math_fround(1)-$4)-$7);if((HEAPU8[HEAP32[$1>>2]+137|0]&2)>>>1){Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($2,$15,$2- -64|0);HEAP32[$1+64>>2]=HEAP32[$2>>2];HEAP32[$1+68>>2]=HEAP32[$2+4>>2];HEAP32[$1+72>>2]=HEAP32[$2+8>>2];HEAP32[$1+76>>2]=HEAP32[$2+12>>2];HEAP32[$1+80>>2]=HEAP32[$2+16>>2];HEAP32[$1+84>>2]=HEAP32[$2+20>>2];HEAP32[$1+88>>2]=HEAP32[$2+24>>2];HEAP32[$1+92>>2]=HEAP32[$2+28>>2];HEAP32[$1+96>>2]=HEAP32[$2+32>>2];HEAP32[$1+100>>2]=HEAP32[$2+36>>2];HEAP32[$1+104>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+44>>2];HEAP32[$1+112>>2]=HEAP32[$2+48>>2];HEAP32[$1+116>>2]=HEAP32[$2+52>>2];HEAP32[$1+120>>2]=HEAP32[$2+56>>2];HEAP32[$1+124>>2]=HEAP32[$2+60>>2];break label$9}dmTransform__MulNoScaleZ_28Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__29($2,$15,$2- -64|0);HEAP32[$1+64>>2]=HEAP32[$2>>2];HEAP32[$1+68>>2]=HEAP32[$2+4>>2];HEAP32[$1+72>>2]=HEAP32[$2+8>>2];HEAP32[$1+76>>2]=HEAP32[$2+12>>2];HEAP32[$1+80>>2]=HEAP32[$2+16>>2];HEAP32[$1+84>>2]=HEAP32[$2+20>>2];HEAP32[$1+88>>2]=HEAP32[$2+24>>2];HEAP32[$1+92>>2]=HEAP32[$2+28>>2];HEAP32[$1+96>>2]=HEAP32[$2+32>>2];HEAP32[$1+100>>2]=HEAP32[$2+36>>2];HEAP32[$1+104>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+44>>2];HEAP32[$1+112>>2]=HEAP32[$2+48>>2];HEAP32[$1+116>>2]=HEAP32[$2+52>>2];HEAP32[$1+120>>2]=HEAP32[$2+56>>2];HEAP32[$1+124>>2]=HEAP32[$2+60>>2]}$3=$3+1|0;if(($18|0)==($3|0)){break label$7}$1=HEAP32[$0>>2];if(HEAP32[$0+4>>2]-$1>>2>>>0>$3>>>0){continue}break}__assert_fail(46554,46388,430,46565);abort()}if(HEAP32[$2+128>>2]){dmProfile__ProfileScope__EndScope_28_29($2+128|0)}global$0=$2+144|0}function dmGui__LuaAnimate_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=Math_fround(0),$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$1=global$0-288|0;global$0=$1;$16=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($1+272|0,$0,0);dmScript__GetInstance_28lua_State__29($0);$4=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[283639],205559);lua_settop($0,-2);dmGui__LuaCheckNode_28lua_State__2c_20int_2c_20unsigned_20int__29($0,1,$1+268|0);label$1:{if(dmScript__IsHash_28lua_State__2c_20int_29($0,2)){$7=dmScript__CheckHash_28lua_State__2c_20int_29($0,2);$8=i64toi32_i32$HIGH_BITS;break label$1}$7=dmHashString64(luaL_checklstring($0,2,0));$8=i64toi32_i32$HIGH_BITS}if(!dmGui__HasPropertyHash_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_29($7,$8)){HEAP32[$1+48>>2]=dmScript__GetStringFromHashOrString_28lua_State__2c_20int_2c_20char__2c_20unsigned_20int_29($0,2,$1+128|0);luaL_error($0,202661,$1+48|0)}label$4:{if(lua_isnumber($0,3)){$3=Math_fround(lua_tonumber($0,3));HEAPF32[$1+140>>2]=$3;HEAPF32[$1+136>>2]=$3;HEAPF32[$1+132>>2]=$3;HEAPF32[$1+128>>2]=$3;break label$4}$2=dmScript__ToVector3_28lua_State__2c_20int_29($0,3);if($2){dmGui__GetNodePropertyHash_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_29($1+112|0,$4,HEAP32[$1+268>>2],$7,$8);$5=HEAP32[$2+4>>2];$6=HEAP32[$2>>2];$2=HEAP32[$2+8>>2];HEAP32[$1+140>>2]=HEAP32[$1+124>>2];HEAP32[$1+136>>2]=$2;HEAP32[$1+128>>2]=$6;HEAP32[$1+132>>2]=$5;break label$4}$2=dmScript__CheckVector4_28lua_State__2c_20int_29($0,3);HEAP32[$1+128>>2]=HEAP32[$2>>2];HEAP32[$1+132>>2]=HEAP32[$2+4>>2];HEAP32[$1+136>>2]=HEAP32[$2+8>>2];HEAP32[$1+140>>2]=HEAP32[$2+12>>2]}label$7:{label$8:{label$9:{if(lua_isnumber($0,4)){$6=luaL_checkinteger($0,4);$2=0;if(($6|0)<42){break label$9}$0=luaL_error($0,202685,0);break label$7}if(!dmScript__IsVector_28lua_State__2c_20int_29($0,4)){break label$8}$12=dmScript__CheckVector_28lua_State__2c_20int_29($0,4);lua_rawgeti($0,-1e4,HEAP32[$4+8>>2]);lua_pushvalue($0,4);$9=dmScript__Ref_28lua_State__2c_20int_29($0,-2);lua_settop($0,-2);$13=2192;$6=41;$2=$4}$14=luaL_checknumber($0,5);label$12:{if(lua_isnumber($0,6)){$3=Math_fround(lua_tonumber($0,6));if((lua_type($0,7)|0)!=6){$11=-2;break label$12}$15=dmScript__CreateCallback_28lua_State__2c_20int_29($0,7);lua_rawgeti($0,-1e4,HEAP32[$4+8>>2]);lua_pushvalue($0,1);$11=luaL_ref($0,-2);lua_settop($0,-2);break label$12}$11=-2;$3=Math_fround(0);if((lua_type($0,6)|0)==-1){break label$12}luaL_typerror($0,6,202767)}$10=!lua_isnumber($0,8);$5=0;label$15:{if($10){break label$15}$5=luaL_checkinteger($0,8)}$10=HEAP32[$1+268>>2];if(!$15){HEAP32[$1+16>>2]=$9;HEAP32[$1+100>>2]=$2;HEAP32[$1+96>>2]=$13;$0=HEAP32[$1+100>>2];HEAP32[$1+8>>2]=HEAP32[$1+96>>2];HEAP32[$1+12>>2]=$0;HEAP32[$1+92>>2]=$12;HEAP32[$1+88>>2]=$6;HEAP32[$1+104>>2]=$9;$0=HEAP32[$1+92>>2];HEAP32[$1>>2]=HEAP32[$1+88>>2];HEAP32[$1+4>>2]=$0;$0=0;dmGui__AnimateNodeHash_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($4,$10,$7,$8,$1+128|0,$1,$5,Math_fround($14),$3,0,0,0);break label$7}HEAP32[$1+40>>2]=$9;HEAP32[$1+76>>2]=$2;HEAP32[$1+72>>2]=$13;$0=HEAP32[$1+76>>2];HEAP32[$1+32>>2]=HEAP32[$1+72>>2];HEAP32[$1+36>>2]=$0;HEAP32[$1+68>>2]=$12;HEAP32[$1+64>>2]=$6;HEAP32[$1+80>>2]=$9;$0=HEAP32[$1+68>>2];HEAP32[$1+24>>2]=HEAP32[$1+64>>2];HEAP32[$1+28>>2]=$0;dmGui__AnimateNodeHash_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($4,$10,$7,$8,$1+128|0,$1+24|0,$5,Math_fround($14),$3,2193,$15,$11);$0=0;break label$7}$0=luaL_error($0,202709,0)}dmScript__LuaStackCheck___LuaStackCheck_28_29($16);global$0=$1+288|0;return $0|0}function dmGameObject__AcquireResources_28dmResource__SResourceFactory__2c_20dmGameObject__Register__2c_20dmGameObjectDDF__PrototypeDesc__2c_20dmGameObject__Prototype__2c_20char_20const__29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$5=global$0-160|0;global$0=$5;label$1:{label$2:{label$3:{label$4:{$7=$3+8|0;$8=dmGameObject__LoadPropertyResources_28dmResource__SResourceFactory__2c_20char_20const___2c_20unsigned_20int_2c_20dmArray_void____29($0,HEAP32[$2+16>>2],HEAP32[$2+20>>2],$7);label$5:{if($8){if(HEAP32[$3+4>>2]){while(1){$1=HEAP32[$3>>2]+Math_imul($6,80)|0;dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,HEAP32[$1+24>>2]);dmGameObject__DestroyPropertyContainerCallback_28unsigned_20long_29(HEAP32[$1+72>>2]);$6=$6+1|0;if($6>>>0>2]){continue}break}}dmGameObject__UnloadPropertyResources_28dmResource__SResourceFactory__2c_20dmArray_void____29($0,$7);dmDDF__FreeMessage_28void__29($2);break label$5}HEAP32[$3>>2]=0;HEAP32[$3+4>>2]=0;$6=HEAP32[$2+4>>2];if(!$6){$8=0;break label$5}HEAP32[$3>>2]=dlmalloc(Math_imul($6,80));$9=$5+80|0;label$10:{while(1){if($6>>>0<=$10>>>0){break label$4}$7=HEAP32[$2>>2]+Math_imul($10,144)|0;$12=HEAP32[$7+4>>2];$8=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,$12,$5+156|0);if($8){break label$5}$13=dmHashString64(HEAP32[$7>>2]);$14=i64toi32_i32$HIGH_BITS;$6=0;$8=0;label$12:{$11=HEAP32[$3+4>>2];if(!$11){break label$12}while(1){$15=HEAP32[$3>>2]+Math_imul($6,80)|0;if(HEAP32[$15>>2]==($13|0)&HEAP32[$15+4>>2]==($14|0)){$8=HEAP32[$7>>2];HEAP32[$5+4>>2]=$4;HEAP32[$5>>2]=$8;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,23245,23256,$5);$11=HEAP32[$3+4>>2];$8=1}$6=$6+1|0;if($6>>>0<$11>>>0){continue}break}if(!($8&1)){break label$12}dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,HEAP32[$5+156>>2]);break label$10}if(dmResource__GetType_28dmResource__SResourceFactory__2c_20void__2c_20unsigned_20long__29($0,HEAP32[$5+156>>2],$5+152|0)){break label$3}$6=dmGameObject__FindComponentType_28dmGameObject__Register__2c_20unsigned_20long_2c_20unsigned_20int__29($1,HEAP32[$5+152>>2],$5+148|0);if(!$6){break label$2}if(dmResource__GetDescriptor_28dmResource__SResourceFactory__2c_20char_20const__2c_20dmResource__SResourceDescriptor__29($0,$12,$5+104|0)){break label$1}HEAP32[$5+44>>2]=HEAP32[$5+152>>2];HEAP32[$5+40>>2]=HEAP32[$5+156>>2];HEAP32[$5+36>>2]=HEAP32[$5+148>>2];HEAP32[$5+32>>2]=$6;$6=HEAP32[$5+108>>2];HEAP32[$5+24>>2]=HEAP32[$5+104>>2];HEAP32[$5+28>>2]=$6;HEAP32[$5+16>>2]=$13;HEAP32[$5+20>>2]=$14;HEAP32[$5+48>>2]=HEAP32[$7+16>>2];HEAP32[$5+52>>2]=HEAP32[$7+20>>2];HEAP32[$5+56>>2]=HEAP32[$7+24>>2];HEAP32[$5+64>>2]=HEAP32[$7+32>>2];HEAP32[$5+68>>2]=HEAP32[$7+36>>2];HEAP32[$5+72>>2]=HEAP32[$7+40>>2];HEAP32[$5+76>>2]=HEAP32[$7+44>>2];HEAP32[$9>>2]=0;HEAP32[$9+4>>2]=0;HEAP32[$9+8>>2]=0;HEAP32[$5+80>>2]=92;$6=dmGameObject__CreatePropertyContainerFromDDF_28dmPropertiesDDF__PropertyDeclarations_20const__29($7+56|0);HEAP32[$5+88>>2]=$6;if($6){$6=HEAP32[$3+4>>2];HEAP32[$3+4>>2]=$6+1;$7=HEAP32[$5+44>>2];$6=HEAP32[$3>>2]+Math_imul($6,80)|0;HEAP32[$6+24>>2]=HEAP32[$5+40>>2];HEAP32[$6+28>>2]=$7;$7=HEAP32[$5+36>>2];HEAP32[$6+16>>2]=HEAP32[$5+32>>2];HEAP32[$6+20>>2]=$7;$7=HEAP32[$5+28>>2];HEAP32[$6+8>>2]=HEAP32[$5+24>>2];HEAP32[$6+12>>2]=$7;$7=HEAP32[$5+20>>2];HEAP32[$6>>2]=HEAP32[$5+16>>2];HEAP32[$6+4>>2]=$7;HEAP32[$6+32>>2]=HEAP32[$5+48>>2];HEAP32[$6+36>>2]=HEAP32[$5+52>>2];HEAP32[$6+40>>2]=HEAP32[$5+56>>2];HEAP32[$6+48>>2]=HEAP32[$5+64>>2];HEAP32[$6+52>>2]=HEAP32[$5+68>>2];HEAP32[$6+56>>2]=HEAP32[$5+72>>2];HEAP32[$6+60>>2]=HEAP32[$5+76>>2];$7=HEAP32[$9+4>>2];HEAP32[$6+64>>2]=HEAP32[$9>>2];HEAP32[$6+68>>2]=$7;HEAP32[$6+72>>2]=HEAP32[$9+8>>2];$6=1}else{$6=0}if(!$6){break label$10}$10=$10+1|0;$6=HEAP32[$2+4>>2];if($10>>>0<$6>>>0){continue}break}$8=0;break label$5}$8=-13}global$0=$5+160|0;return $8}__assert_fail(23173,23185,72,23234);abort()}__assert_fail(23311,23343,92,23379);abort()}__assert_fail(23396,23343,95,23379);abort()}__assert_fail(23311,23343,98,23379);abort()}function ParseHeadersInternal($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$8=global$0-16|0;global$0=$8;HEAP32[$8+12>>2]=0;HEAP32[$8+8>>2]=0;$12=$3?HEAP32[$3+8>>2]:$12;label$2:{if(!$0){$6=7;break label$2}if($1>>>0<12){$6=7;break label$2}label$6:{if((HEAPU8[$0|0]|HEAPU8[$0+1|0]<<8|(HEAPU8[$0+2|0]<<16|HEAPU8[$0+3|0]<<24))!=1179011410){$5=$1;$7=$0;break label$6}$6=3;if((HEAPU8[$0+8|0]|HEAPU8[$0+9|0]<<8|(HEAPU8[$0+10|0]<<16|HEAPU8[$0+11|0]<<24))!=1346520407){break label$2}$11=HEAPU8[$0+4|0]|HEAPU8[$0+5|0]<<8|(HEAPU8[$0+6|0]<<16|HEAPU8[$0+7|0]<<24);if($11+ -12>>>0>4294967274){break label$2}if(!(!$12|$11>>>0<=$1+ -8>>>0)){$6=7;break label$2}$5=$1+ -12|0;if($5>>>0<8){$6=7;break label$2}$9=1;$7=$0+12|0}$4=$7;label$5:{if((HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))!=1480085590){$6=0;$7=0;break label$5}$6=3;if((HEAPU8[$4+4|0]|HEAPU8[$4+5|0]<<8|(HEAPU8[$4+6|0]<<16|HEAPU8[$4+7|0]<<24))!=10){break label$2}if($5>>>0<18){$6=7;break label$2}$13=1;$14=(HEAPU8[$4+12|0]|HEAPU8[$4+13|0]<<8|HEAPU8[$4+14|0]<<16)+1|0;$15=(HEAPU8[$4+15|0]|HEAPU8[$4+16|0]<<8|HEAPU8[$4+17|0]<<16)+1|0;__wasm_i64_mul($14,0,$15,0);if(i64toi32_i32$HIGH_BITS|!$9){break label$2}$6=HEAPU8[$4+8|0];$5=$5+ -18|0;$4=$4+18|0;$7=$6>>>1&1}if($2){HEAP32[$2>>2]=$7}HEAP32[$8+8>>2]=$15;HEAP32[$8+12>>2]=$14;label$13:{if($6&3?!($3|!$13):0){break label$13}$2=0;label$15:{if($5>>>0<4){break label$15}label$16:{if(!$13|$9^1){$9=0;if($11|$13|(HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))!=1213221953){break label$16}}if($5>>>0<8){break label$15}if(!$11){$9=0;while(1){$7=HEAPU8[$4+4|0]|HEAPU8[$4+5|0]<<8|(HEAPU8[$4+6|0]<<16|HEAPU8[$4+7|0]<<24);if($7>>>0>4294967286){$6=3;break label$2}if((HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==540561494|(HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==1278758998){break label$16}$6=$7+9&-2;if($5>>>0<$6>>>0){break label$15}$10=(HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==1213221953;$2=$10?$4+8|0:$2;$9=$10?$7:$9;$4=$4+$6|0;$5=$5-$6|0;if($5>>>0>=8){continue}break}break label$15}$10=22;$9=0;while(1){$6=3;$16=HEAPU8[$4+4|0]|HEAPU8[$4+5|0]<<8|(HEAPU8[$4+6|0]<<16|HEAPU8[$4+7|0]<<24);if($16>>>0>4294967286){break label$2}$7=$16+9&-2;$10=$7+$10|0;if($10>>>0>$11>>>0){break label$2}if((HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==540561494|(HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==1278758998){break label$16}if($5>>>0<$7>>>0){break label$15}$6=(HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==1213221953;$2=$6?$4+8|0:$2;$9=$6?$16:$9;$4=$4+$7|0;$5=$5-$7|0;if($5>>>0>=8){continue}break}break label$15}label$22:{if($4){if($5>>>0<8){break label$15}$10=HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24);label$24:{if(!(($10|0)!=1278758998?($10|0)!=540561494:0)){$7=HEAPU8[$4+4|0]|HEAPU8[$4+5|0]<<8|(HEAPU8[$4+6|0]<<16|HEAPU8[$4+7|0]<<24);if($11>>>0>=12){$6=3;if($7>>>0>$11+ -12>>>0){break label$2}}$5=$5+ -8|0;if($7>>>0>$5>>>0?$12:0){break label$15}$12=($10|0)==1278758998;$4=$4+8|0;break label$24}$7=0;$12=HEAPU8[$4|0]!=47|$5>>>0<5?$7:HEAPU8[$4+4|0]<32;$7=$5}$6=3;if($7>>>0>4294967286){break label$2}label$28:{if(!$12){if($5>>>0<10){break label$15}if(VP8GetInfo($4,$5,$7,$8+12|0,$8+8|0)){break label$28}break label$2}if($5>>>0<5){break label$15}if(!VP8LGetInfo($4,$5,$8+12|0,$8+8|0)){break label$2}}if(HEAP32[$8+12>>2]!=($14|0)|HEAP32[$8+8>>2]!=($15|0)?$13:0){break label$2}if(!$3){break label$13}HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;HEAP32[$3+4>>2]=$1;HEAP32[$3>>2]=$0;HEAP32[$3+32>>2]=$12;HEAP32[$3+28>>2]=$11;HEAP32[$3+24>>2]=$7;HEAP32[$3+20>>2]=$9;HEAP32[$3+16>>2]=$2;$0=$4-$0|0;HEAP32[$3+12>>2]=$0;if(($0|0)<=-1){break label$22}if(($0|0)==($1-$5|0)){break label$13}__assert_fail(178293,178196,399,178272);abort()}__assert_fail(178343,178196,232,178356);abort()}__assert_fail(178219,178196,398,178272);abort()}if($3){$6=7;break label$2}$6=7;if(!$13){break label$2}}$6=0}global$0=$8+16|0;return $6}function dmPhysics__NewCollisionObject2D_28dmPhysics__World2D__2c_20dmPhysics__CollisionObjectData_20const__2c_20void___2c_20Vectormath__Aos__Vector3__2c_20Vectormath__Aos__Quat__2c_20unsigned_20int_29($0,$1,$2,$3,$4,$5){var $6=0,$7=Math_fround(0),$8=0,$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=0,$13=0,$14=0,$15=0,$16=0;$6=global$0-128|0;global$0=$6;label$1:{if(!$5){$0=0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84838,85108,0);break label$1}$7=HEAPF32[$1+8>>2];label$3:{if(!HEAP32[$1+4>>2]){if($7!=Math_fround(0)){break label$3}$0=0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84838,85145,0);break label$1}if(!($7>Math_fround(0))){break label$3}$0=0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84838,85202,0);break label$1}$13=HEAP32[$0+36>>2];HEAP32[$6+84>>2]=0;HEAP32[$6+88>>2]=0;HEAP32[$6+92>>2]=0;HEAP32[$6+96>>2]=0;HEAP32[$6+100>>2]=0;HEAP32[$6+104>>2]=0;HEAP32[$6+76>>2]=0;HEAP32[$6+80>>2]=0;HEAP32[$6+116>>2]=0;HEAP32[$6+120>>2]=1065353216;HEAP32[$6+108>>2]=257;HEAP8[$6+112|0]=1;HEAP32[$6+72>>2]=0;$7=Math_fround(1);$9=HEAP32[$0+103108>>2];label$5:{if(!$9){break label$5}$8=HEAP32[$1>>2];if($8){FUNCTION_TABLE[$9]($8,$6+16|0);$7=HEAPF32[$13+64>>2];HEAPF32[$6+80>>2]=HEAPF32[$6+36>>2]*$7;HEAPF32[$6+76>>2]=$7*HEAPF32[$6+32>>2];$7=HEAPF32[$6+20>>2];$10=HEAPF32[$6+24>>2];$11=Math_fround(Math_fround(HEAPF32[$6+16>>2]*$7)+Math_fround($10*HEAPF32[$6+28>>2]));$7=Math_fround(Math_fround($7*$7)+Math_fround($10*$10));HEAPF32[$6+84>>2]=atan2f(Math_fround($11+$11),Math_fround(Math_fround(1)-Math_fround($7+$7)));$7=HEAPF32[$6+48>>2];$10=HEAPF32[$6+52>>2];$7=$7<$10?$7:$10;break label$5}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,84838,85259,0)}label$7:{label$8:{$9=HEAP32[$1+4>>2];if($9>>>0>2){break label$8}label$9:{switch($9-1|0){default:HEAP32[$6+72>>2]=2;break label$7;case 0:break label$8;case 1:break label$9}}HEAP32[$6+72>>2]=0;break label$7}HEAP32[$6+72>>2]=1}HEAP32[$6+116>>2]=HEAP32[$1>>2];HEAP32[$6+100>>2]=HEAP32[$1+20>>2];HEAP32[$6+104>>2]=HEAP32[$1+24>>2];$9=HEAPU8[$1+32|0];HEAP8[$6+110|0]=$9&1;HEAP8[$6+112|0]=$9>>>1&1;$15=$5>>>0>1?$5:1;$9=$6+28|0;$0=b2World__CreateBody_28b2BodyDef_20const__29($0+40|0,$6+72|0);$8=0;if(!(!$3|!$4)){while(1){$12=($14^-1)+$5|0;$16=$12<<4;$8=$16+$3|0;$10=HEAPF32[$8>>2];$11=HEAPF32[$8+4>>2];$8=$4+$16|0;$8=dmPhysics__TransformCopyShape_28dmPhysics__Context2D__2c_20b2Shape_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20float_29($13,HEAP32[($12<<2)+$2>>2],$10,$11,HEAPF32[$8+8>>2],HEAPF32[$8+12>>2],$7);HEAP32[$6+24>>2]=1045220557;HEAP16[$6+42>>1]=0;HEAP8[$9+8|0]=0;HEAP32[$9>>2]=0;HEAP32[$9+4>>2]=0;HEAP32[$6+20>>2]=HEAP32[$1>>2];HEAP16[$6+38>>1]=HEAPU16[$1+28>>1];$12=HEAPU16[$1+30>>1];HEAP32[$6+16>>2]=$8;HEAP16[$6+40>>1]=$12;FUNCTION_TABLE[HEAP32[HEAP32[$8>>2]+28>>2]]($8,$6,Math_fround(1));HEAPF32[$6+32>>2]=HEAPF32[$1+8>>2]/HEAPF32[$6>>2];HEAP32[$6+24>>2]=HEAP32[$1+12>>2];HEAP32[$6+28>>2]=HEAP32[$1+16>>2];HEAP8[$6+36|0]=HEAP32[$1+4>>2]==3;b2Body__CreateFixture_28b2FixtureDef_20const__29($0,$6+16|0);$14=$14+1|0;if(($15|0)!=($14|0)){continue}break}break label$1}while(1){$3=dmPhysics__TransformCopyShape_28dmPhysics__Context2D__2c_20b2Shape_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20float_29($13,HEAP32[(($8^-1)+$5<<2)+$2>>2],Math_fround(0),Math_fround(0),Math_fround(0),Math_fround(1),$7);HEAP32[$6+24>>2]=1045220557;HEAP16[$6+42>>1]=0;HEAP8[$9+8|0]=0;HEAP32[$9>>2]=0;HEAP32[$9+4>>2]=0;HEAP32[$6+20>>2]=HEAP32[$1>>2];HEAP16[$6+38>>1]=HEAPU16[$1+28>>1];$4=HEAPU16[$1+30>>1];HEAP32[$6+16>>2]=$3;HEAP16[$6+40>>1]=$4;FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+28>>2]]($3,$6,Math_fround(1));HEAPF32[$6+32>>2]=HEAPF32[$1+8>>2]/HEAPF32[$6>>2];HEAP32[$6+24>>2]=HEAP32[$1+12>>2];HEAP32[$6+28>>2]=HEAP32[$1+16>>2];HEAP8[$6+36|0]=HEAP32[$1+4>>2]==3;b2Body__CreateFixture_28b2FixtureDef_20const__29($0,$6+16|0);$8=$8+1|0;if(($15|0)!=($8|0)){continue}break}}global$0=$6+128|0;return $0}function b2RopeJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=0,$17=Math_fround(0),$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=Math_fround(0),$23=0,$24=0,$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0);$2=HEAP32[$0+48>>2];$21=HEAP32[$2+8>>2];HEAP32[$0+96>>2]=$21;$10=HEAP32[$0+52>>2];$14=HEAP32[$10+8>>2];HEAP32[$0+100>>2]=$14;$15=HEAPF32[$2+32>>2];$9=HEAP32[$2+32>>2];$12=HEAPF32[$2+28>>2];HEAP32[$0+128>>2]=HEAP32[$2+28>>2];HEAP32[$0+132>>2]=$9;$25=HEAPF32[$10+32>>2];$18=HEAP32[$10+32>>2];$5=HEAPF32[$10+28>>2];HEAP32[$0+136>>2]=HEAP32[$10+28>>2];HEAP32[$0+140>>2]=$18;HEAP32[$0+144>>2]=HEAP32[$2+120>>2];HEAP32[$0+148>>2]=HEAP32[$10+120>>2];HEAP32[$0+152>>2]=HEAP32[$2+128>>2];HEAP32[$0+156>>2]=HEAP32[$10+128>>2];$4=HEAPF32[$0+72>>2];$9=HEAP32[$1+24>>2];$2=Math_imul($21,12);$10=$9+$2|0;$13=HEAPF32[$10+8>>2];$11=sinf($13);$3=HEAPF32[$0+68>>2];$7=cosf($13);$16=HEAP32[$1+28>>2];$2=$16+$2|0;$26=HEAPF32[$2>>2];$18=HEAP32[$2>>2];$27=HEAPF32[$2+4>>2];$23=HEAP32[$2+4>>2];$13=HEAPF32[$2+8>>2];$24=Math_imul($14,12);$2=$16+$24|0;$28=HEAPF32[$2>>2];$14=HEAP32[$2>>2];$29=HEAPF32[$2+4>>2];$16=HEAP32[$2+4>>2];$22=HEAPF32[$2+8>>2];$17=HEAPF32[$10+4>>2];$2=$9+$24|0;$8=HEAPF32[$2+4>>2];$19=HEAPF32[$10>>2];$20=HEAPF32[$2>>2];$6=HEAPF32[$2+8>>2];$3=Math_fround($3-$12);$4=Math_fround($4-$15);$12=Math_fround(Math_fround($7*$3)-Math_fround($11*$4));HEAPF32[$0+112>>2]=$12;$11=Math_fround(Math_fround($11*$3)+Math_fround($7*$4));HEAPF32[$0+116>>2]=$11;$7=HEAPF32[$0+80>>2];$4=sinf($6);$3=HEAPF32[$0+76>>2];$6=cosf($6);$5=Math_fround($3-$5);$3=Math_fround($7-$25);$7=Math_fround(Math_fround($6*$5)-Math_fround($4*$3));HEAPF32[$0+120>>2]=$7;$6=Math_fround(Math_fround($4*$5)+Math_fround($6*$3));HEAPF32[$0+124>>2]=$6;$4=Math_fround(Math_fround(Math_fround($20+$7)-$19)-$12);HEAPF32[$0+104>>2]=$4;$5=Math_fround(Math_fround(Math_fround($8+$6)-$17)-$11);HEAPF32[$0+108>>2]=$5;$3=Math_fround(Math_sqrt(Math_fround(Math_fround($4*$4)+Math_fround($5*$5))));HEAPF32[$0+88>>2]=$3;HEAP32[$0+164>>2]=(Math_fround($3-HEAPF32[$0+84>>2])>Math_fround(0))<<1;if(!!($3>Math_fround(.004999999888241291))){$3=Math_fround(Math_fround(1)/$3);$5=Math_fround($5*$3);HEAPF32[$0+108>>2]=$5;$4=Math_fround($4*$3);HEAPF32[$0+104>>2]=$4;$3=HEAPF32[$0+148>>2];$17=HEAPF32[$0+144>>2];$8=Math_fround(Math_fround($12*$5)-Math_fround($11*$4));$19=HEAPF32[$0+152>>2];$15=Math_fround($3+Math_fround($17+Math_fround($8*Math_fround($8*$19))));$8=Math_fround(Math_fround($7*$5)-Math_fround($6*$4));$20=HEAPF32[$0+156>>2];$8=Math_fround($15+Math_fround($8*Math_fround($8*$20)));HEAPF32[$0+160>>2]=$8!=Math_fround(0)?Math_fround(Math_fround(1)/$8):Math_fround(0);label$2:{if(HEAPU8[$1+20|0]){$8=Math_fround(HEAPF32[$1+8>>2]*HEAPF32[$0+92>>2]);HEAPF32[$0+92>>2]=$8;$15=$7;$7=Math_fround($5*$8);$5=$6;$6=Math_fround($4*$8);$22=Math_fround($22+Math_fround($20*Math_fround(Math_fround($15*$7)-Math_fround($5*$6))));$13=Math_fround($13-Math_fround($19*Math_fround(Math_fround($12*$7)-Math_fround($11*$6))));$16=(wasm2js_scratch_store_f32(Math_fround(Math_fround($3*$7)+$29)),wasm2js_scratch_load_i32(0));$14=(wasm2js_scratch_store_f32(Math_fround(Math_fround($3*$6)+$28)),wasm2js_scratch_load_i32(0));$23=(wasm2js_scratch_store_f32(Math_fround($27-Math_fround($17*$7))),wasm2js_scratch_load_i32(0));$18=(wasm2js_scratch_store_f32(Math_fround($26-Math_fround($17*$6))),wasm2js_scratch_load_i32(0));break label$2}HEAP32[$0+92>>2]=0}$9=HEAP32[$1+28>>2]+Math_imul($21,12)|0;HEAP32[$9+4>>2]=$23;HEAP32[$9>>2]=$18;$9=HEAP32[$1+28>>2];HEAPF32[($9+Math_imul(HEAP32[$0+96>>2],12)|0)+8>>2]=$13;$9=$9+Math_imul(HEAP32[$0+100>>2],12)|0;HEAP32[$9+4>>2]=$16;HEAP32[$9>>2]=$14;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+100>>2],12)|0)+8>>2]=$22;return}HEAP32[$0+160>>2]=0;HEAP32[$0+104>>2]=0;HEAP32[$0+108>>2]=0;HEAP32[$0+92>>2]=0}function btConvexPlaneCollisionAlgorithm__processCollision_28btCollisionObject__2c_20btCollisionObject__2c_20btDispatcherInfo_20const__2c_20btManifoldResult__29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=0;$3=global$0-16|0;global$0=$3;label$1:{if(!HEAP32[$0+12>>2]){break label$1}$9=HEAPU8[$0+16|0];$11=HEAP32[($9?$1:$2)+192>>2];$9=HEAP32[($9?$2:$1)+192>>2];HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=1065353216;HEAP32[$3>>2]=0;HEAP32[$3+4>>2]=0;btConvexPlaneCollisionAlgorithm__collideSingleContact_28btQuaternion_20const__2c_20btCollisionObject__2c_20btCollisionObject__2c_20btDispatcherInfo_20const__2c_20btManifoldResult__29($0,$3,$1,$2,$4);label$2:{if(HEAP32[HEAP32[$4+4>>2]+1116>>2]>=HEAP32[$0+24>>2]){break label$2}$6=HEAPF32[$11+56>>2];label$3:{if(!!(Math_fround(Math_abs($6))>Math_fround(.7071067690849304))){$5=HEAPF32[$11+52>>2];$7=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround($6*$6)+Math_fround($5*$5)))));$5=Math_fround($5*$7);$6=Math_fround($7*Math_fround(-$6));$7=Math_fround(0);break label$3}$5=HEAPF32[$11+48>>2];$6=HEAPF32[$11+52>>2];$8=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround($5*$5)+Math_fround($6*$6)))));$7=Math_fround($8*Math_fround(-$6));$6=Math_fround($5*$8);$5=Math_fround(0)}$8=Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$9>>2]+16>>2]]($9));$8=Math_fround(Math_fround(Math_min(Math_fround(HEAPF32[136189]/$8),Math_fround(.39269909262657166)))*Math_fround(.5));$12=sinf($8);$9=HEAP32[$0+20>>2];$14=cosf($8);if(($9|0)<1){break label$2}$13=$5;$5=Math_fround($12/Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround($7*$7)+Math_fround($6*$6))+Math_fround($5*$5)))));$12=Math_fround($13*$5);$15=Math_fround($6*$5);$16=Math_fround($7*$5);while(1){$7=HEAPF32[$11+52>>2];$8=HEAPF32[$11+48>>2];$6=HEAPF32[$11+56>>2];$5=Math_fround(Math_fround(Math_fround(Math_fround(6.2831854820251465)/Math_fround($9|0))*Math_fround($19|0))*Math_fround(.5));$10=sinf($5);$5=cosf($5);$10=Math_fround($10/Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround($8*$8)+Math_fround($7*$7))+Math_fround($6*$6)))));$6=Math_fround($6*$10);$7=Math_fround($7*$10);$8=Math_fround($8*$10);$10=Math_fround(Math_fround($12*$6)+Math_fround(Math_fround($15*$7)+Math_fround(Math_fround($14*$5)+Math_fround($16*$8))));$17=Math_fround(Math_fround($15*$6)+Math_fround(Math_fround(Math_fround($16*$5)-Math_fround($14*$8))-Math_fround($12*$7)));$18=Math_fround(Math_fround($12*$8)+Math_fround(Math_fround(Math_fround($15*$5)-Math_fround($14*$7))-Math_fround($16*$6)));$13=Math_fround(Math_fround($16*$7)+Math_fround(Math_fround(Math_fround($12*$5)-Math_fround($14*$6))-Math_fround($15*$8)));HEAPF32[$3+12>>2]=Math_fround(Math_fround(Math_fround($5*$10)-Math_fround($8*$17))-Math_fround($7*$18))-Math_fround($6*$13);HEAPF32[$3+8>>2]=Math_fround(Math_fround($7*$17)+Math_fround(Math_fround($6*$10)+Math_fround($5*$13)))-Math_fround($8*$18);HEAPF32[$3+4>>2]=Math_fround(Math_fround($8*$13)+Math_fround(Math_fround($5*$18)+Math_fround($7*$10)))-Math_fround($6*$17);HEAPF32[$3>>2]=Math_fround(Math_fround($6*$18)+Math_fround(Math_fround($8*$10)+Math_fround($5*$17)))-Math_fround($7*$13);btConvexPlaneCollisionAlgorithm__collideSingleContact_28btQuaternion_20const__2c_20btCollisionObject__2c_20btCollisionObject__2c_20btDispatcherInfo_20const__2c_20btManifoldResult__29($0,$3,$1,$2,$4);$19=$19+1|0;$9=HEAP32[$0+20>>2];if(($19|0)<($9|0)){continue}break}}if(!HEAPU8[$0+8|0]|!HEAP32[HEAP32[$0+12>>2]+1116>>2]){break label$1}$0=HEAP32[$4+4>>2];if(!HEAP32[$0+1116>>2]){break label$1}if(HEAP32[$0+1108>>2]!=HEAP32[$4+136>>2]){btPersistentManifold__refreshContactPoints_28btTransform_20const__2c_20btTransform_20const__29($0,$4+72|0,$4+8|0);break label$1}btPersistentManifold__refreshContactPoints_28btTransform_20const__2c_20btTransform_20const__29($0,$4+8|0,$4+72|0)}global$0=$3+16|0}function btPersistentManifold__refreshContactPoints_28btTransform_20const__2c_20btTransform_20const__29($0,$1,$2){var $3=0,$4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0);label$1:{$3=HEAP32[$0+1116>>2];if(($3|0)<1){break label$1}while(1){$12=HEAPF32[$1+48>>2];$16=HEAPF32[$1+8>>2];$17=HEAPF32[$1>>2];$18=HEAPF32[$1+4>>2];$13=HEAPF32[$1+52>>2];$19=HEAPF32[$1+24>>2];$10=HEAPF32[$1+16>>2];$20=HEAPF32[$1+20>>2];$5=HEAPF32[$1+56>>2];$6=HEAPF32[$1+40>>2];$7=HEAPF32[$1+32>>2];$14=HEAPF32[$1+36>>2];$8=$3+ -1|0;$4=Math_imul($8,276)+$0|0;HEAP32[$4- -64>>2]=0;$21=$5;$5=HEAPF32[$4+4>>2];$22=Math_fround($7*$5);$7=HEAPF32[$4+8>>2];$11=$6;$6=HEAPF32[$4+12>>2];$14=Math_fround($21+Math_fround(Math_fround($22+Math_fround($14*$7))+Math_fround($11*$6)));HEAPF32[$4+60>>2]=$14;$13=Math_fround($13+Math_fround(Math_fround(Math_fround($5*$10)+Math_fround($7*$20))+Math_fround($6*$19)));HEAPF32[$4+56>>2]=$13;$12=Math_fround($12+Math_fround(Math_fround(Math_fround($17*$5)+Math_fround($18*$7))+Math_fround($16*$6)));HEAPF32[$4+52>>2]=$12;$16=HEAPF32[$2+56>>2];$17=HEAPF32[$2+40>>2];$18=HEAPF32[$2+32>>2];$19=HEAPF32[$2+36>>2];$10=HEAPF32[$2+52>>2];$20=HEAPF32[$2+24>>2];$23=HEAPF32[$2+16>>2];$24=HEAPF32[$2+20>>2];$5=HEAPF32[$2+48>>2];$6=HEAPF32[$2+8>>2];$7=HEAPF32[$2>>2];$15=HEAPF32[$2+4>>2];HEAP32[$4+48>>2]=0;$21=$5;$5=HEAPF32[$4+20>>2];$22=Math_fround($7*$5);$7=HEAPF32[$4+24>>2];$11=$6;$6=HEAPF32[$4+28>>2];$15=Math_fround($21+Math_fround(Math_fround($22+Math_fround($15*$7))+Math_fround($11*$6)));HEAPF32[$4+36>>2]=$15;$10=Math_fround($10+Math_fround(Math_fround(Math_fround($5*$23)+Math_fround($7*$24))+Math_fround($6*$20)));HEAPF32[$4+40>>2]=$10;$5=Math_fround($16+Math_fround(Math_fround(Math_fround($5*$18)+Math_fround($7*$19))+Math_fround($6*$17)));HEAPF32[$4+44>>2]=$5;HEAPF32[$4+84>>2]=Math_fround(Math_fround(Math_fround($12-$15)*HEAPF32[$4+68>>2])+Math_fround(Math_fround($13-$10)*HEAPF32[$4+72>>2]))+Math_fround(Math_fround($14-$5)*HEAPF32[$4+76>>2]);HEAP32[$4+148>>2]=HEAP32[$4+148>>2]+1;$4=($3|0)>1;$3=$8;if($4){continue}break}$2=HEAP32[$0+1116>>2];if(($2|0)<1){break label$1}while(1){$1=$2;$2=$1+ -1|0;$3=Math_imul($2,276)+$0|0;$4=$3+4|0;$5=HEAPF32[$3+84>>2];$7=HEAPF32[$0+1120>>2];label$4:{if(!($5<=$7)){$8=HEAP32[$3+112>>2];label$6:{if(!$8){break label$6}$9=HEAP32[148253];if(!$9){break label$6}FUNCTION_TABLE[$9]($8)|0;HEAP32[$3+112>>2]=0}$9=HEAP32[$0+1116>>2];$3=$9+ -1|0;$8=$0;if(($1|0)!=($9|0)){$3=Math_imul($3,276)+$0|0;memcpy($4,$3+4|0,276);HEAP32[$3+276>>2]=0;HEAP32[$3+244>>2]=0;HEAP32[$3+212>>2]=0;HEAP32[$3+148>>2]=0;HEAP32[$3+124>>2]=0;HEAP32[$3+128>>2]=0;HEAP32[$3+112>>2]=0;HEAP32[$3+116>>2]=0;HEAP8[$3+120|0]=0;$3=HEAP32[$0+1116>>2]+ -1|0}HEAP32[$8+1116>>2]=$3;break label$4}$6=Math_fround(HEAPF32[$3+36>>2]-Math_fround(HEAPF32[$3+52>>2]-Math_fround(HEAPF32[$3+68>>2]*$5)));$11=Math_fround($6*$6);$6=Math_fround(HEAPF32[$3+40>>2]-Math_fround(HEAPF32[$3+56>>2]-Math_fround($5*HEAPF32[$3+72>>2])));$5=Math_fround(HEAPF32[$3+44>>2]-Math_fround(HEAPF32[$3+60>>2]-Math_fround($5*HEAPF32[$3+76>>2])));if(!!(Math_fround(Math_fround($11+Math_fround($6*$6))+Math_fround($5*$5))>Math_fround($7*$7))){$8=HEAP32[$3+112>>2];label$10:{if(!$8){break label$10}$9=HEAP32[148253];if(!$9){break label$10}FUNCTION_TABLE[$9]($8)|0;HEAP32[$3+112>>2]=0}$9=HEAP32[$0+1116>>2];$3=$9+ -1|0;$8=$0;if(($1|0)!=($9|0)){$3=Math_imul($3,276)+$0|0;memcpy($4,$3+4|0,276);HEAP32[$3+276>>2]=0;HEAP32[$3+244>>2]=0;HEAP32[$3+212>>2]=0;HEAP32[$3+148>>2]=0;HEAP32[$3+124>>2]=0;HEAP32[$3+128>>2]=0;HEAP32[$3+112>>2]=0;HEAP32[$3+116>>2]=0;HEAP8[$3+120|0]=0;$3=HEAP32[$0+1116>>2]+ -1|0}HEAP32[$8+1116>>2]=$3;break label$4}$3=HEAP32[148254];if(!$3){break label$4}FUNCTION_TABLE[$3]($4,HEAP32[$0+1108>>2],HEAP32[$0+1112>>2])|0}if(($1|0)>1){continue}break}}}function btQuantizedBvh__walkStacklessTreeAgainstRay_28btNodeOverlapCallback__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20int_2c_20int_29_20const($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=Math_fround(0),$23=0,$24=0,$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=0,$32=0,$33=0,$34=0,$35=0,$36=0;$6=global$0-32|0;global$0=$6;label$1:{if(HEAP32[$0+56>>2]<1){break label$1}$10=HEAPF32[$3+8>>2];$9=HEAPF32[$2+8>>2];$13=Math_fround($10-$9);$19=$13;$8=HEAPF32[$3>>2];$14=HEAPF32[$2>>2];$11=Math_fround($8-$14);$15=HEAPF32[$3+4>>2];$16=HEAPF32[$2+4>>2];$12=Math_fround($15-$16);$18=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround($11*$11)+Math_fround($12*$12))+Math_fround($13*$13)))));$13=Math_fround($13*$18);$20=$11;$11=Math_fround($11*$18);$22=$12;$12=Math_fround($12*$18);$22=Math_fround(Math_fround($19*$13)+Math_fround(Math_fround($20*$11)+Math_fround($22*$12)));$18=HEAPF32[$5+8>>2];$25=Math_fround(($9<$10?$10:$9)+$18);$19=HEAPF32[$5+4>>2];$26=Math_fround(($16<$15?$15:$16)+$19);$20=HEAPF32[$5>>2];$27=Math_fround(($14<$8?$8:$14)+$20);$9=$10<$9?$10:$9;$10=HEAPF32[$4+8>>2];$28=Math_fround($9+$10);$9=HEAPF32[$4+4>>2];$29=Math_fround(($15<$16?$15:$16)+$9);$14=$8<$14?$8:$14;$8=HEAPF32[$4>>2];$30=Math_fround($14+$8);$3=HEAP32[$0+96>>2];$14=$13==Math_fround(0)?Math_fround(0xde0b6b000000000):Math_fround(Math_fround(1)/$13);$7=$14>2];HEAP32[$6>>2]=HEAP32[$3>>2];HEAP32[$6+4>>2]=$7;$7=HEAP32[$3+12>>2];HEAP32[$6+8>>2]=HEAP32[$3+8>>2];HEAP32[$6+12>>2]=$7;$7=HEAP32[$3+28>>2];HEAP32[$6+24>>2]=HEAP32[$3+24>>2];HEAP32[$6+28>>2]=$7;$7=HEAP32[$3+20>>2];HEAP32[$6+16>>2]=HEAP32[$3+16>>2];HEAP32[$6+20>>2]=$7;HEAPF32[$6>>2]=HEAPF32[$6>>2]-$20;HEAPF32[$6+4>>2]=HEAPF32[$6+4>>2]-$19;HEAPF32[$6+16>>2]=HEAPF32[$6+16>>2]-$8;HEAPF32[$6+20>>2]=HEAPF32[$6+20>>2]-$9;HEAPF32[$6+8>>2]=HEAPF32[$6+8>>2]-$18;HEAPF32[$6+24>>2]=HEAPF32[$6+24>>2]-$10;$7=0;label$3:{if($30>HEAPF32[$3+16>>2]){break label$3}$7=0;if($27>2]){break label$3}$7=1}$17=0;$17=$25>2]|$28>HEAPF32[$3+24>>2]?$17:$7;label$5:{label$6:{label$7:{label$8:{label$9:{if($26>2]|$29>HEAPF32[$3+20>>2]|$17^1){break label$9}$11=HEAPF32[$2+4>>2];$10=Math_fround($15*Math_fround(HEAPF32[$32>>2]-$11));$8=HEAPF32[$2>>2];$9=Math_fround($16*Math_fround(HEAPF32[$36>>2]-$8));if($10>$9){break label$9}$8=Math_fround($16*Math_fround(HEAPF32[$35>>2]-$8));$11=Math_fround($15*Math_fround(HEAPF32[$34>>2]-$11));if($8>$11){break label$9}$13=HEAPF32[$2+8>>2];$12=Math_fround($14*Math_fround(HEAPF32[$31>>2]-$13));$9=$11<$9?$11:$9;if($12>$9){break label$9}$10=$10>$8?$10:$8;$8=Math_fround($14*Math_fround(HEAPF32[$33>>2]-$13));if($10>$8){break label$9}$24=HEAP32[$3+32>>2];$17=($24|0)==-1;$7=($12>$10?$12:$10)<$22&($8<$9?$8:$9)>Math_fround(0);if(($7|0)!=1|($24|0)!=-1){break label$8}FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+8>>2]]($1,HEAP32[$3+36>>2],HEAP32[$3+40>>2]);break label$7}$17=HEAP32[$3+32>>2]==-1;$7=0}if($17){break label$7}if(!$7){break label$6}}$21=$21+1|0;$3=$3- -64|0;break label$5}$7=HEAP32[$3+32>>2];$21=$7+$21|0;$3=($7<<6)+$3|0}$23=$23+1|0;if(($21|0)>=HEAP32[$0+56>>2]){break label$1}$10=HEAPF32[$4+8>>2];$9=HEAPF32[$4+4>>2];$8=HEAPF32[$4>>2];$18=HEAPF32[$5+8>>2];$19=HEAPF32[$5+4>>2];$20=HEAPF32[$5>>2];continue}}if(HEAP32[147973]<($23|0)){HEAP32[147973]=$23}global$0=$6+32|0}function dmPhysics__OverlapCacheAdd_28dmPhysics__OverlapCache__2c_20dmPhysics__OverlapCacheAddData_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$5=global$0-16|0;global$0=$5;$10=HEAP32[$1+8>>2];$4=HEAP32[$0+4>>2];label$1:{if(!$4){break label$1}$2=HEAP32[HEAP32[$0>>2]+(($10>>>0)%($4>>>0)<<2)>>2];if(($2|0)==-1){break label$1}$3=HEAP32[$0+8>>2];while(1){$2=Math_imul($2,24);$8=$2+$3|0;if(($10|0)==HEAP32[$8>>2]){break label$1}$2=HEAP32[($2+$3|0)+20>>2];if(($2|0)!=-1){continue}break}$8=0}$6=$8?$8+4|0:0;label$3:{label$4:{if(!$6){$7=HEAP32[$1+16>>2];$3=0;break label$4}$11=HEAP32[$0+32>>2];$7=HEAP32[$1+16>>2];label$6:{$3=HEAP32[$6+8>>2];if($3){$9=HEAP32[$6+4>>2];$2=0;while(1){if(HEAP32[$9+($2<<3)>>2]==($7|0)){break label$6}$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}if(($3|0)!=($11|0)){HEAP32[$6+8>>2]=$3+1;$3=HEAP32[$6+4>>2]+($3<<3)|0;HEAP32[$3+4>>2]=1;HEAP32[$3>>2]=$7;$3=0;break label$4}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84410,84418,0);break label$3}$3=$9+($2<<3)|0;HEAP32[$3+4>>2]=HEAP32[$3+4>>2]+1;$3=1}$9=1;label$10:{if(!$4){break label$10}$2=HEAP32[HEAP32[$0>>2]+(($7>>>0)%($4>>>0)<<2)>>2];if(($2|0)==-1){break label$10}$11=HEAP32[$0+8>>2];while(1){$4=$11+Math_imul($2,24)|0;if(HEAP32[$4>>2]!=($7|0)){$2=HEAP32[$4+20>>2];if(($2|0)!=-1){continue}break label$10}break}$12=HEAP32[$0+32>>2];$4=$11+Math_imul($2,24)|0;$13=$4;label$13:{$3=HEAP32[$4+12>>2];if($3){$9=HEAP32[$4+8>>2];$4=0;while(1){if(($10|0)==HEAP32[$9+($4<<3)>>2]){break label$13}$4=$4+1|0;if(($3|0)!=($4|0)){continue}break}}if(($3|0)!=($12|0)){$2=HEAP32[($11+Math_imul($2,24)|0)+8>>2];HEAP32[$13+12>>2]=$3+1;$3=$2+($3<<3)|0;HEAP32[$3+4>>2]=1;HEAP32[$3>>2]=$10;$9=0;$3=0;break label$10}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84410,84418,0);if(!$6){break label$3}$0=HEAP32[$6+8>>2];if(!$0){break label$3}$7=HEAP32[$1+16>>2];$1=HEAP32[$6+4>>2];$2=0;while(1){$3=$1+($2<<3)|0;if(($7|0)!=HEAP32[$3>>2]){$2=$2+1|0;if(($0|0)!=($2|0)){continue}break label$3}break}$0=($1+($0<<3)|0)+ -8|0;$1=HEAP32[$0+4>>2];HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$3+4>>2]=$1;HEAP32[$6+8>>2]=HEAP32[$6+8>>2]+ -1;break label$3}$3=1;$2=$9+($4<<3)|0;HEAP32[$2+4>>2]=HEAP32[$2+4>>2]+1;$9=0}if(!$8){$6=HEAPU16[$1+24>>1];$8=HEAP32[$1+12>>2];$2=(HEAP32[$0+16>>2]-HEAP32[$0+8>>2]|0)/24|0;if(HEAPU32[$0+24>>2]>Math_imul($2,3)>>>2>>>0){$2=$2+16|0;dmHashTable_unsigned_20long_2c_20dmPhysics__OverlapEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($0,Math_imul($2,3)>>>2|0,$2)}HEAP32[$5+8>>2]=0;HEAP32[$5+12>>2]=0;$4=HEAP32[$0+32>>2];$2=dlmalloc($4<<3);HEAP16[$5+12>>1]=$6;HEAP32[$5>>2]=$8;HEAP32[$5+4>>2]=$2;label$21:{if(!$4){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84410,84418,0);break label$21}HEAP32[$5+8>>2]=1;HEAP32[$2+4>>2]=1;HEAP32[$2>>2]=$7}dmHashTable_unsigned_20long_2c_20dmPhysics__OverlapEntry___Put_28unsigned_20long_2c_20dmPhysics__OverlapEntry_20const__29($0,$10,$5)}if($9){$6=HEAPU16[$1+26>>1];$7=HEAP32[$1+8>>2];$10=HEAP32[$1+20>>2];$8=HEAP32[$1+16>>2];$2=(HEAP32[$0+16>>2]-HEAP32[$0+8>>2]|0)/24|0;if(HEAPU32[$0+24>>2]>Math_imul($2,3)>>>2>>>0){$2=$2+16|0;dmHashTable_unsigned_20long_2c_20dmPhysics__OverlapEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($0,Math_imul($2,3)>>>2|0,$2)}HEAP32[$5+8>>2]=0;HEAP32[$5+12>>2]=0;$4=HEAP32[$0+32>>2];$2=dlmalloc($4<<3);HEAP16[$5+12>>1]=$6;HEAP32[$5>>2]=$10;HEAP32[$5+4>>2]=$2;label$25:{if(!$4){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84410,84418,0);break label$25}HEAP32[$5+8>>2]=1;HEAP32[$2+4>>2]=1;HEAP32[$2>>2]=$7}dmHashTable_unsigned_20long_2c_20dmPhysics__OverlapEntry___Put_28unsigned_20long_2c_20dmPhysics__OverlapEntry_20const__29($0,$8,$5)}if($3){break label$3}$0=HEAP32[$1>>2];if(!$0){break label$3}HEAP32[$5>>2]=HEAP32[$1+12>>2];HEAP32[$5+4>>2]=HEAP32[$1+20>>2];HEAP16[$5+8>>1]=HEAPU16[$1+24>>1];HEAP16[$5+10>>1]=HEAPU16[$1+26>>1];FUNCTION_TABLE[$0]($5,HEAP32[$1+4>>2])}global$0=$5+16|0}function VP8DecodeMB($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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,$29=0,$30=0,$31=0,$32=0;$17=global$0-32|0;global$0=$17;$4=HEAP32[$0+2256>>2];$11=HEAP32[$0+2296>>2];$12=$4+($11<<1)|0;$16=HEAP32[$0+2304>>2];label$1:{label$2:{if(HEAP32[$0+2236>>2]){$2=Math_imul($11,800)+$16|0;if(HEAPU8[$2+797|0]){break label$2}}$5=Math_imul($11,800)+$16|0;$10=HEAPU8[$5+798|0];$2=3;$9=memset($5,0,768);if(!HEAPU8[$9+768|0]){$2=$17;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;$3=$4+ -1|0;$23=$3;$6=HEAPU8[$3|0];$3=$4+($11<<1)|0;$2=GetCoeffs($1,$0+2032|0,$6+HEAPU8[$3+1|0]|0,(($10<<5)+$0|0)+784|0,0,$2);$6=($2|0)>0;HEAP8[$23|0]=$6;HEAP8[$3+1|0]=$6;label$5:{if(($2|0)>=2){FUNCTION_TABLE[HEAP32[283167]]($17,$9);break label$5}$2=Math_imul($11,800)+$16|0;$3=HEAP16[$17>>1]+3>>>3|0;HEAP16[$2+480>>1]=$3;HEAP16[$2+448>>1]=$3;HEAP16[$2+416>>1]=$3;HEAP16[$2+384>>1]=$3;HEAP16[$2+352>>1]=$3;HEAP16[$2+320>>1]=$3;HEAP16[$2+288>>1]=$3;HEAP16[$2+256>>1]=$3;HEAP16[$2+224>>1]=$3;HEAP16[$2+192>>1]=$3;HEAP16[$2+160>>1]=$3;HEAP16[$2+128>>1]=$3;HEAP16[$2+96>>1]=$3;HEAP16[$2+64>>1]=$3;HEAP16[$2+32>>1]=$3;HEAP16[$2>>1]=$3}$3=1;$2=0}$9=HEAPU8[$12|0]&15;$6=(($10<<5)+$0|0)+776|0;$18=$4+ -2|0;$19=HEAPU8[$18|0]&15;$4=(Math_imul($2,68)+$0|0)+1964|0;while(1){$2=$5;$5=GetCoeffs($1,$4,($19&1)+($9&1)|0,$6,$3,$2);$13=HEAPU16[$2>>1];$7=($5|0)>($3|0);$8=$9>>>1|0;$9=GetCoeffs($1,$4,$7+($8&1)|0,$6,$3,$2+32|0);$14=HEAPU16[$2+32>>1];$15=($9|0)>($3|0);$7=($8&126|$7<<7)>>>1|0;$8=GetCoeffs($1,$4,$15+($7&1)|0,$6,$3,$2- -64|0);$24=HEAPU16[$2+64>>1];$20=($8|0)>($3|0);$15=($7|$15<<7)>>>1|0;$7=GetCoeffs($1,$4,$20+($15&1)|0,$6,$3,$2+96|0);$25=$25<<8|(($8|0)>3?12:($8|0)<2?(($24|0)!=0)<<2:8)|((($9|0)>3?3:($9|0)<2?($14|0)!=0:2)|(($5|0)>3?12:($5|0)<2?(($13|0)!=0)<<2:8))<<4|(($7|0)>3?3:($7|0)<2?HEAPU16[$2+96>>1]!=0:2);$5=($7|0)>($3|0);$9=$5<<3|($15|$20<<7)>>>5;$19=$5<<7|($19&254)>>>1;$5=$2+128|0;$21=$21+1|0;if(($21|0)!=4){continue}break}$3=$0+2100|0;$8=HEAPU8[$18|0];$6=HEAPU8[$12|0];$15=($10<<5)+$0|0;$4=$15+792|0;$5=GetCoeffs($1,$3,($8>>>4&1)+($6>>>4&1)|0,$4,0,$5);$24=HEAPU16[$2+128>>1];$10=($5|0)>0;$6=GetCoeffs($1,$3,$10+($6>>>5&1)|0,$4,0,$2+160|0);$20=HEAPU16[$2+160>>1];$10=GetCoeffs($1,$3,$10+($8>>>5&1)|0,$4,0,$2+192|0);$21=HEAPU16[$2+192>>1];$26=($10|0)>0;$27=($6|0)>0;$8=GetCoeffs($1,$3,$26+$27|0,$4,0,$2+224|0);$30=HEAPU16[$2+224>>1];$14=HEAPU8[$18|0];$13=HEAPU8[$12|0];$7=GetCoeffs($1,$3,($14>>>6&1)+($13>>>6&1)|0,$4,0,$2+256|0);$31=HEAPU16[$2+256>>1];$22=($7|0)>0;$13=GetCoeffs($1,$3,$22+($13>>>7|0)|0,$4,0,$2+288|0);$32=HEAPU16[$2+288>>1];$14=GetCoeffs($1,$3,$22+($14>>>7|0)|0,$4,0,$2+320|0);$22=HEAPU16[$2+320>>1];$28=($14|0)>0;$29=($13|0)>0;$3=GetCoeffs($1,$3,$28+$29|0,$4,0,$2+352|0);$4=HEAPU16[$2+352>>1];$23=$12;$2=($8|0)>0;$12=($3|0)>0;HEAP8[$23|0]=($26|$2<<1)<<4|$9|($12<<1|$28)<<6;HEAP8[$18|0]=$27<<4|$19>>>4|$2<<5|$29<<6|$12<<7;$2=Math_imul($11,800)+$16|0;$5=((($6|0)>3?3:($6|0)<2?($20|0)!=0:2)|(($5|0)>3?12:($5|0)<2?(($24|0)!=0)<<2:8))<<4|(($10|0)>3?12:($10|0)<2?(($21|0)!=0)<<2:8)|(($8|0)>3?3:($8|0)<2?($30|0)!=0:2)|(((($13|0)>3?3:($13|0)<2?($32|0)!=0:2)|(($7|0)>3?12:($7|0)<2?(($31|0)!=0)<<2:8))<<4|(($14|0)>3?12:($14|0)<2?(($22|0)!=0)<<2:8)|(($3|0)>3?3:($3|0)<2?($4|0)!=0:2))<<8;HEAP32[$2+792>>2]=$5;HEAP32[$2+788>>2]=$25;HEAP8[$2+796|0]=$5&43690?0:HEAP32[$15+804>>2];$3=($5|$25)!=0;break label$1}HEAP8[$12|0]=0;HEAP8[$4+ -2|0]=0;if(!HEAPU8[$2+768|0]){HEAP8[($4+($11<<1)|0)+1|0]=0;HEAP8[$4+ -1|0]=0}$2=Math_imul($11,800)+$16|0;HEAP32[$2+788>>2]=0;HEAP32[$2+792>>2]=0;HEAP8[$2+796|0]=0}if(HEAP32[$0+2308>>2]>=1){$2=HEAP32[$0+2260>>2]+(HEAP32[$0+2296>>2]<<2)|0;$5=$0;$0=Math_imul($11,800)+$16|0;$0=HEAP32[(($5+(HEAPU8[$0+798|0]<<3)|0)+(HEAPU8[$0+768|0]<<2)|0)+2312>>2];HEAP8[$2|0]=$0;HEAP8[$2+1|0]=$0>>>8;HEAP8[$2+2|0]=$0>>>16;HEAP8[$2+3|0]=$0>>>24;HEAP8[$2+2|0]=HEAPU8[$2+2|0]|$3}global$0=$17+32|0;return!HEAP32[$1+24>>2]}function dmParticle__UpdateEmitterRenderData_28unsigned_20int_2c_20unsigned_20int_2c_20dmParticle__Instance__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__29($0,$1,$2,$3,$4){var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0);$8=HEAPF32[$2+52>>2];$14=HEAPF32[$4+36>>2];$9=HEAPF32[$2+60>>2];$13=HEAPF32[$4+44>>2];$10=HEAPF32[$2+48>>2];$15=HEAPF32[$4+32>>2];$11=HEAPF32[$2+56>>2];$16=HEAPF32[$4+40>>2];$6=HEAPF32[$2+44>>2];$12=Math_fround(HEAPF32[$4+20>>2]*$6);$7=Math_fround(HEAPF32[$4+16>>2]*$6);$5=HEAPF32[$4+24>>2];label$1:{if(HEAP8[$2+82|0]&1){$23=Math_fround(Math_fround($8*$12)+Math_fround($10*$7));$5=Math_fround($5*$6);$17=Math_fround(Math_fround(Math_fround($11*$7)+Math_fround($9*$12))-Math_fround($10*$5));$18=Math_fround(Math_fround(Math_fround($9*$5)+Math_fround($10*$12))-Math_fround($8*$7));$24=Math_fround($11*$5);$12=Math_fround(Math_fround(Math_fround($9*$7)+Math_fround($8*$5))-Math_fround($11*$12));break label$1}$23=Math_fround(Math_fround($10*$7)+Math_fround($8*$12));$18=Math_fround(Math_fround(Math_fround($5*$9)+Math_fround($10*$12))-Math_fround($8*$7));$17=Math_fround(Math_fround(Math_fround($11*$7)+Math_fround($9*$12))-Math_fround($5*$10));$24=Math_fround($5*$11);$12=Math_fround(Math_fround(Math_fround($5*$8)+Math_fround($9*$7))-Math_fround($11*$12))}$25=HEAP32[$2+64>>2];$4=HEAP32[$25>>2];if((HEAP32[$25+4>>2]-$4|0)/18568>>>0<=$1>>>0){__assert_fail(132466,131573,430,131839);abort()}$29=HEAPF32[$2+36>>2];$30=HEAPF32[$2+40>>2];$31=HEAPF32[$2+32>>2];HEAP32[$3+188>>2]=1065353216;$20=Math_fround($6*Math_fround(0));HEAPF32[$3+172>>2]=$20;$7=Math_fround(Math_fround(Math_fround($16*$8)+Math_fround(Math_fround($13*$10)+Math_fround($15*$9)))-Math_fround($14*$11));$26=Math_fround($7+$7);$5=Math_fround(Math_fround(Math_fround($15*$11)+Math_fround(Math_fround($13*$8)+Math_fround($14*$9)))-Math_fround($16*$10));$21=Math_fround($5+$5);$27=Math_fround(Math_fround(1)-Math_fround($7*$26));$28=Math_fround($5*$21);HEAPF32[$3+168>>2]=$6*Math_fround($27-$28);$19=$5;$22=Math_fround(Math_fround(Math_fround($14*$10)+Math_fround(Math_fround($13*$11)+Math_fround($16*$9)))-Math_fround($15*$8));$5=Math_fround($22+$22);$19=Math_fround($19*$5);$14=Math_fround(Math_fround(Math_fround(Math_fround($13*$9)-Math_fround($15*$10))-Math_fround($14*$8))-Math_fround($16*$11));$13=Math_fround($14*$26);HEAPF32[$3+164>>2]=$6*Math_fround($19-$13);$15=Math_fround($7*$5);$16=Math_fround($14*$21);HEAPF32[$3+160>>2]=$6*Math_fround($15+$16);HEAPF32[$3+156>>2]=$20;HEAPF32[$3+152>>2]=$6*Math_fround($19+$13);$13=Math_fround($22*$5);HEAPF32[$3+148>>2]=$6*Math_fround($27-$13);$7=Math_fround($7*$21);$5=Math_fround($14*$5);HEAPF32[$3+144>>2]=$6*Math_fround($7-$5);HEAPF32[$3+140>>2]=$20;HEAPF32[$3+136>>2]=$6*Math_fround($15-$16);HEAPF32[$3+132>>2]=$6*Math_fround($7+$5);HEAPF32[$3+128>>2]=$6*Math_fround(Math_fround(Math_fround(1)-$28)-$13);$6=Math_fround($24+$23);HEAPF32[$3+184>>2]=$30+Math_fround(Math_fround($10*$17)+Math_fround(Math_fround(Math_fround($11*$6)+Math_fround($9*$18))-Math_fround($8*$12)));HEAPF32[$3+180>>2]=$29+Math_fround(Math_fround($11*$12)+Math_fround(Math_fround(Math_fround($9*$17)+Math_fround($8*$6))-Math_fround($10*$18)));HEAPF32[$3+176>>2]=$31+Math_fround(Math_fround($8*$18)+Math_fround(Math_fround(Math_fround($9*$12)+Math_fround($10*$6))-Math_fround($11*$17)));$2=$4+Math_imul($1,18568)|0;HEAP32[$3+192>>2]=HEAP32[$2+18556>>2];HEAP32[$3+196>>2]=HEAP32[$2+18560>>2];HEAP32[$3+200>>2]=HEAP32[$3>>2];$2=HEAP32[$3+64>>2];HEAP32[$3+204>>2]=$2;HEAP32[$3+216>>2]=$1;HEAP32[$3+212>>2]=$0;HEAP32[$3+208>>2]=HEAP32[$3+68>>2]-$2>>5}function b2WeldJoint__SolvePositionConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0);$2=global$0-80|0;global$0=$2;$6=HEAP32[$1+24>>2];$16=$6+Math_imul(HEAP32[$0+120>>2],12)|0;$13=HEAPF32[$16+4>>2];$20=HEAPF32[$16>>2];$6=$6+Math_imul(HEAP32[$0+116>>2],12)|0;$21=HEAPF32[$6+4>>2];$22=HEAPF32[$6>>2];$23=HEAPF32[$6+8>>2];$7=HEAPF32[$0+144>>2];$4=HEAPF32[$0+84>>2];$24=HEAPF32[$16+8>>2];$9=HEAPF32[$0+152>>2];$10=HEAPF32[$0+92>>2];$12=HEAPF32[$0+160>>2];$18=HEAPF32[$0+156>>2];$11=HEAPF32[$0+140>>2];$25=HEAPF32[$0+80>>2];$26=HEAPF32[$0+148>>2];$19=HEAPF32[$0+88>>2];$14=HEAPF32[$0+164>>2];$15=HEAPF32[$0+168>>2];HEAPF32[$2+72>>2]=$14+$15;$3=sinf($24);$5=cosf($24);$8=sinf($23);$17=cosf($23);$11=Math_fround($25-$11);$25=Math_fround($4-$7);$7=Math_fround(Math_fround($17*$11)-Math_fround($8*$25));$26=Math_fround($19-$26);$9=Math_fround($10-$9);$4=Math_fround(Math_fround($5*$26)-Math_fround($3*$9));$10=Math_fround(Math_fround($14*$7)+Math_fround($15*$4));HEAPF32[$2+68>>2]=$10;HEAPF32[$2+60>>2]=$10;$10=Math_fround($18+$12);HEAPF32[$2+56>>2]=Math_fround($10+Math_fround($14*Math_fround($7*$7)))+Math_fround($15*Math_fround($4*$4));$8=Math_fround(Math_fround($8*$11)+Math_fround($17*$25));$11=Math_fround(-$8);$3=Math_fround(Math_fround($3*$26)+Math_fround($5*$9));$5=Math_fround(Math_fround($14*$11)-Math_fround($15*$3));HEAPF32[$2+64>>2]=$5;HEAPF32[$2+48>>2]=$5;$5=Math_fround(Math_fround($14*Math_fround($7*$11))-Math_fround($15*Math_fround($3*$4)));HEAPF32[$2+52>>2]=$5;HEAPF32[$2+40>>2]=Math_fround($10+Math_fround($14*Math_fround($8*$8)))+Math_fround($15*Math_fround($3*$3));HEAPF32[$2+44>>2]=$5;$16=1;label$1:{if(!!(HEAPF32[$0+68>>2]>Math_fround(0))){$5=Math_fround(Math_fround(Math_fround($4+$20)-$22)-$7);HEAPF32[$2+24>>2]=$5;$9=Math_fround(Math_fround(Math_fround($3+$13)-$21)-$8);HEAPF32[$2+28>>2]=$9;b2Mat33__Solve22_28b2Vec2_20const__29_20const($2+8|0,$2+40|0,$2+24|0);$17=$3;$3=HEAPF32[$2+8>>2];$19=$4;$4=HEAPF32[$2+12>>2];$10=Math_fround(Math_fround($17*$3)-Math_fround($19*$4));$7=Math_fround(Math_fround($8*$3)-Math_fround($7*$4));$8=Math_fround(Math_sqrt(Math_fround(Math_fround($5*$5)+Math_fround($9*$9))));$13=Math_fround($13-Math_fround($12*$4));$12=Math_fround($20-Math_fround($12*$3));$3=Math_fround(Math_fround($18*$3)+$22);$4=Math_fround(Math_fround($18*$4)+$21);break label$1}$5=Math_fround(Math_fround($24-$23)-HEAPF32[$0+96>>2]);HEAPF32[$2+32>>2]=$5;$16=($5>Math_fround(0)?$5:Math_fround(-$5))<=Math_fround(.03490658849477768);$5=Math_fround(Math_fround(Math_fround($4+$20)-$22)-$7);HEAPF32[$2+24>>2]=$5;$9=Math_fround(Math_fround(Math_fround($3+$13)-$21)-$8);HEAPF32[$2+28>>2]=$9;b2Mat33__Solve33_28b2Vec3_20const__29_20const($2+8|0,$2+40|0,$2+24|0);$17=$3;$3=HEAPF32[$2+8>>2];$19=$4;$4=HEAPF32[$2+12>>2];$11=HEAPF32[$2+16>>2];$10=Math_fround(Math_fround(Math_fround($17*$3)-Math_fround($19*$4))-$11);$7=Math_fround(Math_fround(Math_fround($8*$3)-Math_fround($7*$4))-$11);$8=Math_fround(Math_sqrt(Math_fround(Math_fround($5*$5)+Math_fround($9*$9))));$13=Math_fround($13-Math_fround($12*$4));$12=Math_fround($20-Math_fround($12*$3));$3=Math_fround(Math_fround($18*$3)+$22);$4=Math_fround(Math_fround($18*$4)+$21)}$6=HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+116>>2],12)|0;HEAPF32[$6+4>>2]=$4;HEAPF32[$6>>2]=$3;$6=HEAP32[$1+24>>2];HEAPF32[($6+Math_imul(HEAP32[$0+116>>2],12)|0)+8>>2]=$23-Math_fround($14*$7);$6=$6+Math_imul(HEAP32[$0+120>>2],12)|0;HEAPF32[$6+4>>2]=$13;HEAPF32[$6>>2]=$12;HEAPF32[(HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+120>>2],12)|0)+8>>2]=$24+Math_fround($15*$10);global$0=$2+80|0;return $8<=Math_fround(.004999999888241291)&$16}function dmVMath__EulerToQuat_28Vectormath__Aos__Vector3_29($0,$1){var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=0,$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0);label$1:{$4=HEAPF32[$1+4>>2];$5=HEAPF32[$1+8>>2];$6=($4!=Math_fround(0))<<1|($5!=Math_fround(0))<<2;$3=HEAPF32[$1>>2];$1=$6|$3!=Math_fround(0);if($1>>>0>4){break label$1}label$2:{switch($1-1|0){default:HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=1065353216;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;return;case 2:break label$1;case 0:case 1:case 3:break label$2}}$10=HEAP32[144610];$12=$10;$4=Math_fround(Math_fround($5+Math_fround($4+$3))*Math_fround(.008726646192371845));$2=+$4*10430.378350470453;label$4:{if(Math_abs($2)<2147483648){$1=~~$2;break label$4}$1=-2147483648}$5=HEAPF32[$12+((($1>>>9|0)+1&127)<<2)>>2];$3=HEAPF32[$10+($1>>>7&508)>>2];HEAP32[$0+8>>2]=0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;$13=$3;$3=Math_fround(Math_fround($1&511)*Math_fround(.001953125));HEAPF32[$0+12>>2]=Math_fround($13*Math_fround(Math_fround(1)-$3))+Math_fround($3*$5);$1=($6<<1)+$0|0;$2=+Math_fround($4+Math_fround(-1.5707963705062866))*10430.378350470453;label$6:{if(Math_abs($2)<2147483648){$0=~~$2;break label$6}$0=-2147483648}$4=Math_fround(Math_fround($0&511)*Math_fround(.001953125));HEAPF32[$1>>2]=Math_fround(Math_fround(Math_fround(1)-$4)*HEAPF32[$10+($0>>>7&508)>>2])+Math_fround($4*HEAPF32[$10+((($0>>>9|0)+1&127)<<2)>>2]);return}$8=Math_fround($5*Math_fround(.008726646192371845));$2=+$8*10430.378350470453;label$8:{if(Math_abs($2)<2147483648){$1=~~$2;break label$8}$1=-2147483648}$5=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$7=Math_fround(Math_fround(1)-$5);$6=HEAP32[144610];$9=HEAPF32[$6+($1>>>7&508)>>2];$11=HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2];$14=Math_fround($4*Math_fround(.008726646192371845));$2=+$14*10430.378350470453;label$10:{if(Math_abs($2)<2147483648){$1=~~$2;break label$10}$1=-2147483648}$4=Math_fround($7*$9);$7=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$7=Math_fround(Math_fround(Math_fround(Math_fround(1)-$7)*HEAPF32[$6+($1>>>7&508)>>2])+Math_fround($7*HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2]));$9=Math_fround($4+Math_fround($5*$11));$11=Math_fround($7*$9);$3=Math_fround($3*Math_fround(.008726646192371845));$2=+$3*10430.378350470453;label$12:{if(Math_abs($2)<2147483648){$1=~~$2;break label$12}$1=-2147483648}$4=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$4=Math_fround(Math_fround(Math_fround(Math_fround(1)-$4)*HEAPF32[$6+($1>>>7&508)>>2])+Math_fround($4*HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2]));$2=+Math_fround($3+Math_fround(-1.5707963705062866))*10430.378350470453;label$14:{if(Math_abs($2)<2147483648){$1=~~$2;break label$14}$1=-2147483648}$5=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$5=Math_fround(Math_fround(Math_fround(Math_fround(1)-$5)*HEAPF32[$6+($1>>>7&508)>>2])+Math_fround($5*HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2]));$2=+Math_fround($8+Math_fround(-1.5707963705062866))*10430.378350470453;label$16:{if(Math_abs($2)<2147483648){$1=~~$2;break label$16}$1=-2147483648}$3=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$8=Math_fround(Math_fround(Math_fround(Math_fround(1)-$3)*HEAPF32[$6+($1>>>7&508)>>2])+Math_fround($3*HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2]));$15=Math_fround($8*$5);$12=$0;$13=Math_fround($11*$4);$2=+Math_fround($14+Math_fround(-1.5707963705062866))*10430.378350470453;label$18:{if(Math_abs($2)<2147483648){$1=~~$2;break label$18}$1=-2147483648}$3=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$3=Math_fround(Math_fround(Math_fround(Math_fround(1)-$3)*HEAPF32[$6+($1>>>7&508)>>2])+Math_fround($3*HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2]));HEAPF32[$12+12>>2]=$13-Math_fround($3*$15);HEAPF32[$0+8>>2]=Math_fround(Math_fround($7*$8)*$4)-Math_fround($9*Math_fround($5*$3));HEAPF32[$0+4>>2]=Math_fround(Math_fround($3*$9)*$4)+Math_fround($7*$15);HEAPF32[$0>>2]=Math_fround(Math_fround($3*$8)*$4)+Math_fround($11*$5)}function dmGameSystem__CompSpriteGetProperty_28dmGameObject__ComponentGetPropertyParams_20const__2c_20dmGameObject__PropertyDesc__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=Math_fround(0),$6=0,$7=0,$8=0;$7=global$0-48|0;global$0=$7;$2=HEAP32[$0+4>>2];$3=HEAP32[$2+16>>2];$4=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$2+20>>2]-$3>>3>>>0>$4>>>0){$6=HEAP32[$2>>2];$4=HEAP32[$3+($4<<3)>>2];if(HEAP32[$2+4>>2]-$6>>10>>>0>$4>>>0){label$3:{label$4:{$2=HEAP32[$0+16>>2];$3=HEAP32[$0+20>>2];if(!(($2|0)==HEAP32[146610]&($3|0)==HEAP32[146611]|($2|0)==HEAP32[146612]&($3|0)==HEAP32[146613]|($2|0)==HEAP32[146614]&($3|0)==HEAP32[146615])){if(($2|0)!=HEAP32[146616]|($3|0)!=HEAP32[146617]){break label$4}}$0=dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector3_20const__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$3,($6+($4<<10)|0)+48|0,586440);break label$3}label$6:{if(!(($2|0)==HEAP32[146624]&($3|0)==HEAP32[146625]|(($2|0)==HEAP32[146620]&($3|0)==HEAP32[146621]|($2|0)==HEAP32[146622]&($3|0)==HEAP32[146623]))){if(($2|0)!=HEAP32[146626]|($3|0)!=HEAP32[146627]){break label$6}}$0=dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector3_20const__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$3,($6+($4<<10)|0)- -64|0,586480);break label$3}if(($2|0)==HEAP32[146630]&($3|0)==HEAP32[146631]){$0=$6+($4<<10)|0;$5=HEAPF32[$0+1e3>>2];$0=HEAPU16[$0+1010>>1];$5=$0&2?Math_fround(Math_fround(1)-$5):$5;label$9:{if(!($0&1)){break label$9}$5=Math_fround($5+$5);if(!($5>Math_fround(1))){break label$9}$5=Math_fround(Math_fround(2)-$5)}$0=$7+8|0;HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$5;$0=$7;$3=HEAP32[$0+44>>2];$2=$1- -64|0;HEAP32[$2>>2]=HEAP32[$0+40>>2];HEAP32[$2+4>>2]=$3;$2=HEAP32[$0+36>>2];HEAP32[$1+56>>2]=HEAP32[$0+32>>2];HEAP32[$1+60>>2]=$2;$2=HEAP32[$0+28>>2];HEAP32[$1+48>>2]=HEAP32[$0+24>>2];HEAP32[$1+52>>2]=$2;$2=HEAP32[$0+20>>2];HEAP32[$1+40>>2]=HEAP32[$0+16>>2];HEAP32[$1+44>>2]=$2;$2=HEAP32[$0+12>>2];HEAP32[$1+32>>2]=HEAP32[$0+8>>2];HEAP32[$1+36>>2]=$2;$0=0;break label$3}if(($2|0)==HEAP32[146632]&($3|0)==HEAP32[146633]){$5=HEAPF32[($6+($4<<10)|0)+1004>>2];$0=$7+8|0;HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$5;$0=$7;$3=HEAP32[$0+44>>2];$2=$1- -64|0;HEAP32[$2>>2]=HEAP32[$0+40>>2];HEAP32[$2+4>>2]=$3;$2=HEAP32[$0+36>>2];HEAP32[$1+56>>2]=HEAP32[$0+32>>2];HEAP32[$1+60>>2]=$2;$2=HEAP32[$0+28>>2];HEAP32[$1+48>>2]=HEAP32[$0+24>>2];HEAP32[$1+52>>2]=$2;$2=HEAP32[$0+20>>2];HEAP32[$1+40>>2]=HEAP32[$0+16>>2];HEAP32[$1+44>>2]=$2;$2=HEAP32[$0+12>>2];HEAP32[$1+32>>2]=HEAP32[$0+8>>2];HEAP32[$1+36>>2]=$2;$0=0;break label$3}if(($2|0)==HEAP32[146590]&($3|0)==HEAP32[146591]){$2=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$6+($4<<10)|0;$0=HEAP32[$3+980>>2];if(!$0){$0=HEAP32[HEAP32[$3+188>>2]+16>>2]}$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($2,$0,$1);break label$3}if(($2|0)==HEAP32[146588]&($3|0)==HEAP32[146589]){$2=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$6+($4<<10)|0;$0=HEAP32[$3+976>>2];if(!$0){$0=HEAP32[HEAP32[$3+188>>2]+8>>2]}$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($2,$0,$1);break label$3}if(($2|0)==HEAP32[146592]&($3|0)==HEAP32[146593]){$2=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$6+($4<<10)|0;$0=HEAP32[$3+976>>2];if(!$0){$0=HEAP32[HEAP32[$3+188>>2]+8>>2]}$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($2,HEAP32[$0+48>>2],$1);break label$3}$8=$6+($4<<10)|0;$0=HEAP32[$8+980>>2];if(!$0){$0=HEAP32[HEAP32[$8+188>>2]+16>>2]}$0=dmGameSystem__GetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__2c_20bool_2c_20bool_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmRender__Constant___29_2c_20void__29($0,$2,$3,$1,0,487,$6+($4<<10)|0)}global$0=$7+48|0;return $0|0}}__assert_fail(52907,52459,430,52059);abort()}function b2RevoluteJoint__SolvePositionConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=0,$29=Math_fround(0);$3=HEAP32[$1+24>>2];$14=$3+Math_imul(HEAP32[$0+128>>2],12)|0;$28=$14;$3=$3+Math_imul(HEAP32[$0+132>>2],12)|0;$11=HEAPF32[$3+8>>2];$23=HEAPF32[$3+4>>2];$24=HEAPF32[$3>>2];$12=HEAPF32[$14+8>>2];$25=HEAPF32[$14+4>>2];$9=HEAPF32[$14>>2];$13=HEAPF32[$0+176>>2];$15=HEAPF32[$0+180>>2];label$1:{if(!HEAPU8[$0+112|0]|Math_fround($13+$15)==Math_fround(0)){break label$1}$3=HEAP32[$0+224>>2];if(!$3){break label$1}$3=$3+ -1|0;label$3:{if($3>>>0>2){break label$3}$2=Math_fround(Math_fround($11-$12)-HEAPF32[$0+116>>2]);label$5:{switch($3-1|0){case 1:$2=Math_fround($2-HEAPF32[$0+120>>2]);$2=Math_fround(Math_max($2Math_fround(0)?$2:Math_fround(-$2);$2=Math_fround($2*Math_fround(-HEAPF32[$0+220>>2]));break label$3;default:$4=Math_fround($2-HEAPF32[$0+120>>2]);$2=Math_fround($4+Math_fround(.03490658849477768));$2=Math_fround(Math_fround(Math_max($2>2]));$19=Math_fround(-$4);break label$3;case 0:break label$5}}$19=Math_fround($2-HEAPF32[$0+124>>2]);$2=Math_fround($19+Math_fround(-.03490658849477768));$2=Math_fround(Math_fround(Math_max($2>2]))}$11=Math_fround($11+Math_fround($15*$2));$12=Math_fround($12-Math_fround($13*$2))}$20=HEAPF32[$0+164>>2];$16=HEAPF32[$0+80>>2];$26=sinf($11);$5=HEAPF32[$0+160>>2];$6=HEAPF32[$0+76>>2];$27=cosf($11);$17=HEAPF32[$0+156>>2];$21=HEAPF32[$0+72>>2];$7=sinf($12);$4=HEAPF32[$0+152>>2];$2=HEAPF32[$0+68>>2];$8=cosf($12);$10=Math_fround($6-$5);$5=Math_fround($16-$20);$22=Math_fround(Math_fround($27*$10)-Math_fround($26*$5));$20=Math_fround($15*$22);$6=Math_fround($2-$4);$4=Math_fround($21-$17);$18=Math_fround(Math_fround($8*$6)-Math_fround($7*$4));$16=HEAPF32[$0+168>>2];$17=HEAPF32[$0+172>>2];$2=Math_fround($16+$17);$21=Math_fround(Math_fround(Math_fround($18*Math_fround($13*$18))+$2)+Math_fround($22*$20));$29=$9;$9=Math_fround(Math_fround(Math_fround($24+$22)-$9)-$18);$7=Math_fround(Math_fround($7*$6)+Math_fround($8*$4));$8=Math_fround(Math_fround($26*$10)+Math_fround($27*$5));$10=Math_fround(Math_fround($7*Math_fround($18*Math_fround(-$13)))-Math_fround($8*$20));$5=Math_fround(Math_fround(Math_fround($23+$8)-$25)-$7);$4=Math_fround(Math_fround(Math_fround($7*Math_fround($13*$7))+$2)+Math_fround($8*Math_fround($15*$8)));$2=Math_fround(Math_fround($4*$21)-Math_fround($10*$10));$2=Math_fround(-($2!=Math_fround(0)?Math_fround(Math_fround(1)/$2):$2));$6=Math_fround(Math_fround(Math_fround($21*$9)-Math_fround($10*$5))*$2);HEAPF32[$14>>2]=$29-Math_fround($16*$6);$2=Math_fround(Math_fround(Math_fround($4*$5)-Math_fround($10*$9))*$2);HEAPF32[$28+4>>2]=$25-Math_fround($16*$2);$3=HEAP32[$1+24>>2];HEAPF32[($3+Math_imul(HEAP32[$0+128>>2],12)|0)+8>>2]=$12-Math_fround($13*Math_fround(Math_fround($18*$2)-Math_fround($7*$6)));$3=$3+Math_imul(HEAP32[$0+132>>2],12)|0;HEAPF32[$3+4>>2]=$23+Math_fround($17*$2);HEAPF32[$3>>2]=$24+Math_fround($17*$6);HEAPF32[(HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+132>>2],12)|0)+8>>2]=$11+Math_fround($15*Math_fround(Math_fround($22*$2)-Math_fround($8*$6)));return($19<=Math_fround(.03490658849477768)?Math_fround(Math_sqrt(Math_fround(Math_fround($9*$9)+Math_fround($5*$5))))<=Math_fround(.004999999888241291):0)|0}function btTriangleShape__isInside_28btVector3_20const__2c_20float_29_20const($0,$1,$2){$0=$0|0;$1=$1|0;$2=Math_fround($2);var $3=Math_fround(0),$4=Math_fround(0),$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0;$5=global$0-32|0;global$0=$5;$13=HEAPF32[$0+52>>2];$8=Math_fround(HEAPF32[$0+68>>2]-$13);$4=HEAPF32[$0+56>>2];$7=Math_fround(HEAPF32[$0+88>>2]-$4);$3=Math_fround(HEAPF32[$0+72>>2]-$4);$9=Math_fround(HEAPF32[$0+84>>2]-$13);$6=Math_fround(Math_fround($8*$7)-Math_fround($3*$9));$11=$6;$14=Math_fround($6*$6);$12=$3;$3=HEAPF32[$0+60>>2];$6=Math_fround(HEAPF32[$0+92>>2]-$3);$10=Math_fround(HEAPF32[$0+76>>2]-$3);$7=Math_fround(Math_fround($12*$6)-Math_fround($10*$7));$8=Math_fround(Math_fround($10*$9)-Math_fround($8*$6));$9=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($14+Math_fround(Math_fround($7*$7)+Math_fround($8*$8))))));$6=Math_fround($11*$9);$7=Math_fround($7*$9);$8=Math_fround($8*$9);$4=Math_fround(Math_fround(Math_fround(HEAPF32[$1+8>>2]*$6)+Math_fround(Math_fround(HEAPF32[$1>>2]*$7)+Math_fround(HEAPF32[$1+4>>2]*$8)))-Math_fround(Math_fround($3*$6)+Math_fround(Math_fround($13*$7)+Math_fround($4*$8))));$13=Math_fround(-$2);label$1:{if($4>=$13^1|$4<=$2^1){break label$1}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+92>>2]]($0,0,$5+16|0,$5);$9=HEAPF32[$5+16>>2];$4=Math_fround(HEAPF32[$5>>2]-$9);$10=HEAPF32[$5+20>>2];$3=Math_fround(HEAPF32[$5+4>>2]-$10);$2=Math_fround(Math_fround($8*$4)-Math_fround($7*$3));$11=$2;$14=Math_fround($2*$2);$2=Math_fround($6*$3);$12=HEAPF32[$5+24>>2];$3=Math_fround(HEAPF32[$5+8>>2]-$12);$2=Math_fround($2-Math_fround($8*$3));$4=Math_fround(Math_fround($7*$3)-Math_fround($6*$4));$3=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($14+Math_fround(Math_fround($2*$2)+Math_fround($4*$4))))));$11=Math_fround($11*$3);$2=Math_fround($2*$3);$4=Math_fround($4*$3);if(Math_fround(Math_fround(Math_fround(HEAPF32[$1+8>>2]*$11)+Math_fround(Math_fround(HEAPF32[$1>>2]*$2)+Math_fround(HEAPF32[$1+4>>2]*$4)))-Math_fround(Math_fround($12*$11)+Math_fround(Math_fround($9*$2)+Math_fround($10*$4))))<$13){break label$1}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+92>>2]]($0,1,$5+16|0,$5);$9=HEAPF32[$5+16>>2];$4=Math_fround(HEAPF32[$5>>2]-$9);$10=HEAPF32[$5+20>>2];$3=Math_fround(HEAPF32[$5+4>>2]-$10);$2=Math_fround(Math_fround($8*$4)-Math_fround($7*$3));$11=$2;$14=Math_fround($2*$2);$2=Math_fround($6*$3);$12=HEAPF32[$5+24>>2];$3=Math_fround(HEAPF32[$5+8>>2]-$12);$2=Math_fround($2-Math_fround($8*$3));$4=Math_fround(Math_fround($7*$3)-Math_fround($6*$4));$3=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($14+Math_fround(Math_fround($2*$2)+Math_fround($4*$4))))));$11=Math_fround($11*$3);$2=Math_fround($2*$3);$4=Math_fround($4*$3);if(!!(Math_fround(Math_fround(Math_fround(HEAPF32[$1+8>>2]*$11)+Math_fround(Math_fround(HEAPF32[$1>>2]*$2)+Math_fround(HEAPF32[$1+4>>2]*$4)))-Math_fround(Math_fround($12*$11)+Math_fround(Math_fround($9*$2)+Math_fround($10*$4))))<$13)){break label$1}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+92>>2]]($0,2,$5+16|0,$5);$4=HEAPF32[$5+16>>2];$3=Math_fround(HEAPF32[$5>>2]-$4);$9=HEAPF32[$5+20>>2];$10=Math_fround(HEAPF32[$5+4>>2]-$9);$2=Math_fround(Math_fround($8*$3)-Math_fround($7*$10));$11=$2;$12=Math_fround($2*$2);$14=Math_fround($6*$10);$2=$8;$8=HEAPF32[$5+24>>2];$10=Math_fround(HEAPF32[$5+8>>2]-$8);$2=Math_fround($14-Math_fround($2*$10));$6=Math_fround(Math_fround($7*$10)-Math_fround($6*$3));$7=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($12+Math_fround(Math_fround($2*$2)+Math_fround($6*$6))))));$3=Math_fround($11*$7);$2=Math_fround($2*$7);$6=Math_fround($6*$7);if(Math_fround(Math_fround(Math_fround(HEAPF32[$1+8>>2]*$3)+Math_fround(Math_fround(HEAPF32[$1>>2]*$2)+Math_fround(HEAPF32[$1+4>>2]*$6)))-Math_fround(Math_fround($8*$3)+Math_fround(Math_fround($4*$2)+Math_fround($9*$6))))<$13){break label$1}$15=1}global$0=$5+32|0;return $15|0}function dmGameSystem__CompCollisionObjectUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0;$3=global$0-112|0;global$0=$3;label$1:{$4=HEAP32[$0+8>>2];$2=0;label$2:{if(!$4){break label$2}$2=HEAP32[$0>>2];$7=HEAP32[$0+12>>2];HEAP32[$3+44>>2]=$4;HEAP8[$3+36|0]=1;HEAP32[$3+32>>2]=$7;HEAP32[$3+40>>2]=$2;label$3:{if(HEAPU8[$7+13|0]){$5=HEAP32[$7>>2];$2=HEAP32[$5+64>>2];$5=HEAP32[$5+68>>2];break label$3}$5=HEAP32[$7>>2];$2=HEAP32[$5+56>>2];$5=HEAP32[$5+60>>2]}dmMessage__Dispatch_28unsigned_20long_20long_2c_20void_20_28__29_28dmMessage__Message__2c_20void__29_2c_20void__29($2,$5,445,$3+32|0);$11=HEAPU8[$3+36|0];label$5:{if(!HEAPU8[561908]){break label$5}$2=HEAP32[$4+140>>2];$5=HEAP32[$4+144>>2]-$2|0;if(!$5){break label$5}$5=$5>>2;$12=$5>>>0>1?$5:1;$5=0;while(1){$2=HEAP32[($5<<2)+$2>>2];$6=HEAP32[$2>>2];$8=HEAP32[$6+136>>2];if(!(!$8|!(HEAP8[$8+44|0]&1))){$9=HEAP32[$6+164>>2];$10=dmPhysics__CollisionObjectData__CollisionObjectData_28_29($3+32|0);dmGameSystem__SetCollisionObjectData_28dmGameSystem__CollisionWorld__2c_20dmGameSystem__CollisionComponent__2c_20dmGameSystem__CollisionObjectResource__2c_20dmPhysicsDDF__CollisionObjectDesc__2c_20bool_2c_20dmPhysics__CollisionObjectData__29($4,$2,HEAP32[$2>>2],$9,1,$10);HEAP16[$2+20>>1]=HEAPU16[$3+62>>1];dmPhysics__DeleteCollisionObject2D_28dmPhysics__World2D__2c_20void__29(HEAP32[$4+128>>2],HEAP32[$2+8>>2]);$6=HEAP32[$6+136>>2];$9=HEAP32[$6+12>>2];$6=HEAP32[$6+8>>2];if(($9|0)==($6|0)){break label$1}$6=dmPhysics__NewCollisionObject2D_28dmPhysics__World2D__2c_20dmPhysics__CollisionObjectData_20const__2c_20void___2c_20Vectormath__Aos__Vector3__2c_20Vectormath__Aos__Quat__2c_20unsigned_20int_29(HEAP32[$4+128>>2],$10,$6,0,0,$9-$6>>2);HEAP32[$2+8>>2]=$6;if(HEAP8[HEAP32[$2>>2]+168|0]&1){dmPhysics__ClearGridShapeHulls_28void__29($6)}dmGameSystem__SetupTileGrid_28dmGameSystem__CollisionWorld__2c_20dmGameSystem__CollisionComponent__29($4,$2);HEAP8[$8+44|0]=HEAPU8[$8+44|0]&254}$5=$5+1|0;if(($12|0)==($5|0)){break label$5}$2=HEAP32[$4+140>>2];if(HEAP32[$4+144>>2]-$2>>2>>>0>$5>>>0){continue}break}__assert_fail(38858,38775,430,38452);abort()}HEAP32[$3+104>>2]=0;HEAP32[$3+100>>2]=$7;HEAP32[$3+96>>2]=$4;HEAP32[$3+88>>2]=0;HEAP32[$3+84>>2]=$7;HEAP32[$3+80>>2]=$4;$2=$3+32|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+40>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;$0=HEAP32[HEAP32[$0+4>>2]>>2];HEAP32[$2+40>>2]=$4;HEAP32[$2+36>>2]=446;HEAP32[$2+32>>2]=$4;HEAP32[$2+28>>2]=447;HEAP32[$2+12>>2]=448;HEAP32[$2+4>>2]=449;HEAP32[$2>>2]=$0;HEAP32[$2+24>>2]=$4;HEAP32[$2+20>>2]=450;HEAP32[$2+16>>2]=$3+80;HEAP32[$2+8>>2]=$3+96;HEAP32[$4+132>>2]=$0;HEAP32[146024]=0;label$9:{if(HEAPU8[$7+13|0]){dmPhysics__StepWorld3D_28dmPhysics__World3D__2c_20dmPhysics__StepWorldContext_20const__29(HEAP32[$4+128>>2],$2);break label$9}dmPhysics__StepWorld2D_28dmPhysics__World2D__2c_20dmPhysics__StepWorldContext_20const__29(HEAP32[$4+128>>2],$2)}HEAP8[$1|0]=HEAP32[146024]>0;$0=HEAP32[$7+4>>2];label$11:{if(HEAPU32[$3+104>>2]>=$0>>>0){if(HEAPU8[584100]){break label$11}HEAP32[$3+16>>2]=$0;HEAP32[$3+20>>2]=HEAP32[131809];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,37438,37733,$3+16|0);$0=1}else{$0=0}HEAP8[584100]=$0}$0=HEAP32[$7+8>>2];label$14:{if(HEAPU32[$3+88>>2]>=$0>>>0){if(HEAPU8[584101]){break label$14}HEAP32[$3>>2]=$0;HEAP32[$3+4>>2]=HEAP32[131810];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,37438,37832,$3);$0=1}else{$0=0}HEAP8[584101]=$0}label$17:{if(HEAPU8[$7+13|0]){HEAP32[HEAP32[$4+128>>2]+60>>2]=HEAPU8[$7+12|0]?7631:0;break label$17}HEAP32[(HEAP32[$4+128>>2]+103084|0)+4>>2]=HEAPU8[$7+12|0]?11:0}$2=$11?0:-1e3}global$0=$3+112|0;return $2|0}__assert_fail(39018,38775,372,39029);abort()}function dmGameSystem__CompSpineModelCreate_28dmGameObject__ComponentCreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$2=global$0-112|0;global$0=$2;$4=HEAP32[$0+64>>2];$1=HEAP32[$4+8>>2];label$1:{label$2:{if(($1|0)==HEAP32[$4+4>>2]){HEAP32[$2>>2]=$1-HEAP32[$4>>2]>>2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,49964,$2);$5=-1e3;break label$2}$6=dmObjectPool_dmGameSystem__SpineModelComponent____Alloc_28_29($4);$1=operator_20new_28unsigned_20long_29(992);HEAP32[$1+144>>2]=0;HEAP32[$1+148>>2]=0;HEAP32[$1+168>>2]=0;HEAP32[$1+172>>2]=0;HEAP32[$1+160>>2]=0;HEAP32[$1+164>>2]=0;HEAP32[$1+152>>2]=0;HEAP32[$1+156>>2]=0;dmGameSystem__CompRenderConstants__CompRenderConstants_28_29($1+176|0);$1=memset($1,0,992);$3=HEAP32[$4+16>>2];if(HEAP32[$4+20>>2]-$3>>3>>>0<=$6>>>0){break label$1}$5=HEAP32[$4>>2];$3=HEAP32[$3+($6<<3)>>2];if(HEAP32[$4+4>>2]-$5>>2>>>0<=$3>>>0){break label$1}HEAP32[$5+($3<<2)>>2]=$1;HEAP32[$1>>2]=HEAP32[$0>>2];$3=HEAP32[$0+40>>2];$5=HEAP32[$0+44>>2];$7=HEAP32[$0+24>>2];$8=HEAP32[$0+32>>2];$9=HEAP32[$0+36>>2];$10=HEAP32[$0+16>>2];$11=HEAP32[$0+20>>2];HEAP32[$1+56>>2]=1065353216;HEAP32[$1+48>>2]=1065353216;HEAP32[$1+52>>2]=1065353216;HEAP32[$1+40>>2]=$7;HEAP32[$1+32>>2]=$10;HEAP32[$1+36>>2]=$11;HEAP32[$1+24>>2]=$3;HEAP32[$1+28>>2]=$5;HEAP32[$1+16>>2]=$8;HEAP32[$1+20>>2]=$9;HEAP32[$1+128>>2]=HEAP32[$0+60>>2];HEAP8[$1+144|0]=0;HEAP8[$1+145|0]=0;HEAP8[$1+146|0]=0;HEAP8[$1+147|0]=0;HEAP8[$1+148|0]=0;HEAP8[$1+149|0]=0;HEAP8[$1+150|0]=0;HEAP8[$1+151|0]=0;HEAP8[$1+168|0]=0;HEAP8[$1+169|0]=0;HEAP8[$1+170|0]=0;HEAP8[$1+171|0]=0;HEAP8[$1+172|0]=0;HEAP8[$1+173|0]=0;HEAP8[$1+174|0]=0;HEAP8[$1+175|0]=0;HEAP8[$1+160|0]=0;HEAP8[$1+161|0]=0;HEAP8[$1+162|0]=0;HEAP8[$1+163|0]=0;HEAP8[$1+164|0]=0;HEAP8[$1+165|0]=0;HEAP8[$1+166|0]=0;HEAP8[$1+167|0]=0;HEAP8[$1+152|0]=0;HEAP8[$1+153|0]=0;HEAP8[$1+154|0]=0;HEAP8[$1+155|0]=0;HEAP8[$1+156|0]=0;HEAP8[$1+157|0]=0;HEAP8[$1+158|0]=0;HEAP8[$1+159|0]=0;HEAP16[$1+980>>1]=HEAPU16[$0+76>>1];HEAP32[$1+68>>2]=0;HEAP32[$1+72>>2]=0;HEAP32[$1+64>>2]=1065353216;HEAP32[$1+76>>2]=0;HEAP32[$1+80>>2]=0;HEAP32[$1+88>>2]=0;HEAP32[$1+92>>2]=0;HEAP32[$1+84>>2]=1065353216;HEAP32[$1+96>>2]=0;HEAP32[$1+100>>2]=0;HEAP32[$1+108>>2]=0;HEAP32[$1+112>>2]=0;HEAP32[$1+104>>2]=1065353216;HEAP32[$1+116>>2]=0;HEAP32[$1+120>>2]=0;HEAP32[$1+124>>2]=1065353216;HEAP8[$1+982|0]=HEAPU8[$1+982|0]&252|1;label$4:{label$5:{if(!dmGameSystem__CreateGOBones_28dmGameSystem__SpineModelWorld__2c_20dmGameSystem__SpineModelComponent__29($4,$1)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50028,0);break label$5}$5=0;memset($2+32|0,0,80);$3=HEAP32[$4+108>>2];HEAP32[$2+100>>2]=0;HEAP32[$2+96>>2]=$1;HEAP32[$2+92>>2]=478;HEAP32[$2+88>>2]=0;HEAP32[$2+84>>2]=$1;HEAP32[$2+80>>2]=479;HEAP32[$2+28>>2]=$1+132;HEAP32[$2+24>>2]=$3;$7=HEAP32[$1+128>>2];$3=HEAP32[$7+4>>2];HEAP32[$2+56>>2]=$3;HEAP32[$2+60>>2]=HEAP32[HEAP32[$3+20>>2]>>2];HEAP32[$2+64>>2]=HEAP32[HEAP32[$3+24>>2]>>2];$8=HEAP32[HEAP32[$3+28>>2]>>2];HEAP32[$2+76>>2]=$3+52;HEAP32[$2+72>>2]=$3+36;HEAP32[$2+68>>2]=$8;HEAP32[$2+40>>2]=dmHashString64(HEAP32[HEAP32[$7>>2]+8>>2]);HEAP32[$2+44>>2]=i64toi32_i32$HIGH_BITS;HEAP32[$2+48>>2]=dmHashString64(HEAP32[HEAP32[HEAP32[$1+128>>2]>>2]+4>>2]);HEAP32[$2+52>>2]=i64toi32_i32$HIGH_BITS;$3=dmRig__InstanceCreate_28dmRig__InstanceCreateParams_20const__29($2+24|0);if(!$3){break label$4}HEAP32[$2+16>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50157,$2+16|0);if(($3|0)!=2){break label$5}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50216,0)}dmGameSystem__DestroyComponent_28dmGameSystem__SpineModelWorld__2c_20unsigned_20int_29($4,$6);$5=-1e3;break label$2}HEAP8[$1+982|0]=HEAPU8[$1+982|0]|8;HEAP32[HEAP32[$0+72>>2]>>2]=$6}global$0=$2+112|0;return $5|0}__assert_fail(50664,50554,430,50675);abort()}function dmResource__DoLoadResourceLocked_28dmResource__SResourceFactory__2c_20char_20const__2c_20char_20const__2c_20unsigned_20int__2c_20dmArray_char___29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0;$5=global$0-3136|0;global$0=$5;label$1:{if(HEAP8[582800]&1){break label$1}if(!__cxa_guard_acquire(582800)){break label$1}if(HEAPU8[1130703]){$6=dmProfile__AllocateScope_28char_20const__29(28339)}else{$6=-1}HEAP32[145699]=$6;__cxa_guard_release(582800)}label$3:{if(HEAP8[582808]&1){break label$3}if(!__cxa_guard_acquire(582808)){break label$3}if(HEAPU8[1130703]){$6=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(29124,12)}else{$6=0}HEAP32[145701]=$6;__cxa_guard_release(582808)}$6=HEAP32[145699];label$5:{if(($6|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($5+3120|0,$6,29124,HEAP32[145701]);break label$5}HEAP32[$5+3120>>2]=0}label$7:{label$8:{label$9:{label$10:{$6=HEAP32[$0+7408>>2];label$11:{if($6){if(!dmResource__LoadFromManifest_28dmResource__Manifest_20const__2c_20char_20const__2c_20unsigned_20int__2c_20dmArray_char___29($6,$2,$3,$4)){break label$11}}HEAP32[$5+36>>2]=$1;HEAP32[$5+32>>2]=$0+5316;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($5+2096|0,1024,26253,$5+32|0);$6=0;$7=$5+2096|0;$8=$7;label$13:{while(1){label$15:{$1=HEAPU8[$8|0];label$16:{label$17:{if(($1|0)!=47){if($1){break label$17}HEAP8[$7|0]=0;if(!HEAP32[$0+7364>>2]){break label$13}HEAP32[$3>>2]=0;HEAP32[$0+7392>>2]=-1;HEAP32[$0+7396>>2]=0;HEAP32[$0+7372>>2]=$4;HEAP32[$0+7400>>2]=-1;HEAP32[$0+7404>>2]=0;dmURI__Encode_28char_20const__2c_20char__2c_20unsigned_20int_2c_20unsigned_20int__29($5+2096|0,$5+48|0);$4=dmHttpClient__Get_28dmHttpClient__Client__2c_20char_20const__29(HEAP32[$0+7364>>2],$5+48|0);if(!$4){break label$15}$1=-3;$2=HEAP32[$0+7400>>2];if(($2|0)==404){break label$7}if(($2|0)==304|($4|0)!=1){break label$15}HEAP32[$5+16>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,26260,29137,$5+16|0);break label$8}if(($6&255)==47){break label$16}}HEAP8[$7|0]=$1;$7=$7+1|0}$8=$8+1|0;$6=$1;continue}break}$1=HEAP32[$0+7404>>2];if($1){break label$7}label$19:{if(HEAP32[$0+7400>>2]==304){break label$19}$1=HEAP32[$0+7392>>2];if(($1|0)==-1){break label$19}$2=HEAP32[$0+7396>>2];if(($2|0)==($1|0)){break label$19}HEAP32[$5+8>>2]=$2;HEAP32[$5+4>>2]=$1;HEAP32[$5>>2]=$5+2096;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,26260,29169,$5)}HEAP32[$3>>2]=HEAP32[$0+7396>>2];break label$11}$0=HEAP32[$0+7412>>2];if($0){$1=dmResource__LoadFromManifest_28dmResource__Manifest_20const__2c_20char_20const__2c_20unsigned_20int__2c_20dmArray_char___29($0,$2,$3,$4);break label$7}$1=-3;if(dmSys__ResolveMountFileName_28char__2c_20unsigned_20long_2c_20char_20const__29($5+48|0,$5+2096|0)){break label$7}$0=dmSys__ResourceSize_28char_20const__2c_20unsigned_20int__29($5+48|0,$5+44|0)+2|0;if($0>>>0>2){break label$8}label$21:{switch($0-1|0){case 1:break label$21;case 0:break label$8;default:break label$7}}$8=HEAP32[$4>>2];$7=HEAP32[$5+44>>2];if(HEAP32[$4+8>>2]-$8>>>0<$7>>>0){if(HEAP8[$4+12|0]&1){break label$10}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($7,1,$4,$4+8|0,$4+4|0);$8=HEAP32[$4>>2];$7=HEAP32[$5+44>>2]}HEAP32[$4+4>>2]=$8;$0=dmSys__LoadResource_28char_20const__2c_20void__2c_20unsigned_20int_2c_20unsigned_20int__29($5+48|0,$8,$7,$5+44|0)+2|0;if($0>>>0>2){break label$8}label$23:{switch($0-1|0){case 1:break label$23;case 0:break label$8;default:break label$7}}$1=HEAP32[$4>>2];$0=HEAP32[$5+44>>2];if(HEAP32[$4+8>>2]-$1>>>0<$0>>>0){break label$9}HEAP32[$4+4>>2]=$0+$1;HEAP32[$3>>2]=$0}$1=0;break label$7}__assert_fail(29450,28946,444,29525);abort()}__assert_fail(29537,28946,457,29556);abort()}$1=-9}if(HEAP32[$5+3120>>2]){dmProfile__ProfileScope__EndScope_28_29($5+3120|0)}global$0=$5+3136|0;return $1}function singlestep($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$2=HEAP32[$0+16>>2];$3=HEAPU8[$2+21|0];$1=0;label$1:{if($3>>>0>4){break label$1}label$2:{switch($3-1|0){default:markroot($0);return 0;case 0:if(HEAP32[$2+36>>2]){return propagatemark($2)}$1=HEAP32[$2+140>>2];$3=$2+120|0;label$8:{if(($1|0)==($3|0)){break label$8}while(1){label$10:{if(HEAPU8[$1+5|0]&7){break label$10}$4=HEAP32[$1+8>>2];if(HEAP32[$4+8>>2]<4){break label$10}$4=HEAP32[$4>>2];if(!(HEAPU8[$4+5|0]&3)){break label$10}reallymarkobject($2,$4)}$1=HEAP32[$1+20>>2];if(($3|0)!=($1|0)){continue}break}if(!HEAP32[$2+36>>2]){break label$8}while(1){propagatemark($2);if(HEAP32[$2+36>>2]){continue}break}}$1=HEAP32[$2+44>>2];HEAP32[$2+44>>2]=0;HEAP32[$2+36>>2]=$1;if(HEAPU8[$0+5|0]&3){reallymarkobject($2,$0)}markmt($2);if(HEAP32[$2+36>>2]){while(1){propagatemark($2);if(HEAP32[$2+36>>2]){continue}break}}$1=HEAP32[$2+40>>2];HEAP32[$2+40>>2]=0;HEAP32[$2+36>>2]=$1;if($1){while(1){propagatemark($2);if(HEAP32[$2+36>>2]){continue}break}}$7=HEAP32[$0+16>>2];$3=HEAP32[$7+112>>2];$1=HEAP32[$3>>2];if($1){while(1){$4=HEAPU8[$1+5|0];label$19:{if(!($4&3?!($4&8):0)){$3=$1;break label$19}label$21:{$6=$1;$5=HEAP32[$1+8>>2];if(!(!$5|HEAPU8[$5+6|0]&4)){if(luaT_gettm($5,2,HEAP32[HEAP32[$0+16>>2]+196>>2])){break label$21}$4=HEAPU8[$1+5|0]}HEAP8[$6+5|0]=$4|8;$3=$1;break label$19}HEAP8[$1+5|0]=HEAPU8[$1+5|0]|8;$4=HEAP32[$1+16>>2];HEAP32[$3>>2]=HEAP32[$1>>2];$8=($4+$8|0)+32|0;$4=HEAP32[$7+48>>2];label$23:{if(!$4){HEAP32[$1>>2]=$1;break label$23}HEAP32[$1>>2]=HEAP32[$4>>2];HEAP32[HEAP32[$7+48>>2]>>2]=$1}HEAP32[$7+48>>2]=$1}$1=HEAP32[$3>>2];if($1){continue}break}}$1=HEAP32[$2+48>>2];if($1){while(1){$1=HEAP32[$1>>2];HEAP8[$1+5|0]=HEAPU8[$2+20|0]&3|HEAPU8[$1+5|0]&248;reallymarkobject($2,$1);if(HEAP32[$2+48>>2]!=($1|0)){continue}break}}$7=0;if(HEAP32[$2+36>>2]){while(1){$7=propagatemark($2)+$7|0;if(HEAP32[$2+36>>2]){continue}break}}$3=HEAP32[$2+44>>2];if($3){while(1){$1=HEAP32[$3+28>>2];if(!(!$1|!(HEAPU8[$3+5|0]&16))){while(1){$1=$1+ -1|0;$4=HEAP32[$3+12>>2]+($1<<4)|0;$5=HEAP32[$4+8>>2];label$33:{if(($5|0)<4){break label$33}$6=HEAP32[$4>>2];$0=HEAPU8[$6+5|0];if(($5|0)==4){HEAP8[$6+5|0]=$0&252;break label$33}if(!($0&8)|($5|0)!=7?!($0&3):0){break label$33}HEAP32[$4+8>>2]=0}if($1){continue}break}}$0=-1<>2]+($1<<5)|0;$4=HEAP32[$0+8>>2];label$37:{if(!$4){break label$37}$6=HEAP32[$0+24>>2];label$38:{label$39:{if(($6|0)<4){break label$39}$9=HEAP32[$0+16>>2];$5=HEAPU8[$9+5|0];if(($6|0)==4){HEAP8[$9+5|0]=$5&252;$4=HEAP32[$0+8>>2];break label$39}if($5&3){break label$38}}if(($4|0)<4){break label$37}$6=HEAP32[$0>>2];$5=HEAPU8[$6+5|0];if(($4|0)==4){HEAP8[$6+5|0]=$5&252;break label$37}if($5&3){break label$38}if(!($5&8)|($4|0)!=7){break label$37}}HEAP32[$0+8>>2]=0;if(HEAP32[$0+24>>2]<4){break label$37}HEAP32[$0+24>>2]=11}$0=$1+ -1|0;if($1){continue}break}$3=HEAP32[$3+24>>2];if($3){continue}break}}HEAP32[$2+24>>2]=0;HEAP8[$2+21|0]=2;HEAP32[$2+32>>2]=$2+28;HEAP8[$2+20|0]=HEAPU8[$2+20|0]^3;HEAP32[$2+72>>2]=HEAP32[$2+68>>2]-($7+$8|0);return 0;case 1:$1=HEAP32[$2+24>>2];HEAP32[$2+24>>2]=$1+1;$3=HEAP32[$2+68>>2];sweeplist($0,HEAP32[$2>>2]+($1<<2)|0,-3);if(HEAP32[$2+24>>2]>=HEAP32[$2+8>>2]){HEAP8[$2+21|0]=3}HEAP32[$2+72>>2]=HEAP32[$2+72>>2]+(HEAP32[$2+68>>2]-$3|0);return 10;case 2:$4=HEAP32[$2+68>>2];$1=sweeplist($0,HEAP32[$2+32>>2],40);HEAP32[$2+32>>2]=$1;if(!HEAP32[$1>>2]){$1=HEAP32[$0+16>>2];$3=HEAP32[$1+8>>2];$7=($3|0)/4|0;if(!(($3|0)<65|HEAPU32[$1+4>>2]>=$7>>>0)){luaS_resize($0,$3>>>1|0)}$3=HEAP32[$1+60>>2];if($3>>>0>=65){$6=$0;$0=$3>>>1|0;$3=luaM_realloc_($6,HEAP32[$1+52>>2],$3,$0);HEAP32[$1+60>>2]=$0;HEAP32[$1+52>>2]=$3}HEAP8[$2+21|0]=4}HEAP32[$2+72>>2]=HEAP32[$2+72>>2]+(HEAP32[$2+68>>2]-$4|0);return 400;case 3:break label$2}}if(HEAP32[$2+48>>2]){GCTM($0);$0=HEAP32[$2+72>>2];$1=100;if($0>>>0<101){break label$1}HEAP32[$2+72>>2]=$0+ -100;return 100}HEAP32[$2+76>>2]=0;HEAP8[$2+21|0]=0;$1=0}return $1}function unsigned_20int_20std____2____sort5_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$13=unsigned_20int_20std____2____sort4_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$1,$2,$3,$5);$6=HEAP32[$5>>2];$8=HEAP32[$6+208>>2];$9=HEAP32[$3>>2];$14=HEAP32[$6+200>>2];$10=HEAP32[HEAP32[$6+16>>2]+8>>2];$11=HEAP32[($10+(HEAP32[$4>>2]<<3)|0)+4>>2];$12=HEAP32[$6+204>>2];$6=HEAP32[$14+(($11>>>0)%($12>>>0)<<2)>>2];$7=0;label$1:{if(($6|0)==-1){break label$1}label$2:{while(1){$7=Math_imul($6,12);$6=$8+$7|0;if(($11|0)==HEAP32[$6>>2]){break label$2}$6=HEAP32[($7+$8|0)+8>>2];if(($6|0)!=-1){continue}break}$6=0}$7=$6?$6+4|0:0}$9=HEAP32[($10+($9<<3)|0)+4>>2];$6=HEAP32[$14+(($9>>>0)%($12>>>0)<<2)>>2];if(HEAP32[$8+Math_imul($6,12)>>2]!=($9|0)){while(1){$6=HEAP32[($8+Math_imul($6,12)|0)+8>>2];if(($9|0)!=HEAP32[$8+Math_imul($6,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$7>>2],HEAP32[($8+Math_imul($6,12)|0)+4>>2])|0)<=-1){$7=HEAP32[$3>>2];HEAP32[$3>>2]=HEAP32[$4>>2];HEAP32[$4>>2]=$7;$6=HEAP32[$5>>2];$7=HEAP32[$6+208>>2];$8=HEAP32[$2>>2];$12=HEAP32[$6+200>>2];$9=HEAP32[HEAP32[$6+16>>2]+8>>2];$10=HEAP32[($9+(HEAP32[$3>>2]<<3)|0)+4>>2];$11=HEAP32[$6+204>>2];$6=HEAP32[$12+(($10>>>0)%($11>>>0)<<2)>>2];$4=0;label$7:{if(($6|0)==-1){break label$7}label$8:{while(1){$4=Math_imul($6,12);$6=$4+$7|0;if(($10|0)==HEAP32[$6>>2]){break label$8}$6=HEAP32[($4+$7|0)+8>>2];if(($6|0)!=-1){continue}break}$6=0}$4=$6?$6+4|0:0}$8=HEAP32[($9+($8<<3)|0)+4>>2];$6=HEAP32[$12+(($8>>>0)%($11>>>0)<<2)>>2];if(HEAP32[$7+Math_imul($6,12)>>2]!=($8|0)){while(1){$6=HEAP32[($7+Math_imul($6,12)|0)+8>>2];if(($8|0)!=HEAP32[$7+Math_imul($6,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$4>>2],HEAP32[($7+Math_imul($6,12)|0)+4>>2])|0)>-1){return $13+1|0}$4=HEAP32[$2>>2];HEAP32[$2>>2]=HEAP32[$3>>2];HEAP32[$3>>2]=$4;$7=HEAP32[$5>>2];$4=HEAP32[$7+208>>2];$8=HEAP32[$1>>2];$12=HEAP32[$7+200>>2];$9=HEAP32[HEAP32[$7+16>>2]+8>>2];$10=HEAP32[($9+(HEAP32[$2>>2]<<3)|0)+4>>2];$11=HEAP32[$7+204>>2];$6=HEAP32[$12+(($10>>>0)%($11>>>0)<<2)>>2];$3=0;label$13:{if(($6|0)==-1){break label$13}label$14:{while(1){$3=Math_imul($6,12);$6=$3+$4|0;if(($10|0)==HEAP32[$6>>2]){break label$14}$6=HEAP32[($3+$4|0)+8>>2];if(($6|0)!=-1){continue}break}$6=0}$3=$6?$6+4|0:0}$7=HEAP32[($9+($8<<3)|0)+4>>2];$6=HEAP32[$12+(($7>>>0)%($11>>>0)<<2)>>2];if(HEAP32[$4+Math_imul($6,12)>>2]!=($7|0)){while(1){$6=HEAP32[($4+Math_imul($6,12)|0)+8>>2];if(($7|0)!=HEAP32[$4+Math_imul($6,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$3>>2],HEAP32[($4+Math_imul($6,12)|0)+4>>2])|0)>-1){return $13+2|0}$3=HEAP32[$1>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$2>>2]=$3;$4=HEAP32[$5>>2];$3=HEAP32[$4+208>>2];$5=HEAP32[$0>>2];$10=HEAP32[$4+200>>2];$7=HEAP32[HEAP32[$4+16>>2]+8>>2];$8=HEAP32[($7+(HEAP32[$1>>2]<<3)|0)+4>>2];$9=HEAP32[$4+204>>2];$6=HEAP32[$10+(($8>>>0)%($9>>>0)<<2)>>2];$2=0;label$19:{if(($6|0)==-1){break label$19}label$20:{while(1){$2=Math_imul($6,12);$6=$2+$3|0;if(($8|0)==HEAP32[$6>>2]){break label$20}$6=HEAP32[($2+$3|0)+8>>2];if(($6|0)!=-1){continue}break}$6=0}$2=$6?$6+4|0:0}$4=HEAP32[($7+($5<<3)|0)+4>>2];$6=HEAP32[$10+(($4>>>0)%($9>>>0)<<2)>>2];if(HEAP32[$3+Math_imul($6,12)>>2]!=($4|0)){while(1){$6=HEAP32[($3+Math_imul($6,12)|0)+8>>2];if(($4|0)!=HEAP32[$3+Math_imul($6,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$2>>2],HEAP32[($3+Math_imul($6,12)|0)+4>>2])|0)>-1){return $13+3|0}$2=HEAP32[$0>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$1>>2]=$2;$13=$13+4|0}return $13}function gjkepa2_impl__EPA__newface_28gjkepa2_impl__GJK__sSV__2c_20gjkepa2_impl__GJK__sSV__2c_20gjkepa2_impl__GJK__sSV__2c_20bool_29($0,$1,$2,$3,$4){var $5=0,$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0);$5=HEAP32[$0+9800>>2];if($5){$8=HEAP32[$5+52>>2];if($8){HEAP32[$8+48>>2]=HEAP32[$5+48>>2]}$8=HEAP32[$5+48>>2];if($8){HEAP32[$8+52>>2]=HEAP32[$5+52>>2]}if(HEAP32[$0+9800>>2]==($5|0)){HEAP32[$0+9800>>2]=HEAP32[$5+52>>2]}$8=$0+9804|0;HEAP32[$8>>2]=HEAP32[$8>>2]+ -1;HEAP32[$5+48>>2]=0;HEAP32[$5+52>>2]=HEAP32[$0+9792>>2];$8=HEAP32[$0+9792>>2];if($8){HEAP32[$8+48>>2]=$5}HEAP32[$0+9792>>2]=$5;$8=$0+9796|0;HEAP32[$8>>2]=HEAP32[$8>>2]+1;HEAP32[$5+32>>2]=$3;HEAP32[$5+28>>2]=$2;HEAP32[$5+24>>2]=$1;HEAP8[$5+59|0]=0;$16=HEAPF32[$2+24>>2];$7=HEAPF32[$3+24>>2];$10=HEAPF32[$1+24>>2];$11=HEAPF32[$3+20>>2];$9=HEAPF32[$1+20>>2];$12=HEAPF32[$2+20>>2];$13=HEAPF32[$2+16>>2];$14=HEAPF32[$3+16>>2];$6=HEAPF32[$1+16>>2];HEAP32[$5+12>>2]=0;$13=Math_fround($13-$6);$11=Math_fround($11-$9);$12=Math_fround($12-$9);$6=Math_fround($14-$6);$9=Math_fround(Math_fround($13*$11)-Math_fround($12*$6));HEAPF32[$5+8>>2]=$9;$16=Math_fround($16-$10);$15=Math_fround($16*$6);$6=Math_fround($7-$10);$10=Math_fround($15-Math_fround($13*$6));HEAPF32[$5+4>>2]=$10;$6=Math_fround(Math_fround($12*$6)-Math_fround($16*$11));HEAPF32[$5>>2]=$6;$7=HEAPF32[$1+24>>2];$11=HEAPF32[$2+24>>2];$12=Math_fround($7-$11);$16=Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround($6*$6)+Math_fround($10*$10))+Math_fround($9*$9))));$8=$16>Math_fround(9999999747378752e-20);$13=HEAPF32[$1+20>>2];$14=HEAPF32[$2+20>>2];$17=Math_fround($13-$14);$18=HEAPF32[$1+16>>2];$15=HEAPF32[$2+16>>2];$19=Math_fround($18-$15);$19=Math_fround(Math_fround($7*Math_fround(Math_fround($6*$17)-Math_fround($10*$19)))+Math_fround(Math_fround($18*Math_fround(Math_fround($10*$12)-Math_fround($9*$17)))+Math_fround($13*Math_fround(Math_fround($9*$19)-Math_fround($6*$12)))));$12=HEAPF32[$3+20>>2];$20=Math_fround($14-$12);$17=HEAPF32[$3+16>>2];$21=Math_fround($15-$17);$22=Math_fround($11*Math_fround(Math_fround($6*$20)-Math_fround($10*$21)));$23=$15;$15=$11;$11=HEAPF32[$3+24>>2];$15=Math_fround($15-$11);$14=Math_fround($22+Math_fround(Math_fround($23*Math_fround(Math_fround($10*$15)-Math_fround($9*$20)))+Math_fround($14*Math_fround(Math_fround($9*$21)-Math_fround($6*$15)))));$14=$19<$14?$19:$14;$13=Math_fround($12-$13);$18=Math_fround($17-$18);$7=Math_fround($11-$7);$7=Math_fround(Math_fround($11*Math_fround(Math_fround($6*$13)-Math_fround($10*$18)))+Math_fround(Math_fround($17*Math_fround(Math_fround($10*$7)-Math_fround($9*$13)))+Math_fround($12*Math_fround(Math_fround($9*$18)-Math_fround($6*$7)))));$7=Math_fround(($14<$7?$14:$7)/($8?$16:Math_fround(1)));HEAPF32[$5+20>>2]=$7>=Math_fround(-.009999999776482582)?Math_fround(0):$7;$2=2;label$6:{if(!$8){break label$6}$11=HEAPF32[$1+24>>2];$12=HEAPF32[$1+16>>2];$13=HEAPF32[$1+20>>2];$7=Math_fround(Math_fround(1)/$16);HEAPF32[$5+8>>2]=$9*$7;HEAPF32[$5+4>>2]=$10*$7;HEAPF32[$5>>2]=$6*$7;$9=Math_fround(Math_fround(Math_fround(Math_fround($6*$12)+Math_fround($10*$13))+Math_fround($9*$11))/$16);HEAPF32[$5+16>>2]=$9;if($9>=Math_fround(-9999999747378752e-21)){return $5}$2=3;if(!$4){break label$6}return $5}HEAP32[$0>>2]=$2;$1=HEAP32[$5+52>>2];if($1){HEAP32[$1+48>>2]=HEAP32[$5+48>>2]}$1=HEAP32[$5+48>>2];if($1){HEAP32[$1+52>>2]=HEAP32[$5+52>>2]}if(HEAP32[$0+9792>>2]==($5|0)){HEAP32[$0+9792>>2]=HEAP32[$5+52>>2]}HEAP32[$0+9796>>2]=HEAP32[$0+9796>>2]+ -1;HEAP32[$5+48>>2]=0;HEAP32[$5+52>>2]=HEAP32[$0+9800>>2];$1=HEAP32[$0+9800>>2];if($1){HEAP32[$1+48>>2]=$5}HEAP32[$0+9800>>2]=$5;HEAP32[$0+9804>>2]=HEAP32[$0+9804>>2]+1;return 0}HEAP32[$0>>2]=5;return 0}function dmGameSystem__CompTileGridRender_28dmGameObject__ComponentsRenderParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=Math_fround(0),$12=0,$13=0,$14=0,$15=0,$16=0,$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=0,$21=0,$22=0,$23=0,$24=0,$25=0,$26=0,$27=0,$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0),$36=Math_fround(0),$37=Math_fround(0),$38=Math_fround(0),$39=Math_fround(0);$8=HEAP32[$0+4>>2];$12=HEAP32[$8+4>>2];label$1:{label$2:{$2=HEAP32[$8+8>>2]-$12|0;label$3:{if(!$2){break label$3}$5=$2>>2;$9=HEAP32[$0+8>>2];while(1){$2=HEAP32[$12+($4<<2)>>2];label$5:{if((HEAPU8[$2+946|0]&3)!=3|!HEAPU16[$2+944>>1]){break label$5}$6=HEAP32[$2+124>>2];$1=HEAP32[$2+128>>2]-$6|0;if(!$1){break label$5}$0=0;while(1){$3=HEAP8[$0+$6|0]&1?Math_imul(HEAPU16[$2+940>>1],HEAPU16[$2+942>>1])+$3|0:$3;$0=$0+1|0;if(($1|0)!=($0|0)){continue}break}}$4=$4+1|0;if(($5|0)!=($4|0)){continue}break}$20=$5>>>0>1?$5:1;$15=HEAP32[$9>>2];$9=dmRender__RenderListAlloc_28dmRender__RenderContext__2c_20unsigned_20int_29($15,$3);$21=dmRender__RenderListMakeDispatch_28dmRender__RenderContext__2c_20void_20_28__29_28dmRender__RenderListDispatchParams_20const__29_2c_20void__29($15,488,$8)<<6;$0=$9;while(1){$2=HEAP32[$8+4>>2];if(HEAP32[$8+8>>2]-$2>>2>>>0<=$10>>>0){break label$1}$1=HEAP32[$2+($10<<2)>>2];label$9:{if((HEAPU8[$1+946|0]&3)!=3|!HEAPU16[$1+944>>1]){break label$9}if(dmGameSystem__AreRenderConstantsUpdated_28dmGameSystem__CompRenderConstants__29($1+144|0)){dmGameSystem__ReHash_28dmGameSystem__TileGridComponent__29($1)}$2=HEAP32[$1+936>>2];$4=HEAP32[$1+932>>2];if(!$4){$4=HEAP32[$2>>2]}$16=HEAP32[$2+4>>2];$19=HEAP32[$16+8>>2];if(!$19){break label$9}$2=HEAP32[$4+64>>2];$22=HEAP32[$2+24>>2];$23=HEAP32[$2+20>>2];$24=$10&65535;$7=0;while(1){$2=HEAP32[$1+124>>2];if(HEAP32[$1+128>>2]-$2>>>0<=$7>>>0){break label$1}label$13:{if(!(HEAP8[$2+$7|0]&1)){break label$13}if(HEAPU32[$16+8>>2]<=$7>>>0){break label$2}if(!HEAPU16[$1+942>>1]){break label$13}$25=HEAP32[$16+4>>2]+($7<<5)|0;$26=$7<<16|$24;$13=0;$14=0;$2=0;$4=HEAPU16[$1+940>>1];$3=$4;while(1){label$15:{if(!($3&65535)){$3=0;break label$15}$12=$14<<16;$27=$26;$17=Math_fround(Math_imul($14,$22)>>>0);$6=0;$5=0;while(1){$3=HEAP32[$1+108>>2];if(HEAP32[$1+112>>2]-$3>>>0>$13>>>0){if(HEAPU8[$3+$13|0]&2){$28=HEAPF32[$1+80>>2];$29=HEAPF32[$1+64>>2];$30=HEAPF32[$1+32>>2];$31=HEAPF32[$1+48>>2];$32=HEAPF32[$1+84>>2];$33=HEAPF32[$1+68>>2];$34=HEAPF32[$1+36>>2];$35=HEAPF32[$1+52>>2];$11=HEAPF32[$1+88>>2];$36=HEAPF32[$1+72>>2];$18=HEAPF32[$25+4>>2];$37=HEAPF32[$1+40>>2];$38=HEAPF32[$1+56>>2];$4=$0;HEAP32[$0+32>>2]=$27;HEAP32[$0+36>>2]=$6|$12;$39=$11;$11=Math_fround(Math_imul($6,$23)>>>0);HEAPF32[$0+8>>2]=$39+Math_fround(Math_fround(Math_fround($37*$11)+Math_fround($38*$17))+Math_fround($18*$36));HEAPF32[$0+4>>2]=$32+Math_fround(Math_fround(Math_fround($34*$11)+Math_fround($35*$17))+Math_fround($18*$33));HEAPF32[$0>>2]=$28+Math_fround(Math_fround(Math_fround($30*$11)+Math_fround($31*$17))+Math_fround($18*$29));$3=HEAP32[$1+928>>2];if(!$3){$3=HEAP32[HEAP32[$1+936>>2]+24>>2]}HEAP32[$4+24>>2]=HEAP32[$3+80>>2];HEAP32[$0+20>>2]=HEAP32[$1+140>>2];HEAP16[$0+40>>1]=HEAPU16[$0+40>>1]&49152|$21|16;$4=HEAPU16[$1+940>>1];$0=$0+48|0}$13=$13+1|0;$3=$6+1|0;if($3>>>0<1){$5=$5+1|0}$6=$3;$3=$4;if(!$5&$6>>>0<($3&65535)>>>0|$5>>>0<0){continue}break label$15}break}break label$1}$5=$14+1|0;if($5>>>0<1){$2=$2+1|0}$14=$5;if(!$2&$5>>>0>1]|$2>>>0<0){continue}break}}$7=$7+1|0;if(($19|0)!=($7|0)){continue}break}}$10=$10+1|0;if(($20|0)!=($10|0)){continue}break}if(($0|0)==($9|0)){break label$3}dmRender__RenderListSubmit_28dmRender__RenderContext__2c_20dmRender__RenderListEntry__2c_20dmRender__RenderListEntry__29($15,$9,$0)}return 0}__assert_fail(54105,54117,168,54142);abort()}__assert_fail(54153,53995,430,54142);abort()}function dmGameObject__CreatePropertyContainerFromDDF_28dmPropertiesDDF__PropertyDeclarations_20const__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$4=global$0-48|0;global$0=$4;HEAP32[$4+8>>2]=HEAP32[$0+4>>2];HEAP32[$4+12>>2]=HEAP32[$0+12>>2];$1=HEAP32[$0+20>>2];HEAP32[$4+20>>2]=0;HEAP32[$4+24>>2]=0;HEAP32[$4+16>>2]=$1;HEAP32[$4+28>>2]=HEAP32[$0+28>>2];HEAP32[$4+32>>2]=HEAP32[$0+36>>2];HEAP32[$4+36>>2]=HEAP32[$0+44>>2];HEAP32[$4+40>>2]=HEAP32[$0+52>>2];label$1:{label$2:{label$3:{label$5:{if($1){$2=HEAP32[$0+16>>2];$3=HEAP32[$0+72>>2];while(1){if(($1|0)==($5|0)){break label$5}$6=(strlen(HEAP32[(HEAP32[($2+($5<<5)|0)+16>>2]<<2)+$3>>2])+$6|0)+1|0;HEAP32[$4+20>>2]=$6;$5=$5+1|0;if(($1|0)!=($5|0)){continue}break}}$5=dmGameObject__CreatePropertyContainerBuilder_28dmGameObject__PropertyContainerParameters_20const__29($4+8|0);if(HEAP32[$0+4>>2]){$1=0;while(1){$2=HEAP32[$0>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+60>>2]<=$3>>>0){break label$1}dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],0,HEAP32[$0+56>>2]+($3<<2)|0);$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+28>>2]){$1=0;while(1){$2=HEAP32[$0+24>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+60>>2]<=$3>>>0){break label$1}dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],3,HEAP32[$0+56>>2]+($3<<2)|0);$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+36>>2]){$1=0;while(1){$2=HEAP32[$0+32>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+60>>2]<=$3>>>0){break label$1}dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],4,HEAP32[$0+56>>2]+($3<<2)|0);$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+44>>2]){$1=0;while(1){$2=HEAP32[$0+40>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+60>>2]<=$3>>>0){break label$1}dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],5,HEAP32[$0+56>>2]+($3<<2)|0);$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+52>>2]){$1=0;while(1){$2=HEAP32[$0+48>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+60>>2]<=$3>>>0){break label$1}dmGameObject__PushBool_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20bool_29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],HEAPF32[HEAP32[$0+56>>2]+($3<<2)>>2]!=Math_fround(0));$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+12>>2]){$1=0;while(1){$2=HEAP32[$0+8>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+68>>2]<=$3>>>0){break label$3}$6=HEAP32[$2+8>>2];$7=HEAP32[$2+12>>2];$2=HEAP32[$0+64>>2]+($3<<3)|0;dmGameObject__PushHash_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_29($5,$6,$7,HEAP32[$2>>2],HEAP32[$2+4>>2]);$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+20>>2]){$1=0;while(1){$2=HEAP32[$0+16>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+76>>2]<=$3>>>0){break label$2}dmGameObject__PushURLString_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20char_20const__29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],HEAP32[HEAP32[$0+72>>2]+($3<<2)>>2]);$1=$1+1|0;if($1>>>0>2]){continue}break}}$0=dmGameObject__CreatePropertyContainer_28dmGameObject__PropertyContainerBuilder__29($5);global$0=$4+48|0;return $0}__assert_fail(17847,17859,50,17901);abort()}__assert_fail(17847,17859,98,17901);abort()}__assert_fail(17847,17859,106,17901);abort()}__assert_fail(17847,17859,90,17901);abort()}function dmGameSystem__CompModelCreate_28dmGameObject__ComponentCreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$3=global$0-112|0;global$0=$3;label$1:{$5=HEAP32[$0+64>>2];$2=HEAP32[$5+8>>2];label$2:{if(($2|0)==HEAP32[$5+4>>2]){HEAP32[$3>>2]=$2-HEAP32[$5>>2]>>2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,45895,$3);$0=-1e3;break label$2}$8=dmObjectPool_dmGameSystem__ModelComponent____Alloc_28_29($5);$2=operator_20new_28unsigned_20long_29(1024);HEAP32[$2+144>>2]=0;HEAP32[$2+148>>2]=0;HEAP32[$2+168>>2]=0;HEAP32[$2+172>>2]=0;HEAP32[$2+160>>2]=0;HEAP32[$2+164>>2]=0;HEAP32[$2+152>>2]=0;HEAP32[$2+156>>2]=0;dmGameSystem__CompRenderConstants__CompRenderConstants_28_29($2+176|0);$1=memset($2,0,1024);$2=HEAP32[$5+16>>2];if(HEAP32[$5+20>>2]-$2>>3>>>0<=$8>>>0){break label$1}$6=HEAP32[$5>>2];$2=HEAP32[$2+($8<<3)>>2];if(HEAP32[$5+4>>2]-$6>>2>>>0<=$2>>>0){break label$1}HEAP32[$6+($2<<2)>>2]=$1;HEAP32[$1>>2]=HEAP32[$0>>2];$2=HEAP32[$0+40>>2];$6=HEAP32[$0+44>>2];$7=HEAP32[$0+24>>2];$4=HEAP32[$0+32>>2];$9=HEAP32[$0+36>>2];$10=HEAP32[$0+16>>2];$11=HEAP32[$0+20>>2];HEAP32[$1+56>>2]=1065353216;HEAP32[$1+48>>2]=1065353216;HEAP32[$1+52>>2]=1065353216;HEAP32[$1+40>>2]=$7;HEAP32[$1+32>>2]=$10;HEAP32[$1+36>>2]=$11;HEAP32[$1+24>>2]=$2;HEAP32[$1+28>>2]=$6;HEAP32[$1+16>>2]=$4;HEAP32[$1+20>>2]=$9;$7=HEAP32[$0+60>>2];HEAP32[$1+128>>2]=$7;HEAP8[$1+144|0]=0;HEAP8[$1+145|0]=0;HEAP8[$1+146|0]=0;HEAP8[$1+147|0]=0;HEAP8[$1+148|0]=0;HEAP8[$1+149|0]=0;HEAP8[$1+150|0]=0;HEAP8[$1+151|0]=0;HEAP8[$1+168|0]=0;HEAP8[$1+169|0]=0;HEAP8[$1+170|0]=0;HEAP8[$1+171|0]=0;HEAP8[$1+172|0]=0;HEAP8[$1+173|0]=0;HEAP8[$1+174|0]=0;HEAP8[$1+175|0]=0;HEAP8[$1+160|0]=0;HEAP8[$1+161|0]=0;HEAP8[$1+162|0]=0;HEAP8[$1+163|0]=0;HEAP8[$1+164|0]=0;HEAP8[$1+165|0]=0;HEAP8[$1+166|0]=0;HEAP8[$1+167|0]=0;HEAP8[$1+152|0]=0;HEAP8[$1+153|0]=0;HEAP8[$1+154|0]=0;HEAP8[$1+155|0]=0;HEAP8[$1+156|0]=0;HEAP8[$1+157|0]=0;HEAP8[$1+158|0]=0;HEAP8[$1+159|0]=0;HEAP16[$1+1012>>1]=HEAPU16[$0+76>>1];HEAP32[$1+68>>2]=0;HEAP32[$1+72>>2]=0;HEAP32[$1+64>>2]=1065353216;HEAP32[$1+76>>2]=0;HEAP32[$1+80>>2]=0;HEAP32[$1+88>>2]=0;HEAP32[$1+92>>2]=0;HEAP32[$1+84>>2]=1065353216;HEAP32[$1+96>>2]=0;HEAP32[$1+100>>2]=0;HEAP32[$1+108>>2]=0;HEAP32[$1+112>>2]=0;HEAP32[$1+104>>2]=1065353216;HEAP32[$1+116>>2]=0;HEAP32[$1+120>>2]=0;HEAP32[$1+124>>2]=1065353216;HEAP8[$1+1014|0]=HEAPU8[$1+1014|0]&252|1;label$4:{label$5:{if(!dmGameSystem__CreateGOBones_28dmGameSystem__ModelWorld__2c_20dmGameSystem__ModelComponent__29($5,$1)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,45953,0);break label$5}memset($3+32|0,0,80);$2=HEAP32[$5+96>>2];HEAP32[$3+100>>2]=0;HEAP32[$3+96>>2]=$1;HEAP32[$3+92>>2]=470;HEAP32[$3+88>>2]=0;HEAP32[$3+84>>2]=$1;HEAP32[$3+80>>2]=471;HEAP32[$3+28>>2]=$1+132;HEAP32[$3+24>>2]=$2;$6=HEAP32[$7+4>>2];HEAP32[$3+56>>2]=$6;$2=$3;$4=HEAP32[$6+28>>2];if($4){$4=HEAP32[$4>>2]}else{$4=0}HEAP32[$2+68>>2]=$4;$2=$3;$4=HEAP32[$6+20>>2];if($4){$4=HEAP32[$4>>2]}else{$4=0}HEAP32[$2+60>>2]=$4;$2=HEAP32[HEAP32[$6+24>>2]>>2];HEAP32[$3+76>>2]=$6+52;HEAP32[$3+72>>2]=$6+36;HEAP32[$3+64>>2]=$2;HEAP32[$3+40>>2]=0;HEAP32[$3+44>>2]=0;HEAP32[$3+48>>2]=dmHashString64(HEAP32[HEAP32[$7>>2]+16>>2]);HEAP32[$3+52>>2]=i64toi32_i32$HIGH_BITS;$2=dmRig__InstanceCreate_28dmRig__InstanceCreateParams_20const__29($3+24|0);if(!$2){break label$4}HEAP32[$3+16>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,46076,$3+16|0);if(($2|0)!=2){break label$5}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,46129,0)}dmGameSystem__DestroyComponent_28dmGameSystem__ModelWorld__2c_20unsigned_20int_29($5,$8);$0=-1e3;break label$2}HEAP8[$1+1014|0]=HEAPU8[$1+1014|0]|8;HEAP32[HEAP32[$0+72>>2]>>2]=$8;$0=0}global$0=$3+112|0;return $0|0}__assert_fail(46554,46388,430,46565);abort()}function send_tree($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;if(($2|0)>=0){$11=HEAPU16[$1+2>>1];$9=$11?4:3;$3=$11?7:138;$10=$0+5817|0;$6=-1;while(1){$14=$13;$12=$11;$13=$13+1|0;$11=HEAPU16[(($13<<2)+$1|0)+2>>1];$4=$5+1|0;label$3:{if(!(($12|0)!=($11|0)|($4|0)>=($3|0))){$5=$4;break label$3}label$5:{if(($4|0)<($9|0)){$5=($12<<2)+$0|0;$6=$5+2684|0;$7=$5+2686|0;$5=HEAP32[$0+5820>>2];while(1){$9=HEAPU16[$7>>1];$8=HEAPU16[$6>>1];$3=HEAPU16[$0+5816>>1]|$8<<$5;HEAP16[$0+5816>>1]=$3;$15=$0;label$8:{if(($5|0)>(16-$9|0)){$5=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$5+1;HEAP8[$5+HEAP32[$0+8>>2]|0]=$3;$5=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$5+1;HEAP8[$5+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$5=HEAP32[$0+5820>>2];HEAP16[$0+5816>>1]=$8>>>16-$5;$5=($5+$9|0)+ -16|0;break label$8}$5=$5+$9|0}HEAP32[$15+5820>>2]=$5;$4=$4+ -1|0;if($4){continue}break}break label$5}$9=$0;label$10:{if($12){label$12:{if(($6|0)==($12|0)){$3=HEAP32[$0+5820>>2];$5=$4;break label$12}$4=($12<<2)+$0|0;$3=HEAPU16[$4+2686>>1];$7=HEAPU16[$4+2684>>1];$6=HEAP32[$0+5820>>2];$8=HEAPU16[$0+5816>>1]|$7<<$6;HEAP16[$0+5816>>1]=$8;$4=$0;label$14:{if(($6|0)>(16-$3|0)){$6=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$6+1;HEAP8[$6+HEAP32[$0+8>>2]|0]=$8;$6=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$6+1;HEAP8[$6+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$6=HEAP32[$0+5820>>2];HEAP16[$0+5816>>1]=$7>>>16-$6;$3=($3+$6|0)+ -16|0;break label$14}$3=$3+$6|0}HEAP32[$4+5820>>2]=$3}$8=HEAPU16[$0+2748>>1];$4=HEAPU16[$0+5816>>1]|$8<<$3;HEAP16[$0+5816>>1]=$4;$6=$0;$7=HEAPU16[$0+2750>>1];label$16:{if(($3|0)>(16-$7|0)){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=HEAP32[$0+5820>>2];$4=$8>>>16-$3|0;HEAP16[$0+5816>>1]=$4;$3=($3+$7|0)+ -16|0;break label$16}$3=$3+$7|0}HEAP32[$6+5820>>2]=$3;$5=$5+65533&65535;$4=$5<<$3|$4;HEAP16[$0+5816>>1]=$4;if(($3|0)>=15){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=$5;$5=HEAP32[$0+5820>>2];HEAP16[$0+5816>>1]=$3>>>16-$5;$5=$5+ -14|0;break label$10}$5=$3+2|0;break label$10}if(($5|0)<=9){$8=HEAPU16[$0+2752>>1];$3=HEAP32[$0+5820>>2];$4=HEAPU16[$0+5816>>1]|$8<<$3;HEAP16[$0+5816>>1]=$4;$6=$0;$7=HEAPU16[$0+2754>>1];label$20:{if(($3|0)>(16-$7|0)){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=HEAP32[$0+5820>>2];$4=$8>>>16-$3|0;HEAP16[$0+5816>>1]=$4;$3=($3+$7|0)+ -16|0;break label$20}$3=$3+$7|0}HEAP32[$6+5820>>2]=$3;$5=$5+65534&65535;$4=$5<<$3|$4;HEAP16[$0+5816>>1]=$4;if(($3|0)>=14){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=$5;$5=HEAP32[$0+5820>>2];HEAP16[$0+5816>>1]=$3>>>16-$5;$5=$5+ -13|0;break label$10}$5=$3+3|0;break label$10}$8=HEAPU16[$0+2756>>1];$3=HEAP32[$0+5820>>2];$4=HEAPU16[$0+5816>>1]|$8<<$3;HEAP16[$0+5816>>1]=$4;$6=$0;$7=HEAPU16[$0+2758>>1];label$23:{if(($3|0)>(16-$7|0)){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=HEAP32[$0+5820>>2];$4=$8>>>16-$3|0;HEAP16[$0+5816>>1]=$4;$3=($3+$7|0)+ -16|0;break label$23}$3=$3+$7|0}HEAP32[$6+5820>>2]=$3;$5=$5+65526&65535;$4=$5<<$3|$4;HEAP16[$0+5816>>1]=$4;if(($3|0)>=10){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=$5;$5=HEAP32[$0+5820>>2];HEAP16[$0+5816>>1]=$3>>>16-$5;$5=$5+ -9|0;break label$10}$5=$3+7|0}HEAP32[$9+5820>>2]=$5}$5=0;label$26:{if(!$11){$3=138;$9=3;break label$26}$4=($12|0)==($11|0);$3=$4?6:7;$9=$4?3:4}$6=$12}if(($2|0)!=($14|0)){continue}break}}}function btDiscreteDynamicsWorld__solveConstraints_28btContactSolverInfo__29__InplaceSolverIslandCallback__ProcessIsland_28btCollisionObject___2c_20int_2c_20btPersistentManifold___2c_20int_2c_20int_29($0,$1,$2,$3,$4,$5){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;var $6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$9=HEAP32[$0+16>>2];label$1:{if(($5|0)>=0){label$3:{if(($9|0)>=1){$10=HEAP32[$0+12>>2];while(1){$11=$10+($6<<2)|0;$8=HEAP32[$11>>2];$7=HEAP32[HEAP32[$8+20>>2]+208>>2];if(($7|0)<=-1){$7=HEAP32[HEAP32[$8+24>>2]+208>>2]}if(($5|0)==($7|0)){break label$3}$6=$6+1|0;if(($6|0)<($9|0)){continue}break}}$11=0}$10=0;if(($6|0)<($9|0)){$8=HEAP32[$0+12>>2];while(1){$12=HEAP32[$8+($6<<2)>>2];$7=HEAP32[HEAP32[$12+20>>2]+208>>2];if(($7|0)<=-1){$7=HEAP32[HEAP32[$12+24>>2]+208>>2]}$10=(($5|0)==($7|0))+$10|0;$6=$6+1|0;if(($9|0)!=($6|0)){continue}break}}$5=HEAP32[$0+4>>2];if(HEAP32[$5+68>>2]>=2){if(($2|0)>=1){$7=HEAP32[$0+40>>2];$6=HEAP32[$0+36>>2];$8=0;while(1){$12=($8<<2)+$1|0;label$15:{if(($7|0)!=($6|0)){break label$15}$9=$7?$7<<1:1;if(($7|0)>=($9|0)){$6=$7;break label$15}$6=0;$5=0;if($9){$5=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($9<<2);$7=HEAP32[$0+36>>2]}if(($7|0)>=1){while(1){$13=$6<<2;HEAP32[$13+$5>>2]=HEAP32[HEAP32[$0+44>>2]+$13>>2];$6=$6+1|0;if(($6|0)!=($7|0)){continue}break}}$6=HEAP32[$0+44>>2];if($6){if(HEAPU8[$0+48|0]){if($6){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$6+ -4>>2])}$7=HEAP32[$0+36>>2]}HEAP32[$0+44>>2]=0}$6=$7;HEAP32[$0+44>>2]=$5;HEAP8[$0+48|0]=1;HEAP32[$0+40>>2]=$9;$7=$9}HEAP32[HEAP32[$0+44>>2]+($6<<2)>>2]=HEAP32[$12>>2];$6=$6+1|0;HEAP32[$0+36>>2]=$6;$8=$8+1|0;if(($8|0)!=($2|0)){continue}break}}if(($4|0)>=1){$7=HEAP32[$0+60>>2];$6=HEAP32[$0+56>>2];$8=0;while(1){$9=($8<<2)+$3|0;label$26:{if(($7|0)!=($6|0)){break label$26}$1=$7?$7<<1:1;if(($7|0)>=($1|0)){$6=$7;break label$26}$6=0;$5=0;if($1){$5=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($1<<2);$7=HEAP32[$0+56>>2]}if(($7|0)>=1){while(1){$2=$6<<2;HEAP32[$2+$5>>2]=HEAP32[$2+HEAP32[$0+64>>2]>>2];$6=$6+1|0;if(($6|0)!=($7|0)){continue}break}}$2=HEAP32[$0+64>>2];if($2){if(HEAPU8[$0+68|0]){if($2){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$2+ -4>>2])}$7=HEAP32[$0+56>>2]}HEAP32[$0+64>>2]=0}$6=$7;HEAP32[$0+64>>2]=$5;HEAP8[$0+68|0]=1;HEAP32[$0+60>>2]=$1;$7=$1}HEAP32[HEAP32[$0+64>>2]+($6<<2)>>2]=HEAP32[$9>>2];$6=$6+1|0;HEAP32[$0+56>>2]=$6;$8=$8+1|0;if(($8|0)!=($4|0)){continue}break}}label$35:{if(!$10){$6=HEAP32[$0+76>>2];break label$35}$7=HEAP32[$0+80>>2];$6=HEAP32[$0+76>>2];$8=0;while(1){$3=($8<<2)+$11|0;label$38:{if(($7|0)!=($6|0)){break label$38}$1=$7?$7<<1:1;if(($7|0)>=($1|0)){$6=$7;break label$38}$6=0;$5=0;if($1){$5=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($1<<2);$7=HEAP32[$0+76>>2]}if(($7|0)>=1){while(1){$2=$6<<2;HEAP32[$2+$5>>2]=HEAP32[$2+HEAP32[$0+84>>2]>>2];$6=$6+1|0;if(($6|0)!=($7|0)){continue}break}}$2=HEAP32[$0+84>>2];if($2){if(HEAPU8[$0+88|0]){if($2){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$2+ -4>>2])}$7=HEAP32[$0+76>>2]}HEAP32[$0+84>>2]=0}$6=$7;HEAP32[$0+84>>2]=$5;HEAP8[$0+88|0]=1;HEAP32[$0+80>>2]=$1;$7=$1}HEAP32[HEAP32[$0+84>>2]+($6<<2)>>2]=HEAP32[$3>>2];$6=$6+1|0;HEAP32[$0+76>>2]=$6;$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}if((HEAP32[$0+56>>2]+$6|0)<=HEAP32[HEAP32[$0+4>>2]+68>>2]){break label$1}btDiscreteDynamicsWorld__solveConstraints_28btContactSolverInfo__29__InplaceSolverIslandCallback__processConstraints_28_29($0);break label$1}if((0-$4|0)==($10|0)){break label$1}$7=HEAP32[$0+8>>2];Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$7>>2]+12>>2]]($7,$1,$2,$3,$4,$11,$10,$5,HEAP32[$0+20>>2],HEAP32[$0+24>>2],HEAP32[$0+28>>2]));return}if(($9|0)==(0-$4|0)){break label$1}$5=HEAP32[$0+8>>2];Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$5>>2]+12>>2]]($5,$1,$2,$3,$4,HEAP32[$0+12>>2],$9,HEAP32[$0+4>>2],HEAP32[$0+20>>2],HEAP32[$0+24>>2],HEAP32[$0+28>>2]))}}function dmHashUpdateBuffer64($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;HEAP32[$0+20>>2]=HEAP32[$0+20>>2]+$2;label$1:{if(!$2){break label$1}$3=HEAP32[$0+16>>2];$8=$1;$4=$2;while(1){if(!($3|($4|0)<8)){while(1){$3=$8;$3=__wasm_i64_mul(HEAPU8[$3|0]|HEAPU8[$3+1|0]<<8|(HEAPU8[$3+2|0]<<16|HEAPU8[$3+3|0]<<24),HEAPU8[$3+4|0]|HEAPU8[$3+5|0]<<8|(HEAPU8[$3+6|0]<<16|HEAPU8[$3+7|0]<<24),1540483477,-962287725);$6=i64toi32_i32$HIGH_BITS;$3=__wasm_i64_mul($3^$6>>>15,$6,1540483477,-962287725);$6=i64toi32_i32$HIGH_BITS;HEAP32[$0>>2]=__wasm_i64_mul(HEAP32[$0>>2],HEAP32[$0+4>>2],1540483477,-962287725)^$3;HEAP32[$0+4>>2]=i64toi32_i32$HIGH_BITS^$6;$8=$8+8|0;$5=($4|0)>15;$3=$4+ -8|0;$4=$3;if($5){continue}break}if(!$3){break label$1}$4=HEAP32[$0+16>>2];while(1){if($4?0:($3|0)>=8){break label$1}$5=HEAPU8[$8|0];$6=$4+1|0;HEAP32[$0+16>>2]=$6;$9=$0;$10=HEAP32[$0+12>>2];$7=$4<<3;$4=$7&31;if(32<=($7&63)>>>0){$7=$5<<$4;$5=0}else{$7=(1<<$4)-1&$5>>>32-$4;$5=$5<<$4}$4=$5|HEAP32[$0+8>>2];$5=$7|$10;$7=$5;HEAP32[$9+8>>2]=$4;HEAP32[$9+12>>2]=$5;$3=$3+ -1|0;$8=$8+1|0;if(($6|0)==8){HEAP32[$0+16>>2]=0;HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=0;$6=__wasm_i64_mul(HEAP32[$0>>2],HEAP32[$0+4>>2],1540483477,-962287725);$9=i64toi32_i32$HIGH_BITS;$4=__wasm_i64_mul($4,$7,1540483477,-962287725);$10=i64toi32_i32$HIGH_BITS;$5=$10;HEAP32[$0>>2]=__wasm_i64_mul($4^$5>>>15,$5,1540483477,-962287725)^$6;HEAP32[$0+4>>2]=i64toi32_i32$HIGH_BITS^$9;$4=0}else{$4=$6}if($3){continue}break}break label$1}$5=HEAPU8[$8|0];$6=$3+1|0;HEAP32[$0+16>>2]=$6;$9=$0;$10=HEAP32[$0+12>>2];$7=$3<<3;$3=$7&31;if(32<=($7&63)>>>0){$7=$5<<$3;$5=0}else{$7=(1<<$3)-1&$5>>>32-$3;$5=$5<<$3}$3=$5|HEAP32[$0+8>>2];$5=$7|$10;$7=$5;HEAP32[$9+8>>2]=$3;HEAP32[$9+12>>2]=$5;$4=$4+ -1|0;$8=$8+1|0;if(($6|0)==8){HEAP32[$0+16>>2]=0;HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=0;$6=__wasm_i64_mul(HEAP32[$0>>2],HEAP32[$0+4>>2],1540483477,-962287725);$9=i64toi32_i32$HIGH_BITS;$3=__wasm_i64_mul($3,$7,1540483477,-962287725);$10=i64toi32_i32$HIGH_BITS;$5=$10;HEAP32[$0>>2]=__wasm_i64_mul($3^$5>>>15,$5,1540483477,-962287725)^$6;HEAP32[$0+4>>2]=i64toi32_i32$HIGH_BITS^$9;$3=0}else{$3=$6}if($4){continue}break}}label$10:{if(HEAP8[1130232]&1){break label$10}if(!__cxa_guard_acquire(1130232)){break label$10}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$4=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$4;__cxa_guard_release(1130232)}label$11:{label$12:{if(!(!HEAPU8[1130132]|!HEAP32[$0+24>>2]|HEAPU32[$0+20>>2]>1024)){label$14:{if(HEAP8[1130232]&1){break label$14}if(!__cxa_guard_acquire(1130232)){break label$14}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$4=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$4;__cxa_guard_release(1130232)}$0=HEAP32[$0+24>>2];if(!$0){break label$12}$4=HEAP32[282550];if(HEAP32[282551]-$4>>3>>>0<=$0>>>0){break label$11}$0=$4+($0<<3)|0;$4=HEAPU16[$0+4>>1]+$2|0;$8=dlrealloc(HEAP32[$0>>2],$4+32&-16);HEAP32[$0>>2]=$8;memcpy($8+HEAPU16[$0+4>>1]|0,$1,$2);HEAP8[$4+$8|0]=0;HEAP16[$0+4>>1]=$4}return}__assert_fail(147415,147127,148,147454);abort()}__assert_fail(147626,147230,430,147637);abort()}function dmGameSystem__CompLabelSetProperty_28dmGameObject__ComponentSetPropertyParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$3=HEAP32[$0+4>>2];$1=HEAP32[$3+16>>2];$2=HEAP32[HEAP32[$0+24>>2]>>2];label$1:{if(HEAP32[$3+20>>2]-$1>>3>>>0>$2>>>0){$4=HEAP32[$3>>2];$5=HEAP32[$1+($2<<3)>>2];if(HEAP32[$3+4>>2]-$4>>10>>>0>$5>>>0){label$4:{$1=HEAP32[$0+16>>2];$2=HEAP32[$0+20>>2];if(!(($1|0)==HEAP32[146190]&($2|0)==HEAP32[146191]|($1|0)==HEAP32[146192]&($2|0)==HEAP32[146193]|($1|0)==HEAP32[146194]&($2|0)==HEAP32[146195])){if(($1|0)!=HEAP32[146196]|($2|0)!=HEAP32[146197]){break label$4}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector3__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$0+32|0,($4+($5<<10)|0)- -64|0,584760)|0}label$6:{if(!(($1|0)==HEAP32[146204]&($2|0)==HEAP32[146205]|(($1|0)==HEAP32[146200]&($2|0)==HEAP32[146201]|($1|0)==HEAP32[146202]&($2|0)==HEAP32[146203]))){if(($1|0)!=HEAP32[146206]|($2|0)!=HEAP32[146207]){break label$6}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector3__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$0+32|0,($4+($5<<10)|0)+48|0,584800)|0}label$8:{if(!(($1|0)==HEAP32[146210]&($2|0)==HEAP32[146211]|($1|0)==HEAP32[146212]&($2|0)==HEAP32[146213]|(($1|0)==HEAP32[146214]&($2|0)==HEAP32[146215]|($1|0)==HEAP32[146216]&($2|0)==HEAP32[146217]))){if(($1|0)!=HEAP32[146218]|($2|0)!=HEAP32[146219]){break label$8}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector4__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$0+32|0,($4+($5<<10)|0)+80|0,584840)|0}label$10:{if(!(($1|0)==HEAP32[146222]&($2|0)==HEAP32[146223]|($1|0)==HEAP32[146224]&($2|0)==HEAP32[146225]|(($1|0)==HEAP32[146226]&($2|0)==HEAP32[146227]|($1|0)==HEAP32[146228]&($2|0)==HEAP32[146229]))){if(($1|0)!=HEAP32[146230]|($2|0)!=HEAP32[146231]){break label$10}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector4__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$0+32|0,($4+($5<<10)|0)+96|0,584888)|0}label$12:{if(!(($1|0)==HEAP32[146234]&($2|0)==HEAP32[146235]|($1|0)==HEAP32[146236]&($2|0)==HEAP32[146237]|(($1|0)==HEAP32[146238]&($2|0)==HEAP32[146239]|($1|0)==HEAP32[146240]&($2|0)==HEAP32[146241]))){if(($1|0)!=HEAP32[146242]|($2|0)!=HEAP32[146243]){break label$12}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector4__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$0+32|0,($4+($5<<10)|0)+112|0,584936)|0}if(($1|0)==HEAP32[146170]&($2|0)==HEAP32[146171]){$1=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$2=$0+32|0;$0=$4+($5<<10)|0;$3=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29($1,$2,HEAP32[146152],HEAP32[146153],$0+1008|0);break label$1}if(($1|0)==HEAP32[146166]&($2|0)==HEAP32[146167]){$1=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$2=$0+32|0;$0=$4+($5<<10)|0;$3=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29($1,$2,HEAP32[146150],HEAP32[146151],$0+1012|0);break label$1}$6=$4+($5<<10)|0;$3=HEAP32[$6+1008>>2];if(!$3){$3=HEAP32[HEAP32[$6+216>>2]+4>>2]}return dmGameSystem__SetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20void_20_28__29_28void__2c_20unsigned_20long_20long_2c_20unsigned_20int__2c_20dmGameObject__PropertyVar_20const__29_2c_20void__29($3,$1,$2,$0+32|0,464,$4+($5<<10)|0)|0}}__assert_fail(43706,43608,430,43717);abort()}$1=$0;$0=HEAPU8[$0+1022|0];HEAP8[$1+1022|0]=($3?$0&8:8)|$0&247;return $3|0}function btRigidBody__setCenterOfMassTransform_28btTransform_20const__29($0,$1){var $2=0,$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0);label$1:{if(HEAPU8[$0+204|0]&3){$2=HEAP32[$0+8>>2];HEAP32[$0+68>>2]=HEAP32[$0+4>>2];HEAP32[$0+72>>2]=$2;$2=HEAP32[$0+16>>2];HEAP32[$0+76>>2]=HEAP32[$0+12>>2];HEAP32[$0+80>>2]=$2;$2=HEAP32[$0+24>>2];HEAP32[$0+84>>2]=HEAP32[$0+20>>2];HEAP32[$0+88>>2]=$2;$2=HEAP32[$0+32>>2];HEAP32[$0+92>>2]=HEAP32[$0+28>>2];HEAP32[$0+96>>2]=$2;$2=HEAP32[$0+40>>2];HEAP32[$0+100>>2]=HEAP32[$0+36>>2];HEAP32[$0+104>>2]=$2;$2=HEAP32[$0+48>>2];HEAP32[$0+108>>2]=HEAP32[$0+44>>2];HEAP32[$0+112>>2]=$2;$2=HEAP32[$0+56>>2];HEAP32[$0+116>>2]=HEAP32[$0+52>>2];HEAP32[$0+120>>2]=$2;$2=HEAP32[$0+64>>2];HEAP32[$0+124>>2]=HEAP32[$0+60>>2];HEAP32[$0+128>>2]=$2;break label$1}$2=$1;$3=HEAP32[$2+4>>2];HEAP32[$0+68>>2]=HEAP32[$2>>2];HEAP32[$0+72>>2]=$3;$3=HEAP32[$2+12>>2];HEAP32[$0+76>>2]=HEAP32[$2+8>>2];HEAP32[$0+80>>2]=$3;$3=HEAP32[$2+28>>2];HEAP32[$0+92>>2]=HEAP32[$2+24>>2];HEAP32[$0+96>>2]=$3;$3=HEAP32[$2+20>>2];HEAP32[$0+84>>2]=HEAP32[$2+16>>2];HEAP32[$0+88>>2]=$3;$3=HEAP32[$2+36>>2];HEAP32[$0+100>>2]=HEAP32[$2+32>>2];HEAP32[$0+104>>2]=$3;$3=HEAP32[$2+44>>2];HEAP32[$0+108>>2]=HEAP32[$2+40>>2];HEAP32[$0+112>>2]=$3;$3=HEAP32[$2+60>>2];HEAP32[$0+124>>2]=HEAP32[$2+56>>2];HEAP32[$0+128>>2]=$3;$3=HEAP32[$2+52>>2];HEAP32[$0+116>>2]=HEAP32[$2+48>>2];HEAP32[$0+120>>2]=$3}$2=HEAP32[$0+324>>2];HEAP32[$0+148>>2]=HEAP32[$0+320>>2];HEAP32[$0+152>>2]=$2;$2=HEAP32[$0+308>>2];HEAP32[$0+132>>2]=HEAP32[$0+304>>2];HEAP32[$0+136>>2]=$2;$2=HEAP32[$0+332>>2];HEAP32[$0+156>>2]=HEAP32[$0+328>>2];HEAP32[$0+160>>2]=$2;$2=HEAP32[$0+316>>2];HEAP32[$0+140>>2]=HEAP32[$0+312>>2];HEAP32[$0+144>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+12>>2]=HEAP32[$1+8>>2];HEAP32[$0+16>>2]=$2;$2=HEAP32[$1+4>>2];HEAP32[$0+4>>2]=HEAP32[$1>>2];HEAP32[$0+8>>2]=$2;$2=HEAP32[$1+28>>2];HEAP32[$0+28>>2]=HEAP32[$1+24>>2];HEAP32[$0+32>>2]=$2;$2=HEAP32[$1+20>>2];HEAP32[$0+20>>2]=HEAP32[$1+16>>2];HEAP32[$0+24>>2]=$2;$2=HEAP32[$1+44>>2];HEAP32[$0+44>>2]=HEAP32[$1+40>>2];HEAP32[$0+48>>2]=$2;$2=HEAP32[$1+36>>2];HEAP32[$0+36>>2]=HEAP32[$1+32>>2];HEAP32[$0+40>>2]=$2;$2=HEAP32[$1+60>>2];HEAP32[$0+60>>2]=HEAP32[$1+56>>2];HEAP32[$0+64>>2]=$2;$2=HEAP32[$1+52>>2];HEAP32[$0+52>>2]=HEAP32[$1+48>>2];HEAP32[$0+56>>2]=$2;$10=HEAPF32[$0+8>>2];$11=HEAPF32[$0+12>>2];$12=HEAPF32[$0+28>>2];$13=HEAPF32[$0+20>>2];$14=HEAPF32[$0+24>>2];$7=HEAPF32[$0+44>>2];$16=HEAPF32[$0+396>>2];$8=HEAPF32[$0+36>>2];$9=HEAPF32[$0+40>>2];$17=HEAPF32[$0+392>>2];$15=HEAPF32[$0+4>>2];$18=HEAPF32[$0+388>>2];HEAP32[$0+300>>2]=0;HEAP32[$0+284>>2]=0;HEAP32[$0+268>>2]=0;$4=Math_fround($18*$8);$5=Math_fround($17*$9);$6=Math_fround($16*$7);HEAPF32[$0+296>>2]=Math_fround(Math_fround($8*$4)+Math_fround($9*$5))+Math_fround($7*$6);HEAPF32[$0+292>>2]=Math_fround(Math_fround($13*$4)+Math_fround($14*$5))+Math_fround($12*$6);HEAPF32[$0+288>>2]=Math_fround(Math_fround($15*$4)+Math_fround($10*$5))+Math_fround($11*$6);$4=Math_fround($18*$13);$5=Math_fround($17*$14);$6=Math_fround($16*$12);HEAPF32[$0+280>>2]=Math_fround(Math_fround($8*$4)+Math_fround($9*$5))+Math_fround($7*$6);HEAPF32[$0+276>>2]=Math_fround(Math_fround($13*$4)+Math_fround($14*$5))+Math_fround($12*$6);HEAPF32[$0+272>>2]=Math_fround(Math_fround($15*$4)+Math_fround($10*$5))+Math_fround($11*$6);$4=$8;$8=Math_fround($15*$18);$5=$9;$9=Math_fround($10*$17);$6=$7;$7=Math_fround($11*$16);HEAPF32[$0+264>>2]=Math_fround(Math_fround($4*$8)+Math_fround($5*$9))+Math_fround($6*$7);HEAPF32[$0+260>>2]=Math_fround(Math_fround($8*$13)+Math_fround($9*$14))+Math_fround($7*$12);HEAPF32[$0+256>>2]=Math_fround(Math_fround($15*$8)+Math_fround($10*$9))+Math_fround($11*$7)}function mbedtls_ssl_encrypt_buf($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$4=global$0-128|0;global$0=$4;label$1:{if(!$0){$5=-27648;break label$1}if(!$1){$5=-27648;break label$1}$9=HEAP32[$1+12>>2];if(!$9){$5=-27648;break label$1}$5=HEAP32[$1+16>>2];$7=HEAP32[$1+20>>2];if($5>>>0<$7>>>0){$5=-27648;break label$1}$11=$5-$7|0;$6=HEAP32[$1+24>>2];if($11>>>0<$6>>>0){$5=-27648;break label$1}$5=-28928;$10=HEAP32[$0+80>>2];$8=0;label$7:{if(!$10){break label$7}$8=HEAP32[$10+4>>2]}if($6>>>0>16384){break label$1}$10=$1+24|0;$14=$0+80|0;$7=$7+$9|0;$9=$11-$6|0;$11=0;label$8:{$8=$8+ -2|0;label$9:{if($8>>>0>5){break label$9}label$10:{switch($8-1|0){default:if(HEAP32[$0+76>>2]){break label$8}break;case 4:break label$10;case 0:case 1:case 2:case 3:break label$9}}$5=-27136;if($9>>>0>2]){break label$1}$11=1;if(HEAP32[$0+208>>2]<1){$5=-27648;break label$1}ssl_extract_add_data_from_record($4+80|0,$4+76|0,$1);$5=$0+52|0;mbedtls_md_hmac_update($5,$4+80|0,HEAP32[$4+76>>2]);mbedtls_md_hmac_update($5,$7,HEAP32[$1+24>>2]);mbedtls_md_hmac_finish($5,$4+16|0);mbedtls_md_hmac_reset($5);memcpy(HEAP32[$1+24>>2]+$7|0,$4+16|0,HEAP32[$0+12>>2]);$5=HEAP32[$0+12>>2];$6=$5+HEAP32[$1+24>>2]|0;HEAP32[$1+24>>2]=$6;$9=$9-$5|0}if($8>>>0>8){$5=-27648;break label$1}$5=-27648;label$14:{switch($8-1|0){case 0:case 1:case 2:case 4:case 6:break label$1;case 3:case 5:case 7:break label$14;default:break label$8}}$5=-27136;if($9>>>0>2]){break label$1}$6=HEAP32[$0+4>>2];$3=HEAP32[$0+8>>2];$2=$6-$3|0;if(HEAPU32[$1+20>>2]<$2>>>0){break label$1}$6=($6|0)!=12;label$15:{if(!($6|($3|0)!=4)){HEAP32[$4+16>>2]=HEAP32[$0+20>>2];memcpy($4+16|4,$1,$2);memcpy($7-$2|0,$1,$2);break label$15}$5=-27648;if(($3|0)!=12|$6){break label$1}HEAP32[$4+24>>2]=HEAP32[$0+28>>2];$3=HEAP32[$0+24>>2];HEAP32[$4+16>>2]=HEAP32[$0+20>>2];HEAP32[$4+20>>2]=$3;HEAP8[$4+20|0]=HEAPU8[$4+20|0]^HEAPU8[$1|0];HEAP8[$4+21|0]=HEAPU8[$4+21|0]^HEAPU8[$1+1|0];HEAP8[$4+22|0]=HEAPU8[$4+22|0]^HEAPU8[$1+2|0];HEAP8[$4+23|0]=HEAPU8[$4+23|0]^HEAPU8[$1+3|0];HEAP8[$4+24|0]=HEAPU8[$4+24|0]^HEAPU8[$1+4|0];HEAP8[$4+25|0]=HEAPU8[$4+25|0]^HEAPU8[$1+5|0];HEAP8[$4+26|0]=HEAPU8[$4+26|0]^HEAPU8[$1+6|0];HEAP8[$4+27|0]=HEAPU8[$4+27|0]^HEAPU8[$1+7|0]}ssl_extract_add_data_from_record($4+80|0,$4+76|0,$1);$3=HEAP32[$1+24>>2];$5=mbedtls_cipher_auth_encrypt($14,$4+16|0,HEAP32[$0+4>>2],$4+80|0,HEAP32[$4+76>>2],$7,$3,$7,$10,$3+$7|0,HEAP32[$0+16>>2]);if($5){break label$1}$0=HEAP32[$0+16>>2];HEAP32[$1+20>>2]=HEAP32[$1+20>>2]-$2;HEAP32[$1+24>>2]=HEAP32[$1+24>>2]+($0+$2|0);$5=$11?-27648:0;break label$1}$8=0;$5=-27136;$12=HEAP32[$0+4>>2];$13=($6+1>>>0)%($12>>>0)|0;$13=$13?$12-$13|0:0;$12=$13+1|0;if($9>>>0<$12>>>0){break label$1}while(1){HEAP8[($6+$8|0)+$7|0]=$13;$6=HEAP32[$10>>2];$8=$8+1|0;if($8>>>0<=$13>>>0){continue}break}$6=$6+$12|0;HEAP32[$10>>2]=$6;if(HEAP32[$0+208>>2]>=2){if(!$2){$5=-27648;break label$1}$6=HEAP32[$0+4>>2];if(HEAPU32[$1+20>>2]<$6>>>0){break label$1}$8=$3;$3=$0+20|0;$5=FUNCTION_TABLE[$2]($8,$3,$6)|0;if($5){break label$1}$2=HEAP32[$0+4>>2];memcpy($7-$2|0,$3,$2);$6=HEAP32[$10>>2]}$2=$0+20|0;$5=mbedtls_cipher_crypt($14,$2,HEAP32[$0+4>>2],$7,$6,$7,$4+12|0);if($5){break label$1}$5=-27648;$3=HEAP32[$10>>2];if(($3|0)!=HEAP32[$4+12>>2]){break label$1}label$20:{if(HEAP32[$0+208>>2]<=1){memcpy($2,$0+120|0,HEAP32[$0+4>>2]);break label$20}$2=HEAP32[$0+4>>2];HEAP32[$1+24>>2]=$2+$3;HEAP32[$1+20>>2]=HEAP32[$1+20>>2]-$2;$7=$7-$2|0}label$22:{if(!$11){if($9-$12>>>0>2]){break label$22}ssl_extract_add_data_from_record($4+80|0,$4+76|0,$1);$2=$0+52|0;mbedtls_md_hmac_update($2,$4+80|0,HEAP32[$4+76>>2]);mbedtls_md_hmac_update($2,$7,HEAP32[$1+24>>2]);mbedtls_md_hmac_finish($2,$4+16|0);mbedtls_md_hmac_reset($2);memcpy(HEAP32[$1+24>>2]+$7|0,$4+16|0,HEAP32[$0+12>>2]);HEAP32[$1+24>>2]=HEAP32[$1+24>>2]+HEAP32[$0+12>>2]}$5=0;break label$1}$5=-27136}global$0=$4+128|0;return $5}function b2FrictionJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=0,$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=0,$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=0,$24=0,$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0);$3=HEAP32[$0+48>>2];$16=HEAP32[$3+8>>2];HEAP32[$0+104>>2]=$16;$8=HEAP32[$0+52>>2];$13=HEAP32[$8+8>>2];HEAP32[$0+108>>2]=$13;$17=HEAPF32[$3+32>>2];$7=HEAP32[$3+32>>2];$11=HEAPF32[$3+28>>2];HEAP32[$0+128>>2]=HEAP32[$3+28>>2];HEAP32[$0+132>>2]=$7;$18=HEAPF32[$8+32>>2];$12=HEAP32[$8+32>>2];$9=HEAPF32[$8+28>>2];HEAP32[$0+136>>2]=HEAP32[$8+28>>2];HEAP32[$0+140>>2]=$12;$19=HEAPF32[$3+120>>2];HEAP32[$0+144>>2]=HEAP32[$3+120>>2];$20=HEAPF32[$8+120>>2];HEAP32[$0+148>>2]=HEAP32[$8+120>>2];$14=HEAPF32[$3+128>>2];HEAP32[$0+152>>2]=HEAP32[$3+128>>2];$15=HEAPF32[$8+128>>2];HEAP32[$0+156>>2]=HEAP32[$8+128>>2];$2=HEAPF32[$0+72>>2];$23=HEAP32[$1+24>>2];$12=Math_imul($16,12);$5=HEAPF32[($23+$12|0)+8>>2];$10=cosf($5);$6=HEAPF32[$0+68>>2];$5=sinf($5);$24=HEAP32[$1+28>>2];$7=Math_imul($13,12);$3=$24+$7|0;$21=HEAPF32[$3+8>>2];$25=HEAPF32[$3+4>>2];$8=HEAP32[$3+4>>2];$26=HEAPF32[$3>>2];$13=HEAP32[$3>>2];$3=$12+$24|0;$22=HEAPF32[$3+8>>2];$27=HEAPF32[$3+4>>2];$12=HEAP32[$3+4>>2];$28=HEAPF32[$3>>2];$3=HEAP32[$3>>2];$4=HEAPF32[($23+$7|0)+8>>2];$6=Math_fround($6-$11);$2=Math_fround($2-$17);$11=Math_fround(Math_fround($5*$6)+Math_fround($10*$2));HEAPF32[$0+116>>2]=$11;$10=Math_fround(Math_fround($10*$6)-Math_fround($5*$2));HEAPF32[$0+112>>2]=$10;$5=Math_fround($14+$15);HEAPF32[$0+176>>2]=$5>Math_fround(0)?Math_fround(Math_fround(1)/$5):$5;$5=HEAPF32[$0+80>>2];$2=cosf($4);$6=HEAPF32[$0+76>>2];$4=sinf($4);$9=Math_fround($6-$9);$6=Math_fround($5-$18);$5=Math_fround(Math_fround($4*$9)+Math_fround($2*$6));HEAPF32[$0+124>>2]=$5;$9=Math_fround(Math_fround($2*$9)-Math_fround($4*$6));HEAPF32[$0+120>>2]=$9;$4=Math_fround($19+$20);$2=Math_fround(Math_fround($4+Math_fround($11*Math_fround($11*$14)))+Math_fround($5*Math_fround($5*$15)));$18=$2;$17=Math_fround($4+Math_fround($10*Math_fround($10*$14)));$4=Math_fround($9*$15);$6=Math_fround($17+Math_fround($9*$4));$4=Math_fround(Math_fround($11*Math_fround($10*Math_fround(-$14)))-Math_fround($5*$4));$2=Math_fround(Math_fround($2*$6)-Math_fround($4*$4));$2=$2!=Math_fround(0)?Math_fround(Math_fround(1)/$2):$2;HEAPF32[$0+172>>2]=$18*$2;HEAPF32[$0+160>>2]=$6*$2;$4=Math_fround($4*Math_fround(-$2));HEAPF32[$0+168>>2]=$4;HEAPF32[$0+164>>2]=$4;label$1:{if(HEAPU8[$1+20|0]){$2=HEAPF32[$1+8>>2];$4=Math_fround($2*HEAPF32[$0+84>>2]);HEAPF32[$0+84>>2]=$4;$6=Math_fround($2*HEAPF32[$0+92>>2]);HEAPF32[$0+92>>2]=$6;$2=Math_fround($2*HEAPF32[$0+88>>2]);HEAPF32[$0+88>>2]=$2;$21=Math_fround($21+Math_fround(Math_fround($6+Math_fround(Math_fround($9*$2)-Math_fround($4*$5)))*$15));$22=Math_fround($22-Math_fround(Math_fround($6+Math_fround(Math_fround($10*$2)-Math_fround($4*$11)))*$14));$13=(wasm2js_scratch_store_f32(Math_fround(Math_fround($4*$20)+$26)),wasm2js_scratch_load_i32(0));$3=(wasm2js_scratch_store_f32(Math_fround($28-Math_fround($4*$19))),wasm2js_scratch_load_i32(0));$8=(wasm2js_scratch_store_f32(Math_fround(Math_fround($2*$20)+$25)),wasm2js_scratch_load_i32(0));$12=(wasm2js_scratch_store_f32(Math_fround($27-Math_fround($2*$19))),wasm2js_scratch_load_i32(0));break label$1}HEAP32[$0+92>>2]=0;HEAP32[$0+84>>2]=0;HEAP32[$0+88>>2]=0}$7=HEAP32[$1+28>>2]+Math_imul($16,12)|0;HEAP32[$7+4>>2]=$12;HEAP32[$7>>2]=$3;$7=HEAP32[$1+28>>2];HEAPF32[($7+Math_imul(HEAP32[$0+104>>2],12)|0)+8>>2]=$22;$7=$7+Math_imul(HEAP32[$0+108>>2],12)|0;HEAP32[$7+4>>2]=$8;HEAP32[$7>>2]=$13;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+108>>2],12)|0)+8>>2]=$21}function dmGameObject__CreatePropertyContainerFromLua_28void__2c_20unsigned_20char__2c_20unsigned_20int_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$3=global$0+ -64|0;global$0=$3;$0=$0?HEAP32[$0+120>>2]:0;$6=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($3+48|0,$0,0);HEAP32[$3+40>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;label$3:{if(!$2){$0=dmGameObject__CreatePropertyContainerBuilder_28dmGameObject__PropertyContainerParameters_20const__29($3+8|0);if(!$0){break label$3}$4=dmGameObject__CreatePropertyContainer_28dmGameObject__PropertyContainerBuilder__29($0);break label$3}dmScript__PushTable_28lua_State__2c_20char_20const__2c_20unsigned_20int_29($0,$1,$2);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;if(lua_next($0,-2)){while(1){label$7:{if(!lua_isstring($0,-2)){break label$7}HEAP32[$3+4>>2]=0;$1=dmGameObject__GetPropertyType_28lua_State__2c_20int_2c_20void___29($0,-1,$3+4|0);if($1>>>0>7){break label$7}label$8:{switch($1-1|0){case 0:HEAP32[$3+12>>2]=HEAP32[$3+12>>2]+1;break label$7;case 1:HEAP32[$3+24>>2]=HEAP32[$3+24>>2]+1;break label$7;case 2:HEAP32[$3+28>>2]=HEAP32[$3+28>>2]+1;break label$7;case 3:HEAP32[$3+32>>2]=HEAP32[$3+32>>2]+1;break label$7;case 4:HEAP32[$3+36>>2]=HEAP32[$3+36>>2]+1;break label$7;case 5:HEAP32[$3+40>>2]=HEAP32[$3+40>>2]+1;break label$7;case 6:lua_settop($0,-4);break label$3;default:break label$8}}HEAP32[$3+8>>2]=HEAP32[$3+8>>2]+1}lua_settop($0,-2);if(lua_next($0,-2)){continue}break}}$1=dmGameObject__CreatePropertyContainerBuilder_28dmGameObject__PropertyContainerParameters_20const__29($3+8|0);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;if(lua_next($0,-2)){while(1){label$18:{if(!lua_isstring($0,-2)){break label$18}HEAP32[$3+4>>2]=0;$2=dmHashString64(lua_tolstring($0,-2,0));$4=i64toi32_i32$HIGH_BITS;$5=dmGameObject__GetPropertyType_28lua_State__2c_20int_2c_20void___29($0,-1,$3+4|0);if($5>>>0>7){break label$18}label$19:{switch($5-1|0){case 0:dmGameObject__PushHash_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_29($1,$2,$4,dmScript__CheckHash_28lua_State__2c_20int_29($0,-1),i64toi32_i32$HIGH_BITS);break label$18;case 1:dmGameObject__PushURL_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20char_20const__29($1,$2,$4,dmScript__CheckURL_28lua_State__2c_20int_29($0,-1));break label$18;case 2:dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($1,$2,$4,3,dmScript__CheckVector3_28lua_State__2c_20int_29($0,-1));break label$18;case 3:dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($1,$2,$4,4,dmScript__CheckVector4_28lua_State__2c_20int_29($0,-1));break label$18;case 4:dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($1,$2,$4,5,dmScript__CheckQuat_28lua_State__2c_20int_29($0,-1));break label$18;case 5:dmGameObject__PushBool_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20bool_29($1,$2,$4,(lua_toboolean($0,-1)|0)!=0);break label$18;case 6:__assert_fail(17912,17918,235,17961);abort();default:break label$19}}HEAPF32[$3>>2]=lua_tonumber($0,-1);dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($1,$2,$4,0,$3)}lua_settop($0,-2);if(lua_next($0,-2)){continue}break}}lua_settop($0,-2);$4=dmGameObject__CreatePropertyContainer_28dmGameObject__PropertyContainerBuilder__29($1)}dmScript__LuaStackCheck___LuaStackCheck_28_29($6);global$0=$3- -64|0;return $4}function dmGameSystem__RenderTextNodes_28dmGui__Scene__2c_20dmGui__RenderEntry_20const__2c_20Vectormath__Aos__Matrix4_20const__2c_20float_20const__2c_20dmGui__StencilScope_20const___2c_20unsigned_20int_2c_20void__29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0,$9=0,$10=0,$11=0,$12=Math_fround(0),$13=0,$14=0;$7=global$0-768|0;global$0=$7;label$1:{if($5){while(1){$10=HEAP32[(($11<<4)+$1|0)+8>>2];if(!dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($0,$10)){dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($7+752|0,$0,$10,3);dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($7+736|0,$0,$10,5);dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($7+720|0,$0,$10,6);if((dmGui__GetNodeType_28dmGui__Scene__2c_20unsigned_20int_29($0,$10)|0)!=1){break label$1}$13=dmRender__DrawTextParams__DrawTextParams_28_29($7+16|0);$9=$11<<2;$12=HEAPF32[$9+$3>>2];HEAPF32[$7+92>>2]=$12;HEAP32[$7+88>>2]=HEAP32[$7+760>>2];$8=HEAP32[$7+756>>2];HEAP32[$7+80>>2]=HEAP32[$7+752>>2];HEAP32[$7+84>>2]=$8;HEAP32[$7+104>>2]=HEAP32[$7+744>>2];$8=HEAP32[$7+740>>2];HEAP32[$7+96>>2]=HEAP32[$7+736>>2];HEAP32[$7+100>>2]=$8;$8=HEAP32[$7+724>>2];HEAP32[$7+112>>2]=HEAP32[$7+720>>2];HEAP32[$7+116>>2]=$8;HEAP32[$7+120>>2]=HEAP32[$7+728>>2];HEAPF32[$7+108>>2]=$12*HEAPF32[$7+748>>2];HEAPF32[$7+124>>2]=$12*HEAPF32[$7+732>>2];HEAP32[$7+128>>2]=dmGui__GetNodeText_28dmGui__Scene__2c_20unsigned_20int_29($0,$10);$8=($11<<6)+$2|0;HEAP32[$7+16>>2]=HEAP32[$8>>2];HEAP32[$7+20>>2]=HEAP32[$8+4>>2];HEAP32[$7+24>>2]=HEAP32[$8+8>>2];HEAP32[$7+28>>2]=HEAP32[$8+12>>2];HEAP32[$7+32>>2]=HEAP32[$8+16>>2];HEAP32[$7+36>>2]=HEAP32[$8+20>>2];HEAP32[$7+40>>2]=HEAP32[$8+24>>2];HEAP32[$7+44>>2]=HEAP32[$8+28>>2];HEAP32[$7+48>>2]=HEAP32[$8+32>>2];HEAP32[$7+52>>2]=HEAP32[$8+36>>2];HEAP32[$7+56>>2]=HEAP32[$8+40>>2];HEAP32[$7+60>>2]=HEAP32[$8+44>>2];HEAP32[$7+64>>2]=HEAP32[$8+48>>2];HEAP32[$7+68>>2]=HEAP32[$8+52>>2];HEAP32[$7+72>>2]=HEAP32[$8+56>>2];HEAP32[$7+76>>2]=HEAP32[$8+60>>2];HEAP16[$7+664>>1]=HEAPU16[$0+370>>1];HEAP8[$7+684|0]=dmGui__GetNodeLineBreak_28dmGui__Scene__2c_20unsigned_20int_29($0,$10);HEAPF32[$7+676>>2]=dmGui__GetNodeTextLeading_28dmGui__Scene__2c_20unsigned_20int_29($0,$10);HEAPF32[$7+680>>2]=dmGui__GetNodeTextTracking_28dmGui__Scene__2c_20unsigned_20int_29($0,$10);dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($7,$0,$10,4);$8=HEAP32[$7+4>>2];HEAP32[$7+668>>2]=HEAP32[$7>>2];HEAP32[$7+672>>2]=$8;$8=HEAP32[$4+$9>>2];HEAP8[$7+716|0]=HEAPU8[$7+716|0]|1;$14=$7;label$5:{label$6:{if($8){HEAP32[$7+704>>2]=2;HEAP32[$7+708>>2]=2;HEAP32[$7+696>>2]=5;HEAP32[$7+700>>2]=0;$9=HEAPU8[$8|0]|HEAP32[$7+712>>2]&-256;HEAP32[$7+712>>2]=$9;$9=$9&-65281|HEAPU8[$8+1|0]<<8;HEAP32[$7+712>>2]=$9;$9=$9&-16711681|HEAPU8[$8+2|0]<<16;HEAP32[$7+712>>2]=$9;$9=$9&-251658241|(HEAPU8[$8+3|0]&15)<<24;HEAP32[$7+712>>2]=$9;if(!HEAPU8[$6+16|0]){break label$5}HEAP8[$6+16|0]=0;$9=$9|268435456;break label$6}HEAP32[$7+704>>2]=0;HEAP32[$7+708>>2]=0;HEAP32[$7+696>>2]=7;HEAP32[$7+700>>2]=0;$9=HEAP32[$7+712>>2]&-268435456|268435200}HEAP32[$14+712>>2]=$9}$8=dmGui__GetNodePivot_28dmGui__Scene__2c_20unsigned_20int_29($0,$10);if($8>>>0<=8){$8=$8<<2;HEAP32[$7+692>>2]=HEAP32[$8+42644>>2];HEAP32[$7+688>>2]=HEAP32[$8+42608>>2]}dmRender__DrawText_28dmRender__RenderContext__2c_20dmRender__FontMap__2c_20dmRender__Material__2c_20unsigned_20long_20long_2c_20dmRender__DrawTextParams_20const__29(HEAP32[$6>>2],dmGui__GetNodeFont_28dmGui__Scene__2c_20unsigned_20int_29($0,$10),0,0,0,$13)}$11=$11+1|0;if(($11|0)!=($5|0)){continue}break}}$2=HEAP32[$6>>2];$1=HEAPU16[$0+370>>1];$0=HEAP32[$6+12>>2];HEAP32[$6+12>>2]=$0+1;dmRender__FlushTexts_28dmRender__RenderContext__2c_20unsigned_20int_2c_20unsigned_20int_2c_20bool_29($2,2,$0+($1<<16)|0);global$0=$7+768|0;return}__assert_fail(41512,41335,811,41547);abort()}function _GLOBAL__sub_I_comp_label_cpp(){var $0=0,$1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;HEAP32[146144]=dmHashString64(42724);HEAP32[146145]=i64toi32_i32$HIGH_BITS;HEAP32[146146]=dmHashString64(42743);HEAP32[146147]=i64toi32_i32$HIGH_BITS;HEAP32[146148]=dmHashString64(42760);HEAP32[146149]=i64toi32_i32$HIGH_BITS;HEAP32[146150]=dmHashString64(42769);HEAP32[146151]=i64toi32_i32$HIGH_BITS;HEAP32[146152]=dmHashString64(42775);HEAP32[146153]=i64toi32_i32$HIGH_BITS;HEAP32[146154]=dmHashString64(42785);HEAP32[146155]=i64toi32_i32$HIGH_BITS;HEAP32[146156]=dmHashString64(42793);HEAP32[146157]=i64toi32_i32$HIGH_BITS;HEAP32[146158]=dmHashString64(42800);HEAP32[146159]=i64toi32_i32$HIGH_BITS;HEAP32[146160]=dmHashString64(42812);HEAP32[146161]=i64toi32_i32$HIGH_BITS;HEAP32[146162]=dmHashString64(42821);HEAP32[146163]=i64toi32_i32$HIGH_BITS;HEAP32[146164]=dmHashString64(42833);HEAP32[146165]=i64toi32_i32$HIGH_BITS;HEAP32[146166]=dmHashString64(42842);HEAP32[146167]=i64toi32_i32$HIGH_BITS;HEAP32[146168]=dmHashString64(42847);HEAP32[146169]=i64toi32_i32$HIGH_BITS;HEAP32[146170]=dmHashString64(42853);HEAP32[146171]=i64toi32_i32$HIGH_BITS;HEAP32[146172]=dmHashString64(42862);HEAP32[146173]=i64toi32_i32$HIGH_BITS;HEAP32[146174]=dmHashString64(42871);HEAP32[146175]=i64toi32_i32$HIGH_BITS;HEAP32[146176]=dmHashString64(42880);HEAP32[146177]=i64toi32_i32$HIGH_BITS;HEAP32[146178]=dmHashString64(42889);HEAP32[146179]=i64toi32_i32$HIGH_BITS;HEAP32[146180]=dmHashString64(42898);HEAP32[146181]=i64toi32_i32$HIGH_BITS;HEAP32[146182]=dmHashString64(42907);HEAP32[146183]=i64toi32_i32$HIGH_BITS;HEAP32[146184]=dmHashString64(42916);HEAP32[146185]=i64toi32_i32$HIGH_BITS;HEAP32[146186]=dmHashString64(42925);HEAP32[146187]=i64toi32_i32$HIGH_BITS;HEAP32[146188]=dmHashString64(42934);HEAP32[146189]=i64toi32_i32$HIGH_BITS;$0=dmHashString64(42946);$1=i64toi32_i32$HIGH_BITS;$2=dmHashString64(42952);$3=i64toi32_i32$HIGH_BITS;$4=dmHashString64(42960);$5=i64toi32_i32$HIGH_BITS;$6=dmHashString64(42968);HEAP8[584792]=0;HEAP32[146196]=$6;HEAP32[146197]=i64toi32_i32$HIGH_BITS;HEAP32[146194]=$4;HEAP32[146195]=$5;HEAP32[146192]=$2;HEAP32[146193]=$3;HEAP32[146190]=$0;HEAP32[146191]=$1;$0=dmHashString64(42976);$1=i64toi32_i32$HIGH_BITS;$2=dmHashString64(42981);$3=i64toi32_i32$HIGH_BITS;$4=dmHashString64(42988);$5=i64toi32_i32$HIGH_BITS;$6=dmHashString64(42995);HEAP8[584832]=0;HEAP32[146206]=$6;HEAP32[146207]=i64toi32_i32$HIGH_BITS;HEAP32[146204]=$4;HEAP32[146205]=$5;HEAP32[146202]=$2;HEAP32[146203]=$3;HEAP32[146200]=$0;HEAP32[146201]=$1;$0=dmHashString64(43002);$1=i64toi32_i32$HIGH_BITS;$2=dmHashString64(43008);$3=i64toi32_i32$HIGH_BITS;$4=dmHashString64(43016);$5=i64toi32_i32$HIGH_BITS;$6=dmHashString64(43024);$7=i64toi32_i32$HIGH_BITS;$8=dmHashString64(43032);HEAP8[584880]=0;HEAP32[146218]=$8;HEAP32[146219]=i64toi32_i32$HIGH_BITS;HEAP32[146216]=$6;HEAP32[146217]=$7;HEAP32[146214]=$4;HEAP32[146215]=$5;HEAP32[146212]=$2;HEAP32[146213]=$3;HEAP32[146210]=$0;HEAP32[146211]=$1;$0=dmHashString64(43040);$1=i64toi32_i32$HIGH_BITS;$2=dmHashString64(43048);$3=i64toi32_i32$HIGH_BITS;$4=dmHashString64(43058);$5=i64toi32_i32$HIGH_BITS;$6=dmHashString64(43068);$7=i64toi32_i32$HIGH_BITS;$8=dmHashString64(43078);HEAP8[584928]=0;HEAP32[146230]=$8;HEAP32[146231]=i64toi32_i32$HIGH_BITS;HEAP32[146228]=$6;HEAP32[146229]=$7;HEAP32[146226]=$4;HEAP32[146227]=$5;HEAP32[146224]=$2;HEAP32[146225]=$3;HEAP32[146222]=$0;HEAP32[146223]=$1;$0=dmHashString64(43088);$1=i64toi32_i32$HIGH_BITS;$2=dmHashString64(43095);$3=i64toi32_i32$HIGH_BITS;$4=dmHashString64(43104);$5=i64toi32_i32$HIGH_BITS;$6=dmHashString64(43113);$7=i64toi32_i32$HIGH_BITS;$8=dmHashString64(43122);HEAP8[584976]=0;HEAP32[146242]=$8;HEAP32[146243]=i64toi32_i32$HIGH_BITS;HEAP32[146240]=$6;HEAP32[146241]=$7;HEAP32[146238]=$4;HEAP32[146239]=$5;HEAP32[146236]=$2;HEAP32[146237]=$3;HEAP32[146234]=$0;HEAP32[146235]=$1}function dmGameSystem__CompSpineModelOnMessage_28dmGameObject__ComponentOnMessageParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$6=global$0-80|0;global$0=$6;$2=HEAP32[$0+4>>2];$1=HEAP32[$2+16>>2];$4=HEAP32[HEAP32[$0+12>>2]>>2];if(HEAP32[$2+20>>2]-$1>>3>>>0>$4>>>0){$5=HEAP32[$2+4>>2];$2=HEAP32[$2>>2];$1=HEAP32[$1+($4<<3)>>2];if($5-$2>>2>>>0>$1>>>0){$2=HEAP32[$2+($1<<2)>>2];$1=HEAP32[$0+16>>2];$4=HEAP32[$1+64>>2];$3=HEAP32[131295];$5=HEAP32[$1+68>>2];label$3:{if(($4|0)==HEAP32[$3+8>>2]&($5|0)==HEAP32[$3+12>>2]){HEAP8[$2+982|0]=HEAPU8[$2+982|0]|1;$0=HEAP32[$2+132>>2];HEAP8[$0+224|0]=HEAPU8[$0+224|0]&251|4;break label$3}$3=HEAP32[131296];if(($4|0)==HEAP32[$3+8>>2]&($5|0)==HEAP32[$3+12>>2]){HEAP8[$2+982|0]=HEAPU8[$2+982|0]&254;$0=HEAP32[$2+132>>2];HEAP8[$0+224|0]=HEAPU8[$0+224|0]&251;break label$3}if(!HEAP32[$1+76>>2]){break label$3}$3=HEAP32[134170];if(($4|0)==HEAP32[$3+8>>2]&($5|0)==HEAP32[$3+12>>2]){if(dmRig__PlayAnimation_28dmRig__RigInstance__2c_20unsigned_20long_20long_2c_20dmRig__RigPlayback_2c_20float_2c_20float_2c_20float_29(HEAP32[$2+132>>2],HEAP32[$1+96>>2],HEAP32[$1+100>>2],HEAP32[(HEAP32[$1+104>>2]<<2)+586184>>2],HEAPF32[$1+108>>2],HEAPF32[$1+112>>2],HEAPF32[$1+116>>2])){break label$3}$0=HEAP32[$0+16>>2];$1=HEAP32[$0+4>>2];HEAP32[$2+144>>2]=HEAP32[$0>>2];HEAP32[$2+148>>2]=$1;$1=HEAP32[$0+28>>2];HEAP32[$2+168>>2]=HEAP32[$0+24>>2];HEAP32[$2+172>>2]=$1;$1=HEAP32[$0+20>>2];HEAP32[$2+160>>2]=HEAP32[$0+16>>2];HEAP32[$2+164>>2]=$1;$1=HEAP32[$0+12>>2];HEAP32[$2+152>>2]=HEAP32[$0+8>>2];HEAP32[$2+156>>2]=$1;break label$3}$3=HEAP32[134191];if(($4|0)==HEAP32[$3+8>>2]&($5|0)==HEAP32[$3+12>>2]){$0=HEAP32[$2+132>>2];$0=((HEAP8[$0+224|0]&1)<<5)+$0|0;HEAP8[$0+28|0]=HEAPU8[$0+28|0]&254;break label$3}$3=HEAP32[134262];if(($4|0)==HEAP32[$3+8>>2]&($5|0)==HEAP32[$3+12>>2]){$4=HEAP32[$2+960>>2];if(!$4){$4=HEAP32[HEAP32[$2+128>>2]+8>>2]}$5=HEAP32[$1+100>>2];$3=HEAP32[$1+96>>2];HEAP32[$6+16>>2]=HEAP32[$1+112>>2];HEAP32[$6+20>>2]=HEAP32[$1+116>>2];HEAP32[$6+24>>2]=HEAP32[$1+120>>2];HEAP32[$6+28>>2]=HEAP32[$1+124>>2];if((dmGameSystem__SetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20void_20_28__29_28void__2c_20unsigned_20long_20long_2c_20unsigned_20int__2c_20dmGameObject__PropertyVar_20const__29_2c_20void__29($4,$3,$5,dmGameObject__PropertyVar__PropertyVar_28Vectormath__Aos__Vector4_29($6+40|0,$6+16|0),481,$2)|0)!=-1){break label$3}$0=HEAP32[$0+16>>2];$2=dmMessage__GetSocketName_28unsigned_20long_20long_29(HEAP32[$0+32>>2],HEAP32[$0+36>>2]);$4=dmHashReverseSafe64(HEAP32[$0+48>>2],HEAP32[$0+52>>2]);$0=dmHashReverseSafe64(HEAP32[$0+56>>2],HEAP32[$0+60>>2]);HEAP32[$6+12>>2]=dmHashReverseSafe64(HEAP32[$1+96>>2],HEAP32[$1+100>>2]);HEAP32[$6+8>>2]=$0;HEAP32[$6+4>>2]=$4;HEAP32[$6>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50301,$6);break label$3}$0=HEAP32[134278];if(HEAP32[$0+8>>2]!=($4|0)|HEAP32[$0+12>>2]!=($5|0)){break label$3}$3=HEAP32[$2+944>>2];if(!$3){break label$3}$5=HEAP32[$1+96>>2];$1=HEAP32[$1+100>>2];$0=0;while(1){$4=$2+($0<<5)|0;$7=$4+192|0;if(HEAP32[$7>>2]==($5|0)&HEAP32[$7+4>>2]==($1|0)){$1=$2+176|0;$5=$1+($0<<5)|0;$3=$3+ -1|0;$1=$1+($3<<5)|0;HEAP32[$5>>2]=HEAP32[$1>>2];HEAP32[$5+4>>2]=HEAP32[$1+4>>2];HEAP32[$5+8>>2]=HEAP32[$1+8>>2];HEAP32[$5+12>>2]=HEAP32[$1+12>>2];$5=HEAP32[$1+28>>2];HEAP32[$4+200>>2]=HEAP32[$1+24>>2];HEAP32[$4+204>>2]=$5;$5=HEAP32[$1+20>>2];HEAP32[$4+192>>2]=HEAP32[$1+16>>2];HEAP32[$4+196>>2]=$5;$1=$2+688|0;$0=$1+($0<<4)|0;$1=$1+($3<<4)|0;HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=HEAP32[$1+4>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=HEAP32[$1+12>>2];HEAP32[$2+944>>2]=$3;HEAP8[$2+982|0]=HEAPU8[$2+982|0]|8;break label$3}$0=$0+1|0;if(($3|0)!=($0|0)){continue}break}}global$0=$6+80|0;return 0}}__assert_fail(50664,50554,430,50675);abort()}function VP8ParseQuant($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$1=$0+12|0;$2=VP8GetValue($1,7);if(VP8GetValue($1,1)){$8=VP8GetSignedValue($1,4)}if(VP8GetValue($1,1)){$9=VP8GetSignedValue($1,4)}if(VP8GetValue($1,1)){$10=VP8GetSignedValue($1,4)}if(VP8GetValue($1,1)){$11=VP8GetSignedValue($1,4)}$5=!VP8GetValue($1,1);$4=0;label$5:{if($5){break label$5}$4=VP8GetSignedValue($1,4)}$1=$2;$6=HEAP32[$0+104>>2];if($6){$1=HEAP8[$0+116|0]+(HEAP32[$0+112>>2]?0:$2)|0}$5=$1+$4|0;HEAP32[$0+800>>2]=$5;$7=$1+$11|0;$7=($7|0)<117?$7:117;HEAP32[$0+792>>2]=HEAPU8[(($7|0)>0?$7:0)+174624|0];$7=($1|0)<127?$1:127;HEAP32[$0+780>>2]=HEAPU16[((($7|0)>0?$7:0)<<1)+174752>>1];$7=$1+$8|0;$7=($7|0)<127?$7:127;HEAP32[$0+776>>2]=HEAPU8[(($7|0)>0?$7:0)+174624|0];$5=($5|0)<127?$5:127;HEAP32[$0+796>>2]=HEAPU16[((($5|0)>0?$5:0)<<1)+174752>>1];$5=$1+$9|0;$5=($5|0)<127?$5:127;HEAP32[$0+784>>2]=HEAPU8[(($5|0)>0?$5:0)+174624|0]<<1;$1=$1+$10|0;$1=($1|0)<127?$1:127;$1=Math_imul(HEAPU16[((($1|0)>0?$1:0)<<1)+174752>>1],101581);HEAP32[$0+788>>2]=$1>>>0<524288?8:$1>>>16|0;if(!$6){$1=$0+776|0;$2=HEAP32[$1+4>>2];HEAP32[$0+808>>2]=HEAP32[$1>>2];HEAP32[$0+812>>2]=$2;$2=HEAP32[$1+28>>2];HEAP32[$0+832>>2]=HEAP32[$1+24>>2];HEAP32[$0+836>>2]=$2;$2=HEAP32[$1+20>>2];HEAP32[$0+824>>2]=HEAP32[$1+16>>2];HEAP32[$0+828>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+816>>2]=HEAP32[$1+8>>2];HEAP32[$0+820>>2]=$2;$2=HEAP32[$1+4>>2];HEAP32[$0+840>>2]=HEAP32[$1>>2];HEAP32[$0+844>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+848>>2]=HEAP32[$1+8>>2];HEAP32[$0+852>>2]=$2;$2=HEAP32[$1+20>>2];HEAP32[$0+856>>2]=HEAP32[$1+16>>2];HEAP32[$0+860>>2]=$2;$2=HEAP32[$1+28>>2];HEAP32[$0+864>>2]=HEAP32[$1+24>>2];HEAP32[$0+868>>2]=$2;$2=HEAP32[$1+4>>2];HEAP32[$0+872>>2]=HEAP32[$1>>2];HEAP32[$0+876>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+880>>2]=HEAP32[$1+8>>2];HEAP32[$0+884>>2]=$2;$2=HEAP32[$1+20>>2];HEAP32[$0+888>>2]=HEAP32[$1+16>>2];HEAP32[$0+892>>2]=$2;$2=HEAP32[$1+28>>2];HEAP32[$0+896>>2]=HEAP32[$1+24>>2];HEAP32[$0+900>>2]=$2;return}$5=HEAP32[$0+112>>2]?0:$2;$1=$5+HEAP8[$0+117|0]|0;$6=$1+$4|0;HEAP32[$0+832>>2]=$6;$5=$5+HEAP8[$0+118|0]|0;$7=$5+$4|0;HEAP32[$0+864>>2]=$7;$3=$1+$11|0;$3=($3|0)<117?$3:117;HEAP32[$0+824>>2]=HEAPU8[(($3|0)>0?$3:0)+174624|0];$3=($1|0)<127?$1:127;HEAP32[$0+812>>2]=HEAPU16[((($3|0)>0?$3:0)<<1)+174752>>1];$3=$1+$8|0;$3=($3|0)<127?$3:127;HEAP32[$0+808>>2]=HEAPU8[(($3|0)>0?$3:0)+174624|0];$3=$5+$11|0;$3=($3|0)<117?$3:117;HEAP32[$0+856>>2]=HEAPU8[(($3|0)>0?$3:0)+174624|0];$3=($5|0)<127?$5:127;HEAP32[$0+844>>2]=HEAPU16[((($3|0)>0?$3:0)<<1)+174752>>1];$3=$5+$8|0;$3=($3|0)<127?$3:127;HEAP32[$0+840>>2]=HEAPU8[(($3|0)>0?$3:0)+174624|0];$6=($6|0)<127?$6:127;HEAP32[$0+828>>2]=HEAPU16[((($6|0)>0?$6:0)<<1)+174752>>1];$6=$1+$9|0;$6=($6|0)<127?$6:127;HEAP32[$0+816>>2]=HEAPU8[(($6|0)>0?$6:0)+174624|0]<<1;$6=($7|0)<127?$7:127;HEAP32[$0+860>>2]=HEAPU16[((($6|0)>0?$6:0)<<1)+174752>>1];$6=$5+$9|0;$6=($6|0)<127?$6:127;HEAP32[$0+848>>2]=HEAPU8[(($6|0)>0?$6:0)+174624|0]<<1;$1=$1+$10|0;$1=($1|0)<127?$1:127;$1=Math_imul(HEAPU16[((($1|0)>0?$1:0)<<1)+174752>>1],101581);HEAP32[$0+820>>2]=$1>>>0<524288?8:$1>>>16|0;$1=$5+$10|0;$1=($1|0)<127?$1:127;$1=Math_imul(HEAPU16[((($1|0)>0?$1:0)<<1)+174752>>1],101581);HEAP32[$0+852>>2]=$1>>>0<524288?8:$1>>>16|0;$1=HEAP8[$0+119|0]+(HEAP32[$0+112>>2]?0:$2)|0;$2=$1+$4|0;HEAP32[$0+896>>2]=$2;$4=$1+$8|0;$4=($4|0)<127?$4:127;HEAP32[$0+872>>2]=HEAPU8[(($4|0)>0?$4:0)+174624|0];$4=($1|0)<127?$1:127;HEAP32[$0+876>>2]=HEAPU16[((($4|0)>0?$4:0)<<1)+174752>>1];$4=$1+$11|0;$4=($4|0)<117?$4:117;HEAP32[$0+888>>2]=HEAPU8[(($4|0)>0?$4:0)+174624|0];$4=$1+$9|0;$4=($4|0)<127?$4:127;HEAP32[$0+880>>2]=HEAPU8[(($4|0)>0?$4:0)+174624|0]<<1;$2=($2|0)<127?$2:127;HEAP32[$0+892>>2]=HEAPU16[((($2|0)>0?$2:0)<<1)+174752>>1];$2=$0;$0=$1+$10|0;$0=($0|0)<127?$0:127;$0=Math_imul(HEAPU16[((($0|0)>0?$0:0)<<1)+174752>>1],101581);HEAP32[$2+884>>2]=$0>>>0<524288?8:$0>>>16|0}function dmRender__NewRenderContext_28dmGraphics__Context__2c_20dmRender__RenderContextParams_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$3=global$0+ -64|0;global$0=$3;$2=operator_20new_28unsigned_20long_29(4048);dmRender__DebugRenderer__DebugRenderer_28_29($2+32|0);$4=$2+3608|0;HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=0;HEAP32[$2+3600>>2]=0;HEAP32[$2+3604>>2]=0;HEAP32[$2+3644>>2]=0;HEAP32[$2+3648>>2]=0;$4=$2+3652|0;HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=0;$4=$2+3660|0;HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=0;$4=$2+3668|0;HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=0;HEAP32[$2+3688>>2]=0;HEAP32[$2+3692>>2]=0;HEAP32[$2+3696>>2]=0;HEAP32[$2+3700>>2]=0;HEAP32[$2+3704>>2]=0;HEAP32[$2+3708>>2]=0;memset($2+3716|0,0,96);dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$1+20>>2],4,$2+3696|0,$2+3704|0,$2+3700|0);HEAP32[$2+4016>>2]=$0;HEAP32[$2+3700>>2]=HEAP32[$2+3696>>2];HEAP32[$2+3812>>2]=HEAP32[$1+4>>2];HEAP32[$2+3908>>2]=1065353216;$0=$2+3900|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$2+3892>>2]=0;HEAP32[$2+3896>>2]=0;HEAP32[$2+3884>>2]=1065353216;HEAP32[$2+3888>>2]=1065353216;HEAP32[$2+3912>>2]=0;HEAP32[$2+3916>>2]=0;$0=$2+3920|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;$0=$2+3876|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$2+3864>>2]=1065353216;HEAP32[$2+3868>>2]=0;HEAP32[$2+3872>>2]=0;HEAP32[$2+3928>>2]=1065353216;$0=$2+3856|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$2+3844>>2]=1065353216;HEAP32[$2+3848>>2]=0;HEAP32[$2+3852>>2]=0;HEAP32[$2+3932>>2]=0;HEAP32[$2+3936>>2]=0;$0=$2+3940|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;$0=$2+3836|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$2+3824>>2]=1065353216;HEAP32[$2+3828>>2]=0;HEAP32[$2+3832>>2]=0;HEAP32[$2+4020>>2]=0;HEAP32[$2+3948>>2]=1065353216;Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3,$2+3888|0,$2+3824|0);HEAP32[$2+3952>>2]=HEAP32[$3>>2];HEAP32[$2+3956>>2]=HEAP32[$3+4>>2];HEAP32[$2+3960>>2]=HEAP32[$3+8>>2];HEAP32[$2+3964>>2]=HEAP32[$3+12>>2];HEAP32[$2+3968>>2]=HEAP32[$3+16>>2];HEAP32[$2+3972>>2]=HEAP32[$3+20>>2];HEAP32[$2+3976>>2]=HEAP32[$3+24>>2];HEAP32[$2+3980>>2]=HEAP32[$3+28>>2];HEAP32[$2+3984>>2]=HEAP32[$3+32>>2];HEAP32[$2+3988>>2]=HEAP32[$3+36>>2];HEAP32[$2+3992>>2]=HEAP32[$3+40>>2];HEAP32[$2+3996>>2]=HEAP32[$3+44>>2];HEAP32[$2+4e3>>2]=HEAP32[$3+48>>2];HEAP32[$2+4004>>2]=HEAP32[$3+52>>2];HEAP32[$2+4008>>2]=HEAP32[$3+56>>2];HEAP32[$2+4012>>2]=HEAP32[$3+60>>2];$0=HEAP32[$1>>2];HEAP32[$2+3684>>2]=$0;dmRender__InitializeRenderScriptContext_28dmRender__RenderScriptContext__2c_20dmScript__Context__2c_20unsigned_20int_29($2+3688|0,$0,HEAP32[$1+40>>2]);$0=dmScript__NewScriptWorld_28dmScript__Context__29(HEAP32[$2+3684>>2]);HEAP32[$2+3568>>2]=0;HEAP32[$2+3712>>2]=$0;$0=HEAP32[$1+8>>2];label$1:{if(!$0){break label$1}$4=HEAP32[$1+28>>2];if(!$4){break label$1}$5=HEAP32[$1+12>>2];if(!$5){break label$1}$6=HEAP32[$1+32>>2];if(!$6){break label$1}dmRender__InitializeDebugRenderer_28dmRender__RenderContext__2c_20unsigned_20int_2c_20void_20const__2c_20unsigned_20int_2c_20void_20const__2c_20unsigned_20int_29($2,HEAP32[$1+44>>2],$0,$4,$5,$6)}HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;dmRender__InitializeTextContext_28dmRender__RenderContext__2c_20unsigned_20int_29($2,HEAP32[$1+36>>2]);HEAP8[$2+4032|0]=HEAPU8[$2+4032|0]&252;label$2:{if(!(HEAP8[$2+3744|0]&1)){dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(255,8,$2+3732|0,$2+3740|0,$2+3736|0);if(dmMessage__NewSocket_28char_20const__2c_20unsigned_20long_20long__29(HEAP32[136523],$2+4024|0)){break label$2}global$0=$3- -64|0;return $2}__assert_fail(101129,101204,444,101275);abort()}__assert_fail(100563,100589,141,100614);abort()}function dmGameSystem__AcquireResources_28dmGraphics__Context__2c_20dmResource__SResourceFactory__2c_20dmGameSystem__MeshResource__2c_20char_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$2=global$0-32|0;global$0=$2;label$1:{label$2:{$5=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[HEAP32[$1>>2]>>2],$1+8|0);if($5){break label$2}$5=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[HEAP32[$1>>2]+4>>2],$1+4|0);if($5){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,HEAP32[HEAP32[$1>>2]>>2]);break label$2}HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;label$4:{$4=HEAP32[$1>>2];$3=HEAP32[$4+12>>2];if(!$3){break label$4}$5=0;label$5:{while(1){if($3>>>0>$6>>>0){$3=$6<<2;$4=HEAP32[$3+HEAP32[$4+8>>2]>>2];label$8:{if(!HEAPU8[$4|0]){break label$8}$3=$2+$3|0;$4=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,$4,$3);if($4){$5=$5?$5:$4;break label$8}$3=dmResource__GetPath_28dmResource__SResourceFactory__2c_20void_20const__2c_20unsigned_20long_20long__29($0,HEAP32[$3>>2],(($6<<3)+$1|0)+48|0);$5=$3?$3:$5}$4=HEAP32[$1>>2];if($6>>>0>6){break label$5}$6=$6+1|0;$3=HEAP32[$4+12>>2];if($6>>>0<$3>>>0){continue}break label$5}break}__assert_fail(57599,57649,25,57638);abort()}if(!$5){break label$4}dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,HEAP32[$4>>2]);dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,HEAP32[HEAP32[$1>>2]+4>>2]);$1=HEAP32[$2>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+4>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+8>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+12>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+16>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+20>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+24>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+28>>2];if(!$1){break label$2}dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1);break label$2}$0=HEAP32[$2+4>>2];HEAP32[$1+12>>2]=HEAP32[$2>>2];HEAP32[$1+16>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+20>>2]=HEAP32[$2+8>>2];HEAP32[$1+24>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+36>>2]=HEAP32[$2+24>>2];HEAP32[$1+40>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+28>>2]=HEAP32[$2+16>>2];HEAP32[$1+32>>2]=$0;$0=$1;if(HEAP32[HEAP32[$1+4>>2]+4>>2]){dmGameSystem__BuildVertices_28dmGameSystem__MeshResource__29($1);$4=HEAP32[$1>>2]}HEAP32[$0+136>>2]=dmHashString64(HEAP32[$4+20>>2]);HEAP32[$0+140>>2]=i64toi32_i32$HIGH_BITS;HEAP32[$1+152>>2]=dmHashString64(HEAP32[HEAP32[$1>>2]+24>>2]);HEAP32[$1+156>>2]=i64toi32_i32$HIGH_BITS;$7=HEAP32[$1+4>>2];$4=HEAP32[$7>>2];$8=HEAP32[$4+4>>2];if(!$8){$5=0;break label$2}$5=$1+144|0;$10=$1+160|0;$6=0;label$20:{while(1){$9=Math_imul($6,52);$0=dmHashString64(HEAP32[$9+HEAP32[$4>>2]>>2]);$3=i64toi32_i32$HIGH_BITS;label$22:{label$23:{if(($0|0)==HEAP32[$1+136>>2]&($3|0)==HEAP32[$1+140>>2]){$3=$5;$0=HEAP32[$7>>2];if(HEAPU32[$0+4>>2]>$6>>>0){break label$23}break label$1}if(HEAP32[$1+152>>2]!=($0|0)|HEAP32[$1+156>>2]!=($3|0)){break label$22}$3=$10;$0=HEAP32[$7>>2];if(HEAPU32[$0+4>>2]<=$6>>>0){break label$20}}HEAP32[$3>>2]=HEAP32[(HEAP32[$0>>2]+$9|0)+4>>2]}$6=$6+1|0;if(($8|0)==($6|0)){$5=0;break label$2}$4=HEAP32[$7>>2];if(HEAPU32[$4+4>>2]>$6>>>0){continue}break}break label$1}break label$1}global$0=$2+32|0;return $5}__assert_fail(57599,57611,80,57638);abort()}function mbedtls_sha512_finish_ret($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$2=HEAP32[$0+4>>2];$5=HEAP32[$0>>2];$4=$5&127;$6=$0+80|0;$3=$4+$6|0;HEAP8[$3|0]=128;$3=$3+1|0;label$1:{if($4>>>0<=111){memset($3,0,111-$4|0);break label$1}memset($3,0,$4^127);mbedtls_internal_sha512_process($0,$6);memset($6,0,112);$5=HEAP32[$0>>2];$2=HEAP32[$0+4>>2]}HEAP8[$0+206|0]=($2&31)<<27|$5>>>5;HEAP8[$0+205|0]=($2&8191)<<19|$5>>>13;HEAP8[$0+204|0]=($2&2097151)<<11|$5>>>21;HEAP8[$0+203|0]=($2&536870911)<<3|$5>>>29;HEAP8[$0+202|0]=$2>>>5;HEAP8[$0+201|0]=$2>>>13;HEAP8[$0+200|0]=$2>>>21;HEAP8[$0+207|0]=$5<<3;$3=HEAP32[$0+12>>2];$4=$3;$5=($3&31)<<27;$3=HEAP32[$0+8>>2];HEAP8[$0+198|0]=$5|$3>>>5;HEAP8[$0+197|0]=($4&8191)<<19|$3>>>13;HEAP8[$0+196|0]=($4&2097151)<<11|$3>>>21;HEAP8[$0+195|0]=($4&536870911)<<3|$3>>>29;HEAP8[$0+194|0]=$4>>>5;HEAP8[$0+193|0]=$4>>>13;HEAP8[$0+192|0]=$4>>>21;HEAP8[$0+199|0]=$3<<3|$2>>>29;mbedtls_internal_sha512_process($0,$6);HEAP8[$1|0]=HEAPU8[$0+23|0];HEAP8[$1+1|0]=HEAPU16[$0+22>>1];HEAP8[$1+2|0]=HEAP32[$0+20>>2]>>>8;HEAP8[$1+3|0]=HEAP32[$0+20>>2];HEAP8[$1+4|0]=(HEAP32[$0+20>>2]&16777215)<<8|HEAP32[$0+16>>2]>>>24;HEAP8[$1+5|0]=(HEAP32[$0+20>>2]&65535)<<16|HEAP32[$0+16>>2]>>>16;HEAP8[$1+6|0]=(HEAP32[$0+20>>2]&255)<<24|HEAP32[$0+16>>2]>>>8;HEAP8[$1+7|0]=HEAP32[$0+16>>2];HEAP8[$1+8|0]=HEAPU8[$0+31|0];HEAP8[$1+9|0]=HEAPU16[$0+30>>1];HEAP8[$1+10|0]=HEAP32[$0+28>>2]>>>8;HEAP8[$1+11|0]=HEAP32[$0+28>>2];HEAP8[$1+12|0]=(HEAP32[$0+28>>2]&16777215)<<8|HEAP32[$0+24>>2]>>>24;HEAP8[$1+13|0]=(HEAP32[$0+28>>2]&65535)<<16|HEAP32[$0+24>>2]>>>16;HEAP8[$1+14|0]=(HEAP32[$0+28>>2]&255)<<24|HEAP32[$0+24>>2]>>>8;HEAP8[$1+15|0]=HEAP32[$0+24>>2];HEAP8[$1+16|0]=HEAPU8[$0+39|0];HEAP8[$1+17|0]=HEAPU16[$0+38>>1];HEAP8[$1+18|0]=HEAP32[$0+36>>2]>>>8;HEAP8[$1+19|0]=HEAP32[$0+36>>2];HEAP8[$1+20|0]=(HEAP32[$0+36>>2]&16777215)<<8|HEAP32[$0+32>>2]>>>24;HEAP8[$1+21|0]=(HEAP32[$0+36>>2]&65535)<<16|HEAP32[$0+32>>2]>>>16;HEAP8[$1+22|0]=(HEAP32[$0+36>>2]&255)<<24|HEAP32[$0+32>>2]>>>8;HEAP8[$1+23|0]=HEAP32[$0+32>>2];HEAP8[$1+24|0]=HEAPU8[$0+47|0];HEAP8[$1+25|0]=HEAPU16[$0+46>>1];HEAP8[$1+26|0]=HEAP32[$0+44>>2]>>>8;HEAP8[$1+27|0]=HEAP32[$0+44>>2];HEAP8[$1+28|0]=(HEAP32[$0+44>>2]&16777215)<<8|HEAP32[$0+40>>2]>>>24;HEAP8[$1+29|0]=(HEAP32[$0+44>>2]&65535)<<16|HEAP32[$0+40>>2]>>>16;HEAP8[$1+30|0]=(HEAP32[$0+44>>2]&255)<<24|HEAP32[$0+40>>2]>>>8;HEAP8[$1+31|0]=HEAP32[$0+40>>2];HEAP8[$1+32|0]=HEAPU8[$0+55|0];HEAP8[$1+33|0]=HEAPU16[$0+54>>1];HEAP8[$1+34|0]=HEAP32[$0+52>>2]>>>8;HEAP8[$1+35|0]=HEAP32[$0+52>>2];HEAP8[$1+36|0]=(HEAP32[$0+52>>2]&16777215)<<8|HEAP32[$0+48>>2]>>>24;HEAP8[$1+37|0]=(HEAP32[$0+52>>2]&65535)<<16|HEAP32[$0+48>>2]>>>16;HEAP8[$1+38|0]=(HEAP32[$0+52>>2]&255)<<24|HEAP32[$0+48>>2]>>>8;HEAP8[$1+39|0]=HEAP32[$0+48>>2];HEAP8[$1+40|0]=HEAPU8[$0+63|0];HEAP8[$1+41|0]=HEAPU16[$0+62>>1];HEAP8[$1+42|0]=HEAP32[$0+60>>2]>>>8;HEAP8[$1+43|0]=HEAP32[$0+60>>2];HEAP8[$1+44|0]=(HEAP32[$0+60>>2]&16777215)<<8|HEAP32[$0+56>>2]>>>24;HEAP8[$1+45|0]=(HEAP32[$0+60>>2]&65535)<<16|HEAP32[$0+56>>2]>>>16;HEAP8[$1+46|0]=(HEAP32[$0+60>>2]&255)<<24|HEAP32[$0+56>>2]>>>8;HEAP8[$1+47|0]=HEAP32[$0+56>>2];if(!HEAP32[$0+208>>2]){HEAP8[$1+48|0]=HEAPU8[$0+71|0];HEAP8[$1+49|0]=HEAPU16[$0+70>>1];$2=$0- -64|0;$3=HEAP32[$2+4>>2];HEAP8[$1+50|0]=$3>>>8;HEAP8[$1+51|0]=HEAP32[$0+68>>2];HEAP8[$1+52|0]=(HEAP32[$2+4>>2]&16777215)<<8|HEAP32[$2>>2]>>>24;HEAP8[$1+53|0]=(HEAP32[$2+4>>2]&65535)<<16|HEAP32[$2>>2]>>>16;HEAP8[$1+54|0]=(HEAP32[$2+4>>2]&255)<<24|HEAP32[$2>>2]>>>8;HEAP8[$1+55|0]=HEAP32[$2>>2];HEAP8[$1+56|0]=HEAPU8[$0+79|0];HEAP8[$1+57|0]=HEAPU16[$0+78>>1];HEAP8[$1+58|0]=HEAP32[$0+76>>2]>>>8;HEAP8[$1+59|0]=HEAP32[$0+76>>2];HEAP8[$1+60|0]=(HEAP32[$0+76>>2]&16777215)<<8|HEAP32[$0+72>>2]>>>24;HEAP8[$1+61|0]=(HEAP32[$0+76>>2]&65535)<<16|HEAP32[$0+72>>2]>>>16;HEAP8[$1+62|0]=(HEAP32[$0+76>>2]&255)<<24|HEAP32[$0+72>>2]>>>8;HEAP8[$1+63|0]=HEAP32[$0+72>>2]}return 0}function dmGameSystem__CompMeshRender_28dmGameObject__ComponentsRenderParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$1=global$0-80|0;global$0=$1;$5=HEAP32[$0+4>>2];$6=HEAP32[HEAP32[$0+8>>2]>>2];label$1:{if(HEAP8[585204]&1){break label$1}if(!__cxa_guard_acquire(585204)){break label$1}if(HEAPU8[1130703]){$0=dmProfile__AllocateScope_28char_20const__29(44626)}else{$0=-1}HEAP32[146300]=$0;__cxa_guard_release(585204)}label$3:{if(HEAP8[585212]&1){break label$3}if(!__cxa_guard_acquire(585212)){break label$3}if(HEAPU8[1130703]){$0=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(44631,16)}else{$0=0}HEAP32[146302]=$0;__cxa_guard_release(585212)}$0=HEAP32[146300];label$5:{if(($0|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($1- -64|0,$0,44631,HEAP32[146302]);break label$5}HEAP32[$1+64>>2]=0}label$7:{label$8:{$4=HEAP32[$5+40>>2];$0=HEAP32[$5+36>>2];$2=$4-$0|0;if(!$2){break label$8}if(($0|0)!=($4|0)){$4=$2>>2;$3=$4>>>0>1?$4:1;$2=0;while(1){$0=HEAP32[($2<<2)+$0>>2];label$11:{if((HEAPU8[$0+1002|0]&3)!=3){break label$11}$4=dmGameObject__GetWorldMatrix_28dmGameObject__Instance__29(HEAP32[$0>>2]);if((HEAPU8[HEAP32[$0>>2]+137|0]&2)>>>1){Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($1,$4,$0+16|0);HEAP32[$0+80>>2]=HEAP32[$1>>2];HEAP32[$0+84>>2]=HEAP32[$1+4>>2];HEAP32[$0+88>>2]=HEAP32[$1+8>>2];HEAP32[$0+92>>2]=HEAP32[$1+12>>2];HEAP32[$0+96>>2]=HEAP32[$1+16>>2];HEAP32[$0+100>>2]=HEAP32[$1+20>>2];HEAP32[$0+104>>2]=HEAP32[$1+24>>2];HEAP32[$0+108>>2]=HEAP32[$1+28>>2];HEAP32[$0+112>>2]=HEAP32[$1+32>>2];HEAP32[$0+116>>2]=HEAP32[$1+36>>2];HEAP32[$0+120>>2]=HEAP32[$1+40>>2];HEAP32[$0+124>>2]=HEAP32[$1+44>>2];HEAP32[$0+128>>2]=HEAP32[$1+48>>2];HEAP32[$0+132>>2]=HEAP32[$1+52>>2];HEAP32[$0+136>>2]=HEAP32[$1+56>>2];HEAP32[$0+140>>2]=HEAP32[$1+60>>2];break label$11}dmTransform__MulNoScaleZ_28Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__29($1,$4,$0+16|0);HEAP32[$0+80>>2]=HEAP32[$1>>2];HEAP32[$0+84>>2]=HEAP32[$1+4>>2];HEAP32[$0+88>>2]=HEAP32[$1+8>>2];HEAP32[$0+92>>2]=HEAP32[$1+12>>2];HEAP32[$0+96>>2]=HEAP32[$1+16>>2];HEAP32[$0+100>>2]=HEAP32[$1+20>>2];HEAP32[$0+104>>2]=HEAP32[$1+24>>2];HEAP32[$0+108>>2]=HEAP32[$1+28>>2];HEAP32[$0+112>>2]=HEAP32[$1+32>>2];HEAP32[$0+116>>2]=HEAP32[$1+36>>2];HEAP32[$0+120>>2]=HEAP32[$1+40>>2];HEAP32[$0+124>>2]=HEAP32[$1+44>>2];HEAP32[$0+128>>2]=HEAP32[$1+48>>2];HEAP32[$0+132>>2]=HEAP32[$1+52>>2];HEAP32[$0+136>>2]=HEAP32[$1+56>>2];HEAP32[$0+140>>2]=HEAP32[$1+60>>2]}$2=$2+1|0;if(($3|0)==($2|0)){break label$8}$0=HEAP32[$5+36>>2];if(HEAP32[$5+40>>2]-$0>>2>>>0>$2>>>0){continue}break}}break label$7}if(HEAP32[$1+64>>2]){dmProfile__ProfileScope__EndScope_28_29($1- -64|0)}$3=HEAP32[$5+40>>2]-HEAP32[$5+36>>2]|0;$2=$3>>2;$4=dmRender__RenderListAlloc_28dmRender__RenderContext__2c_20unsigned_20int_29($6,$2);$7=dmRender__RenderListMakeDispatch_28dmRender__RenderContext__2c_20void_20_28__29_28dmRender__RenderListDispatchParams_20const__29_2c_20void__29($6,466,$5);$0=$4;label$14:{if($3){$8=$2>>>0>1?$2:1;$7=$7<<6;$2=0;while(1){$3=HEAP32[$5+36>>2];if(HEAP32[$5+40>>2]-$3>>2>>>0<=$2>>>0){break label$14}$3=HEAP32[$3+($2<<2)>>2];if(HEAP8[$3+1002|0]&1){$9=HEAP32[$3+128>>2];$10=HEAP32[$3+132>>2];$11=HEAP32[$3+136>>2];HEAP32[$0+32>>2]=$3;HEAP32[$0+36>>2]=0;HEAP32[$0+8>>2]=$11;HEAP32[$0>>2]=$9;HEAP32[$0+4>>2]=$10;HEAP32[$0+20>>2]=HEAP32[$3+144>>2];HEAP32[$0+24>>2]=HEAP32[HEAP32[HEAP32[$3+944>>2]+8>>2]+80>>2];HEAP16[$0+40>>1]=$7|HEAPU16[$0+40>>1]&49152|16;$0=$0+48|0}$2=$2+1|0;if(($8|0)!=($2|0)){continue}break}}dmRender__RenderListSubmit_28dmRender__RenderContext__2c_20dmRender__RenderListEntry__2c_20dmRender__RenderListEntry__29($6,$4,$0);global$0=$1+80|0;return 0}}__assert_fail(45474,44749,430,45485);abort()}function bool_20std____2____insertion_sort_incomplete_dmGameObject__ComponentTypeSortPred__2c_20unsigned_20short___28unsigned_20short__2c_20unsigned_20short__2c_20dmGameObject__ComponentTypeSortPred__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$8=1;label$1:{$3=$1-$0>>1;label$2:{if($3>>>0<=5){label$4:{switch($3-2|0){case 0:$2=HEAP32[$2>>2]+8|0;$1=$1+ -2|0;$3=HEAPU16[$1>>1];$4=HEAPU16[$0>>1];if(HEAPU16[($2+Math_imul($3,96)|0)+92>>1]>=HEAPU16[($2+Math_imul($4,96)|0)+92>>1]){break label$2}HEAP16[$0>>1]=$3;HEAP16[$1>>1]=$4;break label$1;case 1:$4=HEAP32[$2>>2];$5=$4+8|0;$1=$1+ -2|0;$3=HEAPU16[$1>>1];$9=HEAPU16[($5+Math_imul($3,96)|0)+92>>1];$6=HEAPU16[$0+2>>1];$7=HEAPU16[($5+Math_imul($6,96)|0)+92>>1];$2=HEAPU16[$0>>1];$5=$5+Math_imul($2,96)|0;if($7>>>0>=HEAPU16[$5+92>>1]){if($9>>>0>=$7>>>0){break label$2}HEAP16[$0+2>>1]=$3;HEAP16[$1>>1]=$6;$2=$4+8|0;$1=HEAPU16[$0+2>>1];$3=HEAPU16[$0>>1];if(HEAPU16[($2+Math_imul($1,96)|0)+92>>1]>=HEAPU16[($2+Math_imul($3,96)|0)+92>>1]){break label$2}HEAP16[$0+2>>1]=$3;HEAP16[$0>>1]=$1;break label$1}if($9>>>0<$7>>>0){HEAP16[$0>>1]=$3;HEAP16[$1>>1]=$2;break label$1}HEAP16[$0+2>>1]=$2;HEAP16[$0>>1]=$6;$3=HEAPU16[$1>>1];if(HEAPU16[($4+Math_imul($3,96)|0)+100>>1]>=HEAPU16[$5+92>>1]){break label$2}HEAP16[$0+2>>1]=$3;HEAP16[$1>>1]=$2;break label$1;case 2:unsigned_20int_20std____2____sort4_dmGameObject__ComponentTypeSortPred__2c_20unsigned_20short___28unsigned_20short__2c_20unsigned_20short__2c_20unsigned_20short__2c_20unsigned_20short__2c_20dmGameObject__ComponentTypeSortPred__29($0,$0+2|0,$0+4|0,$1+ -2|0,$2);break label$1;case 3:break label$4;default:break label$2}}unsigned_20int_20std____2____sort4_dmGameObject__ComponentTypeSortPred__2c_20unsigned_20short___28unsigned_20short__2c_20unsigned_20short__2c_20unsigned_20short__2c_20unsigned_20short__2c_20dmGameObject__ComponentTypeSortPred__29($0,$0+2|0,$0+4|0,$0+6|0,$2);$4=$1+ -2|0;$5=HEAPU16[$4>>1];$3=HEAP32[$2>>2];$1=$3+8|0;$2=HEAPU16[$0+6>>1];if(HEAPU16[(Math_imul($5,96)+$1|0)+92>>1]>=HEAPU16[($1+Math_imul($2,96)|0)+92>>1]){break label$2}HEAP16[$0+6>>1]=$5;HEAP16[$4>>1]=$2;$2=HEAPU16[$0+6>>1];$4=$1+Math_imul($2,96)|0;$5=HEAPU16[$0+4>>1];if(HEAPU16[$4+92>>1]>=HEAPU16[($1+Math_imul($5,96)|0)+92>>1]){break label$2}HEAP16[$0+4>>1]=$2;HEAP16[$0+6>>1]=$5;$1=HEAPU16[$0+2>>1];if(HEAPU16[$4+92>>1]>=HEAPU16[($3+Math_imul($1,96)|0)+100>>1]){break label$2}HEAP16[$0+4>>1]=$1;HEAP16[$0+2>>1]=$2;$1=HEAPU16[$0>>1];if(HEAPU16[$4+92>>1]>=HEAPU16[($3+Math_imul($1,96)|0)+100>>1]){break label$2}HEAP16[$0+2>>1]=$1;HEAP16[$0>>1]=$2;break label$1}$9=HEAP32[$2>>2];$5=$9+8|0;$3=HEAPU16[$0+4>>1];$2=$5+Math_imul($3,96)|0;$6=$2;$7=HEAPU16[$2+92>>1];$2=HEAPU16[$0+2>>1];$10=HEAPU16[($5+Math_imul($2,96)|0)+92>>1];$4=HEAPU16[$0>>1];$5=$5+Math_imul($4,96)|0;label$10:{if($10>>>0>=HEAPU16[$5+92>>1]){if($7>>>0>=$10>>>0){$2=$3;break label$10}HEAP16[$0+4>>1]=$2;HEAP16[$0+2>>1]=$3;if(HEAPU16[$6+92>>1]>=HEAPU16[$5+92>>1]){break label$10}HEAP16[$0+2>>1]=$4;HEAP16[$0>>1]=$3;break label$10}label$13:{if($7>>>0<$10>>>0){HEAP16[$0+4>>1]=$4;HEAP16[$0>>1]=$3;break label$13}HEAP16[$0+2>>1]=$4;HEAP16[$0>>1]=$2;if(HEAPU16[$6+92>>1]>=HEAPU16[$5+92>>1]){$2=$3;break label$10}HEAP16[$0+4>>1]=$4;HEAP16[$0+2>>1]=$3}$2=$4}$3=$0+6|0;if(($3|0)==($1|0)){break label$2}$8=$0+4|0;$6=0;$7=$9+8|0;while(1){label$17:{$4=$3;$10=HEAPU16[$3>>1];$11=$7+Math_imul($10,96)|0;if(HEAPU16[$11+92>>1]>1]){$5=$4;while(1){label$20:{HEAP16[$5>>1]=$2;$3=$8;if(($3|0)==($0|0)){$3=$0;break label$20}$5=$3;$8=$3+ -2|0;$2=HEAPU16[$8>>1];if(HEAPU16[$11+92>>1]>1]){continue}}break}HEAP16[$3>>1]=$10;$6=$6+1|0;if(($6|0)==8){break label$17}}$3=$4+2|0;if(($3|0)==($1|0)){break label$1}$2=HEAPU16[$4>>1];$8=$4;continue}break}$8=($4+2|0)==($1|0)}return $8}return 1}function b2GridShape__GetEdgeShapesForCell_28unsigned_20int_2c_20b2EdgeShape__2c_20unsigned_20int_2c_20unsigned_20int_29_20const($0,$1,$2,$3){var $4=0,$5=Math_fround(0),$6=0,$7=0,$8=0,$9=0,$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=0,$20=0,$21=0,$22=0,$23=0,$24=Math_fround(0),$25=Math_fround(0),$26=0,$27=0;$11=global$0-256|0;global$0=$11;if(HEAPU16[(HEAP32[HEAP32[$0+40>>2]+8>>2]+(HEAP32[HEAP32[$0+32>>2]+($1<<2)>>2]<<2)|0)+2>>1]<17){$18=b2GridShape__GetCellVertices_28unsigned_20int_2c_20b2Vec2__29_20const($0,$1,$11);if($18){$6=$18+ -1|0;$27=$6>>>0<15?$18:16;$4=2;$14=1;while(1){$19=$14;$14=$4;if($3>>>$20&1){$7=($20<<3)+$11|0;$8=HEAP32[$7+4>>2];$9=Math_imul($21,60)+$2|0;HEAP32[$9+24>>2]=HEAP32[$7>>2];HEAP32[$9+28>>2]=$8;$22=($19<<3)+$11|0;$8=$22;$4=HEAP32[$8+4>>2];$8=HEAP32[$8>>2];HEAP16[$9+56>>1]=0;HEAP32[$9+32>>2]=$8;HEAP32[$9+36>>2]=$4;HEAP8[$9+56|0]=1;$4=($6<<3)+$11|0;label$5:{if($3>>>$6&1){$8=HEAP32[$4+4>>2];HEAP32[$9+40>>2]=HEAP32[$4>>2];HEAP32[$9+44>>2]=$8;break label$5}$23=$9;$24=HEAPF32[$7+4>>2];$15=HEAPF32[$4+4>>2];$25=Math_fround($24-$15);$12=Math_fround($25*$25);$13=HEAPF32[$7>>2];$16=HEAPF32[$4>>2];$10=Math_fround($13-$16);$5=Math_fround($10*$10);$4=$12==($12>$5?$12:$5);$7=(($4?$25>=Math_fround(0)?1:-1:0)+$1|0)+Math_imul(HEAP32[$0+56>>2],$4?0:$10<=Math_fround(0)?1:-1)|0;$6=HEAP32[HEAP32[$0+32>>2]+($7<<2)>>2];label$7:{if(($6|0)==-1){$5=Math_fround($15-$24);$6=(wasm2js_scratch_store_f32(Math_fround($5+$5)),wasm2js_scratch_load_i32(0));$5=Math_fround($16-$13);$4=(wasm2js_scratch_store_f32(Math_fround($5+$5)),wasm2js_scratch_load_i32(0));break label$7}$4=HEAP32[HEAP32[$0+40>>2]+8>>2];$8=b2GridShape__GetCellVertices_28unsigned_20int_2c_20b2Vec2__29_20const($0,$7,$11+128|0);$17=HEAPU16[($4+($6<<2)|0)+2>>1];label$9:{if(!$17){$4=0;break label$9}$10=Math_fround(3.4028234663852886e+38);$6=0;$4=0;while(1){$7=($11+128|0)+($6<<3)|0;$5=Math_fround(HEAPF32[$7>>2]-$13);$12=Math_fround($5*$5);$5=Math_fround(HEAPF32[$7+4>>2]-$24);$5=Math_fround($12+Math_fround($5*$5));$7=$5<$10;$10=$7?$5:$10;$4=$7?$6:$4;$6=$6+1|0;if(($17|0)!=($6|0)){continue}break}}$4=($11+128|0)+((($4+$8|0)+ -1>>>0)%($8>>>0)<<3)|0;$6=HEAP32[$4+4>>2];$4=HEAP32[$4>>2]}HEAP32[$23+40>>2]=$4;HEAP32[$9+44>>2]=$6}HEAP8[$9+57|0]=1;label$12:{if($3>>>$19&1){$4=($14<<3)+$11|0;$8=HEAP32[$4+4>>2];HEAP32[$9+48>>2]=HEAP32[$4>>2];HEAP32[$9+52>>2]=$8;break label$12}$23=$9;$4=($14<<3)+$11|0;$15=HEAPF32[$22+4>>2];$12=Math_fround(HEAPF32[$4+4>>2]-$15);$10=Math_fround($12*$12);$16=HEAPF32[$22>>2];$13=Math_fround(HEAPF32[$4>>2]-$16);$5=Math_fround($13*$13);$4=$10==($10>$5?$10:$5);$7=(($4?$12>=Math_fround(0)?1:-1:0)+$1|0)+Math_imul(HEAP32[$0+56>>2],$4?0:$13<=Math_fround(0)?1:-1)|0;$6=HEAP32[HEAP32[$0+32>>2]+($7<<2)>>2];label$14:{if(($6|0)==-1){$6=(wasm2js_scratch_store_f32(Math_fround($12+$12)),wasm2js_scratch_load_i32(0));$4=(wasm2js_scratch_store_f32(Math_fround($13+$13)),wasm2js_scratch_load_i32(0));break label$14}$4=HEAP32[HEAP32[$0+40>>2]+8>>2];$8=b2GridShape__GetCellVertices_28unsigned_20int_2c_20b2Vec2__29_20const($0,$7,$11+128|0);$17=HEAPU16[($4+($6<<2)|0)+2>>1];label$16:{if(!$17){$4=0;break label$16}$10=Math_fround(3.4028234663852886e+38);$6=0;$4=0;while(1){$7=($11+128|0)+($6<<3)|0;$5=Math_fround(HEAPF32[$7>>2]-$16);$12=Math_fround($5*$5);$5=Math_fround(HEAPF32[$7+4>>2]-$15);$5=Math_fround($12+Math_fround($5*$5));$7=$5<$10;$10=$7?$5:$10;$4=$7?$6:$4;$6=$6+1|0;if(($17|0)!=($6|0)){continue}break}}$4=($11+128|0)+((($4+$8|0)+1>>>0)%($8>>>0)<<3)|0;$6=HEAP32[$4+4>>2];$4=HEAP32[$4>>2]}HEAP32[$23+48>>2]=$4;HEAP32[$9+52>>2]=$6}$21=$21+1|0}$4=($14+1>>>0)%($18>>>0)|0;$6=$20;$20=$19;$26=$26+1|0;if(($26|0)!=($27|0)){continue}break}}global$0=$11+256|0;return $21}__assert_fail(88193,88135,258,88251);abort()}function b2CollidePolygonAndCircle_28b2Manifold__2c_20b2PolygonShape_20const__2c_20b2Transform_20const__2c_20b2CircleShape_20const__2c_20b2Transform_20const__29($0,$1,$2,$3,$4){var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=0,$18=0;HEAP32[$0+68>>2]=0;$5=HEAPF32[$2+12>>2];$6=HEAPF32[$3+24>>2];$8=HEAPF32[$4+8>>2];$12=HEAPF32[$4+12>>2];$11=HEAPF32[$3+28>>2];$7=Math_fround(Math_fround(Math_fround(Math_fround($6*$8)+Math_fround($12*$11))+HEAPF32[$4+4>>2])-HEAPF32[$2+4>>2]);$6=Math_fround(Math_fround(HEAPF32[$4>>2]+Math_fround(Math_fround($12*$6)-Math_fround($8*$11)))-HEAPF32[$2>>2]);$8=HEAPF32[$2+8>>2];$14=Math_fround(Math_fround($5*$7)-Math_fround($6*$8));$15=Math_fround(Math_fround($6*$5)+Math_fround($7*$8));$11=Math_fround(HEAPF32[$1+8>>2]+HEAPF32[$3+8>>2]);$7=Math_fround(-3.4028234663852886e+38);label$1:{$13=HEAP32[$1+416>>2];label$2:{label$3:{if(($13|0)<1){$2=0;break label$3}$2=0;$4=0;while(1){$10=($4<<3)+$1|0;$5=Math_fround(Math_fround(Math_fround($15-HEAPF32[$10+160>>2])*HEAPF32[$10+288>>2])+Math_fround(Math_fround($14-HEAPF32[$10+164>>2])*HEAPF32[$10+292>>2]));if($5>$11){break label$2}$10=$5>$7;$7=$10?$5:$7;$2=$10?$4:$2;$4=$4+1|0;if(($13|0)!=($4|0)){continue}break}}$10=$2<<3;$16=$1+160|0;$4=$10+$16|0;$8=HEAPF32[$4+4>>2];$17=HEAP32[$4+4>>2];$5=HEAPF32[$4>>2];$18=HEAP32[$4>>2];$4=$2+1|0;$4=$16+((($4|0)<($13|0)?$4:0)<<3)|0;$12=HEAPF32[$4+4>>2];$13=HEAP32[$4+4>>2];$6=HEAPF32[$4>>2];$4=HEAP32[$4>>2];if(!!($7>2]=1;HEAP32[$0+68>>2]=1;$1=$1+$10|0;$2=HEAP32[$1+292>>2];$1=HEAP32[$1+288>>2];HEAPF32[$0+60>>2]=Math_fround($8+$12)*Math_fround(.5);HEAPF32[$0+56>>2]=Math_fround($5+$6)*Math_fround(.5);HEAP32[$0+48>>2]=$1;HEAP32[$0+52>>2]=$2;$1=HEAP32[$3+28>>2];$2=HEAP32[$3+24>>2];HEAP32[$0+16>>2]=0;HEAP32[$0>>2]=$2;HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-$7;return}$7=Math_fround($15-$5);$9=Math_fround($14-$8);if(!!(Math_fround(Math_fround($7*Math_fround($6-$5))+Math_fround($9*Math_fround($12-$8)))<=Math_fround(0))){$5=Math_fround(Math_fround($7*$7)+Math_fround($9*$9));if($5>Math_fround($11*$11)){break label$2}HEAP32[$0+64>>2]=1;HEAP32[$0+68>>2]=1;HEAPF32[$0+48>>2]=$7;HEAPF32[$0+52>>2]=$9;$5=Math_fround(Math_sqrt($5));if(!($5>2]=$9*$6;HEAPF32[$0+48>>2]=$7*$6}HEAP32[$0+56>>2]=$18;HEAP32[$0+60>>2]=$17;break label$1}$7=Math_fround($15-$6);$9=Math_fround($14-$12);if(!!(Math_fround(Math_fround($7*Math_fround($5-$6))+Math_fround($9*Math_fround($8-$12)))<=Math_fround(0))){$5=Math_fround(Math_fround($7*$7)+Math_fround($9*$9));if($5>Math_fround($11*$11)){break label$2}HEAP32[$0+64>>2]=1;HEAP32[$0+68>>2]=1;HEAPF32[$0+48>>2]=$7;HEAPF32[$0+52>>2]=$9;$5=Math_fround(Math_sqrt($5));if(!($5>2]=$9*$6;HEAPF32[$0+48>>2]=$7*$6}HEAP32[$0+56>>2]=$4;HEAP32[$0+60>>2]=$13;break label$1}$5=Math_fround(Math_fround($5+$6)*Math_fround(.5));$1=($2<<3)+$1|0;$6=Math_fround(Math_fround($8+$12)*Math_fround(.5));$8=Math_fround(Math_fround(Math_fround($15-$5)*HEAPF32[$1+288>>2])+Math_fround(Math_fround($14-$6)*HEAPF32[$1+292>>2]));if($8>$11){break label$2}HEAP32[$0+64>>2]=1;HEAP32[$0+68>>2]=1;$2=HEAP32[$1+292>>2];$1=HEAP32[$1+288>>2];HEAPF32[$0+60>>2]=$6;HEAPF32[$0+56>>2]=$5;HEAP32[$0+48>>2]=$1;HEAP32[$0+52>>2]=$2;$1=HEAP32[$3+28>>2];$2=HEAP32[$3+24>>2];HEAP32[$0+16>>2]=0;HEAP32[$0>>2]=$2;HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-$8}return}$1=HEAP32[$3+28>>2];$2=HEAP32[$3+24>>2];HEAP32[$0+16>>2]=0;HEAP32[$0>>2]=$2;HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-$5}function dmParticle__ApplyVortex_28dmArray_dmParticle__Particle___2c_20dmParticle__Property__2c_20Vectormath__Aos__Point3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20float_2c_20float_2c_20float_29($0,$1,$2,$3,$4,$5,$6){var $7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0);$10=HEAPF32[$3>>2];$7=HEAPF32[$3+12>>2];$9=HEAPF32[$3+4>>2];$8=HEAPF32[$3+8>>2];$11=Math_fround($5*Math_fround(64));label$1:{if($11=Math_fround(0)){$3=~~$11>>>0;break label$1}$3=0}$17=HEAP32[$0>>2];$18=HEAP32[$0+4>>2]-$17|0;$0=($18|0)/160|0;if($18){$12=Math_fround($7*Math_fround(-0));$13=Math_fround($10*Math_fround(-0));$11=Math_fround(Math_fround($12-$8)-$13);$14=Math_fround($8*Math_fround(-0));$15=Math_fround($9*Math_fround(-0));$16=Math_fround($14+Math_fround($15-$10));$12=Math_fround(Math_fround($12+$13)+$9);$13=Math_fround(Math_fround($15-$7)-$14);$19=Math_fround(Math_fround($10*$11)+Math_fround(Math_fround(Math_fround($8*$16)+Math_fround($7*$12))-Math_fround($9*$13)));$20=Math_fround(Math_fround($8*$13)+Math_fround(Math_fround(Math_fround($7*$11)+Math_fround($9*$16))-Math_fround($10*$12)));$21=Math_fround(Math_fround($9*$12)+Math_fround(Math_fround(Math_fround($7*$13)+Math_fround($10*$16))-Math_fround($8*$11)));$11=Math_fround($8*Math_fround(0));$16=Math_fround($7*Math_fround(0));$12=Math_fround(Math_fround($11+$16)-$10);$14=Math_fround($9*Math_fround(0));$15=Math_fround($10*Math_fround(0));$13=Math_fround($8+Math_fround($14+$15));$14=Math_fround(Math_fround($7+$15)-$14);$15=Math_fround(Math_fround($16+$9)-$11);$11=Math_fround(Math_fround($10*$12)+Math_fround(Math_fround(Math_fround($8*$13)+Math_fround($7*$14))-Math_fround($9*$15)));$16=Math_fround(Math_fround($8*$15)+Math_fround(Math_fround(Math_fround($7*$12)+Math_fround($9*$13))-Math_fround($10*$14)));$10=Math_fround(Math_fround($9*$14)+Math_fround(Math_fround(Math_fround($7*$15)+Math_fround($10*$13))-Math_fround($8*$12)));$3=Math_imul($3>>>0<63?$3:63,12)+$1|0;$12=Math_fround(Math_fround(Math_fround($5-HEAPF32[$3>>2])*HEAPF32[$3+8>>2])+HEAPF32[$3+4>>2]);$5=Math_fround($4*$6);$4=Math_fround(HEAPF32[$1+776>>2]*$4);$13=Math_fround($4*$4);$14=HEAPF32[$1+768>>2];$3=$0>>>0>1?$0:1;$15=HEAPF32[$2+8>>2];$22=HEAPF32[$2+4>>2];$23=HEAPF32[$2>>2];$0=0;while(1){$1=Math_imul($0,160)+$17|0;$7=Math_fround(HEAPF32[$1>>2]-$23);$9=Math_fround(HEAPF32[$1+4>>2]-$22);$6=Math_fround(HEAPF32[$1+8>>2]-$15);$4=Math_fround(Math_fround(Math_fround($10*$7)+Math_fround($16*$9))+Math_fround($11*$6));$6=Math_fround($6-Math_fround($11*$4));$7=Math_fround($7-Math_fround($10*$4));$4=Math_fround($9-Math_fround($16*$4));$9=Math_fround($13-Math_fround(Math_fround($6*$6)+Math_fround(Math_fround($7*$7)+Math_fround($4*$4))))>=Math_fround(0)?Math_fround($12+Math_fround($14*HEAPF32[$1+76>>2])):Math_fround(0);$8=Math_fround(Math_fround($10*$4)-Math_fround($16*$7));$4=Math_fround(Math_fround($16*$6)-Math_fround($11*$4));$6=Math_fround(Math_fround($11*$7)-Math_fround($10*$6));$2=Math_fround(Math_fround($8*$8)+Math_fround(Math_fround($4*$4)+Math_fround($6*$6)))<=Math_fround(0);$7=$2?$19:$8;$8=$2?$21:$4;$6=$2?$20:$6;$4=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround($7*$7)+Math_fround(Math_fround($8*$8)+Math_fround($6*$6))))));HEAPF32[$1+56>>2]=HEAPF32[$1+56>>2]+Math_fround($5*Math_fround($9*Math_fround($7*$4)));HEAPF32[$1+52>>2]=HEAPF32[$1+52>>2]+Math_fround($5*Math_fround($9*Math_fround($6*$4)));HEAPF32[$1+48>>2]=HEAPF32[$1+48>>2]+Math_fround($5*Math_fround($9*Math_fround($8*$4)));$0=$0+1|0;if(($3|0)!=($0|0)){continue}break}}}function dmRig__GetPoseTransform_28dmArray_dmRig__RigBone__20const__2c_20dmArray_dmTransform__Transform__20const__2c_20dmTransform__Transform_2c_20unsigned_20int_29($0,$1,$2,$3,$4){var $5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0);$5=global$0-48|0;global$0=$5;$14=HEAP32[$1>>2];if((HEAP32[$1+4>>2]-$14|0)/176>>>0>$4>>>0){label$2:{$14=HEAP32[($14+Math_imul($4,176)|0)+160>>2];label$3:{if(($14|0)==65535){HEAP32[$0>>2]=HEAP32[$3>>2];HEAP32[$0+4>>2]=HEAP32[$3+4>>2];HEAP32[$0+8>>2]=HEAP32[$3+8>>2];HEAP32[$0+12>>2]=HEAP32[$3+12>>2];HEAP32[$0+16>>2]=HEAP32[$3+16>>2];HEAP32[$0+20>>2]=HEAP32[$3+20>>2];HEAP32[$0+24>>2]=HEAP32[$3+24>>2];HEAP32[$0+32>>2]=HEAP32[$3+32>>2];HEAP32[$0+36>>2]=HEAP32[$3+36>>2];HEAP32[$0+40>>2]=HEAP32[$3+40>>2];break label$3}$4=HEAP32[$2>>2];if((HEAP32[$2+4>>2]-$4|0)/48>>>0<=$14>>>0){break label$2}$4=$4+Math_imul($14,48)|0;$25=HEAPF32[$4+16>>2];$26=HEAPF32[$4+20>>2];$27=HEAPF32[$4+24>>2];$28=HEAPF32[$3+20>>2];$29=HEAPF32[$3+24>>2];$6=HEAPF32[$4+8>>2];$10=HEAPF32[$4+4>>2];$11=HEAPF32[$4+12>>2];$12=HEAPF32[$4>>2];$17=HEAPF32[$3+36>>2];$15=HEAPF32[$4+36>>2];$18=HEAPF32[$3+40>>2];$16=HEAPF32[$4+40>>2];$30=HEAPF32[$3+16>>2];$7=HEAPF32[$3+8>>2];$8=HEAPF32[$3+4>>2];$9=HEAPF32[$3+12>>2];$13=HEAPF32[$3>>2];$19=HEAPF32[$4+32>>2];$20=Math_fround($19*HEAPF32[$3+32>>2]);HEAPF32[$3+32>>2]=$20;$18=Math_fround($16*$18);HEAPF32[$3+40>>2]=$18;$17=Math_fround($15*$17);HEAPF32[$3+36>>2]=$17;$21=Math_fround(Math_fround(Math_fround(Math_fround($11*$9)-Math_fround($12*$13))-Math_fround($10*$8))-Math_fround($6*$7));HEAPF32[$3+12>>2]=$21;$22=Math_fround(Math_fround(Math_fround($12*$8)+Math_fround(Math_fround($11*$7)+Math_fround($6*$9)))-Math_fround($10*$13));HEAPF32[$3+8>>2]=$22;$23=Math_fround(Math_fround(Math_fround($6*$13)+Math_fround(Math_fround($11*$8)+Math_fround($10*$9)))-Math_fround($12*$7));HEAPF32[$3+4>>2]=$23;$24=Math_fround(Math_fround(Math_fround($10*$7)+Math_fround(Math_fround($11*$13)+Math_fround($12*$9)))-Math_fround($6*$8));HEAPF32[$3>>2]=$24;$7=Math_fround($30*$19);$8=Math_fround($28*$15);$9=Math_fround($29*$16);$13=Math_fround(Math_fround(Math_fround($6*$7)+Math_fround($11*$8))-Math_fround($12*$9));$15=Math_fround(Math_fround($6*$9)+Math_fround(Math_fround($12*$7)+Math_fround($10*$8)));$16=Math_fround(Math_fround(Math_fround($12*$8)+Math_fround($11*$9))-Math_fround($10*$7));$7=Math_fround(Math_fround(Math_fround($11*$7)+Math_fround($10*$9))-Math_fround($6*$8));$8=Math_fround($27+Math_fround(Math_fround($12*$13)+Math_fround(Math_fround(Math_fround($6*$15)+Math_fround($11*$16))-Math_fround($10*$7))));HEAPF32[$3+24>>2]=$8;$9=Math_fround($26+Math_fround(Math_fround($6*$7)+Math_fround(Math_fround(Math_fround($11*$13)+Math_fround($10*$15))-Math_fround($12*$16))));HEAPF32[$3+20>>2]=$9;$6=Math_fround($25+Math_fround(Math_fround($10*$16)+Math_fround(Math_fround(Math_fround($12*$15)+Math_fround($11*$7))-Math_fround($6*$13))));HEAPF32[$3+16>>2]=$6;HEAPF32[$5+40>>2]=$18;HEAPF32[$5+36>>2]=$17;HEAPF32[$5+24>>2]=$8;HEAPF32[$5+20>>2]=$9;HEAPF32[$5+32>>2]=$20;HEAPF32[$5+16>>2]=$6;HEAPF32[$5+12>>2]=$21;HEAPF32[$5+8>>2]=$22;HEAPF32[$5+4>>2]=$23;HEAPF32[$5>>2]=$24;dmRig__GetPoseTransform_28dmArray_dmRig__RigBone__20const__2c_20dmArray_dmTransform__Transform__20const__2c_20dmTransform__Transform_2c_20unsigned_20int_29($0,$1,$2,$5,$14)}global$0=$5+48|0;return}}__assert_fail(133208,133219,437,133189);abort()}function dmRender__GetOptimalDisplayProfile_28dmRender__DisplayProfiles__2c_20unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20int_2c_20dmArray_unsigned_20long_20long__20const__29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(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=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=0;$6=global$0-304|0;global$0=$6;memset($6+40|0,0,264);dmSys__GetSystemInfo_28dmSys__SystemInfo__29($6+40|0);$10=HEAP32[24559];HEAP32[$6+24>>2]=HEAP32[24558];HEAP32[$6+28>>2]=$10;$10=HEAP32[24557];HEAP32[$6+16>>2]=HEAP32[24556];HEAP32[$6+20>>2]=$10;HEAP32[$6+8>>2]=0;HEAP32[$6+12>>2]=0;HEAP32[$6>>2]=0;HEAP32[$6+4>>2]=0;$19=HEAP32[$0>>2];$0=HEAP32[$0+4>>2];if(($19|0)!=($0|0)){$8=Math_fround($1>>>0);$9=Math_fround($2>>>0);$24=$2?Math_fround($8/$9):Math_fround(0);$25=Math_fround($8*$9);$26=Math_fround($3>>>0);$0=$0-$19>>4;$27=$0>>>0>1?$0:1;while(1){$10=($20<<4)+$19|0;label$3:{if($4){$5=HEAP32[$4>>2];$0=HEAP32[$4+4>>2]-$5|0;$11=$0>>3;label$5:{if(!$0){$0=0;break label$5}$14=HEAP32[$10>>2];$18=HEAP32[$10+4>>2];$0=0;while(1){$13=$5+($0<<3)|0;if(HEAP32[$13>>2]==($14|0)&HEAP32[$13+4>>2]==($18|0)){break label$5}$0=$0+1|0;if($0>>>0<$11>>>0){continue}break}}if(($0|0)==($11|0)){break label$3}}$14=HEAP32[$10+8>>2];if(!$14){break label$3}$18=HEAP32[$10+12>>2];$11=0;if(!$3){while(1){label$10:{label$11:{$5=Math_imul($11,20)+$18|0;$13=HEAP32[$5+12>>2];if(!$13){break label$11}$21=strlen($6+40|0);$22=HEAP32[$5+16>>2];$0=0;while(1){$15=HEAP32[$22+($0<<2)>>2];$16=strlen($15);if($16>>>0<=$21>>>0){if(!strncmp($15,$6+40|0,$16)){break label$11}}$0=$0+1|0;if(($13|0)!=($0|0)){continue}break}break label$10}$8=HEAPF32[$5>>2];$9=HEAPF32[$5+4>>2];$7=Math_fround(Math_fround(1)-Math_fround($25/Math_fround($8*$9)));$23=$7>=Math_fround(0)?$7:Math_fround(-$7);$7=Math_fround(Math_fround(1)-Math_fround($24/Math_fround($8/$9)));$12=+Math_fround($23+($7>=Math_fround(0)?$7:Math_fround(-$7)));if($9=Math_fround(0)){$0=~~$9>>>0}else{$0=0}$12=$12+0;$17=$12;if($8=Math_fround(0)){$5=~~$8>>>0}else{$5=0}$0=($5>>>0<=$0>>>0)<<3;$5=$0|$6+16;if(!($17>3])){break label$10}HEAPF64[$5>>3]=$12;$5=HEAP32[$10+4>>2];$0=$0|$6;HEAP32[$0>>2]=HEAP32[$10>>2];HEAP32[$0+4>>2]=$5}$11=$11+1|0;if(($14|0)!=($11|0)){continue}break label$3}}while(1){label$19:{label$20:{$5=Math_imul($11,20)+$18|0;$13=HEAP32[$5+12>>2];if(!$13){break label$20}$21=strlen($6+40|0);$22=HEAP32[$5+16>>2];$0=0;while(1){$15=HEAP32[$22+($0<<2)>>2];$16=strlen($15);if($16>>>0<=$21>>>0){if(!strncmp($15,$6+40|0,$16)){break label$20}}$0=$0+1|0;if(($13|0)!=($0|0)){continue}break}break label$19}$8=HEAPF32[$5>>2];$9=HEAPF32[$5+4>>2];$7=Math_fround(Math_fround(1)-Math_fround($25/Math_fround($8*$9)));$23=$7>=Math_fround(0)?$7:Math_fround(-$7);$7=Math_fround(Math_fround(1)-Math_fround($24/Math_fround($8/$9)));$12=+Math_fround($23+($7>=Math_fround(0)?$7:Math_fround(-$7)));$7=Math_fround(Math_fround(1)-Math_fround(HEAPF32[$5+8>>2]/$26));$17=+($7>=Math_fround(0)?$7:Math_fround(-$7));if($9=Math_fround(0)){$0=~~$9>>>0}else{$0=0}$12=$12+$17;$17=$12;if($8=Math_fround(0)){$5=~~$8>>>0}else{$5=0}$0=($5>>>0<=$0>>>0)<<3;$5=$0|$6+16;if(!($17>3])){break label$19}HEAPF64[$5>>3]=$12;$5=HEAP32[$10+4>>2];$0=$0|$6;HEAP32[$0>>2]=HEAP32[$10>>2];HEAP32[$0+4>>2]=$5}$11=$11+1|0;if(($14|0)!=($11|0)){continue}break}}$20=$20+1|0;if(($27|0)!=($20|0)){continue}break}}$3=$1>>>0<=$2>>>0;$1=$3<<3|$6;$0=HEAP32[$1+4>>2];$2=HEAP32[$1>>2];$1=$0;if(!($0|$2)){$0=($3^1)<<3|$6;$2=HEAP32[$0>>2];$1=HEAP32[$0+4>>2]}$0=HEAP32[$6+300>>2];if($0){dlfree($0)}global$0=$6+304|0;i64toi32_i32$HIGH_BITS=$1;return $2}function inflate_fast($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$5=HEAP32[$0+12>>2]+ -1|0;$2=HEAP32[$0+16>>2];$18=$5+($2-$1|0)|0;$9=HEAP32[$0+28>>2];$10=HEAP32[$9+48>>2];$13=HEAP32[$9+40>>2];$19=$10+$13|0;$12=HEAP32[$9+52>>2]+ -1|0;$20=-1<>2]^-1;$21=-1<>2]^-1;$14=($2+$5|0)+ -257|0;$8=HEAP32[$0>>2]+ -1|0;$15=($8+HEAP32[$0+4>>2]|0)+ -5|0;$16=HEAP32[$9+80>>2];$17=HEAP32[$9+76>>2];$6=HEAP32[$9+60>>2];$1=HEAP32[$9+56>>2];$22=HEAP32[$9+44>>2];while(1){if($6>>>0<=14){$1=((HEAPU8[$8+1|0]<<$6)+$1|0)+(HEAPU8[$8+2|0]<<$6+8)|0;$6=$6+16|0;$8=$8+2|0}$4=(($1&$21)<<2)+$17|0;$2=HEAPU8[$4+1|0];$6=$6-$2|0;$1=$1>>>$2|0;$7=HEAPU16[$4+2>>1];label$3:{label$4:{label$5:{$3=HEAPU8[$4|0];if(!$3){break label$5}label$6:{label$7:{label$8:{$23=$9;$24=$0;label$9:{label$10:{label$11:{while(1){$4=$3&255;if($3&16){$7=$7&65535;$4=$4&15;label$14:{if(!$4){$2=$8;break label$14}if($6>>>0>=$4>>>0){$2=$8}else{$1=(HEAPU8[$8+1|0]<<$6)+$1|0;$6=$6+8|0;$2=$8+1|0}$6=$6-$4|0;$7=((-1<<$4^-1)&$1)+$7|0;$1=$1>>>$4|0}$3=$1;if($6>>>0<=14){$3=((HEAPU8[$2+1|0]<<$6)+$3|0)+(HEAPU8[$2+2|0]<<$6+8)|0;$6=$6+16|0;$2=$2+2|0}$8=(($3&$20)<<2)+$16|0;$1=HEAPU8[$8+1|0];$6=$6-$1|0;$1=$3>>>$1|0;$4=HEAPU16[$8+2>>1];$3=HEAPU8[$8|0];if($3&16){break label$11}while(1){if(!($3&64)){$3=(((-1<<$3^-1)&$1)+($4&65535)<<2)+$16|0;$8=HEAPU8[$3+1|0];$6=$6-$8|0;$1=$1>>>$8|0;$4=HEAPU16[$3+2>>1];$3=HEAPU8[$3|0];if(!($3&16)){continue}break label$11}break}$8=$2;$2=192814;break label$10}if(!($4&64)){$4=(((-1<<$4^-1)&$1)+($7&65535)<<2)+$17|0;$2=HEAPU8[$4+1|0];$6=$6-$2|0;$1=$1>>>$2|0;$7=HEAPU16[$4+2>>1];$3=HEAPU8[$4|0];if(!$3){break label$5}continue}break}$2=11;if($4&32){break label$9}$2=192836;break label$10}$11=$4&65535;$3=$3&15;label$22:{if($6>>>0>=$3>>>0){$4=$6;$8=$2;break label$22}$1=(HEAPU8[$2+1|0]<<$6)+$1|0;$4=$6+8|0;$8=$2+1|0;if($4>>>0>=$3>>>0){break label$22}$1=(HEAPU8[$2+2|0]<<$4)+$1|0;$4=$6+16|0;$8=$2+2|0}$2=(-1<<$3^-1)&$1;$6=$4-$3|0;$1=$1>>>$3|0;$11=$2+$11|0;$2=$5-$18|0;if($11>>>0<=$2>>>0){break label$7}$2=$11-$2|0;if(!HEAP32[$9+7104>>2]|$2>>>0<=$22>>>0){break label$8}$2=192784}HEAP32[$24+24>>2]=$2;$2=29}HEAP32[$23>>2]=$2;break label$3}label$24:{label$25:{if(!$10){$3=($13-$2|0)+$12|0;break label$25}if($10>>>0<$2>>>0){$3=($19-$2|0)+$12|0;$2=$2-$10|0;$4=$2;if($7>>>0<=$2>>>0){break label$24}while(1){HEAP8[$5+1|0]=HEAPU8[$3+1|0];$5=$5+1|0;$3=$3+1|0;$4=$4+ -1|0;if($4){continue}break}$3=$12;$7=$7-$2|0;$4=$10;if($7>>>0<=$4>>>0){break label$24}while(1){HEAP8[$5+1|0]=HEAPU8[$3+1|0];$5=$5+1|0;$3=$3+1|0;$4=$4+ -1|0;if($4){continue}break}$3=$5-$11|0;$7=$7-$10|0;break label$24}$3=($10-$2|0)+$12|0}$4=$2;if($7>>>0<=$2>>>0){break label$24}while(1){HEAP8[$5+1|0]=HEAPU8[$3+1|0];$5=$5+1|0;$3=$3+1|0;$4=$4+ -1|0;if($4){continue}break}$3=$5-$11|0;$7=$7-$2|0}if($7>>>0>=3){while(1){HEAP8[$5+1|0]=HEAPU8[$3+1|0];HEAP8[$5+2|0]=HEAPU8[$3+2|0];HEAP8[$5+3|0]=HEAPU8[$3+3|0];$5=$5+3|0;$3=$3+3|0;$7=$7+ -3|0;if($7>>>0>2){continue}break}}if(!$7){break label$4}HEAP8[$5+1|0]=HEAPU8[$3+1|0];if(($7|0)!=1){break label$6}$5=$5+1|0;break label$4}$2=$5-$11|0;while(1){$3=$5;$4=$2;HEAP8[$3+1|0]=HEAPU8[$2+1|0];HEAP8[$3+2|0]=HEAPU8[$2+2|0];HEAP8[$3+3|0]=HEAPU8[$2+3|0];$5=$3+3|0;$2=$2+3|0;$7=$7+ -3|0;if($7>>>0>2){continue}break}if(!$7){break label$4}HEAP8[$3+4|0]=HEAPU8[$4+4|0];if(($7|0)==1){$5=$3+4|0;break label$4}HEAP8[$3+5|0]=HEAPU8[$4+5|0];$5=$3+5|0;break label$4}HEAP8[$5+2|0]=HEAPU8[$3+2|0];$5=$5+2|0;break label$4}HEAP8[$5+1|0]=$7;$5=$5+1|0}if($5>>>0>=$14>>>0){break label$3}if($8>>>0<$15>>>0){continue}}break}HEAP32[$0+12>>2]=$5+1;HEAP32[$0+16>>2]=($14-$5|0)+257;$2=$8-($6>>>3|0)|0;HEAP32[$0>>2]=$2+1;HEAP32[$0+4>>2]=($15-$2|0)+5;$0=$6&7;HEAP32[$9+60>>2]=$0;HEAP32[$9+56>>2]=(-1<<$0^-1)&$1}function unsigned_20int_20std____2____sort3_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$4=HEAP32[$3>>2];$7=HEAP32[$4+208>>2];$10=HEAP32[$0>>2];$12=HEAP32[$4+200>>2];$9=HEAP32[HEAP32[$4+16>>2]+8>>2];$8=HEAP32[($9+(HEAP32[$1>>2]<<3)|0)+4>>2];$11=HEAP32[$4+204>>2];$4=HEAP32[$12+(($8>>>0)%($11>>>0)<<2)>>2];$5=0;label$1:{if(($4|0)==-1){break label$1}label$2:{while(1){$5=Math_imul($4,12);$6=$5+$7|0;if(($8|0)==HEAP32[$6>>2]){break label$2}$4=HEAP32[($5+$7|0)+8>>2];if(($4|0)!=-1){continue}break}$6=0}$5=$6?$6+4|0:0}$6=HEAP32[($9+($10<<3)|0)+4>>2];$4=HEAP32[$12+(($6>>>0)%($11>>>0)<<2)>>2];if(HEAP32[$7+Math_imul($4,12)>>2]!=($6|0)){while(1){$4=HEAP32[($7+Math_imul($4,12)|0)+8>>2];if(($6|0)!=HEAP32[$7+Math_imul($4,12)>>2]){continue}break}}$10=dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$5>>2],HEAP32[($7+Math_imul($4,12)|0)+4>>2]);$4=HEAP32[$3>>2];$7=HEAP32[$4+208>>2];$9=HEAP32[$1>>2];$13=HEAP32[$4+200>>2];$8=HEAP32[HEAP32[$4+16>>2]+8>>2];$11=HEAP32[($8+(HEAP32[$2>>2]<<3)|0)+4>>2];$12=HEAP32[$4+204>>2];$4=HEAP32[$13+(($11>>>0)%($12>>>0)<<2)>>2];$5=0;label$6:{if(($4|0)==-1){break label$6}label$7:{while(1){$5=Math_imul($4,12);$6=$5+$7|0;if(($11|0)==HEAP32[$6>>2]){break label$7}$4=HEAP32[($5+$7|0)+8>>2];if(($4|0)!=-1){continue}break}$6=0}$5=$6?$6+4|0:0}$6=HEAP32[($8+($9<<3)|0)+4>>2];$4=HEAP32[$13+(($6>>>0)%($12>>>0)<<2)>>2];if(HEAP32[$7+Math_imul($4,12)>>2]!=($6|0)){while(1){$4=HEAP32[($7+Math_imul($4,12)|0)+8>>2];if(($6|0)!=HEAP32[$7+Math_imul($4,12)>>2]){continue}break}}$6=0;$4=dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$5>>2],HEAP32[($7+Math_imul($4,12)|0)+4>>2]);label$11:{label$12:{if(($10|0)>=0){if(($4|0)>-1){break label$11}$5=HEAP32[$1>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$2>>2]=$5;$5=HEAP32[$3>>2];$3=HEAP32[$5+208>>2];$7=HEAP32[$0>>2];$11=HEAP32[$5+200>>2];$10=HEAP32[HEAP32[$5+16>>2]+8>>2];$9=HEAP32[($10+(HEAP32[$1>>2]<<3)|0)+4>>2];$8=HEAP32[$5+204>>2];$4=HEAP32[$11+(($9>>>0)%($8>>>0)<<2)>>2];$2=0;label$14:{if(($4|0)==-1){break label$14}label$15:{while(1){$2=Math_imul($4,12);$6=$2+$3|0;if(($9|0)==HEAP32[$6>>2]){break label$15}$4=HEAP32[($2+$3|0)+8>>2];if(($4|0)!=-1){continue}break}$6=0}$2=$6?$6+4|0:0}$5=HEAP32[($10+($7<<3)|0)+4>>2];$4=HEAP32[$11+(($5>>>0)%($8>>>0)<<2)>>2];if(HEAP32[$3+Math_imul($4,12)>>2]!=($5|0)){while(1){$4=HEAP32[($3+Math_imul($4,12)|0)+8>>2];if(($5|0)!=HEAP32[$3+Math_imul($4,12)>>2]){continue}break}}$6=1;if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$2>>2],HEAP32[($3+Math_imul($4,12)|0)+4>>2])|0)>-1){break label$11}$2=HEAP32[$0>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$1>>2]=$2;break label$12}$5=HEAP32[$0>>2];if(($4|0)<=-1){HEAP32[$0>>2]=HEAP32[$2>>2];HEAP32[$2>>2]=$5;return 1}HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$1>>2]=$5;$4=HEAP32[$3>>2];$3=HEAP32[$4+208>>2];$8=HEAP32[$4+200>>2];$7=HEAP32[HEAP32[$4+16>>2]+8>>2];$10=HEAP32[($7+(HEAP32[$2>>2]<<3)|0)+4>>2];$9=HEAP32[$4+204>>2];$4=HEAP32[$8+(($10>>>0)%($9>>>0)<<2)>>2];$0=0;label$20:{if(($4|0)==-1){break label$20}label$21:{while(1){$0=Math_imul($4,12);$6=$0+$3|0;if(($10|0)==HEAP32[$6>>2]){break label$21}$4=HEAP32[($0+$3|0)+8>>2];if(($4|0)!=-1){continue}break}$6=0}$0=$6?$6+4|0:0}$5=HEAP32[($7+($5<<3)|0)+4>>2];$4=HEAP32[$8+(($5>>>0)%($9>>>0)<<2)>>2];if(HEAP32[$3+Math_imul($4,12)>>2]!=($5|0)){while(1){$4=HEAP32[($3+Math_imul($4,12)|0)+8>>2];if(($5|0)!=HEAP32[$3+Math_imul($4,12)>>2]){continue}break}}$6=1;if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$0>>2],HEAP32[($3+Math_imul($4,12)|0)+4>>2])|0)>-1){break label$11}$0=HEAP32[$1>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$2>>2]=$0}$6=2}return $6}function b2PositionSolverManifold__Initialize_28b2ContactPositionConstraint__2c_20b2Transform_20const__2c_20b2Transform_20const__2c_20int_29($0,$1,$2,$3,$4){var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=0;if(HEAP32[$1+84>>2]>0){$21=HEAP32[$1+72>>2];if($21>>>0<=2){label$3:{switch($21-1|0){default:$6=HEAPF32[$3>>2];$5=HEAPF32[$2>>2];$7=HEAPF32[$1>>2];$8=HEAPF32[$3+8>>2];$10=HEAPF32[$3+12>>2];$12=HEAPF32[$1+4>>2];$13=Math_fround(Math_fround(Math_fround($7*$8)+Math_fround($10*$12))+HEAPF32[$3+4>>2]);$14=HEAPF32[$1+24>>2];$15=HEAPF32[$2+8>>2];$11=HEAPF32[$2+12>>2];$16=HEAPF32[$1+28>>2];$17=Math_fround(Math_fround(Math_fround($14*$15)+Math_fround($11*$16))+HEAPF32[$2+4>>2]);$9=Math_fround($13-$17);HEAPF32[$0+4>>2]=$9;$7=Math_fround($6+Math_fround(Math_fround($10*$7)-Math_fround($8*$12)));$8=Math_fround($5+Math_fround(Math_fround($11*$14)-Math_fround($15*$16)));$6=Math_fround($7-$8);HEAPF32[$0>>2]=$6;$5=Math_fround(Math_fround($6*$6)+Math_fround($9*$9));$10=Math_fround(Math_sqrt($5));if(!($10>2]=$10;$5=Math_fround($6*$5);HEAPF32[$0>>2]=$5;$5=Math_fround(Math_fround($6*$5)+Math_fround($9*$10))}HEAPF32[$0+12>>2]=Math_fround($17+$13)*Math_fround(.5);HEAPF32[$0+8>>2]=Math_fround($8+$7)*Math_fround(.5);HEAPF32[$0+16>>2]=Math_fround($5-HEAPF32[$1+76>>2])-HEAPF32[$1+80>>2];return;case 0:$9=HEAPF32[$1+16>>2];$6=HEAPF32[$2+8>>2];$5=HEAPF32[$2+12>>2];$7=HEAPF32[$1+20>>2];$8=Math_fround(Math_fround($9*$6)+Math_fround($5*$7));HEAPF32[$0+4>>2]=$8;$10=Math_fround(Math_fround($5*$9)-Math_fround($6*$7));HEAPF32[$0>>2]=$10;$9=HEAPF32[$1+28>>2];$6=HEAPF32[$2+12>>2];$12=HEAPF32[$1+80>>2];$13=HEAPF32[$1+76>>2];$14=HEAPF32[$2>>2];$15=HEAPF32[$2+4>>2];$5=HEAPF32[$2+8>>2];$7=HEAPF32[$1+24>>2];$11=HEAPF32[$3>>2];$1=($4<<3)+$1|0;$16=HEAPF32[$1>>2];$17=HEAPF32[$3+8>>2];$19=HEAPF32[$3+12>>2];$20=HEAPF32[$1+4>>2];$18=Math_fround(Math_fround(Math_fround($16*$17)+Math_fround($19*$20))+HEAPF32[$3+4>>2]);HEAPF32[$0+12>>2]=$18;$11=Math_fround($11+Math_fround(Math_fround($19*$16)-Math_fround($17*$20)));HEAPF32[$0+8>>2]=$11;HEAPF32[$0+16>>2]=Math_fround(Math_fround(Math_fround($10*Math_fround($11-Math_fround($14+Math_fround(Math_fround($6*$7)-Math_fround($5*$9)))))+Math_fround(Math_fround($18-Math_fround($15+Math_fround(Math_fround($7*$5)+Math_fround($6*$9))))*$8))-$13)-$12;return;case 1:break label$3}}$6=HEAPF32[$1+16>>2];$5=HEAPF32[$3+8>>2];$7=HEAPF32[$3+12>>2];$8=HEAPF32[$1+20>>2];$9=Math_fround(Math_fround($6*$5)+Math_fround($7*$8));HEAPF32[$0+4>>2]=$9;$6=Math_fround(Math_fround($7*$6)-Math_fround($5*$8));HEAPF32[$0>>2]=$6;$5=HEAPF32[$1+28>>2];$7=HEAPF32[$3+12>>2];$4=($4<<3)+$1|0;$8=HEAPF32[$4>>2];$10=HEAPF32[$4+4>>2];$12=HEAPF32[$2+12>>2];$11=HEAPF32[$1+80>>2];$16=HEAPF32[$1+76>>2];$17=HEAPF32[$3>>2];$19=HEAPF32[$3+4>>2];$13=HEAPF32[$3+8>>2];$14=HEAPF32[$1+24>>2];$20=HEAPF32[$2>>2];$18=HEAPF32[$2+4>>2];$15=HEAPF32[$2+8>>2];HEAPF32[$0+4>>2]=-$9;HEAPF32[$0>>2]=-$6;$18=Math_fround($18+Math_fround(Math_fround($8*$15)+Math_fround($12*$10)));HEAPF32[$0+12>>2]=$18;$8=Math_fround($20+Math_fround(Math_fround($12*$8)-Math_fround($15*$10)));HEAPF32[$0+8>>2]=$8;HEAPF32[$0+16>>2]=Math_fround(Math_fround(Math_fround($6*Math_fround($8-Math_fround($17+Math_fround(Math_fround($7*$14)-Math_fround($13*$5)))))+Math_fround(Math_fround($18-Math_fround($19+Math_fround(Math_fround($14*$13)+Math_fround($7*$5))))*$9))-$16)-$11}return}__assert_fail(97002,96787,617,97021);abort()}function dmGameSystem__TileMap_SetTile_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$1=global$0-160|0;global$0=$1;$6=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$2=HEAP32[HEAP32[dmGameSystem__CheckGoInstance_28lua_State__29($0)+80>>2]+8>>2];HEAP32[$1+144>>2]=0;HEAP32[$1+148>>2]=0;HEAP32[$1+136>>2]=0;HEAP32[$1+140>>2]=0;HEAP32[$1+128>>2]=0;HEAP32[$1+132>>2]=0;HEAP32[$1+120>>2]=0;HEAP32[$1+124>>2]=0;$3=1;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$2,74324,$1+156|0,$1+120|0,0);$5=HEAP32[$1+156>>2];$2=dmScript__CheckHashOrString_28lua_State__2c_20int_29($0,2);$4=i64toi32_i32$HIGH_BITS;$7=$4;$8=dmGameSystem__GetLayerIndex_28dmGameSystem__TileGridComponent_20const__2c_20unsigned_20long_20long_29($5,$2,$4);label$1:{if(($8|0)==-1){HEAP32[$1>>2]=dmHashReverseSafe64($2,$7);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,74619,74627,$1);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=1;HEAP32[$2>>2]=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;if(($6+1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$1}__assert_fail(74654,74535,226,74679);abort()}$7=luaL_checkinteger($0,3);$9=luaL_checkinteger($0,4);label$3:{$3=luaL_checkinteger($0,5);if(($3|0)>=0){$4=$3;$2=HEAP32[$5+932>>2];if(!$2){$2=HEAP32[HEAP32[$5+936>>2]>>2]}if(($4|0)<=HEAPU16[HEAP32[$2+64>>2]+28>>1]){break label$3}}HEAP32[$1+16>>2]=$3;$3=luaL_error($0,74695,$1+16|0);break label$1}$2=HEAP32[$5+936>>2];HEAP32[$1+116>>2]=HEAP32[$2+36>>2];HEAP32[$1+112>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+28>>2];HEAP32[$1+104>>2]=HEAP32[$2+32>>2];$2=HEAP32[$5+936>>2];HEAP32[$1+100>>2]=($7+ -1|0)-HEAP32[$2+36>>2];HEAP32[$1+96>>2]=($9+ -1|0)-HEAP32[$2+40>>2];$2=HEAP32[$1+100>>2];label$7:{label$8:{if(($2|0)<0|($2|0)>=HEAP32[$1+108>>2]){break label$8}$2=HEAP32[$1+96>>2];if(($2|0)<0){break label$8}if(($2|0)>2]){break label$7}}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,74619,74753,0);$3=HEAP32[$0+8>>2];HEAP32[$3+8>>2]=1;HEAP32[$3>>2]=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;$3=1;if(($6+1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$1}__assert_fail(74654,74535,262,74679);abort()}$2=lua_toboolean($0,6);$4=lua_toboolean($0,7);$3=$3+ -1|0;$2=($2|0)!=0;$4=($4|0)!=0;dmGameSystem__SetTileGridTile_28dmGameSystem__TileGridComponent__2c_20unsigned_20int_2c_20int_2c_20int_2c_20unsigned_20int_2c_20bool_2c_20bool_29($5,$8,HEAP32[$1+100>>2],HEAP32[$1+96>>2],$3,$2,$4);HEAP32[$1+88>>2]=0;HEAP32[$1+92>>2]=0;HEAP32[$1+80>>2]=0;HEAP32[$1+84>>2]=0;HEAP32[$1+72>>2]=0;HEAP32[$1+76>>2]=0;HEAP32[$1+64>>2]=0;HEAP32[$1+68>>2]=0;if(dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29($0,$1- -64|0)){HEAP32[$1+48>>2]=HEAP32[$1+100>>2];HEAP32[$1+40>>2]=$8;HEAP32[$1+52>>2]=$3;HEAP32[$1+44>>2]=HEAP32[$1+96>>2];HEAP32[$1+60>>2]=$4;HEAP32[$1+56>>2]=$2;$3=HEAP32[133990];$2=HEAP32[$3+8>>2];$4=HEAP32[$3+12>>2];HEAP32[$1+144>>2]=0;HEAP32[$1+148>>2]=0;$3=dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($1- -64|0,$1+120|0,$2,$4,0,$3,$1+40|0,24,0);if($3){HEAP32[$1+32>>2]=HEAP32[HEAP32[133990]+4>>2];HEAP32[$1+36>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,74619,74818,$1+32|0)}$3=1;$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=1;HEAP32[$2>>2]=1;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;if(($6+1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$1}__assert_fail(74654,74535,298,74679);abort()}$3=luaL_error($0,74863,0)}global$0=$1+160|0;return $3|0}function btDefaultCollisionConfiguration___btDefaultCollisionConfiguration_28_29($0){$0=$0|0;var $1=0,$2=0,$3=0;HEAP32[$0>>2]=543224;if(HEAPU8[$0+12|0]){$2=HEAP32[$0+8>>2];label$2:{if(HEAP32[$2+8>>2]){$1=$2;break label$2}$1=$2;$3=$1;label$4:{if(HEAPU8[$1+16|0]){break label$4}$1=HEAP32[$2>>2];if(!$1){$1=$2;$3=$1;break label$4}if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+8>>2];$3=$1}HEAP32[$2+8>>2]=0;HEAP32[$2>>2]=0;if(HEAP32[$3+8>>2]){break label$2}label$7:{if(HEAPU8[$3+16|0]){break label$7}$2=HEAP32[$3>>2];if(!$2){break label$7}if($2){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$2+ -4>>2])}$1=HEAP32[$0+8>>2]}HEAP32[$3+8>>2]=0;HEAP32[$3>>2]=0}if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}}if(HEAPU8[$0+28|0]){$1=HEAP32[HEAP32[$0+24>>2]+16>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+24>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}}if(HEAPU8[$0+20|0]){$1=HEAP32[HEAP32[$0+16>>2]+16>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+16>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}}$1=HEAP32[$0+40>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+40>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+44>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+44>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+48>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+48>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+52>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+52>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+56>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+56>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+60>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+60>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+64>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+64>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+72>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+72>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+76>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+76>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+68>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+68>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+84>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+84>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+80>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+80>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+32>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+36>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+36>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}return $0|0}function dmGui__CalculateParentNodeTransformAndAlphaCached_28dmGui__Scene__2c_20dmGui__InternalNode__2c_20Vectormath__Aos__Matrix4__2c_20float__2c_20dmGui__SceneTraversalCache__29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$5=global$0-144|0;global$0=$5;$7=HEAPU16[$4+18>>1];label$1:{if(($7|0)!=HEAPU16[$1+568>>1]){HEAP16[$1+568>>1]=$7;$6=HEAPU16[$4+16>>1];HEAP16[$4+16>>1]=$6+1;HEAP16[$1+566>>1]=$6;$7=0;break label$1}$6=HEAPU16[$1+566>>1];$7=1}label$3:{label$4:{label$5:{$8=HEAP32[$4>>2];if((HEAP32[$4+4>>2]-$8|0)/80>>>0>$6>>>0){$9=HEAPU16[$1+560>>1];if(($9|0)!=65535){$10=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$10|0)/576>>>0<=$9>>>0){break label$3}dmGui__CalculateParentNodeTransformAndAlphaCached_28dmGui__Scene__2c_20dmGui__InternalNode__2c_20Vectormath__Aos__Matrix4__2c_20float__2c_20dmGui__SceneTraversalCache__29($0,Math_imul($9,576)+$10|0,$5+80|0,$5+76|0,$4)}$4=Math_imul($6,80)+$8|0;if(!(!(HEAP8[$0+374|0]&1)|HEAP32[$0+336>>2]==2?!(HEAPU8[$1+414|0]&32):0)){dmGui__UpdateLocalTransform_28dmGui__Scene__2c_20dmGui__InternalNode__29($0,$1);break label$5}if(!$7){break label$5}HEAP32[$2>>2]=HEAP32[$4>>2];$0=Math_imul($6,80)+$8|0;HEAP32[$2+4>>2]=HEAP32[$0+4>>2];HEAP32[$2+8>>2]=HEAP32[$0+8>>2];HEAP32[$2+12>>2]=HEAP32[$0+12>>2];HEAP32[$2+16>>2]=HEAP32[$0+16>>2];HEAP32[$2+20>>2]=HEAP32[$0+20>>2];HEAP32[$2+24>>2]=HEAP32[$0+24>>2];HEAP32[$2+28>>2]=HEAP32[$0+28>>2];HEAP32[$2+32>>2]=HEAP32[$0+32>>2];HEAP32[$2+36>>2]=HEAP32[$0+36>>2];HEAP32[$2+40>>2]=HEAP32[$0+40>>2];HEAP32[$2+44>>2]=HEAP32[$0+44>>2];HEAP32[$2+48>>2]=HEAP32[$0+48>>2];HEAP32[$2+52>>2]=HEAP32[$0+52>>2];HEAP32[$2+56>>2]=HEAP32[$0+56>>2];HEAP32[$2+60>>2]=HEAP32[$0+60>>2];HEAP32[$3>>2]=HEAP32[$0+64>>2];break label$4}break label$3}HEAP32[$2>>2]=HEAP32[$1+320>>2];HEAP32[$2+4>>2]=HEAP32[$1+324>>2];HEAP32[$2+8>>2]=HEAP32[$1+328>>2];HEAP32[$2+12>>2]=HEAP32[$1+332>>2];HEAP32[$2+16>>2]=HEAP32[$1+336>>2];HEAP32[$2+20>>2]=HEAP32[$1+340>>2];HEAP32[$2+24>>2]=HEAP32[$1+344>>2];HEAP32[$2+28>>2]=HEAP32[$1+348>>2];HEAP32[$2+32>>2]=HEAP32[$1+352>>2];HEAP32[$2+36>>2]=HEAP32[$1+356>>2];HEAP32[$2+40>>2]=HEAP32[$1+360>>2];HEAP32[$2+44>>2]=HEAP32[$1+364>>2];HEAP32[$2+48>>2]=HEAP32[$1+368>>2];HEAP32[$2+52>>2]=HEAP32[$1+372>>2];HEAP32[$2+56>>2]=HEAP32[$1+376>>2];HEAP32[$2+60>>2]=HEAP32[$1+380>>2];HEAP32[$3>>2]=HEAP32[$1+60>>2];label$10:{if(HEAPU16[$1+560>>1]==65535){break label$10}Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($5,$5+80|0,$2);HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=HEAP32[$5+4>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=HEAP32[$5+12>>2];HEAP32[$2+16>>2]=HEAP32[$5+16>>2];HEAP32[$2+20>>2]=HEAP32[$5+20>>2];HEAP32[$2+24>>2]=HEAP32[$5+24>>2];HEAP32[$2+28>>2]=HEAP32[$5+28>>2];HEAP32[$2+32>>2]=HEAP32[$5+32>>2];HEAP32[$2+36>>2]=HEAP32[$5+36>>2];HEAP32[$2+40>>2]=HEAP32[$5+40>>2];HEAP32[$2+44>>2]=HEAP32[$5+44>>2];HEAP32[$2+48>>2]=HEAP32[$5+48>>2];HEAP32[$2+52>>2]=HEAP32[$5+52>>2];HEAP32[$2+56>>2]=HEAP32[$5+56>>2];HEAP32[$2+60>>2]=HEAP32[$5+60>>2];if(!(HEAPU8[$1+414|0]&64)){break label$10}HEAPF32[$3>>2]=HEAPF32[$5+76>>2]*HEAPF32[$3>>2]}HEAP32[$4>>2]=HEAP32[$2>>2];$0=Math_imul($6,80)+$8|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2];HEAP32[$0+8>>2]=HEAP32[$2+8>>2];HEAP32[$0+12>>2]=HEAP32[$2+12>>2];HEAP32[$0+16>>2]=HEAP32[$2+16>>2];HEAP32[$0+20>>2]=HEAP32[$2+20>>2];HEAP32[$0+24>>2]=HEAP32[$2+24>>2];HEAP32[$0+28>>2]=HEAP32[$2+28>>2];HEAP32[$0+32>>2]=HEAP32[$2+32>>2];HEAP32[$0+36>>2]=HEAP32[$2+36>>2];HEAP32[$0+40>>2]=HEAP32[$2+40>>2];HEAP32[$0+44>>2]=HEAP32[$2+44>>2];HEAP32[$0+48>>2]=HEAP32[$2+48>>2];HEAP32[$0+52>>2]=HEAP32[$2+52>>2];HEAP32[$0+56>>2]=HEAP32[$2+56>>2];HEAP32[$0+60>>2]=HEAP32[$2+60>>2];HEAP32[$0+64>>2]=HEAP32[$3>>2]}global$0=$5+144|0;return}__assert_fail(201597,201431,430,201608);abort()}function dmGameSystem__CompLabelGetProperty_28dmGameObject__ComponentGetPropertyParams_20const__2c_20dmGameObject__PropertyDesc__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0;$2=HEAP32[$0+4>>2];$3=HEAP32[$2+16>>2];$4=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$2+20>>2]-$3>>3>>>0>$4>>>0){$5=HEAP32[$2>>2];$4=HEAP32[$3+($4<<3)>>2];if(HEAP32[$2+4>>2]-$5>>10>>>0>$4>>>0){label$3:{$2=HEAP32[$0+16>>2];$3=HEAP32[$0+20>>2];if(!(($2|0)==HEAP32[146190]&($3|0)==HEAP32[146191]|($2|0)==HEAP32[146192]&($3|0)==HEAP32[146193]|($2|0)==HEAP32[146194]&($3|0)==HEAP32[146195])){if(($2|0)!=HEAP32[146196]|($3|0)!=HEAP32[146197]){break label$3}}return dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector3_20const__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$3,($5+($4<<10)|0)- -64|0,584760)|0}label$5:{if(!(($2|0)==HEAP32[146204]&($3|0)==HEAP32[146205]|(($2|0)==HEAP32[146200]&($3|0)==HEAP32[146201]|($2|0)==HEAP32[146202]&($3|0)==HEAP32[146203]))){if(($2|0)!=HEAP32[146206]|($3|0)!=HEAP32[146207]){break label$5}}return dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector3_20const__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$3,($5+($4<<10)|0)+48|0,584800)|0}label$7:{if(!(($2|0)==HEAP32[146210]&($3|0)==HEAP32[146211]|($2|0)==HEAP32[146212]&($3|0)==HEAP32[146213]|(($2|0)==HEAP32[146214]&($3|0)==HEAP32[146215]|($2|0)==HEAP32[146216]&($3|0)==HEAP32[146217]))){if(($2|0)!=HEAP32[146218]|($3|0)!=HEAP32[146219]){break label$7}}return dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$3,($5+($4<<10)|0)+80|0,584840)|0}label$9:{if(!(($2|0)==HEAP32[146222]&($3|0)==HEAP32[146223]|($2|0)==HEAP32[146224]&($3|0)==HEAP32[146225]|(($2|0)==HEAP32[146226]&($3|0)==HEAP32[146227]|($2|0)==HEAP32[146228]&($3|0)==HEAP32[146229]))){if(($2|0)!=HEAP32[146230]|($3|0)!=HEAP32[146231]){break label$9}}return dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$3,($5+($4<<10)|0)+96|0,584888)|0}label$11:{if(!(($2|0)==HEAP32[146234]&($3|0)==HEAP32[146235]|($2|0)==HEAP32[146236]&($3|0)==HEAP32[146237]|(($2|0)==HEAP32[146238]&($3|0)==HEAP32[146239]|($2|0)==HEAP32[146240]&($3|0)==HEAP32[146241]))){if(($2|0)!=HEAP32[146242]|($3|0)!=HEAP32[146243]){break label$11}}return dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$3,($5+($4<<10)|0)+112|0,584936)|0}if(($2|0)==HEAP32[146170]&HEAP32[146171]==($3|0)){$2=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$5+($4<<10)|0;$0=HEAP32[$3+1008>>2];if(!$0){$0=HEAP32[HEAP32[$3+216>>2]+4>>2]}return dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($2,$0,$1)|0}if(($2|0)==HEAP32[146166]&HEAP32[146167]==($3|0)){$2=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$5+($4<<10)|0;$0=HEAP32[$3+1012>>2];if(!$0){$0=HEAP32[HEAP32[$3+216>>2]+8>>2]}return dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($2,$0,$1)|0}$6=$5+($4<<10)|0;$0=HEAP32[$6+1008>>2];if(!$0){$0=HEAP32[HEAP32[$6+216>>2]+4>>2]}return dmGameSystem__GetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__2c_20bool_2c_20bool_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmRender__Constant___29_2c_20void__29($0,$2,$3,$1,0,463,$5+($4<<10)|0)|0}}__assert_fail(43706,43608,430,43717);abort()}function b2World__Solve_28b2TimeStep_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0;$11=global$0-96|0;global$0=$11;HEAP32[$0+103016>>2]=0;$8=$0+103008|0;HEAP32[$8>>2]=0;HEAP32[$8+4>>2]=0;$15=$0+68|0;$3=b2Island__b2Island_28int_2c_20int_2c_20int_2c_20b2StackAllocator__2c_20b2ContactListener__29($11+40|0,HEAP32[$0+102960>>2],HEAP32[$0+102936>>2],HEAP32[$0+102964>>2],$15,HEAP32[$0+102944>>2]);$2=HEAP32[$0+102952>>2];if($2){while(1){HEAP16[$2+4>>1]=HEAPU16[$2+4>>1]&65534;$2=HEAP32[$2+96>>2];if($2){continue}break}}$2=HEAP32[$0+102932>>2];if($2){while(1){HEAP32[$2+4>>2]=HEAP32[$2+4>>2]&-2;$2=HEAP32[$2+12>>2];if($2){continue}break}}$2=HEAP32[$0+102956>>2];if($2){while(1){HEAP8[$2+60|0]=0;$2=HEAP32[$2+12>>2];if($2){continue}break}}$16=HEAP32[$0+102960>>2];$13=b2StackAllocator__Allocate_28int_29($15,$16<<2);label$7:{label$8:{label$9:{label$10:{label$11:{label$12:{$10=HEAP32[$0+102952>>2];if($10){$18=$0+102968|0;while(1){$4=HEAPU16[$10+4>>1];label$15:{if(!HEAP32[$10>>2]|($4&35)!=34){break label$15}$8=0;HEAP32[$3+36>>2]=0;HEAP32[$3+28>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$13>>2]=$10;$5=1;HEAP16[$10+4>>1]=$4|1;$19=HEAP32[$3+40>>2];$4=0;$12=0;while(1){$5=$5+ -1|0;$6=HEAP32[($5<<2)+$13>>2];$9=HEAPU16[$6+4>>1];if(!($9&32)){break label$12}if(($12|0)>=($19|0)){break label$11}HEAP32[$6+8>>2]=$12;HEAP32[HEAP32[$3+8>>2]+($12<<2)>>2]=$6;$12=$12+1|0;HEAP32[$3+28>>2]=$12;if(!($9&2)){HEAP32[$6+144>>2]=0;HEAP16[$6+4>>1]=$9|2}label$18:{if(!HEAP32[$6>>2]){break label$18}$2=HEAP32[$6+112>>2];if($2){$17=HEAP32[$3+44>>2];while(1){$7=HEAP32[$2+4>>2];$14=HEAP32[$7+4>>2];if(!(($14&7)!=6|HEAPU8[HEAP32[$7+48>>2]+44|0]|HEAPU8[HEAP32[$7+52>>2]+44|0])){if(($4|0)>=($17|0)){break label$10}$9=$4+1|0;HEAP32[$3+36>>2]=$9;HEAP32[HEAP32[$3+12>>2]+($4<<2)>>2]=$7;HEAP32[$7+4>>2]=$14|1;$4=HEAP32[$2>>2];$7=HEAPU16[$4+4>>1];if(!($7&1)){if(($5|0)>=($16|0)){break label$9}HEAP32[($5<<2)+$13>>2]=$4;HEAP16[$4+4>>1]=$7|1;$5=$5+1|0}$4=$9}$2=HEAP32[$2+12>>2];if($2){continue}break}}$2=HEAP32[$6+108>>2];if(!$2){break label$18}$17=HEAP32[$3+48>>2];while(1){$14=HEAP32[$2+4>>2];label$24:{if(HEAPU8[$14+60|0]){break label$24}$6=HEAP32[$2>>2];$7=HEAPU16[$6+4>>1];if(!($7&32)){break label$24}if(($8|0)>=($17|0)){break label$8}$9=$8+1|0;HEAP32[$3+32>>2]=$9;HEAP32[HEAP32[$3+16>>2]+($8<<2)>>2]=$14;HEAP8[HEAP32[$2+4>>2]+60|0]=1;if(!($7&1)){if(($5|0)>=($16|0)){break label$7}HEAP32[($5<<2)+$13>>2]=$6;HEAP16[$6+4>>1]=$7|1;$5=$5+1|0}$8=$9}$2=HEAP32[$2+12>>2];if($2){continue}break}}if(($5|0)>0){continue}break}b2Island__Solve_28b2Profile__2c_20b2TimeStep_20const__2c_20b2Vec2_20const__2c_20bool_29($3,$11+8|0,$1,$18,HEAPU8[$0+102976|0]);HEAPF32[$0+103008>>2]=HEAPF32[$11+20>>2]+HEAPF32[$0+103008>>2];HEAPF32[$0+103012>>2]=HEAPF32[$11+24>>2]+HEAPF32[$0+103012>>2];HEAPF32[$0+103016>>2]=HEAPF32[$11+28>>2]+HEAPF32[$0+103016>>2];$4=HEAP32[$3+28>>2];if(($4|0)<1){break label$15}$9=HEAP32[$3+8>>2];$2=0;while(1){$8=HEAP32[$9+($2<<2)>>2];if(!HEAP32[$8>>2]){HEAP16[$8+4>>1]=HEAPU16[$8+4>>1]&65534}$2=$2+1|0;if(($4|0)!=($2|0)){continue}break}}$10=HEAP32[$10+96>>2];if($10){continue}break}}$1=$0+102872|0;b2StackAllocator__Free_28void__29($15,$13);$2=HEAP32[$0+102952>>2];if($2){while(1){if(!(!(HEAP8[$2+4|0]&1)|!HEAP32[$2>>2])){b2Body__SynchronizeFixtures_28_29($2)}$2=HEAP32[$2+96>>2];if($2){continue}break}}b2ContactManager__FindNewContacts_28_29($1);HEAPF32[$0+103020>>2]=0;b2Island___b2Island_28_29($3);global$0=$11+96|0;return}__assert_fail(97502,97381,446,97524);abort()}__assert_fail(97657,97686,54,97725);abort()}__assert_fail(97729,97686,62,97725);abort()}__assert_fail(97530,97381,496,97524);abort()}__assert_fail(97764,97686,68,97725);abort()}__assert_fail(97530,97381,525,97524);abort()}function btTransformUtil__calculateDiffAxisAngle_28btTransform_20const__2c_20btTransform_20const__2c_20btVector3__2c_20float__29($0,$1,$2,$3){var $4=Math_fround(0),$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0);$5=global$0+ -64|0;global$0=$5;$15=HEAPF32[$1+24>>2];$16=HEAPF32[$1+20>>2];$17=HEAPF32[$1+40>>2];$18=HEAPF32[$1+36>>2];$9=HEAPF32[$0+40>>2];$10=HEAPF32[$0+20>>2];$13=HEAPF32[$0+36>>2];$11=HEAPF32[$0+24>>2];$19=HEAPF32[$1+8>>2];$20=HEAPF32[$1>>2];$21=HEAPF32[$1+4>>2];$22=HEAPF32[$1+16>>2];$23=HEAPF32[$1+32>>2];$6=HEAPF32[$0+8>>2];$7=HEAPF32[$0+4>>2];$14=HEAPF32[$0+32>>2];$12=HEAPF32[$0+16>>2];$8=HEAPF32[$0>>2];HEAP32[$5+60>>2]=0;HEAP32[$5+44>>2]=0;$25=Math_fround(Math_fround($10*$9)-Math_fround($11*$13));$26=Math_fround(Math_fround($11*$14)-Math_fround($9*$12));$27=Math_fround(Math_fround($13*$12)-Math_fround($10*$14));$4=Math_fround(Math_fround(1)/Math_fround(Math_fround(Math_fround($8*$25)+Math_fround($7*$26))+Math_fround($6*$27)));$24=Math_fround(Math_fround(Math_fround($11*$7)-Math_fround($10*$6))*$4);$11=Math_fround(Math_fround(Math_fround($12*$6)-Math_fround($11*$8))*$4);$10=Math_fround(Math_fround(Math_fround($10*$8)-Math_fround($12*$7))*$4);HEAPF32[$5+56>>2]=Math_fround(Math_fround($23*$24)+Math_fround($18*$11))+Math_fround($17*$10);$12=Math_fround(Math_fround(Math_fround($13*$6)-Math_fround($9*$7))*$4);$6=Math_fround(Math_fround(Math_fround($9*$8)-Math_fround($14*$6))*$4);$7=Math_fround(Math_fround(Math_fround($14*$7)-Math_fround($13*$8))*$4);HEAPF32[$5+52>>2]=Math_fround(Math_fround($23*$12)+Math_fround($18*$6))+Math_fround($17*$7);HEAPF32[$5+40>>2]=Math_fround(Math_fround($24*$22)+Math_fround($11*$16))+Math_fround($10*$15);HEAPF32[$5+36>>2]=Math_fround(Math_fround($12*$22)+Math_fround($6*$16))+Math_fround($7*$15);HEAP32[$5+28>>2]=0;$8=Math_fround($25*$4);$9=Math_fround($26*$4);$4=Math_fround($27*$4);HEAPF32[$5+48>>2]=Math_fround(Math_fround($23*$8)+Math_fround($18*$9))+Math_fround($17*$4);HEAPF32[$5+32>>2]=Math_fround(Math_fround($8*$22)+Math_fround($9*$16))+Math_fround($4*$15);HEAPF32[$5+24>>2]=Math_fround($19*$10)+Math_fround(Math_fround($20*$24)+Math_fround($21*$11));HEAPF32[$5+20>>2]=Math_fround($19*$7)+Math_fround(Math_fround($20*$12)+Math_fround($21*$6));HEAPF32[$5+16>>2]=Math_fround($19*$4)+Math_fround(Math_fround($20*$8)+Math_fround($21*$9));btMatrix3x3__getRotation_28btQuaternion__29_20const($5+16|0,$5);$8=HEAPF32[$5>>2];$7=HEAPF32[$5+4>>2];$6=HEAPF32[$5+8>>2];$9=HEAPF32[$5+12>>2];$4=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround(Math_fround($8*$8)+Math_fround($7*$7))+Math_fround($6*$6))+Math_fround($9*$9)))));$6=Math_fround($6*$4);HEAPF32[$5+8>>2]=$6;$7=Math_fround($7*$4);HEAPF32[$5+4>>2]=$7;$8=Math_fround($8*$4);HEAPF32[$5>>2]=$8;$4=Math_fround($9*$4);HEAPF32[$5+12>>2]=$4;$4=acosf(Math_fround(Math_min(Math_fround(Math_max($4,Math_fround(-1))),Math_fround(1))));HEAPF32[$3>>2]=$4+$4;HEAP32[$2+12>>2]=0;HEAPF32[$2+8>>2]=$6;HEAPF32[$2+4>>2]=$7;HEAPF32[$2>>2]=$8;$4=Math_fround(Math_fround(Math_fround($8*$8)+Math_fround($7*$7))+Math_fround($6*$6));label$1:{if(!!($4>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=1065353216;HEAP32[$2+4>>2]=0;break label$1}$4=Math_fround(Math_fround(1)/Math_fround(Math_sqrt($4)));HEAPF32[$2+8>>2]=$6*$4;HEAPF32[$2+4>>2]=$7*$4;HEAPF32[$2>>2]=$8*$4}global$0=$5- -64|0}function b2GearJoint__b2GearJoint_28b2GearJointDef_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=0,$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0);b2Joint__b2Joint_28b2JointDef_20const__29($0,$1);HEAP32[$0>>2]=545212;$2=HEAP32[$1+20>>2];HEAP32[$0+68>>2]=$2;$15=HEAP32[$1+24>>2];HEAP32[$0+72>>2]=$15;$13=HEAP32[$2+4>>2];HEAP32[$0+76>>2]=$13;$11=HEAP32[$15+4>>2];HEAP32[$0+80>>2]=$11;label$1:{if($13+ -1>>>0<2){if($11+ -1>>>0>=2){break label$1}$3=HEAP32[$2+48>>2];HEAP32[$0+84>>2]=$3;$4=HEAP32[$2+52>>2];HEAP32[$0+48>>2]=$4;label$3:{if(($13|0)==1){$8=HEAPF32[$3+56>>2];$5=HEAPF32[$4+56>>2];$3=HEAP32[$2+72>>2];HEAP32[$0+108>>2]=HEAP32[$2+68>>2];HEAP32[$0+112>>2]=$3;$3=HEAP32[$2+80>>2];HEAP32[$0+92>>2]=HEAP32[$2+76>>2];HEAP32[$0+96>>2]=$3;$6=HEAPF32[$2+116>>2];$3=HEAP32[$2+116>>2];HEAP32[$0+124>>2]=0;HEAP32[$0+128>>2]=0;HEAP32[$0+140>>2]=$3;$8=Math_fround(Math_fround($5-$8)-$6);break label$3}$5=HEAPF32[$3+24>>2];$6=HEAPF32[$3+20>>2];$10=HEAPF32[$4+24>>2];$14=HEAPF32[$4+20>>2];$16=HEAPF32[$4+16>>2];$17=HEAPF32[$3+16>>2];$12=HEAPF32[$4+12>>2];$7=HEAPF32[$3+12>>2];$18=HEAPF32[$2+72>>2];$3=HEAP32[$2+72>>2];$9=HEAPF32[$2+68>>2];HEAP32[$0+108>>2]=HEAP32[$2+68>>2];HEAP32[$0+112>>2]=$3;$19=HEAPF32[$2+80>>2];$4=HEAP32[$2+80>>2];$8=HEAPF32[$2+76>>2];HEAP32[$0+92>>2]=HEAP32[$2+76>>2];HEAP32[$0+96>>2]=$4;HEAP32[$0+140>>2]=HEAP32[$2+100>>2];$20=HEAPF32[$2+88>>2];$13=HEAP32[$2+88>>2];$21=HEAPF32[$2+84>>2];HEAP32[$0+124>>2]=HEAP32[$2+84>>2];HEAP32[$0+128>>2]=$13;$7=Math_fround($12-$7);$12=$19;$7=Math_fround($7+Math_fround(Math_fround($10*$8)-Math_fround($14*$12)));$8=Math_fround(Math_fround($16-$17)+Math_fround(Math_fround($14*$8)+Math_fround($10*$12)));$8=Math_fround(Math_fround(Math_fround(Math_fround(Math_fround($5*$7)+Math_fround($6*$8))-$9)*$21)+Math_fround(Math_fround(Math_fround(Math_fround($5*$8)-Math_fround($6*$7))-$18)*$20))}$3=HEAP32[$15+48>>2];HEAP32[$0+88>>2]=$3;$4=HEAP32[$15+52>>2];HEAP32[$0+52>>2]=$4;label$5:{if(($11|0)==1){$5=HEAPF32[$3+56>>2];$6=HEAPF32[$4+56>>2];$3=HEAP32[$1+24>>2];$4=HEAP32[$3+72>>2];HEAP32[$0+116>>2]=HEAP32[$3+68>>2];HEAP32[$0+120>>2]=$4;$4=HEAP32[$3+80>>2];HEAP32[$0+100>>2]=HEAP32[$3+76>>2];HEAP32[$0+104>>2]=$4;$10=HEAPF32[$3+116>>2];$3=HEAP32[$3+116>>2];HEAP32[$0+132>>2]=0;HEAP32[$0+136>>2]=0;HEAP32[$0+144>>2]=$3;$5=Math_fround(Math_fround($6-$5)-$10);break label$5}$6=HEAPF32[$3+24>>2];$10=HEAPF32[$3+20>>2];$14=HEAPF32[$4+24>>2];$16=HEAPF32[$4+20>>2];$17=HEAPF32[$4+16>>2];$12=HEAPF32[$3+16>>2];$7=HEAPF32[$4+12>>2];$9=HEAPF32[$3+12>>2];$2=HEAP32[$1+24>>2];$18=HEAPF32[$2+72>>2];$3=HEAP32[$2+72>>2];$21=HEAPF32[$2+68>>2];HEAP32[$0+116>>2]=HEAP32[$2+68>>2];HEAP32[$0+120>>2]=$3;$19=HEAPF32[$2+80>>2];$4=HEAP32[$2+80>>2];$5=HEAPF32[$2+76>>2];HEAP32[$0+100>>2]=HEAP32[$2+76>>2];HEAP32[$0+104>>2]=$4;HEAP32[$0+144>>2]=HEAP32[$2+100>>2];$20=HEAPF32[$2+88>>2];$11=HEAP32[$2+88>>2];$22=HEAPF32[$2+84>>2];HEAP32[$0+132>>2]=HEAP32[$2+84>>2];HEAP32[$0+136>>2]=$11;$9=Math_fround($7-$9);$7=$19;$9=Math_fround($9+Math_fround(Math_fround($14*$5)-Math_fround($16*$7)));$5=Math_fround(Math_fround($17-$12)+Math_fround(Math_fround($16*$5)+Math_fround($14*$7)));$5=Math_fround(Math_fround(Math_fround(Math_fround(Math_fround($6*$9)+Math_fround($10*$5))-$21)*$22)+Math_fround(Math_fround(Math_fround(Math_fround($6*$5)-Math_fround($10*$9))-$18)*$20))}$6=HEAPF32[$1+28>>2];HEAP32[$0+156>>2]=0;HEAPF32[$0+152>>2]=$6;HEAPF32[$0+148>>2]=$8+Math_fround($5*$6);return}__assert_fail(89793,89851,53,89902);abort()}__assert_fail(89914,89851,54,89902);abort()}function dmGameSystem__CompSpriteSetProperty_28dmGameObject__ComponentSetPropertyParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=0,$6=0,$7=0,$8=0,$9=0;$3=HEAP32[$0+4>>2];$2=HEAP32[$3+16>>2];$1=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$3+20>>2]-$2>>3>>>0>$1>>>0){$5=HEAP32[$3>>2];$6=HEAP32[$2+($1<<3)>>2];if(HEAP32[$3+4>>2]-$5>>10>>>0>$6>>>0){label$3:{$2=HEAP32[$0+16>>2];$1=HEAP32[$0+20>>2];if(!(($2|0)==HEAP32[146610]&($1|0)==HEAP32[146611]|($2|0)==HEAP32[146612]&($1|0)==HEAP32[146613]|($2|0)==HEAP32[146614]&($1|0)==HEAP32[146615])){if(($2|0)!=HEAP32[146616]|($1|0)!=HEAP32[146617]){break label$3}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector3__2c_20dmGameSystem__PropVector3_20const__29($2,$1,$0+32|0,($5+($6<<10)|0)+48|0,586440)|0}label$5:{if(!(($2|0)==HEAP32[146624]&($1|0)==HEAP32[146625]|(($2|0)==HEAP32[146620]&($1|0)==HEAP32[146621]|($2|0)==HEAP32[146622]&($1|0)==HEAP32[146623]))){if(($2|0)!=HEAP32[146626]|($1|0)!=HEAP32[146627]){break label$5}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector3__2c_20dmGameSystem__PropVector3_20const__29($2,$1,$0+32|0,($5+($6<<10)|0)- -64|0,586480)|0}label$7:{if(($2|0)==HEAP32[146630]&($1|0)==HEAP32[146631]){$2=-4;if(HEAP32[$0+32>>2]){break label$7}$9=HEAPF64[$0+40>>3];$3=$5+($6<<10)|0;$0=HEAPU16[$3+1010>>1];HEAP16[$3+1010>>1]=$0|16;$4=Math_fround($9);$4=$4>2]=$0&2?Math_fround(Math_fround(1)-$4):$4;return 0}if(($2|0)==HEAP32[146632]&($1|0)==HEAP32[146633]){$2=-4;if(HEAP32[$0+32>>2]){break label$7}HEAPF32[($5+($6<<10)|0)+1004>>2]=HEAPF64[$0+40>>3];return 0}if(($2|0)==HEAP32[146590]&($1|0)==HEAP32[146591]){$1=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$0+32|0;$0=$5+($6<<10)|0;$3=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29($1,$3,HEAP32[146572],HEAP32[146573],$0+980|0);$1=$0;$0=HEAPU16[$0+1010>>1];HEAP16[$1+1010>>1]=($3?$0&256:256)|$0&65279;return $3|0}$8=$5+($6<<10)|0;if(($2|0)==HEAP32[146588]&($1|0)==HEAP32[146589]){$1=$5+($6<<10)|0;$7=$1;$2=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29(HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2],$0+32|0,HEAP32[146582],HEAP32[146583],$1+976|0);$0=HEAPU16[$1+1010>>1];HEAP16[$1+1010>>1]=($2?$0&256:256)|$0&65279;if($2){break label$7}$4=HEAPF32[$1+1e3>>2];$4=$0&2?Math_fround(Math_fround(1)-$4):$4;$2=HEAP32[$1+984>>2];$1=HEAP32[$1+988>>2];label$12:{if(!($0&1)){break label$12}$4=Math_fround($4+$4);if(!($4>Math_fround(1))){break label$12}$4=Math_fround(Math_fround(2)-$4)}$0=$5+($6<<10)|0;dmGameSystem__PlayAnimation_28dmGameSystem__SpriteComponent__2c_20unsigned_20long_20long_2c_20float_2c_20float_29($8,$2,$1,$4,HEAPF32[$0+1004>>2]);$2=HEAP32[$7+976>>2];if(!$2){$2=HEAP32[HEAP32[$0+188>>2]+8>>2]}$0=$3;$7=$0;$1=HEAPU8[$0+96|0];if($1&2){$0=0}else{$0=(HEAP32[HEAP32[$2+64>>2]+72>>2]!=0)<<2}$0=$0|$1;HEAP8[$7+96|0]=$0;HEAP8[$3+96|0]=($1|HEAPU8[HEAP32[$2+64>>2]+72|0]<<1)&2|$0&253;return 0}$5=$5+($6<<10)|0;$3=HEAP32[$5+980>>2];if(!$3){$3=HEAP32[HEAP32[$5+188>>2]+16>>2]}$2=dmGameSystem__SetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20void_20_28__29_28void__2c_20unsigned_20long_20long_2c_20unsigned_20int__2c_20dmGameObject__PropertyVar_20const__29_2c_20void__29($3,$2,$1,$0+32|0,486,$8)}return $2|0}}__assert_fail(52907,52459,430,52059);abort()}function convert_channels_short_interleaved($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=Math_fround(0),$18=0,$19=0;$18=global$0-128|0;global$0=$18;label$1:{if(!(($2|0)>6|($0|0)>2|($0|0)==($2|0))){if(($0|0)==2){if(($5|0)<=0){break label$1}$0=16;while(1){$15=memset($18,0,128);$12=$0+$7|0;$14=($12|0)>($5|0);$0=$14?$5-$7|0:$0;if(!(($2|0)<1|($0|0)<1)){$10=$4+$7|0;$8=0;while(1){$6=(HEAPU8[(Math_imul($2,6)+215200|0)+$8|0]&6)+ -2|0;label$7:{if($6>>>0>4){break label$7}label$8:{switch($6-1|0){case 3:$16=HEAP32[($8<<2)+$3>>2];$6=0;while(1){$9=$6<<3;$13=$9+$15|0;$17=HEAPF32[$16+($6+$10<<2)>>2];HEAPF32[$13>>2]=$17+HEAPF32[$13>>2];$9=$15+($9|4)|0;HEAPF32[$9>>2]=$17+HEAPF32[$9>>2];$6=$6+1|0;if(($6|0)<($0|0)){continue}break}break label$7;case 1:$16=HEAP32[($8<<2)+$3>>2];$6=0;while(1){$9=$15+($6<<3|4)|0;HEAPF32[$9>>2]=HEAPF32[$16+($6+$10<<2)>>2]+HEAPF32[$9>>2];$6=$6+1|0;if(($6|0)<($0|0)){continue}break}break label$7;case 0:case 2:break label$7;default:break label$8}}$16=HEAP32[($8<<2)+$3>>2];$6=0;while(1){$9=$15+($6<<3)|0;HEAPF32[$9>>2]=HEAPF32[$16+($6+$10<<2)>>2]+HEAPF32[$9>>2];$6=$6+1|0;if(($6|0)<($0|0)){continue}break}}$8=$8+1|0;if(($8|0)!=($2|0)){continue}break}}if($0<<1>=1){$8=$7<<1;$10=($14?$5:$12)+$11<<1;$6=0;while(1){$12=(wasm2js_scratch_store_f32(Math_fround(HEAPF32[$15+($6<<2)>>2]+Math_fround(384))),wasm2js_scratch_load_i32(0));$12=($12|0)>1136623616?$12:1136623616;HEAP16[($6+$8<<1)+$1>>1]=($12|0)<1136689151?$12:1136689151;$6=$6+1|0;if(($10|0)!=($6|0)){continue}break}}$11=$11+ -16|0;$7=$7+16|0;if(($7|0)<($5|0)){continue}break}$10=0;$11=0;$6=16;while(1){$8=memset($15,0,128);$14=$6+$11|0;$16=($14|0)>($5|0);$6=$16?$5-$11|0:$6;if(!(($2|0)<1|($6|0)<1)){$12=$4+$11|0;$7=0;while(1){$0=(HEAPU8[(Math_imul($2,6)+215200|0)+$7|0]&6)+ -2|0;label$19:{if($0>>>0>4){break label$19}label$20:{switch($0-1|0){case 1:$9=HEAP32[($7<<2)+$3>>2];$0=0;while(1){$13=$8+($0<<3|4)|0;HEAPF32[$13>>2]=HEAPF32[$9+($0+$12<<2)>>2]+HEAPF32[$13>>2];$0=$0+1|0;if(($0|0)<($6|0)){continue}break}break label$19;default:$9=HEAP32[($7<<2)+$3>>2];$0=0;while(1){$13=$8+($0<<3)|0;HEAPF32[$13>>2]=HEAPF32[$9+($0+$12<<2)>>2]+HEAPF32[$13>>2];$0=$0+1|0;if(($0|0)<($6|0)){continue}break}break label$19;case 0:case 2:break label$19;case 3:break label$20}}$9=HEAP32[($7<<2)+$3>>2];$0=0;while(1){$13=$0<<3;$19=$13+$8|0;$17=HEAPF32[$9+($0+$12<<2)>>2];HEAPF32[$19>>2]=$17+HEAPF32[$19>>2];$13=$8+($13|4)|0;HEAPF32[$13>>2]=$17+HEAPF32[$13>>2];$0=$0+1|0;if(($0|0)<($6|0)){continue}break}}$7=$7+1|0;if(($7|0)!=($2|0)){continue}break}}if($6<<1>=1){$7=$11<<1;$12=($16?$5:$14)+$10<<1;$0=0;while(1){$14=(wasm2js_scratch_store_f32(Math_fround(HEAPF32[$8+($0<<2)>>2]+Math_fround(384))),wasm2js_scratch_load_i32(0));$14=($14|0)>1136623616?$14:1136623616;HEAP16[($0+$7<<1)+$1>>1]=($14|0)<1136689151?$14:1136689151;$0=$0+1|0;if(($12|0)!=($0|0)){continue}break}}$10=$10+ -16|0;$11=$11+16|0;if(($11|0)<($5|0)){continue}break}break label$1}__assert_fail(215242,213438,5194,215253);abort()}if(($5|0)<1){break label$1}$11=($0|0)<($2|0)?$0:$2;if(($11|0)<=0){$2=$0<<1;while(1){if(($0|0)>=1){$7=0;memset($1,0,$2);while(1){$1=$1+2|0;$7=$7+1|0;if(($7|0)!=($0|0)){continue}break}}$6=$6+1|0;if(($6|0)!=($5|0)){continue}break}break label$1}$15=$0-$11<<1;while(1){$8=$4+$6|0;$7=0;while(1){$10=(wasm2js_scratch_store_f32(Math_fround(HEAPF32[HEAP32[($7<<2)+$3>>2]+($8<<2)>>2]+Math_fround(384))),wasm2js_scratch_load_i32(0));$10=($10|0)>1136623616?$10:1136623616;HEAP16[$1>>1]=($10|0)<1136689151?$10:1136689151;$1=$1+2|0;$7=$7+1|0;if(($11|0)!=($7|0)){continue}break}if(($0|0)>($2|0)){memset($1,0,$15);$7=$11;while(1){$1=$1+2|0;$7=$7+1|0;if(($7|0)!=($0|0)){continue}break}}$6=$6+1|0;if(($6|0)!=($5|0)){continue}break}}global$0=$18+128|0}function buffer_meth_receive($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$4=global$0-1056|0;global$0=$4;$13=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$3=luaL_optlstring($0,3,120274,$4+12|0);timeout_markstart(HEAP32[$1+20>>2]);$2=$4+16|0;HEAP32[$2+4>>2]=0;HEAP32[$2+8>>2]=$0;HEAP32[$2>>2]=$2+12;luaL_addlstring($4+16|0,$3,HEAP32[$4+12>>2]);label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{if(!lua_isnumber($0,2)){$3=luaL_optlstring($0,2,120275,0);if(HEAPU8[$3|0]!=42){break label$6}$3=HEAPU8[$3+1|0]+ -97|0;if($3>>>0>11){break label$6}label$9:{switch($3-1|0){case 10:$14=$1+32|0;$5=HEAP32[$1+28>>2];$2=HEAP32[$1+24>>2];$11=$4+1052|0;while(1){$6=0;$7=0;if($2>>>0>=$5>>>0){$3=HEAP32[$1+16>>2];$7=FUNCTION_TABLE[HEAP32[$3+8>>2]](HEAP32[$3>>2],$14,8192,$4+1052|0,HEAP32[$1+20>>2])|0;HEAP32[$1+24>>2]=0;$5=HEAP32[$4+1052>>2];HEAP32[$1+28>>2]=$5;$2=0}$3=$1;label$13:{$9=$5-$2|0;if($9){$10=($1+$2|0)+32|0;while(1){label$16:{label$17:{$8=$6+$10|0;$5=HEAPU8[$8|0];$2=$5+ -10|0;if($2>>>0>3){break label$17}switch($2-1|0){case 2:break label$16;case 0:case 1:break label$17;default:break label$13}}$2=HEAP32[$4+16>>2];if($2>>>0>=$11>>>0){luaL_prepbuffer($4+16|0);$5=HEAPU8[$8|0];$2=HEAP32[$4+16>>2]}HEAP32[$4+16>>2]=$2+1;HEAP8[$2|0]=$5}$6=$6+1|0;if(($9|0)!=($6|0)){continue}break}$5=HEAP32[$1+28>>2];$2=HEAP32[$1+24>>2]}$2=$2+$9|0;HEAP32[$3+24>>2]=$2;HEAP32[$1+12>>2]=$9+HEAP32[$1+12>>2];if($2>>>0>=$5>>>0){HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;$5=0;$2=0}if(!$7){continue}break label$3}break}$3=$6+1|0;HEAP32[$1+12>>2]=$3+HEAP32[$1+12>>2];$3=$3+HEAP32[$1+24>>2]|0;HEAP32[$1+24>>2]=$3;if($3>>>0>2]){break label$7}HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;break label$7;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break label$6;default:break label$9}}$10=$1+32|0;while(1){if($7){if(($7|0)!=-2){break label$7}$7=-2;if($5){break label$5}break label$3}$7=0;$8=$4+16|0;$6=HEAP32[$1+24>>2];$2=HEAP32[$1+28>>2];if($6>>>0>=$2>>>0){$3=HEAP32[$1+16>>2];$7=FUNCTION_TABLE[HEAP32[$3+8>>2]](HEAP32[$3>>2],$10,8192,$4+1052|0,HEAP32[$1+20>>2])|0;HEAP32[$1+24>>2]=0;$2=HEAP32[$4+1052>>2];HEAP32[$1+28>>2]=$2;$6=0}$2=$2-$6|0;luaL_addlstring($8,($1+$6|0)+32|0,$2);HEAP32[$1+12>>2]=$2+HEAP32[$1+12>>2];$3=$2+HEAP32[$1+24>>2]|0;HEAP32[$1+24>>2]=$3;$5=$2+$5|0;if($3>>>0>2]){continue}HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;continue}}$12=lua_tonumber($0,2);$2=$12>=0;$3=~~$12>>>0;label$25:{if($2&$12<4294967296){break label$25}$3=0}if(!$2){luaL_argerror($0,2,120278)}$2=HEAP32[$4+12>>2];if($2>>>0>=$3>>>0?$2:0){break label$5}$10=$1+32|0;$11=$3-$2|0;$2=0;while(1){if($7){break label$3}$7=0;$9=$4+16|0;$6=HEAP32[$1+24>>2];$5=HEAP32[$1+28>>2];if($6>>>0>=$5>>>0){$3=HEAP32[$1+16>>2];$7=FUNCTION_TABLE[HEAP32[$3+8>>2]](HEAP32[$3>>2],$10,8192,$4+1052|0,HEAP32[$1+20>>2])|0;HEAP32[$1+24>>2]=0;$5=HEAP32[$4+1052>>2];HEAP32[$1+28>>2]=$5;$6=0}$8=$5-$6|0;$3=$11-$2|0;$8=$8>>>0<$3>>>0?$8:$3;luaL_addlstring($9,($1+$6|0)+32|0,$8);HEAP32[$1+12>>2]=$8+HEAP32[$1+12>>2];$3=$8+HEAP32[$1+24>>2]|0;HEAP32[$1+24>>2]=$3;if($3>>>0>=HEAPU32[$1+28>>2]){HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0}$2=$2+$8|0;if($2>>>0<$11>>>0){continue}break}}luaL_pushresult($4+16|0);if(!$7){break label$4}break label$2}luaL_argerror($0,2,120278)}luaL_pushresult($4+16|0)}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;break label$1}luaL_pushresult($4+16|0)}$1=HEAP32[$1+16>>2];lua_pushstring($0,FUNCTION_TABLE[HEAP32[$1+12>>2]](HEAP32[$1>>2],$7)|0);lua_pushvalue($0,-2);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;lua_replace($0,-4)}global$0=$4+1056|0;return(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4)-$13|0}function btBvhTriangleMeshShape__performRaycast_28btTriangleCallback__2c_20btVector3_20const__2c_20btVector3_20const__29__MyNodeOverlapCallback__processNode_28int_2c_20int_29($0,$1,$2){$0=$0|0;$1=$1|0;$2=$2|0;var $3=0,$4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=0,$12=0,$13=0,$14=0;$4=global$0-80|0;global$0=$4;$9=HEAP32[$0+4>>2];FUNCTION_TABLE[HEAP32[HEAP32[$9>>2]+16>>2]]($9,$4+28|0,$4+24|0,$4+20|0,$4+16|0,$4+12|0,$4+8|0,$4+4|0,$4,$1);$5=HEAP32[$0+4>>2];$9=$5+12|0;$11=HEAP32[$4+12>>2]+Math_imul(HEAP32[$4+8>>2],$2)|0;$12=HEAP32[$4+16>>2];$13=HEAP32[$4+28>>2];$14=HEAP32[$4+20>>2];label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{if(HEAP32[$4>>2]!=3){$3=Math_imul(HEAP32[$11+8>>2],$12)+$13|0;if($14){break label$7}$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2];$3=$3+8|0;break label$6}$3=Math_imul(HEAPU16[$11+4>>1],$12)+$13|0;label$9:{if($14){$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);$3=$9;break label$9}$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2];$3=$3+8|0}$10=HEAPF32[$3>>2];HEAP32[$4+76>>2]=0;HEAPF32[$4+68>>2]=$8;HEAPF32[$4+72>>2]=$10*$6;HEAPF32[$4+64>>2]=$7;$3=Math_imul(HEAPU16[$11+2>>1],$12)+$13|0;if(!$14){break label$5}$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);$3=$9;break label$4}$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);$3=$9}$10=HEAPF32[$3>>2];HEAP32[$4+76>>2]=0;HEAPF32[$4+68>>2]=$8;HEAPF32[$4+72>>2]=$10*$6;HEAPF32[$4+64>>2]=$7;$3=Math_imul(HEAP32[$11+4>>2],$12)+$13|0;if(!$14){break label$3}$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);$3=$9;break label$2}$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2];$3=$3+8|0}$10=HEAPF32[$3>>2];HEAP32[$4+60>>2]=0;HEAPF32[$4+52>>2]=$8;HEAPF32[$4+56>>2]=$10*$6;HEAPF32[$4+48>>2]=$7;$3=Math_imul(HEAPU16[$11>>1],$12)+$13|0;label$11:{if($14){$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);break label$11}$9=$3+8|0;$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2]}$10=HEAPF32[$9>>2];HEAPF32[$4+32>>2]=$7;$6=Math_fround($10*$6);break label$1}$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2];$3=$3+8|0}$10=HEAPF32[$3>>2];HEAP32[$4+60>>2]=0;HEAPF32[$4+52>>2]=$8;HEAPF32[$4+56>>2]=$10*$6;HEAPF32[$4+48>>2]=$7;$3=Math_imul(HEAP32[$11>>2],$12)+$13|0;label$13:{if($14){$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);break label$13}$9=$3+8|0;$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2]}$10=HEAPF32[$9>>2];HEAPF32[$4+32>>2]=$7;$6=Math_fround($10*$6)}HEAP32[$4+44>>2]=0;HEAPF32[$4+40>>2]=$6;HEAPF32[$4+36>>2]=$8;$9=HEAP32[$0+8>>2];FUNCTION_TABLE[HEAP32[HEAP32[$9>>2]+8>>2]]($9,$4+32|0,$1,$2);$0=HEAP32[$0+4>>2];FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+24>>2]]($0,$1);global$0=$4+80|0}function mbedtls_mpi_exp_mod($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$6=global$0-1584|0;global$0=$6;$5=-4;label$1:{if((mbedtls_mpi_cmp_int($3,0)|0)<1){break label$1}$7=HEAP32[HEAP32[$3+8>>2]>>2];if(!($7&1)){break label$1}if((mbedtls_mpi_cmp_int($2,0)|0)<0){break label$1}mpi_montg_init($6+1580|0,$7);$7=$6+1568|0;HEAP32[$7+8>>2]=0;HEAP32[$7>>2]=1;HEAP32[$7+4>>2]=0;$7=$6+1552|0;HEAP32[$7+8>>2]=0;HEAP32[$7>>2]=1;HEAP32[$7+4>>2]=0;HEAP32[$6+8>>2]=0;HEAP32[$6>>2]=1;HEAP32[$6+4>>2]=0;memset($6+16|0,0,1536);$9=6;$7=mbedtls_mpi_bitlen($2);label$2:{if($7>>>0>671){break label$2}$9=5;if($7>>>0>239){break label$2}$9=4;if($7>>>0>79){break label$2}$9=$7>>>0>23?3:1}$7=HEAP32[$3+4>>2]+1|0;$5=mbedtls_mpi_grow($0,$7);label$3:{if($5){break label$3}$12=$6+16|12;$5=mbedtls_mpi_grow($12,$7);if($5){break label$3}$5=mbedtls_mpi_grow($6+1552|0,$7<<1);if($5){break label$3}$15=HEAP32[$1>>2];if(($15|0)==-1){$5=mbedtls_mpi_copy($6,$1);if($5){break label$3}HEAP32[$6>>2]=1;$1=$6}label$5:{label$6:{if(!(HEAP32[$4+8>>2]?$4:0)){$5=mbedtls_mpi_lset($6+1568|0,1);if($5){break label$3}$5=mbedtls_mpi_shift_l($6+1568|0,HEAP32[$3+4>>2]<<6);if($5){break label$3}$5=mbedtls_mpi_mod_mpi($6+1568|0,$6+1568|0,$3);if($5){break label$3}if(!$4){break label$5}$5=$6+1568|0;$7=$4;break label$6}$5=$4;$7=$6+1568|0}$8=HEAP32[$5+4>>2];HEAP32[$7>>2]=HEAP32[$5>>2];HEAP32[$7+4>>2]=$8;HEAP32[$7+8>>2]=HEAP32[$5+8>>2]}label$9:{if((mbedtls_mpi_cmp_mpi($1,$3)|0)>=0){$5=mbedtls_mpi_mod_mpi($12,$1,$3);if(!$5){break label$9}break label$3}$5=mbedtls_mpi_copy($12,$1);if($5){break label$3}}$10=HEAP32[$6+1580>>2];$5=mpi_montmul($12,$6+1568|0,$3,$10,$6+1552|0);if($5){break label$3}$5=mbedtls_mpi_copy($0,$6+1568|0);if($5){break label$3}$5=mpi_montred($0,$3,$10,$6+1552|0);if($5){break label$3}label$11:{if($9>>>0<2){break label$11}$11=$9+ -1|0;$8=1<<$11;$1=($6+16|0)+Math_imul($8,12)|0;$5=mbedtls_mpi_grow($1,HEAP32[$3+4>>2]+1|0);if($5){break label$3}$5=mbedtls_mpi_copy($1,$12);if($5){break label$3}$7=0;while(1){$5=mpi_montmul($1,$1,$3,$10,$6+1552|0);if($5){break label$3}$7=$7+1|0;if(($11|0)!=($7|0)){continue}break}while(1){$1=$8+1|0;if($1>>>$9){break label$11}$7=($6+16|0)+Math_imul($1,12)|0;$5=mbedtls_mpi_grow($7,HEAP32[$3+4>>2]+1|0);if($5){break label$3}$5=mbedtls_mpi_copy($7,($6+16|0)+Math_imul($8,12)|0);if($5){break label$3}$8=$1;$5=mpi_montmul($7,$12,$3,$10,$6+1552|0);if(!$5){continue}break}break label$3}$14=HEAP32[$2+4>>2];$11=0;$1=0;$7=0;while(1){if(!$1){if(!$14){if($13){$7=1<<$9;$1=0;while(1){$5=mpi_montmul($0,$0,$3,$10,$6+1552|0);if($5){break label$3}$11=$11<<1;if($7&$11){$5=mpi_montmul($0,$12,$3,$10,$6+1552|0);if($5){break label$3}}$1=$1+1|0;if(($13|0)!=($1|0)){continue}break}}$5=mpi_montred($0,$3,$10,$6+1552|0);if($5|($15|0)!=-1){break label$3}$5=0;if(!HEAP32[$2+4>>2]|!(HEAP8[HEAP32[$2+8>>2]]&1)){break label$3}HEAP32[$0>>2]=-1;$5=mbedtls_mpi_add_mpi($0,$3,$0);break label$3}$14=$14+ -1|0;$1=32}$5=$7;$7=0;$1=$1+ -1|0;$8=HEAP32[HEAP32[$2+8>>2]+($14<<2)>>2]>>>$1&1;if(!($8|$5)){continue}if(!($8|($5|0)!=1)){$7=1;$5=mpi_montmul($0,$0,$3,$10,$6+1552|0);if(!$5){continue}break label$3}$13=$13+1|0;$11=$8<<$9-$13|$11;$7=2;$8=0;if(($9|0)!=($13|0)){continue}while(1){$5=mpi_montmul($0,$0,$3,$10,$6+1552|0);if($5){break label$3}$8=$8+1|0;if(($8|0)!=($9|0)){continue}break}$5=Math_imul($11,12);$7=1;$11=0;$13=0;$5=mpi_montmul($0,$5+($6+16|0)|0,$3,$10,$6+1552|0);if(!$5){continue}break}}$3=1<<$9+ -1;if(!($3>>>$9)){while(1){mbedtls_mpi_free(($6+16|0)+Math_imul($3,12)|0);$3=$3+1|0;if(!($3>>>$9)){continue}break}}mbedtls_mpi_free($6+16|12);mbedtls_mpi_free($6+1552|0);mbedtls_mpi_free($6);if(HEAP32[$4+8>>2]?$4:0){break label$1}mbedtls_mpi_free($6+1568|0)}global$0=$6+1584|0;return $5}function b2CollideEdgeAndCircle_28b2Manifold__2c_20b2EdgeShape_20const__2c_20b2Transform_20const__2c_20b2CircleShape_20const__2c_20b2Transform_20const__29($0,$1,$2,$3,$4){var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=0,$19=0,$20=Math_fround(0),$21=0,$22=0,$23=Math_fround(0);HEAP32[$0+68>>2]=0;$8=Math_fround(HEAPF32[$1+8>>2]+HEAPF32[$3+8>>2]);$18=HEAP32[$1+24>>2];$21=HEAP32[$1+32>>2];$19=HEAP32[$1+28>>2];$22=HEAP32[$1+36>>2];label$1:{$5=HEAPF32[$4+12>>2];$6=HEAPF32[$3+24>>2];$7=HEAPF32[$4+8>>2];$9=HEAPF32[$3+28>>2];$10=Math_fround(Math_fround(HEAPF32[$4>>2]+Math_fround(Math_fround($5*$6)-Math_fround($7*$9)))-HEAPF32[$2>>2]);$11=HEAPF32[$2+12>>2];$6=Math_fround(Math_fround(Math_fround(Math_fround($6*$7)+Math_fround($5*$9))+HEAPF32[$4+4>>2])-HEAPF32[$2+4>>2]);$12=HEAPF32[$2+8>>2];$7=Math_fround(Math_fround($10*$11)+Math_fround($6*$12));$9=HEAPF32[$1+24>>2];$14=Math_fround($7-$9);$13=HEAPF32[$1+32>>2];$5=Math_fround($13-$9);$10=Math_fround(Math_fround($11*$6)-Math_fround($10*$12));$11=HEAPF32[$1+28>>2];$15=Math_fround($10-$11);$12=HEAPF32[$1+36>>2];$6=Math_fround($12-$11);$16=Math_fround(Math_fround($14*$5)+Math_fround($15*$6));label$2:{if(!!($16<=Math_fround(0))){$5=Math_fround(Math_fround($14*$14)+Math_fround($15*$15));if($5>Math_fround($8*$8)|(Math_fround(Math_fround(Math_fround($9-$7)*Math_fround($9-HEAPF32[$1+40>>2]))+Math_fround(Math_fround($11-$10)*Math_fround($11-HEAPF32[$1+44>>2])))>Math_fround(0)?HEAPU8[$1+56|0]:0)){break label$2}HEAP32[$0+64>>2]=0;HEAP32[$0+68>>2]=1;HEAP32[$0+56>>2]=$18;HEAP32[$0+48>>2]=0;HEAP32[$0+52>>2]=0;HEAP32[$0+16>>2]=0;HEAP32[$0+60>>2]=$19;$1=HEAP32[$3+28>>2];HEAP32[$0>>2]=HEAP32[$3+24>>2];HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-Math_fround(Math_sqrt($5));return}$17=Math_fround(Math_fround($5*Math_fround($13-$7))+Math_fround($6*Math_fround($12-$10)));if(!!($17<=Math_fround(0))){$5=Math_fround($7-$13);$6=Math_fround($10-$12);$7=Math_fround(Math_fround($5*$5)+Math_fround($6*$6));if($7>Math_fround($8*$8)|(Math_fround(Math_fround($5*Math_fround(HEAPF32[$1+48>>2]-$13))+Math_fround($6*Math_fround(HEAPF32[$1+52>>2]-$12)))>Math_fround(0)?HEAPU8[$1+57|0]:0)){break label$2}HEAP32[$0+64>>2]=0;HEAP32[$0+68>>2]=1;HEAP32[$0+56>>2]=$21;HEAP32[$0+48>>2]=0;HEAP32[$0+52>>2]=0;HEAP32[$0+16>>2]=1;HEAP32[$0+60>>2]=$22;$1=HEAP32[$3+28>>2];HEAP32[$0>>2]=HEAP32[$3+24>>2];HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-Math_fround(Math_sqrt($7));return}$20=Math_fround(Math_fround($5*$5)+Math_fround($6*$6));if(!($20>Math_fround(0))){break label$1}$23=$7;$7=Math_fround(Math_fround(1)/$20);$9=Math_fround($23-Math_fround($7*Math_fround(Math_fround($17*$9)+Math_fround($16*$13))));$7=Math_fround($10-Math_fround($7*Math_fround(Math_fround($17*$11)+Math_fround($16*$12))));$7=Math_fround(Math_fround($9*$9)+Math_fround($7*$7));if($7>Math_fround($8*$8)){break label$2}HEAP32[$0+64>>2]=1;HEAP32[$0+68>>2]=1;HEAP32[$0+56>>2]=$18;$1=$0;$2=Math_fround(Math_fround($15*$5)-Math_fround($14*$6))>2]=$8;HEAP32[$0+16>>2]=65536;HEAP32[$0+60>>2]=$19;HEAPF32[$0+52>>2]=$5;$1=HEAP32[$3+28>>2];HEAP32[$0>>2]=HEAP32[$3+24>>2];HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-Math_fround(Math_sqrt($7))}return}__assert_fail(94394,94405,129,94452);abort()}function dmGameObject__MergePropertyContainers_28dmGameObject__PropertyContainer__2c_20dmGameObject__PropertyContainer__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0,$20=0;$3=global$0-48|0;global$0=$3;HEAP32[$3+40>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;label$1:{$12=HEAP32[$1>>2];if($12){$4=HEAP32[$1+12>>2];while(1){label$4:{label$5:{$16=$2<<2;$13=HEAP32[$16+$4>>2];if($13>>>0<=7){label$7:{switch($13-1|0){case 0:$5=$5+1|0;break label$4;case 1:$7=$7+1|0;break label$4;case 2:$6=$6+1|0;break label$4;case 3:$9=$9+1|0;break label$4;case 4:$10=$10+1|0;break label$4;case 5:$11=$11+1|0;break label$4;case 6:break label$7;default:break label$5}}$8=$8+1|0;$14=(strlen(HEAP32[$1+28>>2]+HEAP32[$16+HEAP32[$1+8>>2]>>2]|0)+$14|0)+1|0;break label$4}break label$1}$15=$15+1|0}$2=$2+1|0;if($2>>>0<$12>>>0){continue}break}HEAP32[$3+40>>2]=$11;HEAP32[$3+16>>2]=$8;HEAP32[$3+20>>2]=$14;HEAP32[$3+36>>2]=$10;HEAP32[$3+32>>2]=$9;HEAP32[$3+28>>2]=$6;HEAP32[$3+24>>2]=$7;HEAP32[$3+12>>2]=$5;HEAP32[$3+8>>2]=$15}$16=HEAP32[$0>>2];if($16){label$15:{if($12){$13=HEAP32[$0+4>>2];$19=HEAP32[$1+4>>2];$4=0;while(1){$2=$13+($4<<3)|0;$17=HEAP32[$2>>2];$20=HEAP32[$2+4>>2];$2=0;label$18:{while(1){$18=($2<<3)+$19|0;if(($17|0)==HEAP32[$18>>2]&($20|0)==HEAP32[$18+4>>2]){break label$18}$2=$2+1|0;if(($12|0)!=($2|0)){continue}break}$2=$4<<2;$17=HEAP32[$2+HEAP32[$0+12>>2]>>2];if($17>>>0>7){break label$1}label$20:{switch($17-1|0){case 0:$5=$5+1|0;break label$18;case 1:$7=$7+1|0;break label$18;case 2:$6=$6+1|0;break label$18;case 3:$9=$9+1|0;break label$18;case 4:$10=$10+1|0;break label$18;case 5:$11=$11+1|0;break label$18;case 6:$8=$8+1|0;$14=(strlen(HEAP32[$0+28>>2]+HEAP32[$2+HEAP32[$0+8>>2]>>2]|0)+$14|0)+1|0;break label$18;default:break label$20}}$15=$15+1|0}$4=$4+1|0;if($4>>>0<$16>>>0){continue}break}break label$15}$4=HEAP32[$0+12>>2];$2=0;while(1){$12=$2<<2;$13=HEAP32[$12+$4>>2];if($13>>>0>7){break label$1}label$29:{label$30:{switch($13-1|0){case 6:$8=$8+1|0;$14=(strlen(HEAP32[$0+28>>2]+HEAP32[$12+HEAP32[$0+8>>2]>>2]|0)+$14|0)+1|0;break label$29;case 5:$11=$11+1|0;break label$29;case 4:$10=$10+1|0;break label$29;case 3:$9=$9+1|0;break label$29;case 2:$6=$6+1|0;break label$29;case 1:$7=$7+1|0;break label$29;case 0:$5=$5+1|0;break label$29;default:break label$30}}$15=$15+1|0}$2=$2+1|0;if($2>>>0<$16>>>0){continue}break}}HEAP32[$3+40>>2]=$11;HEAP32[$3+16>>2]=$8;HEAP32[$3+20>>2]=$14;HEAP32[$3+36>>2]=$10;HEAP32[$3+32>>2]=$9;HEAP32[$3+28>>2]=$6;HEAP32[$3+24>>2]=$7;HEAP32[$3+12>>2]=$5;HEAP32[$3+8>>2]=$15}$6=dmGameObject__CreatePropertyContainerBuilder_28dmGameObject__PropertyContainerParameters_20const__29($3+8|0);$2=0;label$38:{if(!HEAP32[$1>>2]){$5=0;break label$38}while(1){dmGameObject__PushEntry_28dmGameObject__PropertyContainerBuilder__2c_20dmGameObject__PropertyContainer__2c_20unsigned_20int_29($6,$1,$2);$2=$2+1|0;$5=HEAP32[$1>>2];if($2>>>0<$5>>>0){continue}break}}label$41:{$7=HEAP32[$0>>2];if(!$7){break label$41}$4=0;while(1){label$43:{if($5){$2=HEAP32[$0+4>>2]+($4<<3)|0;$9=HEAP32[$2>>2];$10=HEAP32[$2+4>>2];$11=HEAP32[$1+4>>2];$2=0;while(1){$8=$11+($2<<3)|0;if(($9|0)==HEAP32[$8>>2]&($10|0)==HEAP32[$8+4>>2]){break label$43}$2=$2+1|0;if(($5|0)!=($2|0)){continue}break}}dmGameObject__PushEntry_28dmGameObject__PropertyContainerBuilder__2c_20dmGameObject__PropertyContainer__2c_20unsigned_20int_29($6,$0,$4);$7=HEAP32[$0>>2]}$4=$4+1|0;if($4>>>0>=$7>>>0){break label$41}$5=HEAP32[$1>>2];continue}}$0=HEAP32[$6>>2];if($6){dlfree($6)}global$0=$3+48|0;return $0}__assert_fail(17459,17344,384,17639);abort()}function btTriangleRaycastCallback__processTriangle_28btVector3__2c_20int_2c_20int_29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=0,$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0);$7=global$0-32|0;global$0=$7;$15=HEAPF32[$1+24>>2];$25=HEAPF32[$1+40>>2];$16=HEAPF32[$1+36>>2];$10=HEAPF32[$1+20>>2];$11=HEAPF32[$1+8>>2];$17=HEAPF32[$1+16>>2];$13=HEAPF32[$1+4>>2];$18=HEAPF32[$1+32>>2];$14=HEAPF32[$1>>2];HEAP32[$7+28>>2]=0;$5=Math_fround($17-$14);$8=Math_fround($16-$13);$6=Math_fround($10-$13);$12=Math_fround($18-$14);$4=Math_fround(Math_fround($5*$8)-Math_fround($6*$12));HEAPF32[$7+24>>2]=$4;$9=Math_fround($15-$11);$19=Math_fround($9*$12);$12=Math_fround($25-$11);$5=Math_fround($19-Math_fround($5*$12));HEAPF32[$7+20>>2]=$5;$8=Math_fround(Math_fround($6*$12)-Math_fround($9*$8));HEAPF32[$7+16>>2]=$8;$20=HEAPF32[$0+4>>2];$9=HEAPF32[$0+8>>2];$21=HEAPF32[$0+12>>2];$6=Math_fround(Math_fround($11*$4)+Math_fround(Math_fround($14*$8)+Math_fround($13*$5)));$12=Math_fround(Math_fround(Math_fround(Math_fround($8*$20)+Math_fround($5*$9))+Math_fround($4*$21))-$6);$23=HEAPF32[$0+20>>2];$22=HEAPF32[$0+24>>2];$24=HEAPF32[$0+28>>2];$6=Math_fround(Math_fround(Math_fround(Math_fround($8*$23)+Math_fround($5*$22))+Math_fround($4*$24))-$6);label$1:{if(Math_fround($12*$6)>=Math_fround(0)){break label$1}$1=HEAP32[$0+36>>2];if($1&1?!!($12>Math_fround(0)):0){break label$1}$6=Math_fround($12/Math_fround($12-$6));if(!($6>2])){break label$1}$19=$9;$9=Math_fround(Math_fround(1)-$6);$22=Math_fround(Math_fround($22*$6)+Math_fround($19*$9));$10=Math_fround($10-$22);$20=Math_fround(Math_fround($23*$6)+Math_fround($20*$9));$14=Math_fround($14-$20);$13=Math_fround($13-$22);$17=Math_fround($17-$20);$9=Math_fround(Math_fround($24*$6)+Math_fround($21*$9));$15=Math_fround($15-$9);$11=Math_fround($11-$9);$23=Math_fround(Math_fround($4*$4)+Math_fround(Math_fround($8*$8)+Math_fround($5*$5)));$21=Math_fround($23*Math_fround(-9999999747378752e-20));if(!(Math_fround(Math_fround($4*Math_fround(Math_fround($10*$14)-Math_fround($13*$17)))+Math_fround(Math_fround($8*Math_fround(Math_fround($13*$15)-Math_fround($11*$10)))+Math_fround($5*Math_fround(Math_fround($11*$17)-Math_fround($15*$14)))))>=$21)){break label$1}$16=Math_fround($16-$22);$18=Math_fround($18-$20);$24=Math_fround($4*Math_fround(Math_fround($16*$17)-Math_fround($10*$18)));$19=$10;$10=Math_fround($25-$9);if(Math_fround($24+Math_fround(Math_fround($8*Math_fround(Math_fround($19*$10)-Math_fround($15*$16)))+Math_fround($5*Math_fround(Math_fround($15*$18)-Math_fround($10*$17)))))>=$21^1|Math_fround(Math_fround($4*Math_fround(Math_fround($13*$18)-Math_fround($16*$14)))+Math_fround(Math_fround($8*Math_fround(Math_fround($16*$11)-Math_fround($10*$13)))+Math_fround($5*Math_fround(Math_fround($10*$14)-Math_fround($11*$18)))))>=$21^1){break label$1}$19=$4;$4=Math_fround(Math_fround(1)/Math_fround(Math_sqrt($23)));$11=Math_fround($19*$4);HEAPF32[$7+24>>2]=$11;$5=Math_fround($5*$4);HEAPF32[$7+20>>2]=$5;$4=Math_fround($8*$4);HEAPF32[$7+16>>2]=$4;if(!($1&2?0:!($12<=Math_fround(0)))){HEAP32[$7+12>>2]=0;HEAPF32[$7+8>>2]=-$11;HEAPF32[$7+4>>2]=-$5;HEAPF32[$7>>2]=-$4;HEAPF32[$0+40>>2]=FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+12>>2]]($0,$7,$6,$2,$3);break label$1}HEAPF32[$0+40>>2]=FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+12>>2]]($0,$7+16|0,$6,$2,$3)}global$0=$7+32|0}function lua_getinfo($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;label$1:{label$2:{label$3:{label$4:{label$5:{if(HEAPU8[$1|0]==62){$3=HEAP32[$0+8>>2]+ -16|0;$5=HEAP32[$3>>2];HEAP32[$0+8>>2]=$3;$1=$1+1|0;break label$5}$3=HEAP32[$2+96>>2];if(!$3){break label$4}$6=HEAP32[$0+40>>2]+Math_imul($3,24)|0;$5=HEAP32[HEAP32[$6+4>>2]>>2]}if(!$5){break label$4}$4=HEAPU8[$1|0];if($4){break label$3}$10=1;break label$2}HEAP32[$2+28>>2]=-1;HEAP32[$2+32>>2]=-1;HEAP32[$2+20>>2]=-1;HEAP32[$2+12>>2]=122884;HEAP32[$2+4>>2]=122883;HEAP32[$2+8>>2]=122883;HEAP32[$2+16>>2]=122889;luaO_chunkid($2+36|0,122889,60);$5=0;HEAP32[$2+24>>2]=0;$10=1;$2=1;break label$1}$13=$2+36|0;$11=$6+ -12|0;$14=$6+ -20|0;$12=$6+ -24|0;$15=$2+4|0;$10=1;$3=$1;while(1){$8=$3;label$8:{label$9:{$3=($4<<24>>24)+ -76|0;if($3>>>0>41){break label$9}label$10:{switch($3-1|0){case 6:label$14:{if(HEAPU8[$5+6|0]){HEAP32[$2+28>>2]=-1;$3=122902;HEAP32[$2+16>>2]=122902;$7=122907;$4=-1;break label$14}$3=HEAP32[HEAP32[$5+16>>2]+32>>2]+16|0;HEAP32[$2+16>>2]=$3;$4=HEAP32[HEAP32[$5+16>>2]+60>>2];HEAP32[$2+28>>2]=$4;$7=$4?122914:122909;$4=HEAP32[HEAP32[$5+16>>2]+64>>2]}HEAP32[$2+12>>2]=$7;HEAP32[$2+32>>2]=$4;luaO_chunkid($13,$3,60);break label$8;case 31:$4=-1;label$16:{if(!$6){break label$16}$3=HEAP32[$6+4>>2];if(HEAP32[$3+8>>2]!=6){break label$16}$7=HEAP32[$3>>2];if(HEAPU8[$7+6|0]){break label$16}label$17:{if(HEAP32[$0+20>>2]!=($6|0)){$9=HEAP32[$6+12>>2];break label$17}$9=HEAP32[$0+24>>2];HEAP32[$6+12>>2]=$9;$7=HEAP32[$3>>2]}$3=HEAP32[$7+16>>2];$7=$9-HEAP32[$3+12>>2]|0;if(($7|0)<4){break label$16}$3=HEAP32[$3+20>>2];if(!$3){HEAP32[$2+20>>2]=0;break label$8}$4=HEAP32[$3+(($7>>2)+ -1<<2)>>2]}HEAP32[$2+20>>2]=$4;break label$8;case 40:HEAP32[$2+24>>2]=HEAPU8[$5+7|0];break label$8;case 33:break label$10;case 0:case 1:case 2:case 3:case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 26:case 27:case 28:case 29:case 30:case 32:case 34:case 35:case 36:case 37:case 38:case 39:break label$9;default:break label$8}}label$20:{label$21:{label$22:{if(!$6){break label$22}$3=HEAP32[$6+4>>2];if(HEAP32[$6+20>>2]>0?!(HEAP32[$3+8>>2]!=6|HEAPU8[HEAP32[$3>>2]+6|0]):0){break label$22}$4=HEAP32[$14>>2];if(HEAP32[$4+8>>2]!=6){break label$22}$3=HEAP32[$4>>2];if(HEAPU8[$3+6|0]){break label$22}$7=HEAP32[HEAP32[$3+16>>2]+12>>2];label$24:{if(HEAP32[$0+20>>2]!=($12|0)){$9=HEAP32[$11>>2];break label$24}$9=HEAP32[$0+24>>2];HEAP32[$11>>2]=$9;$3=HEAP32[$4>>2]}$3=HEAP32[($7+($9-HEAP32[HEAP32[$3+16>>2]+12>>2]|0)|0)+ -4>>2];$4=($3&63)+ -28|0;if($4>>>0>5){break label$22}if(1<<$4&35){break label$21}}HEAP32[$2+8>>2]=0;break label$20}$3=getobjname($0,$12,$3>>>6&255,$15);HEAP32[$2+8>>2]=$3;if($3){break label$8}}HEAP32[$2+4>>2]=0;HEAP32[$2+8>>2]=122883;break label$8}$10=0}$3=$8+1|0;$4=HEAPU8[$8+1|0];if($4){continue}break}}$2=0}if(strchr($1,102)){$3=HEAP32[$0+8>>2];$8=$3;if($2){$3=0}else{HEAP32[$3>>2]=$5;$3=6}HEAP32[$8+8>>2]=$3;$8=$0;$3=HEAP32[$0+8>>2];if((HEAP32[$0+28>>2]-$3|0)<=16){luaD_growstack($0,1);$3=HEAP32[$0+8>>2]}HEAP32[$8+8>>2]=$3+16}if(strchr($1,76)){label$32:{if(!(HEAPU8[$5+6|0]?0:!$2)){$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;break label$32}$2=0;$1=luaH_new($0,0,0);$3=HEAP32[$5+16>>2];if(HEAP32[$3+48>>2]>=1){$3=HEAP32[$3+20>>2];while(1){$8=luaH_setnum($0,$1,HEAP32[$3+($2<<2)>>2]);HEAP32[$8+8>>2]=1;HEAP32[$8>>2]=1;$2=$2+1|0;if(($2|0)>2]+48>>2]){continue}break}}$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=5;HEAP32[$2>>2]=$1;$2=HEAP32[$0+8>>2]}$1=$0;if((HEAP32[$0+28>>2]-$2|0)<=16){luaD_growstack($0,1);$2=HEAP32[$0+8>>2]}HEAP32[$1+8>>2]=$2+16}return $10}function dmGameSystem__AcquireResources_28dmResource__SResourceDescriptor__2c_20dmGraphics__Context__2c_20dmGameSystem__ImageDesc__2c_20dmGraphics__Texture__2c_20dmGraphics__Texture___29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$4=global$0-80|0;global$0=$4;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{label$9:{$6=HEAP32[$1>>2];$5=HEAP32[$6+4>>2];if($5){while(1){if($5>>>0<=$7>>>0){break label$9}$8=HEAP32[$6>>2];$5=HEAP32[($8+($7<<6)|0)+16>>2];if($5>>>0>=11){break label$8}$5=HEAP32[($5<<2)+59680>>2];if(FUNCTION_TABLE[HEAP32[147617]]($0,$5)){HEAP32[$4+72>>2]=0;HEAP32[$4+64>>2]=0;HEAP32[$4+68>>2]=0;HEAP8[$4+76|0]=1;HEAP8[$4+43|0]=0;HEAP8[$4+44|0]=0;HEAP8[$4+45|0]=0;HEAP8[$4+46|0]=0;HEAP8[$4+47|0]=0;HEAP8[$4+48|0]=0;HEAP8[$4+49|0]=0;HEAP8[$4+50|0]=0;HEAP32[$4+52>>2]=0;HEAP32[$4+56>>2]=0;HEAP32[$4+32>>2]=1;HEAP32[$4+24>>2]=2;HEAP32[$4+28>>2]=1;HEAP32[$4+16>>2]=3;HEAP32[$4+20>>2]=5;HEAP32[$4+36>>2]=0;HEAP32[$4+40>>2]=0;FUNCTION_TABLE[HEAP32[147550]]($0,$4+16|4,$4+24|0);HEAP32[$4+16>>2]=$5;$9=$8+($7<<6)|0;$10=HEAP32[$9>>2];HEAP16[$4+46>>1]=$10;$11=HEAP32[$9+4>>2];HEAP16[$4+48>>1]=$11;$5=HEAP32[$9+24>>2];if($5>>>0>=33){break label$7}$6=HEAP32[HEAP32[$1>>2]+8>>2]+ -1|0;label$13:{label$14:{if($6>>>0<=1){if($6-1){break label$14}HEAP32[$4+64>>2]=1;break label$13}__assert_fail(59389,59331,250,59372);abort()}HEAP32[$4+64>>2]=0}HEAP16[$4+70>>1]=$11;HEAP16[$4+68>>1]=$10;$6=$8+($7<<6)|0;HEAP16[$4+72>>1]=HEAP32[$6+8>>2];$6=HEAP32[$6+12>>2];HEAP8[$4+76|0]=$5;HEAP16[$4+74>>1]=$6;if(!$2){$2=FUNCTION_TABLE[HEAP32[147618]]($0,$4- -64|0)|0;$5=HEAP32[$9+24>>2]}label$16:{if($5>>>0>1){break label$16}$5=HEAP32[$4+20>>2]+ -3|0;if($5>>>0>2){break label$16}label$19:{switch($5-1|0){case 1:HEAP32[$4+20>>2]=2;break label$16;case 0:break label$16;default:break label$19}}HEAP32[$4+20>>2]=1}$6=FUNCTION_TABLE[HEAP32[147630]]($0)|0;$5=HEAPU16[$4+46>>1];$0=HEAPU16[$4+48>>1];if(!($6>>>0>=$0>>>0?$6>>>0>=$5>>>0:0)){HEAP32[$4+12>>2]=$6;HEAP32[$4+8>>2]=$6;HEAP32[$4+4>>2]=$0;HEAP32[$4>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,59208,59391,$4);HEAP16[$4+48>>1]=1;HEAP32[$4+40>>2]=4;HEAP32[$4+44>>2]=65536;HEAP32[$4+36>>2]=59184;HEAP32[$4+16>>2]=3;FUNCTION_TABLE[HEAP32[147621]]($2,$4+16|0);break label$2}if(HEAPU8[$1+132|0]){break label$6}$0=HEAP32[$9+24>>2];if(($0|0)<1){break label$2}$8=$8+($7<<6)|0;$11=$8;$7=0;while(1){HEAP16[$4+44>>1]=$7;$6=$4;$10=$7<<2;$5=HEAP32[($10+$1|0)+4>>2];if(!$5){if($0>>>0<=$7>>>0){break label$5}$0=HEAP32[$10+HEAP32[$8+20>>2]>>2];if(HEAPU32[$8+40>>2]<=$0>>>0){break label$4}$5=$0+HEAP32[$8+36>>2]|0}HEAP32[$6+36>>2]=$5;if(HEAPU32[$8+32>>2]<=$7>>>0){break label$3}HEAP32[$4+40>>2]=HEAP32[$10+HEAP32[$11+28>>2]>>2];FUNCTION_TABLE[HEAP32[147621]]($2,$4+16|0);$5=HEAPU16[$4+46>>1]>>>1|0;HEAP16[$4+46>>1]=$5;$0=HEAPU16[$4+48>>1]>>>1|0;HEAP16[$4+48>>1]=$0;if(!$5){HEAP16[$4+46>>1]=1}if(!$0){HEAP16[$4+48>>1]=1}$7=$7+1|0;$0=HEAP32[$9+24>>2];if(($7|0)<($0|0)){continue}break}break label$2}$7=$7+1|0;$6=HEAP32[$1>>2];$5=HEAP32[$6+4>>2];if($7>>>0<$5>>>0){continue}break}}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,59208,59479,0);$0=-13;break label$1}__assert_fail(59512,59524,108,59596);abort()}__assert_fail(59389,59331,94,59607);abort()}__assert_fail(59284,59331,243,59372);abort()}HEAP16[$4+48>>1]=1;HEAP32[$4+40>>2]=4;HEAP32[$4+44>>2]=65536;HEAP32[$4+16>>2]=3;HEAP32[$4+36>>2]=59184;FUNCTION_TABLE[HEAP32[147621]]($2,$4+16|0);break label$2}__assert_fail(59512,59524,69,59596);abort()}__assert_fail(59512,59524,85,59596);abort()}__assert_fail(59512,59524,77,59596);abort()}HEAP32[$3>>2]=$2;$0=0}global$0=$4+80|0;return $0}function dmGameObject__PropertyContainerGetPropertyCallback_28dmGameObject__Properties__2c_20unsigned_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar__29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=Math_fround(0);$7=global$0-32|0;global$0=$7;$5=-1;label$1:{if(!$1){break label$1}$8=HEAP32[$1>>2];if(!$8){break label$1}$10=HEAP32[$1+4>>2];while(1){$9=($6<<3)+$10|0;if(HEAP32[$9>>2]!=($2|0)|HEAP32[$9+4>>2]!=($3|0)){$6=$6+1|0;if(($8|0)!=($6|0)){continue}break label$1}break}$2=$6<<2;$3=HEAP32[$2+HEAP32[$1+12>>2]>>2];label$4:{if($3>>>0<=7){$2=HEAP32[$2+HEAP32[$1+8>>2]>>2];label$6:{switch($3-1|0){case 0:$0=HEAP32[$1+16>>2]+($2<<3)|0;$1=HEAP32[$0+4>>2];$0=HEAP32[$0>>2];HEAP32[$4>>2]=1;HEAP32[$4+8>>2]=$0;HEAP32[$4+12>>2]=$1;$5=0;break label$1;case 6:$3=HEAP32[$1+28>>2];$1=$7;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;FUNCTION_TABLE[HEAP32[$0+44>>2]](HEAP32[$0+40>>2],$1);$5=-2;if(dmScript__ResolveURL_28lua_State__2c_20char_20const__2c_20dmMessage__URL__2c_20dmMessage__URL__29(HEAP32[$0+40>>2],$2+$3|0,$4+8|0,$1)){break label$1}HEAP32[$4>>2]=2;$5=0;break label$1;case 1:$0=$2+HEAP32[$1+24>>2]|0;$1=HEAPU8[$0+4|0]|HEAPU8[$0+5|0]<<8|(HEAPU8[$0+6|0]<<16|HEAPU8[$0+7|0]<<24);$2=HEAPU8[$0|0]|HEAPU8[$0+1|0]<<8|(HEAPU8[$0+2|0]<<16|HEAPU8[$0+3|0]<<24);HEAP8[$4+8|0]=$2;HEAP8[$4+9|0]=$2>>>8;HEAP8[$4+10|0]=$2>>>16;HEAP8[$4+11|0]=$2>>>24;HEAP8[$4+12|0]=$1;HEAP8[$4+13|0]=$1>>>8;HEAP8[$4+14|0]=$1>>>16;HEAP8[$4+15|0]=$1>>>24;$1=HEAPU8[$0+28|0]|HEAPU8[$0+29|0]<<8|(HEAPU8[$0+30|0]<<16|HEAPU8[$0+31|0]<<24);$2=HEAPU8[$0+24|0]|HEAPU8[$0+25|0]<<8|(HEAPU8[$0+26|0]<<16|HEAPU8[$0+27|0]<<24);HEAP8[$4+32|0]=$2;HEAP8[$4+33|0]=$2>>>8;HEAP8[$4+34|0]=$2>>>16;HEAP8[$4+35|0]=$2>>>24;HEAP8[$4+36|0]=$1;HEAP8[$4+37|0]=$1>>>8;HEAP8[$4+38|0]=$1>>>16;HEAP8[$4+39|0]=$1>>>24;$1=HEAPU8[$0+20|0]|HEAPU8[$0+21|0]<<8|(HEAPU8[$0+22|0]<<16|HEAPU8[$0+23|0]<<24);$2=HEAPU8[$0+16|0]|HEAPU8[$0+17|0]<<8|(HEAPU8[$0+18|0]<<16|HEAPU8[$0+19|0]<<24);HEAP8[$4+24|0]=$2;HEAP8[$4+25|0]=$2>>>8;HEAP8[$4+26|0]=$2>>>16;HEAP8[$4+27|0]=$2>>>24;HEAP8[$4+28|0]=$1;HEAP8[$4+29|0]=$1>>>8;HEAP8[$4+30|0]=$1>>>16;HEAP8[$4+31|0]=$1>>>24;$1=HEAPU8[$0+12|0]|HEAPU8[$0+13|0]<<8|(HEAPU8[$0+14|0]<<16|HEAPU8[$0+15|0]<<24);$0=HEAPU8[$0+8|0]|HEAPU8[$0+9|0]<<8|(HEAPU8[$0+10|0]<<16|HEAPU8[$0+11|0]<<24);HEAP8[$4+16|0]=$0;HEAP8[$4+17|0]=$0>>>8;HEAP8[$4+18|0]=$0>>>16;HEAP8[$4+19|0]=$0>>>24;HEAP8[$4+20|0]=$1;HEAP8[$4+21|0]=$1>>>8;HEAP8[$4+22|0]=$1>>>16;HEAP8[$4+23|0]=$1>>>24;HEAP32[$4>>2]=2;$5=0;break label$1;case 2:$0=$2<<2;HEAP32[$4+8>>2]=HEAP32[$0+HEAP32[$1+20>>2]>>2];HEAP32[$4+12>>2]=HEAP32[($0+HEAP32[$1+20>>2]|0)+4>>2];$0=HEAP32[($0+HEAP32[$1+20>>2]|0)+8>>2];HEAP32[$4>>2]=3;HEAP32[$4+16>>2]=$0;$5=0;break label$1;case 3:$0=$2<<2;HEAP32[$4+8>>2]=HEAP32[$0+HEAP32[$1+20>>2]>>2];HEAP32[$4+12>>2]=HEAP32[($0+HEAP32[$1+20>>2]|0)+4>>2];HEAP32[$4+16>>2]=HEAP32[($0+HEAP32[$1+20>>2]|0)+8>>2];$0=HEAP32[($0+HEAP32[$1+20>>2]|0)+12>>2];HEAP32[$4>>2]=4;HEAP32[$4+20>>2]=$0;$5=0;break label$1;case 4:$0=$2<<2;HEAP32[$4+8>>2]=HEAP32[$0+HEAP32[$1+20>>2]>>2];HEAP32[$4+12>>2]=HEAP32[($0+HEAP32[$1+20>>2]|0)+4>>2];HEAP32[$4+16>>2]=HEAP32[($0+HEAP32[$1+20>>2]|0)+8>>2];$0=HEAP32[($0+HEAP32[$1+20>>2]|0)+12>>2];HEAP32[$4>>2]=5;HEAP32[$4+20>>2]=$0;$5=0;break label$1;case 5:break label$6;default:break label$4}}$0=HEAPU8[$2+HEAP32[$1+28>>2]|0];HEAP32[$4>>2]=6;$5=0;HEAP8[$4+8|0]=($0|0)!=0;break label$1}__assert_fail(17459,17344,530,17479);abort()}$11=HEAPF32[HEAP32[$1+20>>2]+($2<<2)>>2];$5=0;HEAP32[$4>>2]=0;HEAPF64[$4+8>>3]=$11}global$0=$7+32|0;return $5|0}function b2SeparationFunction__Evaluate_28int_2c_20int_2c_20float_29_20const($0,$1,$2,$3){var $4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0;$4=HEAPF32[$0+48>>2];$5=Math_fround(Math_fround(1)-$3);$6=Math_fround(Math_fround($5*HEAPF32[$0+68>>2])+Math_fround(HEAPF32[$0+72>>2]*$3));$9=cosf($6);$15=HEAPF32[$0+44>>2];$6=sinf($6);$16=HEAPF32[$0+56>>2];$12=HEAPF32[$0- -64>>2];$13=HEAPF32[$0+52>>2];$14=HEAPF32[$0+60>>2];$8=HEAPF32[$0+12>>2];$7=Math_fround(Math_fround($5*HEAPF32[$0+32>>2])+Math_fround(HEAPF32[$0+36>>2]*$3));$10=cosf($7);$11=HEAPF32[$0+8>>2];$7=sinf($7);$17=HEAP32[$0+80>>2];label$1:{if($17>>>0<=2){$16=Math_fround(Math_fround(Math_fround($5*$16)+Math_fround($12*$3))-Math_fround(Math_fround($15*$6)+Math_fround($4*$9)));$4=Math_fround(Math_fround(Math_fround($5*$13)+Math_fround($14*$3))-Math_fround(Math_fround($15*$9)-Math_fround($4*$6)));$15=Math_fround(Math_fround(Math_fround($5*HEAPF32[$0+20>>2])+Math_fround(HEAPF32[$0+28>>2]*$3))-Math_fround(Math_fround($11*$7)+Math_fround($8*$10)));$3=Math_fround(Math_fround(Math_fround($5*HEAPF32[$0+16>>2])+Math_fround(HEAPF32[$0+24>>2]*$3))-Math_fround(Math_fround($11*$10)-Math_fround($8*$7)));label$5:{switch($17-1|0){default:if(($1|0)<0){break label$1}$17=HEAP32[$0>>2];if(($2|0)<0|HEAP32[$17+20>>2]<=($1|0)){break label$1}$18=HEAP32[$0+4>>2];if(HEAP32[$18+20>>2]<=($2|0)){break label$1}$13=$4;$2=HEAP32[$18+16>>2]+($2<<3)|0;$5=HEAPF32[$2>>2];$4=HEAPF32[$2+4>>2];$14=$3;$1=HEAP32[$17+16>>2]+($1<<3)|0;$3=HEAPF32[$1>>2];$8=HEAPF32[$1+4>>2];return Math_fround(Math_fround(HEAPF32[$0+92>>2]*Math_fround(Math_fround($13+Math_fround(Math_fround($9*$5)-Math_fround($6*$4)))-Math_fround($14+Math_fround(Math_fround($10*$3)-Math_fround($7*$8)))))+Math_fround(HEAPF32[$0+96>>2]*Math_fround(Math_fround($16+Math_fround(Math_fround($6*$5)+Math_fround($9*$4)))-Math_fround($15+Math_fround(Math_fround($7*$3)+Math_fround($10*$8))))));case 0:if(($2|0)<0){break label$1}$1=HEAP32[$0+4>>2];if(HEAP32[$1+20>>2]<=($2|0)){break label$1}$5=HEAPF32[$0+92>>2];$8=HEAPF32[$0+96>>2];$13=$4;$1=HEAP32[$1+16>>2]+($2<<3)|0;$4=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$14=$3;$3=HEAPF32[$0+84>>2];$12=HEAPF32[$0+88>>2];return Math_fround(Math_fround(Math_fround(Math_fround($10*$5)-Math_fround($7*$8))*Math_fround(Math_fround($13+Math_fround(Math_fround($9*$4)-Math_fround($6*$11)))-Math_fround($14+Math_fround(Math_fround($10*$3)-Math_fround($7*$12)))))+Math_fround(Math_fround(Math_fround($7*$5)+Math_fround($10*$8))*Math_fround(Math_fround($16+Math_fround(Math_fround($6*$4)+Math_fround($9*$11)))-Math_fround($15+Math_fround(Math_fround($7*$3)+Math_fround($10*$12))))));case 1:break label$5}}label$3:{if(($1|0)<0){break label$3}$2=HEAP32[$0>>2];if(HEAP32[$2+20>>2]<=($1|0)){break label$3}$5=HEAPF32[$0+92>>2];$8=HEAPF32[$0+96>>2];$13=$3;$1=HEAP32[$2+16>>2]+($1<<3)|0;$3=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$14=$4;$4=HEAPF32[$0+84>>2];$12=HEAPF32[$0+88>>2];return Math_fround(Math_fround(Math_fround(Math_fround($9*$5)-Math_fround($6*$8))*Math_fround(Math_fround($13+Math_fround(Math_fround($10*$3)-Math_fround($7*$11)))-Math_fround($14+Math_fround(Math_fround($9*$4)-Math_fround($6*$12)))))+Math_fround(Math_fround(Math_fround($6*$5)+Math_fround($9*$8))*Math_fround(Math_fround($15+Math_fround(Math_fround($7*$3)+Math_fround($10*$11)))-Math_fround($16+Math_fround(Math_fround($6*$4)+Math_fround($9*$12))))))}break label$1}__assert_fail(97328,97149,242,97352);abort()}__assert_fail(97246,97276,103,97318);abort()}function ReverseHashContainer__Enable_28bool_29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{if(HEAPU8[1130132]!=($0|0)){$6=HEAP32[282532];dmMutex__Lock_28dmMutex__Mutex__29($6);HEAP8[1130132]=$0;label$9:{if($0){if(HEAP32[282538]-HEAP32[282536]>>4>>>0<=511){dmHashTable_unsigned_20int_2c_20ReverseHashEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130136,1024,512)}memset(HEAP32[282534],255,HEAP32[282535]<<2);HEAP32[282539]=-1;HEAP32[282540]=0;HEAP32[282537]=HEAP32[282536];if((HEAP32[282546]-HEAP32[282544]|0)/24>>>0<=511){dmHashTable_unsigned_20long_20long_2c_20ReverseHashEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130168,1024,512)}memset(HEAP32[282542],255,HEAP32[282543]<<2);HEAP32[282547]=-1;HEAP32[282548]=0;HEAP32[282545]=HEAP32[282544];if(HEAP8[1130212]&1){break label$7}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(512,8,1130200,1130208,1130204);$0=HEAP32[282550];if(HEAP32[282552]-$0>>3>>>0<=511){break label$6}HEAP32[282551]=$0+4096;$0=HEAP32[282555];if($0>>>0>=513){break label$5}$1=HEAP32[282554];$2=dlmalloc(2048);HEAP32[282554]=$2;$2=memcpy($2,$1,$0<<2);HEAP32[282555]=512;if(($0|0)!=512){while(1){HEAP32[$2+($0<<2)>>2]=$0;$0=$0+1|0;if(($0|0)!=512){continue}break}}dlfree($1);$0=0;HEAP32[282556]=0;$1=HEAP32[282554];label$15:{if(HEAP32[282555]){while(1){HEAP32[$1+($0<<2)>>2]=$0;$0=$0+1|0;$2=HEAP32[282555];if($0>>>0<$2>>>0){continue}break}$0=HEAP32[282556];if($0>>>0<$2>>>0){break label$15}break label$1}if($1){break label$1}__assert_fail(147343,147318,148,147350);abort()}HEAP32[282556]=$0+1;if(!HEAP32[$1+($0<<2)>>2]){break label$9}__assert_fail(147109,147127,92,147148);abort()}$0=HEAP32[282535];if($0){$1=$0;while(1){$0=HEAP32[HEAP32[282534]+($3<<2)>>2];if(($0|0)!=-1){while(1){$0=HEAP32[282536]+($0<<4)|0;dlfree(HEAP32[$0+4>>2]);$0=HEAP32[$0+12>>2];if(($0|0)!=-1){continue}break}$1=HEAP32[282535]}$3=$3+1|0;if($3>>>0<$1>>>0){continue}break}}memset(HEAP32[282534],255,$1<<2);HEAP32[282539]=-1;HEAP32[282540]=0;HEAP32[282537]=HEAP32[282536];$0=HEAP32[282543];if($0){$3=0;$2=$0;while(1){$0=HEAP32[HEAP32[282542]+($3<<2)>>2];if(($0|0)!=-1){while(1){$0=HEAP32[282544]+Math_imul($0,24)|0;dlfree(HEAP32[$0+8>>2]);$0=HEAP32[$0+16>>2];if(($0|0)!=-1){continue}break}$2=HEAP32[282543]}$3=$3+1|0;if($3>>>0<$2>>>0){continue}break}}memset(HEAP32[282542],255,$2<<2);HEAP32[282547]=-1;HEAP32[282548]=0;HEAP32[282545]=HEAP32[282544];$0=HEAP32[282556];if(!$0){break label$9}$5=HEAP32[282554];if(!$5){break label$4}if($0>>>0>HEAPU32[282555]){break label$3}$0=$0+ -1|0;HEAP32[282556]=$0;$3=0;HEAP32[($0<<2)+$5>>2]=0;$1=HEAP32[282551];$0=HEAP32[282550];$2=HEAP32[282556];$4=HEAP32[282555];if($2>>>0<$4>>>0){$8=$1-$0>>3;while(1){$7=HEAP32[($2<<2)+$5>>2];if($8>>>0<=$7>>>0){break label$2}HEAP32[($7<<3)+$0>>2]=0;$2=$2+1|0;if(($4|0)!=($2|0)){continue}break}}if(($0|0)!=($1|0)){while(1){$0=HEAP32[($3<<3)+$0>>2];if($0){dlfree($0);$1=HEAP32[282551]}$3=$3+1|0;$0=HEAP32[282550];if($3>>>0<$1-$0>>3>>>0){continue}break}$4=HEAP32[282555]}$0=0;HEAP32[282556]=0;if(!$4){break label$9}$1=HEAP32[282554];while(1){HEAP32[$1+($0<<2)>>2]=$0;$0=$0+1|0;if($0>>>0>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=HEAP32[$1+4>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=HEAP32[$1+12>>2];HEAP32[$0+16>>2]=HEAP32[$1+16>>2];HEAP32[$0+20>>2]=HEAP32[$1+20>>2];HEAP32[$0+24>>2]=HEAP32[$1+24>>2];HEAP32[$0+28>>2]=HEAP32[$1+28>>2];HEAP32[$0+32>>2]=HEAP32[$1+32>>2];HEAP32[$0+36>>2]=HEAP32[$1+36>>2];HEAP32[$0+40>>2]=HEAP32[$1+40>>2];HEAP32[$0+44>>2]=HEAP32[$1+44>>2];HEAP32[$0+48>>2]=HEAP32[$1+48>>2];HEAP32[$0+52>>2]=HEAP32[$1+52>>2];HEAP32[$0+56>>2]=HEAP32[$1+56>>2];HEAP32[$0+60>>2]=HEAP32[$1+60>>2];HEAP32[$0+64>>2]=HEAP32[$1+64>>2];HEAP32[$0+68>>2]=HEAP32[$1+68>>2];HEAP32[$0+72>>2]=HEAP32[$1+72>>2];HEAP32[$0+76>>2]=HEAP32[$1+76>>2];HEAP32[$0+80>>2]=HEAP32[$1+80>>2];HEAP32[$0+84>>2]=HEAP32[$1+84>>2];HEAP32[$0+88>>2]=HEAP32[$1+88>>2];HEAP32[$0+92>>2]=HEAP32[$1+92>>2];HEAP32[$0+96>>2]=HEAP32[$1+96>>2];HEAP32[$0+100>>2]=HEAP32[$1+100>>2];HEAP32[$0+104>>2]=HEAP32[$1+104>>2];HEAP32[$0+108>>2]=HEAP32[$1+108>>2];HEAP32[$0+112>>2]=HEAP32[$1+112>>2];HEAP32[$0+116>>2]=HEAP32[$1+116>>2];HEAP32[$0+120>>2]=HEAP32[$1+120>>2];HEAP32[$0+124>>2]=HEAP32[$1+124>>2];HEAP32[$0+128>>2]=HEAP32[$1+128>>2];HEAP32[$0+132>>2]=HEAP32[$1+132>>2];HEAP32[$0+136>>2]=HEAP32[$1+136>>2];HEAP32[$0+140>>2]=HEAP32[$1+140>>2];HEAP32[$0+144>>2]=HEAP32[$1+144>>2];HEAP32[$0+148>>2]=HEAP32[$1+148>>2];HEAP32[$0+152>>2]=HEAP32[$1+152>>2];HEAP32[$0+156>>2]=HEAP32[$1+156>>2];HEAP32[$0+160>>2]=HEAP32[$1+160>>2];HEAP32[$0+164>>2]=HEAP32[$1+164>>2];HEAP32[$0+168>>2]=HEAP32[$1+168>>2];HEAP32[$0+172>>2]=HEAP32[$1+172>>2];HEAP32[$0+176>>2]=HEAP32[$1+176>>2];HEAP32[$0+180>>2]=HEAP32[$1+180>>2];HEAP32[$0+184>>2]=HEAP32[$1+184>>2];HEAP32[$0+188>>2]=HEAP32[$1+188>>2];HEAP32[$0+192>>2]=HEAP32[$1+192>>2];HEAP32[$0+196>>2]=HEAP32[$1+196>>2];HEAP32[$0+200>>2]=HEAP32[$1+200>>2];HEAP32[$0+204>>2]=HEAP32[$1+204>>2];HEAP32[$0+208>>2]=HEAP32[$1+208>>2];HEAP32[$0+212>>2]=HEAP32[$1+212>>2];HEAP32[$0+216>>2]=HEAP32[$1+216>>2];HEAP32[$0+220>>2]=HEAP32[$1+220>>2];HEAP32[$0+224>>2]=HEAP32[$1+224>>2];HEAP32[$0+228>>2]=HEAP32[$1+228>>2];HEAP32[$0+232>>2]=HEAP32[$1+232>>2];HEAP32[$0+236>>2]=HEAP32[$1+236>>2];HEAP32[$0+240>>2]=HEAP32[$1+240>>2];HEAP32[$0+244>>2]=HEAP32[$1+244>>2];HEAP32[$0+248>>2]=HEAP32[$1+248>>2];HEAP32[$0+252>>2]=HEAP32[$1+252>>2];HEAP32[$0+256>>2]=HEAP32[$1+256>>2];HEAP32[$0+260>>2]=HEAP32[$1+260>>2];HEAP32[$0+264>>2]=HEAP32[$1+264>>2];HEAP32[$0+268>>2]=HEAP32[$1+268>>2];HEAP32[$0+272>>2]=HEAP32[$1+272>>2];HEAP32[$0+276>>2]=HEAP32[$1+276>>2];HEAP32[$0+280>>2]=HEAP32[$1+280>>2];HEAP32[$0+284>>2]=HEAP32[$1+284>>2];HEAP32[$0+288>>2]=HEAP32[$1+288>>2];HEAP32[$0+292>>2]=HEAP32[$1+292>>2];HEAP32[$0+296>>2]=HEAP32[$1+296>>2];HEAP32[$0+300>>2]=HEAP32[$1+300>>2];HEAP32[$0+304>>2]=HEAP32[$1+304>>2];HEAP32[$0+308>>2]=HEAP32[$1+308>>2];HEAP32[$0+312>>2]=HEAP32[$1+312>>2];HEAP32[$0+316>>2]=HEAP32[$1+316>>2];HEAP32[$0+320>>2]=HEAP32[$1+320>>2];HEAP32[$0+324>>2]=HEAP32[$1+324>>2];HEAP32[$0+328>>2]=HEAP32[$1+328>>2];HEAP32[$0+332>>2]=HEAP32[$1+332>>2];HEAP32[$0+336>>2]=HEAP32[$1+336>>2];HEAP32[$0+340>>2]=HEAP32[$1+340>>2];HEAP32[$0+344>>2]=HEAP32[$1+344>>2];HEAP32[$0+348>>2]=HEAP32[$1+348>>2];HEAP32[$0+352>>2]=HEAP32[$1+352>>2];HEAP32[$0+356>>2]=HEAP32[$1+356>>2];HEAP32[$0+360>>2]=HEAP32[$1+360>>2];HEAP32[$0+364>>2]=HEAP32[$1+364>>2];HEAP32[$0+368>>2]=HEAP32[$1+368>>2];HEAP32[$0+372>>2]=HEAP32[$1+372>>2];HEAP32[$0+376>>2]=HEAP32[$1+376>>2];HEAP32[$0+380>>2]=HEAP32[$1+380>>2];HEAP32[$0+384>>2]=HEAP32[$1+384>>2];HEAP32[$0+388>>2]=HEAP32[$1+388>>2];HEAP32[$0+392>>2]=HEAP32[$1+392>>2];HEAP32[$0+396>>2]=HEAP32[$1+396>>2];memcpy($0+400|0,$1+400|0,144)}function dmGameObject__CreateComponents_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$2=global$0-128|0;global$0=$2;label$1:{if(HEAP8[581748]&1){break label$1}if(!__cxa_guard_acquire(581748)){break label$1}if(HEAPU8[1130703]){$8=dmProfile__AllocateScope_28char_20const__29(11164)}else{$8=-1}HEAP32[145436]=$8;__cxa_guard_release(581748)}label$3:{if(HEAP8[581756]&1){break label$3}if(!__cxa_guard_acquire(581756)){break label$3}if(HEAPU8[1130703]){$8=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(11545,16)}else{$8=0}HEAP32[145438]=$8;__cxa_guard_release(581756)}$5=HEAP32[145436];label$5:{if(($5|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($2+112|0,$5,11545,HEAP32[145438]);break label$5}HEAP32[$2+112>>2]=0}label$7:{label$8:{label$9:{label$10:{label$11:{label$12:{$12=HEAP32[$1+84>>2];$5=HEAP32[$12+4>>2];if($5>>>0<=65535){if(!$5){$3=1;break label$11}$6=$2- -64|0;$8=$6;$9=1;$5=0;break label$12}HEAP32[$2>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,10938,11562,$2);break label$11}while(1){$4=HEAP32[$12>>2]+Math_imul($5,80)|0;$7=HEAP32[$4+16>>2];if(!$7){break label$10}label$16:{if(HEAP8[581764]&1){break label$16}if(!__cxa_guard_acquire(581764)){break label$16}if(HEAPU8[1130703]){$10=dmProfile__AllocateScope_28char_20const__29(11631)}else{$10=-1}HEAP32[145440]=$10;__cxa_guard_release(581764)}$3=HEAP32[145440];label$18:{if(($3|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($2+96|0,$3,HEAP32[$7+4>>2],HEAP32[$7+8>>2]);break label$18}HEAP32[$2+96>>2]=0}$3=0;if(HEAP8[$7+88|0]&1){$3=(($11<<2)+$1|0)+160|0;HEAP32[$3>>2]=0;$11=$11+1|0}if($11>>>0>HEAPU32[$1+156>>2]){break label$9}HEAP32[$6>>2]=0;HEAP32[$6+4>>2]=0;HEAP32[$6+8>>2]=0;HEAP32[$2+16>>2]=$1;HEAP32[$2+32>>2]=HEAP32[$4+32>>2];HEAP32[$2+36>>2]=HEAP32[$4+36>>2];HEAP32[$2+40>>2]=HEAP32[$4+40>>2];HEAP32[$2+48>>2]=HEAP32[$4+48>>2];HEAP32[$2+52>>2]=HEAP32[$4+52>>2];HEAP32[$2+56>>2]=HEAP32[$4+56>>2];$10=HEAP32[$4+60>>2];HEAP16[$2+92>>1]=$5;HEAP32[$2+60>>2]=$10;HEAP32[$2+76>>2]=HEAP32[$4+24>>2];HEAP32[$2+80>>2]=HEAP32[((HEAP32[$4+20>>2]<<2)+$0|0)+12>>2];$10=HEAP32[$7+16>>2];HEAP32[$2+88>>2]=$3;HEAP32[$2+84>>2]=$10;HEAP32[$8+8>>2]=HEAP32[$4+72>>2];$3=HEAP32[$4+68>>2];HEAP32[$6>>2]=HEAP32[$4+64>>2];HEAP32[$6+4>>2]=$3;$3=0;label$21:{if(FUNCTION_TABLE[HEAP32[$7+28>>2]]($2+16|0)){$9=0;break label$21}$3=1;$4=((HEAP32[$4+20>>2]<<2)+$0|0)+1032|0;HEAP32[$4>>2]=HEAP32[$4>>2]+1;$13=$13+1|0}if(HEAP32[$2+96>>2]){dmProfile__ProfileScope__EndScope_28_29($2+96|0)}if($3){$5=$5+1|0;if($5>>>0>2]){continue}}break}$3=1;if($9){break label$11}if(!$13){$3=0;break label$11}$6=0;$5=0;while(1){$3=HEAP32[$12>>2]+Math_imul($6,80)|0;$7=HEAP32[$3+16>>2];if(!$7){break label$8}$11=HEAP32[$7+88>>2]&1;$4=$11+$5|0;if($4>>>0>HEAPU32[$1+156>>2]){break label$7}$9=((HEAP32[$3+20>>2]<<2)+$0|0)+1032|0;HEAP32[$9>>2]=HEAP32[$9>>2]+ -1;HEAP32[$2+16>>2]=HEAP32[$0+8>>2];HEAP32[$2+20>>2]=$1;HEAP32[$2+24>>2]=HEAP32[((HEAP32[$3+20>>2]<<2)+$0|0)+12>>2];$3=0;$9=HEAP32[$7+16>>2];HEAP32[$2+32>>2]=$11?(($5<<2)+$1|0)+160|0:0;HEAP32[$2+28>>2]=$9;FUNCTION_TABLE[HEAP32[$7+32>>2]]($2+16|0)|0;$5=$4;$6=$6+1|0;if(($13|0)!=($6|0)){continue}break}}if(HEAP32[$2+112>>2]){dmProfile__ProfileScope__EndScope_28_29($2+112|0)}global$0=$2+128|0;return $3}__assert_fail(11616,10811,722,11545);abort()}__assert_fail(11658,10811,732,11545);abort()}__assert_fail(11616,10811,764,11545);abort()}__assert_fail(11658,10811,770,11545);abort()}function DebugDrawcallback__processTriangle_28btVector3__2c_20int_2c_20int_29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0);$2=global$0-96|0;global$0=$2;$4=HEAPF32[$0+76>>2];$5=HEAPF32[$0+36>>2];$9=HEAPF32[$0+32>>2];$6=HEAPF32[$0+80>>2];$13=HEAPF32[$0+52>>2];$14=HEAPF32[$0+44>>2];$15=HEAPF32[$0+48>>2];$10=HEAPF32[$0+84>>2];$18=HEAPF32[$0+68>>2];$19=HEAPF32[$0+60>>2];$20=HEAPF32[$0- -64>>2];$21=HEAPF32[$0+28>>2];$11=HEAPF32[$1+8>>2];$7=HEAPF32[$1>>2];$8=HEAPF32[$1+4>>2];HEAP32[$2+92>>2]=0;$16=Math_fround($10+Math_fround(Math_fround(Math_fround($7*$19)+Math_fround($8*$20))+Math_fround($11*$18)));HEAPF32[$2+88>>2]=$16;$17=Math_fround($6+Math_fround(Math_fround(Math_fround($7*$14)+Math_fround($8*$15))+Math_fround($11*$13)));HEAPF32[$2+84>>2]=$17;$11=Math_fround($4+Math_fround(Math_fround(Math_fround($21*$7)+Math_fround($9*$8))+Math_fround($5*$11)));HEAPF32[$2+80>>2]=$11;$7=HEAPF32[$1+20>>2];$8=HEAPF32[$1+24>>2];$12=HEAPF32[$1+16>>2];HEAP32[$2+76>>2]=0;$22=Math_fround($10+Math_fround(Math_fround(Math_fround($19*$12)+Math_fround($20*$7))+Math_fround($18*$8)));HEAPF32[$2+72>>2]=$22;$23=Math_fround($6+Math_fround(Math_fround(Math_fround($14*$12)+Math_fround($15*$7))+Math_fround($13*$8)));HEAPF32[$2+68>>2]=$23;$24=Math_fround($4+Math_fround(Math_fround(Math_fround($21*$12)+Math_fround($9*$7))+Math_fround($5*$8)));HEAPF32[$2+64>>2]=$24;$7=HEAPF32[$1+36>>2];$8=HEAPF32[$1+40>>2];$12=HEAPF32[$1+32>>2];HEAP32[$2+60>>2]=0;$10=Math_fround($10+Math_fround(Math_fround(Math_fround($19*$12)+Math_fround($20*$7))+Math_fround($18*$8)));HEAPF32[$2+56>>2]=$10;$6=Math_fround($6+Math_fround(Math_fround(Math_fround($14*$12)+Math_fround($15*$7))+Math_fround($13*$8)));HEAPF32[$2+52>>2]=$6;$4=Math_fround($4+Math_fround(Math_fround(Math_fround($21*$12)+Math_fround($9*$7))+Math_fround($5*$8)));HEAPF32[$2+48>>2]=$4;HEAP32[$2+44>>2]=0;$13=Math_fround(Math_fround(Math_fround($11+$24)+$4)*Math_fround(.3333333432674408));HEAPF32[$2+32>>2]=$13;$14=Math_fround(Math_fround(Math_fround($17+$23)+$6)*Math_fround(.3333333432674408));HEAPF32[$2+36>>2]=$14;$5=Math_fround(Math_fround(Math_fround($16+$22)+$10)*Math_fround(.3333333432674408));HEAPF32[$2+40>>2]=$5;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=1065353216;HEAP32[$2+20>>2]=1065353216;$1=HEAP32[$0+8>>2];HEAP32[$2+12>>2]=0;$7=$5;$5=Math_fround($24-$11);$9=Math_fround($6-$17);$6=Math_fround($23-$17);$15=Math_fround($4-$11);$4=Math_fround(Math_fround($5*$9)-Math_fround($6*$15));$8=$4;$11=Math_fround($4*$4);$4=$6;$6=Math_fround($10-$16);$10=Math_fround($22-$16);$4=Math_fround(Math_fround($4*$6)-Math_fround($10*$9));$5=Math_fround(Math_fround($10*$15)-Math_fround($5*$6));$9=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($11+Math_fround(Math_fround($4*$4)+Math_fround($5*$5))))));HEAPF32[$2+8>>2]=$7+Math_fround($8*$9);HEAPF32[$2+4>>2]=$14+Math_fround($5*$9);HEAPF32[$2>>2]=$13+Math_fround($4*$9);FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+8>>2]]($1,$2+32|0,$2,$2+16|0);$3=HEAP32[$0+8>>2];$1=$0+12|0;FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+8>>2]]($3,$2+80|0,$2- -64|0,$1);$3=HEAP32[$0+8>>2];FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+8>>2]]($3,$2- -64|0,$2+48|0,$1);$0=HEAP32[$0+8>>2];FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$2+48|0,$2+80|0,$1);global$0=$2+96|0}function dmScript__Http_Request_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$1=global$0+ -64|0;global$0=$1;$7=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;HEAP32[$1+56>>2]=0;HEAP32[$1+60>>2]=0;HEAP32[$1+48>>2]=0;HEAP32[$1+52>>2]=0;HEAP32[$1+40>>2]=0;HEAP32[$1+44>>2]=0;HEAP32[$1+32>>2]=0;HEAP32[$1+36>>2]=0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{if(dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29($0,$1+32|0)){$11=luaL_checklstring($0,1,0);$12=luaL_checklstring($0,2,0);luaL_checktype($0,3,6);lua_pushvalue($0,3);HEAP32[$1+40>>2]=dmScript__RefInInstance_28lua_State__29($0)+2;$8=$1+24|0;$2=$8;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;$9=$1+16|4;dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(4096,1,$1+16|0,$2,$9);label$8:{if(($7|0)<4){break label$8}if(!lua_type($0,4)){break label$8}luaL_checktype($0,4,5);lua_pushvalue($0,4);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;if(lua_next($0,-2)){while(1){$5=lua_tolstring($0,-2,0);$3=lua_tolstring($0,-1,0);$13=HEAP32[$1+16>>2];$10=HEAP32[$1+24>>2];$4=HEAP32[$1+20>>2];$2=$10-$4|0;$6=(strlen($5)+strlen($3)|0)+2|0;if($2>>>0<$6>>>0){if(HEAP8[$1+28|0]&1){break label$5}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(($10-$13|0)+($6>>>0>1024?$6:1024)|0,1,$1+16|0,$8,$9);$4=HEAP32[$1+20>>2];$2=HEAP32[$1+24>>2]-$4|0}$6=$2;$2=strlen($5);if($6>>>0<$2>>>0){break label$2}memcpy($4,$5,$2);$2=$2+HEAP32[$1+20>>2]|0;HEAP32[$1+20>>2]=$2;if(($2|0)==HEAP32[$1+24>>2]){break label$1}HEAP32[$1+20>>2]=$2+1;HEAP8[$2|0]=58;$4=HEAP32[$1+20>>2];$6=HEAP32[$1+24>>2]-$4|0;$2=strlen($3);if($6>>>0<$2>>>0){break label$2}memcpy($4,$3,$2);$2=$2+HEAP32[$1+20>>2]|0;HEAP32[$1+20>>2]=$2;if(($2|0)==HEAP32[$1+24>>2]){break label$1}HEAP32[$1+20>>2]=$2+1;HEAP8[$2|0]=10;lua_settop($0,-2);if(lua_next($0,-2)){continue}break}}lua_settop($0,-2)}$2=HEAP32[$1+20>>2];if(($2|0)==HEAP32[$1+24>>2]){break label$1}HEAP32[$1+20>>2]=$2+1;$4=0;HEAP8[$2|0]=0;$5=0;label$13:{if(($7|0)<5){break label$13}if(lua_type($0,5)){luaL_checktype($0,5,4);$2=luaL_checklstring($0,5,$1+12|0);$5=HEAP32[$1+12>>2];$4=dlmalloc($5);memcpy($4,$2,$5)}if(($7|0)<6){break label$13}if(!lua_type($0,6)){break label$13}luaL_checktype($0,6,5);lua_pushvalue($0,6);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;if(lua_next($0,-2)){while(1){if(!strcmp(lua_tolstring($0,-2,0),111284)){luaL_checknumber($0,-1)}lua_settop($0,-2);if(lua_next($0,-2)){continue}break}}lua_settop($0,-2)}$2=operator_20new_28unsigned_20long_29(32);$3=HEAP32[$1+60>>2];HEAP32[$2+24>>2]=HEAP32[$1+56>>2];HEAP32[$2+28>>2]=$3;$3=HEAP32[$1+52>>2];HEAP32[$2+16>>2]=HEAP32[$1+48>>2];HEAP32[$2+20>>2]=$3;$3=HEAP32[$1+44>>2];HEAP32[$2+8>>2]=HEAP32[$1+40>>2];HEAP32[$2+12>>2]=$3;$3=HEAP32[$1+36>>2];HEAP32[$2>>2]=HEAP32[$1+32>>2];HEAP32[$2+4>>2]=$3;dmScriptHttpRequestAsync($12|0,$11|0,HEAP32[$1+16>>2],$2|0,1462,1463,$4|0,$5|0,HEAP32[148788]);if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($7|0)){break label$4}label$18:{if(HEAP8[$1+28|0]&1){break label$18}$0=HEAP32[$1+16>>2];if(!$0){break label$18}dlfree($0)}$0=0;break label$6}if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($7|0)){break label$3}$0=luaL_error($0,111352,0)}global$0=$1- -64|0;return $0|0}__assert_fail(111512,111587,444,111658);abort()}__assert_fail(111292,111313,171,111339);abort()}__assert_fail(111292,111313,174,111339);abort()}__assert_fail(111670,111587,491,111699);abort()}__assert_fail(111709,111587,484,111733);abort()}function btIDebugDraw__drawBox_28btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=0,$5=0,$6=0,$7=0;$4=global$0-32|0;global$0=$4;HEAP32[$4+16>>2]=HEAP32[$1>>2];$6=HEAP32[$1+4>>2];HEAP32[$4+20>>2]=$6;$5=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;$7=HEAP32[$2>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$7;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$6=HEAP32[$2>>2];HEAP32[$4+16>>2]=$6;HEAP32[$4+20>>2]=HEAP32[$1+4>>2];$5=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;HEAP32[$4>>2]=$6;$6=HEAP32[$2+4>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+16>>2]=HEAP32[$2>>2];$6=HEAP32[$2+4>>2];HEAP32[$4+20>>2]=$6;$5=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;$7=HEAP32[$1>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$7;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$6=HEAP32[$1>>2];HEAP32[$4+16>>2]=$6;HEAP32[$4+20>>2]=HEAP32[$2+4>>2];$5=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;HEAP32[$4>>2]=$6;$6=HEAP32[$1+4>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$5=HEAP32[$1>>2];HEAP32[$4+16>>2]=$5;$6=HEAP32[$1+4>>2];HEAP32[$4+20>>2]=$6;$7=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$7;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$5;$5=HEAP32[$2+8>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$5=HEAP32[$2>>2];HEAP32[$4+16>>2]=$5;$6=HEAP32[$1+4>>2];HEAP32[$4+20>>2]=$6;$7=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$7;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$5;$5=HEAP32[$2+8>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$5=HEAP32[$2>>2];HEAP32[$4+16>>2]=$5;$6=HEAP32[$2+4>>2];HEAP32[$4+20>>2]=$6;$7=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$7;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$5;$5=HEAP32[$2+8>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$5=HEAP32[$1>>2];HEAP32[$4+16>>2]=$5;$6=HEAP32[$2+4>>2];HEAP32[$4+20>>2]=$6;$7=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$7;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$5;$5=HEAP32[$2+8>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+16>>2]=HEAP32[$1>>2];$6=HEAP32[$1+4>>2];HEAP32[$4+20>>2]=$6;$5=HEAP32[$2+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;$7=HEAP32[$2>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$7;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$6=HEAP32[$2>>2];HEAP32[$4+16>>2]=$6;HEAP32[$4+20>>2]=HEAP32[$1+4>>2];$5=HEAP32[$2+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;HEAP32[$4>>2]=$6;$6=HEAP32[$2+4>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+16>>2]=HEAP32[$2>>2];$6=HEAP32[$2+4>>2];HEAP32[$4+20>>2]=$6;$5=HEAP32[$2+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;$7=HEAP32[$1>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$7;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$5=HEAP32[$1>>2];HEAP32[$4+16>>2]=$5;HEAP32[$4+20>>2]=HEAP32[$2+4>>2];$2=HEAP32[$2+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$2;HEAP32[$4>>2]=$5;$1=HEAP32[$1+4>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$2;HEAP32[$4+4>>2]=$1;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);global$0=$4+32|0}function dmGameObject__Update_28dmGameObject__CollectionHandle__2c_20dmGameObject__UpdateContext_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$3=global$0+ -64|0;global$0=$3;$0=HEAP32[$0>>2];label$1:{if(HEAP8[581988]&1){break label$1}if(!__cxa_guard_acquire(581988)){break label$1}if(HEAPU8[1130703]){$5=dmProfile__AllocateScope_28char_20const__29(11164)}else{$5=-1}HEAP32[145496]=$5;__cxa_guard_release(581988)}label$3:{if(HEAP8[581996]&1){break label$3}if(!__cxa_guard_acquire(581996)){break label$3}if(HEAPU8[1130703]){$5=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(15678,6)}else{$5=0}HEAP32[145498]=$5;__cxa_guard_release(581996)}$2=HEAP32[145496];label$5:{if(($2|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+48|0,$2,15678,HEAP32[145498]);break label$5}HEAP32[$3+48>>2]=0}label$7:{if(HEAP8[582004]&1){break label$7}if(!__cxa_guard_acquire(582004)){break label$7}if(HEAPU8[1130703]){$5=dmProfile__AllocateCounter_28char_20const__29(15685)}else{$5=-1}HEAP32[145500]=$5;__cxa_guard_release(582004)}label$9:{label$10:{label$11:{label$12:{$2=HEAP32[145500];label$13:{if(($2|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($2,HEAPU16[$0+2078>>1]);break label$13}if(!$0){break label$12}}label$15:{if(HEAP8[$0+4276|0]&1){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,10938,15695,0);break label$15}$2=HEAPU16[$0+4272>>1];if(($2|0)!=32767){while(1){$4=HEAP32[$0+2056>>2];$2=$2&65535;if(HEAP32[$0+2060>>2]-$4>>2>>>0<=$2>>>0){break label$11}$4=HEAP32[$4+($2<<2)>>2];dmGameObject__DoAddToUpdate_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,$4);$2=HEAPU16[$4+150>>1];HEAP16[$4+150>>1]=32767;if(($2|0)!=32767){continue}break}}HEAP32[$0+4272>>2]=2147450879}$5=1;$4=HEAPU8[$0+4276|0]|1;HEAP8[$0+4276|0]=$4;$2=HEAP32[$0+4>>2];$8=HEAP32[$2>>2];if(!$8){break label$9}$10=$0+4224|0;$4=0;while(1){$6=HEAPU16[(($4<<1)+$2|0)+24488>>1];$7=$6<<2;$9=HEAP32[($7+$2|0)+25e3>>2];if(($9|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($9,HEAP32[($0+$7|0)+1032>>2])}$2=Math_imul($6,96)+$2|0;if(!(!(HEAPU8[$2+96|0]&2)|!(HEAPU8[$0+4276|0]&8))){dmGameObject__UpdateTransforms_28dmGameObject__Collection__29($0)}if(HEAP32[$2+60>>2]){label$23:{if(HEAP8[582012]&1){break label$23}if(!__cxa_guard_acquire(582012)){break label$23}if(HEAPU8[1130703]){$6=dmProfile__AllocateScope_28char_20const__29(11164)}else{$6=-1}HEAP32[145502]=$6;__cxa_guard_release(582012)}$6=HEAP32[145502];label$25:{if(($6|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+32|0,$6,HEAP32[$2+12>>2],HEAP32[$2+16>>2]);break label$25}HEAP32[$3+32>>2]=0}$6=HEAP32[$0+8>>2];HEAP32[$3+20>>2]=$1;HEAP32[$3+16>>2]=$6;HEAP32[$3+24>>2]=HEAP32[($0+$7|0)+12>>2];HEAP32[$3+28>>2]=HEAP32[$2+24>>2];HEAP8[$3+8|0]=0;$2=FUNCTION_TABLE[HEAP32[$2+60>>2]]($3+16|0,$3+8|0)|0;$7=HEAPU8[$0+4276|0];HEAP8[$0+4276|0]=$7&8|HEAPU8[$3+8|0]<<3|$7&247;if(HEAP32[$3+32>>2]){dmProfile__ProfileScope__EndScope_28_29($3+32|0)}$5=!$2&$5}$5=$5&dmGameObject__DispatchMessages_28dmGameObject__Collection__2c_20unsigned_20long_20long__2c_20unsigned_20int_29($0,$10,1);$4=$4+1|0;if(($8|0)==($4|0)){break label$10}$2=HEAP32[$0+4>>2];continue}}__assert_fail(12518,10811,2428,15678);abort()}__assert_fail(16081,13666,430,14890);abort()}$4=HEAPU8[$0+4276|0]}HEAP8[$0+4276|0]=$4&254;if($4&8){dmGameObject__UpdateTransforms_28dmGameObject__Collection__29($0)}if(HEAP32[$3+48>>2]){dmProfile__ProfileScope__EndScope_28_29($3+48|0)}global$0=$3- -64|0;return $5}function Vectormath__Aos__inverse_28Vectormath__Aos__Matrix4_20const__29($0,$1){var $2=Math_fround(0),$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0);$3=HEAPF32[$1+4>>2];$6=HEAPF32[$1+32>>2];$7=HEAPF32[$1>>2];$10=HEAPF32[$1+36>>2];$20=Math_fround(Math_fround($3*$6)-Math_fround($7*$10));$11=HEAPF32[$1+8>>2];$12=HEAPF32[$1+40>>2];$21=Math_fround(Math_fround($11*$6)-Math_fround($7*$12));$8=HEAPF32[$1+48>>2];$13=HEAPF32[$1+28>>2];$5=Math_fround(Math_fround($3*$12)-Math_fround($11*$10));$14=HEAPF32[$1+24>>2];$15=HEAPF32[$1+12>>2];$16=HEAPF32[$1+44>>2];$22=Math_fround(Math_fround($15*$10)-Math_fround($3*$16));$4=HEAPF32[$1+20>>2];$23=Math_fround(Math_fround($15*$12)-Math_fround($11*$16));$29=Math_fround(Math_fround(Math_fround($13*$5)+Math_fround($14*$22))-Math_fround($4*$23));$17=HEAPF32[$1+56>>2];$18=HEAPF32[$1+52>>2];$24=Math_fround(Math_fround($4*$17)-Math_fround($14*$18));$19=HEAPF32[$1+60>>2];$25=Math_fround(Math_fround($13*$18)-Math_fround($4*$19));$26=Math_fround(Math_fround($13*$17)-Math_fround($14*$19));$30=Math_fround(Math_fround(Math_fround($15*$24)+Math_fround($11*$25))-Math_fround($3*$26));$9=HEAPF32[$1+16>>2];$31=Math_fround(Math_fround(Math_fround($18*$23)-Math_fround($5*$19))-Math_fround($22*$17));$32=Math_fround(Math_fround(Math_fround($10*$26)-Math_fround($16*$24))-Math_fround($12*$25));$2=Math_fround(Math_fround(1)/Math_fround(Math_fround($8*$29)+Math_fround(Math_fround($6*$30)+Math_fround(Math_fround($9*$31)+Math_fround($7*$32)))));HEAPF32[$0+60>>2]=Math_fround(Math_fround(Math_fround($14*$20)-Math_fround($4*$21))-Math_fround($9*$5))*$2;$27=Math_fround(Math_fround($4*$8)-Math_fround($9*$18));$28=Math_fround(Math_fround($14*$8)-Math_fround($9*$17));HEAPF32[$0+56>>2]=Math_fround(Math_fround(Math_fround($11*$27)-Math_fround($3*$28))-Math_fround($7*$24))*$2;HEAPF32[$0+52>>2]=Math_fround(Math_fround($8*$5)+Math_fround(Math_fround($21*$18)-Math_fround($20*$17)))*$2;HEAPF32[$0+48>>2]=Math_fround(Math_fround($6*$24)+Math_fround(Math_fround($10*$28)-Math_fround($12*$27)))*$2;$5=$4;$4=Math_fround(Math_fround($15*$6)-Math_fround($7*$16));HEAPF32[$0+44>>2]=Math_fround(Math_fround(Math_fround($5*$4)-Math_fround($13*$20))-Math_fround($9*$22))*$2;$5=$3;$3=Math_fround(Math_fround($13*$8)-Math_fround($9*$19));HEAPF32[$0+40>>2]=Math_fround(Math_fround(Math_fround($5*$3)-Math_fround($15*$27))-Math_fround($7*$25))*$2;HEAPF32[$0+36>>2]=Math_fround(Math_fround($8*$22)+Math_fround(Math_fround($20*$19)-Math_fround($18*$4)))*$2;HEAPF32[$0+32>>2]=Math_fround(Math_fround($6*$25)+Math_fround(Math_fround($16*$27)-Math_fround($10*$3)))*$2;HEAPF32[$0+28>>2]=Math_fround(Math_fround($9*$23)+Math_fround(Math_fround($13*$21)-Math_fround($14*$4)))*$2;HEAPF32[$0+24>>2]=Math_fround(Math_fround($7*$26)+Math_fround(Math_fround($15*$28)-Math_fround($11*$3)))*$2;HEAPF32[$0+20>>2]=Math_fround(Math_fround(Math_fround($4*$17)-Math_fround($21*$19))-Math_fround($8*$23))*$2;HEAPF32[$0+16>>2]=Math_fround(Math_fround(Math_fround($12*$3)-Math_fround($16*$28))-Math_fround($6*$26))*$2;HEAPF32[$0+12>>2]=$29*$2;HEAPF32[$0+8>>2]=$30*$2;HEAPF32[$0+4>>2]=$31*$2;HEAPF32[$0>>2]=$32*$2}function dmRender__NewFontMap_28dmGraphics__Context__2c_20dmRender__FontMapParams__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$3=global$0+ -64|0;global$0=$3;$2=operator_20new_28unsigned_20long_29(144);HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+40>>2]=0;HEAP32[$2+44>>2]=0;HEAP32[$2+84>>2]=0;HEAP32[$2+88>>2]=0;HEAP32[$2+116>>2]=0;HEAP32[$2+120>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;$5=$2+8|0;$4=$5;HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=0;HEAP32[$2+48>>2]=0;HEAP32[$2+52>>2]=0;HEAP32[$2+92>>2]=0;HEAP32[$2+96>>2]=0;HEAP32[$2+100>>2]=0;HEAP32[$2+124>>2]=0;HEAP32[$2+128>>2]=0;HEAP32[$2+132>>2]=0;HEAP32[$2+136>>2]=0;HEAP16[$2+140>>1]=256;HEAP32[$2+4>>2]=0;HEAP32[$2+28>>2]=-1;$4=HEAP32[$1+4>>2]-HEAP32[$1>>2]>>6;dmHashTable_unsigned_20int_2c_20dmRender__Glyph___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($5,Math_imul($4,3)>>>1|0,$4);$4=HEAP32[$1>>2];if(($4|0)!=HEAP32[$1+4>>2]){while(1){$4=($6<<6)+$4|0;dmHashTable_unsigned_20int_2c_20dmRender__Glyph___Put_28unsigned_20int_2c_20dmRender__Glyph_20const__29($5,HEAP32[$4>>2],$4);$6=$6+1|0;$4=HEAP32[$1>>2];if($6>>>0>2]-$4>>6>>>0){continue}break}}HEAP32[$2+40>>2]=HEAP32[$1+16>>2];HEAP32[$2+44>>2]=HEAP32[$1+20>>2];HEAP32[$2+48>>2]=HEAP32[$1+24>>2];HEAP32[$2+52>>2]=HEAP32[$1+28>>2];HEAP32[$2+56>>2]=HEAP32[$1+32>>2];HEAP32[$2+60>>2]=HEAP32[$1+36>>2];HEAP32[$2+64>>2]=HEAP32[$1+40>>2];HEAP32[$2+68>>2]=HEAP32[$1+44>>2];HEAP32[$2+72>>2]=HEAP32[$1+48>>2];HEAP32[$2+76>>2]=HEAP32[$1+52>>2];HEAP32[$2+80>>2]=HEAP32[$1+56>>2];HEAP8[$2+141|0]=HEAPU8[$1+89|0];$6=HEAP32[$1+60>>2];HEAP32[$2+84>>2]=$6;$4=HEAP32[$1+64>>2];HEAP32[$2+88>>2]=$4;HEAP32[$2+92>>2]=HEAP32[$1+72>>2];$5=HEAP32[$1+76>>2];HEAP32[$2+128>>2]=$5;$7=HEAP32[$1+80>>2];HEAP32[$2+132>>2]=$7;HEAP32[$2+136>>2]=HEAP32[$1+84>>2];$10=HEAPU8[$1+88|0];$8=($4>>>0)/($7>>>0)|0;HEAP32[$2+120>>2]=$8;$9=($6>>>0)/($5>>>0)|0;HEAP32[$2+116>>2]=$9;HEAP8[$2+140|0]=$10;HEAP32[$2+124>>2]=dlmalloc(Math_imul($5,$7)<<2);label$3:{label$4:{label$5:{label$6:{$7=HEAPU8[$1+68|0]+ -1|0;if($7>>>0>3){break label$6}$5=0;label$7:{switch($7-1|0){case 1:break label$5;case 0:break label$6;case 2:break label$7;default:break label$4}}$5=3;break label$4}$1=0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,98493,98500,0);dmRender__FontMap___FontMap_28_29($2);dlfree($2);break label$3}$5=2}HEAP32[$2+104>>2]=$5;label$8:{if(!HEAP32[$1+92>>2]){FUNCTION_TABLE[HEAP32[147550]]($0,$2+108|0,$2+112|0);label$10:{label$11:{$4=HEAP32[$2+108>>2];$5=$4+ -3|0;if($5>>>0>2){break label$11}$6=1;label$12:{switch($5-1|0){case 0:break label$11;case 1:break label$12;default:break label$10}}$6=2;break label$10}$6=$4}HEAP32[$2+108>>2]=$6;$4=HEAPU16[$1+64>>1];$6=HEAPU16[$1+60>>1];break label$8}HEAP32[$2+108>>2]=2;HEAP32[$2+112>>2]=2}$5=Math_imul($8,$9)<<2;$7=dlmalloc($5);HEAP32[$2+96>>2]=$7;memset($7,0,$5);HEAP8[$3+60|0]=1;HEAP32[$3+48>>2]=0;HEAP32[$3+28>>2]=0;HEAP8[$3+31|0]=0;HEAP8[$3+32|0]=0;HEAP8[$3+33|0]=0;HEAP8[$3+34|0]=0;HEAP16[$3+58>>1]=$4;HEAP16[$3+56>>1]=$6;HEAP16[$3+54>>1]=$4;HEAP16[$3+52>>1]=$6;HEAP32[$3+36>>2]=0;HEAP32[$3+40>>2]=0;HEAP32[$3+12>>2]=1;HEAP32[$3+16>>2]=1;$5=HEAP32[$2+104>>2];HEAP32[$3+4>>2]=2;HEAP32[$3+8>>2]=2;HEAP16[$3+30>>1]=$6;HEAP16[$3+32>>1]=$4;HEAP32[$3>>2]=$5;$5=FUNCTION_TABLE[HEAP32[147618]]($0,$3+48|0)|0;HEAP32[$2>>2]=$5;$0=Math_imul(Math_imul(HEAPU8[$1+68|0],$6&65535),$4&65535);$1=dlmalloc($0);HEAP32[$3+24>>2]=$0;HEAP32[$3+20>>2]=$1;memset($1,0,$0);FUNCTION_TABLE[HEAP32[147620]]($5,$3);dlfree(HEAP32[$3+20>>2]);$1=$2}global$0=$3- -64|0;return $1}function void_20std____2____stable_sort_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0,$10=0,$11=0;label$1:{if($3>>>0<=2){if($3-2){break label$1}$2=HEAP32[$2>>2];$1=$1+ -4|0;$3=HEAP32[$1>>2];$4=$2+($3<<3)|0;$5=HEAP32[$4>>2];$7=HEAP32[$0>>2];$2=$2+($7<<3)|0;$6=HEAP32[$2>>2];$4=HEAP32[$4+4>>2];$2=HEAP32[$2+4>>2];if(($4|0)==($2|0)&$5>>>0>=$6>>>0|$4>>>0>$2>>>0){break label$1}HEAP32[$0>>2]=$3;HEAP32[$1>>2]=$7;return}if(($3|0)<=128){if(($0|0)==($1|0)){break label$1}$3=$0+4|0;if(($3|0)==($1|0)){break label$1}$5=HEAP32[$2>>2];while(1){$7=HEAP32[$3>>2];$4=$0;label$5:{if(($4|0)==($3|0)){break label$5}$6=$5+($7<<3)|0;$4=$3;while(1){$2=$4+ -4|0;$9=HEAP32[$2>>2];$8=$5+($9<<3)|0;$10=HEAP32[$8>>2];$11=HEAP32[$6+4>>2];$8=HEAP32[$8+4>>2];if(($11|0)==($8|0)&HEAPU32[$6>>2]>=$10>>>0|$11>>>0>$8>>>0){break label$5}HEAP32[$4>>2]=$9;$4=$2;if(($4|0)!=($0|0)){continue}break}$4=$0}HEAP32[$4>>2]=$7;$3=$3+4|0;if(($3|0)!=($1|0)){continue}break}break label$1}$7=$3>>>1|0;$9=$7<<2;$6=$9+$0|0;label$7:{if(($3|0)<=($5|0)){void_20std____2____stable_sort_move_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($0,$6,$2,$7,$4);$5=$1;$1=$4+$9|0;void_20std____2____stable_sort_move_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($6,$5,$2,$3-$7|0,$1);$5=($3<<2)+$4|0;$2=HEAP32[$2>>2];$3=$1;while(1){if(($3|0)==($5|0)){if(($1|0)==($4|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$4>>2];$0=$0+4|0;$4=$4+4|0;if(($1|0)!=($4|0)){continue}break}break label$1}$7=HEAP32[$3>>2];$6=$2+($7<<3)|0;$9=HEAP32[$6>>2];$8=HEAP32[$4>>2];$10=$2+($8<<3)|0;$11=HEAP32[$10>>2];$6=HEAP32[$6+4>>2];$10=HEAP32[$10+4>>2];label$12:{if(($6|0)==($10|0)&$9>>>0<$11>>>0|$6>>>0<$10>>>0){HEAP32[$0>>2]=$7;$3=$3+4|0;break label$12}HEAP32[$0>>2]=$8;$4=$4+4|0}$0=$0+4|0;if(($1|0)!=($4|0)){continue}break}break label$7}void_20std____2____stable_sort_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$6,$2,$7,$4,$5);$3=$3-$7|0;void_20std____2____stable_sort_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($6,$1,$2,$3,$4,$5);void_20std____2____inplace_merge_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$6,$1,$2,$7,$3,$4,$5);break label$1}if(($3|0)==($5|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$3>>2];$0=$0+4|0;$3=$3+4|0;if(($5|0)!=($3|0)){continue}break}}}function dmEngine__Delete_28dmEngine__Engine__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0;$4=global$0-32|0;global$0=$4;$1=HEAP32[$0+156>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$0+244>>2],$1)}dmGameObject__PostUpdate_28dmGameObject__Register__29(HEAP32[$0+152>>2]);dmHttpClient__ShutdownConnectionPool_28_29();HEAP32[309376]=0;HEAP8[1237672]=0;HEAP32[309387]=HEAP32[309386];$1=$4+16|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+4>>2]=HEAP32[$0+244>>2];HEAP32[$1+8>>2]=HEAP32[$0+152>>2];$3=HEAP32[$0+228>>2];label$2:{label$3:{if($3){HEAP32[$1>>2]=$3?HEAP32[$3+120>>2]:0;break label$3}$3=$1;$2=HEAP32[$0+232>>2];$5=0;label$7:{if(!$2){break label$7}$5=HEAP32[$2+120>>2]}HEAP32[$3>>2]=$5;dmGameSystem__FinalizeScriptLibs_28dmGameSystem__ScriptLibContext_20const__29($1);$2=HEAP32[$0+268>>2];if(!$2){break label$2}HEAP32[$1>>2]=HEAP32[$2>>2]}dmGameSystem__FinalizeScriptLibs_28dmGameSystem__ScriptLibContext_20const__29($1)}dmHttpClient__ReopenConnectionPool_28_29();dmGameObject__DeleteRegister_28dmGameObject__Register__29(HEAP32[$0+152>>2]);$1=HEAP32[$0+440>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$0+244>>2],$1)}$1=HEAP32[$0+420>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$0+244>>2],$1)}$1=HEAP32[$0+432>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$0+244>>2],$1)}$1=HEAP32[$0+436>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$0+244>>2],$1)}dmSound__Finalize_28_29();dmInput__DeleteContext_28dmInput__Context__29(HEAP32[$0+428>>2]);dmRender__DeleteRenderContext_28dmRender__RenderContext__2c_20dmScript__Context__29(HEAP32[$0+188>>2]);if(HEAP32[$0+424>>2]){HEAP32[279952]=0;dmGameObject__DestroyPropertyContainerCallback_28unsigned_20long_29(HEAP32[$0+424>>2])}$2=$0+228|0;$1=HEAP32[$0+268>>2];if($1){if($1){dlfree(dmGui__Context___Context_28_29($1))}}$1=HEAP32[$0+228>>2];label$15:{if(!$1){$1=HEAP32[$0+232>>2];if($1){dmScript__Finalize_28dmScript__Context__29($1);dmScript__DeleteContext_28dmScript__Context__29(HEAP32[$0+232>>2])}$1=HEAP32[$0+236>>2];if($1){dmScript__Finalize_28dmScript__Context__29($1);dmScript__DeleteContext_28dmScript__Context__29(HEAP32[$0+236>>2])}$1=HEAP32[$0+240>>2];if(!$1){break label$15}$2=$0+240|0}dmScript__Finalize_28dmScript__Context__29($1);dmScript__DeleteContext_28dmScript__Context__29(HEAP32[$2>>2])}$1=HEAP32[$0+244>>2];if($1){dmResource__DeleteFactory_28dmResource__SResourceFactory__29($1)}$1=HEAP32[$0+184>>2];if($1){FUNCTION_TABLE[HEAP32[147540]]($1);FUNCTION_TABLE[HEAP32[147535]](HEAP32[$0+184>>2])}$1=HEAP32[$0+300>>2];$2=$1;$3=HEAP32[$0+296>>2];if($1|$3){dmMessage__DeleteSocket_28unsigned_20long_20long_29($3,$2)}$1=HEAP32[$0+192>>2];label$22:{if(!$1){break label$22}if(HEAPU8[$0+205|0]){dmPhysics__DeleteContext3D_28dmPhysics__Context3D__29($1);break label$22}dmPhysics__DeleteContext2D_28dmPhysics__Context2D__29($1)}$1=$4+8|0;HEAP32[$1>>2]=0;HEAP32[$1>>2]=HEAP32[$0+4>>2];dmExtension__AppFinalize_28dmExtension__AppParams__29($1);$1=HEAP32[280323];if($1){dlfree(HEAP32[$1>>2]);dlfree(HEAP32[280323])}HEAP32[280323]=0;$1=HEAP32[$0+4>>2];if($1){dmConfigFile__Delete_28dmConfigFile__Config__29($1)}label$26:{if(HEAP8[$0+416|0]&1){break label$26}$1=HEAP32[$0+404>>2];if(!$1){break label$26}dlfree($1)}label$27:{if(HEAP8[$0+260|0]&1){break label$27}$1=HEAP32[$0+248>>2];if(!$1){break label$27}dlfree($1)}label$28:{if(HEAP8[$0+172|0]&1){break label$28}$1=HEAP32[$0+160>>2];if(!$1){break label$28}dlfree($1)}dlfree($0);global$0=$4+32|0}function dmHashClone64($0,$1,$2){var $3=0,$4=0;$3=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$3;$3=HEAP32[$1+28>>2];HEAP32[$0+24>>2]=HEAP32[$1+24>>2];HEAP32[$0+28>>2]=$3;$3=HEAP32[$1+20>>2];HEAP32[$0+16>>2]=HEAP32[$1+16>>2];HEAP32[$0+20>>2]=$3;$3=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$3;label$1:{if(HEAP8[1130232]&1){break label$1}if(!__cxa_guard_acquire(1130232)){break label$1}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$3=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$3;__cxa_guard_release(1130232)}label$2:{label$3:{if(!(!HEAPU8[1130132]|!HEAP32[$1+24>>2])){if($2){label$6:{if(HEAP8[1130232]&1){break label$6}if(!__cxa_guard_acquire(1130232)){break label$6}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$3=HEAP32[282532];dmMutex__Lock_28dmMutex__Mutex__29($3);label$7:{if(HEAP8[1130232]&1){break label$7}if(!__cxa_guard_acquire(1130232)){break label$7}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$2=$0;$0=ReverseHashContainer__AllocReverseHashStatesSlot_28_29();HEAP32[$2+24>>2]=$0;label$8:{if(HEAP8[1130232]&1){break label$8}if(!__cxa_guard_acquire(1130232)){break label$8}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}if(!$0){break label$3}$2=HEAP32[282550];$4=HEAP32[282551]-$2>>3;if($4>>>0<=$0>>>0){break label$2}$1=HEAP32[$1+24>>2];if($4>>>0<=$1>>>0){break label$2}$4=$2+($0<<3)|0;$1=$2+($1<<3)|0;$0=HEAPU16[$1+4>>1];$2=dlmalloc($0+16&131056);HEAP32[$4>>2]=$2;HEAP8[memcpy($2,HEAP32[$1>>2],$0)+$0|0]=0;HEAP16[$4+4>>1]=$0;dmMutex__Unlock_28dmMutex__Mutex__29($3);return}HEAP32[$0+24>>2]=0}return}__assert_fail(147415,147127,135,147432);abort()}__assert_fail(147626,147230,430,147637);abort()}function dmGameObject__FindPropertyName_28dmPropertiesDDF__PropertyDeclarations__2c_20unsigned_20long_20long_2c_20char_20const___2c_20dmGameObject__PropertyType__2c_20unsigned_20long_20long___2c_20bool__2c_20unsigned_20int__29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;HEAP8[$6|0]=0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{label$9:{label$10:{label$11:{label$12:{$10=HEAP32[$0+52>>2];if($10){$9=HEAP32[$0+48>>2];while(1){$11=$9+($8<<5)|0;if(($1|0)==HEAP32[$11+8>>2]&($2|0)==HEAP32[$11+12>>2]){break label$12}$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}$10=HEAP32[$0+4>>2];if($10){$9=HEAP32[$0>>2];$8=0;while(1){$11=$9+($8<<5)|0;if(($1|0)==HEAP32[$11+8>>2]&($2|0)==HEAP32[$11+12>>2]){break label$11}$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}$10=HEAP32[$0+12>>2];if($10){$9=HEAP32[$0+8>>2];$8=0;while(1){$11=$9+($8<<5)|0;if(($1|0)==HEAP32[$11+8>>2]&($2|0)==HEAP32[$11+12>>2]){break label$10}$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}$10=HEAP32[$0+20>>2];if($10){$9=HEAP32[$0+16>>2];$8=0;while(1){$11=$9+($8<<5)|0;if(($1|0)==HEAP32[$11+8>>2]&($2|0)==HEAP32[$11+12>>2]){break label$9}$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}$11=HEAP32[$0+28>>2];if($11){$10=HEAP32[$0+24>>2];$8=0;while(1){$9=$10+($8<<5)|0;if(($1|0)==HEAP32[$9+8>>2]&($2|0)==HEAP32[$9+12>>2]){break label$8}$8=$8+1|0;if(($11|0)!=($8|0)){continue}break}$9=0;while(1){$8=$10+($9<<5)|0;$12=HEAP32[$8+24>>2];if($12){$14=HEAP32[$8+20>>2];$8=0;while(1){$13=$14+($8<<3)|0;if(($1|0)==HEAP32[$13>>2]&($2|0)==HEAP32[$13+4>>2]){break label$7}$8=$8+1|0;if(($12|0)!=($8|0)){continue}break}}$9=$9+1|0;if(($11|0)!=($9|0)){continue}break}}$11=HEAP32[$0+36>>2];if($11){$10=HEAP32[$0+32>>2];$8=0;while(1){$9=$10+($8<<5)|0;if(($1|0)==HEAP32[$9+8>>2]&($2|0)==HEAP32[$9+12>>2]){break label$6}$8=$8+1|0;if(($11|0)!=($8|0)){continue}break}$9=0;while(1){$8=$10+($9<<5)|0;$12=HEAP32[$8+24>>2];if($12){$14=HEAP32[$8+20>>2];$8=0;while(1){$13=$14+($8<<3)|0;if(($1|0)==HEAP32[$13>>2]&($2|0)==HEAP32[$13+4>>2]){break label$5}$8=$8+1|0;if(($12|0)!=($8|0)){continue}break}}$9=$9+1|0;if(($11|0)!=($9|0)){continue}break}}$8=0;$9=HEAP32[$0+44>>2];if(!$9){break label$2}$0=HEAP32[$0+40>>2];while(1){$10=$0+($8<<5)|0;if(($1|0)==HEAP32[$10+8>>2]&HEAP32[$10+12>>2]==($2|0)){break label$4}$8=$8+1|0;if(($9|0)!=($8|0)){continue}break}$5=0;while(1){label$33:{$8=$0+($5<<5)|0;$10=HEAP32[$8+24>>2];if($10){$11=HEAP32[$8+20>>2];$8=0;while(1){$12=$11+($8<<3)|0;if(($1|0)==HEAP32[$12>>2]&HEAP32[$12+4>>2]==($2|0)){break label$33}$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}$8=0;$5=$5+1|0;if(($9|0)!=($5|0)){continue}break label$2}break}HEAP32[$3>>2]=HEAP32[$0+($5<<5)>>2];break label$3}$0=$9+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=6;break label$1}$0=$9+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=0;break label$1}$0=$9+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=1;break label$1}$0=$9+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=2;break label$1}$0=$10+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=3;break label$1}HEAP32[$3>>2]=HEAP32[$10+($9<<5)>>2];break label$3}$0=$10+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=4;break label$1}HEAP32[$3>>2]=HEAP32[$10+($9<<5)>>2];break label$3}$0=$0+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=5;break label$1}HEAP32[$7>>2]=$8;HEAP32[$4>>2]=0;$8=1;HEAP8[$6|0]=1}return $8}return 1}function std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$6=HEAP32[$0+40>>2];$7=HEAP32[$0+44>>2];$8=HEAP32[$0+24>>2];$9=HEAP32[$0+28>>2];$10=HEAP32[$0+56>>2];$11=HEAP32[$0>>2];$12=HEAP32[$0+4>>2];$13=HEAP32[$0+16>>2];$14=HEAP32[$0+20>>2];$15=HEAP32[$0+32>>2];$16=HEAP32[$0+36>>2];$17=HEAP32[$0+48>>2];$18=HEAP32[$0+52>>2];$19=HEAP32[$0+8>>2];$5=HEAP32[$0+76>>2];$2=global$0+ -64|0;$4=$2+44|0;HEAP32[$4>>2]=HEAP32[$0+72>>2];HEAP32[$4+4>>2]=$5;$4=HEAP32[$0+84>>2];HEAP32[$2+52>>2]=HEAP32[$0+80>>2];HEAP32[$2+56>>2]=$4;HEAP32[$2+60>>2]=HEAP32[$0+88>>2];$4=HEAP32[$0+68>>2];HEAP32[$2+36>>2]=HEAP32[$0+64>>2];HEAP32[$2+40>>2]=$4;$4=HEAP32[$0+104>>2];$5=HEAP32[$0+108>>2];$20=HEAP32[$0+120>>2];$21=HEAP32[$0+124>>2];$22=HEAP32[$0+136>>2];$23=HEAP32[$0+96>>2];$24=HEAP32[$0+100>>2];$25=HEAP32[$0+112>>2];$26=HEAP32[$0+116>>2];$27=HEAP32[$0+128>>2];$28=HEAP32[$0+132>>2];$3=HEAP32[$0+156>>2];HEAP32[$2+24>>2]=HEAP32[$0+152>>2];HEAP32[$2+28>>2]=$3;$3=HEAP32[$0+148>>2];HEAP32[$2+16>>2]=HEAP32[$0+144>>2];HEAP32[$2+20>>2]=$3;HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=HEAP32[$1+4>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+16>>2]=HEAP32[$1+16>>2];HEAP32[$0+20>>2]=HEAP32[$1+20>>2];HEAP32[$0+24>>2]=HEAP32[$1+24>>2];HEAP32[$0+28>>2]=HEAP32[$1+28>>2];HEAP32[$0+32>>2]=HEAP32[$1+32>>2];HEAP32[$0+36>>2]=HEAP32[$1+36>>2];HEAP32[$0+40>>2]=HEAP32[$1+40>>2];HEAP32[$0+44>>2]=HEAP32[$1+44>>2];HEAP32[$0+48>>2]=HEAP32[$1+48>>2];HEAP32[$0+52>>2]=HEAP32[$1+52>>2];HEAP32[$0+56>>2]=HEAP32[$1+56>>2];$3=HEAP32[$1+68>>2];HEAP32[$0+64>>2]=HEAP32[$1+64>>2];HEAP32[$0+68>>2]=$3;$3=HEAP32[$1+76>>2];HEAP32[$0+72>>2]=HEAP32[$1+72>>2];HEAP32[$0+76>>2]=$3;$3=HEAP32[$1+84>>2];HEAP32[$0+80>>2]=HEAP32[$1+80>>2];HEAP32[$0+84>>2]=$3;HEAP32[$0+88>>2]=HEAP32[$1+88>>2];HEAP32[$0+96>>2]=HEAP32[$1+96>>2];HEAP32[$0+100>>2]=HEAP32[$1+100>>2];HEAP32[$0+104>>2]=HEAP32[$1+104>>2];HEAP32[$0+108>>2]=HEAP32[$1+108>>2];HEAP32[$0+112>>2]=HEAP32[$1+112>>2];HEAP32[$0+116>>2]=HEAP32[$1+116>>2];HEAP32[$0+120>>2]=HEAP32[$1+120>>2];HEAP32[$0+124>>2]=HEAP32[$1+124>>2];HEAP32[$0+128>>2]=HEAP32[$1+128>>2];HEAP32[$0+132>>2]=HEAP32[$1+132>>2];HEAP32[$0+136>>2]=HEAP32[$1+136>>2];$3=HEAP32[$1+156>>2];HEAP32[$0+152>>2]=HEAP32[$1+152>>2];HEAP32[$0+156>>2]=$3;$3=HEAP32[$1+148>>2];HEAP32[$0+144>>2]=HEAP32[$1+144>>2];HEAP32[$0+148>>2]=$3;HEAP32[$1+56>>2]=$10;HEAP32[$1+8>>2]=$19;HEAP32[$1+24>>2]=$8;HEAP32[$1+28>>2]=$9;HEAP32[$1+48>>2]=$17;HEAP32[$1+52>>2]=$18;HEAP32[$1+32>>2]=$15;HEAP32[$1+36>>2]=$16;HEAP32[$1+16>>2]=$13;HEAP32[$1+20>>2]=$14;HEAP32[$1>>2]=$11;HEAP32[$1+4>>2]=$12;HEAP32[$1+40>>2]=$6;HEAP32[$1+44>>2]=$7;HEAP32[$1+88>>2]=HEAP32[$2+60>>2];$0=HEAP32[$2+56>>2];HEAP32[$1+80>>2]=HEAP32[$2+52>>2];HEAP32[$1+84>>2]=$0;$0=HEAP32[$2+48>>2];HEAP32[$1+72>>2]=HEAP32[$2+44>>2];HEAP32[$1+76>>2]=$0;$0=HEAP32[$2+40>>2];HEAP32[$1+64>>2]=HEAP32[$2+36>>2];HEAP32[$1+68>>2]=$0;HEAP32[$1+136>>2]=$22;HEAP32[$1+128>>2]=$27;HEAP32[$1+132>>2]=$28;HEAP32[$1+120>>2]=$20;HEAP32[$1+124>>2]=$21;HEAP32[$1+112>>2]=$25;HEAP32[$1+116>>2]=$26;HEAP32[$1+104>>2]=$4;HEAP32[$1+108>>2]=$5;HEAP32[$1+96>>2]=$23;HEAP32[$1+100>>2]=$24;$0=HEAP32[$2+28>>2];HEAP32[$1+152>>2]=HEAP32[$2+24>>2];HEAP32[$1+156>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+144>>2]=HEAP32[$2+16>>2];HEAP32[$1+148>>2]=$0}function dmGameObject__CompScriptOnMessage_28dmGameObject__ComponentOnMessageParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$3=global$0-48|0;global$0=$3;label$1:{if(HEAP8[582076]&1){break label$1}if(!__cxa_guard_acquire(582076)){break label$1}if(HEAPU8[1130703]){$1=dmProfile__AllocateScope_28char_20const__29(16397)}else{$1=-1}HEAP32[145518]=$1;__cxa_guard_release(582076)}label$3:{if(HEAP8[582084]&1){break label$3}if(!__cxa_guard_acquire(582084)){break label$3}if(HEAPU8[1130703]){$1=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(16404,9)}else{$1=0}HEAP32[145520]=$1;__cxa_guard_release(582084)}$1=HEAP32[145518];label$5:{if(($1|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+32|0,$1,16404,HEAP32[145520]);break label$5}HEAP32[$3+32>>2]=0}$5=HEAP32[HEAP32[$0+12>>2]>>2];$1=0;label$7:{$2=HEAP32[HEAP32[$0+16>>2]+40>>2];label$9:{if($2){$6=1;$2=$2+ -2|0;break label$9}$2=HEAP32[HEAP32[$5>>2]+16>>2]}label$8:{if(($2|0)==-2){break label$8}$4=HEAP32[$0+8>>2];$1=0;label$11:{if(!$4){break label$11}$1=HEAP32[$4+120>>2]}$8=HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4;lua_rawgeti($1,-1e4,HEAP32[$5+12>>2]);dmScript__SetInstance_28lua_State__29($1);label$12:{label$13:{if($6){dmScript__ResolveInInstance_28lua_State__2c_20int_29($1,$2);if((lua_type($1,-1)|0)!=6){break label$12}dmScript__UnrefInInstance_28lua_State__2c_20int_29($1,$2);break label$13}lua_rawgeti($1,-1e4,$2)}if((lua_type($1,-1)|0)!=6){break label$7}lua_rawgeti($1,-1e4,HEAP32[$5+12>>2]);$2=HEAP32[$0+16>>2];dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($1,HEAP32[$2+64>>2],HEAP32[$2+68>>2]);$2=HEAP32[$0+16>>2];$4=HEAP32[$2+76>>2];label$15:{if($4){$7=HEAP32[$4+4>>2];dmScript__PushDDF_28lua_State__2c_20dmDDF__Descriptor_20const__2c_20char_20const__2c_20bool_29($1,$4,$2+96|0);break label$15}if(HEAPU8[1130703]){$7=dmHashReverse64(HEAP32[$2+64>>2],HEAP32[$2+68>>2]);$2=HEAP32[$0+16>>2]}$4=HEAP32[$2+80>>2];if($4){dmScript__PushTable_28lua_State__2c_20char_20const__2c_20unsigned_20int_29($1,$2+96|0,$4);break label$15}lua_createtable($1,0,0)}dmScript__PushURL_28lua_State__2c_20dmMessage__URL_20const__29($1,HEAP32[$0+16>>2]);HEAP32[$3+28>>2]=0;$2=dmScript__GetProfilerString_28lua_State__2c_20int_2c_20char_20const__2c_20char_20const__2c_20char_20const__2c_20unsigned_20int__29($1,$6?-5:0,HEAP32[HEAP32[HEAP32[$5>>2]+40>>2]+8>>2],HEAP32[130759],$7,$3+28|0);label$20:{if(HEAP8[582092]&1){break label$20}if(!__cxa_guard_acquire(582092)){break label$20}if(HEAPU8[1130703]){$0=dmProfile__AllocateScope_28char_20const__29(16397)}else{$0=-1}HEAP32[145522]=$0;__cxa_guard_release(582092)}$0=HEAP32[145522];label$22:{if(($0|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+8|0,$0,$2,HEAP32[$3+28>>2]);break label$22}HEAP32[$3+8>>2]=0}$0=dmScript__PCall_28lua_State__2c_20int_2c_20int_29($1,4,0);if(HEAP32[$3+8>>2]){dmProfile__ProfileScope__EndScope_28_29($3+8|0)}$2=HEAP32[$1+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$1+8>>2]=$2+16;dmScript__SetInstance_28lua_State__29($1);if(HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4==($8|0)){$1=$0?-1e3:0;break label$8}__assert_fail(16414,16435,330,16596);abort()}lua_settop($1,-2);$0=HEAP32[$1+8>>2];HEAP32[$0+8>>2]=0;HEAP32[$1+8>>2]=$0+16;dmScript__SetInstance_28lua_State__29($1);$1=0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,16283,16502,0)}if(HEAP32[$3+32>>2]){dmProfile__ProfileScope__EndScope_28_29($3+32|0)}global$0=$3+48|0;return $1|0}__assert_fail(16574,16435,287,16596);abort()}function dmGui__NewNode_28dmGui__Scene__2c_20Vectormath__Aos__Point3_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20dmGui__NodeType_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$8=global$0-16|0;global$0=$8;$4=HEAPU16[$0+24>>1];$5=$4;label$1:{label$2:{label$3:{label$4:{$6=HEAPU16[$0+26>>1];label$5:{if(($6|0)==($4|0)){break label$5}$5=HEAP32[$0+20>>2];if(!$5){break label$4}if($6>>>0>=$4>>>0){break label$3}HEAP16[$0+26>>1]=$6+1;$7=HEAP32[$0+32>>2];$5=HEAPU16[$5+($6<<1)>>1];if((HEAP32[$0+36>>2]-$7|0)/576>>>0>$5>>>0){break label$5}if((HEAP32[$0+40>>2]-$7|0)/576>>>0<=$5>>>0){break label$2}HEAP32[$0+36>>2]=($7+Math_imul($5,576)|0)+576}label$6:{if(($4|0)==($5|0)){HEAP32[$8>>2]=$4;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,200121,$8);$0=0;break label$6}$4=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$4|0)/576>>>0<=$5>>>0){break label$1}$6=HEAPU16[$0+368>>1];$4=memset($4+Math_imul($5,576)|0,0,576);$7=HEAP32[$1+8>>2];HEAP32[$4+24>>2]=0;HEAP32[$4+28>>2]=0;$9=HEAP32[$1+4>>2];HEAP32[$4>>2]=HEAP32[$1>>2];HEAP32[$4+4>>2]=$9;HEAP32[$4+16>>2]=0;HEAP32[$4+20>>2]=0;HEAP32[$4+12>>2]=1065353216;HEAP32[$4+8>>2]=$7;HEAP32[$4+104>>2]=0;HEAP32[$4+108>>2]=1065353216;HEAP32[$4+96>>2]=0;HEAP32[$4+100>>2]=0;HEAP32[$4+88>>2]=0;HEAP32[$4+92>>2]=1065353216;HEAP32[$4+80>>2]=0;HEAP32[$4+84>>2]=0;HEAP32[$4+56>>2]=1065353216;HEAP32[$4+60>>2]=1065353216;HEAP32[$4+48>>2]=1065353216;HEAP32[$4+52>>2]=1065353216;HEAP32[$4+40>>2]=1065353216;HEAP32[$4+44>>2]=0;HEAP32[$4+32>>2]=1065353216;HEAP32[$4+36>>2]=1065353216;$1=HEAP32[$2+8>>2];$7=HEAP32[$2>>2];$2=HEAP32[$2+4>>2];HEAP32[$4+112>>2]=0;HEAP32[$4+116>>2]=0;HEAP32[$4+76>>2]=0;HEAP32[$4+128>>2]=0;HEAP32[$4+324>>2]=0;HEAP32[$4+328>>2]=0;HEAP32[$4+320>>2]=1065353216;HEAP32[$4+156>>2]=0;HEAP32[$4+148>>2]=0;HEAP32[$4+152>>2]=0;HEAP32[$4+140>>2]=0;HEAP32[$4+144>>2]=1065353216;HEAP32[$4+132>>2]=1135869952;HEAP32[$4+136>>2]=0;HEAP32[$4+332>>2]=0;HEAP32[$4+336>>2]=0;HEAP32[$4+340>>2]=1065353216;HEAP32[$4+344>>2]=0;HEAP32[$4+348>>2]=0;HEAP32[$4+352>>2]=0;HEAP32[$4+356>>2]=0;HEAP32[$4+360>>2]=1065353216;HEAP32[$4+120>>2]=0;HEAP32[$4+124>>2]=0;HEAP32[$4+64>>2]=$7;HEAP32[$4+68>>2]=$2;HEAP32[$4+72>>2]=$1;HEAP32[$4+372>>2]=0;HEAP32[$4+376>>2]=0;HEAP32[$4+364>>2]=0;HEAP32[$4+368>>2]=0;HEAP32[$4+396>>2]=1065353216;HEAP32[$4+380>>2]=1065353216;HEAP32[$4+384>>2]=1065353216;HEAP32[$4+388>>2]=1065353216;HEAP32[$4+392>>2]=1065353216;HEAP32[$4+404>>2]=32;HEAP32[$4+408>>2]=1;HEAP32[$4+480>>2]=0;HEAP32[$4+484>>2]=0;HEAP32[$4+488>>2]=0;HEAP8[$4+416|0]=0;HEAP32[$4+424>>2]=0;HEAP32[$4+428>>2]=0;HEAP32[$4+432>>2]=0;HEAP32[$4+436>>2]=0;HEAP32[$4+440>>2]=0;HEAP32[$4+444>>2]=0;HEAP32[$4+448>>2]=0;HEAP32[$4+452>>2]=0;HEAP32[$4+456>>2]=0;HEAP32[$4+460>>2]=0;HEAP32[$4+464>>2]=0;HEAP32[$4+468>>2]=0;HEAP32[$4+472>>2]=0;HEAP32[$4+512>>2]=0;HEAP32[$4+516>>2]=0;HEAP32[$4+520>>2]=0;HEAP32[$4+524>>2]=0;HEAP32[$4+412>>2]=$3<<4&240|HEAP32[$4+412>>2]&-536870912|36700160;$1=HEAP32[283394];$2=HEAP32[283395];HEAP32[$4+568>>2]=-1;HEAP16[$4+554>>1]=$5;$3=$6+!$6|0;HEAP16[$4+552>>1]=$3;HEAP32[$4+508>>2]=0;HEAP16[$4+504>>1]=0;HEAP32[$4+496>>2]=$1;HEAP32[$4+500>>2]=$2;HEAP32[$4+556>>2]=-1;HEAP32[$4+560>>2]=-1;HEAP16[$4+564>>1]=-1;$1=$3&65535;HEAP16[$0+368>>1]=($1+1>>>0)%65535;$2=$0;$0=$1<<16|$5;dmGui__MoveNodeAbove_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20int_29($2,$0,0)}global$0=$8+16|0;return $0}__assert_fail(201667,201674,148,201740);abort()}__assert_fail(201744,201674,149,201740);abort()}__assert_fail(202434,201431,457,202453);abort()}__assert_fail(201597,201431,430,201608);abort()}function btDefaultCollisionConfiguration__btDefaultCollisionConfiguration_28btDefaultCollisionConstructionInfo_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0;HEAP32[$0>>2]=543224;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(360);HEAP32[$2+308>>2]=953267991;HEAP8[$2+332|0]=HEAPU8[$2+332|0]&240;HEAP32[$0+32>>2]=$2;$4=HEAP32[$1+28>>2];$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(4);HEAP32[$2>>2]=$4?544676:544716;HEAP32[$0+36>>2]=$2;$3=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(24);$4=HEAP32[$0+32>>2];$2=HEAP32[$0+36>>2];HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=3;HEAP8[$3+4|0]=0;HEAP32[$3+12>>2]=$4;HEAP32[$3+8>>2]=$2;HEAP32[$3>>2]=542816;HEAP32[$0+40>>2]=$3;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543260;HEAP8[$2+4|0]=0;HEAP32[$0+44>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543280;HEAP8[$2+4|0]=0;HEAP32[$0+48>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543300;HEAP8[$2+4|0]=0;HEAP32[$0+52>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543320;HEAP8[$2+4|0]=0;HEAP32[$0+56>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543340;HEAP8[$2+4|0]=0;HEAP32[$0+60>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543360;HEAP8[$2+4|0]=0;HEAP32[$0+64>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543380;HEAP8[$2+4|0]=0;HEAP32[$0+72>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543380;HEAP32[$0+76>>2]=$2;HEAP8[$2+4|0]=1;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543400;HEAP8[$2+4|0]=0;HEAP32[$0+68>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(16);HEAP32[$2+8>>2]=1;HEAP32[$2+12>>2]=1;HEAP32[$2>>2]=543420;HEAP8[$2+4|0]=0;HEAP32[$0+84>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(16);HEAP32[$2+8>>2]=1;HEAP32[$2+12>>2]=1;HEAP32[$2>>2]=543420;HEAP32[$0+80>>2]=$2;HEAP8[$2+4|0]=1;$7=HEAP32[$1+20>>2];$2=HEAP32[$1>>2];label$1:{if($2){HEAP32[$0+8>>2]=$2;HEAP8[$0+12|0]=0;break label$1}HEAP8[$0+12|0]=1;$3=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(20);$4=HEAP32[$1+24>>2];HEAP8[$3+16|0]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;HEAP32[$3>>2]=0;HEAP32[$3+4>>2]=0;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($4);HEAP32[$3+4>>2]=$4;HEAP32[$3>>2]=$2;HEAP32[$0+8>>2]=$3}$2=HEAP32[$1+4>>2];label$3:{if($2){HEAP32[$0+16>>2]=$2;HEAP8[$0+20|0]=0;break label$3}HEAP8[$0+20|0]=1;$6=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(20);$2=HEAP32[$1+12>>2];HEAP32[$6+4>>2]=$2;HEAP32[$6>>2]=1140;$4=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(Math_imul($2,1140));HEAP32[$6+12>>2]=$4;HEAP32[$6+16>>2]=$4;$2=HEAP32[$6+4>>2];HEAP32[$6+8>>2]=$2;$5=$2+ -1|0;label$5:{if(!$5){$2=$4;break label$5}$3=HEAP32[$6>>2];while(1){$2=$3+$4|0;HEAP32[$4>>2]=$2;$4=$2;$5=$5+ -1|0;if($5){continue}break}}HEAP32[$2>>2]=0;HEAP32[$0+16>>2]=$6}$2=HEAP32[$1+8>>2];if($2){HEAP32[$0+24>>2]=$2;HEAP8[$0+28|0]=0;return}HEAP8[$0+28|0]=1;$3=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(20);$2=HEAP32[$1+16>>2];HEAP32[$3+4>>2]=$2;$1=($7|0)>80?$7:80;HEAP32[$3>>2]=$1;$4=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(Math_imul($1,$2));HEAP32[$3+12>>2]=$4;HEAP32[$3+16>>2]=$4;$1=HEAP32[$3+4>>2];HEAP32[$3+8>>2]=$1;$5=$1+ -1|0;label$9:{if(!$5){$2=$4;break label$9}$1=HEAP32[$3>>2];while(1){$2=$1+$4|0;HEAP32[$4>>2]=$2;$4=$2;$5=$5+ -1|0;if($5){continue}break}}HEAP32[$2>>2]=0;HEAP32[$0+24>>2]=$3}function void_20b2DynamicTree__RayCast_b2WorldRayCastWrapper__28b2WorldRayCastWrapper__2c_20b2RayCastInput_20const__29_20const($0,$1,$2){var $3=0,$4=Math_fround(0),$5=0,$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0);$3=global$0-1072|0;global$0=$3;$7=HEAPF32[$2>>2];$12=Math_fround(HEAPF32[$2+8>>2]-$7);$8=HEAPF32[$2+4>>2];$13=Math_fround(HEAPF32[$2+12>>2]-$8);$4=Math_fround(Math_fround($12*$12)+Math_fround($13*$13));if($4>Math_fround(0)){$15=$12;$16=$13;$4=Math_fround(Math_sqrt($4));if(!($4>2];HEAP32[$3+1064>>2]=256;$17=$3+32|4;HEAP32[$3+32>>2]=$17;$6=HEAP32[$0>>2];HEAP32[$3+1060>>2]=1;HEAP32[$3+36>>2]=$6;$14=Math_fround($7+Math_fround($12*$9));$22=$7<$14?$7:$14;$4=Math_fround($8+Math_fround($13*$9));$23=$8<$4?$8:$4;$24=$7>$14?$7:$14;$25=$8>$4?$8:$4;$26=$15>Math_fround(0)?$15:Math_fround(-$15);$14=$16>2]=$5;$18=HEAP32[($5<<2)+$6>>2];label$5:{if(($18|0)==-1){break label$5}$11=HEAP32[$0+4>>2]+Math_imul($18,36)|0;$19=HEAPF32[$11+8>>2];if(Math_fround($22-$19)>Math_fround(0)){break label$5}$20=HEAPF32[$11+12>>2];if(Math_fround($23-$20)>Math_fround(0)){break label$5}$21=HEAPF32[$11>>2];if(Math_fround($21-$24)>Math_fround(0)){break label$5}$10=HEAPF32[$11+4>>2];if(Math_fround($10-$25)>Math_fround(0)){break label$5}$4=Math_fround(Math_fround($15*Math_fround($8-Math_fround(Math_fround($20+$10)*Math_fround(.5))))-Math_fround($16*Math_fround($7-Math_fround(Math_fround($19+$21)*Math_fround(.5)))));if(Math_fround(($4>Math_fround(0)?$4:Math_fround(-$4))-Math_fround(Math_fround($14*Math_fround(Math_fround($19-$21)*Math_fround(.5)))+Math_fround($26*Math_fround(Math_fround($20-$10)*Math_fround(.5)))))>Math_fround(0)){break label$5}if(HEAP32[$11+24>>2]==-1){$6=HEAP32[$2+4>>2];HEAP32[$3+8>>2]=HEAP32[$2>>2];HEAP32[$3+12>>2]=$6;$5=HEAP32[$2+12>>2];$6=HEAP32[$2+8>>2];HEAPF32[$3+24>>2]=$9;HEAP32[$3+16>>2]=$6;HEAP32[$3+20>>2]=$5;$4=b2WorldRayCastWrapper__RayCastCallback_28b2RayCastInput_20const__2c_20int_29($1,$3+8|0,$18);if($4==Math_fround(0)){break label$4}if(!!($4>Math_fround(0))){$10=Math_fround($8+Math_fround($13*$4));$25=$8>$10?$8:$10;$9=Math_fround($7+Math_fround($12*$4));$24=$7>$9?$7:$9;$23=$8<$10?$8:$10;$22=$7<$9?$7:$9;$9=$4}$5=HEAP32[$3+1060>>2];break label$5}label$8:{if(HEAP32[$3+1064>>2]!=($5|0)){break label$8}HEAP32[$3+1064>>2]=$5<<1;$5=dlmalloc($5<<3);HEAP32[$3+32>>2]=$5;memcpy($5,$6,HEAP32[$3+1060>>2]<<2);if(($6|0)==($17|0)){break label$8}dlfree($6)}$5=HEAP32[$3+32>>2];HEAP32[$5+(HEAP32[$3+1060>>2]<<2)>>2]=HEAP32[$11+24>>2];$6=HEAP32[$3+1060>>2]+1|0;HEAP32[$3+1060>>2]=$6;label$9:{if(($6|0)!=HEAP32[$3+1064>>2]){break label$9}HEAP32[$3+1064>>2]=$6<<1;$6=dlmalloc($6<<3);HEAP32[$3+32>>2]=$6;memcpy($6,$5,HEAP32[$3+1060>>2]<<2);if(($5|0)==($17|0)){break label$9}dlfree($5)}HEAP32[HEAP32[$3+32>>2]+(HEAP32[$3+1060>>2]<<2)>>2]=HEAP32[$11+28>>2];$5=HEAP32[$3+1060>>2]+1|0;HEAP32[$3+1060>>2]=$5}if(($5|0)<1){break label$4}$6=HEAP32[$3+32>>2];continue}break}$0=HEAP32[$3+32>>2];if(($0|0)!=($17|0)){dlfree($0);HEAP32[$3+32>>2]=0}global$0=$3+1072|0;return}__assert_fail(97947,97879,232,97972);abort()}function TransformOne($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$5=global$0+ -64|0;$2=HEAP16[$0+16>>1];$6=HEAP16[$0>>1];$7=$2+$6|0;$3=HEAP16[$0+8>>1];$4=HEAP16[$0+24>>1];$8=((Math_imul($3,20091)>>16)+$3|0)+(Math_imul($4,35468)>>16)|0;HEAP32[$5+12>>2]=$7-$8;$2=$6-$2|0;$3=((Math_imul($3,35468)>>16)-$4|0)-(Math_imul($4,20091)>>16)|0;HEAP32[$5+8>>2]=$2-$3;HEAP32[$5+4>>2]=$2+$3;HEAP32[$5>>2]=$7+$8;$2=HEAP16[$0+18>>1];$6=HEAP16[$0+2>>1];$7=$2+$6|0;$3=HEAP16[$0+10>>1];$4=HEAP16[$0+26>>1];$8=((Math_imul($3,20091)>>16)+$3|0)+(Math_imul($4,35468)>>16)|0;HEAP32[$5+28>>2]=$7-$8;$2=$6-$2|0;$3=((Math_imul($3,35468)>>16)-$4|0)-(Math_imul($4,20091)>>16)|0;HEAP32[$5+24>>2]=$2-$3;HEAP32[$5+20>>2]=$2+$3;$3=$7+$8|0;HEAP32[$5+16>>2]=$3;$6=HEAP16[$0+20>>1];$7=HEAP16[$0+4>>1];$8=$6+$7|0;$4=HEAP16[$0+12>>1];$2=HEAP16[$0+28>>1];$9=((Math_imul($4,20091)>>16)+$4|0)+(Math_imul($2,35468)>>16)|0;HEAP32[$5+44>>2]=$8-$9;$6=$7-$6|0;$4=((Math_imul($4,35468)>>16)-$2|0)-(Math_imul($2,20091)>>16)|0;HEAP32[$5+40>>2]=$6-$4;HEAP32[$5+36>>2]=$4+$6;$2=$8+$9|0;HEAP32[$5+32>>2]=$2;$6=HEAP16[$0+22>>1];$7=HEAP16[$0+6>>1];$8=$6+$7|0;$4=HEAP16[$0+14>>1];$0=HEAP16[$0+30>>1];$9=((Math_imul($4,20091)>>16)+$4|0)+(Math_imul($0,35468)>>16)|0;HEAP32[$5+60>>2]=$8-$9;$6=$7-$6|0;$4=((Math_imul($4,35468)>>16)-$0|0)-(Math_imul($0,20091)>>16)|0;HEAP32[$5+56>>2]=$6-$4;$0=$8+$9|0;HEAP32[$5+48>>2]=$0;$4=$4+$6|0;HEAP32[$5+52>>2]=$4;$6=($3+(Math_imul($3,20091)>>16)|0)+(Math_imul($0,35468)>>16)|0;$7=HEAP32[$5>>2]+4|0;$8=$7+$2|0;$9=HEAPU8[$1|0]+($6+$8>>3)|0;$9=($9|0)>0?$9:0;HEAP8[$1|0]=($9|0)<255?$9:255;$0=((Math_imul($3,35468)>>16)-$0|0)-(Math_imul($0,20091)>>16)|0;$3=$7-$2|0;$2=HEAPU8[$1+1|0]+($0+$3>>3)|0;$2=($2|0)>0?$2:0;HEAP8[$1+1|0]=($2|0)<255?$2:255;$0=HEAPU8[$1+2|0]+($3-$0>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+2|0]=($0|0)<255?$0:255;$0=HEAPU8[$1+3|0]+($8-$6>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+3|0]=($0|0)<255?$0:255;$0=HEAP32[$5+20>>2];$3=((Math_imul($0,20091)>>16)+$0|0)+(Math_imul($4,35468)>>16)|0;$2=HEAP32[$5+4>>2]+4|0;$6=HEAP32[$5+36>>2];$7=$2+$6|0;$8=HEAPU8[$1+32|0]+($3+$7>>3)|0;$8=($8|0)>0?$8:0;HEAP8[$1+32|0]=($8|0)<255?$8:255;$0=((Math_imul($0,35468)>>16)-$4|0)-(Math_imul($4,20091)>>16)|0;$4=$2-$6|0;$2=HEAPU8[$1+33|0]+($0+$4>>3)|0;$2=($2|0)>0?$2:0;HEAP8[$1+33|0]=($2|0)<255?$2:255;$0=HEAPU8[$1+34|0]+($4-$0>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+34|0]=($0|0)<255?$0:255;$0=HEAPU8[$1+35|0]+($7-$3>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+35|0]=($0|0)<255?$0:255;$0=HEAP32[$5+24>>2];$3=HEAP32[$5+56>>2];$4=((Math_imul($0,20091)>>16)+$0|0)+(Math_imul($3,35468)>>16)|0;$2=HEAP32[$5+8>>2]+4|0;$6=HEAP32[$5+40>>2];$7=$2+$6|0;$8=HEAPU8[$1+64|0]+($4+$7>>3)|0;$8=($8|0)>0?$8:0;HEAP8[$1+64|0]=($8|0)<255?$8:255;$0=((Math_imul($0,35468)>>16)-$3|0)-(Math_imul($3,20091)>>16)|0;$3=$2-$6|0;$2=HEAPU8[$1+65|0]+($0+$3>>3)|0;$2=($2|0)>0?$2:0;HEAP8[$1+65|0]=($2|0)<255?$2:255;$0=HEAPU8[$1+66|0]+($3-$0>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+66|0]=($0|0)<255?$0:255;$0=HEAPU8[$1+67|0]+($7-$4>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+67|0]=($0|0)<255?$0:255;$0=HEAP32[$5+28>>2];$3=HEAP32[$5+60>>2];$4=((Math_imul($0,20091)>>16)+$0|0)+(Math_imul($3,35468)>>16)|0;$2=HEAP32[$5+12>>2]+4|0;$5=HEAP32[$5+44>>2];$6=$2+$5|0;$7=HEAPU8[$1+96|0]+($4+$6>>3)|0;$7=($7|0)>0?$7:0;HEAP8[$1+96|0]=($7|0)<255?$7:255;$0=((Math_imul($0,35468)>>16)-$3|0)-(Math_imul($3,20091)>>16)|0;$5=$2-$5|0;$3=HEAPU8[$1+97|0]+($0+$5>>3)|0;$3=($3|0)>0?$3:0;HEAP8[$1+97|0]=($3|0)<255?$3:255;$0=HEAPU8[$1+98|0]+($5-$0>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+98|0]=($0|0)<255?$0:255;$0=HEAPU8[$1+99|0]+($6-$4>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+99|0]=($0|0)<255?$0:255}function void_20std____2____stable_sort_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0;label$1:{if($3>>>0<=2){if($3-2){break label$1}$2=HEAP32[HEAP32[$2>>2]+236>>2];$1=$1+ -4|0;$3=HEAP32[$1>>2];$4=HEAP32[$0>>2];if(HEAPU32[($2+($3<<4)|0)+8>>2]<=HEAPU32[($2+($4<<4)|0)+8>>2]){break label$1}HEAP32[$0>>2]=$3;HEAP32[$1>>2]=$4;return}if(($3|0)<=128){if(($0|0)==($1|0)){break label$1}$3=$0+4|0;if(($3|0)==($1|0)){break label$1}$6=HEAP32[$2>>2];while(1){$5=HEAP32[$3>>2];$4=$0;label$5:{if(($4|0)==($3|0)){break label$5}$7=HEAP32[$6+236>>2];$8=$7+($5<<4)|0;$4=$3;while(1){$2=$4+ -4|0;$9=HEAP32[$2>>2];if(HEAPU32[$8+8>>2]<=HEAPU32[($7+($9<<4)|0)+8>>2]){break label$5}HEAP32[$4>>2]=$9;$4=$2;if(($4|0)!=($0|0)){continue}break}$4=$0}HEAP32[$4>>2]=$5;$3=$3+4|0;if(($3|0)!=($1|0)){continue}break}break label$1}$6=$3>>>1|0;$8=$6<<2;$7=$8+$0|0;label$7:{if(($3|0)<=($5|0)){void_20std____2____stable_sort_move_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($0,$7,$2,$6,$4);$5=$1;$1=$4+$8|0;void_20std____2____stable_sort_move_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($7,$5,$2,$3-$6|0,$1);$5=($3<<2)+$4|0;$2=HEAP32[$2>>2];$3=$1;while(1){if(($3|0)==($5|0)){if(($1|0)==($4|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$4>>2];$0=$0+4|0;$4=$4+4|0;if(($1|0)!=($4|0)){continue}break}break label$1}$7=HEAP32[$2+236>>2];$6=HEAP32[$3>>2];$8=HEAP32[$4>>2];label$12:{if(HEAPU32[($7+($6<<4)|0)+8>>2]>HEAPU32[($7+($8<<4)|0)+8>>2]){HEAP32[$0>>2]=$6;$3=$3+4|0;break label$12}HEAP32[$0>>2]=$8;$4=$4+4|0}$0=$0+4|0;if(($1|0)!=($4|0)){continue}break}break label$7}void_20std____2____stable_sort_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$2,$6,$4,$5);$3=$3-$6|0;void_20std____2____stable_sort_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($7,$1,$2,$3,$4,$5);void_20std____2____inplace_merge_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$1,$2,$6,$3,$4,$5);break label$1}if(($3|0)==($5|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$3>>2];$0=$0+4|0;$3=$3+4|0;if(($5|0)!=($3|0)){continue}break}}}function dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$7=global$0-48|0;global$0=$7;label$1:{if(HEAP8[582776]&1){break label$1}if(!__cxa_guard_acquire(582776)){break label$1}if(HEAPU8[1130703]){$5=dmProfile__AllocateScope_28char_20const__29(28339)}else{$5=-1}HEAP32[145693]=$5;__cxa_guard_release(582776)}label$3:{if(HEAP8[582784]&1){break label$3}if(!__cxa_guard_acquire(582784)){break label$3}if(HEAPU8[1130703]){$5=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(28790,7)}else{$5=0}HEAP32[145695]=$5;__cxa_guard_release(582784)}$2=HEAP32[145693];label$5:{if(($2|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($7+32|0,$2,28790,HEAP32[145695]);break label$5}HEAP32[$7+32>>2]=0}$4=HEAP32[$0+4>>2];$2=HEAP32[$4+4>>2];label$7:{label$8:{if(!$2){break label$8}$2=HEAP32[HEAP32[$4>>2]+(($1>>>0)%($2>>>0)<<2)>>2];if(($2|0)==-1){break label$8}$4=HEAP32[$4+8>>2];while(1){$6=$4+Math_imul($2,24)|0;if(HEAP32[$6>>2]==($1|0)){break label$7}$2=HEAP32[$6+16>>2];if(($2|0)!=-1){continue}break}}__assert_fail(28769,27176,1831,28790);abort()}$6=HEAP32[$0>>2];$3=HEAP32[$6+4>>2];label$10:{label$11:{if(!$3){break label$11}$4=$4+Math_imul($2,24)|0;$2=$4;$5=HEAP32[$2+8>>2];$8=HEAP32[$2+12>>2];$2=HEAP32[HEAP32[$6>>2]+(__wasm_i64_urem($5,$8,$3)<<2)>>2];if(($2|0)==-1){break label$11}$6=HEAP32[$6+8>>2];while(1){$3=$6+Math_imul($2,56)|0;if(($5|0)==HEAP32[$3>>2]&($8|0)==HEAP32[$3+4>>2]){break label$10}$2=HEAP32[$3+48>>2];if(($2|0)!=-1){continue}break}}__assert_fail(28720,27176,1834,28790);abort()}$3=$6+Math_imul($2,56)|0;$5=$3;$8=HEAP32[$3+36>>2];label$13:{if($8){$9=$5;$5=$8+ -1|0;HEAP32[$9+36>>2]=$5;label$15:{if($5){break label$15}$2=HEAP32[($6+Math_imul($2,56)|0)+32>>2];label$16:{if(HEAP8[582792]&1){break label$16}if(!__cxa_guard_acquire(582792)){break label$16}if(HEAPU8[1130703]){$5=dmProfile__AllocateScope_28char_20const__29(28798)}else{$5=-1}HEAP32[145697]=$5;__cxa_guard_release(582792)}$6=$3+8|0;$3=HEAP32[145697];label$18:{if(($3|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($7+16|0,$3,HEAP32[$2+8>>2],HEAP32[$2>>2]);break label$18}HEAP32[$7+16>>2]=0}HEAP32[$7>>2]=$0;$3=HEAP32[$2+12>>2];HEAP32[$7+8>>2]=$6;HEAP32[$7+4>>2]=$3;FUNCTION_TABLE[HEAP32[$2+28>>2]]($7)|0;dmHashTable_unsigned_20long_2c_20unsigned_20long_20long___Erase_28unsigned_20long_29(HEAP32[$0+4>>2],$1);dmHashTable_unsigned_20long_20long_2c_20dmResource__SResourceDescriptor___Erase_28unsigned_20long_20long_29(HEAP32[$0>>2],HEAP32[$4+8>>2],HEAP32[$4+12>>2]);$0=HEAP32[$0+8>>2];if($0){$1=HEAP32[$4+8>>2];$4=HEAP32[$4+12>>2];label$21:{$2=HEAP32[$0+4>>2];label$22:{if(!$2){break label$22}$2=HEAP32[HEAP32[$0>>2]+(__wasm_i64_urem($1,$4,$2)<<2)>>2];if(($2|0)==-1){break label$22}$6=HEAP32[$0+8>>2];while(1){$3=$6+($2<<4)|0;if(($1|0)==HEAP32[$3>>2]&($4|0)==HEAP32[$3+4>>2]){break label$21}$2=HEAP32[$3+12>>2];if(($2|0)!=-1){continue}break}}dmHashTable_unsigned_20long_20long_2c_20char_20const____Erase_28unsigned_20long_20long_29($0,$1,$4);break label$13}dmHashTable_unsigned_20long_20long_2c_20char_20const____Erase_28unsigned_20long_20long_29($0,$1,$4);if(!$6){break label$13}dlfree(HEAP32[($6+($2<<4)|0)+8>>2])}if(!HEAP32[$7+16>>2]){break label$15}dmProfile__ProfileScope__EndScope_28_29($7+16|0)}if(HEAP32[$7+32>>2]){dmProfile__ProfileScope__EndScope_28_29($7+32|0)}global$0=$7+48|0;return}__assert_fail(28723,27176,1835,28790);abort()}__assert_fail(28814,27176,1856,28790);abort()}function dmGameSystem__CompSpriteOnMessage_28dmGameObject__ComponentOnMessageParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$4=global$0-80|0;global$0=$4;$1=HEAP32[$0+4>>2];$2=HEAP32[$1+16>>2];$5=HEAP32[HEAP32[$0+12>>2]>>2];if(HEAP32[$1+20>>2]-$2>>3>>>0>$5>>>0){$3=HEAP32[$1>>2];$2=HEAP32[$2+($5<<3)>>2];if(HEAP32[$1+4>>2]-$3>>10>>>0>$2>>>0){$1=HEAP32[$0+16>>2];$5=HEAP32[$1+64>>2];$7=HEAP32[131295];$8=HEAP32[$1+68>>2];label$3:{if(($5|0)==HEAP32[$7+8>>2]&($8|0)==HEAP32[$7+12>>2]){$0=$3+($2<<10)|0;HEAP16[$0+1010>>1]=HEAPU16[$0+1010>>1]|4;break label$3}$7=HEAP32[131296];if(($5|0)==HEAP32[$7+8>>2]&($8|0)==HEAP32[$7+12>>2]){$0=$3+($2<<10)|0;HEAP16[$0+1010>>1]=HEAPU16[$0+1010>>1]&65531;break label$3}if(!HEAP32[$1+76>>2]){break label$3}$7=$3+($2<<10)|0;$6=HEAP32[134348];if(($5|0)==HEAP32[$6+8>>2]&($8|0)==HEAP32[$6+12>>2]){if(!dmGameSystem__PlayAnimation_28dmGameSystem__SpriteComponent__2c_20unsigned_20long_20long_2c_20float_2c_20float_29($7,HEAP32[$1+96>>2],HEAP32[$1+100>>2],HEAPF32[$1+104>>2],HEAPF32[$1+108>>2])){break label$3}$1=$3+($2<<10)|0;$0=HEAP32[$0+16>>2];$2=HEAP32[$0+4>>2];HEAP32[$1+152>>2]=HEAP32[$0>>2];HEAP32[$1+156>>2]=$2;$3=HEAP32[$0+28>>2];HEAP32[$1+176>>2]=HEAP32[$0+24>>2];HEAP32[$1+180>>2]=$3;$3=HEAP32[$0+20>>2];HEAP32[$1+168>>2]=HEAP32[$0+16>>2];HEAP32[$1+172>>2]=$3;$3=HEAP32[$0+12>>2];HEAP32[$1+160>>2]=HEAP32[$0+8>>2];HEAP32[$1+164>>2]=$3;break label$3}$6=HEAP32[134386];if(($5|0)==HEAP32[$6+8>>2]&($8|0)==HEAP32[$6+12>>2]){$0=$3+($2<<10)|0;HEAP16[$0+1010>>1]=HEAPU16[$0+1010>>1]&65503|(HEAP32[$1+96>>2]!=0)<<5;break label$3}$6=HEAP32[134402];if(($5|0)==HEAP32[$6+8>>2]&($8|0)==HEAP32[$6+12>>2]){$0=$3+($2<<10)|0;HEAP16[$0+1010>>1]=HEAPU16[$0+1010>>1]&65471|(HEAP32[$1+96>>2]!=0)<<6;break label$3}$6=HEAP32[132738];if(($5|0)==HEAP32[$6+8>>2]&($8|0)==HEAP32[$6+12>>2]){$2=$3+($2<<10)|0;$3=HEAP32[$2+980>>2];if(!$3){$3=HEAP32[HEAP32[$2+188>>2]+16>>2]}$2=HEAP32[$1+100>>2];$5=HEAP32[$1+96>>2];HEAP32[$4+16>>2]=HEAP32[$1+112>>2];HEAP32[$4+20>>2]=HEAP32[$1+116>>2];HEAP32[$4+24>>2]=HEAP32[$1+120>>2];HEAP32[$4+28>>2]=HEAP32[$1+124>>2];if((dmGameSystem__SetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20void_20_28__29_28void__2c_20unsigned_20long_20long_2c_20unsigned_20int__2c_20dmGameObject__PropertyVar_20const__29_2c_20void__29($3,$5,$2,dmGameObject__PropertyVar__PropertyVar_28Vectormath__Aos__Vector4_29($4+40|0,$4+16|0),486,$7)|0)!=-1){break label$3}$0=HEAP32[$0+16>>2];$3=dmMessage__GetSocketName_28unsigned_20long_20long_29(HEAP32[$0+32>>2],HEAP32[$0+36>>2]);$2=dmHashReverseSafe64(HEAP32[$0+48>>2],HEAP32[$0+52>>2]);$0=dmHashReverseSafe64(HEAP32[$0+56>>2],HEAP32[$0+60>>2]);HEAP32[$4+12>>2]=dmHashReverseSafe64(HEAP32[$1+96>>2],HEAP32[$1+100>>2]);HEAP32[$4+8>>2]=$0;HEAP32[$4+4>>2]=$2;HEAP32[$4>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,51826,51900,$4);break label$3}$0=HEAP32[132754];if(($5|0)==HEAP32[$0+8>>2]&($8|0)==HEAP32[$0+12>>2]){$0=$3+($2<<10)|0;if(!dmGameSystem__ClearRenderConstant_28dmGameSystem__CompRenderConstants__2c_20unsigned_20long_20long_29($0+192|0,HEAP32[$1+96>>2],HEAP32[$1+100>>2])){break label$3}HEAP16[$0+1010>>1]=HEAPU16[$0+1010>>1]|256;break label$3}$0=HEAP32[132770];if(HEAP32[$0+8>>2]!=($5|0)|HEAP32[$0+12>>2]!=($8|0)){break label$3}$0=$3+($2<<10)|0;HEAP32[$0+48>>2]=HEAP32[$1+96>>2];HEAP32[$0+52>>2]=HEAP32[$1+100>>2];HEAP32[$0+56>>2]=HEAP32[$1+104>>2]}global$0=$4+80|0;return 0}}__assert_fail(52907,52459,430,52059);abort()}function gcm_gen_table($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0;$17=global$0-32|0;global$0=$17;$1=$17;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+12>>2]=0;$1=mbedtls_cipher_update($0,$1+16|0,16,$1+16|0,$1+12|0);if(!$1){$2=$17;$8=HEAPU8[$2+31|0];$11=HEAPU8[$2+30|0];$16=HEAPU8[$2+27|0];$14=HEAPU8[$2+26|0];$19=HEAPU8[$2+25|0];$15=HEAPU8[$2+24|0];$10=HEAPU8[$2+29|0];$9=HEAPU8[$2+28|0];$6=HEAPU8[$2+23|0];$7=HEAPU8[$2+22|0];$13=HEAPU8[$2+19|0];$12=HEAPU8[$2+18|0];$5=HEAPU8[$2+17|0];$4=HEAPU8[$2+16|0];$1=HEAPU8[$2+21|0];$3=HEAPU8[$2+20|0];HEAP32[$0+192>>2]=0;HEAP32[$0+196>>2]=0;HEAP32[$0+64>>2]=0;HEAP32[$0+68>>2]=0;$2=$1;$1=$1>>>16|0;$2=$2<<16|$3<<24;$18=$3>>>8|$1;$5=$5<<16|$4<<24;$1=$12<<8|$5|$13;$1=$1|$18|$7>>>24;$4=$1;$18=$7<<8|$2|$6;HEAP32[$0+256>>2]=$18;HEAP32[$0+260>>2]=$1;$2=$10>>>16|0;$1=$9>>>8|0;$9=$10<<16|$9<<24;$7=$1|$2;$13=$19<<16|$15<<24;$1=$14<<8|$13|$16;$12=$11<<8|$9|$8;$1=$1|$7|$11>>>24;$3=$1;HEAP32[$0+128>>2]=$12;HEAP32[$0+132>>2]=$1;$10=($4&1)<<31|$18>>>1;$1=$4>>>1|0;$11=__wasm_i64_mul($8&1,0,0,-520093696)^$10;$1=i64toi32_i32$HIGH_BITS^$1;$13=$1;HEAP32[$0+224>>2]=$11;HEAP32[$0+228>>2]=$1;$4=($3&1)<<31|$12>>>1;$1=$6<<31|$3>>>1;$12=$1;$16=$4;HEAP32[$0+96>>2]=$4;HEAP32[$0+100>>2]=$1;$6=$13;$1=$6>>>1|0;$9=($6&1)<<31|$11>>>1;$14=__wasm_i64_mul($4&1,0,0,-520093696)^$9;$1=i64toi32_i32$HIGH_BITS^$1;$5=$1;HEAP32[$0+208>>2]=$14;HEAP32[$0+212>>2]=$1;$3=$12;$1=$3>>>1|0;$7=($3&1)<<31|$4>>>1;$1=$10<<31|$1;$4=$1;$19=$7;HEAP32[$0+80>>2]=$7;HEAP32[$0+84>>2]=$1;HEAP32[$0+240>>2]=$11^$14;HEAP32[$0+244>>2]=$5^$6;HEAP32[$0+112>>2]=$16^$7;HEAP32[$0+116>>2]=$1^$3;$3=__wasm_i64_mul($7&1,0,0,-520093696);$2=$5;$1=$2>>>1|0;$15=$3^(($2&1)<<31|$14>>>1);$1=$1^i64toi32_i32$HIGH_BITS;$10=$1;HEAP32[$0+200>>2]=$15;HEAP32[$0+204>>2]=$1;$6=$9<<31;$2=$4;$1=$2>>>1|0;$9=($2&1)<<31|$7>>>1;$1=$1|$6;$7=$1;HEAP32[$0+72>>2]=$9;HEAP32[$0+76>>2]=$1;$1=$5^$10;$8=$1;$3=$14^$15;HEAP32[$0+216>>2]=$3;HEAP32[$0+220>>2]=$1;$2=$2^$7;$1=$9^$19;HEAP32[$0+88>>2]=$1;HEAP32[$0+92>>2]=$2;HEAP32[$0+232>>2]=$11^$15;HEAP32[$0+236>>2]=$10^$13;HEAP32[$0+104>>2]=$9^$16;HEAP32[$0+108>>2]=$7^$12;HEAP32[$0+248>>2]=$3^$11;HEAP32[$0+252>>2]=$8^$13;HEAP32[$0+120>>2]=$1^$16;HEAP32[$0+124>>2]=$2^$12;$5=HEAP32[$0+260>>2];$8=HEAP32[$0+256>>2];HEAP32[$0+264>>2]=$8^$15;HEAP32[$0+268>>2]=$5^$10;$4=HEAP32[$0+132>>2];$3=HEAP32[$0+128>>2];HEAP32[$0+136>>2]=$3^$9;HEAP32[$0+140>>2]=$4^$7;$1=HEAP32[$0+212>>2]^$5;HEAP32[$0+272>>2]=HEAP32[$0+208>>2]^$8;HEAP32[$0+276>>2]=$1;$1=HEAP32[$0+84>>2]^$4;HEAP32[$0+144>>2]=HEAP32[$0+80>>2]^$3;HEAP32[$0+148>>2]=$1;$1=HEAP32[$0+220>>2]^$5;HEAP32[$0+280>>2]=HEAP32[$0+216>>2]^$8;HEAP32[$0+284>>2]=$1;$1=HEAP32[$0+92>>2]^$4;HEAP32[$0+152>>2]=HEAP32[$0+88>>2]^$3;HEAP32[$0+156>>2]=$1;$1=HEAP32[$0+228>>2]^$5;HEAP32[$0+288>>2]=HEAP32[$0+224>>2]^$8;HEAP32[$0+292>>2]=$1;$1=HEAP32[$0+100>>2]^$4;HEAP32[$0+160>>2]=HEAP32[$0+96>>2]^$3;HEAP32[$0+164>>2]=$1;$2=HEAP32[$0+104>>2];$6=HEAP32[$0+108>>2];$1=HEAP32[$0+236>>2]^$5;HEAP32[$0+296>>2]=HEAP32[$0+232>>2]^$8;HEAP32[$0+300>>2]=$1;HEAP32[$0+168>>2]=$2^$3;HEAP32[$0+172>>2]=$4^$6;$2=HEAP32[$0+112>>2];$6=HEAP32[$0+116>>2];$1=HEAP32[$0+244>>2]^$5;HEAP32[$0+304>>2]=HEAP32[$0+240>>2]^$8;HEAP32[$0+308>>2]=$1;HEAP32[$0+176>>2]=$2^$3;HEAP32[$0+180>>2]=$4^$6;$2=HEAP32[$0+120>>2];$6=HEAP32[$0+124>>2];$1=HEAP32[$0+252>>2]^$5;HEAP32[$0+312>>2]=HEAP32[$0+248>>2]^$8;HEAP32[$0+316>>2]=$1;HEAP32[$0+184>>2]=$2^$3;HEAP32[$0+188>>2]=$4^$6;$1=0}global$0=$17+32|0;return $1}function dmResourceArchive__ReloadBundledArchiveIndex_28char_20const__2c_20char_20const__2c_20char_20const__2c_20char_20const__2c_20dmResourceArchive__ArchiveIndexContainer___2c_20void___29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$6=global$0-1088|0;global$0=$6;$7=operator_20new_28unsigned_20long_29(16);HEAP32[$7>>2]=0;HEAP32[$7+4>>2]=0;HEAP32[$7+8>>2]=0;HEAP32[$7+12>>2]=0;HEAP32[$6+1084>>2]=0;HEAP32[$6+1080>>2]=0;HEAP32[$6+1076>>2]=0;label$1:{label$2:{$0=dmResource__MountArchiveInternal_28char_20const__2c_20char_20const__2c_20char_20const__2c_20dmResourceArchive__ArchiveIndexContainer___2c_20void___29($0,$1,$3,$6+1080|0,$6+1084|0);if($0){HEAP32[$6+32>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,29980,30013,$6+32|0);break label$2}dmResourceArchive__CacheLiveUpdateEntries_28dmResourceArchive__ArchiveIndexContainer_20const__2c_20dmResourceArchive__ArchiveIndexContainer_20const__2c_20dmResourceArchive__LiveUpdateEntries__29(HEAP32[$4>>2],HEAP32[$6+1080>>2],$7);dmResourceArchive__Delete_28dmResourceArchive__ArchiveIndexContainer___29($4);HEAP32[$5>>2]=HEAP32[$6+1084>>2];dmResourceArchive__NewArchiveIndexFromCopy_28dmResourceArchive__ArchiveIndex___2c_20dmResourceArchive__ArchiveIndexContainer__2c_20unsigned_20int_29($6+1076|0,HEAP32[$6+1080>>2],HEAP32[$7+12>>2]);$11=HEAP32[$7+4>>2];$8=HEAP32[$6+1076>>2];$0=HEAP32[$8+24>>2];$0=$0<<8&16711680|$0<<24|($0>>>8&65280|$0>>>24);label$4:{if(!HEAP32[$7+12>>2]){break label$4}$13=$0+$8|0;while(1){$14=HEAP32[$7+8>>2]+($10<<4)|0;$12=HEAP32[$7>>2]+Math_imul($10,$11)|0;$0=HEAP32[$8+16>>2];$3=$0<<8&16711680|$0<<24|($0>>>8&65280|$0>>>24);$1=($3|0)/2|0;$0=0;while(1){label$7:{if(($3|0)<($0|0)){$5=$1;break label$7}$5=$1;if(($0|0)==($1|0)){break label$7}$5=-1;$1=(($3-$0|0)/2|0)+$0|0;$9=HEAP32[$8+28>>2];$9=memcmp($12,($1<<6)+$13|0,$9<<8&16711680|$9<<24|($9>>>8&65280|$9>>>24));$3=($9|0)>-1?$3:$1;$0=($9|0)>0?$1+1|0:$0;if($9){continue}}break}$0=dmResourceArchive__ShiftAndInsert_28dmResourceArchive__ArchiveIndexContainer__2c_20dmResourceArchive__ArchiveIndex__2c_20unsigned_20char_20const__2c_20unsigned_20int_2c_20int_2c_20dmResourceArchive__LiveUpdateResource_20const__2c_20dmResourceArchive__EntryData_20const__29(HEAP32[$6+1080>>2],$8,$12,$11,$5,0,$14);if(!$0){$10=$10+1|0;if($10>>>0>=HEAPU32[$7+12>>2]){break label$4}continue}break}HEAP32[$6+16>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,29980,30078,$6+16|0);dlfree(HEAP32[$7+8>>2]);dlfree(HEAP32[$7>>2]);break label$2}$0=HEAP32[$6+1080>>2];label$10:{if(HEAPU8[$0+4|0]){break label$10}$1=HEAP32[$0>>2];if(!$1){break label$10}dlfree($1);$0=HEAP32[$6+1080>>2]}HEAP32[$0>>2]=$8;$0=HEAP32[$6+1080>>2];HEAP8[$0+4|0]=1;HEAP32[$4>>2]=$0;dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($6+48|0,$2,1024);dmStrlCat_28char__2c_20char_20const__2c_20unsigned_20long_29($6+48|0,30132,1024);$0=fopen($6+48|0,30137);label$11:{if(!$0){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,29980,30140,0);$0=-2;break label$11}$1=HEAP32[$8+16>>2];$1=$1<<8&16711680|$1<<24|($1>>>8&65280|$1>>>24);$1=($1<<6|48)+($1<<4)|0;$2=fwrite($8,1,$1,$0);if(($1|0)!=($2|0)){HEAP32[$6+4>>2]=$1;HEAP32[$6>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,29980,30179,$6);fclose($0);$0=-2;break label$11}fflush($0);fclose($0);$0=0}dlfree(HEAP32[$7+8>>2]);dlfree(HEAP32[$7>>2]);dlfree($7);break label$1}dlfree($7);$0=-2}global$0=$6+1088|0;return $0}function dmGameSystem__CompCollectionProxyUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=Math_fround(0),$7=0,$8=0,$9=0,$10=Math_fround(0),$11=0;$3=global$0+ -64|0;global$0=$3;$7=HEAP32[$0+8>>2];$1=HEAP32[$7>>2];if(($1|0)!=HEAP32[$7+4>>2]){$8=$3+56|0;while(1){$1=($9<<7)+$1|0;label$3:{if(!(HEAPU8[$1+58|0]&16)){break label$3}$2=HEAP32[$1+60>>2];label$4:{if(!$2){break label$4}$4=HEAP32[HEAP32[$0+12>>2]>>2];HEAP32[$3+36>>2]=$1;HEAP32[$3+32>>2]=$4;$2=dmResource__UpdatePreloader_28dmResource__ResourcePreloader__2c_20bool_20_28__29_28dmResource__PreloaderCompleteCallbackParams_20const__29_2c_20dmResource__PreloaderCompleteCallbackParams__2c_20unsigned_20int_29($2,442,$3+32|0,1e4);if(($2|0)==-17){break label$4}dmResource__DeletePreloader_28dmResource__ResourcePreloader__29(HEAP32[$1+60>>2]);label$5:{if($2){break label$5}if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29(HEAP32[$1+64>>2],HEAP32[$1+68>>2])){break label$5}$2=dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($1+96|0,$1- -64|0,dmHashString64(36220),i64toi32_i32$HIGH_BITS,0,0,0,0,0);if(!$2){break label$5}HEAP32[$3+16>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,36233,36241,$3+16|0)}HEAP32[$1+60>>2]=0}$5=HEAP32[$1+36>>2];label$6:{if(!$5){break label$6}$2=HEAP32[$1+56>>2];$4=$2>>>18&1;if(($4|0)!=($2>>>17&1)){$2=$2&-131073|$4<<17;HEAP32[$1+56>>2]=$2}if($2&131072){$2=HEAP32[$1+44>>2];label$9:{if($2>>>0>1){break label$9}$4=HEAP32[$0+4>>2];$10=HEAPF32[$4>>2];$6=Math_fround($10*HEAPF32[$1+48>>2]);if($2-1){HEAPF32[$3+32>>2]=$6;HEAP32[$1+52>>2]=0;break label$9}$6=Math_fround($6+HEAPF32[$1+52>>2]);HEAPF32[$1+52>>2]=$6;if(!!($6>=$10)){HEAPF32[$3+32>>2]=$10;HEAPF32[$1+52>>2]=$6-HEAPF32[$4>>2];break label$9}HEAP32[$3+32>>2]=0}$11=dmGameObject__Update_28dmGameObject__CollectionHandle__2c_20dmGameObject__UpdateContext_20const__29($5,$3+32|0)?$11:-1e3;break label$6}HEAP32[$1+52>>2]=0}$2=HEAP32[$1+56>>2];if(!($2&524288)){break label$3}HEAP32[$1+56>>2]=$2&-524289;if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29(HEAP32[$1>>2],HEAP32[$1+4>>2])){break label$3}HEAP32[$8>>2]=0;HEAP32[$8+4>>2]=0;HEAP32[$3+48>>2]=0;HEAP32[$3+52>>2]=0;HEAP32[$3+40>>2]=0;HEAP32[$3+44>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;$2=0;$4=0;$5=HEAP32[HEAP32[HEAP32[$1+40>>2]+80>>2]+8>>2];label$12:{if(!$5){break label$12}$5=HEAP32[$5>>2];if(!$5){break label$12}$2=HEAP32[$5+4224>>2];$4=HEAP32[$5+4228>>2]}HEAP32[$3+32>>2]=$2;HEAP32[$3+36>>2]=$4;$2=HEAP32[$1+40>>2];$4=HEAP32[$2+100>>2];HEAP32[$3+48>>2]=HEAP32[$2+96>>2];HEAP32[$3+52>>2]=$4;dmGameObject__GetComponentId_28dmGameObject__Instance__2c_20unsigned_20short_2c_20unsigned_20long_20long__29(HEAP32[$1+40>>2],HEAPU16[$1+56>>1],$8);$1=dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($3+32|0,$1,dmHashString64(36378),i64toi32_i32$HIGH_BITS,0,0,0,0,0);if(!$1){break label$3}HEAP32[$3>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,36233,36393,$3)}$9=$9+1|0;$1=HEAP32[$7>>2];if($9>>>0>2]-$1>>7>>>0){continue}break}}global$0=$3- -64|0;return $11|0}function btConvexInternalShape__getAabbSlow_28btTransform_20const__2c_20btVector3__2c_20btVector3__29_20const($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=0,$24=0;$4=global$0-80|0;global$0=$4;$22=Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+44>>2]]($0));while(1){HEAP32[$4+72>>2]=0;HEAP32[$4+76>>2]=0;HEAP32[$4+64>>2]=0;HEAP32[$4+68>>2]=0;$17=$18<<2;$23=$17+($4- -64|0)|0;HEAP32[$23>>2]=1065353216;$8=HEAPF32[$1+32>>2];$9=HEAPF32[$1>>2];$10=HEAPF32[$1+16>>2];$11=HEAPF32[$1+36>>2];$12=HEAPF32[$1+4>>2];$13=HEAPF32[$1+20>>2];$5=HEAPF32[$1+40>>2];$6=HEAPF32[$1+8>>2];$7=HEAPF32[$1+24>>2];HEAP32[$4+44>>2]=0;$14=$6;$6=HEAPF32[$4+64>>2];$15=$7;$7=HEAPF32[$4+68>>2];$16=$5;$5=HEAPF32[$4+72>>2];HEAPF32[$4+40>>2]=Math_fround(Math_fround($14*$6)+Math_fround($15*$7))+Math_fround($16*$5);HEAPF32[$4+36>>2]=Math_fround(Math_fround($6*$12)+Math_fround($7*$13))+Math_fround($5*$11);HEAPF32[$4+32>>2]=Math_fround(Math_fround($9*$6)+Math_fround($10*$7))+Math_fround($8*$5);FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+60>>2]]($4+48|0,$0,$4+32|0);$8=HEAPF32[$1+48>>2];$9=HEAPF32[$1+8>>2];$10=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$12=HEAPF32[$1+52>>2];$13=HEAPF32[$1+24>>2];$16=HEAPF32[$1+16>>2];$19=HEAPF32[$1+20>>2];$6=HEAPF32[$1+56>>2];$5=HEAPF32[$1+40>>2];$7=HEAPF32[$1+32>>2];$20=HEAPF32[$1+36>>2];HEAP32[$4+44>>2]=0;$14=$6;$6=HEAPF32[$4+48>>2];$21=Math_fround($7*$6);$7=HEAPF32[$4+52>>2];$15=$5;$5=HEAPF32[$4+56>>2];HEAPF32[$4+40>>2]=$14+Math_fround(Math_fround($21+Math_fround($20*$7))+Math_fround($15*$5));HEAPF32[$4+36>>2]=$12+Math_fround(Math_fround(Math_fround($6*$16)+Math_fround($7*$19))+Math_fround($5*$13));HEAPF32[$4+32>>2]=$8+Math_fround(Math_fround(Math_fround($10*$6)+Math_fround($11*$7))+Math_fround($9*$5));$24=($4+32|0)+$17|0;HEAPF32[$3+$17>>2]=$22+HEAPF32[$24>>2];HEAP32[$23>>2]=-1082130432;$8=HEAPF32[$1+32>>2];$9=HEAPF32[$1>>2];$10=HEAPF32[$1+16>>2];$11=HEAPF32[$1+36>>2];$12=HEAPF32[$1+4>>2];$13=HEAPF32[$1+20>>2];$5=HEAPF32[$1+40>>2];$6=HEAPF32[$1+8>>2];$7=HEAPF32[$1+24>>2];HEAP32[$4+12>>2]=0;$14=$6;$6=HEAPF32[$4+64>>2];$15=$7;$7=HEAPF32[$4+68>>2];$16=$5;$5=HEAPF32[$4+72>>2];HEAPF32[$4+8>>2]=Math_fround(Math_fround($14*$6)+Math_fround($15*$7))+Math_fround($16*$5);HEAPF32[$4+4>>2]=Math_fround(Math_fround($6*$12)+Math_fround($7*$13))+Math_fround($5*$11);HEAPF32[$4>>2]=Math_fround(Math_fround($9*$6)+Math_fround($10*$7))+Math_fround($8*$5);FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+60>>2]]($4+16|0,$0,$4);$8=HEAPF32[$1+48>>2];$9=HEAPF32[$1+8>>2];$10=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$12=HEAPF32[$1+52>>2];$13=HEAPF32[$1+24>>2];$16=HEAPF32[$1+16>>2];$19=HEAPF32[$1+20>>2];$6=HEAPF32[$1+56>>2];$5=HEAPF32[$1+40>>2];$7=HEAPF32[$1+32>>2];$20=HEAPF32[$1+36>>2];HEAP32[$4+44>>2]=0;$14=$6;$6=HEAPF32[$4+16>>2];$21=Math_fround($7*$6);$7=HEAPF32[$4+20>>2];$15=$5;$5=HEAPF32[$4+24>>2];HEAPF32[$4+40>>2]=$14+Math_fround(Math_fround($21+Math_fround($20*$7))+Math_fround($15*$5));HEAPF32[$4+36>>2]=$12+Math_fround(Math_fround(Math_fround($6*$16)+Math_fround($7*$19))+Math_fround($5*$13));HEAPF32[$4+32>>2]=$8+Math_fround(Math_fround(Math_fround($10*$6)+Math_fround($11*$7))+Math_fround($9*$5));HEAPF32[$2+$17>>2]=HEAPF32[$24>>2]-$22;$18=$18+1|0;if(($18|0)!=3){continue}break}global$0=$4+80|0}function x509_crt_parse_der_core($0,$1,$2){var $3=0,$4=0,$5=0;$3=global$0+ -64|0;global$0=$3;HEAP32[$3+48>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+16>>2]=0;HEAP32[$3+40>>2]=0;HEAP32[$3+44>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;$4=-10240;label$1:{if(!$0|!$1){break label$1}HEAP32[$3+56>>2]=$1;HEAP32[$3+60>>2]=$2;if(mbedtls_asn1_get_tag($3+56|0,$1+$2|0,$3+60|0,48)){mbedtls_x509_crt_free($0);$4=-8576;break label$1}$5=HEAP32[$3+60>>2];$2=($5+HEAP32[$3+56>>2]|0)-$1|0;HEAP32[$0+8>>2]=$2;$4=dlcalloc(1,$2);HEAP32[$3+56>>2]=$4;HEAP32[$0+12>>2]=$4;if(!$4){$4=-10368;break label$1}$1=memcpy($4,$1,$2);HEAP32[$0>>2]=1;$4=$1+($2-$5|0)|0;HEAP32[$3+56>>2]=$4;HEAP32[$0+24>>2]=$4;$5=$1+$2|0;$1=mbedtls_asn1_get_tag($3+56|0,$5,$3+60|0,48);if($1){mbedtls_x509_crt_free($0);$4=$1+ -8576|0;break label$1}$2=HEAP32[$3+56>>2]+HEAP32[$3+60>>2]|0;HEAP32[$0+20>>2]=$2-HEAP32[$0+24>>2];label$5:{$4=x509_get_version($3+56|0,$2,$0+28|0);label$6:{if($4){break label$6}$4=mbedtls_x509_get_serial($3+56|0,$2,$0+32|0);if($4){break label$6}$1=$0+44|0;$4=mbedtls_x509_get_alg($3+56|0,$2,$1,$3+40|0);if(!$4){break label$5}}mbedtls_x509_crt_free($0);break label$1}$4=HEAP32[$0+28>>2];if($4>>>0>=3){mbedtls_x509_crt_free($0);$4=-9600;break label$1}HEAP32[$0+28>>2]=$4+1;$4=mbedtls_x509_get_sig_alg($1,$3+40|0,$0+328|0,$0+332|0,$0+336|0);if($4){mbedtls_x509_crt_free($0);break label$1}HEAP32[$0- -64>>2]=HEAP32[$3+56>>2];$1=mbedtls_asn1_get_tag($3+56|0,$2,$3+60|0,48);if($1){mbedtls_x509_crt_free($0);$4=$1+ -8576|0;break label$1}$4=mbedtls_x509_get_name($3+56|0,HEAP32[$3+56>>2]+HEAP32[$3+60>>2]|0,$0+80|0);if($4){mbedtls_x509_crt_free($0);break label$1}HEAP32[$0+60>>2]=HEAP32[$3+56>>2]-HEAP32[$0+64>>2];$4=x509_get_dates($3+56|0,$2,$0+144|0,$0+168|0);if($4){mbedtls_x509_crt_free($0);break label$1}HEAP32[$0+76>>2]=HEAP32[$3+56>>2];$1=mbedtls_asn1_get_tag($3+56|0,$2,$3+60|0,48);if($1){mbedtls_x509_crt_free($0);$4=$1+ -8576|0;break label$1}label$13:{$1=HEAP32[$3+60>>2];if(!$1){break label$13}$4=mbedtls_x509_get_name($3+56|0,$1+HEAP32[$3+56>>2]|0,$0+112|0);if(!$4){break label$13}mbedtls_x509_crt_free($0);break label$1}$1=HEAP32[$3+56>>2];HEAP32[$0+200>>2]=$1;HEAP32[$0+72>>2]=$1-HEAP32[$0+76>>2];$4=mbedtls_pk_parse_subpubkey($3+56|0,$2,$0+204|0);if($4){mbedtls_x509_crt_free($0);break label$1}HEAP32[$0+196>>2]=HEAP32[$3+56>>2]-HEAP32[$0+200>>2];label$15:{$1=HEAP32[$0+28>>2];if(($1&-2)==2){$4=x509_get_uid($3+56|0,$2,$0+212|0,1);if($4){break label$15}$1=HEAP32[$0+28>>2]}label$16:{if(($1&-2)!=2){break label$16}$4=x509_get_uid($3+56|0,$2,$0+224|0,2);if($4){mbedtls_x509_crt_free($0);break label$1}if(HEAP32[$0+28>>2]!=3){break label$16}$4=x509_get_crt_ext($3+56|0,$2,$0);if(!$4){break label$16}mbedtls_x509_crt_free($0);break label$1}label$20:{if(($2|0)!=HEAP32[$3+56>>2]){break label$20}$4=mbedtls_x509_get_alg($3+56|0,$5,$3+8|0,$3+24|0);if($4){mbedtls_x509_crt_free($0);break label$1}label$22:{$1=HEAP32[$0+48>>2];label$23:{if(($1|0)!=HEAP32[$3+12>>2]){break label$23}if(memcmp(HEAP32[$0+52>>2],HEAP32[$3+16>>2],$1)){break label$23}$1=HEAP32[$3+44>>2];if(($1|0)!=HEAP32[$3+28>>2]){break label$23}if(!$1){break label$22}if(!memcmp(HEAP32[$3+48>>2],HEAP32[$3+32>>2],$1)){break label$22}}mbedtls_x509_crt_free($0);$4=-9856;break label$1}$4=mbedtls_x509_get_sig($3+56|0,$5,$0+316|0);if($4){mbedtls_x509_crt_free($0);break label$1}if(($5|0)!=HEAP32[$3+56>>2]){break label$20}$4=0;break label$1}mbedtls_x509_crt_free($0);$4=-8678;break label$1}mbedtls_x509_crt_free($0)}global$0=$3- -64|0;return $4}function bool_20std____2____insertion_sort_incomplete_bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_2c_20dmSocket__IfAddr___28dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$6=global$0-160|0;global$0=$6;$8=1;$4=($1-$0|0)/160|0;label$1:{if($4>>>0<=5){label$3:{switch($4-2|0){case 0:$1=$1+ -160|0;if(!FUNCTION_TABLE[HEAP32[$2>>2]]($1,$0)){break label$1}$2=memcpy($6,$0,160);memcpy($0,$1,158);memcpy($1,$2,158);break label$1;case 1:$4=$0+160|0;$5=FUNCTION_TABLE[HEAP32[$2>>2]]($4,$0)|0;$1=$1+ -160|0;$3=FUNCTION_TABLE[HEAP32[$2>>2]]($1,$4)|0;if(!$5){if(!$3){break label$1}$3=memcpy($6,$4,160);$4=memcpy($4,$1,158);memcpy($1,$3,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($4,$0)){break label$1}$1=memcpy($3,$0,160);memcpy($0,$4,158);memcpy($4,$1,158);break label$1}if($3){$2=memcpy($6,$0,160);memcpy($0,$1,158);memcpy($1,$2,158);break label$1}$3=memcpy($6,$0,160);memcpy($0,$4,158);$0=memcpy($4,$3,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($1,$0)){break label$1}$2=memcpy($3,$0,160);memcpy($0,$1,158);memcpy($1,$2,158);break label$1;case 2:unsigned_20int_20std____2____sort4_bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_2c_20dmSocket__IfAddr___28dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_29($0,$0+160|0,$0+320|0,$1+ -160|0,$2);break label$1;case 3:break label$3;default:break label$1}}$4=$0+160|0;$3=$0+320|0;$5=$0+480|0;unsigned_20int_20std____2____sort4_bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_2c_20dmSocket__IfAddr___28dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_29($0,$4,$3,$5,$2);$7=$1+ -160|0;if(!FUNCTION_TABLE[HEAP32[$2>>2]]($7,$5)){break label$1}$9=memcpy($6,$5,160);$1=memcpy($5,$7,158);memcpy($7,$9,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($1,$3)){break label$1}$5=memcpy($9,$3,160);$3=memcpy($3,$1,158);memcpy($1,$5,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($3,$4)){break label$1}$5=memcpy($5,$4,160);$1=memcpy($4,$3,158);memcpy($3,$5,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($1,$0)){break label$1}$2=memcpy($5,$0,160);memcpy($0,$1,158);memcpy($1,$2,158);break label$1}$3=$0+160|0;$7=FUNCTION_TABLE[HEAP32[$2>>2]]($3,$0)|0;$4=$0+320|0;$5=FUNCTION_TABLE[HEAP32[$2>>2]]($4,$3)|0;label$9:{if(!$7){if(!$5){break label$9}$5=memcpy($6,$3,160);$3=memcpy($3,$4,158);memcpy($4,$5,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($3,$0)){break label$9}$5=memcpy($5,$0,160);memcpy($0,$3,158);memcpy($3,$5,158);break label$9}if($5){$3=memcpy($6,$0,160);memcpy($0,$4,158);memcpy($4,$3,158);break label$9}$5=memcpy($6,$0,160);memcpy($0,$3,158);$3=memcpy($3,$5,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($4,$3)){break label$9}$5=memcpy($5,$3,160);memcpy($3,$4,158);memcpy($4,$5,158)}$3=$0+480|0;if(($3|0)==($1|0)){break label$1}$7=0;label$12:{while(1){if(FUNCTION_TABLE[HEAP32[$2>>2]]($3,$4)){$9=memcpy($6,$3,160);$8=$3;while(1){label$16:{$5=$4;memcpy($8,$4,158);if(($0|0)==($4|0)){break label$16}$8=$5;$4=$5+ -160|0;if(FUNCTION_TABLE[HEAP32[$2>>2]]($9,$4)){continue}}break}memcpy($5,$9,158);$7=$7+1|0;if(($7|0)==8){break label$12}}$4=$3;$3=$3+160|0;if(($3|0)!=($1|0)){continue}break}$8=1;break label$1}$8=($3+160|0)==($1|0)}global$0=$6+160|0;return $8}function dmObjectPool_dmGameSystem__LabelComponent___Free_28unsigned_20int_2c_20bool_29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;label$1:{label$2:{label$3:{label$4:{$7=HEAP32[$0+16>>2];if(HEAP32[$0+20>>2]-$7>>3>>>0>$1>>>0){$2=HEAP32[$0+36>>2];$3=HEAP32[$0>>2];$4=HEAP32[$0+4>>2]-$3>>10;$5=$4+ -1|0;if(HEAP32[$0+40>>2]-$2>>2>>>0<=$5>>>0){break label$1}$6=($1<<3)+$7|0;$8=HEAP32[$6>>2];if($8>>>0>=$4>>>0){break label$4}$2=HEAP32[$2+($5<<2)>>2];memset($3+($8<<10)|0,0,1024);$3=HEAP32[$0+16>>2];if(HEAP32[$0+20>>2]-$3>>3>>>0<=$2>>>0){break label$1}HEAP32[$3+($2<<3)>>2]=HEAP32[$6>>2];$3=HEAP32[$0+36>>2];$4=HEAP32[$6>>2];if(HEAP32[$0+40>>2]-$3>>2>>>0<=$4>>>0){break label$1}HEAP32[$3+($4<<2)>>2]=$2;$3=HEAP32[$0+4>>2];$2=HEAP32[$0>>2];$4=HEAP32[$6>>2];if($3-$2>>10>>>0<=$4>>>0){break label$3}$2=$2+($4<<10)|0;$3=$3+ -1024|0;HEAP32[$2>>2]=HEAP32[$3>>2];HEAP32[$2+16>>2]=HEAP32[$3+16>>2];HEAP32[$2+20>>2]=HEAP32[$3+20>>2];HEAP32[$2+24>>2]=HEAP32[$3+24>>2];HEAP32[$2+32>>2]=HEAP32[$3+32>>2];HEAP32[$2+36>>2]=HEAP32[$3+36>>2];HEAP32[$2+40>>2]=HEAP32[$3+40>>2];HEAP32[$2+44>>2]=HEAP32[$3+44>>2];HEAP32[$2+48>>2]=HEAP32[$3+48>>2];HEAP32[$2+52>>2]=HEAP32[$3+52>>2];HEAP32[$2+56>>2]=HEAP32[$3+56>>2];HEAP32[$2+64>>2]=HEAP32[$3+64>>2];HEAP32[$2+68>>2]=HEAP32[$3+68>>2];HEAP32[$2+72>>2]=HEAP32[$3+72>>2];HEAP32[$2+80>>2]=HEAP32[$3+80>>2];HEAP32[$2+84>>2]=HEAP32[$3+84>>2];HEAP32[$2+88>>2]=HEAP32[$3+88>>2];HEAP32[$2+92>>2]=HEAP32[$3+92>>2];HEAP32[$2+96>>2]=HEAP32[$3+96>>2];HEAP32[$2+100>>2]=HEAP32[$3+100>>2];HEAP32[$2+104>>2]=HEAP32[$3+104>>2];HEAP32[$2+108>>2]=HEAP32[$3+108>>2];HEAP32[$2+112>>2]=HEAP32[$3+112>>2];HEAP32[$2+116>>2]=HEAP32[$3+116>>2];HEAP32[$2+120>>2]=HEAP32[$3+120>>2];HEAP32[$2+124>>2]=HEAP32[$3+124>>2];HEAP32[$2+128>>2]=HEAP32[$3+128>>2];HEAP32[$2+132>>2]=HEAP32[$3+132>>2];HEAP32[$2+136>>2]=HEAP32[$3+136>>2];HEAP32[$2+140>>2]=HEAP32[$3+140>>2];HEAP32[$2+144>>2]=HEAP32[$3+144>>2];HEAP32[$2+148>>2]=HEAP32[$3+148>>2];HEAP32[$2+152>>2]=HEAP32[$3+152>>2];HEAP32[$2+156>>2]=HEAP32[$3+156>>2];HEAP32[$2+160>>2]=HEAP32[$3+160>>2];HEAP32[$2+164>>2]=HEAP32[$3+164>>2];HEAP32[$2+168>>2]=HEAP32[$3+168>>2];HEAP32[$2+172>>2]=HEAP32[$3+172>>2];HEAP32[$2+176>>2]=HEAP32[$3+176>>2];HEAP32[$2+180>>2]=HEAP32[$3+180>>2];HEAP32[$2+184>>2]=HEAP32[$3+184>>2];HEAP32[$2+188>>2]=HEAP32[$3+188>>2];$4=HEAP32[$3+196>>2];HEAP32[$2+192>>2]=HEAP32[$3+192>>2];HEAP32[$2+196>>2]=$4;$4=HEAP32[$3+204>>2];HEAP32[$2+200>>2]=HEAP32[$3+200>>2];HEAP32[$2+204>>2]=$4;$4=HEAP32[$3+212>>2];HEAP32[$2+208>>2]=HEAP32[$3+208>>2];HEAP32[$2+212>>2]=$4;HEAP32[$2+216>>2]=HEAP32[$3+216>>2];dmGameSystem__CompRenderConstants__operator__28dmGameSystem__CompRenderConstants_20const__29($2+224|0,$3+224|0);$4=HEAPU8[$3+1019|0]|HEAPU8[$3+1020|0]<<8|(HEAPU8[$3+1021|0]<<16|HEAPU8[$3+1022|0]<<24);$5=HEAPU8[$3+1015|0]|HEAPU8[$3+1016|0]<<8|(HEAPU8[$3+1017|0]<<16|HEAPU8[$3+1018|0]<<24);HEAP8[$2+1015|0]=$5;HEAP8[$2+1016|0]=$5>>>8;HEAP8[$2+1017|0]=$5>>>16;HEAP8[$2+1018|0]=$5>>>24;HEAP8[$2+1019|0]=$4;HEAP8[$2+1020|0]=$4>>>8;HEAP8[$2+1021|0]=$4>>>16;HEAP8[$2+1022|0]=$4>>>24;$4=HEAP32[$3+1012>>2];HEAP32[$2+1008>>2]=HEAP32[$3+1008>>2];HEAP32[$2+1012>>2]=$4;$2=HEAP32[$0+4>>2]+ -1024|0;HEAP32[$0+4>>2]=$2;if($2>>>0>2]){break label$2}HEAP32[(($1<<3)+$7|0)+4>>2]=HEAP32[$0+32>>2];HEAP32[$0+32>>2]=$6-HEAP32[$0+16>>2]>>3;return}break label$1}__assert_fail(43728,43454,131,43749);abort()}__assert_fail(43754,43608,464,43769);abort()}__assert_fail(43779,43608,467,43769);abort()}__assert_fail(43706,43608,430,43717);abort()}function dmProfileRender__GotoRecordedFrame_28dmProfileRender__RenderProfile__2c_20int_29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$5=global$0-16|0;global$0=$5;label$1:{label$2:{label$4:{$2=HEAP32[$0+20>>2];$3=HEAP32[$0+24>>2]-$2|0;label$5:{if(!$3){dmProfileRender__ResetStructure_28dmProfileRender__RenderProfile__29($0);break label$5}$3=$3>>2;$7=($3|0)>($1|0)?($1|0)>0?$1:0:$3+ -1|0;if($3>>>0<=$7>>>0){break label$4}$3=HEAP32[$2+($7<<2)>>2];$9=$3+8|0;if(($9|0)==HEAP32[$0+16>>2]){break label$5}$1=0;HEAP32[$0+84>>2]=0;if(HEAP32[$0+80>>2]){$2=HEAP32[$0+76>>2];while(1){HEAP32[$2+($1<<2)>>2]=$1;$1=$1+1|0;if($1>>>0>2]){continue}break}}$1=0;HEAP32[$0+136>>2]=0;if(HEAP32[$0+132>>2]){$2=HEAP32[$0+128>>2];while(1){HEAP32[$2+($1<<2)>>2]=$1;$1=$1+1|0;if($1>>>0>2]){continue}break}}$1=0;HEAP32[$0+188>>2]=0;if(HEAP32[$0+184>>2]){$2=HEAP32[$0+180>>2];while(1){HEAP32[$2+($1<<2)>>2]=$1;$1=$1+1|0;if($1>>>0>2]){continue}break}}memset(HEAP32[$0+44>>2],255,HEAP32[$0+48>>2]<<2);$1=$0- -64|0;HEAP32[$1>>2]=-1;HEAP32[$1+4>>2]=0;HEAP32[$0+56>>2]=HEAP32[$0+52>>2];if(HEAP32[$3+36>>2]){$6=$0+44|0;$1=0;while(1){$4=HEAP32[$0+76>>2];if(!$4){break label$2}$2=HEAP32[$0+84>>2];if($2>>>0>=HEAPU32[$0+80>>2]){break label$1}HEAP32[$0+84>>2]=$2+1;$2=HEAP32[$4+($2<<2)>>2];HEAP32[$5+12>>2]=$2;$4=HEAP32[$3+8>>2]+Math_imul($2,12)|0;dmHashTable_unsigned_20int_2c_20char_20const____Put_28unsigned_20int_2c_20char_20const__20const__29($6,HEAP32[$4+8>>2],$5+12|0);HEAP32[HEAP32[$0+92>>2]+($1<<2)>>2]=HEAP32[$5+12>>2];$8=HEAP32[$0+252>>2];$2=HEAP32[$0+232>>2]+($1<<4)|0;HEAP32[$2>>2]=HEAP32[$0+248>>2];HEAP32[$2+4>>2]=$8;HEAP32[$2+8>>2]=HEAP32[$4>>2];$1=$1+1|0;if($1>>>0>2]){continue}break}}memset(HEAP32[$0+96>>2],255,HEAP32[$0+100>>2]<<2);HEAP32[$0+116>>2]=-1;HEAP32[$0+120>>2]=0;HEAP32[$0+108>>2]=HEAP32[$0+104>>2];if(HEAP32[$3+40>>2]){$4=$0+96|0;$1=0;while(1){$6=HEAP32[$0+128>>2];if(!$6){break label$2}$2=HEAP32[$0+136>>2];if($2>>>0>=HEAPU32[$0+132>>2]){break label$1}HEAP32[$0+136>>2]=$2+1;$2=HEAP32[$6+($2<<2)>>2];HEAP32[$5+8>>2]=$2;$6=HEAP32[$3+12>>2]+Math_imul($2,20)|0;$2=HEAP32[$6+12>>2];dmHashTable_unsigned_20int_2c_20char_20const____Put_28unsigned_20int_2c_20char_20const__20const__29($4,$2^(HEAP32[$6+8>>2]+($2<<6)+($2>>>2)|0)+ -1640531527,$5+8|0);HEAP32[HEAP32[$0+144>>2]+($1<<2)>>2]=HEAP32[$5+8>>2];$8=HEAP32[$0+252>>2];$2=HEAP32[$0+236>>2]+($1<<4)|0;HEAP32[$2>>2]=HEAP32[$0+248>>2];HEAP32[$2+4>>2]=$8;HEAP32[$2+8>>2]=HEAP32[$6>>2];$1=$1+1|0;if($1>>>0>2]){continue}break}}memset(HEAP32[$0+148>>2],255,HEAP32[$0+152>>2]<<2);HEAP32[$0+168>>2]=-1;HEAP32[$0+172>>2]=0;HEAP32[$0+160>>2]=HEAP32[$0+156>>2];if(HEAP32[$3+44>>2]){$6=$0+148|0;$1=0;while(1){$4=HEAP32[$0+180>>2];if(!$4){break label$2}$2=HEAP32[$0+188>>2];if($2>>>0>=HEAPU32[$0+184>>2]){break label$1}HEAP32[$0+188>>2]=$2+1;$2=HEAP32[$4+($2<<2)>>2];HEAP32[$5+4>>2]=$2;dmHashTable_unsigned_20int_2c_20char_20const____Put_28unsigned_20int_2c_20char_20const__20const__29($6,HEAP32[(HEAP32[$3+16>>2]+($2<<3)|0)+4>>2],$5+4|0);HEAP32[HEAP32[$0+196>>2]+($1<<2)>>2]=HEAP32[$5+4>>2];$4=HEAP32[$0+252>>2];$2=HEAP32[$0+240>>2]+($1<<3)|0;HEAP32[$2>>2]=HEAP32[$0+248>>2];HEAP32[$2+4>>2]=$4;$1=$1+1|0;if($1>>>0>2]){continue}break}}$1=HEAP32[$3+48>>2];HEAP32[$0+264>>2]=$7;HEAP32[$0+256>>2]=$1;HEAP32[$0+16>>2]=$9}global$0=$5+16|0;return}__assert_fail(8889,8900,430,8971);abort()}__assert_fail(8487,8494,148,8560);abort()}__assert_fail(8564,8494,149,8560);abort()}function dmGameObject__DoSetBoneTransforms_28dmGameObject__CollectionHandle__2c_20dmTransform__Transform__2c_20unsigned_20short_2c_20dmTransform__Transform__2c_20unsigned_20int_29($0,$1,$2,$3,$4){var $5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0);label$1:{if(!(!$4|($2|0)==32767)){$17=HEAP32[$0>>2];while(1){$5=HEAP32[$17+2056>>2];$2=$2&65535;if(HEAP32[$17+2060>>2]-$5>>2>>>0<=$2>>>0){break label$1}label$4:{$5=HEAP32[$5+($2<<2)>>2];if(!(HEAPU8[$5+137|0]&4)){break label$4}$2=Math_imul($16,48)+$3|0;$11=HEAPF32[$2>>2];HEAP32[$5>>2]=HEAP32[$2>>2];$12=HEAPF32[$2+4>>2];HEAP32[$5+4>>2]=HEAP32[$2+4>>2];$13=HEAPF32[$2+8>>2];HEAP32[$5+8>>2]=HEAP32[$2+8>>2];$6=HEAPF32[$2+12>>2];HEAP32[$5+12>>2]=HEAP32[$2+12>>2];$19=HEAPF32[$2+16>>2];HEAP32[$5+16>>2]=HEAP32[$2+16>>2];$20=HEAPF32[$2+20>>2];HEAP32[$5+20>>2]=HEAP32[$2+20>>2];$21=HEAPF32[$2+24>>2];HEAP32[$5+24>>2]=HEAP32[$2+24>>2];$22=HEAPF32[$2+32>>2];HEAP32[$5+32>>2]=HEAP32[$2+32>>2];$23=HEAPF32[$2+36>>2];HEAP32[$5+36>>2]=HEAP32[$2+36>>2];$24=HEAPF32[$2+40>>2];HEAP32[$5+40>>2]=HEAP32[$2+40>>2];$2=$16+1|0;if(!($16|!$1)){$25=HEAPF32[$1+16>>2];$26=HEAPF32[$1+20>>2];$27=HEAPF32[$1+24>>2];$7=HEAPF32[$1+8>>2];$8=HEAPF32[$1+4>>2];$9=HEAPF32[$1+12>>2];$10=HEAPF32[$1>>2];$14=HEAPF32[$1+32>>2];$15=HEAPF32[$1+36>>2];$18=HEAPF32[$1+40>>2];HEAPF32[$5+40>>2]=$18*$24;HEAPF32[$5+36>>2]=$15*$23;HEAPF32[$5+32>>2]=$14*$22;HEAPF32[$5+12>>2]=Math_fround(Math_fround(Math_fround($9*$6)-Math_fround($10*$11))-Math_fround($8*$12))-Math_fround($7*$13);HEAPF32[$5+8>>2]=Math_fround(Math_fround($10*$12)+Math_fround(Math_fround($9*$13)+Math_fround($7*$6)))-Math_fround($8*$11);HEAPF32[$5+4>>2]=Math_fround(Math_fround($7*$11)+Math_fround(Math_fround($9*$12)+Math_fround($8*$6)))-Math_fround($10*$13);HEAPF32[$5>>2]=Math_fround(Math_fround($8*$13)+Math_fround(Math_fround($9*$11)+Math_fround($10*$6)))-Math_fround($7*$12);$6=Math_fround($14*$19);$11=Math_fround($15*$20);$12=Math_fround($18*$21);$13=Math_fround(Math_fround(Math_fround($7*$6)+Math_fround($9*$11))-Math_fround($10*$12));$14=Math_fround(Math_fround($7*$12)+Math_fround(Math_fround($10*$6)+Math_fround($8*$11)));$15=Math_fround(Math_fround(Math_fround($10*$11)+Math_fround($9*$12))-Math_fround($8*$6));$6=Math_fround(Math_fround(Math_fround($9*$6)+Math_fround($8*$12))-Math_fround($7*$11));HEAPF32[$5+24>>2]=$27+Math_fround(Math_fround($10*$13)+Math_fround(Math_fround(Math_fround($7*$14)+Math_fround($9*$15))-Math_fround($8*$6)));HEAPF32[$5+20>>2]=$26+Math_fround(Math_fround($7*$6)+Math_fround(Math_fround(Math_fround($9*$13)+Math_fround($8*$14))-Math_fround($10*$15)));HEAPF32[$5+16>>2]=$25+Math_fround(Math_fround($8*$15)+Math_fround(Math_fround(Math_fround($10*$14)+Math_fround($9*$6))-Math_fround($7*$13)))}if($2>>>0<$4>>>0){$2=dmGameObject__DoSetBoneTransforms_28dmGameObject__CollectionHandle__2c_20dmTransform__Transform__2c_20unsigned_20short_2c_20dmTransform__Transform__2c_20unsigned_20int_29($0,0,HEAPU16[$5+154>>1]&32767,Math_imul($2,48)+$3|0,$4-$2|0)+$2|0}$16=$2;if(($2|0)!=($4|0)){break label$4}return $4}$2=HEAP32[$5+152>>2]&32767;if(($2|0)!=32767){continue}break}}return $16}__assert_fail(16081,13666,430,14890);abort()}function subexpr($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$6=global$0-32|0;global$0=$6;$3=1;$5=HEAP32[$0+52>>2];$4=HEAPU16[$5+52>>1]+1|0;HEAP16[$5+52>>1]=$4;if(($4&65535)>>>0>=201){luaX_lexerror($0,124061,0)}label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{label$9:{label$10:{label$11:{$4=HEAP32[$0+16>>2];$5=$4+ -263|0;if($5>>>0>23){$3=$4+ -35|0;if($3>>>0>10){if(($4|0)!=123){break label$11}constructor($0,$1);break label$2}label$14:{switch($3-1|0){case 9:$3=0;break label$3;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break label$11;default:break label$14}}$3=2;break label$3}label$16:{switch($5-1|0){case 1:break label$10;case 0:case 2:case 3:case 4:case 7:case 8:case 9:case 10:case 12:case 13:case 14:case 16:case 17:case 18:case 19:case 21:break label$11;case 20:break label$16;case 6:break label$3;case 22:break label$5;case 5:break label$6;case 11:break label$7;case 15:break label$9;default:break label$8}}HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=0;HEAP32[$1>>2]=5;$3=HEAP32[$0+28>>2];HEAP32[$1+8>>2]=HEAP32[$0+24>>2];HEAP32[$1+12>>2]=$3;break label$4}primaryexp($0,$1);break label$2}luaX_next($0);body($0,$1,0,HEAP32[$0+4>>2]);break label$2}$5=HEAP32[$0+48>>2];$3=HEAP32[$5>>2];$4=HEAPU8[$3+74|0];if(!$4){luaX_syntaxerror($0,124126);$3=HEAP32[$5>>2];$4=HEAPU8[$3+74|0]}HEAP8[$3+74|0]=$4&251;$3=luaK_codeABC($5,37,0,1,0);HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=$3;HEAP32[$1>>2]=14;break label$4}HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=0;HEAP32[$1>>2]=3;break label$4}HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=0;HEAP32[$1>>2]=2;break label$4}HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=0;HEAP32[$1>>2]=1;break label$4}$3=luaK_stringK(HEAP32[$0+48>>2],HEAP32[$0+24>>2]);HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=$3;HEAP32[$1>>2]=4}luaX_next($0);break label$2}luaX_next($0);subexpr($0,$1,8);luaK_prefix(HEAP32[$0+48>>2],$3,$1)}$4=15;$3=HEAP32[$0+16>>2];$5=$3+ -37|0;label$18:{label$19:{if($5>>>0>57){$3=$3+ -257|0;if($3>>>0>26){break label$18}label$21:{switch($3-1|0){case 20:$3=6;break label$19;case 25:$3=7;break label$19;case 22:$3=8;break label$19;case 24:$3=10;break label$19;case 23:$3=12;break label$19;default:$3=13;break label$19;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 14:case 15:case 16:case 17:case 18:case 19:case 21:break label$18;case 13:break label$21}}$3=14;break label$19}$3=0;label$28:{switch($5-1|0){case 24:$3=11;break label$19;case 22:$3=9;break label$19;case 56:$3=5;break label$19;default:$3=4;break label$19;case 9:$3=3;break label$19;case 4:$3=2;break label$19;case 0:case 1:case 2:case 3:case 6:case 8:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 23:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break label$18;case 5:break label$19;case 7:break label$28}}$3=1}while(1){$4=$3<<1;if(HEAPU8[$4+124096|0]<=$2>>>0){$4=$3;break label$18}luaX_next($0);luaK_infix(HEAP32[$0+48>>2],$3,$1);$5=subexpr($0,$6+8|0,HEAPU8[($4+124096|0)+1|0]);luaK_posfix(HEAP32[$0+48>>2],$3,$1,$6+8|0);$4=15;$3=$5;if(($3|0)!=15){continue}break}}$0=HEAP32[$0+52>>2];HEAP16[$0+52>>1]=HEAPU16[$0+52>>1]+ -1;global$0=$6+32|0;return $4}function init_blocksize($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=Math_fround(0);$9=$2<<1&-4;$10=$9+HEAP32[$0+8>>2]|0;HEAP32[$0+8>>2]=$10;$8=(($1<<2)+$0|0)+1084|0;$7=HEAP32[$0+96>>2];label$1:{if($7){$5=HEAP32[$0+104>>2];$3=$5+$9|0;$6=0;if(($3|0)>HEAP32[$0+108>>2]){break label$1}HEAP32[$0+104>>2]=$3;$6=$5+$7|0;break label$1}$6=0;if(!$9){break label$1}$6=dlmalloc($9)}HEAP32[$8>>2]=$6;$13=$9+$10|0;HEAP32[$0+8>>2]=$13;$10=(($1<<2)+$0|0)+1092|0;$8=HEAP32[$0+96>>2];label$3:{if($8){$7=HEAP32[$0+104>>2];$3=$7+$9|0;$5=0;if(($3|0)>HEAP32[$0+108>>2]){break label$3}HEAP32[$0+104>>2]=$3;$5=$7+$8|0;break label$3}$5=0;if(!$9){break label$3}$5=dlmalloc($9)}HEAP32[$10>>2]=$5;$7=$2&-4;$16=$7+$13|0;HEAP32[$0+8>>2]=$16;$13=(($1<<2)+$0|0)+1100|0;$10=HEAP32[$0+96>>2];label$5:{if($10){$8=HEAP32[$0+104>>2];$7=$8+$7|0;$3=0;if(($7|0)>HEAP32[$0+108>>2]){break label$5}HEAP32[$0+104>>2]=$7;$3=$8+$10|0;break label$5}$3=0;if(!$7){break label$5}$3=dlmalloc($7)}HEAP32[$13>>2]=$3;if(!($5?!(!$6|!$3):0)){HEAP32[$0+116>>2]=3;return 0}$14=$2>>3;label$9:{if(($2|0)<4){break label$9}$7=$2>>2;$13=($7|0)>1?$7:1;$15=+($2|0);while(1){$10=$4<<2;$11=+($12<<2)*3.141592653589793/$15;HEAPF32[$6+$10>>2]=cos($11);$8=$4|1;$7=$8<<2;HEAPF32[$6+$7>>2]=-Math_fround(sin($11));$11=+($8|0)*3.141592653589793/$15*.5;HEAPF32[$5+$10>>2]=Math_fround(cos($11))*Math_fround(.5);HEAPF32[$5+$7>>2]=Math_fround(sin($11))*Math_fround(.5);$4=$4+2|0;$12=$12+1|0;if(($13|0)!=($12|0)){continue}break}if(($2|0)<8){break label$9}$6=($14|0)>1?$14:1;$4=0;$12=0;while(1){$5=$4|1;$11=+($5<<1)*3.141592653589793/$15;HEAPF32[$3+($4<<2)>>2]=cos($11);HEAPF32[$3+($5<<2)>>2]=-Math_fround(sin($11));$4=$4+2|0;$12=$12+1|0;if(($6|0)!=($12|0)){continue}break}}$8=$9+$16|0;HEAP32[$0+8>>2]=$8;label$12:{label$13:{label$14:{label$15:{label$16:{label$17:{label$18:{$4=(($1<<2)+$0|0)+1108|0;$6=HEAP32[$0+96>>2];label$19:{if($6){$5=HEAP32[$0+104>>2];$3=$5+$9|0;if(($3|0)>HEAP32[$0+108>>2]){break label$18}HEAP32[$0+104>>2]=$3;$3=$5+$6|0;break label$19}if(!$9){break label$18}$3=dlmalloc($9)}HEAP32[$4>>2]=$3;if(!$3){break label$12}if(($2|0)>=2){$6=$2>>1;$5=($6|0)>1?$6:1;$11=+($6|0);$4=0;while(1){$6=$3+($4<<2)|0;$17=Math_fround(sin((+($4|0)+.5)/$11*.5*3.141592653589793));HEAPF32[$6>>2]=sin(+Math_fround($17*$17)*1.5707963267948966);$4=$4+1|0;if(($5|0)!=($4|0)){continue}break}}$3=($14<<1)+3&-4;HEAP32[$0+8>>2]=$3+$8;$4=(($1<<2)+$0|0)+1116|0;$6=HEAP32[$0+96>>2];label$23:{if($6){$5=HEAP32[$0+104>>2];$3=$5+$3|0;if(($3|0)>HEAP32[$0+108>>2]){break label$17}HEAP32[$0+104>>2]=$3;$1=$5+$6|0;break label$23}if(!$3){break label$17}$1=dlmalloc($3)}HEAP32[$4>>2]=$1;if(!$1){break label$13}label$25:{if($2>>>0<=16383){if($2>>>0<16){break label$25}$4=$2>>>0<512?5:10;break label$16}if($2>>>0<=16777215){$4=$2>>>0<524288?15:20;break label$16}$4=25;if($2>>>0<536870912){break label$16}$4=30;if(($2|0)>-1){break label$16}return 1}if(($2|0)<=7){break label$14}$5=HEAP8[$2+213536|0];break label$15}HEAP32[(($1<<2)+$0|0)+1108>>2]=0;break label$12}HEAP32[(($1<<2)+$0|0)+1116>>2]=0;break label$13}$5=HEAP8[($2>>>$4|0)+213536|0]+$4|0}$0=$2>>>3|0;$3=$0>>>0>1?$0:1;$2=36-$5|0;$4=0;while(1){$0=$4<<1;$5=$0+$1|0;$0=$4>>>1&357913941|$0&-1431655766;$0=$0>>>2&590558003|$0<<2&-858993460;$0=$0>>>4&235867919|$0<<4&-252645136;HEAP16[$5>>1]=__wasm_rotl_i32($0>>>8&16646399|$0<<8&-16711936,16)>>>$2<<2;$4=$4+1|0;if(($3|0)!=($4|0)){continue}break}}return 1}HEAP32[$0+116>>2]=3;return 0}HEAP32[$0+116>>2]=3;return 0}function dmGameSystem__CompCollectionFactoryUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$5=global$0-16|0;global$0=$5;label$1:{$6=HEAP32[$0+8>>2];$1=HEAP32[$6>>2];if(($1|0)!=HEAP32[$6+4>>2]){while(1){$2=Math_imul($7,24)+$1|0;label$4:{if((HEAPU8[$2+20|0]&3)!=3){break label$4}$1=0;$4=HEAP32[$0>>2];label$5:{if(!$4){break label$5}$4=HEAP32[$4>>2];if(!$4){break label$5}$1=HEAP32[$4>>2]}$4=HEAP32[$2+4>>2];label$6:{if(!$4){$3=0;break label$6}HEAP32[$5+12>>2]=$2;HEAP32[$5+8>>2]=$1;$3=dmResource__UpdatePreloader_28dmResource__ResourcePreloader__2c_20bool_20_28__29_28dmResource__PreloaderCompleteCallbackParams_20const__29_2c_20dmResource__PreloaderCompleteCallbackParams__2c_20unsigned_20int_29($4,441,$5+8|0,1e4);if(($3|0)==-17){break label$4}}HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$4=HEAP32[HEAP32[$0+12>>2]>>2];$1=0;label$8:{if(!$4){break label$8}$1=HEAP32[$4+120>>2]}$4=HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4;lua_rawgeti($1,-1e4,HEAP32[$2+8>>2]);lua_rawgeti($1,-1e4,HEAP32[$2+12>>2]);lua_pushvalue($1,-1);dmScript__SetInstance_28lua_State__29($1);if(!dmScript__IsValidInstance_28lua_State__29($1)){lua_settop($1,-3);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,35079,35617,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)==HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$4}__assert_fail(35711,35732,301,35786);abort()}if(HEAP32[$2+8>>2]==-2){lua_settop($1,-3);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,35079,35799,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)==HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$4}__assert_fail(35711,35732,309,35786);abort()}lua_rawgeti($1,-1e4,HEAP32[$2+16>>2]);$8=HEAP32[$1+8>>2];HEAP32[$8+8>>2]=1;HEAP32[$8>>2]=(!$3|0)!=0;HEAP32[$1+8>>2]=HEAP32[$1+8>>2]+16;dmScript__PCall_28lua_State__2c_20int_2c_20int_29($1,3,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)!=HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$1}}$7=$7+1|0;$1=HEAP32[$6>>2];if($7>>>0<(HEAP32[$6+4>>2]-$1|0)/24>>>0){continue}break}}global$0=$5+16|0;return 0}__assert_fail(35711,35732,317,35786);abort()}function b2World__DrawDebugData_28_29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=Math_fround(0);$1=global$0-48|0;global$0=$1;label$1:{$2=HEAP32[$0+102984>>2];label$2:{if(!$2){break label$2}$6=HEAP32[$2+4>>2];label$3:{if(!($6&1)){break label$3}$3=HEAP32[$0+102952>>2];if(!$3){break label$3}while(1){$2=HEAP32[$3+100>>2];if($2){$5=$3+12|0;while(1){$4=HEAPU16[$3+4>>1];label$7:{if(!($4&32)){HEAP32[$1+8>>2]=1050253722;HEAP32[$1>>2]=1056964608;HEAP32[$1+4>>2]=1056964608;break label$7}$7=HEAP32[$3>>2];if(!$7){HEAP32[$1+8>>2]=1056964608;HEAP32[$1>>2]=1056964608;HEAP32[$1+4>>2]=1063675494;break label$7}if(!($4&2)){HEAP32[$1+8>>2]=1058642330;HEAP32[$1>>2]=1058642330;HEAP32[$1+4>>2]=1058642330;break label$7}if(($7|0)==1){HEAP32[$1+8>>2]=1063675494;HEAP32[$1>>2]=1056964608;HEAP32[$1+4>>2]=1056964608;break label$7}HEAP32[$1+8>>2]=1060320051;HEAP32[$1>>2]=1063675494;HEAP32[$1+4>>2]=1060320051}b2World__DrawShape_28b2Fixture__2c_20b2Transform_20const__2c_20b2Color_20const__29($0,$2,$5,$1);$2=HEAP32[$2+4>>2];if($2){continue}break}}$3=HEAP32[$3+96>>2];if($3){continue}break}}label$12:{if(!($6&2)){break label$12}$2=HEAP32[$0+102956>>2];if(!$2){break label$12}while(1){b2World__DrawJoint_28b2Joint__29($0,$2);$2=HEAP32[$2+12>>2];if($2){continue}break}}label$14:{if(!($6&8)){break label$14}HEAP32[$1+40>>2]=1063675494;HEAP32[$1+32>>2]=1050253722;HEAP32[$1+36>>2]=1063675494;$3=HEAP32[$0+102932>>2];if(!$3){break label$14}while(1){label$16:{if((HEAP32[$3+4>>2]&6)!=6){break label$16}$2=HEAP32[$3+48>>2];$4=HEAP32[$2+8>>2]+12|0;$10=HEAPF32[HEAP32[$2+12>>2]+8>>2];$2=HEAP32[$3+52>>2];b2WorldManifold__Initialize_28b2Manifold_20const__2c_20b2Transform_20const__2c_20float_2c_20b2Transform_20const__2c_20float_29($1,$3- -64|0,$4,$10,HEAP32[$2+8>>2]+12|0,HEAPF32[HEAP32[$2+12>>2]+8>>2]);$2=0;$5=HEAP32[$3+132>>2];if(($5|0)<=0){break label$16}while(1){$4=HEAP32[$0+102984>>2];FUNCTION_TABLE[HEAP32[HEAP32[$4>>2]+32>>2]]($4,(($2<<3)+$1|0)+8|0,$1,$1+32|0);$2=$2+1|0;if(($5|0)!=($2|0)){continue}break}}$3=HEAP32[$3+12>>2];if($3){continue}break}}label$18:{if(!($6&4)){break label$18}HEAP32[$1+40>>2]=1063675494;HEAP32[$1+32>>2]=1063675494;HEAP32[$1+36>>2]=1050253722;$5=HEAP32[$0+102952>>2];if(!$5){break label$18}while(1){label$20:{if(!(HEAPU8[$5+4|0]&32)){break label$20}$2=HEAP32[$5+100>>2];if(!$2){break label$20}while(1){if(HEAP32[$2+28>>2]>=1){$3=0;while(1){$4=HEAP32[(HEAP32[$2+24>>2]+Math_imul($3,28)|0)+24>>2];if(($4|0)<0|HEAP32[$0+102884>>2]<=($4|0)){break label$1}$4=HEAP32[$0+102876>>2]+Math_imul($4,36)|0;$7=HEAP32[$4+4>>2];$8=HEAP32[$4+8>>2];$9=HEAP32[$4>>2];$4=HEAP32[$4+12>>2];HEAP32[$1+28>>2]=$4;HEAP32[$1+24>>2]=$9;HEAP32[$1+20>>2]=$4;HEAP32[$1+16>>2]=$8;HEAP32[$1+12>>2]=$7;HEAP32[$1+8>>2]=$8;HEAP32[$1+4>>2]=$7;HEAP32[$1>>2]=$9;$4=HEAP32[$0+102984>>2];FUNCTION_TABLE[HEAP32[HEAP32[$4>>2]+8>>2]]($4,$1,4,$1+32|0);$3=$3+1|0;if(($3|0)>2]){continue}break}}$2=HEAP32[$2+4>>2];if($2){continue}break}}$5=HEAP32[$5+96>>2];if($5){continue}break}}if(!($6&16)){break label$2}$2=HEAP32[$0+102952>>2];if(!$2){break label$2}while(1){$3=HEAP32[$2+24>>2];HEAP32[$1+8>>2]=HEAP32[$2+20>>2];HEAP32[$1+12>>2]=$3;$3=HEAP32[$2+16>>2];HEAP32[$1>>2]=HEAP32[$2+12>>2];HEAP32[$1+4>>2]=$3;$3=HEAP32[$2+48>>2];HEAP32[$1>>2]=HEAP32[$2+44>>2];HEAP32[$1+4>>2]=$3;$3=HEAP32[$0+102984>>2];FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+28>>2]]($3,$1);$2=HEAP32[$2+96>>2];if($2){continue}break}}global$0=$1+48|0;return}__assert_fail(97838,97879,166,97924);abort()}function dmGameSystem__CompMeshCreate_28dmGameObject__ComponentCreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=0,$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0);$2=global$0-80|0;global$0=$2;$3=HEAP32[$0+64>>2];$1=$3+36|0;label$1:{$8=HEAP32[$3+44>>2];label$2:{if(($8|0)==HEAP32[$3+40>>2]){HEAP32[$2>>2]=$8-HEAP32[$1>>2]>>2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,44464,44472,$2);$0=-1e3;break label$2}$8=dmObjectPool_dmGameSystem__MeshComponent____Alloc_28_29($1);$1=operator_20new_28unsigned_20long_29(1008);dmGameSystem__CompRenderConstants__CompRenderConstants_28_29($1+160|0);$1=memset($1,0,1008);$5=HEAP32[$3+52>>2];if(HEAP32[$3+56>>2]-$5>>3>>>0<=$8>>>0){break label$1}$12=HEAP32[$3+40>>2];$3=HEAP32[$3+36>>2];$5=HEAP32[$5+($8<<3)>>2];if($12-$3>>2>>>0<=$5>>>0){break label$1}HEAP32[$3+($5<<2)>>2]=$1;HEAP32[$1>>2]=HEAP32[$0>>2];$10=HEAPF32[$0+36>>2];$6=HEAPF32[$0+44>>2];$13=HEAPF32[$0+40>>2];$3=HEAP32[$0+24>>2];$4=HEAPF32[$0+32>>2];$5=HEAP32[$0+20>>2];$12=HEAP32[$0+16>>2];HEAP32[$1+28>>2]=0;HEAP32[$1+44>>2]=0;HEAP32[$1+60>>2]=0;HEAP32[$1+64>>2]=$12;HEAP32[$1+68>>2]=$5;HEAP32[$1+76>>2]=1065353216;HEAP32[$1+72>>2]=$3;$14=Math_fround($10+$10);$9=Math_fround($4*$14);$11=Math_fround($13+$13);$7=Math_fround($6*$11);HEAPF32[$1+20>>2]=$9+$7;$15=Math_fround($4*$11);$16=Math_fround($14*$6);HEAPF32[$1+24>>2]=$15-$16;HEAPF32[$1+32>>2]=$9-$7;$9=Math_fround($10*$11);$7=$6;$6=Math_fround($4+$4);$7=Math_fround($7*$6);HEAPF32[$1+40>>2]=$9+$7;HEAPF32[$1+48>>2]=$15+$16;HEAPF32[$1+52>>2]=$9-$7;$4=Math_fround(Math_fround(1)-Math_fround($4*$6));$6=Math_fround($13*$11);HEAPF32[$1+36>>2]=$4-$6;$7=$4;$4=Math_fround($10*$14);HEAPF32[$1+56>>2]=$7-$4;HEAPF32[$1+16>>2]=Math_fround(Math_fround(1)-$4)-$6;HEAP32[$1+944>>2]=HEAP32[$0+60>>2];HEAP16[$1+1e3>>1]=HEAPU16[$0+76>>1];HEAP32[$1+84>>2]=0;HEAP32[$1+88>>2]=0;HEAP32[$1+80>>2]=1065353216;HEAP32[$1+92>>2]=0;HEAP32[$1+96>>2]=0;HEAP32[$1+104>>2]=0;HEAP32[$1+108>>2]=0;HEAP32[$1+100>>2]=1065353216;HEAP32[$1+112>>2]=0;HEAP32[$1+116>>2]=0;HEAP32[$1+124>>2]=0;HEAP32[$1+128>>2]=0;HEAP32[$1+120>>2]=1065353216;HEAP32[$1+132>>2]=0;HEAP32[$1+136>>2]=0;HEAP32[$1+140>>2]=1065353216;HEAP8[$1+1002|0]=HEAPU8[$1+1002|0]|1;$3=$1+16|0;$5=dmGameObject__GetWorldMatrix_28dmGameObject__Instance__29(HEAP32[$1>>2]);label$4:{if((HEAPU8[HEAP32[$1>>2]+137|0]&2)>>>1){Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($2+16|0,$5,$3);break label$4}dmTransform__MulNoScaleZ_28Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__29($2+16|0,$5,$3)}HEAP32[$1+80>>2]=HEAP32[$2+16>>2];HEAP32[$1+84>>2]=HEAP32[$2+20>>2];HEAP32[$1+88>>2]=HEAP32[$2+24>>2];HEAP32[$1+92>>2]=HEAP32[$2+28>>2];HEAP32[$1+96>>2]=HEAP32[$2+32>>2];HEAP32[$1+100>>2]=HEAP32[$2+36>>2];HEAP32[$1+104>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+44>>2];HEAP32[$1+112>>2]=HEAP32[$2+48>>2];HEAP32[$1+116>>2]=HEAP32[$2+52>>2];HEAP32[$1+120>>2]=HEAP32[$2+56>>2];HEAP32[$1+124>>2]=HEAP32[$2+60>>2];HEAP32[$1+128>>2]=HEAP32[$2+64>>2];HEAP32[$1+132>>2]=HEAP32[$2+68>>2];HEAP32[$1+136>>2]=HEAP32[$2+72>>2];HEAP32[$1+140>>2]=HEAP32[$2+76>>2];dmGameSystem__ReHash_28dmGameSystem__MeshComponent__29($1);HEAP32[HEAP32[$0+72>>2]>>2]=$8;$0=0}global$0=$2+80|0;return $0|0}__assert_fail(45474,44749,430,45485);abort()}function dmGameSystem__CompFactoryUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$5=global$0-16|0;global$0=$5;label$1:{$6=HEAP32[$0+8>>2];$1=HEAP32[$6>>2];if(($1|0)!=HEAP32[$6+4>>2]){while(1){$2=Math_imul($7,24)+$1|0;label$4:{if((HEAPU8[$2+20|0]&3)!=3){break label$4}$1=0;$4=HEAP32[$0>>2];label$5:{if(!$4){break label$5}$4=HEAP32[$4>>2];if(!$4){break label$5}$1=HEAP32[$4>>2]}$4=HEAP32[$2+4>>2];label$6:{if(!$4){$3=0;break label$6}HEAP32[$5+12>>2]=$2;HEAP32[$5+8>>2]=$1;$3=dmResource__UpdatePreloader_28dmResource__ResourcePreloader__2c_20bool_20_28__29_28dmResource__PreloaderCompleteCallbackParams_20const__29_2c_20dmResource__PreloaderCompleteCallbackParams__2c_20unsigned_20int_29($4,451,$5+8|0,1e4);if(($3|0)==-17){break label$4}}HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$4=HEAP32[HEAP32[$0+12>>2]>>2];$1=0;label$8:{if(!$4){break label$8}$1=HEAP32[$4+120>>2]}$4=HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4;lua_rawgeti($1,-1e4,HEAP32[$2+8>>2]);lua_rawgeti($1,-1e4,HEAP32[$2+12>>2]);lua_pushvalue($1,-1);dmScript__SetInstance_28lua_State__29($1);if(!dmScript__IsValidInstance_28lua_State__29($1)){lua_settop($1,-3);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,39275,39573,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)==HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$4}__assert_fail(39657,39678,326,39721);abort()}if(HEAP32[$2+8>>2]==-2){lua_settop($1,-3);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,39275,39734,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)==HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$4}__assert_fail(39657,39678,334,39721);abort()}lua_rawgeti($1,-1e4,HEAP32[$2+16>>2]);$8=HEAP32[$1+8>>2];HEAP32[$8+8>>2]=1;HEAP32[$8>>2]=(!$3|0)!=0;HEAP32[$1+8>>2]=HEAP32[$1+8>>2]+16;dmScript__PCall_28lua_State__2c_20int_2c_20int_29($1,3,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)!=HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$1}}$7=$7+1|0;$1=HEAP32[$6>>2];if($7>>>0<(HEAP32[$6+4>>2]-$1|0)/24>>>0){continue}break}}global$0=$5+16|0;return 0}__assert_fail(39657,39678,342,39721);abort()}function void_20std____2____stable_sort_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0;label$1:{if($3>>>0<=2){if($3-2){break label$1}$2=HEAP32[$2>>2];$1=$1+ -4|0;$3=HEAP32[$1>>2];$4=HEAP32[$0>>2];if(HEAPU32[($2+Math_imul($3,48)|0)+24>>2]>=HEAPU32[($2+Math_imul($4,48)|0)+24>>2]){break label$1}HEAP32[$0>>2]=$3;HEAP32[$1>>2]=$4;return}if(($3|0)<=128){if(($0|0)==($1|0)){break label$1}$3=$0+4|0;if(($3|0)==($1|0)){break label$1}$5=HEAP32[$2>>2];while(1){$6=HEAP32[$3>>2];$4=$0;label$5:{if(($4|0)==($3|0)){break label$5}$7=$5+Math_imul($6,48)|0;$4=$3;while(1){$2=$4+ -4|0;$8=HEAP32[$2>>2];if(HEAPU32[$7+24>>2]>=HEAPU32[($5+Math_imul($8,48)|0)+24>>2]){break label$5}HEAP32[$4>>2]=$8;$4=$2;if(($4|0)!=($0|0)){continue}break}$4=$0}HEAP32[$4>>2]=$6;$3=$3+4|0;if(($3|0)!=($1|0)){continue}break}break label$1}$6=$3>>>1|0;$8=$6<<2;$7=$8+$0|0;label$7:{if(($3|0)<=($5|0)){void_20std____2____stable_sort_move_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($0,$7,$2,$6,$4);$5=$1;$1=$4+$8|0;void_20std____2____stable_sort_move_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($7,$5,$2,$3-$6|0,$1);$5=($3<<2)+$4|0;$2=HEAP32[$2>>2];$3=$1;while(1){if(($3|0)==($5|0)){if(($1|0)==($4|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$4>>2];$0=$0+4|0;$4=$4+4|0;if(($1|0)!=($4|0)){continue}break}break label$1}$6=HEAP32[$3>>2];$7=HEAP32[$4>>2];label$12:{if(HEAPU32[($2+Math_imul($6,48)|0)+24>>2]>2]){HEAP32[$0>>2]=$6;$3=$3+4|0;break label$12}HEAP32[$0>>2]=$7;$4=$4+4|0}$0=$0+4|0;if(($1|0)!=($4|0)){continue}break}break label$7}void_20std____2____stable_sort_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$2,$6,$4,$5);$3=$3-$6|0;void_20std____2____stable_sort_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($7,$1,$2,$3,$4,$5);void_20std____2____inplace_merge_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$1,$2,$6,$3,$4,$5);break label$1}if(($3|0)==($5|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$3>>2];$0=$0+4|0;$3=$3+4|0;if(($5|0)!=($3|0)){continue}break}}}function dmGameSystem__CompSpineModelGetProperty_28dmGameObject__ComponentGetPropertyParams_20const__2c_20dmGameObject__PropertyDesc__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=Math_fround(0),$8=0,$9=0;$2=global$0-48|0;global$0=$2;$3=HEAP32[$0+4>>2];$4=HEAP32[$3+16>>2];$5=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$3+20>>2]-$4>>3>>>0>$5>>>0){$6=HEAP32[$3+4>>2];$3=HEAP32[$3>>2];$4=HEAP32[$4+($5<<3)>>2];if($6-$3>>2>>>0>$4>>>0){$3=HEAP32[$3+($4<<2)>>2];$4=HEAP32[$0+16>>2];$5=HEAP32[$0+20>>2];label$3:{if(($4|0)==HEAP32[146538]&($5|0)==HEAP32[146539]){$0=HEAP32[$3+132>>2];$3=HEAP32[$0+204>>2];HEAP32[$2+16>>2]=HEAP32[$0+200>>2];HEAP32[$2+20>>2]=$3;HEAP32[$2+8>>2]=1;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$3}if(($4|0)==HEAP32[146540]&($5|0)==HEAP32[146541]){$0=HEAP32[$3+132>>2];$0=((HEAP8[$0+224|0]&1)<<5)+$0|0;$3=HEAP32[$0+12>>2];HEAP32[$2+16>>2]=HEAP32[$0+8>>2];HEAP32[$2+20>>2]=$3;HEAP32[$2+8>>2]=1;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$3}if(($4|0)==HEAP32[146542]&($5|0)==HEAP32[146543]){$0=$2+8|0;$7=dmRig__GetCursor_28dmRig__RigInstance__2c_20bool_29(HEAP32[$3+132>>2]);HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$7;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$3}if(($4|0)==HEAP32[146544]&($5|0)==HEAP32[146545]){$0=$2+8|0;$7=dmRig__GetPlaybackRate_28dmRig__RigInstance__29(HEAP32[$3+132>>2]);HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$7;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$3}$8=HEAP32[146518];$9=HEAP32[146519];$6=HEAP32[$3+960>>2];if(!$6){$6=HEAP32[HEAP32[$3+128>>2]+8>>2]}if(($4|0)==($8|0)&($5|0)==($9|0)){$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29(HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2],$6,$1);break label$3}$0=dmGameSystem__GetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__2c_20bool_2c_20bool_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmRender__Constant___29_2c_20void__29($6,$4,$5,$1,1,482,$3)}global$0=$2+48|0;return $0|0}}__assert_fail(50664,50554,430,50675);abort()}function chacha20_block($0,$1){var $2=0,$3=0,$4=0;$2=global$0+ -64|0;global$0=$2;$3=HEAP32[$0+60>>2];HEAP32[$2+56>>2]=HEAP32[$0+56>>2];HEAP32[$2+60>>2]=$3;$3=HEAP32[$0+52>>2];HEAP32[$2+48>>2]=HEAP32[$0+48>>2];HEAP32[$2+52>>2]=$3;$3=HEAP32[$0+44>>2];HEAP32[$2+40>>2]=HEAP32[$0+40>>2];HEAP32[$2+44>>2]=$3;$3=HEAP32[$0+36>>2];HEAP32[$2+32>>2]=HEAP32[$0+32>>2];HEAP32[$2+36>>2]=$3;$3=HEAP32[$0+28>>2];HEAP32[$2+24>>2]=HEAP32[$0+24>>2];HEAP32[$2+28>>2]=$3;$3=HEAP32[$0+20>>2];HEAP32[$2+16>>2]=HEAP32[$0+16>>2];HEAP32[$2+20>>2]=$3;$3=HEAP32[$0+4>>2];HEAP32[$2>>2]=HEAP32[$0>>2];HEAP32[$2+4>>2]=$3;$3=HEAP32[$0+12>>2];HEAP32[$2+8>>2]=HEAP32[$0+8>>2];HEAP32[$2+12>>2]=$3;chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);$3=HEAP32[$2>>2]+HEAP32[$0>>2]|0;HEAP32[$2>>2]=$3;$4=HEAP32[$2+4>>2]+HEAP32[$0+4>>2]|0;HEAP32[$2+4>>2]=$4;HEAP32[$2+8>>2]=HEAP32[$2+8>>2]+HEAP32[$0+8>>2];HEAP32[$2+12>>2]=HEAP32[$2+12>>2]+HEAP32[$0+12>>2];HEAP32[$2+16>>2]=HEAP32[$2+16>>2]+HEAP32[$0+16>>2];HEAP32[$2+20>>2]=HEAP32[$2+20>>2]+HEAP32[$0+20>>2];HEAP32[$2+24>>2]=HEAP32[$2+24>>2]+HEAP32[$0+24>>2];HEAP32[$2+28>>2]=HEAP32[$2+28>>2]+HEAP32[$0+28>>2];HEAP32[$2+32>>2]=HEAP32[$2+32>>2]+HEAP32[$0+32>>2];HEAP32[$2+36>>2]=HEAP32[$2+36>>2]+HEAP32[$0+36>>2];HEAP32[$2+40>>2]=HEAP32[$2+40>>2]+HEAP32[$0+40>>2];HEAP32[$2+44>>2]=HEAP32[$2+44>>2]+HEAP32[$0+44>>2];HEAP32[$2+48>>2]=HEAP32[$2+48>>2]+HEAP32[$0+48>>2];HEAP32[$2+52>>2]=HEAP32[$2+52>>2]+HEAP32[$0+52>>2];HEAP32[$2+56>>2]=HEAP32[$2+56>>2]+HEAP32[$0+56>>2];HEAP32[$2+60>>2]=HEAP32[$2+60>>2]+HEAP32[$0+60>>2];HEAP8[$1+7|0]=$4>>>24;HEAP8[$1+6|0]=$4>>>16;HEAP8[$1+5|0]=$4>>>8;HEAP8[$1+4|0]=$4;HEAP8[$1+3|0]=$3>>>24;HEAP8[$1+2|0]=$3>>>16;HEAP8[$1+1|0]=$3>>>8;HEAP8[$1|0]=$3;$0=HEAP32[$2+8>>2];HEAP8[$1+8|0]=$0;HEAP8[$1+9|0]=$0>>>8;HEAP8[$1+10|0]=$0>>>16;HEAP8[$1+11|0]=$0>>>24;$0=HEAP32[$2+12>>2];HEAP8[$1+12|0]=$0;HEAP8[$1+13|0]=$0>>>8;HEAP8[$1+14|0]=$0>>>16;HEAP8[$1+15|0]=$0>>>24;$0=HEAP32[$2+16>>2];HEAP8[$1+16|0]=$0;HEAP8[$1+17|0]=$0>>>8;HEAP8[$1+18|0]=$0>>>16;HEAP8[$1+19|0]=$0>>>24;$0=HEAP32[$2+20>>2];HEAP8[$1+20|0]=$0;HEAP8[$1+21|0]=$0>>>8;HEAP8[$1+22|0]=$0>>>16;HEAP8[$1+23|0]=$0>>>24;$0=HEAP32[$2+24>>2];HEAP8[$1+24|0]=$0;HEAP8[$1+25|0]=$0>>>8;HEAP8[$1+26|0]=$0>>>16;HEAP8[$1+27|0]=$0>>>24;$0=HEAP32[$2+28>>2];HEAP8[$1+28|0]=$0;HEAP8[$1+29|0]=$0>>>8;HEAP8[$1+30|0]=$0>>>16;HEAP8[$1+31|0]=$0>>>24;$0=HEAP32[$2+32>>2];HEAP8[$1+32|0]=$0;HEAP8[$1+33|0]=$0>>>8;HEAP8[$1+34|0]=$0>>>16;HEAP8[$1+35|0]=$0>>>24;$0=HEAP32[$2+36>>2];HEAP8[$1+36|0]=$0;HEAP8[$1+37|0]=$0>>>8;HEAP8[$1+38|0]=$0>>>16;HEAP8[$1+39|0]=$0>>>24;$0=HEAP32[$2+40>>2];HEAP8[$1+40|0]=$0;HEAP8[$1+41|0]=$0>>>8;HEAP8[$1+42|0]=$0>>>16;HEAP8[$1+43|0]=$0>>>24;$0=HEAP32[$2+44>>2];HEAP8[$1+44|0]=$0;HEAP8[$1+45|0]=$0>>>8;HEAP8[$1+46|0]=$0>>>16;HEAP8[$1+47|0]=$0>>>24;$0=HEAP32[$2+48>>2];HEAP8[$1+48|0]=$0;HEAP8[$1+49|0]=$0>>>8;HEAP8[$1+50|0]=$0>>>16;HEAP8[$1+51|0]=$0>>>24;$0=HEAP32[$2+52>>2];HEAP8[$1+52|0]=$0;HEAP8[$1+53|0]=$0>>>8;HEAP8[$1+54|0]=$0>>>16;HEAP8[$1+55|0]=$0>>>24;$0=HEAP32[$2+56>>2];HEAP8[$1+56|0]=$0;HEAP8[$1+57|0]=$0>>>8;HEAP8[$1+58|0]=$0>>>16;HEAP8[$1+59|0]=$0>>>24;$0=HEAP32[$2+60>>2];HEAP8[$1+60|0]=$0;HEAP8[$1+61|0]=$0>>>8;HEAP8[$1+62|0]=$0>>>16;HEAP8[$1+63|0]=$0>>>24;FUNCTION_TABLE[HEAP32[139546]]($2,0,64)|0;global$0=$2- -64|0}function btCompoundCollisionAlgorithm__calculateTimeOfImpact_28btCollisionObject__2c_20btCollisionObject__2c_20btDispatcherInfo_20const__2c_20btManifoldResult__29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=0,$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=0,$34=0,$35=0,$36=0,$37=0,$38=0;$29=HEAP32[$0+12>>2];if(($29|0)<1){return Math_fround(Math_fround(1))}$5=HEAPU8[$0+28|0];$33=$5?$1:$2;$1=$5?$2:$1;$34=HEAP32[$1- -64>>2];$30=HEAPF32[$1+60>>2];$31=HEAPF32[$1+56>>2];$32=HEAPF32[$1+52>>2];$35=HEAP32[$1+48>>2];$7=HEAPF32[$1+44>>2];$8=HEAPF32[$1+40>>2];$9=HEAPF32[$1+36>>2];$36=HEAP32[$1+32>>2];$10=HEAPF32[$1+28>>2];$11=HEAPF32[$1+24>>2];$12=HEAPF32[$1+20>>2];$37=HEAP32[$1+16>>2];$13=HEAPF32[$1+12>>2];$14=HEAPF32[$1+8>>2];$15=HEAPF32[$1+4>>2];$38=HEAP32[$1+192>>2];$16=Math_fround(1);$5=0;while(1){$2=HEAP32[$38+24>>2]+Math_imul($5,80)|0;$17=HEAP32[$2+64>>2];$6=HEAPF32[$2+56>>2];$18=HEAPF32[$2+52>>2];$19=HEAPF32[$2+48>>2];$20=HEAPF32[$2+36>>2];$21=HEAPF32[$2+20>>2];$22=HEAPF32[$2+4>>2];$23=HEAPF32[$2+40>>2];$24=HEAPF32[$2+24>>2];$25=HEAPF32[$2+8>>2];$26=HEAPF32[$2+32>>2];$27=HEAPF32[$2>>2];$28=HEAPF32[$2+16>>2];HEAP32[$1+64>>2]=0;HEAP32[$1+48>>2]=0;HEAP32[$1+32>>2]=0;HEAP32[$1+16>>2]=0;HEAPF32[$1+36>>2]=Math_fround(Math_fround($9*$27)+Math_fround($8*$28))+Math_fround($7*$26);HEAPF32[$1+20>>2]=Math_fround(Math_fround($12*$27)+Math_fround($11*$28))+Math_fround($10*$26);HEAPF32[$1+4>>2]=Math_fround(Math_fround($15*$27)+Math_fround($14*$28))+Math_fround($13*$26);HEAPF32[$1+44>>2]=Math_fround(Math_fround($9*$25)+Math_fround($8*$24))+Math_fround($7*$23);HEAPF32[$1+40>>2]=Math_fround(Math_fround($9*$22)+Math_fround($8*$21))+Math_fround($7*$20);HEAPF32[$1+28>>2]=Math_fround(Math_fround($12*$25)+Math_fround($11*$24))+Math_fround($10*$23);HEAPF32[$1+24>>2]=Math_fround(Math_fround($12*$22)+Math_fround($11*$21))+Math_fround($10*$20);HEAPF32[$1+12>>2]=Math_fround(Math_fround($15*$25)+Math_fround($14*$24))+Math_fround($13*$23);HEAPF32[$1+8>>2]=Math_fround(Math_fround($15*$22)+Math_fround($14*$21))+Math_fround($13*$20);HEAPF32[$1+60>>2]=$30+Math_fround(Math_fround(Math_fround($9*$19)+Math_fround($8*$18))+Math_fround($7*$6));HEAPF32[$1+56>>2]=$31+Math_fround(Math_fround(Math_fround($12*$19)+Math_fround($11*$18))+Math_fround($10*$6));HEAPF32[$1+52>>2]=$32+Math_fround(Math_fround(Math_fround($15*$19)+Math_fround($14*$18))+Math_fround($13*$6));$2=HEAP32[$1+192>>2];HEAP32[$1+192>>2]=$17;$17=HEAP32[HEAP32[$0+20>>2]+($5<<2)>>2];$6=Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$17>>2]+12>>2]]($17,$1,$33,$3,$4));HEAP32[$1+64>>2]=$34;HEAPF32[$1+60>>2]=$30;HEAPF32[$1+56>>2]=$31;HEAPF32[$1+52>>2]=$32;HEAP32[$1+48>>2]=$35;HEAPF32[$1+44>>2]=$7;HEAPF32[$1+40>>2]=$8;HEAPF32[$1+36>>2]=$9;HEAP32[$1+32>>2]=$36;HEAPF32[$1+28>>2]=$10;HEAPF32[$1+24>>2]=$11;HEAPF32[$1+20>>2]=$12;HEAP32[$1+16>>2]=$37;HEAPF32[$1+12>>2]=$13;HEAPF32[$1+8>>2]=$14;HEAPF32[$1+4>>2]=$15;HEAP32[$1+192>>2]=$2;$16=$6<$16?$6:$16;$5=$5+1|0;if(($29|0)!=($5|0)){continue}break}return Math_fround($16)}function dmHttpCache__End_28dmHttpCache__Cache__2c_20dmHttpCache__CacheCreator__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0;$3=global$0-1248|0;global$0=$3;$9=HEAP32[$0+48>>2];dmMutex__Lock_28dmMutex__Mutex__29($9);label$1:{label$2:{$2=HEAP32[$1+4>>2];label$3:{label$4:{label$5:{label$6:{if(!(!$2|!HEAP32[$1>>2])){$10=HEAP32[$1+40>>2];$11=HEAP32[$1+44>>2];fclose($2);HEAP32[$1+4>>2]=0;$2=HEAP32[$0+20>>2];label$8:{label$9:{if(!$2){break label$9}$12=$0+16|0;$7=HEAP32[$1+48>>2];$8=HEAP32[$1+52>>2];$2=HEAP32[HEAP32[$12>>2]+(__wasm_i64_urem($7,$8,$2)<<2)>>2];if(($2|0)==-1){break label$9}$5=HEAP32[$0+24>>2];while(1){$4=$5+Math_imul($2,136)|0;if(($7|0)==HEAP32[$4>>2]&($8|0)==HEAP32[$4+4>>2]){break label$8}$2=HEAP32[$4+128>>2];if(($2|0)!=-1){continue}break}}__assert_fail(148580,148511,573,148576);abort()}if(HEAP8[$1+58|0]&1){break label$4}dmHttpCache__ContentFilePath_28dmHttpCache__Cache__2c_20unsigned_20long_20long_2c_20char__2c_20int_29(HEAP32[$0>>2],$10,$11,$3+224|0);label$11:{if(!stat($3+224|0,$3+136|0)){if(!dmSys__Unlink_28char_20const__29($3+224|0)){break label$11}HEAP32[$3+16>>2]=$3+224;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,147820,148586,$3+16|0);$2=HEAP32[$1+4>>2];if($2){fclose($2)}break label$4}$4=strrchr($3+224|0,47);$6=HEAPU8[$4|0];HEAP8[$4|0]=0;label$14:{if(!stat($3+224|0,$3+48|0)){break label$14}if(!dmSys__Mkdir_28char_20const__2c_20unsigned_20int_29($3+224|0)){break label$14}HEAP32[$3+32>>2]=$3+224;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,147820,148618,$3+32|0);$2=HEAP32[$1+4>>2];if($2){fclose($2)}break label$4}HEAP8[$4|0]=$6}$4=$5+Math_imul($2,136)|0;$6=HEAPU16[$4+120>>1];if(!($6&256)){break label$6}if(($10|0)!=HEAP32[$4+80>>2]|($11|0)!=HEAP32[$4+84>>2]){break label$5}HEAP16[$4+120>>1]=$6&65279;$2=$5+Math_imul($2,136)|0;HEAP32[$2+104>>2]=dmHashFinal64($1+8|0);HEAP32[$2+108>>2]=i64toi32_i32$HIGH_BITS;if(rename(HEAP32[$1>>2],$3+224|0)){$2=strerror(HEAP32[310273]);$5=HEAP32[$1>>2];HEAP32[$3+12>>2]=HEAP32[310273];HEAP32[$3+8>>2]=$2;HEAP32[$3>>2]=$5;HEAP32[$3+4>>2]=$3+224;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,147820,148719,$3);$2=HEAP32[$1+4>>2];if($2){fclose($2)}break label$4}$2=HEAP32[$1+4>>2];if($2){fclose($2)}$2=HEAP32[$1>>2];if($2){dmSys__Unlink_28char_20const__29($2);dlfree(HEAP32[$1>>2])}$5=HEAP32[$0+52>>2];if(!$5){break label$2}$2=HEAPU16[$0+58>>1];if(!$2|$2>>>0>HEAPU16[$0+56>>1]){break label$1}$4=HEAPU16[$1+56>>1];$2=$2+ -1|0;HEAP16[$0+58>>1]=$2;HEAP16[$5+(($2&65535)<<1)>>1]=$4;HEAP16[$1+56>>1]=65535;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP8[$0+88|0]=1;break label$3}__assert_fail(148460,148511,565,148576);abort()}__assert_fail(148650,148511,619,148576);abort()}__assert_fail(148669,148511,620,148576);abort()}$2=HEAP32[$1>>2];if($2){dmSys__Unlink_28char_20const__29($2);dlfree(HEAP32[$1>>2])}$5=HEAP32[$0+52>>2];if(!$5){break label$2}$2=HEAPU16[$0+58>>1];if(!$2|$2>>>0>HEAPU16[$0+56>>1]){break label$1}$4=HEAPU16[$1+56>>1];$6=$0;$0=$2+ -1|0;HEAP16[$6+58>>1]=$0;HEAP16[$5+(($0&65535)<<1)>>1]=$4;HEAP16[$1+56>>1]=65535;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;dmHashTable_unsigned_20long_20long_2c_20dmHttpCache__Entry___Erase_28unsigned_20long_20long_29($12,$7,$8)}dmMutex__Unlock_28dmMutex__Mutex__29($9);global$0=$3+1248|0;return}__assert_fail(149415,149152,137,149446);abort()}__assert_fail(149451,149152,138,149446);abort()}function dmGameSystem__CompModelSetProperty_28dmGameObject__ComponentSetPropertyParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0;$5=global$0-48|0;global$0=$5;$1=HEAP32[$0+4>>2];$2=HEAP32[$1+16>>2];label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{$3=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$1+20>>2]-$2>>3>>>0>$3>>>0){$4=HEAP32[$1+4>>2];$1=HEAP32[$1>>2];$2=HEAP32[$2+($3<<3)>>2];if($4-$1>>2>>>0<=$2>>>0){break label$1}$2=HEAP32[$1+($2<<2)>>2];$3=HEAP32[$0+16>>2];$4=HEAP32[$0+20>>2];if(($3|0)==HEAP32[146366]&($4|0)==HEAP32[146367]){$1=-4;if(HEAP32[$0+32>>2]!=1){break label$2}$1=0;if((dmRig__SetMesh_28dmRig__RigInstance__2c_20unsigned_20long_20long_29(HEAP32[$2+132>>2],HEAP32[$0+40>>2],HEAP32[$0+44>>2])|0)!=1){break label$2}HEAP32[$5>>2]=dmHashReverseSafe64(HEAP32[$0+40>>2],HEAP32[$0+44>>2]);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,46247,$5);$1=-8;break label$2}if(($3|0)==HEAP32[146370]&($4|0)==HEAP32[146371]){$1=-4;if(HEAP32[$0+32>>2]){break label$2}$1=0;if((dmRig__SetCursor_28dmRig__RigInstance__2c_20float_2c_20bool_29(HEAP32[$2+132>>2],Math_fround(HEAPF64[$0+40>>3]))|0)!=1){break label$2}HEAPF64[$5+16>>3]=HEAPF64[$0+40>>3];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,46286,$5+16|0);$1=-8;break label$2}if(($3|0)==HEAP32[146372]&($4|0)==HEAP32[146373]){$1=-4;if(HEAP32[$0+32>>2]){break label$2}$1=0;if((dmRig__SetPlaybackRate_28dmRig__RigInstance__2c_20float_29(HEAP32[$2+132>>2],Math_fround(HEAPF64[$0+40>>3]))|0)!=1){break label$2}HEAPF64[$5+32>>3]=HEAPF64[$0+40>>3];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,46324,$5+32|0);$1=-8;break label$2}if(HEAP32[146344]==($3|0)&HEAP32[146345]==($4|0)){break label$6}$1=0;if(HEAP32[146348]==($3|0)&HEAP32[146349]==($4|0)){break label$3}$1=1;if(HEAP32[146350]==($3|0)&HEAP32[146351]==($4|0)){break label$3}$1=2;if(HEAP32[146352]==($3|0)&HEAP32[146353]==($4|0)){break label$3}$1=3;if(HEAP32[146354]==($3|0)&HEAP32[146355]==($4|0)){break label$3}$1=4;if(HEAP32[146356]==($3|0)&HEAP32[146357]==($4|0)){break label$3}$1=5;if(HEAP32[146358]==($3|0)&HEAP32[146359]==($4|0)){break label$3}$1=6;if(HEAP32[146360]==($3|0)&HEAP32[146361]==($4|0)){break label$3}$1=7;if(HEAP32[146362]==($3|0)&HEAP32[146363]==($4|0)){break label$3}$1=HEAP32[$2+992>>2];if(!$1){break label$5}break label$4}break label$1}$1=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29(HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2],$0+32|0,HEAP32[146326],HEAP32[146327],$2+992|0);$0=HEAPU8[$2+1014|0];HEAP8[$2+1014|0]=($1?$0&8:8)|$0&247;break label$2}$1=HEAP32[HEAP32[$2+128>>2]+8>>2]}$1=dmGameSystem__SetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20void_20_28__29_28void__2c_20unsigned_20long_20long_2c_20unsigned_20int__2c_20dmGameObject__PropertyVar_20const__29_2c_20void__29($1,$3,$4,$0+32|0,473,$2);break label$2}$1=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29(HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2],$0+32|0,HEAP32[146334],HEAP32[146335],($2+($1<<2)|0)+960|0);$0=HEAPU8[$2+1014|0];HEAP8[$2+1014|0]=($1?$0&8:8)|$0&247}global$0=$5+48|0;return $1|0}__assert_fail(46554,46388,430,46565);abort()}function void_20std____2____stable_sort_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0;label$1:{if($3>>>0<=2){if($3-2){break label$1}$2=HEAP32[HEAP32[$2>>2]+232>>2];$1=$1+ -4|0;$3=HEAP32[$1>>2];$4=HEAP32[$0>>2];if(HEAPU32[($2+($3<<4)|0)+8>>2]<=HEAPU32[($2+($4<<4)|0)+8>>2]){break label$1}HEAP32[$0>>2]=$3;HEAP32[$1>>2]=$4;return}if(($3|0)<=128){if(($0|0)==($1|0)){break label$1}$3=$0+4|0;if(($3|0)==($1|0)){break label$1}$6=HEAP32[$2>>2];while(1){$5=HEAP32[$3>>2];$4=$0;label$5:{if(($4|0)==($3|0)){break label$5}$7=HEAP32[$6+232>>2];$8=$7+($5<<4)|0;$4=$3;while(1){$2=$4+ -4|0;$9=HEAP32[$2>>2];if(HEAPU32[$8+8>>2]<=HEAPU32[($7+($9<<4)|0)+8>>2]){break label$5}HEAP32[$4>>2]=$9;$4=$2;if(($4|0)!=($0|0)){continue}break}$4=$0}HEAP32[$4>>2]=$5;$3=$3+4|0;if(($3|0)!=($1|0)){continue}break}break label$1}$6=$3>>>1|0;$8=$6<<2;$7=$8+$0|0;label$7:{if(($3|0)<=($5|0)){void_20std____2____stable_sort_move_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($0,$7,$2,$6,$4);$5=$1;$1=$4+$8|0;void_20std____2____stable_sort_move_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($7,$5,$2,$3-$6|0,$1);$5=($3<<2)+$4|0;$2=HEAP32[$2>>2];$3=$1;while(1){if(($3|0)==($5|0)){if(($1|0)==($4|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$4>>2];$0=$0+4|0;$4=$4+4|0;if(($1|0)!=($4|0)){continue}break}break label$1}$7=HEAP32[$2+232>>2];$6=HEAP32[$3>>2];$8=HEAP32[$4>>2];label$12:{if(HEAPU32[($7+($6<<4)|0)+8>>2]>HEAPU32[($7+($8<<4)|0)+8>>2]){HEAP32[$0>>2]=$6;$3=$3+4|0;break label$12}HEAP32[$0>>2]=$8;$4=$4+4|0}$0=$0+4|0;if(($1|0)!=($4|0)){continue}break}break label$7}void_20std____2____stable_sort_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$2,$6,$4,$5);$3=$3-$6|0;void_20std____2____stable_sort_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($7,$1,$2,$3,$4,$5);void_20std____2____inplace_merge_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$1,$2,$6,$3,$4,$5);break label$1}if(($3|0)==($5|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$3>>2];$0=$0+4|0;$3=$3+4|0;if(($5|0)!=($3|0)){continue}break}}}function b2ContactSolver__SolveTOIPositionConstraints_28int_2c_20int_29($0,$1,$2){var $3=0,$4=0,$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=0,$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=0,$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0),$36=Math_fround(0);$3=global$0+ -64|0;global$0=$3;if(HEAP32[$0+48>>2]>=1){while(1){$6=HEAP32[$0+36>>2]+Math_imul($23,88)|0;$27=HEAP32[$6+84>>2];$28=HEAPF32[$6+56>>2];$29=HEAPF32[$6+48>>2];$13=HEAP32[$6+36>>2];$30=HEAPF32[$6+60>>2];$31=HEAPF32[$6+52>>2];$10=HEAP32[$6+32>>2];label$4:{if(($10|0)!=($1|0)){$24=Math_fround(0);$14=Math_fround(0);if(($2|0)!=($10|0)){break label$4}}$24=HEAPF32[$6+64>>2];$14=HEAPF32[$6+40>>2]}$4=HEAP32[$0+24>>2];$13=Math_imul($13,12);$8=$4+$13|0;$15=HEAPF32[$8+8>>2];$16=HEAPF32[$8+4>>2];$17=HEAPF32[$8>>2];$10=Math_imul($10,12);$8=$10+$4|0;$18=HEAPF32[$8+8>>2];$19=HEAPF32[$8+4>>2];$20=HEAPF32[$8>>2];if(($27|0)>=1){$32=HEAPF32[$6+68>>2];$25=HEAPF32[$6+44>>2];$35=Math_fround($14+$25);$4=0;while(1){$5=cosf($18);HEAPF32[$3+60>>2]=$5;$7=sinf($18);HEAPF32[$3+56>>2]=$7;$11=cosf($15);HEAPF32[$3+44>>2]=$11;$12=sinf($15);HEAPF32[$3+40>>2]=$12;HEAPF32[$3+52>>2]=$19-Math_fround(Math_fround($29*$7)+Math_fround($31*$5));HEAPF32[$3+48>>2]=$20-Math_fround(Math_fround($29*$5)-Math_fround($31*$7));HEAPF32[$3+36>>2]=$16-Math_fround(Math_fround($28*$12)+Math_fround($30*$11));HEAPF32[$3+32>>2]=$17-Math_fround(Math_fround($28*$11)-Math_fround($30*$12));b2PositionSolverManifold__Initialize_28b2ContactPositionConstraint__2c_20b2Transform_20const__2c_20b2Transform_20const__2c_20int_29($3+8|0,$6,$3+48|0,$3+32|0,$4);$5=Math_fround(0);$7=HEAPF32[$3+24>>2];$8=$26<$7;$11=HEAPF32[$3+12>>2];$21=HEAPF32[$3+16>>2];$33=Math_fround($21-$17);$12=HEAPF32[$3+8>>2];$22=HEAPF32[$3+20>>2];$34=Math_fround($22-$16);$9=Math_fround(Math_fround($11*$33)-Math_fround($12*$34));$36=Math_fround($9*Math_fround($32*$9));$21=Math_fround($21-$20);$22=Math_fround($22-$19);$9=Math_fround(Math_fround($11*$21)-Math_fround($12*$22));$9=Math_fround($36+Math_fround($35+Math_fround($9*Math_fround($24*$9))));if(!!($9>Math_fround(0))){$5=Math_fround(Math_fround($7+Math_fround(.004999999888241291))*Math_fround(.75));$5=Math_fround(Math_fround(-Math_fround(Math_max($5>2]}$4=$4+$10|0;HEAPF32[$4+4>>2]=$19;HEAPF32[$4>>2]=$20;$4=HEAP32[$0+24>>2];HEAPF32[($4+$10|0)+8>>2]=$18;$4=$4+$13|0;HEAPF32[$4+4>>2]=$16;HEAPF32[$4>>2]=$17;HEAPF32[($13+HEAP32[$0+24>>2]|0)+8>>2]=$15;$23=$23+1|0;if(($23|0)>2]){continue}break}}global$0=$3- -64|0;return $26>=Math_fround(-.007499999832361937)}function void_20std____2____insertion_sort_3_bool_20_28___29_28dmRender__Tag_20const__2c_20dmRender__Tag_20const__29_2c_20dmRender__Tag___28dmRender__Tag__2c_20dmRender__Tag__2c_20bool_20_28___29_28dmRender__Tag_20const__2c_20dmRender__Tag_20const__29_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0;$5=global$0-16|0;global$0=$5;$3=$0+16|0;$7=FUNCTION_TABLE[HEAP32[$2>>2]]($3,$0)|0;$6=$0+32|0;$4=FUNCTION_TABLE[HEAP32[$2>>2]]($6,$3)|0;label$1:{if(!$7){if(!$4){break label$1}$4=HEAP32[$3+12>>2];HEAP32[$5+8>>2]=HEAP32[$3+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$3+4>>2];HEAP32[$5>>2]=HEAP32[$3>>2];HEAP32[$5+4>>2]=$4;$4=$6+8|0;$7=HEAP32[$4+4>>2];HEAP32[$3+8>>2]=HEAP32[$4>>2];HEAP32[$3+12>>2]=$7;$4=HEAP32[$6+4>>2];HEAP32[$3>>2]=HEAP32[$6>>2];HEAP32[$3+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$6+8>>2]=HEAP32[$5+8>>2];HEAP32[$6+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$6>>2]=HEAP32[$5>>2];HEAP32[$6+4>>2]=$4;if(!FUNCTION_TABLE[HEAP32[$2>>2]]($3,$0)){break label$1}$4=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$3+12>>2];HEAP32[$0+8>>2]=HEAP32[$3+8>>2];HEAP32[$0+12>>2]=$4;$4=HEAP32[$3+4>>2];HEAP32[$0>>2]=HEAP32[$3>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$3+8>>2]=HEAP32[$5+8>>2];HEAP32[$3+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$3>>2]=HEAP32[$5>>2];HEAP32[$3+4>>2]=$4;break label$1}if($4){$3=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$3;$3=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$3;$3=$6+8|0;$4=HEAP32[$3+4>>2];HEAP32[$0+8>>2]=HEAP32[$3>>2];HEAP32[$0+12>>2]=$4;$3=HEAP32[$6+4>>2];HEAP32[$0>>2]=HEAP32[$6>>2];HEAP32[$0+4>>2]=$3;$3=HEAP32[$5+12>>2];HEAP32[$6+8>>2]=HEAP32[$5+8>>2];HEAP32[$6+12>>2]=$3;$3=HEAP32[$5+4>>2];HEAP32[$6>>2]=HEAP32[$5>>2];HEAP32[$6+4>>2]=$3;break label$1}$4=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$3+12>>2];HEAP32[$0+8>>2]=HEAP32[$3+8>>2];HEAP32[$0+12>>2]=$4;$4=HEAP32[$3+4>>2];HEAP32[$0>>2]=HEAP32[$3>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$3+8>>2]=HEAP32[$5+8>>2];HEAP32[$3+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$3>>2]=HEAP32[$5>>2];HEAP32[$3+4>>2]=$4;if(!FUNCTION_TABLE[HEAP32[$2>>2]]($6,$3)){break label$1}$4=HEAP32[$3+12>>2];HEAP32[$5+8>>2]=HEAP32[$3+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$3+4>>2];HEAP32[$5>>2]=HEAP32[$3>>2];HEAP32[$5+4>>2]=$4;$4=$6+8|0;$7=HEAP32[$4+4>>2];HEAP32[$3+8>>2]=HEAP32[$4>>2];HEAP32[$3+12>>2]=$7;$4=HEAP32[$6+4>>2];HEAP32[$3>>2]=HEAP32[$6>>2];HEAP32[$3+4>>2]=$4;$3=HEAP32[$5+12>>2];HEAP32[$6+8>>2]=HEAP32[$5+8>>2];HEAP32[$6+12>>2]=$3;$3=HEAP32[$5+4>>2];HEAP32[$6>>2]=HEAP32[$5>>2];HEAP32[$6+4>>2]=$3}$3=$0+48|0;if(($3|0)!=($1|0)){while(1){$4=$3;if(FUNCTION_TABLE[HEAP32[$2>>2]]($3,$6)){$7=$4;$3=HEAP32[$4+12>>2];HEAP32[$5+8>>2]=HEAP32[$4+8>>2];HEAP32[$5+12>>2]=$3;$3=HEAP32[$4+4>>2];HEAP32[$5>>2]=HEAP32[$4>>2];HEAP32[$5+4>>2]=$3;while(1){label$8:{$3=$6;$6=HEAP32[$3+4>>2];HEAP32[$7>>2]=HEAP32[$3>>2];HEAP32[$7+4>>2]=$6;$6=HEAP32[$3+12>>2];HEAP32[$7+8>>2]=HEAP32[$3+8>>2];HEAP32[$7+12>>2]=$6;if(($0|0)==($3|0)){$3=$0;break label$8}$7=$3;$6=$3+ -16|0;if(FUNCTION_TABLE[HEAP32[$2>>2]]($5,$6)){continue}}break}$6=HEAP32[$5+4>>2];HEAP32[$3>>2]=HEAP32[$5>>2];HEAP32[$3+4>>2]=$6;$6=HEAP32[$5+12>>2];HEAP32[$3+8>>2]=HEAP32[$5+8>>2];HEAP32[$3+12>>2]=$6}$6=$4;$3=$4+16|0;if(($3|0)!=($1|0)){continue}break}}global$0=$5+16|0}function __rem_pio2($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$5=global$0-48|0;global$0=$5;wasm2js_scratch_store_f64(+$0);$3=wasm2js_scratch_load_i32(1)|0;$8=wasm2js_scratch_load_i32(0)|0;label$1:{label$2:{$4=$3;$3=$4;$6=$4&2147483647;label$3:{if($6>>>0<=1074752122){if(($3&1048575)==598523){break label$3}if($6>>>0<=1073928572){if(($4|0)>0?1:($4|0)>=0?$8>>>0<0?0:1:0){$0=$0+ -1.5707963267341256;$2=$0+ -6.077100506506192e-11;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+ -6.077100506506192e-11;$3=1;break label$1}$0=$0+1.5707963267341256;$2=$0+6.077100506506192e-11;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+6.077100506506192e-11;$3=-1;break label$1}if(($4|0)>0?1:($4|0)>=0?$8>>>0<0?0:1:0){$0=$0+ -3.1415926534682512;$2=$0+ -1.2154201013012384e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+ -1.2154201013012384e-10;$3=2;break label$1}$0=$0+3.1415926534682512;$2=$0+1.2154201013012384e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+1.2154201013012384e-10;$3=-2;break label$1}if($6>>>0<=1075594811){if($6>>>0<=1075183036){if(($6|0)==1074977148){break label$3}if(($4|0)>0?1:($4|0)>=0?$8>>>0<0?0:1:0){$0=$0+ -4.712388980202377;$2=$0+ -1.8231301519518578e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+ -1.8231301519518578e-10;$3=3;break label$1}$0=$0+4.712388980202377;$2=$0+1.8231301519518578e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+1.8231301519518578e-10;$3=-3;break label$1}if(($6|0)==1075388923){break label$3}if(($4|0)>0?1:($4|0)>=0?$8>>>0<0?0:1:0){$0=$0+ -6.2831853069365025;$2=$0+ -2.430840202602477e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+ -2.430840202602477e-10;$3=4;break label$1}$0=$0+6.2831853069365025;$2=$0+2.430840202602477e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+2.430840202602477e-10;$3=-4;break label$1}if($6>>>0>1094263290){break label$2}}$9=$0*.6366197723675814+6755399441055744+ -6755399441055744;$2=$0+$9*-1.5707963267341256;$7=$9*6.077100506506192e-11;$0=$2-$7;HEAPF64[$1>>3]=$0;$4=$6>>>20|0;wasm2js_scratch_store_f64(+$0);$3=wasm2js_scratch_load_i32(1)|0;wasm2js_scratch_load_i32(0)|0;$8=($4-($3>>>20&2047)|0)<17;if(Math_abs($9)<2147483648){$3=~~$9}else{$3=-2147483648}label$14:{if($8){break label$14}$7=$2;$0=$9*6.077100506303966e-11;$2=$2-$0;$7=$9*2.0222662487959506e-21-($7-$2-$0);$0=$2-$7;HEAPF64[$1>>3]=$0;$10=$4;wasm2js_scratch_store_f64(+$0);$4=wasm2js_scratch_load_i32(1)|0;wasm2js_scratch_load_i32(0)|0;if(($10-($4>>>20&2047)|0)<50){break label$14}$7=$2;$0=$9*2.0222662487111665e-21;$2=$2-$0;$7=$9*8.4784276603689e-32-($7-$2-$0);$0=$2-$7;HEAPF64[$1>>3]=$0}HEAPF64[$1+8>>3]=$2-$0-$7;break label$1}if($6>>>0>=2146435072){$0=$0-$0;HEAPF64[$1>>3]=$0;HEAPF64[$1+8>>3]=$0;$3=0;break label$1}$3=$4&1048575|1096810496;wasm2js_scratch_store_i32(0,$8|0);wasm2js_scratch_store_i32(1,$3|0);$0=+wasm2js_scratch_load_f64();$3=0;while(1){$10=$3;$11=($5+16|0)+($3<<3)|0;if(Math_abs($0)<2147483648){$3=~~$0}else{$3=-2147483648}$2=+($3|0);HEAPF64[$11>>3]=$2;$0=($0-$2)*16777216;$3=1;if(!$10){continue}break}HEAPF64[$5+32>>3]=$0;label$20:{if($0!=0){$3=2;break label$20}$10=1;while(1){$3=$10;$10=$3+ -1|0;if(HEAPF64[($5+16|0)+($3<<3)>>3]==0){continue}break}}$3=__rem_pio2_large($5+16|0,$5,($6>>>20|0)+ -1046|0,$3+1|0,1);$0=HEAPF64[$5>>3];if(($4|0)<-1?1:($4|0)<=-1?$8>>>0>4294967295?0:1:0){HEAPF64[$1>>3]=-$0;HEAPF64[$1+8>>3]=-HEAPF64[$5+8>>3];$3=0-$3|0;break label$1}HEAPF64[$1>>3]=$0;$4=HEAP32[$5+12>>2];HEAP32[$1+8>>2]=HEAP32[$5+8>>2];HEAP32[$1+12>>2]=$4}global$0=$5+48|0;return $3}function dmGameSystem__CompModelNewWorld_28dmGameObject__ComponentNewWorldParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$3=global$0-96|0;global$0=$3;$6=HEAP32[$0>>2];$4=HEAP32[$6>>2];$1=memset(operator_20new_28unsigned_20long_29(112),0,112);HEAP32[$1+52>>2]=0;HEAP32[$1+56>>2]=0;HEAP32[$1+32>>2]=-1;HEAP32[$1+60>>2]=0;HEAP32[$1+64>>2]=0;HEAP32[$1+80>>2]=0;HEAP32[$1+84>>2]=0;HEAP32[$1+88>>2]=0;HEAP32[$1+92>>2]=0;HEAP32[$3+88>>2]=$1+96;HEAP32[$3+92>>2]=HEAP32[$6+8>>2];label$1:{$5=dmRig__NewContext_28dmRig__NewContextParams_20const__29($3+88|0);label$2:{if($5){HEAP32[$3>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(5,45822,45830,$3);$5=-1e3;break label$2}dmObjectPool_dmGameSystem__ModelComponent____SetCapacity_28unsigned_20int_29($1,HEAP32[$6+8>>2]);if(HEAP8[$1+64|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$6+8>>2],736,$1+52|0,$1+60|0,$1+56|0);HEAP32[$3+72>>2]=HEAP32[131842];$2=HEAP32[131841];$5=$3- -64|0;HEAP32[$5>>2]=HEAP32[131840];HEAP32[$5+4>>2]=$2;$5=HEAP32[131839];HEAP32[$3+56>>2]=HEAP32[131838];HEAP32[$3+60>>2]=$5;$5=HEAP32[131837];HEAP32[$3+48>>2]=HEAP32[131836];HEAP32[$3+52>>2]=$5;$5=HEAP32[131835];HEAP32[$3+40>>2]=HEAP32[131834];HEAP32[$3+44>>2]=$5;$5=HEAP32[131833];HEAP32[$3+32>>2]=HEAP32[131832];HEAP32[$3+36>>2]=$5;$5=HEAP32[131831];HEAP32[$3+24>>2]=HEAP32[131830];HEAP32[$3+28>>2]=$5;$5=HEAP32[131829];HEAP32[$3+16>>2]=HEAP32[131828];HEAP32[$3+20>>2]=$5;$4=HEAP32[$4+4016>>2];HEAP32[$1+68>>2]=FUNCTION_TABLE[HEAP32[147570]]($4,$3+16|0,3);HEAP32[$1+100>>2]=FUNCTION_TABLE[HEAP32[147561]]($4);HEAP32[$1+72>>2]=operator_20new_28unsigned_20long_29(64);$2=operator_20new_28unsigned_20long_29(260);HEAP32[$2>>2]=16;$5=0;HEAP32[$1+76>>2]=memset($2+4|0,0,256);$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+4>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+8>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+12>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+16>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+20>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+24>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+28>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+32>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+36>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+40>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+44>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+48>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+52>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+56>>2]=$2;$4=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+60>>2]=$4;HEAP32[HEAP32[$0+12>>2]>>2]=$1;dmResource__RegisterResourceReloadedCallback_28dmResource__SResourceFactory__2c_20void_20_28__29_28dmResource__ResourceReloadedParams_20const__29_2c_20void__29(HEAP32[$6+4>>2],469,$1)}global$0=$3+96|0;return $5|0}__assert_fail(46467,46388,444,46542);abort()}function dmGameObject__Script_Set_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$1=global$0-272|0;global$0=$1;dmScript__GetInstance_28lua_State__29($0);$2=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[145531],21457);lua_settop($0,-2);$3=HEAP32[$2+4>>2];HEAP32[$1+264>>2]=0;HEAP32[$1+268>>2]=0;HEAP32[$1+256>>2]=0;HEAP32[$1+260>>2]=0;HEAP32[$1+248>>2]=0;HEAP32[$1+252>>2]=0;HEAP32[$1+240>>2]=0;HEAP32[$1+244>>2]=0;dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29($0,$1+240|0);HEAP32[$1+232>>2]=0;HEAP32[$1+236>>2]=0;HEAP32[$1+224>>2]=0;HEAP32[$1+228>>2]=0;HEAP32[$1+216>>2]=0;HEAP32[$1+220>>2]=0;HEAP32[$1+208>>2]=0;HEAP32[$1+212>>2]=0;dmScript__ResolveURL_28lua_State__2c_20int_2c_20dmMessage__URL__2c_20dmMessage__URL__29($0,1,$1+208|0,$1+240|0);$2=HEAP32[HEAP32[HEAP32[$2+4>>2]+80>>2]+8>>2];label$2:{if(!$2){break label$2}$2=HEAP32[$2>>2];if(!$2){break label$2}$4=HEAP32[$2+4224>>2];$5=HEAP32[$2+4228>>2]}if(($4|0)!=HEAP32[$1+208>>2]|($5|0)!=HEAP32[$1+212>>2]){luaL_error($0,18682,0)}label$4:{if(lua_isstring($0,2)){$4=dmHashString64(lua_tolstring($0,2,0));$5=i64toi32_i32$HIGH_BITS;break label$4}$4=dmScript__CheckHash_28lua_State__2c_20int_29($0,2);$5=i64toi32_i32$HIGH_BITS}$2=$1+168|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;$6=dmGameObject__GetInstanceFromIdentifier_28dmGameObject__CollectionHandle__2c_20unsigned_20long_20long_29(HEAP32[HEAP32[$3+80>>2]+8>>2],HEAP32[$1+224>>2],HEAP32[$1+228>>2]);label$6:{if(!$6){HEAP32[$1>>2]=dmHashReverseSafe64(HEAP32[$1+224>>2],HEAP32[$1+228>>2]);$3=luaL_error($0,18743,$1);break label$6}$3=dmGameObject__LuaToVar_28lua_State__2c_20int_2c_20dmGameObject__PropertyVar__29($0,3,$2);if(!$3){$3=dmGameObject__SetProperty_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__29($6,HEAP32[$1+232>>2],HEAP32[$1+236>>2],$4,$5,$2)}label$9:{$2=$3+9|0;if($2>>>0>9){break label$9}label$10:{switch($2-1|0){case 7:label$15:{if(!lua_type($0,1)){$3=18785;break label$15}lua_pushlstring($0,18789,0);lua_pushvalue($0,1);lua_concat($0,2);$3=lua_tolstring($0,-1,0);lua_settop($0,-2)}HEAP32[$1+36>>2]=dmHashReverseSafe64($4,$5);HEAP32[$1+32>>2]=$3;$3=luaL_error($0,18555,$1+32|0);break label$6;case 4:case 5:$3=dmGameObject__PropertyDesc__PropertyDesc_28_29($1+88|0);dmGameObject__GetProperty_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__29($6,HEAP32[$1+232>>2],HEAP32[$1+236>>2],$4,$5,$3);$5=dmHashReverseSafe64($4,$5);$6=lua_tolstring($0,1,0);$2=$1;$3=HEAP32[$3+32>>2];$4=21541;label$17:{if($3>>>0>6){break label$17}$4=HEAP32[($3<<2)+523388>>2]}HEAP32[$2+56>>2]=$4;HEAP32[$1+52>>2]=$6;HEAP32[$1+48>>2]=$5;$3=luaL_error($0,18790,$1+48|0);break label$6;case 3:$2=dmHashReverseSafe64(HEAP32[$1+232>>2],HEAP32[$1+236>>2]);HEAP32[$1+68>>2]=lua_tolstring($0,1,0);HEAP32[$1+64>>2]=$2;$3=luaL_error($0,18599,$1- -64|0);break label$6;case 0:$3=luaL_error($0,18829,0);break label$6;case 8:break label$6;case 1:case 2:case 6:break label$9;default:break label$10}}HEAP32[$1+80>>2]=dmHashReverseSafe64($4,$5);$3=luaL_error($0,18876,$1+80|0);break label$6}HEAP32[$1+16>>2]=$3;$3=luaL_error($0,18924,$1+16|0)}global$0=$1+272|0;return $3|0}function VP8ParseProba($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$14=$1+904|0;label$1:{while(1){$12=0;while(1){$5=0;while(1){$6=HEAP32[$0+4>>2];$3=HEAP32[$0+8>>2];label$5:{if(($3|0)>-1){break label$5}$2=HEAP32[$0+12>>2];if(!$2){break label$1}if($2>>>0>2]){$4=HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24);HEAP32[$0+12>>2]=$2+3;$3=$3+24|0;HEAP32[$0+8>>2]=$3;HEAP32[$0>>2]=HEAP32[$0>>2]<<24|($4>>>8&65280|($4<<8&16711680|$4<<24))>>>8;break label$5}VP8LoadFinalBytes($0);$3=HEAP32[$0+8>>2]}$10=0;$4=$0;$7=HEAP32[$0>>2];$9=Math_imul($12,33);$8=Math_imul($13,264);$2=Math_imul($6,HEAPU8[($9+($8+171488|0)|0)+$5|0])>>>8|0;if($7>>>$3>>>0>$2>>>0){$10=1;$2=$2+1|0;HEAP32[$0>>2]=$7-($2<<$3);$2=$6-$2|0}if($2>>>0<=126){HEAP32[$0+8>>2]=$3-HEAPU8[$2+183088|0];$2=HEAPU8[$2+183216|0]}HEAP32[$4+4>>2]=$2;label$11:{if($10){$2=VP8GetValue($0,8);break label$11}$2=HEAPU8[(($8+172544|0)+$9|0)+$5|0]}$10=($1+$8|0)+$9|0;HEAP8[($10+$5|0)+907|0]=$2;$5=$5+1|0;if(($5|0)!=11){continue}break}$5=0;while(1){$7=HEAP32[$0+4>>2];$3=HEAP32[$0+8>>2];label$14:{if(($3|0)>-1){break label$14}$2=HEAP32[$0+12>>2];if(!$2){break label$1}if($2>>>0>=HEAPU32[$0+20>>2]){VP8LoadFinalBytes($0);$3=HEAP32[$0+8>>2];break label$14}$4=HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24);HEAP32[$0+12>>2]=$2+3;$3=$3+24|0;HEAP32[$0+8>>2]=$3;HEAP32[$0>>2]=HEAP32[$0>>2]<<24|($4>>>8&65280|($4<<8&16711680|$4<<24))>>>8}$6=0;$4=$0;$11=HEAP32[$0>>2];$2=Math_imul($7,HEAPU8[(($8+$9|0)+$5|0)+171499|0])>>>8|0;if($11>>>$3>>>0>$2>>>0){$6=1;$2=$2+1|0;HEAP32[$0>>2]=$11-($2<<$3);$2=$7-$2|0}if($2>>>0<=126){HEAP32[$0+8>>2]=$3-HEAPU8[$2+183088|0];$2=HEAPU8[$2+183216|0]}HEAP32[$4+4>>2]=$2;$2=$5+$10|0;label$20:{if($6){$4=VP8GetValue($0,8);break label$20}$4=HEAPU8[(($8+$9|0)+$5|0)+172555|0]}HEAP8[$2+918|0]=$4;$5=$5+1|0;if(($5|0)!=11){continue}break}$5=0;while(1){$7=HEAP32[$0+4>>2];$3=HEAP32[$0+8>>2];label$23:{if(($3|0)>-1){break label$23}$2=HEAP32[$0+12>>2];if(!$2){break label$1}if($2>>>0>=HEAPU32[$0+20>>2]){VP8LoadFinalBytes($0);$3=HEAP32[$0+8>>2];break label$23}$4=HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24);HEAP32[$0+12>>2]=$2+3;$3=$3+24|0;HEAP32[$0+8>>2]=$3;HEAP32[$0>>2]=HEAP32[$0>>2]<<24|($4>>>8&65280|($4<<8&16711680|$4<<24))>>>8}$6=0;$4=$0;$11=HEAP32[$0>>2];$2=Math_imul($7,HEAPU8[(($8+$9|0)+$5|0)+171510|0])>>>8|0;if($11>>>$3>>>0>$2>>>0){$6=1;$2=$2+1|0;HEAP32[$0>>2]=$11-($2<<$3);$2=$7-$2|0}if($2>>>0<=126){HEAP32[$0+8>>2]=$3-HEAPU8[$2+183088|0];$2=HEAPU8[$2+183216|0]}HEAP32[$4+4>>2]=$2;$2=$5+$10|0;label$29:{if($6){$4=VP8GetValue($0,8);break label$29}$4=HEAPU8[(($8+$9|0)+$5|0)+172566|0]}HEAP8[$2+929|0]=$4;$5=$5+1|0;if(($5|0)!=11){continue}break}$12=$12+1|0;if(($12|0)!=8){continue}break}$2=Math_imul($13,68)+$14|0;$3=$8+$14|0;$5=$3+3|0;HEAP32[$2+1124>>2]=$5;HEAP32[$2+1120>>2]=$3+234;$4=$3+201|0;HEAP32[$2+1116>>2]=$4;HEAP32[$2+1112>>2]=$4;HEAP32[$2+1108>>2]=$4;HEAP32[$2+1104>>2]=$4;HEAP32[$2+1100>>2]=$4;HEAP32[$2+1096>>2]=$4;HEAP32[$2+1092>>2]=$4;HEAP32[$2+1088>>2]=$4;HEAP32[$2+1084>>2]=$3+168;HEAP32[$2+1080>>2]=$3+135;HEAP32[$2+1076>>2]=$4;HEAP32[$2+1072>>2]=$3+102;HEAP32[$2+1068>>2]=$3+69;HEAP32[$2+1064>>2]=$3+36;HEAP32[$2+1060>>2]=$5;$13=$13+1|0;if(($13|0)!=4){continue}break}$2=VP8GetValue($0,1);HEAP32[$1+2236>>2]=$2;if($2){HEAP8[$1+2240|0]=VP8GetValue($0,8)}return}__assert_fail(174530,174561,59,174603);abort()} +function dmRender__RenderScript_RenderTarget_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$1=global$0-288|0;global$0=$1;$10=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$2=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;dmScript__GetInstance_28lua_State__29($0);$15=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[148682],105260);lua_settop($0,-2);label$1:{label$2:{if(($2|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){$7=1;$2=lua_type($0,1);$11=FUNCTION_TABLE[HEAP32[147630]](HEAP32[HEAP32[$15+304>>2]+4016>>2])|0;$12=($2|0)==5?1:2;luaL_checktype($0,$12,5);HEAP32[$1+264>>2]=0;HEAP8[$1+268|0]=1;HEAP32[$1+280>>2]=0;HEAP8[$1+284|0]=1;HEAP32[$1+248>>2]=0;HEAP32[$1+240>>2]=0;HEAP32[$1+244>>2]=0;HEAP32[$1+256>>2]=0;HEAP32[$1+260>>2]=0;HEAP8[$1+252|0]=1;HEAP32[$1+272>>2]=0;HEAP32[$1+276>>2]=0;HEAP8[$1+123|0]=0;HEAP8[$1+124|0]=0;HEAP8[$1+125|0]=0;HEAP8[$1+126|0]=0;HEAP8[$1+127|0]=0;HEAP8[$1+128|0]=0;HEAP8[$1+129|0]=0;HEAP8[$1+130|0]=0;HEAP32[$1+176>>2]=0;HEAP32[$1+180>>2]=0;HEAP32[$1+156>>2]=1;HEAP32[$1+148>>2]=2;HEAP32[$1+152>>2]=1;HEAP32[$1+160>>2]=0;HEAP32[$1+164>>2]=0;HEAP8[$1+167|0]=0;HEAP8[$1+168|0]=0;HEAP8[$1+169|0]=0;HEAP8[$1+170|0]=0;HEAP8[$1+171|0]=0;HEAP8[$1+172|0]=0;HEAP8[$1+173|0]=0;HEAP8[$1+174|0]=0;HEAP32[$1+200>>2]=1;HEAP32[$1+192>>2]=2;HEAP32[$1+196>>2]=1;HEAP32[$1+220>>2]=0;HEAP32[$1+224>>2]=0;HEAP32[$1+204>>2]=0;HEAP32[$1+208>>2]=0;HEAP8[$1+211|0]=0;HEAP8[$1+212|0]=0;HEAP8[$1+213|0]=0;HEAP8[$1+214|0]=0;HEAP8[$1+215|0]=0;HEAP8[$1+216|0]=0;HEAP8[$1+217|0]=0;HEAP8[$1+218|0]=0;HEAP32[$1+132>>2]=0;HEAP32[$1+136>>2]=0;HEAP32[$1+112>>2]=1;HEAP32[$1+104>>2]=2;HEAP32[$1+108>>2]=1;HEAP32[$1+96>>2]=3;HEAP32[$1+100>>2]=5;HEAP32[$1+116>>2]=0;HEAP32[$1+120>>2]=0;HEAP32[$1+140>>2]=3;HEAP32[$1+144>>2]=5;HEAP32[$1+184>>2]=3;HEAP32[$1+188>>2]=5;$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;label$4:{label$5:{label$6:{if(lua_next($0,$12)){while(1){$3=luaL_checknumber($0,-2);label$9:{if($3<4294967296&$3>=0){$6=~~$3>>>0;break label$9}$6=0}$9=-1;$2=$6+ -1|0;if($2>>>0<=3){$9=HEAP32[($2<<2)+106728>>2]}luaL_checktype($0,-1,5);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;$2=0;if(!lua_next($0,-2)){break label$2}$16=$6|$16;$4=0;$8=0;while(1){$5=luaL_checklstring($0,-2,0);$13=strncmp($5,101979,6);$14=strncmp($5,101986,5);$5=strncmp($5,101992,6);lua_settop($0,-2);$8=$13?$8:1;$4=$14?$4:1;$2=$5?$2:1;if(lua_next($0,-2)){continue}break}if(!($8&255)){$2=0;break label$2}if(!($4&255)){$2=1;break label$2}if(!($2&255)){$2=2;break label$2}$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;if(lua_next($0,-2)){$4=($1+240|0)+($9<<4)|0;$13=$4|4;$2=($1+96|0)+Math_imul($9,44)|0;$8=$2;$14=$4|6;while(1){$4=luaL_checklstring($0,-2,0);if(!lua_type($0,-1)){HEAP32[$1+36>>2]=$4;HEAP32[$1+32>>2]=101834;$7=luaL_error($0,102038,$1+32|0);break label$1}label$19:{if(!strncmp($4,101979,6)){$5=$2;$3=luaL_checknumber($0,-1);label$21:{if(Math_abs($3)<2147483648){$4=~~$3;break label$21}$4=-2147483648}HEAP32[$5>>2]=$4;if(!(($4|0)==10|($6|0)!=2)){$7=luaL_error($0,102082,0);break label$1}if(($4|0)==11|($6|0)!=4){break label$19}$7=luaL_error($0,102139,0);break label$1}if(!strncmp($4,101986,5)){$4=$8;$3=luaL_checknumber($0,-1);label$25:{if($3<4294967296&$3>=0){$5=~~$3>>>0;break label$25}$5=0}HEAP16[$4+30>>1]=$5;HEAP16[$13>>1]=$5;break label$19}if(!strncmp($4,101992,6)){$4=$2;$3=luaL_checknumber($0,-1);label$28:{if($3<4294967296&$3>=0){$5=~~$3>>>0;break label$28}$5=0}HEAP16[$4+32>>1]=$5;HEAP16[$14>>1]=$5;break label$19}label$30:{if(!strncmp($4,102200,10)){$3=luaL_checknumber($0,-1);if(!(Math_abs($3)<2147483648)){break label$30}HEAP32[$2+4>>2]=~~$3;break label$19}if(!strncmp($4,102211,10)){$3=luaL_checknumber($0,-1);if(Math_abs($3)<2147483648){HEAP32[$2+8>>2]=~~$3;break label$19}HEAP32[$2+8>>2]=-2147483648;break label$19}if(!strncmp($4,102222,6)){$3=luaL_checknumber($0,-1);if(Math_abs($3)<2147483648){HEAP32[$2+12>>2]=~~$3;break label$19}HEAP32[$2+12>>2]=-2147483648;break label$19}if(!strncmp($4,102229,6)){$3=luaL_checknumber($0,-1);if(Math_abs($3)<2147483648){HEAP32[$2+16>>2]=~~$3;break label$19}HEAP32[$2+16>>2]=-2147483648;break label$19}lua_settop($0,-3);if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($10|0)){break label$6}HEAP32[$1+80>>2]=102229;HEAP32[$1+76>>2]=102222;HEAP32[$1+72>>2]=102211;HEAP32[$1+68>>2]=102200;HEAP32[$1- -64>>2]=101992;HEAP32[$1+52>>2]=$4;HEAP32[$1+60>>2]=101986;HEAP32[$1+56>>2]=101979;HEAP32[$1+48>>2]=101834;$7=luaL_error($0,102262,$1+48|0);break label$1}HEAP32[$2+4>>2]=-2147483648}lua_settop($0,-2);if(lua_next($0,-2)){continue}break}}lua_settop($0,-2);$2=($1+240|0)+($9<<4)|0;if(!($11>>>0>=HEAPU16[$2+6>>1]?$11>>>0>=HEAPU16[$2+4>>1]:0)){lua_settop($0,-2);if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($10|0)){break label$5}$8=HEAPU16[($2|4)>>1];$2=$1;$6=$6+ -1|0;$5=105430;label$40:{if($6>>>0>3){break label$40}$5=HEAP32[($6<<2)+546568>>2]}HEAP32[$2+16>>2]=$5;HEAP32[$1+20>>2]=$8;HEAP32[$1+28>>2]=$11;HEAP32[$1+24>>2]=HEAPU16[(($1+240|0)+($9<<4)|0)+6>>1];$7=luaL_error($0,102355,$1+16|0);break label$1}if(lua_next($0,$12)){continue}break}}$2=FUNCTION_TABLE[HEAP32[147611]](HEAP32[HEAP32[$15+304>>2]+4016>>2],$16,$1+240|0,$1+96|0)|0;$6=HEAP32[$0+8>>2];HEAP32[$6+8>>2]=2;HEAP32[$6>>2]=$2;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;if(($10+1|0)!=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$4}break label$1}__assert_fail(101841,101738,722,102236);abort()}__assert_fail(101841,101738,740,102236);abort()}__assert_fail(101713,101738,750,102236);abort()}__assert_fail(101841,101738,227,105233);abort()}HEAP32[$1>>2]=HEAP32[($2<<2)+546112>>2];$7=luaL_error($0,101999,$1)}global$0=$1+288|0;return $7|0}function dmRender__Draw_28dmRender__RenderContext__2c_20dmRender__Predicate__2c_20dmRender__NamedConstantBuffer__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;if(!$0){return}if($1){$12=dmRender__ConvertMaterialTagsToMask_28unsigned_20long_20long__2c_20unsigned_20int_29($1,HEAP32[$1+256>>2])}else{$12=0}$4=HEAP32[$0+4016>>2];$7=HEAP32[$0+4020>>2];if($7){FUNCTION_TABLE[HEAP32[147589]]($4,HEAP32[$7+4>>2])}$1=HEAP32[$0+3696>>2];if(($1|0)!=HEAP32[$0+3700>>2]){$5=$7;while(1){$3=HEAP32[($13<<2)+$1>>2];label$7:{if(!HEAP32[$3+728>>2]|(HEAP32[HEAP32[$3+652>>2]+80>>2]&$12)!=($12|0)){break label$7}label$8:{if($7){break label$8}$1=HEAP32[$3+652>>2];if(($1|0)==($5|0)){break label$8}FUNCTION_TABLE[HEAP32[147589]]($4,HEAP32[$1+4>>2]);$5=$1}dmRender__ApplyMaterialConstants_28dmRender__RenderContext__2c_20dmRender__Material__2c_20dmRender__RenderObject_20const__29($0,$5,$3);dmRender__ApplyRenderObjectConstants_28dmRender__RenderContext__2c_20dmRender__Material__2c_20dmRender__RenderObject_20const__29($0,$7,$3);label$9:{if(!$2){break label$9}$6=HEAP32[$2+4>>2];if(!$6){break label$9}$15=HEAP32[$0+4016>>2];$9=0;while(1){$1=HEAP32[HEAP32[$2>>2]+($9<<2)>>2];if(($1|0)!=-1){while(1){$10=HEAP32[$2+8>>2]+Math_imul($1,48)|0;$1=HEAP32[$5+20>>2];label$13:{if(!$1){break label$13}$14=HEAP32[$10>>2];$8=HEAP32[$10+4>>2];$1=HEAP32[HEAP32[$5+16>>2]+(__wasm_i64_urem($14,$8,$1)<<2)>>2];if(($1|0)==-1){break label$13}$11=$10+16|0;$6=HEAP32[$5+24>>2];while(1){$1=($1<<4)+$6|0;if(($14|0)!=HEAP32[$1>>2]|HEAP32[$1+4>>2]!=($8|0)){$1=HEAP32[$1+12>>2];if(($1|0)!=-1){continue}break label$13}break}FUNCTION_TABLE[HEAP32[147595]]($15,$11,HEAP32[$1+8>>2])}$1=HEAP32[$10+32>>2];if(($1|0)!=-1){continue}break}$6=HEAP32[$2+4>>2]}$9=$9+1|0;if($9>>>0<$6>>>0){continue}break}}$1=HEAPU8[$3+734|0];if($1&1){FUNCTION_TABLE[HEAP32[147601]]($4,HEAP32[$3+696>>2],HEAP32[$3+700>>2]);$1=HEAPU8[$3+734|0]}if($1&2){$6=HEAP32[$0+4016>>2];label$19:{if(!(HEAPU8[$3+723|0]&16)){break label$19}$1=HEAPU8[$0+4032|0];if($1&2){HEAP8[$0+4032|0]=$1&253;break label$19}FUNCTION_TABLE[HEAP32[147606]]($6,255);FUNCTION_TABLE[HEAP32[147554]]($6,4,0,0,0,0,Math_fround(1),0)}$1=HEAP32[$3+720>>2];FUNCTION_TABLE[HEAP32[147602]]($6,($1&134217728)>>>27|0,($1&67108864)>>>26|0,($1&33554432)>>>25|0,($1&16777216)>>>24|0);FUNCTION_TABLE[HEAP32[147606]]($6,HEAPU8[$3+722|0]);$1=HEAP32[$3+720>>2];FUNCTION_TABLE[HEAP32[147607]]($6,HEAP32[$3+704>>2],$1&255,$1>>>8&255);FUNCTION_TABLE[HEAP32[147608]]($6,HEAP32[$3+708>>2],HEAP32[$3+712>>2],HEAP32[$3+716>>2])}$1=HEAP32[$0>>2];$1=$1?$1:HEAP32[$3+656>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,0,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,0,$1)}$1=HEAP32[$0+4>>2];$1=$1?$1:HEAP32[$3+660>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,1,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,1,$1)}$1=HEAP32[$0+8>>2];$1=$1?$1:HEAP32[$3+664>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,2,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,2,$1)}$1=HEAP32[$0+12>>2];$1=$1?$1:HEAP32[$3+668>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,3,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,3,$1)}$1=HEAP32[$0+16>>2];$1=$1?$1:HEAP32[$3+672>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,4,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,4,$1)}$1=HEAP32[$0+20>>2];$1=$1?$1:HEAP32[$3+676>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,5,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,5,$1)}$1=HEAP32[$0+24>>2];$1=$1?$1:HEAP32[$3+680>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,6,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,6,$1)}$1=HEAP32[$0+28>>2];$1=$1?$1:HEAP32[$3+684>>2];if($1){FUNCTION_TABLE[HEAP32[147628]]($4,7,$1);dmRender__ApplyMaterialSampler_28dmRender__RenderContext__2c_20dmRender__Material__2c_20unsigned_20int_2c_20dmGraphics__Texture__29($0,$5,7,$1)}FUNCTION_TABLE[HEAP32[147575]]($4,HEAP32[$3+644>>2],HEAP32[$3+640>>2],HEAP32[$5+4>>2]);$8=HEAP32[$3+728>>2];$11=HEAP32[$3+724>>2];$6=HEAP32[$3+688>>2];$1=HEAP32[$3+648>>2];label$29:{if(!$1){FUNCTION_TABLE[HEAP32[147579]]($4,$6,$11,$8);break label$29}FUNCTION_TABLE[HEAP32[147578]]($4,$6,$11,$8,HEAP32[$3+692>>2],$1)}FUNCTION_TABLE[HEAP32[147576]]($4,HEAP32[$3+644>>2]);$1=HEAP32[$0>>2];$1=$1?$1:HEAP32[$3+656>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,0,$1)}$1=HEAP32[$0+4>>2];$1=$1?$1:HEAP32[$3+660>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,1,$1)}$1=HEAP32[$0+8>>2];$1=$1?$1:HEAP32[$3+664>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,2,$1)}$1=HEAP32[$0+12>>2];$1=$1?$1:HEAP32[$3+668>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,3,$1)}$1=HEAP32[$0+16>>2];$1=$1?$1:HEAP32[$3+672>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,4,$1)}$1=HEAP32[$0+20>>2];$1=$1?$1:HEAP32[$3+676>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,5,$1)}$1=HEAP32[$0+24>>2];$1=$1?$1:HEAP32[$3+680>>2];if($1){FUNCTION_TABLE[HEAP32[147629]]($4,6,$1)}$1=HEAP32[$0+28>>2];$1=$1?$1:HEAP32[$3+684>>2];if(!$1){break label$7}FUNCTION_TABLE[HEAP32[147629]]($4,7,$1)}$13=$13+1|0;$1=HEAP32[$0+3696>>2];if($13>>>0>2]-$1>>2>>>0){continue}break}}}function b2SeparationFunction__FindMinSeparation_28int__2c_20int__2c_20float_29_20const($0,$1,$2,$3){var $4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=0,$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=0,$21=0,$22=Math_fround(0),$23=0,$24=Math_fround(0),$25=Math_fround(0);$8=HEAPF32[$0+48>>2];$5=Math_fround(Math_fround(1)-$3);$17=Math_fround(Math_fround($5*HEAPF32[$0+68>>2])+Math_fround(HEAPF32[$0+72>>2]*$3));$10=cosf($17);$13=HEAPF32[$0+44>>2];$9=sinf($17);$17=HEAPF32[$0+56>>2];$18=HEAPF32[$0- -64>>2];$14=HEAPF32[$0+52>>2];$15=HEAPF32[$0+60>>2];$22=HEAPF32[$0+12>>2];$11=Math_fround(Math_fround($5*HEAPF32[$0+32>>2])+Math_fround(HEAPF32[$0+36>>2]*$3));$7=cosf($11);$6=HEAPF32[$0+8>>2];$11=sinf($11);$4=HEAP32[$0+80>>2];label$1:{if($4>>>0<=2){$17=Math_fround(Math_fround(Math_fround($5*$17)+Math_fround($18*$3))-Math_fround(Math_fround($13*$9)+Math_fround($8*$10)));$18=Math_fround(Math_fround(Math_fround($5*$14)+Math_fround($15*$3))-Math_fround(Math_fround($13*$10)-Math_fround($8*$9)));$8=Math_fround(Math_fround(Math_fround($5*HEAPF32[$0+20>>2])+Math_fround(HEAPF32[$0+28>>2]*$3))-Math_fround(Math_fround($6*$11)+Math_fround($22*$7)));$22=Math_fround(Math_fround(Math_fround($5*HEAPF32[$0+16>>2])+Math_fround(HEAPF32[$0+24>>2]*$3))-Math_fround(Math_fround($6*$7)-Math_fround($22*$11)));label$3:{label$5:{label$6:{switch($4-1|0){default:$5=HEAPF32[$0+92>>2];$13=HEAPF32[$0+96>>2];$19=HEAP32[$0>>2];$12=HEAP32[$19+16>>2];$23=HEAP32[$19+20>>2];if(($23|0)>=2){$6=Math_fround(Math_fround($7*$5)+Math_fround($11*$13));$14=Math_fround(Math_fround($7*$13)-Math_fround($11*$5));$3=Math_fround(Math_fround($6*HEAPF32[$12>>2])+Math_fround($14*HEAPF32[$12+4>>2]));$4=1;while(1){$20=$12+($4<<3)|0;$15=Math_fround(Math_fround($6*HEAPF32[$20>>2])+Math_fround($14*HEAPF32[$20+4>>2]));$20=$15>$3;$3=$20?$15:$3;$21=$20?$4:$21;$4=$4+1|0;if(($23|0)!=($4|0)){continue}break}}HEAP32[$1>>2]=$21;$20=HEAP32[$0+4>>2];$4=HEAP32[$20+16>>2];$23=HEAP32[$20+20>>2];if(($23|0)>=2){$6=Math_fround(Math_fround($9*Math_fround(-$13))-Math_fround($10*$5));$14=Math_fround(Math_fround($9*$5)-Math_fround($10*$13));$3=Math_fround(Math_fround($6*HEAPF32[$4>>2])+Math_fround($14*HEAPF32[$4+4>>2]));$0=1;while(1){$21=$4+($0<<3)|0;$15=Math_fround(Math_fround($6*HEAPF32[$21>>2])+Math_fround($14*HEAPF32[$21+4>>2]));$21=$15>$3;$3=$21?$15:$3;$16=$21?$0:$16;$0=$0+1|0;if(($23|0)!=($0|0)){continue}break}}HEAP32[$2>>2]=$16;$0=HEAP32[$1>>2];if(($0|0)<0|HEAP32[$19+20>>2]<=($0|0)|(($16|0)<0|HEAP32[$20+20>>2]<=($16|0))){break label$1}$3=$8;$0=$12+($0<<3)|0;$8=HEAPF32[$0>>2];$6=HEAPF32[$0+4>>2];$3=Math_fround($3+Math_fround(Math_fround($11*$8)+Math_fround($7*$6)));$6=Math_fround($22+Math_fround(Math_fround($7*$8)-Math_fround($11*$6)));$0=$4+($16<<3)|0;$8=HEAPF32[$0>>2];$7=HEAPF32[$0+4>>2];$18=Math_fround($18+Math_fround(Math_fround($10*$8)-Math_fround($9*$7)));$9=Math_fround($9*$8);$8=Math_fround($10*$7);break label$5;case 0:$6=HEAPF32[$0+88>>2];$3=HEAPF32[$0+96>>2];$14=HEAPF32[$0+84>>2];$5=HEAPF32[$0+92>>2];HEAP32[$1>>2]=-1;$13=Math_fround(Math_fround($11*$5)+Math_fround($7*$3));$5=Math_fround(Math_fround($7*$5)-Math_fround($11*$3));$16=HEAP32[$0+4>>2];$1=HEAP32[$16+16>>2];$19=HEAP32[$16+20>>2];label$13:{if(($19|0)<=1){$4=0;HEAP32[$2>>2]=0;break label$13}$15=Math_fround(Math_fround($9*Math_fround(-$13))-Math_fround($10*$5));$24=Math_fround(Math_fround($9*$5)-Math_fround($10*$13));$3=Math_fround(Math_fround($15*HEAPF32[$1>>2])+Math_fround($24*HEAPF32[$1+4>>2]));$4=0;$0=1;while(1){$12=$1+($0<<3)|0;$25=Math_fround(Math_fround($15*HEAPF32[$12>>2])+Math_fround($24*HEAPF32[$12+4>>2]));$12=$25>$3;$3=$12?$25:$3;$4=$12?$0:$4;$0=$0+1|0;if(($19|0)!=($0|0)){continue}break}HEAP32[$2>>2]=$4;if(($4|0)<0){break label$1}}if(HEAP32[$16+20>>2]<=($4|0)){break label$1}$3=Math_fround($8+Math_fround(Math_fround($11*$14)+Math_fround($7*$6)));$6=Math_fround($22+Math_fround(Math_fround($7*$14)-Math_fround($11*$6)));$0=$1+($4<<3)|0;$8=HEAPF32[$0>>2];$7=HEAPF32[$0+4>>2];$18=Math_fround($18+Math_fround(Math_fround($10*$8)-Math_fround($9*$7)));$9=Math_fround($9*$8);$8=Math_fround($10*$7);break label$5;case 1:break label$6}}$6=HEAPF32[$0+88>>2];$3=HEAPF32[$0+96>>2];$14=HEAPF32[$0+84>>2];$5=HEAPF32[$0+92>>2];HEAP32[$2>>2]=-1;$13=Math_fround(Math_fround($9*$5)+Math_fround($10*$3));$5=Math_fround(Math_fround($10*$5)-Math_fround($9*$3));$16=HEAP32[$0>>2];$2=HEAP32[$16+16>>2];$19=HEAP32[$16+20>>2];label$16:{if(($19|0)<=1){$4=0;HEAP32[$1>>2]=0;break label$16}$15=Math_fround(Math_fround($11*Math_fround(-$13))-Math_fround($7*$5));$24=Math_fround(Math_fround($11*$5)-Math_fround($7*$13));$3=Math_fround(Math_fround($15*HEAPF32[$2>>2])+Math_fround($24*HEAPF32[$2+4>>2]));$4=0;$0=1;while(1){$12=$2+($0<<3)|0;$25=Math_fround(Math_fround($15*HEAPF32[$12>>2])+Math_fround($24*HEAPF32[$12+4>>2]));$12=$25>$3;$3=$12?$25:$3;$4=$12?$0:$4;$0=$0+1|0;if(($19|0)!=($0|0)){continue}break}HEAP32[$1>>2]=$4;if(($4|0)<0){break label$3}}if(HEAP32[$16+20>>2]<=($4|0)){break label$3}$3=Math_fround($17+Math_fround(Math_fround($9*$14)+Math_fround($10*$6)));$6=Math_fround($18+Math_fround(Math_fround($10*$14)-Math_fround($9*$6)));$0=$2+($4<<3)|0;$17=HEAPF32[$0>>2];$10=HEAPF32[$0+4>>2];$18=Math_fround($22+Math_fround(Math_fround($7*$17)-Math_fround($11*$10)));$9=Math_fround($11*$17);$17=$8;$8=Math_fround($7*$10)}return Math_fround(Math_fround($5*Math_fround($18-$6))+Math_fround($13*Math_fround(Math_fround($17+Math_fround($9+$8))-$3)))}break label$1}__assert_fail(97328,97149,183,97334);abort()}__assert_fail(97246,97276,103,97318);abort()}function btSequentialImpulseConstraintSolver__solveSingleIteration_28int_2c_20btCollisionObject___2c_20int_2c_20btPersistentManifold___2c_20int_2c_20btTypedConstraint___2c_20int_2c_20btContactSolverInfo_20const__2c_20btIDebugDraw__2c_20btStackAlloc__29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=Math_fround(0),$12=0,$13=0,$14=Math_fround(0),$15=0;label$1:{if(!(HEAP32[$4+60>>2]&1)|$1&7){break label$1}$12=HEAP32[$0+48>>2];$13=HEAP32[$0+8>>2];if(($13|0)>=1){$1=Math_imul(HEAP32[$0+124>>2],1664525)+1013904223|0;label$3:{if(($13|0)==1){break label$3}$8=HEAP32[$0+76>>2];$6=HEAP32[$8+4>>2];$1=Math_imul($1,1664525)+1013904223|0;$5=$1^$1>>>16;$5=$5>>>8^$5;$5=$5>>>4^$5;$5=$5>>>2^$5;$5=$8+((($5>>>1^$5)&1)<<2)|0;HEAP32[$8+4>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$6;if(($13|0)==2){break label$3}$6=HEAP32[$8+8>>2];$1=Math_imul($1,1664525)+1013904223|0;$5=$1^$1>>>16;$5=$5>>>8^$5;$5=$5>>>4^$5;$5=$8+((($5>>>2^$5)>>>0)%3<<2)|0;HEAP32[$8+8>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$6;if(($13|0)==3){break label$3}$6=4;$5=HEAP32[$8+12>>2];$1=Math_imul($1,1664525)+1013904223|0;$7=$1^$1>>>16;$7=$7>>>8^$7;$7=$7>>>4^$7;$7=$8+((($7>>>2^$7)&3)<<2)|0;HEAP32[$8+12>>2]=HEAP32[$7>>2];HEAP32[$7>>2]=$5;if(($13|0)==4){break label$3}while(1){$5=$6;$6=$5+1|0;$7=$8+($5<<2)|0;$9=HEAP32[$7>>2];$15=$7;$1=Math_imul($1,1664525)+1013904223|0;$7=$1;label$5:{if($5>>>0>65535){break label$5}$10=$1>>>16^$1;$7=$10;if($5>>>0>255){break label$5}$10=$10^$10>>>8;$7=$10;if($5>>>0>15){break label$5}$7=$10^$10>>>4}$5=(($7>>>0)%($6>>>0)<<2)+$8|0;HEAP32[$15>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$9;if(($6|0)!=($13|0)){continue}break}}HEAP32[$0+124>>2]=$1}if(($12|0)<1){break label$1}$1=Math_imul(HEAP32[$0+124>>2],1664525)+1013904223|0;label$6:{if(($12|0)==1){break label$6}$8=HEAP32[$0+96>>2];$6=HEAP32[$8+4>>2];$1=Math_imul($1,1664525)+1013904223|0;$5=$1^$1>>>16;$5=$5>>>8^$5;$5=$5>>>4^$5;$5=$5>>>2^$5;$5=$8+((($5>>>1^$5)&1)<<2)|0;HEAP32[$8+4>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$6;if(($12|0)==2){break label$6}$6=HEAP32[$8+8>>2];$1=Math_imul($1,1664525)+1013904223|0;$5=$1^$1>>>16;$5=$5>>>8^$5;$5=$5>>>4^$5;$5=$8+((($5>>>2^$5)>>>0)%3<<2)|0;HEAP32[$8+8>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$6;if(($12|0)==3){break label$6}$6=4;$5=HEAP32[$8+12>>2];$1=Math_imul($1,1664525)+1013904223|0;$7=$1^$1>>>16;$7=$7>>>8^$7;$7=$7>>>4^$7;$7=$8+((($7>>>2^$7)&3)<<2)|0;HEAP32[$8+12>>2]=HEAP32[$7>>2];HEAP32[$7>>2]=$5;if(($12|0)==4){break label$6}while(1){$5=$6;$6=$5+1|0;$7=$8+($5<<2)|0;$10=HEAP32[$7>>2];$15=$7;$1=Math_imul($1,1664525)+1013904223|0;$7=$1;label$8:{if($5>>>0>65535){break label$8}$9=$1>>>16^$1;$7=$9;if($5>>>0>255){break label$8}$9=$9^$9>>>8;$7=$9;if($5>>>0>15){break label$8}$7=$9^$9>>>4}$5=(($7>>>0)%($6>>>0)<<2)+$8|0;HEAP32[$15>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$10;if(($6|0)!=($12|0)){continue}break}}HEAP32[$0+124>>2]=$1}$1=HEAP32[$0+28>>2];label$9:{if(HEAP8[$4+61|0]&1){if(($1|0)>=1){$1=0;while(1){$6=HEAP32[$0+36>>2]+Math_imul($1,136)|0;btSequentialImpulseConstraintSolver__resolveSingleConstraintRowGeneric_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$6+104>>2],HEAP32[$6+108>>2],$6);$1=$1+1|0;if(($1|0)>2]){continue}break}}if(($3|0)>=1){$6=0;while(1){$1=HEAP32[($6<<2)+$2>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+24>>2]]($1,HEAP32[$1+20>>2],HEAP32[$1+24>>2],HEAPF32[$4+12>>2]);$6=$6+1|0;if(($6|0)!=($3|0)){continue}break}}$3=HEAP32[$0+8>>2];if(($3|0)>=1){$1=0;while(1){$2=HEAP32[$0+16>>2]+Math_imul(HEAP32[HEAP32[$0+76>>2]+($1<<2)>>2],136)|0;btSequentialImpulseConstraintSolver__resolveSingleConstraintRowLowerLimit_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$2+104>>2],HEAP32[$2+108>>2],$2);$1=$1+1|0;if(($3|0)!=($1|0)){continue}break}}$2=HEAP32[$0+48>>2];if(($2|0)<1){break label$9}$6=0;while(1){$1=HEAP32[$0+56>>2]+Math_imul(HEAP32[HEAP32[$0+96>>2]+($6<<2)>>2],136)|0;$11=HEAPF32[(HEAP32[$0+16>>2]+Math_imul(HEAP32[$1+100>>2],136)|0)+84>>2];if(!!($11>Math_fround(0))){$14=HEAPF32[$1+88>>2];HEAPF32[$1+128>>2]=$11*$14;HEAPF32[$1+124>>2]=$11*Math_fround(-$14);btSequentialImpulseConstraintSolver__resolveSingleConstraintRowGeneric_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$1+104>>2],HEAP32[$1+108>>2],$1)}$6=$6+1|0;if(($2|0)!=($6|0)){continue}break}break label$9}if(($1|0)>=1){$1=0;while(1){$6=HEAP32[$0+36>>2]+Math_imul($1,136)|0;btSequentialImpulseConstraintSolver__resolveSingleConstraintRowGeneric_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$6+104>>2],HEAP32[$6+108>>2],$6);$1=$1+1|0;if(($1|0)>2]){continue}break}}if(($3|0)>=1){$6=0;while(1){$1=HEAP32[($6<<2)+$2>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+24>>2]]($1,HEAP32[$1+20>>2],HEAP32[$1+24>>2],HEAPF32[$4+12>>2]);$6=$6+1|0;if(($6|0)!=($3|0)){continue}break}}$3=HEAP32[$0+8>>2];if(($3|0)>=1){$1=0;while(1){$2=HEAP32[$0+16>>2]+Math_imul(HEAP32[HEAP32[$0+76>>2]+($1<<2)>>2],136)|0;btSequentialImpulseConstraintSolver__resolveSingleConstraintRowLowerLimit_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$2+104>>2],HEAP32[$2+108>>2],$2);$1=$1+1|0;if(($3|0)!=($1|0)){continue}break}}$2=HEAP32[$0+48>>2];if(($2|0)<1){break label$9}$6=0;while(1){$1=HEAP32[$0+56>>2]+Math_imul(HEAP32[HEAP32[$0+96>>2]+($6<<2)>>2],136)|0;$11=HEAPF32[(HEAP32[$0+16>>2]+Math_imul(HEAP32[$1+100>>2],136)|0)+84>>2];if(!!($11>Math_fround(0))){$14=HEAPF32[$1+88>>2];HEAPF32[$1+128>>2]=$11*$14;HEAPF32[$1+124>>2]=$11*Math_fround(-$14);btSequentialImpulseConstraintSolver__resolveSingleConstraintRowGeneric_28btRigidBody__2c_20btRigidBody__2c_20btSolverConstraint_20const__29(HEAP32[$1+104>>2],HEAP32[$1+108>>2],$1)}$6=$6+1|0;if(($2|0)!=($6|0)){continue}break}}}function DumpFunction($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$3=global$0-16|0;global$0=$3;$5=$2;$4=HEAP32[$0+32>>2];label$1:{label$2:{if(!(HEAP32[$2+12>>2]?0:!(($4|0)==($1|0)|!$4))){HEAP32[$3+8>>2]=0;$1=HEAP32[$2+16>>2];if($1){break label$1}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;break label$2}HEAP32[$3+8>>2]=HEAP32[$4+12>>2]+1;$1=HEAP32[$2+16>>2];if($1){break label$1}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if($1){break label$1}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$4+16|0,HEAP32[$3+8>>2],HEAP32[$2+8>>2])|0}HEAP32[$5+16>>2]=$1}HEAP32[$3+8>>2]=HEAP32[$0+60>>2];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}HEAP32[$3+8>>2]=HEAP32[$0+64>>2];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}HEAP8[$3+8|0]=HEAPU8[$0+72|0];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}HEAP8[$3+8|0]=HEAPU8[$0+73|0];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}HEAP8[$3+8|0]=HEAPU8[$0+74|0];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}HEAP8[$3+8|0]=HEAPU8[$0+75|0];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}$5=HEAP32[$0+12>>2];$4=HEAP32[$0+44>>2];HEAP32[$3+8>>2]=$4;label$11:{label$12:{if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if(!$1){break label$12}}$7=HEAP32[$0+40>>2];HEAP32[$3+8>>2]=$7;break label$11}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$5,$4<<2,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;$7=HEAP32[$0+40>>2];HEAP32[$3+8>>2]=$7;if($1){break label$11}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}if(($7|0)>=1){while(1){$4=HEAP32[$0+8>>2]+($6<<4)|0;$5=HEAP32[$4+8>>2];HEAP8[$3+8|0]=$5;if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;$5=HEAP32[$4+8>>2]}$8=$5+ -1|0;label$16:{if($8>>>0>3){break label$16}$5=$2;label$19:{label$20:{switch($8-1|0){default:HEAP8[$3+8|0]=HEAP32[$4>>2];if($1){break label$16}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,1,HEAP32[$2+8>>2])|0;break label$19;case 1:$8=HEAP32[$4+4>>2];HEAP32[$3+8>>2]=HEAP32[$4>>2];HEAP32[$3+12>>2]=$8;if($1){break label$16}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,8,HEAP32[$2+8>>2])|0;break label$19;case 0:break label$16;case 2:break label$20}}$4=HEAP32[$4>>2];if(!$4){HEAP32[$3+8>>2]=0;if($1){break label$16}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;break label$19}HEAP32[$3+8>>2]=HEAP32[$4+12>>2]+1;if($1){break label$16}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if($1){break label$16}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$4+16|0,HEAP32[$3+8>>2],HEAP32[$2+8>>2])|0}HEAP32[$5+16>>2]=$1}$6=$6+1|0;if(($7|0)!=($6|0)){continue}break}}$5=HEAP32[$0+52>>2];HEAP32[$3+8>>2]=$5;if(!$1){HEAP32[$2+16>>2]=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])}if(($5|0)>=1){$1=0;while(1){DumpFunction(HEAP32[HEAP32[$0+16>>2]+($1<<2)>>2],HEAP32[$0+32>>2],$2);$1=$1+1|0;if(($5|0)!=($1|0)){continue}break}}$6=0;$5=HEAP32[$0+20>>2];$6=HEAP32[$2+12>>2]?$6:HEAP32[$0+48>>2];HEAP32[$3+8>>2]=$6;$1=HEAP32[$2+16>>2];label$28:{if($1){break label$28}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if($1){break label$28}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$5,$6<<2,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}$7=0;$7=HEAP32[$2+12>>2]?$7:HEAP32[$0+56>>2];HEAP32[$3+8>>2]=$7;if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}if(($7|0)>=1){$6=0;while(1){$5=$2;$8=Math_imul($6,12);$4=HEAP32[$8+HEAP32[$0+24>>2]>>2];label$33:{label$34:{if(!$4){HEAP32[$3+8>>2]=0;if($1){break label$33}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;break label$34}HEAP32[$3+8>>2]=HEAP32[$4+12>>2]+1;if($1){break label$33}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if($1){break label$33}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$4+16|0,HEAP32[$3+8>>2],HEAP32[$2+8>>2])|0}HEAP32[$5+16>>2]=$1}$5=HEAP32[$0+24>>2];HEAP32[$3+8>>2]=HEAP32[($5+$8|0)+4>>2];$4=$3;if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;$5=HEAP32[$0+24>>2]}HEAP32[$4+8>>2]=HEAP32[($5+$8|0)+8>>2];if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}$6=$6+1|0;if(($7|0)!=($6|0)){continue}break}}$4=0;$4=HEAP32[$2+12>>2]?$4:HEAP32[$0+36>>2];HEAP32[$3+8>>2]=$4;if(!$1){$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1}if(($4|0)>=1){$6=0;while(1){$5=$2;$7=HEAP32[HEAP32[$0+28>>2]+($6<<2)>>2];label$43:{label$44:{if(!$7){HEAP32[$3+8>>2]=0;if($1){break label$43}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;break label$44}HEAP32[$3+8>>2]=HEAP32[$7+12>>2]+1;if($1){break label$43}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$3+8|0,4,HEAP32[$2+8>>2])|0;HEAP32[$2+16>>2]=$1;if($1){break label$43}$1=FUNCTION_TABLE[HEAP32[$2+4>>2]](HEAP32[$2>>2],$7+16|0,HEAP32[$3+8>>2],HEAP32[$2+8>>2])|0}HEAP32[$5+16>>2]=$1}$6=$6+1|0;if(($4|0)!=($6|0)){continue}break}}global$0=$3+16|0}function b2GearJoint__SolvePositionConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=Math_fround(0),$4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=0,$31=0,$32=0,$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0),$36=Math_fround(0),$37=Math_fround(0),$38=Math_fround(0),$39=Math_fround(0),$40=Math_fround(0),$41=Math_fround(0),$42=Math_fround(0);$4=HEAP32[$0+76>>2];$9=HEAP32[$1+24>>2];$30=$9+Math_imul(HEAP32[$0+172>>2],12)|0;$35=HEAPF32[$30+4>>2];$36=HEAPF32[$30>>2];$31=$9+Math_imul(HEAP32[$0+168>>2],12)|0;$37=HEAPF32[$31+4>>2];$38=HEAPF32[$31>>2];$32=$9+Math_imul(HEAP32[$0+164>>2],12)|0;$39=HEAPF32[$32+4>>2];$40=HEAPF32[$32>>2];$9=$9+Math_imul(HEAP32[$0+160>>2],12)|0;$41=HEAPF32[$9+4>>2];$42=HEAPF32[$9>>2];$19=HEAPF32[$9+8>>2];$20=HEAPF32[$32+8>>2];$21=HEAPF32[$31+8>>2];$22=HEAPF32[$30+8>>2];$16=cosf($22);$17=sinf($22);$10=cosf($21);$3=sinf($21);$14=cosf($20);$18=sinf($20);$13=cosf($19);$11=sinf($19);label$1:{if(($4|0)==1){$23=HEAPF32[$0+224>>2];$24=HEAPF32[$0+232>>2];$11=Math_fround($23+$24);$25=Math_fround(1);$26=Math_fround(1);$12=Math_fround(Math_fround($19-$21)-HEAPF32[$0+140>>2]);break label$1}$7=HEAPF32[$0+124>>2];$15=HEAPF32[$0+128>>2];$27=Math_fround(Math_fround($3*$7)+Math_fround($10*$15));$6=Math_fround(HEAPF32[$0+108>>2]-HEAPF32[$0+192>>2]);$8=Math_fround(HEAPF32[$0+112>>2]-HEAPF32[$0+196>>2]);$28=Math_fround(Math_fround($10*$7)-Math_fround($3*$15));$26=Math_fround(Math_fround($27*Math_fround(Math_fround($10*$6)-Math_fround($3*$8)))-Math_fround($28*Math_fround(Math_fround($3*$6)+Math_fround($10*$8))));$24=HEAPF32[$0+232>>2];$5=Math_fround(HEAPF32[$0+92>>2]-HEAPF32[$0+176>>2]);$2=Math_fround(HEAPF32[$0+96>>2]-HEAPF32[$0+180>>2]);$12=Math_fround(Math_fround($13*$5)-Math_fround($11*$2));$2=Math_fround(Math_fround($11*$5)+Math_fround($13*$2));$25=Math_fround(Math_fround($27*$12)-Math_fround($28*$2));$23=HEAPF32[$0+224>>2];$11=Math_fround(Math_fround(Math_fround(HEAPF32[$0+216>>2]+HEAPF32[$0+208>>2])+Math_fround($26*Math_fround($26*$24)))+Math_fround($25*Math_fround($25*$23)));$12=Math_fround(Math_fround($42-$38)+$12);$2=Math_fround(Math_fround($41-$37)+$2);$12=Math_fround(Math_fround($7*Math_fround(Math_fround(Math_fround($10*$12)+Math_fround($3*$2))-$6))+Math_fround($15*Math_fround(Math_fround(Math_fround($10*$2)-Math_fround($3*$12))-$8)))}$7=Math_fround(0);$15=Math_fround($11+Math_fround(0));label$3:{if(HEAP32[$0+80>>2]==1){$13=Math_fround(Math_fround($20-$22)-HEAPF32[$0+144>>2]);$2=HEAPF32[$0+152>>2];$14=HEAPF32[$0+228>>2];$29=HEAPF32[$0+236>>2];$18=Math_fround(Math_fround($2*$2)*Math_fround($14+$29));$8=$2;$11=$2;$5=Math_fround(0);break label$3}$2=HEAPF32[$0+152>>2];$33=HEAPF32[$0+132>>2];$34=HEAPF32[$0+136>>2];$10=Math_fround(Math_fround($17*$33)+Math_fround($16*$34));$3=Math_fround(HEAPF32[$0+116>>2]-HEAPF32[$0+200>>2]);$13=Math_fround(HEAPF32[$0+120>>2]-HEAPF32[$0+204>>2]);$7=Math_fround(Math_fround($16*$33)-Math_fround($17*$34));$11=Math_fround($2*Math_fround(Math_fround($10*Math_fround(Math_fround($16*$3)-Math_fround($17*$13)))-Math_fround($7*Math_fround(Math_fround($17*$3)+Math_fround($16*$13)))));$29=HEAPF32[$0+236>>2];$8=Math_fround(HEAPF32[$0+100>>2]-HEAPF32[$0+184>>2]);$5=Math_fround(HEAPF32[$0+104>>2]-HEAPF32[$0+188>>2]);$6=Math_fround(Math_fround($14*$8)-Math_fround($18*$5));$5=Math_fround(Math_fround($18*$8)+Math_fround($14*$5));$8=Math_fround($2*Math_fround(Math_fround($10*$6)-Math_fround($7*$5)));$14=HEAPF32[$0+228>>2];$18=Math_fround(Math_fround(Math_fround(Math_fround($2*$2)*Math_fround(HEAPF32[$0+220>>2]+HEAPF32[$0+212>>2]))+Math_fround($11*Math_fround($11*$29)))+Math_fround($8*Math_fround($8*$14)));$6=Math_fround(Math_fround($40-$36)+$6);$5=Math_fround(Math_fround($39-$35)+$5);$13=Math_fround(Math_fround($33*Math_fround(Math_fround(Math_fround($16*$6)+Math_fround($17*$5))-$3))+Math_fround($34*Math_fround(Math_fround(Math_fround($16*$5)-Math_fround($17*$6))-$13)));$7=Math_fround($7*$2);$5=Math_fround($10*$2)}$3=Math_fround(0);$6=Math_fround($15+$18);if(!!($6>Math_fround(0))){$3=Math_fround(Math_fround(-Math_fround(Math_fround($12+Math_fround($13*$2))-HEAPF32[$0+148>>2]))/$6)}$15=HEAPF32[$0+220>>2];$6=HEAPF32[$0+216>>2];$12=HEAPF32[$0+212>>2];$2=Math_fround($3*HEAPF32[$0+208>>2]);HEAPF32[$9>>2]=Math_fround($28*$2)+$42;HEAPF32[$9+4>>2]=Math_fround($27*$2)+$41;$4=HEAP32[$1+24>>2];HEAPF32[($4+Math_imul(HEAP32[$0+160>>2],12)|0)+8>>2]=$19+Math_fround($25*Math_fround($3*$23));$4=$4+Math_imul(HEAP32[$0+164>>2],12)|0;$2=Math_fround($3*$12);HEAPF32[$4+4>>2]=Math_fround($5*$2)+$39;HEAPF32[$4>>2]=Math_fround($7*$2)+$40;$4=HEAP32[$1+24>>2];HEAPF32[($4+Math_imul(HEAP32[$0+164>>2],12)|0)+8>>2]=$20+Math_fround($8*Math_fround($3*$14));$4=$4+Math_imul(HEAP32[$0+168>>2],12)|0;$2=Math_fround($3*$6);HEAPF32[$4+4>>2]=$37-Math_fround($27*$2);HEAPF32[$4>>2]=$38-Math_fround($28*$2);$4=HEAP32[$1+24>>2];HEAPF32[($4+Math_imul(HEAP32[$0+168>>2],12)|0)+8>>2]=$21-Math_fround($26*Math_fround($3*$24));$4=$4+Math_imul(HEAP32[$0+172>>2],12)|0;$2=Math_fround($3*$15);HEAPF32[$4+4>>2]=$35-Math_fround($5*$2);HEAPF32[$4>>2]=$36-Math_fround($7*$2);HEAPF32[(HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+172>>2],12)|0)+8>>2]=$22-Math_fround($11*Math_fround($3*$29));return 1}function void_20std____2____sort_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;label$1:{label$2:while(1){$9=$1+ -4|0;label$3:while(1){$4=$0;label$4:while(1){label$5:{label$6:{label$7:{$3=$1-$4|0;$0=$3>>2;if($0>>>0<=5){label$10:{switch($0-2|0){case 0:$1=HEAP32[$2>>2];$0=HEAP32[$1+32>>2];$2=(HEAP32[$1+36>>2]-$0|0)/12|0;$1=HEAP32[$4>>2];if($2>>>0<=$1>>>0){break label$1}$3=$2;$2=HEAP32[$9>>2];if($3>>>0<=$2>>>0){break label$1}if(HEAPU32[($0+Math_imul($1,12)|0)+4>>2]>=HEAPU32[($0+Math_imul($2,12)|0)+4>>2]){break label$5}HEAP32[$4>>2]=$2;HEAP32[$9>>2]=$1;return;case 2:unsigned_20int_20std____2____sort4_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$4+4|0,$4+8|0,$9,$2);return;case 3:break label$10;case 1:break label$7;default:break label$5}}unsigned_20int_20std____2____sort5_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$4+4|0,$4+8|0,$4+12|0,$9,$2);return}if(($3|0)<=123){void_20std____2____insertion_sort_3_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$1,$2);return}$5=(($0|0)/2<<2)+$4|0;label$14:{if(($3|0)>=3997){$0=($0|0)/4<<2;$8=unsigned_20int_20std____2____sort5_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$0+$4|0,$5,$0+$5|0,$9,$2);break label$14}$8=unsigned_20int_20std____2____sort3_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$5,$9,$2)}$0=HEAP32[$2>>2];$10=HEAP32[$0+32>>2];$7=(HEAP32[$0+36>>2]-$10|0)/12|0;$6=HEAP32[$5>>2];if($7>>>0>$6>>>0){$3=HEAP32[$4>>2];if($7>>>0>$3>>>0){$0=$9;$12=HEAP32[(Math_imul($6,12)+$10|0)+4>>2];$6=HEAP32[(Math_imul($3,12)+$10|0)+4>>2];if($12>>>0>=$6>>>0){while(1){$0=$0+ -4|0;if(($4|0)==($0|0)){$0=HEAP32[$9>>2];if($7>>>0>$0>>>0){$3=$4+4|0;if(HEAPU32[(Math_imul($0,12)+$10|0)+4>>2]<$6>>>0){break label$6}if(($3|0)==($9|0)){break label$5}while(1){label$26:{$5=HEAP32[$3>>2];if($7>>>0>$5>>>0){if(HEAPU32[(Math_imul($5,12)+$10|0)+4>>2]>=$6>>>0){break label$26}HEAP32[$3>>2]=$0;HEAP32[$9>>2]=$5;$3=$3+4|0;break label$6}break label$1}$3=$3+4|0;if(($9|0)!=($3|0)){continue}break}break label$5}break label$1}$11=HEAP32[$0>>2];if($7>>>0<=$11>>>0){break label$1}if($12>>>0>=HEAPU32[(Math_imul($11,12)+$10|0)+4>>2]){continue}break}HEAP32[$4>>2]=$11;HEAP32[$0>>2]=$3;$8=$8+1|0}label$28:{$3=$4+4|0;if($3>>>0>=$0>>>0){break label$28}$6=HEAP32[$5>>2];label$29:{if($7>>>0<=$6>>>0){break label$29}while(1){$12=Math_imul($6,12)+$10|0;while(1){$11=HEAP32[$3>>2];if($7>>>0<=$11>>>0){break label$1}$13=HEAP32[$12+4>>2];if($13>>>0>2]){$3=$3+4|0;if($7>>>0>$6>>>0){continue}break label$29}break}while(1){$0=$0+ -4|0;$6=HEAP32[$0>>2];if($7>>>0<=$6>>>0){break label$1}if($13>>>0>=HEAPU32[(Math_imul($6,12)+$10|0)+4>>2]){continue}break}if($3>>>0>$0>>>0){break label$28}HEAP32[$3>>2]=$6;HEAP32[$0>>2]=$11;$8=$8+1|0;$6=($3|0)==($5|0);$3=$3+4|0;$5=$6?$0:$5;$6=HEAP32[$5>>2];if($7>>>0>$6>>>0){continue}break}}break label$1}label$18:{label$34:{if(($3|0)==($5|0)){break label$34}$0=HEAP32[$3>>2];if($7>>>0<=$0>>>0){break label$1}$6=$7;$7=HEAP32[$5>>2];if($6>>>0<=$7>>>0){break label$18}if(HEAPU32[(Math_imul($0,12)+$10|0)+4>>2]>=HEAPU32[(Math_imul($7,12)+$10|0)+4>>2]){break label$34}HEAP32[$3>>2]=$7;HEAP32[$5>>2]=$0;$8=$8+1|0}if(!$8){$5=bool_20std____2____insertion_sort_incomplete_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$3,$2);$0=$3+4|0;if(bool_20std____2____insertion_sort_incomplete_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($0,$1,$2)){$1=$3;$0=$4;if(!$5){continue label$2}break label$5}if($5){continue label$3}}if(($3-$4|0)<($1-$3|0)){void_20std____2____sort_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$3,$2);$0=$3+4|0;continue label$3}void_20std____2____sort_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($3+4|0,$1,$2);$1=$3;$0=$4;continue label$2}break label$1}break label$1}break label$1}unsigned_20int_20std____2____sort3_dmProfile__ScopeSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__ScopeSorter__29($4,$4+4|0,$9,$2);break label$5}if(($3|0)==($9|0)){break label$5}$5=$9;$0=HEAP32[$3>>2];if($7>>>0<=$0>>>0){break label$1}while(1){$8=HEAP32[$4>>2];$6=Math_imul($8,12)+$10|0;while(1){if($7>>>0<=$8>>>0){break label$1}$11=HEAP32[$6+4>>2];if(HEAPU32[(Math_imul($0,12)+$10|0)+4>>2]>=$11>>>0){$0=HEAP32[$3+4>>2];$3=$3+4|0;if($7>>>0>$0>>>0){continue}break label$1}break}while(1){$5=$5+ -4|0;$8=HEAP32[$5>>2];if($7>>>0<=$8>>>0){break label$1}if(HEAPU32[(Math_imul($8,12)+$10|0)+4>>2]<$11>>>0){continue}break}if($3>>>0>=$5>>>0){$4=$3;continue label$4}HEAP32[$3>>2]=$8;HEAP32[$5>>2]=$0;$0=HEAP32[$3+4>>2];$3=$3+4|0;if($7>>>0>$0>>>0){continue}break}break label$1}break}break}break}return}__assert_fail(155278,155196,430,155289);abort()}function void_20std____2____sort_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;label$1:while(1){$7=$1+ -4|0;label$2:while(1){$4=$0;label$3:while(1){label$4:{label$5:{label$6:{label$7:{$3=$1-$4|0;$0=$3>>2;if($0>>>0<=5){label$9:{switch($0-2|0){case 0:if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$7>>2],HEAP32[$4>>2])){break label$4}$0=HEAP32[$4>>2];HEAP32[$4>>2]=HEAP32[$7>>2];HEAP32[$7>>2]=$0;return;case 2:unsigned_20int_20std____2____sort4_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$4+4|0,$4+8|0,$7,$2);return;case 1:break label$7;case 3:break label$9;default:break label$4}}unsigned_20int_20std____2____sort5_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$4+4|0,$4+8|0,$4+12|0,$7,$2);return}if(($3|0)<=123){$5=$4+8|0;unsigned_20int_20std____2____sort3_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$4+4|0,$5,$2);$0=$4+12|0;if(($1|0)==($0|0)){break label$4}while(1){$6=$0;if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$0>>2],HEAP32[$5>>2])){$7=HEAP32[$6>>2];$3=$6;while(1){label$16:{$0=$5;HEAP32[$3>>2]=HEAP32[$0>>2];if(($0|0)==($4|0)){$0=$4;break label$16}$3=$0;$5=$0+ -4|0;if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,$7,HEAP32[$5>>2])){continue}}break}HEAP32[$0>>2]=$7}$5=$6;$0=$5+4|0;if(($1|0)!=($0|0)){continue}break}break label$4}$5=(($0|0)/2<<2)+$4|0;label$18:{if(($3|0)>=3997){$0=($0|0)/4<<2;$0=unsigned_20int_20std____2____sort5_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$0+$4|0,$5,$0+$5|0,$7,$2);break label$18}$0=unsigned_20int_20std____2____sort3_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$5,$7,$2)}$8=$0;$0=$7;if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$4>>2],HEAP32[$5>>2])){while(1){$0=$0+ -4|0;if(($4|0)==($0|0)){$3=$4+4|0;if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$4>>2],HEAP32[$7>>2])){break label$5}if(($3|0)==($7|0)){break label$4}while(1){if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$4>>2],HEAP32[$3>>2])){$0=HEAP32[$3>>2];HEAP32[$3>>2]=HEAP32[$7>>2];HEAP32[$7>>2]=$0;$3=$3+4|0;break label$5}$3=$3+4|0;if(($7|0)!=($3|0)){continue}break}break label$4}if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$0>>2],HEAP32[$5>>2])){continue}break}$3=HEAP32[$4>>2];HEAP32[$4>>2]=HEAP32[$0>>2];HEAP32[$0>>2]=$3;$8=$8+1|0}$3=$4+4|0;if($3>>>0>=$0>>>0){break label$6}while(1){$6=$3;$3=$3+4|0;if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$6>>2],HEAP32[$5>>2])){continue}while(1){$0=$0+ -4|0;if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$0>>2],HEAP32[$5>>2])){continue}break}if($6>>>0>$0>>>0){$3=$6;break label$6}else{$9=HEAP32[$6>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$0>>2]=$9;$5=($5|0)==($6|0)?$0:$5;$8=$8+1|0;continue}}}unsigned_20int_20std____2____sort3_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$4+4|0,$7,$2);break label$4}label$30:{if(($3|0)==($5|0)){break label$30}if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$5>>2],HEAP32[$3>>2])){break label$30}$0=HEAP32[$3>>2];HEAP32[$3>>2]=HEAP32[$5>>2];HEAP32[$5>>2]=$0;$8=$8+1|0}if(!$8){$6=bool_20std____2____insertion_sort_incomplete_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$3,$2);$0=$3+4|0;if(bool_20std____2____insertion_sort_incomplete_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($0,$1,$2)){$1=$3;$0=$4;if(!$6){continue label$1}break label$4}if($6){continue label$2}}if(($3-$4|0)<($1-$3|0)){void_20std____2____sort_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($4,$3,$2);$0=$3+4|0;continue label$2}void_20std____2____sort_dmProfile__SampleSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfile__SampleSorter__29($3+4|0,$1,$2);$1=$3;$0=$4;continue label$1}$0=$7;if(($3|0)==($0|0)){break label$4}while(1){$6=$3;$3=$3+4|0;if(!dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$4>>2],HEAP32[$6>>2])){continue}while(1){$0=$0+ -4|0;if(dmProfile__SampleSorter__operator_28_29_28unsigned_20int_2c_20unsigned_20int_29_20const($2,HEAP32[$4>>2],HEAP32[$0>>2])){continue}break}if($6>>>0>=$0>>>0){$4=$6;continue label$3}else{$5=HEAP32[$6>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$0>>2]=$5;continue}}}break}break}break}}function read_long_string($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$7=global$0-192|0;global$0=$7;$8=HEAP32[$0>>2];$5=HEAP32[$0+60>>2];$3=HEAP32[$5+4>>2];$6=$3+1|0;$4=HEAP32[$5+8>>2];label$1:{if($6>>>0<=$4>>>0){$4=HEAP32[$5>>2];break label$1}if($4>>>0>=2147483646){luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+104>>2]=123718;HEAP32[$7+100>>2]=$3;HEAP32[$7+96>>2]=$7+112;luaO_pushfstring($4,123695,$7+96|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$5+8>>2]}$3=HEAP32[$0+52>>2];$6=$4<<1;label$4:{if(($6|0)!=-2){$4=luaM_realloc_($3,HEAP32[$5>>2],$4,$6);break label$4}$4=luaM_toobig($3)}HEAP32[$5+8>>2]=$6;HEAP32[$5>>2]=$4;$3=HEAP32[$5+4>>2];$6=$3+1|0}HEAP32[$5+4>>2]=$6;HEAP8[$4+$3|0]=$8;$3=HEAP32[$0+56>>2];$6=HEAP32[$3>>2];HEAP32[$3>>2]=$6+ -1;$4=$0;label$6:{if($6){$5=$3;$3=HEAP32[$3+4>>2];HEAP32[$5+4>>2]=$3+1;$3=HEAPU8[$3|0];break label$6}$3=luaZ_fill($3)}HEAP32[$4>>2]=$3;$4=$3+ -10|0;label$8:{if($4>>>0>3){break label$8}label$9:{switch($4-1|0){case 0:case 1:break label$8;default:break label$9}}inclinenumber($0)}$9=$1?123798:123821;while(1){label$11:{label$12:{label$13:{$8=HEAP32[$0>>2];$4=$8+1|0;if($4>>>0>14){$4=$8+ -91|0;if($4>>>0>2){break label$13}label$15:{switch($4-1|0){default:if((skip_sep($0)|0)!=($2|0)){continue}$8=HEAP32[$0>>2];$5=HEAP32[$0+60>>2];$3=HEAP32[$5+4>>2];$6=$3+1|0;$4=HEAP32[$5+8>>2];label$17:{if($6>>>0<=$4>>>0){$4=HEAP32[$5>>2];break label$17}if($4>>>0>=2147483646){luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+56>>2]=123718;HEAP32[$7+52>>2]=$3;HEAP32[$7+48>>2]=$7+112;luaO_pushfstring($4,123695,$7+48|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$5+8>>2]}$3=HEAP32[$0+52>>2];$6=$4<<1;label$20:{if(($6|0)!=-2){$4=luaM_realloc_($3,HEAP32[$5>>2],$4,$6);break label$20}$4=luaM_toobig($3)}HEAP32[$5+8>>2]=$6;HEAP32[$5>>2]=$4;$3=HEAP32[$5+4>>2];$6=$3+1|0}HEAP32[$5+4>>2]=$6;HEAP8[$4+$3|0]=$8;$3=HEAP32[$0+56>>2];$6=HEAP32[$3>>2];HEAP32[$3>>2]=$6+ -1;$4=$0;label$22:{if($6){$5=$3;$3=HEAP32[$3+4>>2];HEAP32[$5+4>>2]=$3+1;$3=HEAPU8[$3|0];break label$22}$3=luaZ_fill($3)}HEAP32[$4>>2]=$3;if($2){continue}luaX_lexerror($0,123845,91);continue;case 0:break label$13;case 1:break label$15}}if((skip_sep($0)|0)!=($2|0)){continue}$8=HEAP32[$0>>2];$5=HEAP32[$0+60>>2];$3=HEAP32[$5+4>>2];$6=$3+1|0;$4=HEAP32[$5+8>>2];label$24:{if($6>>>0<=$4>>>0){$4=HEAP32[$5>>2];break label$24}if($4>>>0>=2147483646){luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+72>>2]=123718;HEAP32[$7+68>>2]=$3;HEAP32[$7+64>>2]=$7+112;luaO_pushfstring($4,123695,$7- -64|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$5+8>>2]}$3=HEAP32[$0+52>>2];$6=$4<<1;label$27:{if(($6|0)!=-2){$4=luaM_realloc_($3,HEAP32[$5>>2],$4,$6);break label$27}$4=luaM_toobig($3)}HEAP32[$5+8>>2]=$6;HEAP32[$5>>2]=$4;$3=HEAP32[$5+4>>2];$6=$3+1|0}HEAP32[$5+4>>2]=$6;HEAP8[$4+$3|0]=$8;$3=HEAP32[$0+56>>2];$6=HEAP32[$3>>2];HEAP32[$3>>2]=$6+ -1;$4=$0;label$29:{if($6){$5=$3;$3=HEAP32[$3+4>>2];HEAP32[$5+4>>2]=$3+1;$3=HEAPU8[$3|0];break label$29}$3=luaZ_fill($3)}HEAP32[$4>>2]=$3;if($1){$4=HEAP32[$0+52>>2];$2=$2+2|0;$3=HEAP32[$0+60>>2];$2=luaS_newlstr($4,$2+HEAP32[$3>>2]|0,HEAP32[$3+4>>2]-($2<<1)|0);$0=luaH_setstr($4,HEAP32[HEAP32[$0+48>>2]+4>>2],$2);if(!HEAP32[$0+8>>2]){HEAP32[$0+8>>2]=1;HEAP32[$0>>2]=1}HEAP32[$1>>2]=$2}global$0=$7+192|0;return}switch($4-1|0){case 10:case 13:break label$12;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 11:case 12:break label$13;default:break label$11}}if($1){$5=HEAP32[$0+60>>2];$6=HEAP32[$5+4>>2];$4=$6+1|0;$3=HEAP32[$5+8>>2];label$34:{if($4>>>0<=$3>>>0){$3=HEAP32[$5>>2];break label$34}if($3>>>0>=2147483646){luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+8>>2]=123718;HEAP32[$7+4>>2]=$3;HEAP32[$7>>2]=$7+112;luaO_pushfstring($4,123695,$7);luaD_throw(HEAP32[$0+52>>2],3);$3=HEAP32[$5+8>>2]}$4=HEAP32[$0+52>>2];$6=$3<<1;label$37:{if(($6|0)!=-2){$3=luaM_realloc_($4,HEAP32[$5>>2],$3,$6);break label$37}$3=luaM_toobig($4)}HEAP32[$5+8>>2]=$6;HEAP32[$5>>2]=$3;$6=HEAP32[$5+4>>2];$4=$6+1|0}HEAP32[$5+4>>2]=$4;HEAP8[$3+$6|0]=$8;$4=HEAP32[$0+56>>2];$3=HEAP32[$4>>2];HEAP32[$4>>2]=$3+ -1;if($3){$3=$4;$4=HEAP32[$4+4>>2];HEAP32[$3+4>>2]=$4+1;HEAP32[$0>>2]=HEAPU8[$4|0];continue}HEAP32[$0>>2]=luaZ_fill($4);continue}$4=HEAP32[$0+56>>2];$3=HEAP32[$4>>2];HEAP32[$4>>2]=$3+ -1;if($3){$3=$4;$4=HEAP32[$4+4>>2];HEAP32[$3+4>>2]=$4+1;HEAP32[$0>>2]=HEAPU8[$4|0];continue}HEAP32[$0>>2]=luaZ_fill($4);continue}$5=HEAP32[$0+60>>2];$3=HEAP32[$5+4>>2];$6=$3+1|0;$4=HEAP32[$5+8>>2];label$41:{if($6>>>0<=$4>>>0){$4=HEAP32[$5>>2];break label$41}if($4>>>0>=2147483646){luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+88>>2]=123718;HEAP32[$7+84>>2]=$3;HEAP32[$7+80>>2]=$7+112;luaO_pushfstring($4,123695,$7+80|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$5+8>>2]}$3=HEAP32[$0+52>>2];$6=$4<<1;label$44:{if(($6|0)!=-2){$4=luaM_realloc_($3,HEAP32[$5>>2],$4,$6);break label$44}$4=luaM_toobig($3)}HEAP32[$5+8>>2]=$6;HEAP32[$5>>2]=$4;$3=HEAP32[$5+4>>2];$6=$3+1|0}HEAP32[$5+4>>2]=$6;HEAP8[$4+$3|0]=10;inclinenumber($0);if($1){continue}HEAP32[HEAP32[$0+60>>2]+4>>2]=0;continue}luaO_chunkid($7+112|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$3=HEAP32[$0+4>>2];HEAP32[$7+40>>2]=$9;HEAP32[$7+36>>2]=$3;HEAP32[$7+32>>2]=$7+112;$4=luaO_pushfstring($4,123695,$7+32|0);$3=HEAP32[$0+52>>2];HEAP32[$7+20>>2]=123677;HEAP32[$7+16>>2]=$4;luaO_pushfstring($3,123705,$7+16|0);luaD_throw(HEAP32[$0+52>>2],3);continue}}function dmGui__SetNodeParent_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20int_2c_20bool_29($0,$1,$2,$3){var $4=0,$5=Math_fround(0),$6=0,$7=0,$8=0,$9=Math_fround(0),$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=0,$21=Math_fround(0),$22=Math_fround(0);$4=global$0-128|0;global$0=$4;label$1:{label$2:{label$3:{label$4:{if(($1|0)==($2|0)){$12=-8;break label$4}label$6:{label$7:{label$8:{$6=HEAP32[$0+32>>2];$7=(HEAP32[$0+36>>2]-$6|0)/576|0;$10=$1&65535;if($7>>>0>$10>>>0){$16=Math_imul($10,576)+$6|0;if(HEAPU16[$16+552>>1]!=($1>>>16|0)){break label$2}$13=65535;$14=Math_imul($10,576)+$6|0;$8=HEAPU16[$14+554>>1];if(($8|0)!=($1&65535)){break label$1}label$11:{if(!$2){break label$11}$1=$2&65535;if($7>>>0<=$1>>>0){break label$3}$13=Math_imul($1,576);$11=$13+$6|0;if(HEAPU16[$11+552>>1]!=($2>>>16|0)){break label$2}$13=HEAPU16[($6+$13|0)+554>>1];if(($13|0)!=($2&65535)){break label$1}while(1){$1=HEAPU16[(Math_imul($1,576)+$6|0)+560>>1];if(($1|0)==65535){break label$11}if(($1|0)==($8|0)){$12=-8;break label$4}if($7>>>0>$1>>>0){continue}break}break label$3}$20=Math_imul($10,576)+$6|0;if(HEAPU16[$20+560>>1]==($13|0)){break label$4}if(!$3){break label$6}$8=0;dmGui__CalculateNodeTransform_28dmGui__Scene__2c_20dmGui__InternalNode__2c_20dmGui__CalculateNodeTransformFlags_2c_20Vectormath__Aos__Matrix4__29($0,$16,0,$4- -64|0);if($11){dmGui__CalculateNodeTransform_28dmGui__Scene__2c_20dmGui__InternalNode__2c_20dmGui__CalculateNodeTransformFlags_2c_20Vectormath__Aos__Matrix4__29($0,$11,0,$4);$5=HEAPF32[$11+388>>2];$12=HEAP32[$11+388>>2];$9=HEAPF32[$11+384>>2];$3=HEAP32[$11+384>>2];$1=HEAP32[(Math_imul($10,576)+$6|0)+412>>2];$2=$1>>>16&3;if($2>>>0>1){$2=$3;$7=$12;$17=0;break label$7}if($2-1){$2=(wasm2js_scratch_store_f32($9<$5?$9:$5),wasm2js_scratch_load_i32(0));break label$8}$2=(wasm2js_scratch_store_f32($9>$5?$9:$5),wasm2js_scratch_load_i32(0));break label$8}$1=Math_imul($10,576)+$6|0;$15=$1;$2=HEAP32[$0+12>>2];$21=Math_fround(HEAPU32[$2+24>>2]);$18=Math_fround(HEAPU32[$0+380>>2]);$9=Math_fround($21/$18);$12=(wasm2js_scratch_store_f32($9),wasm2js_scratch_load_i32(0));$19=Math_fround(HEAPU32[$2+20>>2]);$22=Math_fround(HEAPU32[$0+376>>2]);$5=Math_fround($19/$22);$3=(wasm2js_scratch_store_f32($5),wasm2js_scratch_load_i32(0));$1=HEAPU16[$1+414>>1]&3;label$17:{if($1>>>0>1){$2=$3;$7=$12;break label$17}$5=$1-1|0?$5<$9?$5:$9:$5>$9?$5:$9;$9=$5;$2=(wasm2js_scratch_store_f32($5),wasm2js_scratch_load_i32(0));$7=$2}HEAP32[$4+24>>2]=0;HEAP32[$4+28>>2]=0;HEAP32[$4+20>>2]=$7;HEAP32[$4+44>>2]=0;HEAP32[$4+48>>2]=0;HEAP32[$4+40>>2]=1065353216;HEAP32[$4+52>>2]=0;HEAP32[$4+56>>2]=0;HEAP32[$4+60>>2]=1065353216;HEAP32[$4+4>>2]=0;HEAP32[$4+8>>2]=0;HEAP32[$4+12>>2]=0;HEAP32[$4+16>>2]=0;HEAP32[$4+32>>2]=0;HEAP32[$4+36>>2]=0;HEAP32[$4>>2]=$2;$8=(wasm2js_scratch_store_f32(Math_fround(Math_fround($19-Math_fround($22*$5))*Math_fround(.5))),wasm2js_scratch_load_i32(0));$1=HEAP32[$15+412>>2];$17=(wasm2js_scratch_store_f32(Math_fround(Math_fround($21-Math_fround($18*$9))*Math_fround(.5))),wasm2js_scratch_load_i32(0));break label$7}break label$3}$7=$2;$17=0}$15=$8;$8=($1>>>8&3)+ -1|0;$5=Math_fround(Math_fround(HEAPF32[$4+112>>2]-HEAPF32[$4+48>>2])-(wasm2js_scratch_store_i32(0,$8>>>0<2?0:$15),wasm2js_scratch_load_f32()));$18=HEAPF32[$4+56>>2];$19=HEAPF32[$4+120>>2];$15=($1>>>10&3)+ -1|0;$9=Math_fround(Math_fround(HEAPF32[$4+116>>2]-HEAPF32[$4+52>>2])-(wasm2js_scratch_store_i32(0,$15>>>0<2?0:$17),wasm2js_scratch_load_f32()));HEAPF32[$16>>2]=$8>>>0>1?Math_fround(Math_fround(Math_fround(1)/(wasm2js_scratch_store_i32(0,$2),wasm2js_scratch_load_f32()))*$5):Math_fround($5/(wasm2js_scratch_store_i32(0,$3),wasm2js_scratch_load_f32()));$2=Math_imul($10,576)+$6|0;HEAP32[$2+12>>2]=1065353216;HEAPF32[$2+8>>2]=$19-$18;HEAPF32[$2+4>>2]=$15>>>0>1?Math_fround(Math_fround(Math_fround(1)/(wasm2js_scratch_store_i32(0,$7),wasm2js_scratch_load_f32()))*$9):Math_fround($9/(wasm2js_scratch_store_i32(0,$12),wasm2js_scratch_load_f32()));HEAP32[(Math_imul($10,576)+$6|0)+412>>2]=$1|2097152}dmGui__RemoveFromNodeList_28dmGui__Scene__2c_20dmGui__InternalNode__29($0,$16);$2=65535;$8=$0+366|0;$3=$11+564|0;$7=HEAPU16[(($13|0)==65535?$8:$3)>>1];$1=0;label$25:{if(($7|0)==65535){break label$25}$1=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$1|0)/576>>>0<=$7>>>0){break label$3}$1=$1+Math_imul($7,576)|0}if($11){$2=HEAPU16[$11+554>>1];$8=$3;$3=$11+562|0}else{$3=$0+364|0}HEAP16[$20+560>>1]=$2;if($1){$2=HEAPU16[$1+554>>1];label$29:{if(($2|0)==HEAPU16[$8>>1]){HEAP16[$8>>1]=HEAPU16[$14+554>>1];HEAP16[(Math_imul($10,576)+$6|0)+558>>1]=65535;$2=HEAPU16[$1+554>>1];break label$29}$3=HEAPU16[$1+558>>1];if(($3|0)==65535){break label$29}$7=HEAP32[$0+36>>2];$0=HEAP32[$0+32>>2];if(($7-$0|0)/576>>>0<=$3>>>0){break label$3}HEAP16[($0+Math_imul($3,576)|0)+556>>1]=HEAPU16[$14+554>>1];HEAP16[(Math_imul($10,576)+$6|0)+558>>1]=$3}HEAP16[$1+558>>1]=HEAPU16[$14+554>>1];HEAP16[(Math_imul($10,576)+$6|0)+556>>1]=$2;$12=0;break label$4}$1=Math_imul($10,576)+$6|0;HEAP16[$1+556>>1]=65535;HEAP16[$1+558>>1]=HEAPU16[$3>>1];$1=HEAPU16[$3>>1];label$31:{if(($1|0)==65535){$1=HEAPU16[$14+554>>1];break label$31}$2=HEAP32[$0+36>>2];$0=HEAP32[$0+32>>2];if(($2-$0|0)/576>>>0<=$1>>>0){break label$3}$0=$0+Math_imul($1,576)|0;$1=HEAPU16[$14+554>>1];HEAP16[$0+556>>1]=$1}HEAP16[$3>>1]=$1;$12=0;if(HEAPU16[$8>>1]!=65535){break label$4}HEAP16[$8>>1]=HEAPU16[$14+554>>1]}global$0=$4+128|0;return $12}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}function propagatemark($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$3=HEAP32[$0+36>>2];HEAP8[$3+5|0]=HEAPU8[$3+5|0]|4;label$1:{label$2:{label$3:{label$4:{$1=HEAPU8[$3+4|0]+ -5|0;label$5:{if($1>>>0>4){break label$5}label$6:{switch($1-1|0){default:HEAP32[$0+36>>2]=HEAP32[$3+24>>2];$1=HEAP32[$3+8>>2];label$10:{if(!$1){break label$10}label$12:{if(!(HEAPU8[$1+5|0]&3)){break label$12}reallymarkobject($0,$1);$1=HEAP32[$3+8>>2];if($1){break label$12}break label$10}if(HEAPU8[$1+6|0]&8){break label$10}$2=luaT_gettm($1,3,HEAP32[$0+200>>2]);if(!$2|HEAP32[$2+8>>2]!=4){break label$10}$2=HEAP32[$2>>2]+16|0;$1=strchr($2,107);$2=strchr($2,118);if($1|$2){HEAP8[$3+5|0]=HEAPU8[$3+5|0]&231|((($2|0)!=0)<<4|(($1|0)!=0)<<3);HEAP32[$3+24>>2]=HEAP32[$0+44>>2];HEAP32[$0+44>>2]=$3}if($2?$1:0){break label$2}$6=($1|0)!=0;if($2){break label$4}}$1=HEAP32[$3+28>>2];if($1){while(1){$1=$1+ -1|0;$2=HEAP32[$3+12>>2]+($1<<4)|0;label$17:{if(HEAP32[$2+8>>2]<4){break label$17}$2=HEAP32[$2>>2];if(!(HEAPU8[$2+5|0]&3)){break label$17}reallymarkobject($0,$2)}if($1){continue}break}}$1=-1<>2]+($1<<5)|0;$4=HEAP32[$1+8>>2];label$21:{if($4){if(($4|0)<4){break label$21}$1=HEAP32[$1>>2];if(!(HEAPU8[$1+5|0]&3)){break label$21}reallymarkobject($0,$1);break label$21}if(HEAP32[$1+24>>2]<4){break label$21}HEAP32[$1+24>>2]=11}$1=$2+ -1|0;if($2){continue}break label$18}}while(1){$2=$1;$1=HEAP32[$3+16>>2]+($1<<5)|0;$7=$1;$5=HEAP32[$1+24>>2];$4=HEAP32[$1+8>>2];label$24:{if(!$4){if(($5|0)<4){break label$24}HEAP32[$7+24>>2]=11;break label$24}label$26:{if(($5|0)<4){break label$26}$5=HEAP32[$1+16>>2];if(!(HEAPU8[$5+5|0]&3)){break label$26}reallymarkobject($0,$5);$4=HEAP32[$1+8>>2]}if(($4|0)<4){break label$24}$1=HEAP32[$1>>2];if(!(HEAPU8[$1+5|0]&3)){break label$24}reallymarkobject($0,$1)}$1=$2+ -1|0;if($2){continue}break}}$1=0;break label$3;case 0:HEAP32[$0+36>>2]=HEAP32[$3+8>>2];$2=HEAP32[$3+12>>2];if(HEAPU8[$2+5|0]&3){reallymarkobject($0,$2)}label$28:{if(HEAPU8[$3+6|0]){$1=0;$2=HEAPU8[$3+7|0];if(!$2){$2=0;break label$28}while(1){$4=($1<<4)+$3|0;label$32:{if(HEAP32[$4+32>>2]<4){break label$32}$4=HEAP32[$4+24>>2];if(!(HEAPU8[$4+5|0]&3)){break label$32}reallymarkobject($0,$4);$2=HEAPU8[$3+7|0]}$1=$1+1|0;if($1>>>0<($2&255)>>>0){continue}break}break label$28}$2=HEAP32[$3+16>>2];if(HEAPU8[$2+5|0]&3){reallymarkobject($0,$2)}$1=0;$2=HEAPU8[$3+7|0];if(!$2){$2=0;break label$28}while(1){$4=HEAP32[(($1<<2)+$3|0)+20>>2];if(HEAPU8[$4+5|0]&3){reallymarkobject($0,$4);$2=HEAPU8[$3+7|0]}$1=$1+1|0;if($1>>>0<($2&255)>>>0){continue}break}}$0=$2&255;if(HEAPU8[$3+6|0]){return($0<<4)+24|0}return($0<<2)+20|0;case 2:HEAP32[$0+36>>2]=HEAP32[$3+108>>2];HEAP32[$3+108>>2]=HEAP32[$0+40>>2];HEAP32[$0+40>>2]=$3;HEAP8[$3+5|0]=HEAPU8[$3+5|0]&251;label$38:{if(HEAP32[$3+80>>2]<4){break label$38}$2=HEAP32[$3+72>>2];if(!(HEAPU8[$2+5|0]&3)){break label$38}reallymarkobject($0,$2)}$4=HEAP32[$3+8>>2];$2=$4;$1=HEAP32[$3+40>>2];$6=HEAP32[$3+20>>2];if($1>>>0<=$6>>>0){$2=$4;while(1){$5=HEAP32[$1+8>>2];$2=$2>>>0<$5>>>0?$5:$2;$1=$1+24|0;if($1>>>0<=$6>>>0){continue}break}}$1=HEAP32[$3+32>>2];if($1>>>0<$4>>>0){while(1){label$43:{if(HEAP32[$1+8>>2]<4){break label$43}$6=HEAP32[$1>>2];if(!(HEAPU8[$6+5|0]&3)){break label$43}reallymarkobject($0,$6);$4=HEAP32[$3+8>>2]}$1=$1+16|0;if($1>>>0<$4>>>0){continue}break}}if($1>>>0<=$2>>>0){while(1){HEAP32[$1+8>>2]=0;$1=$1+16|0;if($1>>>0<=$2>>>0){continue}break}}$0=HEAP32[$3+48>>2];label$46:{if(($0|0)>2e4){break label$46}$2=$2-HEAP32[$3+32>>2]|0;if(!(($0|0)<17|(HEAP32[$3+20>>2]-HEAP32[$3+40>>2]|0)/24<<2>=($0|0))){luaD_reallocCI($3,$0>>>1|0)}$0=HEAP32[$3+44>>2];if($2>>2>=($0|0)|($0|0)<91){break label$46}luaD_reallocstack($3,$0>>>1|0)}return(Math_imul(HEAP32[$3+48>>2],24)+(HEAP32[$3+44>>2]<<4)|0)+120|0;case 1:break label$5;case 3:break label$6}}HEAP32[$0+36>>2]=HEAP32[$3+68>>2];$2=HEAP32[$3+32>>2];if($2){HEAP8[$2+5|0]=HEAPU8[$2+5|0]&252}$2=HEAP32[$3+40>>2];if(($2|0)>=1){$1=0;while(1){$4=HEAP32[$3+8>>2]+($1<<4)|0;label$51:{if(HEAP32[$4+8>>2]<4){break label$51}$4=HEAP32[$4>>2];if(!(HEAPU8[$4+5|0]&3)){break label$51}reallymarkobject($0,$4);$2=HEAP32[$3+40>>2]}$1=$1+1|0;if(($1|0)<($2|0)){continue}break}}$2=HEAP32[$3+36>>2];if(($2|0)>=1){$1=0;while(1){$4=HEAP32[HEAP32[$3+28>>2]+($1<<2)>>2];if($4){HEAP8[$4+5|0]=HEAPU8[$4+5|0]&252;$2=HEAP32[$3+36>>2]}$1=$1+1|0;if(($1|0)<($2|0)){continue}break}}$2=HEAP32[$3+52>>2];if(($2|0)>=1){$1=0;while(1){$4=HEAP32[HEAP32[$3+16>>2]+($1<<2)>>2];if(!(!$4|!(HEAPU8[$4+5|0]&3))){reallymarkobject($0,$4);$2=HEAP32[$3+52>>2]}$1=$1+1|0;if(($1|0)<($2|0)){continue}break}}$0=HEAP32[$3+56>>2];if(($0|0)>=1){$1=0;while(1){$2=HEAP32[HEAP32[$3+24>>2]+Math_imul($1,12)>>2];if($2){HEAP8[$2+5|0]=HEAPU8[$2+5|0]&252;$0=HEAP32[$3+56>>2]}$1=$1+1|0;if(($1|0)<($0|0)){continue}break}$2=HEAP32[$3+52>>2]}$2=((Math_imul($0,12)+(HEAP32[$3+40>>2]<<4)|0)+(HEAP32[$3+36>>2]+(HEAP32[$3+48>>2]+(HEAP32[$3+44>>2]+$2|0)|0)<<2)|0)+76|0}return $2}$2=-1<>2]+($2<<5)|0;if(!(HEAP32[$2+8>>2]|HEAP32[$2+24>>2]<4)){HEAP32[$2+24>>2]=11}$2=$0+ -1|0;$1=1;if($0){continue}break label$3}}while(1){$4=$2;$2=HEAP32[$3+16>>2]+($2<<5)|0;$5=$2;$1=HEAP32[$2+24>>2];label$65:{if(HEAP32[$2+8>>2]){if(($1|0)<4){break label$65}$2=HEAP32[$2+16>>2];if(!(HEAPU8[$2+5|0]&3)){break label$65}reallymarkobject($0,$2);break label$65}if(($1|0)<4){break label$65}HEAP32[$5+24>>2]=11}$2=$4+ -1|0;$1=1;if($4){continue}break}}if(!($1|$6)){break label$1}}HEAP8[$3+5|0]=HEAPU8[$3+5|0]&251}return((HEAP32[$3+28>>2]<<4)+(32<>2]);$4=!glfwOpenWindow(HEAP32[$1+32>>2],HEAP32[$1+36>>2],8,8,8,8,32,8,(HEAPU8[$1+48|0]?65538:65537)|0);$3=-2;if($4){break label$4}glfwSetWindowSizeCallback(711);glfwSetWindowCloseCallback(712);glfwSetWindowFocusCallback(713);glfwSetWindowIconifyCallback(714);glfwSwapInterval(1);if(HEAPU8[HEAP32[147660]+96|0]&8){$3=glGetError()|0;if($3){break label$1}}HEAP32[$0+4>>2]=HEAP32[$1>>2];HEAP32[$0+8>>2]=HEAP32[$1+4>>2];HEAP32[$0+12>>2]=HEAP32[$1+8>>2];HEAP32[$0+16>>2]=HEAP32[$1+12>>2];HEAP32[$0+20>>2]=HEAP32[$1+16>>2];HEAP32[$0+24>>2]=HEAP32[$1+20>>2];HEAP32[$0+28>>2]=HEAP32[$1+24>>2];HEAP32[$0+32>>2]=HEAP32[$1+28>>2];HEAP8[$0+96|0]=HEAPU8[$0+96|0]|4;HEAP32[$0+36>>2]=HEAP32[$1+32>>2];HEAP32[$0+40>>2]=HEAP32[$1+36>>2];glfwGetWindowSize($2+92|0,$2+88|0);HEAP32[$0+44>>2]=HEAP32[$2+92>>2];$3=HEAP32[$2+88>>2];HEAP32[$0+52>>2]=0;HEAP32[$0+48>>2]=$3;if(HEAPU8[$1+49|0]){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,79677,79808,0);HEAP32[$2+64>>2]=glGetString(7937);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,79677,79823,$2- -64|0);HEAP32[$2+48>>2]=glGetString(7938);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,79677,79837,$2+48|0);HEAP32[$2+32>>2]=glGetString(7936);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,79677,79850,$2+32|0);HEAP32[$2+16>>2]=glGetString(7939);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,79677,79862,$2+16|0)}$1=glGetString(7939)|0;if(!HEAP32[147659]){$3=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,80294,8);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($3+($2+96|0)|0,79899,256-$3|0);$3=0;label$9:{if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29($2+96|0,$1)){$3=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,79878,255);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($3+($2+96|0)|0,80318,256-$3|0);$3=glfwGetProcAddress($2+96|0)|0;if($3){break label$9}}$4=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,80302,8);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($4+($2+96|0)|0,79899,256-$4|0);if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29($2+96|0,$1)){$3=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,79878,255);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($3+($2+96|0)|0,80322,256-$3|0);$3=glfwGetProcAddress($2+96|0)|0;if($3){break label$9}}$4=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,80310,8);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($4+($2+96|0)|0,79899,256-$4|0);if(!dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29($2+96|0,$1)){break label$9}$3=dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($2+96|0,79878,255);dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($3+($2+96|0)|0,80326,256-$3|0);$3=glfwGetProcAddress($2+96|0)|0}HEAP32[147659]=$3}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(79919,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|61440}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(79952,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|192}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(79984,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|256}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(80016,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|512}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(80048,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|65536}HEAP32[$0+88>>2]=16;HEAP8[$0+96|0]=HEAPU8[$0+96|0]|2;HEAP32[$2+84>>2]=1024;glGetIntegerv(3379,$2+84|0);HEAP32[$0+56>>2]=HEAP32[$2+84>>2];label$17:{if(!(HEAPU8[HEAP32[147660]+96|0]&8)){break label$17}if(!glGetError()){break label$17}while(1){if(glGetError()){continue}break}}HEAP32[$2+80>>2]=65536;glGetIntegerv(33e3,$2+80|0);$3=HEAP32[$2+80>>2];HEAP32[$0+68>>2]=($3|0)>65536?$3:65536;label$19:{if(!(HEAPU8[HEAP32[147660]+96|0]&8)){break label$19}if(!glGetError()){break label$19}while(1){if(glGetError()){continue}break}}HEAP32[$2+76>>2]=65536;glGetIntegerv(33001,$2+76|0);$3=HEAP32[$2+76>>2];HEAP32[$0+72>>2]=($3|0)>65536?$3:65536;label$21:{if(!(HEAPU8[HEAP32[147660]+96|0]&8)){break label$21}if(!glGetError()){break label$21}while(1){if(glGetError()){continue}break}}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(80048,$1)){HEAP32[$0+80>>2]=HEAP32[$0+80>>2]|65536}if(dmGraphics__IsExtensionSupported_28char_20const__2c_20unsigned_20char_20const__29(80084,$1)){HEAP32[$0+84>>2]=HEAP32[$0+84>>2]|2}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,83810,83819,0);$3=0}global$0=$2+432|0;return $3|0}__assert_fail(79713,79721,646,79782);abort()}__assert_fail(79799,79721,647,79782);abort()}dmGraphics__LogGLError_28int_2c_20char_20const__2c_20int_29($3,79782,760);__assert_fail(79806,79721,760,79782);abort()}function dmGameSystem__RenderParticlefxNodes_28dmGui__Scene__2c_20dmGui__RenderEntry_20const__2c_20Vectormath__Aos__Matrix4_20const__2c_20float_20const__2c_20dmGui__StencilScope_20const___2c_20unsigned_20int_2c_20void__29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0,$9=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=Math_fround(0);$7=global$0-80|0;global$0=$7;$16=HEAP32[$1+12>>2];$9=HEAP32[$6+8>>2];label$1:{label$2:{label$3:{if((dmGui__GetNodeType_28dmGui__Scene__2c_20unsigned_20int_29($0,HEAP32[$1+8>>2])|0)==5){$15=HEAP32[$9>>2];$17=(HEAP32[$9+4>>2]-$15|0)/752|0;$8=$17+1|0;if((HEAP32[$9+8>>2]-$15|0)/752>>>0<$8>>>0){break label$1}$12=HEAP32[HEAP32[$9+60>>2]+28>>2];$10=HEAP32[$9+72>>2];$8=Math_imul($8,752);HEAP32[$9+4>>2]=$8+$15;if(($8|0)/752>>>0<=$17>>>0){break label$3}$20=Math_imul($12,216)-$10|0;$8=HEAP32[$6+12>>2];HEAP32[$6+12>>2]=$8+1;$12=Math_imul($17,752)+$15|0;HEAP32[$12+736>>2]=$8;dmRender__RenderObject__Init_28_29($12);HEAP32[$12+644>>2]=HEAP32[$9+32>>2];$8=HEAP32[$9+36>>2];HEAP32[$12+688>>2]=1;HEAP32[$12+640>>2]=$8;$21=$9+44|0;HEAP32[$12+724>>2]=(HEAP32[$21>>2]-HEAP32[$9+40>>2]|0)/36;HEAP32[$12+652>>2]=HEAP32[$6+4>>2];HEAP32[$12+656>>2]=HEAP32[$16+72>>2];if(!$5){break label$2}$8=0;while(1){$10=($8<<4)+$1|0;if(!dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($0,HEAP32[$10+8>>2])){$10=HEAP32[$10+12>>2];$18=dmParticle__GetEmitterVertexCount_28dmParticle__Context__2c_20unsigned_20int_2c_20unsigned_20int_29(HEAP32[$9+60>>2],HEAP32[$10+84>>2],HEAP32[$10+88>>2]);dmTransform__ToTransform_28Vectormath__Aos__Matrix4_20const__29($7+32|0,($8<<6)+$2|0);$14=HEAP32[$10+84>>2];$13=HEAP32[$9+60>>2];$22=HEAPF32[$7+64>>2];HEAP32[$7+24>>2]=HEAP32[$7+56>>2];$19=HEAP32[$7+52>>2];HEAP32[$7+16>>2]=HEAP32[$7+48>>2];HEAP32[$7+20>>2]=$19;dmParticle__SetPosition_28dmParticle__Context__2c_20unsigned_20int_2c_20Vectormath__Aos__Point3_20const__29($13,$14,$7+16|0);$14=HEAP32[$10+84>>2];$13=HEAP32[$9+60>>2];$19=HEAP32[$7+36>>2];HEAP32[$7+16>>2]=HEAP32[$7+32>>2];HEAP32[$7+20>>2]=$19;$19=HEAP32[$7+44>>2];HEAP32[$7+24>>2]=HEAP32[$7+40>>2];HEAP32[$7+28>>2]=$19;dmParticle__SetRotation_28dmParticle__Context__2c_20unsigned_20int_2c_20Vectormath__Aos__Quat_20const__29($13,$14,$7+16|0);dmParticle__SetScale_28dmParticle__Context__2c_20unsigned_20int_2c_20float_29(HEAP32[$9+60>>2],HEAP32[$10+84>>2],$22);$11=$11+$18|0}$8=$8+1|0;if(($8|0)!=($5|0)){continue}break}break label$2}__assert_fail(41563,41335,888,41604);abort()}__assert_fail(42525,42362,430,42202);abort()}$18=$9+40|0;label$7:{label$8:{$14=$9+48|0;$8=HEAP32[$14>>2];$10=HEAP32[$9+44>>2];$2=($20>>>0)/36|0;$2=$11>>>0<$2>>>0?$11:$2;if(($8-$10|0)/36>>>0<$2>>>0){if(HEAP8[$9+52|0]&1){break label$8}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29((($8-HEAP32[$18>>2]|0)/36|0)+($2>>>0>128?$2:128)|0,36,$18,$14,$21);$10=HEAP32[$21>>2]}if(!$5){$2=0;break label$7}$2=0;$8=0;while(1){$11=($8<<4)+$1|0;$13=HEAP32[$11+8>>2];if(!dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($0,$13)){dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($7+32|0,$0,$13,3);HEAP32[$7+28>>2]=HEAP32[($8<<2)+$3>>2];HEAP32[$7+24>>2]=HEAP32[$7+40>>2];$13=HEAP32[$7+36>>2];HEAP32[$7+16>>2]=HEAP32[$7+32>>2];HEAP32[$7+20>>2]=$13;$11=HEAP32[$11+12>>2];HEAP32[$7+12>>2]=0;dmParticle__GenerateVertexData_28dmParticle__Context__2c_20float_2c_20unsigned_20int_2c_20unsigned_20int_2c_20Vectormath__Aos__Vector4_20const__2c_20void__2c_20unsigned_20int_2c_20unsigned_20int__2c_20dmParticle__ParticleVertexFormat_29(HEAP32[$9+60>>2],HEAPF32[$9+76>>2],HEAP32[$11+84>>2],HEAP32[$11+88>>2],$7+16|0,$10,$20,$7+12|0,1);$11=HEAP32[$7+12>>2];$20=$20-$11|0;$11=($11>>>0)/36|0;$2=$11+$2|0;$10=Math_imul($11,36)+$10|0}$8=$8+1|0;if(($8|0)!=($5|0)){continue}break}break label$7}__assert_fail(42438,42362,444,42513);abort()}HEAP32[$9+72>>2]=HEAP32[$9+72>>2]+Math_imul($2,36);$1=Math_imul($17,752)+$15|0;HEAP32[$1+728>>2]=$2;$0=HEAP32[(HEAP32[$16+68>>2]<<2)+584516>>2];label$13:{if($0>>>0<4){$0=$0<<2;HEAP32[$1+700>>2]=HEAP32[$0+42696>>2];HEAP32[$1+696>>2]=HEAP32[$0+42680>>2];$0=HEAPU8[$1+734|0]|1;HEAP8[$1+734|0]=$0;if(HEAP32[$16+80>>2]){$2=0;while(1){$0=HEAP32[$16+76>>2]+($2<<5)|0;dmRender__EnableRenderObjectConstant_28dmRender__RenderObject__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__29($12,HEAP32[$0>>2],HEAP32[$0+4>>2],$0+16|0);$2=$2+1|0;if($2>>>0>2]){continue}break}$0=HEAPU8[$1+734|0]}$3=HEAP32[$4>>2];HEAP8[$1+734|0]=$0|2;$0=Math_imul($17,752)+$15|0;$1=$0;label$17:{label$18:{if($3){HEAP32[$1+704>>2]=5;HEAP32[$0+716>>2]=2;HEAP32[$0+708>>2]=0;HEAP32[$0+712>>2]=2;$2=$0+720|0;$1=HEAPU8[$3|0]|HEAP32[$0+720>>2]&-256;HEAP32[$2>>2]=$1;$1=$1&-65281|HEAPU8[$3+1|0]<<8;HEAP32[$0+720>>2]=$1;$1=$1&-16711681|HEAPU8[$3+2|0]<<16;HEAP32[$0+720>>2]=$1;HEAP32[$0+720>>2]=$1&-251658241|(HEAPU8[$3+3|0]&15)<<24;if(!HEAPU8[$6+16|0]){break label$17}HEAP8[$6+16|0]=0;$0=HEAP32[$0+720>>2]|268435456;break label$18}HEAP32[$1+704>>2]=7;HEAP32[$0+716>>2]=0;HEAP32[$0+708>>2]=0;HEAP32[$0+712>>2]=0;$2=$0+720|0;$0=HEAP32[$2>>2]&-268435456|268435200}HEAP32[$2>>2]=$0}$0=HEAP32[$18>>2];$1=($10-$0|0)/36|0;if((HEAP32[$14>>2]-$0|0)/36>>>0<$1>>>0){break label$13}HEAP32[$21>>2]=$0+Math_imul($1,36);global$0=$7+80|0;return}HEAP32[$7>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,40265,42213,$7);__assert_fail(42237,41335,726,42239);abort()}}__assert_fail(42578,42362,457,42597);abort()}function dmScript__Slerp_28lua_State__29($0){$0=$0|0;var $1=0,$2=Math_fround(0),$3=Math_fround(0),$4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=Math_fround(0),$18=0;$5=global$0-192|0;global$0=$5;$4=dmScript__GetUserType_28lua_State__2c_20int_29($0,2);label$1:{if(($4|0)==HEAP32[279888]){break label$1}$1=1;if(($4|0)==HEAP32[279889]){break label$1}$1=2;if(($4|0)==HEAP32[279890]){break label$1}$1=3;if(($4|0)==HEAP32[279891]){break label$1}$1=($4|0)==HEAP32[279892]?4:5}$4=dmScript__GetUserType_28lua_State__2c_20int_29($0,3);label$2:{if(($4|0)==HEAP32[279888]){break label$2}$16=1;if(($4|0)==HEAP32[279889]){break label$2}$16=2;if(($4|0)==HEAP32[279890]){break label$2}$16=3;if(($4|0)==HEAP32[279891]){break label$2}$16=($4|0)==HEAP32[279892]?4:5}label$3:{label$4:{if(($1|0)!=($16|0)){break label$4}$18=luaL_checknumber($0,1);if($1>>>0>2){break label$4}$6=Math_fround($18);label$5:{switch($1-1|0){case 1:$1=lua_touserdata($0,2);$4=lua_touserdata($0,3);$7=HEAPF32[$1>>2];$11=HEAPF32[$4>>2];$2=HEAPF32[$1+4>>2];$12=HEAPF32[$4+4>>2];$8=HEAPF32[$1+8>>2];$13=HEAPF32[$4+8>>2];$9=HEAPF32[$1+12>>2];$14=HEAPF32[$4+12>>2];$3=Math_fround(Math_fround(Math_fround(Math_fround($7*$11)+Math_fround($2*$12))+Math_fround($8*$13))+Math_fround($9*$14));if(!!($3>2]=Math_fround($14*$3)+Math_fround($9*$6);HEAPF32[$1+8>>2]=Math_fround($13*$3)+Math_fround($8*$6);HEAPF32[$1+4>>2]=Math_fround($12*$3)+Math_fround($2*$6);HEAPF32[$1>>2]=Math_fround($11*$3)+Math_fround($7*$6);lua_getfield($0,-1e4,117536);lua_setmetatable($0,-2);$0=1;break label$3;case 0:$1=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,2,HEAP32[279889],0);$2=HEAPF32[$1+8>>2];$3=HEAPF32[$1>>2];$7=HEAPF32[$1+4>>2];label$11:{if(!($3!=$3|$7!=$7|$2!=$2)){$8=HEAPF32[$1+12>>2];if($8==$8){break label$11}}$8=HEAPF32[$1+12>>2];HEAPF64[$5+104>>3]=$2;HEAPF64[$5+96>>3]=$7;HEAPF64[$5+112>>3]=$8;HEAPF64[$5+88>>3]=$3;HEAP32[$5+80>>2]=2;luaL_error($0,117725,$5+80|0)}$4=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[279889],0);$3=HEAPF32[$4+8>>2];$8=HEAPF32[$4>>2];$7=HEAPF32[$4+4>>2];label$13:{if(!($8!=$8|$7!=$7|$3!=$3)){$9=HEAPF32[$4+12>>2];if($9==$9){break label$13}}$2=HEAPF32[$4+12>>2];HEAPF64[$5+56>>3]=$3;HEAPF64[$5+48>>3]=$7;HEAPF64[$5- -64>>3]=$2;HEAPF64[$5+40>>3]=$8;HEAP32[$5+32>>2]=3;luaL_error($0,117725,$5+32|0);$9=HEAPF32[$4+12>>2];$3=HEAPF32[$4+8>>2];$7=HEAPF32[$4+4>>2];$8=HEAPF32[$4>>2]}$11=HEAPF32[$1>>2];$12=HEAPF32[$1+4>>2];$13=HEAPF32[$1+8>>2];$14=HEAPF32[$1+12>>2];$2=Math_fround(Math_fround(Math_fround(Math_fround($11*$8)+Math_fround($12*$7))+Math_fround($13*$3))+Math_fround($14*$9));label$15:{if(!!($2>2]=Math_fround($9*$2)+Math_fround($14*$6);HEAPF32[$1+8>>2]=Math_fround($3*$2)+Math_fround($13*$6);HEAPF32[$1+4>>2]=Math_fround($7*$2)+Math_fround($12*$6);HEAPF32[$1>>2]=Math_fround($8*$2)+Math_fround($11*$6);lua_getfield($0,-1e4,117520);lua_setmetatable($0,-2);$0=1;break label$3;default:break label$5}}$1=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,2,HEAP32[279888],0);$2=HEAPF32[$1+8>>2];$3=HEAPF32[$1>>2];$7=HEAPF32[$1+4>>2];if(!($2==$2?!($3!=$3|$7!=$7):0)){HEAPF64[$5+184>>3]=$2;HEAPF64[$5+176>>3]=$7;HEAP32[$5+160>>2]=2;HEAPF64[$5+168>>3]=$3;luaL_error($0,117635,$5+160|0)}$4=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[279888],0);$3=HEAPF32[$4+8>>2];$8=HEAPF32[$4>>2];$7=HEAPF32[$4+4>>2];if(!($3==$3?!($8!=$8|$7!=$7):0)){HEAPF64[$5+152>>3]=$3;HEAPF64[$5+144>>3]=$7;HEAP32[$5+128>>2]=3;HEAPF64[$5+136>>3]=$8;luaL_error($0,117635,$5+128|0);$7=HEAPF32[$4+4>>2];$8=HEAPF32[$4>>2];$3=HEAPF32[$4+8>>2]}$10=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$12=HEAPF32[$1+8>>2];$2=Math_fround(Math_fround(Math_fround($10*$8)+Math_fround($11*$7))+Math_fround($12*$3));label$19:{if(!!($2>2]=Math_fround($3*$2)+Math_fround($12*$6);HEAPF32[$1+4>>2]=Math_fround($7*$2)+Math_fround($11*$6);HEAPF32[$1>>2]=Math_fround($8*$2)+Math_fround($10*$6);lua_getfield($0,-1e4,117504);lua_setmetatable($0,-2);$0=1;break label$3}HEAP32[$5+20>>2]=117536;HEAP32[$5+16>>2]=117568;HEAP32[$5+12>>2]=117504;HEAP32[$5+8>>2]=117568;HEAP32[$5+4>>2]=118981;HEAP32[$5>>2]=117568;$0=luaL_error($0,119467,$5)}global$0=$5+192|0;return $0|0}function b2PrismaticJoint__SolvePositionConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0);$3=global$0-80|0;global$0=$3;$7=HEAPF32[$0+156>>2];$4=HEAPF32[$0+72>>2];$19=HEAP32[$1+24>>2];$8=$19+Math_imul(HEAP32[$0+144>>2],12)|0;$27=HEAPF32[$8+8>>2];$2=cosf($27);$10=HEAPF32[$0+152>>2];$22=HEAPF32[$0+68>>2];$12=sinf($27);$6=HEAPF32[$0+164>>2];$15=HEAPF32[$0+80>>2];$19=$19+Math_imul(HEAP32[$0+148>>2],12)|0;$28=HEAPF32[$19+8>>2];$11=cosf($28);$16=HEAPF32[$0+160>>2];$13=HEAPF32[$0+76>>2];$14=sinf($28);$17=HEAPF32[$0+92>>2];$18=HEAPF32[$0+96>>2];$29=Math_fround(Math_fround($2*$17)-Math_fround($12*$18));$31=HEAPF32[$19>>2];$16=Math_fround($13-$16);$15=Math_fround($15-$6);$6=Math_fround(Math_fround($11*$16)-Math_fround($14*$15));$32=HEAPF32[$8>>2];$13=Math_fround($22-$10);$7=Math_fround($4-$7);$4=Math_fround(Math_fround($2*$13)-Math_fround($12*$7));$10=Math_fround(Math_fround(Math_fround($31+$6)-$32)-$4);$22=Math_fround(Math_fround($12*$17)+Math_fround($2*$18));$33=HEAPF32[$19+4>>2];$14=Math_fround(Math_fround($14*$16)+Math_fround($11*$15));$34=HEAPF32[$8+4>>2];$15=Math_fround(Math_fround($12*$13)+Math_fround($2*$7));$9=Math_fround(Math_fround(Math_fround($33+$14)-$34)-$15);$7=Math_fround(Math_fround($29*$10)+Math_fround($22*$9));$20=Math_fround(-$7);$11=$7>Math_fround(0)?$7:$20;$4=Math_fround($4+$10);$13=Math_fround($15+$9);$15=Math_fround(Math_fround($22*$4)-Math_fround($29*$13));$17=HEAPF32[$0+84>>2];$18=HEAPF32[$0+88>>2];$16=Math_fround(Math_fround($2*$17)-Math_fround($12*$18));$24=Math_fround($16*$13);$13=Math_fround(Math_fround($12*$17)+Math_fround($2*$18));$25=Math_fround($13*$4);$4=Math_fround(Math_fround($28-$27)-HEAPF32[$0+100>>2]);$19=$4>Math_fround(0);$26=Math_fround(-$4);$17=Math_fround(Math_fround($6*$22)-Math_fround($14*$29));$23=Math_fround($14*$16);$21=Math_fround($6*$13);$12=HEAPF32[$0+180>>2];$14=HEAPF32[$0+176>>2];$18=HEAPF32[$0+172>>2];$30=HEAPF32[$0+168>>2];label$1:{if(!HEAPU8[$0+136|0]){$8=0;break label$1}$8=1;$2=Math_fround(Math_fround($16*$10)+Math_fround($13*$9));$6=HEAPF32[$0+124>>2];$5=HEAPF32[$0+120>>2];$10=Math_fround($6-$5);if(!!(($10>Math_fround(0)?$10:Math_fround(-$10))Math_fround(0)?$2:Math_fround(-$2);$11=$11>$5?$11:$5;$5=Math_fround(Math_max($2$6?$11:$6;$2=Math_fround(Math_fround($2-$5)+Math_fround(.004999999888241291));$5=Math_fround(Math_max($2=$6)){$8=0;break label$1}$2=Math_fround($2-$6);$11=$11>$2?$11:$2;$2=Math_fround($2+Math_fround(-.004999999888241291));$5=Math_fround(Math_max($2>2]=$21;HEAPF32[$3+60>>2]=$21;$21=Math_fround($14+$12);HEAPF32[$3+56>>2]=$21==Math_fround(0)?Math_fround(1):$21;HEAPF32[$3+72>>2]=Math_fround($10*$7)+Math_fround($23+Math_fround($6*$4));HEAPF32[$3+52>>2]=$2;HEAPF32[$3+44>>2]=$2;HEAPF32[$3+40>>2]=$9;$2=Math_fround(Math_fround($10*$24)+Math_fround($6*$25));HEAPF32[$3+64>>2]=$2;HEAPF32[$3+48>>2]=$2;HEAPF32[$3+16>>2]=-$5;HEAPF32[$3+12>>2]=$26;HEAPF32[$3+8>>2]=$20;b2Mat33__Solve33_28b2Vec3_20const__29_20const($3+24|0,$3+40|0,$3+8|0);$5=HEAPF32[$3+32>>2];$9=HEAPF32[$3+28>>2];$2=HEAPF32[$3+24>>2];break label$6}$5=Math_fround(0);$23=Math_fround(Math_fround($7*$2)-Math_fround($4*$9));$20=Math_fround($14+$12);$20=$20==Math_fround(0)?Math_fround(1):$20;$9=Math_fround(Math_fround($20*$9)-Math_fround($2*$2));$26=$9!=Math_fround(0)?Math_fround(Math_fround(1)/$9):$9;$9=Math_fround($23*$26);$2=Math_fround(Math_fround(Math_fround($4*$2)-Math_fround($20*$7))*$26)}$8=HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+144>>2],12)|0;$7=Math_fround(Math_fround($22*$2)+Math_fround($13*$5));HEAPF32[$8+4>>2]=$34-Math_fround($30*$7);$4=Math_fround(Math_fround($29*$2)+Math_fround($16*$5));HEAPF32[$8>>2]=$32-Math_fround($30*$4);$8=HEAP32[$1+24>>2];HEAPF32[($8+Math_imul(HEAP32[$0+144>>2],12)|0)+8>>2]=$27-Math_fround($14*Math_fround(Math_fround(Math_fround($15*$2)+$9)+Math_fround($6*$5)));$8=$8+Math_imul(HEAP32[$0+148>>2],12)|0;HEAPF32[$8+4>>2]=$33+Math_fround($18*$7);HEAPF32[$8>>2]=$31+Math_fround($18*$4);HEAPF32[(HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+148>>2],12)|0)+8>>2]=$28+Math_fround($12*Math_fround(Math_fround(Math_fround($17*$2)+$9)+Math_fround($10*$5)));global$0=$3+80|0;return $35<=Math_fround(.03490658849477768)&$11<=Math_fround(.004999999888241291)}function luaD_precall($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$8=global$0-112|0;global$0=$8;if(HEAP32[$1+8>>2]!=6){$6=luaT_gettmbyobj($0,$1,16);$7=HEAP32[$0+32>>2];if(HEAP32[$6+8>>2]!=6){luaG_typeerror($0,$1,123112)}$3=HEAP32[$0+8>>2];if($3>>>0>$1>>>0){while(1){$4=$3+ -16|0;$5=HEAP32[$4+4>>2];HEAP32[$3>>2]=HEAP32[$4>>2];HEAP32[$3+4>>2]=$5;HEAP32[$3+8>>2]=HEAP32[$4+8>>2];$3=$4;if($3>>>0>$1>>>0){continue}break}$3=HEAP32[$0+8>>2]}if((HEAP32[$0+28>>2]-$3|0)<=16){$4=HEAP32[$0+44>>2];luaD_reallocstack($0,($4|0)<1?$4+1|0:$4<<1)}HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;$4=HEAP32[$6+4>>2];$1=HEAP32[$0+32>>2]+($1-$7|0)|0;HEAP32[$1>>2]=HEAP32[$6>>2];HEAP32[$1+4>>2]=$4;HEAP32[$1+8>>2]=HEAP32[$6+8>>2]}$3=HEAP32[$1>>2];$4=HEAP32[$0+32>>2];HEAP32[HEAP32[$0+20>>2]+12>>2]=HEAP32[$0+24>>2];$13=$1-$4|0;label$6:{label$7:{label$8:{if(!HEAPU8[$3+6|0]){$11=HEAP32[$3+16>>2];$4=HEAPU8[$11+75|0];if((HEAP32[$0+28>>2]-HEAP32[$0+8>>2]|0)<=$4<<4){$1=HEAP32[$0+44>>2];luaD_reallocstack($0,($1|0)<($4|0)?$1+$4|0:$1<<1)}$4=HEAP32[$0+32>>2]+$13|0;$5=HEAPU8[$11+74|0];label$11:{if(!$5){$3=$4+16|0;$1=$3+(HEAPU8[$11+73|0]<<4)|0;if(HEAPU32[$0+8>>2]<=$1>>>0){break label$11}HEAP32[$0+8>>2]=$1;break label$11}$3=HEAP32[$0+8>>2];$1=$3-$4>>4;$4=$1+ -1|0;$9=$1;$1=HEAPU8[$11+73|0];if(($9|0)<=($1|0)){while(1){HEAP32[$3+8>>2]=0;$3=$3+16|0;$4=$4+1|0;if(($1|0)!=($4|0)){continue}break}HEAP32[$0+8>>2]=$3;$4=$1}if($5&4){$3=HEAP32[$0+16>>2];if(HEAPU32[$3+68>>2]>=HEAPU32[$3+64>>2]){luaC_step($0)}$9=$4-$1|0;$12=luaH_new($0,$9,1);if(($9|0)>=1){$3=0;$6=0-$9<<4;while(1){$7=$3<<4;$5=HEAP32[$0+8>>2];$3=$3+1|0;$10=luaH_setnum($0,$12,$3);$7=$7+($5+$6|0)|0;$5=HEAP32[$7+4>>2];HEAP32[$10>>2]=HEAP32[$7>>2];HEAP32[$10+4>>2]=$5;HEAP32[$10+8>>2]=HEAP32[$7+8>>2];if(($3|0)!=($9|0)){continue}break}}$3=luaH_setstr($0,$12,luaS_newlstr($0,123117,1));HEAP32[$3+8>>2]=3;HEAPF64[$3>>3]=$9|0;$3=HEAP32[$0+8>>2]}label$19:{if(!$1){break label$19}HEAP32[$0+8>>2]=$3+16;$7=$3-($4<<4)|0;$5=HEAP32[$7+4>>2];HEAP32[$3>>2]=HEAP32[$7>>2];HEAP32[$3+4>>2]=$5;$4=(0-$4<<4)+$3|0;HEAP32[$3+8>>2]=HEAP32[$4+8>>2];HEAP32[$4+8>>2]=0;$4=1;if(($1|0)==1){break label$19}while(1){$10=HEAP32[$0+8>>2];HEAP32[$0+8>>2]=$10+16;$6=$7+($4<<4)|0;$5=HEAP32[$6+4>>2];HEAP32[$10>>2]=HEAP32[$6>>2];HEAP32[$10+4>>2]=$5;HEAP32[$10+8>>2]=HEAP32[$6+8>>2];HEAP32[$6+8>>2]=0;$4=$4+1|0;if(($1|0)!=($4|0)){continue}break}}if($12){$1=HEAP32[$0+8>>2];HEAP32[$0+8>>2]=$1+16;HEAP32[$1+8>>2]=5;HEAP32[$1>>2]=$12}$4=HEAP32[$0+32>>2]+$13|0}$1=HEAP32[$0+20>>2];label$22:{if(($1|0)!=HEAP32[$0+36>>2]){break label$22}$6=HEAP32[$0+48>>2];if(($6|0)>=20001){break label$7}$7=HEAP32[$0+40>>2];$5=$6<<1;label$23:{if(($5|1)>>>0<=178956970){$1=luaM_realloc_($0,$7,Math_imul($6,24),Math_imul($6,48));break label$23}$1=luaM_toobig($0)}HEAP32[$0+48>>2]=$5;HEAP32[$0+40>>2]=$1;HEAP32[$0+36>>2]=($1+Math_imul($5,24)|0)+ -24;$1=$1+Math_imul((HEAP32[$0+20>>2]-$7|0)/24|0,24)|0;HEAP32[$0+20>>2]=$1;if(($6|0)<10001){break label$22}luaG_runerror($0,123119,0);$1=HEAP32[$0+20>>2]}$5=$1+24|0;HEAP32[$0+20>>2]=$5;HEAP32[$1+24>>2]=$3;HEAP32[$1+28>>2]=$4;HEAP32[$0+12>>2]=$3;$6=(HEAPU8[$11+75|0]<<4)+$3|0;HEAP32[$1+32>>2]=$6;$4=HEAP32[$11+12>>2];HEAP32[$0+24>>2]=$4;HEAP32[$1+40>>2]=$2;$7=0;HEAP32[$1+44>>2]=0;$3=HEAP32[$0+8>>2];if($3>>>0<$6>>>0){while(1){HEAP32[$3+8>>2]=0;$3=$3+16|0;if($3>>>0<$6>>>0){continue}break}}HEAP32[$0+8>>2]=$6;if(!(HEAP8[$0+56|0]&1)){break label$8}$3=$4+4|0;HEAP32[$0+24>>2]=$3;$9=$0;$2=HEAP32[$0+68>>2];if(!(!$2|!HEAPU8[$0+57|0])){$1=HEAP32[$0+32>>2];HEAP32[$8+28>>2]=-1;HEAP32[$8+8>>2]=0;HEAP32[$8+104>>2]=($5-HEAP32[$0+40>>2]|0)/24;if((HEAP32[$0+28>>2]-$6|0)<=320){$4=HEAP32[$0+44>>2];luaD_reallocstack($0,($4|0)<20?$4+20|0:$4<<1)}HEAP32[HEAP32[$0+20>>2]+8>>2]=HEAP32[$0+8>>2]+320;HEAP8[$0+57|0]=0;FUNCTION_TABLE[$2]($0,$8+8|0);HEAP8[$0+57|0]=1;$1=HEAP32[$0+32>>2]+($6-$1|0)|0;HEAP32[HEAP32[$0+20>>2]+8>>2]=$1;HEAP32[$0+8>>2]=$1;$3=HEAP32[$0+24>>2]}HEAP32[$9+24>>2]=$3+ -4;break label$8}if((HEAP32[$0+28>>2]-HEAP32[$0+8>>2]|0)<=320){$1=HEAP32[$0+44>>2];luaD_reallocstack($0,($1|0)<20?$1+20|0:$1<<1)}$3=HEAP32[$0+20>>2];label$30:{if(($3|0)!=HEAP32[$0+36>>2]){break label$30}$5=HEAP32[$0+48>>2];if(($5|0)>=20001){break label$6}$3=HEAP32[$0+40>>2];$4=$5<<1;label$31:{if(($4|1)>>>0<=178956970){$1=luaM_realloc_($0,$3,Math_imul($5,24),Math_imul($5,48));break label$31}$1=luaM_toobig($0)}HEAP32[$0+48>>2]=$4;HEAP32[$0+40>>2]=$1;HEAP32[$0+36>>2]=($1+Math_imul($4,24)|0)+ -24;$3=$1+Math_imul((HEAP32[$0+20>>2]-$3|0)/24|0,24)|0;HEAP32[$0+20>>2]=$3;if(($5|0)<10001){break label$30}luaG_runerror($0,123119,0);$3=HEAP32[$0+20>>2]}$4=$3+24|0;HEAP32[$0+20>>2]=$4;$5=HEAP32[$0+32>>2];$1=$5+$13|0;HEAP32[$3+28>>2]=$1;$1=$1+16|0;HEAP32[$3+24>>2]=$1;HEAP32[$0+12>>2]=$1;$7=HEAP32[$0+8>>2];HEAP32[$3+40>>2]=$2;$2=$7+320|0;HEAP32[$3+32>>2]=$2;label$33:{if(!(HEAP8[$0+56|0]&1)){break label$33}$1=HEAP32[$0+68>>2];if(!$1|!HEAPU8[$0+57|0]){break label$33}HEAP32[$8+28>>2]=-1;HEAP32[$8+8>>2]=0;HEAP32[$8+104>>2]=($4-HEAP32[$0+40>>2]|0)/24;if((HEAP32[$0+28>>2]-$7|0)<=320){$4=HEAP32[$0+44>>2];luaD_reallocstack($0,($4|0)<20?$4+20|0:$4<<1)}HEAP32[HEAP32[$0+20>>2]+8>>2]=HEAP32[$0+8>>2]+320;HEAP8[$0+57|0]=0;FUNCTION_TABLE[$1]($0,$8+8|0);HEAP8[$0+57|0]=1;$4=HEAP32[$0+20>>2];$1=HEAP32[$0+32>>2];HEAP32[$4+8>>2]=$1+($2-$5|0);HEAP32[$0+8>>2]=$1+($7-$5|0)}$1=FUNCTION_TABLE[HEAP32[HEAP32[HEAP32[$4+4>>2]>>2]+16>>2]]($0)|0;if(($1|0)<0){$7=2;break label$8}luaD_poscall($0,HEAP32[$0+8>>2]-($1<<4)|0);$7=1}global$0=$8+112|0;return $7}luaD_throw($0,5);abort()}luaD_throw($0,5);abort()}function dmRender__ApplyMaterialConstants_28dmRender__RenderContext__2c_20dmRender__Material__2c_20dmRender__RenderObject_20const__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=0,$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=0,$27=0,$28=0,$29=0;$3=global$0-192|0;global$0=$3;$5=HEAP32[$0+4016>>2];label$1:{$4=HEAP32[$1+52>>2]-HEAP32[$1+48>>2]|0;if($4){$4=$4>>6;$28=$4>>>0>1?$4:1;$15=$0+3952|0;$11=$2+512|0;$29=$2+576|0;$21=$0+3824|0;$26=$0+3888|0;$2=$3+128|4;$0=0;while(1){$4=HEAP32[$1+48>>2];if(HEAP32[$1+52>>2]-$4>>6>>>0<=$0>>>0){break label$1}$22=$4+($0<<6)|0;$27=HEAP32[$22+24>>2];label$4:{if($27>>>0>8){break label$4}$4=HEAP32[$22+28>>2];label$5:{switch($27-1|0){default:FUNCTION_TABLE[HEAP32[147595]]($5,$22,$4);break label$4;case 0:if((FUNCTION_TABLE[HEAP32[147588]]($5)|0)==2){HEAP32[$3+128>>2]=1065353216;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$3+148>>2]=1065353216;HEAP32[$3+160>>2]=0;HEAP32[$3+164>>2]=0;HEAP32[$3+152>>2]=0;HEAP32[$3+156>>2]=0;HEAP32[$3+180>>2]=0;HEAP32[$3+172>>2]=0;HEAP32[$3+176>>2]=0;HEAP32[$3+168>>2]=1056964608;HEAP32[$3+184>>2]=1056964608;HEAP32[$3+188>>2]=1065353216;Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3- -64|0,$3+128|0,$15);FUNCTION_TABLE[HEAP32[147596]]($5,$3- -64|0,$4);break label$4}FUNCTION_TABLE[HEAP32[147596]]($5,$15,$4);break label$4;case 1:FUNCTION_TABLE[HEAP32[147596]]($5,$11,$4);break label$4;case 2:FUNCTION_TABLE[HEAP32[147596]]($5,$29,$4);break label$4;case 3:FUNCTION_TABLE[HEAP32[147596]]($5,$21,$4);break label$4;case 4:if((FUNCTION_TABLE[HEAP32[147588]]($5)|0)==2){HEAP32[$3+128>>2]=1065353216;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$3+148>>2]=1065353216;HEAP32[$3+160>>2]=0;HEAP32[$3+164>>2]=0;HEAP32[$3+152>>2]=0;HEAP32[$3+156>>2]=0;HEAP32[$3+180>>2]=0;HEAP32[$3+172>>2]=0;HEAP32[$3+176>>2]=0;HEAP32[$3+168>>2]=1056964608;HEAP32[$3+184>>2]=1056964608;HEAP32[$3+188>>2]=1065353216;Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3- -64|0,$3+128|0,$26);FUNCTION_TABLE[HEAP32[147596]]($5,$3- -64|0,$4);break label$4}FUNCTION_TABLE[HEAP32[147596]]($5,$26,$4);break label$4;case 5:Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3+128|0,$21,$11);HEAP32[$3+188>>2]=1065353216;$23=HEAPF32[$3+180>>2];$24=HEAPF32[$3+184>>2];HEAP32[$3+180>>2]=0;HEAP32[$3+184>>2]=0;$25=HEAPF32[$3+176>>2];HEAP32[$3+176>>2]=0;$7=HEAPF32[$3+128>>2];$16=HEAPF32[$3+148>>2];$10=HEAPF32[$3+132>>2];$17=HEAPF32[$3+144>>2];$6=Math_fround(Math_fround($7*$16)-Math_fround($10*$17));$18=$6;$12=HEAPF32[$3+168>>2];$8=HEAPF32[$3+160>>2];$19=HEAPF32[$3+152>>2];$20=HEAPF32[$3+136>>2];$9=Math_fround(Math_fround($10*$19)-Math_fround($20*$16));$13=HEAPF32[$3+164>>2];$14=Math_fround(Math_fround($20*$17)-Math_fround($7*$19));$6=Math_fround(Math_fround(1)/Math_fround(Math_fround($6*$12)+Math_fround(Math_fround($8*$9)+Math_fround($13*$14))));$18=Math_fround($18*$6);HEAPF32[$3+168>>2]=$18;$14=Math_fround($14*$6);HEAPF32[$3+164>>2]=$14;$9=Math_fround($9*$6);HEAPF32[$3+160>>2]=$9;HEAPF32[$3+172>>2]=-Math_fround(Math_fround($25*$9)+Math_fround(Math_fround($23*$14)+Math_fround($24*$18)));$9=Math_fround(Math_fround(Math_fround($10*$8)-Math_fround($7*$13))*$6);HEAPF32[$3+152>>2]=$9;$7=Math_fround(Math_fround(Math_fround($7*$12)-Math_fround($20*$8))*$6);HEAPF32[$3+148>>2]=$7;$10=Math_fround(Math_fround(Math_fround($20*$13)-Math_fround($10*$12))*$6);HEAPF32[$3+144>>2]=$10;HEAPF32[$3+156>>2]=-Math_fround(Math_fround($25*$10)+Math_fround(Math_fround($23*$7)+Math_fround($24*$9)));$7=Math_fround(Math_fround(Math_fround($17*$13)-Math_fround($16*$8))*$6);HEAPF32[$3+136>>2]=$7;$8=Math_fround(Math_fround(Math_fround($19*$8)-Math_fround($17*$12))*$6);HEAPF32[$3+132>>2]=$8;$6=Math_fround(Math_fround(Math_fround($16*$12)-Math_fround($19*$13))*$6);HEAPF32[$3+128>>2]=$6;HEAPF32[$3+140>>2]=-Math_fround(Math_fround($25*$6)+Math_fround(Math_fround($23*$8)+Math_fround($24*$7)));FUNCTION_TABLE[HEAP32[147596]]($5,$3+128|0,$4);break label$4;case 6:Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3+128|0,$21,$11);FUNCTION_TABLE[HEAP32[147596]]($5,$3+128|0,$4);break label$4;case 7:break label$5}}if((FUNCTION_TABLE[HEAP32[147588]]($5)|0)==2){HEAP32[$3+128>>2]=1065353216;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$3+148>>2]=1065353216;HEAP32[$3+160>>2]=0;HEAP32[$3+164>>2]=0;HEAP32[$3+152>>2]=0;HEAP32[$3+156>>2]=0;HEAP32[$3+180>>2]=0;HEAP32[$3+172>>2]=0;HEAP32[$3+176>>2]=0;HEAP32[$3+168>>2]=1056964608;HEAP32[$3+184>>2]=1056964608;HEAP32[$3+188>>2]=1065353216;Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3,$3+128|0,$15);Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3- -64|0,$3,$11);FUNCTION_TABLE[HEAP32[147596]]($5,$3- -64|0,$4);break label$4}Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3+128|0,$15,$11);FUNCTION_TABLE[HEAP32[147596]]($5,$3+128|0,$4)}$0=$0+1|0;if(($28|0)!=($0|0)){continue}break}}global$0=$3+192|0;return}__assert_fail(100533,100345,437,100544);abort()}function dmGameSystem__FactoryComp_Create_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=Math_fround(0),$11=0,$12=0,$13=0,$14=0;$1=global$0-640|0;global$0=$1;$7=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$8=dmGameSystem__CheckGoInstance_28lua_State__29($0);$6=HEAP32[HEAP32[$8+80>>2]+8>>2];HEAP32[$1+624>>2]=0;HEAP32[$1+628>>2]=0;HEAP32[$1+616>>2]=0;HEAP32[$1+620>>2]=0;HEAP32[$1+608>>2]=0;HEAP32[$1+612>>2]=0;HEAP32[$1+600>>2]=0;HEAP32[$1+604>>2]=0;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$6,64295,$1+636|0,$1+600|0,0);$14=HEAP32[$1+636>>2];label$1:{label$2:{if(($7|0)<2){break label$2}if(!lua_type($0,2)){break label$2}$2=dmScript__CheckVector3_28lua_State__2c_20int_29($0,2);$3=HEAP32[$2+4>>2];$4=HEAP32[$2>>2];HEAP32[$1+584>>2]=HEAP32[$2+8>>2];HEAP32[$1+576>>2]=$4;HEAP32[$1+580>>2]=$3;break label$1}dmGameObject__GetWorldPosition_28dmGameObject__Instance__29($1+48|0,$8);HEAP32[$1+576>>2]=HEAP32[$1+48>>2];$2=HEAP32[$1+56>>2];HEAP32[$1+580>>2]=HEAP32[$1+52>>2];HEAP32[$1+584>>2]=$2}label$3:{label$4:{if(($7|0)<3){break label$4}if(!lua_type($0,3)){break label$4}$2=dmScript__CheckQuat_28lua_State__2c_20int_29($0,3);HEAP32[$1+560>>2]=HEAP32[$2>>2];HEAP32[$1+564>>2]=HEAP32[$2+4>>2];HEAP32[$1+568>>2]=HEAP32[$2+8>>2];HEAP32[$1+572>>2]=HEAP32[$2+12>>2];break label$3}dmGameObject__GetWorldRotation_28dmGameObject__Instance__29($1+48|0,$8);$2=HEAP32[$1+52>>2];HEAP32[$1+560>>2]=HEAP32[$1+48>>2];HEAP32[$1+564>>2]=$2;$2=HEAP32[$1+60>>2];HEAP32[$1+568>>2]=HEAP32[$1+56>>2];HEAP32[$1+572>>2]=$2}$5=dmGameObject__GetInstanceFromLua_28lua_State__29($0);label$5:{label$6:{label$7:{if(($7|0)<=3){break label$7}label$8:{if(!lua_type($0,4)){break label$8}$2=$5?512:432;$13=dmScript__CheckTable_28lua_State__2c_20char__2c_20unsigned_20int_2c_20int_29($0,$5?$1+48|0:$1+128|0,$2,4);if($13>>>0<=$2>>>0){break label$8}$2=luaL_error($0,64750,0);break label$5}if(($7|0)<5){break label$7}if(!lua_type($0,5)){break label$7}$2=dmScript__ToVector3_28lua_State__2c_20int_29($0,5);if($2){$3=HEAP32[$2>>2];HEAP32[$1+32>>2]=$3;$9=HEAP32[$2+4>>2];HEAP32[$1+36>>2]=$9;$2=HEAP32[$2+8>>2];HEAP32[$1+40>>2]=$2;break label$6}$10=Math_fround(luaL_checknumber($0,5));HEAPF32[$1+40>>2]=$10;HEAPF32[$1+36>>2]=$10;HEAPF32[$1+32>>2]=$10;$2=(wasm2js_scratch_store_f32($10),wasm2js_scratch_load_i32(0));$9=$2;$3=$2;break label$6}dmGameObject__GetWorldScale_28dmGameObject__Instance__29($1,$8);$3=HEAP32[$1>>2];HEAP32[$1+32>>2]=$3;$9=HEAP32[$1+4>>2];HEAP32[$1+36>>2]=$9;$2=HEAP32[$1+8>>2];HEAP32[$1+40>>2]=$2}label$10:{label$11:{label$12:{label$13:{$4=dmGameObject__AcquireInstanceIndex_28dmGameObject__CollectionHandle__29($6);if(($4|0)!=-1){$11=dmGameObject__ConstructInstanceId_28unsigned_20int_29($4);$12=i64toi32_i32$HIGH_BITS;if(!$5){HEAP32[$1+112>>2]=$4;HEAP32[$1+80>>2]=$11;HEAP32[$1+84>>2]=$12;HEAP32[$1+48>>2]=HEAP32[$1+576>>2];$5=HEAP32[$1+584>>2];HEAP32[$1+52>>2]=HEAP32[$1+580>>2];HEAP32[$1+56>>2]=$5;$5=HEAP32[$1+564>>2];HEAP32[$1+64>>2]=HEAP32[$1+560>>2];HEAP32[$1+68>>2]=$5;HEAP32[$1+104>>2]=$2;HEAP32[$1+100>>2]=$9;HEAP32[$1+96>>2]=$3;$2=HEAP32[$1+572>>2];HEAP32[$1+72>>2]=HEAP32[$1+568>>2];HEAP32[$1+76>>2]=$2;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;if(!dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29($0,$1)){break label$13}$2=HEAP32[132386];dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($1,$1+600|0,HEAP32[$2+8>>2],HEAP32[$2+12>>2],$8,$2,$1+48|0,$13+80|0,0);dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,$11,$12);break label$10}dmScript__GetInstance_28lua_State__29($0);$2=dmScript__Ref_28lua_State__2c_20int_29($0,-1e4);$3=dmGameObject__Spawn_28dmGameObject__CollectionHandle__2c_20dmGameObject__Prototype__2c_20char_20const__2c_20unsigned_20long_20long_2c_20unsigned_20char__2c_20unsigned_20int_2c_20Vectormath__Aos__Point3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20Vectormath__Aos__Vector3_20const__29($6,dmGameSystem__CompFactoryGetPrototype_28dmGameObject__CollectionHandle__2c_20dmGameSystem__FactoryComponent__29($6,$14),HEAP32[HEAP32[HEAP32[$14>>2]>>2]>>2],$11,$12,$1+48|0,$13,$1+576|0,$1+560|0,$1+32|0);if(!$3){break label$12}if($3){HEAP32[$3+88>>2]=$4}lua_rawgeti($0,-1e4,$2);dmScript__SetInstance_28lua_State__29($0);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($0,-1e4,$2);dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,$11,$12);break label$10}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,64566,64861,0);break label$11}dmGameObject__ReleaseInstanceIndex_28unsigned_20int_2c_20dmGameObject__CollectionHandle__29($4,$6);$2=luaL_error($0,64806,0);break label$5}dmGameObject__ReleaseInstanceIndex_28unsigned_20int_2c_20dmGameObject__CollectionHandle__29($4,$6);lua_rawgeti($0,-1e4,$2);dmScript__SetInstance_28lua_State__29($0);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($0,-1e4,$2)}$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16}$2=1;if(($7+1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$5}__assert_fail(64928,64691,369,64953);abort()}global$0=$1+640|0;return $2|0}function dmParticle__ReloadInstance_28dmParticle__Context__2c_20unsigned_20int_2c_20bool_29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=Math_fround(0),$8=0,$9=0,$10=0,$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=0,$23=0,$24=0,$25=0,$26=0;label$1:{label$2:{label$3:{label$4:{if(!$1){break label$4}label$5:{label$6:{$2=HEAP32[$0>>2];$3=$1&65535;if(HEAP32[$0+4>>2]-$2>>2>>>0>$3>>>0){$5=HEAP32[$2+($3<<2)>>2];if(HEAPU16[$5+80>>1]!=($1>>>16|0)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,131153,131850,0);break label$4}if(!$5){break label$4}$2=HEAP32[$5+72>>2];if($2){dlfree($2);HEAP32[$5+16>>2]=0;HEAP32[$5+72>>2]=0}$9=HEAP32[$5+64>>2];$10=HEAP32[$9+16>>2];$3=(HEAP32[$9+4>>2]-HEAP32[$9>>2]|0)/18568|0;$6=HEAP32[$5>>2];$4=(HEAP32[$5+4>>2]-$6|0)/288|0;label$10:{if(($3|0)==($4|0)){break label$10}label$11:{if($3>>>0>=$4>>>0){break label$11}$2=$3;while(1){$6=Math_imul($2,288)+$6|0;if(HEAP8[$6+60|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(0,160,$6+48|0,$6+56|0,$6+52|0);$2=$2+1|0;if(($4|0)==($2|0)){break label$11}$6=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$6|0)/288>>>0>$2>>>0){continue}break}break label$3}if(HEAP8[$5+12|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($3,288,$5,$5+8|0,$5+4|0);$2=HEAP32[$5>>2];if((HEAP32[$5+8>>2]-$2|0)/288>>>0<$3>>>0){break label$6}$6=$2+Math_imul($3,288)|0;HEAP32[$5+4>>2]=$6;if($3>>>0<=$4>>>0){break label$10}if(($6-$2|0)/288>>>0<=$4>>>0){break label$3}memset($2+Math_imul($4,288)|0,0,Math_imul($3-$4|0,288));$6=dmTime__GetTime_28_29();$2=$4;while(1){$8=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$8|0)/288>>>0<=$2>>>0){break label$3}$11=HEAPU16[$0+34>>1];HEAP16[$0+34>>1]=$11+1;if(HEAPU32[$10+4>>2]<=$2>>>0){break label$1}$8=$8+Math_imul($2,288)|0;$11=$11+($2+$6|0)|0;dmParticle__InitEmitter_28dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20unsigned_20int_29($8,HEAP32[$10>>2]+($2<<7)|0,$11);HEAP32[$8+260>>2]=$11;$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}$3=$3>>>0>$4>>>0?$4:$3;if($3){$2=0;while(1){$4=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$4|0)/288>>>0<=$2>>>0){break label$3}if(HEAPU32[$10+4>>2]<=$2>>>0){break label$1}$4=$4+Math_imul($2,288)|0;dmParticle__InitEmitter_28dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20unsigned_20int_29($4,HEAP32[$10>>2]+($2<<7)|0,HEAP32[$4+256>>2]);$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}$3=HEAP32[$5>>2];$2=HEAP32[$5+4>>2]-$3|0;$4=($2|0)/288|0;if(!$2){HEAP32[$5+76>>2]=0;break label$5}$2=0;$6=HEAP32[$9>>2];$10=$4>>>0>1?$4:1;$8=(HEAP32[$9+4>>2]-$6|0)/18568>>>0>$10+ -1>>>0;while(1){if(!$8){break label$3}$19=$12;$4=Math_imul($2,288)+$3|0;$13=HEAPF32[$4+272>>2];$14=HEAPF32[$4+268>>2];$16=HEAPF32[($6+Math_imul($2,18568)|0)+18564>>2];$7=HEAPF32[$5+76>>2];if(!!(Math_fround($13+Math_fround($14+$16))<$7)){$17=Math_fround(Math_fround(1)/$14);$7=Math_fround($17*Math_fround($7-$13));label$20:{if($7=Math_fround(0)){$4=~~$7>>>0;break label$20}$4=0}$20=Math_fround($7-Math_fround($4>>>0));$7=Math_fround($17*$16);label$22:{if($7=Math_fround(0)){$4=~~$7>>>0;break label$22}$4=0}$7=Math_fround($13+Math_fround($14*Math_fround($20+Math_fround($4+1>>>0))))}$12=$12>$7?$19:$7;$2=$2+1|0;if(($10|0)!=($2|0)){continue}break}HEAPF32[$5+76>>2]=$12;$4=0;while(1){$11=HEAP32[$9>>2];if((HEAP32[$9+4>>2]-$11|0)/18568>>>0<=$4>>>0){break label$3}$2=HEAP32[$9+16>>2];if(HEAPU32[$2+4>>2]<=$4>>>0){break label$1}$3=Math_imul($4,288)+$3|0;$6=HEAP32[$3+48>>2];$21=HEAP32[$2>>2];HEAP32[$3+48>>2]=0;$18=HEAPU8[$3+60|0];HEAP8[$3+60|0]=$18&254;$8=HEAP32[$3+256>>2];$22=HEAP32[$3+268>>2];$23=HEAP32[$3+272>>2];$24=HEAP32[$3+276>>2];$25=HEAP32[$3+116>>2];$26=HEAP32[$3+112>>2];$15=HEAP32[$3+56>>2];$2=memset($3,0,288);HEAP32[$3+56>>2]=$15;HEAP32[$2+112>>2]=$26;HEAP32[$2+116>>2]=$25;HEAP32[$2+276>>2]=$24;HEAP32[$2+268>>2]=$22;HEAP32[$2+272>>2]=$23;HEAP32[$2+260>>2]=$8;HEAP32[$2+256>>2]=$8;HEAP32[$2+52>>2]=$6;$8=HEAP32[$2+48>>2];HEAP32[$2+48>>2]=$6;$15=$3;$3=HEAPU8[$3+60|0];HEAP8[$15+60|0]=$3&254|$18&1;if(!(!$8|$3&1)){dlfree($8)}$3=HEAP32[$2+264>>2];$12=HEAPF32[$5+76>>2];HEAP32[$2+264>>2]=1;label$26:{if(($3|0)==1){break label$26}$3=HEAP32[$5+72>>2];if(!$3){break label$26}$6=HEAP32[$5+16>>2]+1|0;HEAP32[$5+16>>2]=$6;FUNCTION_TABLE[HEAP32[$5+68>>2]]($6,HEAP32[$2+112>>2],HEAP32[$2+116>>2],1,$3)}HEAP8[$2+280|0]=HEAPU8[$2+280|0]&247;$7=Math_fround(0);if(!!($12>Math_fround(0))){$3=$11+Math_imul($4,18568)|0;$6=($4<<7)+$21|0;while(1){dmParticle__UpdateEmitter_28dmParticle__Prototype__2c_20dmParticle__Instance__2c_20dmParticle__EmitterPrototype__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20float_29($5,$3,$2,$6,Math_fround(.01666666753590107));$7=Math_fround($7+Math_fround(.01666666753590107));if($7<$12){continue}break}}$4=$4+1|0;if(($10|0)==($4|0)){break label$5}$3=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$3|0)/288>>>0>$4>>>0){continue}break}break label$3}break label$3}__assert_fail(131656,131573,457,131675);abort()}dmParticle__ReHash_28dmParticle__Context__2c_20unsigned_20int_29($0,$1)}return}__assert_fail(132466,131573,430,131839);abort()}__assert_fail(131498,131573,444,131644);abort()}__assert_fail(131789,131801,240,131839);abort()}function mbedtls_ssl_derive_keys($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$3=global$0-368|0;global$0=$3;$4=HEAP32[$0+68>>2];$7=HEAP32[$0+84>>2];$14=HEAP32[$0+64>>2];HEAP32[$7+76>>2]=HEAP32[$14+124>>2];HEAP32[$7+208>>2]=HEAP32[$0+20>>2];$2=-28928;$15=HEAP32[$4+1120>>2];$12=mbedtls_cipher_info_from_type(HEAP32[$15+8>>2]);label$1:{if(!$12){break label$1}$1=HEAP32[$15+12>>2]+ -3|0;label$2:{if($1>>>0<=5){$5=HEAP32[($1<<2)+558476>>2];break label$2}$5=0}if(!$5){break label$1}$1=$4;$11=HEAP32[$0+20>>2];label$4:{if(($11|0)<=2){HEAP32[$4+1116>>2]=2031;$2=2033;$11=2032;break label$4}$2=-27648;if(($11|0)!=3){break label$1}if(HEAP32[$15+12>>2]==7){HEAP32[$4+1116>>2]=2034;$2=2036;$11=2035;break label$4}HEAP32[$4+1116>>2]=2037;$2=2039;$11=2038}HEAP32[$1+1112>>2]=$11;HEAP32[$4+1108>>2]=$2;if(!HEAP32[$4+2252>>2]){$1=HEAP32[$0+68>>2];label$8:{if(HEAP32[$1+2272>>2]!=1){$1=$4+1128|0;$2=64;$11=168016;break label$8}FUNCTION_TABLE[HEAP32[$1+1108>>2]]($0,$3);$1=$3;if(HEAP32[$0+20>>2]!=3){$2=36;$11=168030;break label$8}$2=HEAP32[$15+12>>2]==7?48:32;$11=168030}$6=$4+1192|0;$2=FUNCTION_TABLE[HEAP32[$4+1116>>2]]($6,HEAP32[$4+1124>>2],$11,$1,$2,$14+48|0,48)|0;if($2){break label$1}FUNCTION_TABLE[HEAP32[139546]]($6,0,1060)|0}$6=$4+1184|0;$1=$6;$2=HEAP32[$1+4>>2];$19=HEAP32[$1>>2];HEAP32[$3+360>>2]=$19;HEAP32[$3+364>>2]=$2;$9=$4+1176|0;$1=$9;$8=HEAP32[$1+4>>2];$20=HEAP32[$1>>2];HEAP32[$3+352>>2]=$20;HEAP32[$3+356>>2]=$8;$10=$4+1168|0;$1=$10;$16=HEAP32[$1+4>>2];$21=HEAP32[$1>>2];HEAP32[$3+344>>2]=$21;HEAP32[$3+348>>2]=$16;$11=$4+1160|0;$1=$11;$22=HEAP32[$1+4>>2];$23=HEAP32[$1>>2];HEAP32[$3+336>>2]=$23;HEAP32[$3+340>>2]=$22;$17=$4+1152|0;$1=$17;$13=HEAP32[$1+4>>2];HEAP32[$3+328>>2]=HEAP32[$1>>2];HEAP32[$3+332>>2]=$13;$13=$4+1144|0;$1=$13;$18=HEAP32[$1+4>>2];HEAP32[$3+320>>2]=HEAP32[$1>>2];HEAP32[$3+324>>2]=$18;$1=HEAP32[$4+1132>>2];HEAP32[$3+304>>2]=HEAP32[$4+1128>>2];HEAP32[$3+308>>2]=$1;$1=$4+1136|0;$18=HEAP32[$1+4>>2];HEAP32[$3+312>>2]=HEAP32[$1>>2];HEAP32[$3+316>>2]=$18;HEAP32[$4+1128>>2]=$23;HEAP32[$4+1132>>2]=$22;HEAP32[$1>>2]=$21;HEAP32[$1+4>>2]=$16;HEAP32[$13>>2]=$20;HEAP32[$13+4>>2]=$8;HEAP32[$17>>2]=$19;HEAP32[$17+4>>2]=$2;$2=HEAP32[$3+308>>2];$1=$11;$8=HEAP32[$3+304>>2];HEAP8[$1|0]=$8;HEAP8[$1+1|0]=$8>>>8;HEAP8[$1+2|0]=$8>>>16;HEAP8[$1+3|0]=$8>>>24;HEAP8[$1+4|0]=$2;HEAP8[$1+5|0]=$2>>>8;HEAP8[$1+6|0]=$2>>>16;HEAP8[$1+7|0]=$2>>>24;$1=$10;$10=HEAP32[$3+316>>2];$2=HEAP32[$3+312>>2];HEAP8[$1|0]=$2;HEAP8[$1+1|0]=$2>>>8;HEAP8[$1+2|0]=$2>>>16;HEAP8[$1+3|0]=$2>>>24;HEAP8[$1+4|0]=$10;HEAP8[$1+5|0]=$10>>>8;HEAP8[$1+6|0]=$10>>>16;HEAP8[$1+7|0]=$10>>>24;$1=$9;$9=HEAP32[$3+324>>2];$10=HEAP32[$3+320>>2];HEAP8[$1|0]=$10;HEAP8[$1+1|0]=$10>>>8;HEAP8[$1+2|0]=$10>>>16;HEAP8[$1+3|0]=$10>>>24;HEAP8[$1+4|0]=$9;HEAP8[$1+5|0]=$9>>>8;HEAP8[$1+6|0]=$9>>>16;HEAP8[$1+7|0]=$9>>>24;$1=$6;$6=HEAP32[$3+332>>2];$9=HEAP32[$3+328>>2];HEAP8[$1|0]=$9;HEAP8[$1+1|0]=$9>>>8;HEAP8[$1+2|0]=$9>>>16;HEAP8[$1+3|0]=$9>>>24;HEAP8[$1+4|0]=$6;HEAP8[$1+5|0]=$6>>>8;HEAP8[$1+6|0]=$6>>>16;HEAP8[$1+7|0]=$6>>>24;FUNCTION_TABLE[HEAP32[139546]]($3+304|0,0,64)|0;$9=$14+48|0;$10=$4+1128|0;$2=FUNCTION_TABLE[HEAP32[$4+1116>>2]]($9,48,168053,$10,64,$3+48|0,256)|0;if($2){break label$1}$2=-27648;$6=HEAP32[$12+4>>2];if($6>>>0>10){break label$1}$16=HEAP32[$12+8>>2];$1=1<<$6;label$11:{label$12:{if(!($1&1344)){if(!($1&132)){break label$1}$2=mbedtls_md_setup($7+52|0,$5,1);if($2){break label$11}$2=mbedtls_md_setup($7- -64|0,$5,1);if($2){break label$11}$1=($5?HEAP32[$5+8>>2]:0)&255;HEAP32[$7+12>>2]=$1;$5=HEAP32[$14+120>>2]==1?10:$1;HEAP32[$7+12>>2]=$5;$8=HEAP32[$12+16>>2];HEAP32[$7+4>>2]=$8;if(HEAP32[$12+4>>2]==7){HEAP32[$7>>2]=$5;break label$12}$6=HEAP32[$12+24>>2];$2=$6+$5|0;$2=HEAP32[$14+124>>2]!=1?$2-(($5>>>0)%($6>>>0)|0)|0:$2;HEAP32[$7>>2]=$2;$5=HEAP32[$0+20>>2];if($5>>>0>3){$2=-27648;break label$11}label$19:{switch($5-2|0){case 0:case 1:break label$19;default:break label$12}}HEAP32[$7>>2]=$2+$8;break label$12}$1=0;HEAP32[$7+12>>2]=0;$8=12;$5=HEAPU8[$15+36|0];$6=($6|0)==10?12:4;HEAP32[$7+8>>2]=$6;HEAP32[$7+4>>2]=12;$5=$5&2?8:16;HEAP32[$7+16>>2]=$5;HEAP32[$7>>2]=($5-$6|0)+12}$2=-27648;if(HEAP8[HEAP32[$0>>2]+184|0]&1){break label$11}$15=($3+48|0)+($1<<1)|0;$6=$16>>>3|0;$14=$15+$6|0;$16=$6+$14|0;$5=HEAP32[$7+8>>2];$5=$5?$5:$8;memcpy($7+20|0,$16,$5);memcpy($7+36|0,$5+$16|0,$5);if(HEAP32[$0+20>>2]<1){break label$11}if($1){mbedtls_md_hmac_starts($7+52|0,$3+48|0,$1);mbedtls_md_hmac_starts($7- -64|0,($3+48|0)+$1|0,$1)}$2=HEAP32[$0>>2];$8=HEAP32[$2+68>>2];if($8){FUNCTION_TABLE[$8](HEAP32[$2+76>>2],$9,$3+48|0,$1,$6,$5)|0;$2=HEAP32[$0>>2]}$8=HEAP32[$2+72>>2];if($8){$17=HEAP32[$2+76>>2];$2=$3+48|0;$0=$10;$4=HEAP32[$4+1116>>2];$13=2;label$24:{if(($4|0)==2031){break label$24}$13=3;if(($4|0)==2034){break label$24}$13=(($4|0)==2037)<<2}FUNCTION_TABLE[$8]($17,$9,$2,$1,$6,$5,$11,$0,$13)|0}$0=$7+80|0;$2=mbedtls_cipher_setup($0,$12);if($2){break label$11}$1=$7+144|0;$2=mbedtls_cipher_setup($1,$12);if($2){break label$11}$2=mbedtls_cipher_setkey($0,$15,HEAP32[$12+8>>2],1);if($2){break label$11}$2=mbedtls_cipher_setkey($1,$14,HEAP32[$12+8>>2],0);if($2){break label$11}$2=0;if(HEAP32[$12+4>>2]!=2){break label$11}$2=mbedtls_cipher_set_padding_mode($0,4);if($2){break label$11}$2=mbedtls_cipher_set_padding_mode($1,4)}FUNCTION_TABLE[HEAP32[139546]]($3+48|0,0,256)|0;FUNCTION_TABLE[HEAP32[139546]]($10,0,64)|0}global$0=$3+368|0;return $2}function dmGameObject__PlayAnimation_28dmGameObject__AnimWorld__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20float__2c_20float_2c_20float_2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__2c_20bool_29($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15){var $16=0,$17=0,$18=0,$19=0,$20=0,$21=0,$22=0,$23=0,$24=0,$25=0;$18=global$0-48|0;global$0=$18;$17=HEAP32[$0+4>>2];$25=HEAP32[$0>>2];$16=$17-$25|0;$19=($16|0)/104|0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{if(($16|0)==676e4){HEAP32[$18>>2]=65e3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,9601,9612,$18);$1=0;break label$8}$20=HEAP32[$0+32>>2];if(!$20){break label$7}$16=HEAPU16[$0+38>>1];if($16>>>0>=HEAPU16[$0+36>>1]){break label$6}$21=$0+4|0;HEAP16[$0+38>>1]=$16+1;$20=HEAPU16[$20+($16<<1)>>1];HEAP16[$18+46>>1]=$20;$22=$0+44|0;label$10:{label$11:{$16=HEAP32[$0+48>>2];label$12:{if(!$16){break label$12}$16=HEAP32[HEAP32[$22>>2]+(($1>>>0)%($16>>>0)<<2)>>2];if(($16|0)==-1){break label$12}$23=HEAP32[$0+52>>2];while(1){$24=$23+Math_imul($16,12)|0;if(HEAP32[$24>>2]==($1|0)){break label$11}$16=HEAP32[$24+8>>2];if(($16|0)!=-1){continue}break}}$16=HEAP32[$0+68>>2];if(($16|0)==((HEAP32[$0+60>>2]-HEAP32[$0+52>>2]|0)/12|0)){HEAP32[$18+16>>2]=$16;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,9601,9673,$18+16|0);$2=HEAP32[$0+32>>2];if(!$2){break label$5}$1=HEAPU16[$0+38>>1];if(!$1|$1>>>0>HEAPU16[$0+36>>1]){break label$4}$3=$0;$0=$1+ -1|0;HEAP16[$3+38>>1]=$0;HEAP16[$2+(($0&65535)<<1)>>1]=$20;$1=0;break label$8}dmHashTable_unsigned_20long_2c_20unsigned_20short___Put_28unsigned_20long_2c_20unsigned_20short_20const__29($22,$1,$18+46|0);$17=HEAP32[$21>>2];break label$10}$22=HEAP32[$0+16>>2];$24=HEAP32[$0+20>>2]-$22>>1;$16=HEAPU16[($23+Math_imul($16,12)|0)+4>>1];if($24>>>0<=$16>>>0){break label$1}$16=HEAPU16[$22+($16<<1)>>1];if($19>>>0<=$16>>>0){break label$1}label$15:{while(1){$23=Math_imul($16,104)+$25|0;$16=HEAPU16[$23+94>>1];if(($16|0)==65535){break label$15}if($24>>>0<=$16>>>0){break label$1}$16=HEAPU16[$22+($16<<1)>>1];if($19>>>0>$16>>>0){continue}break}break label$1}HEAP16[$23+94>>1]=$20}$16=HEAP32[$0+8>>2];if(($16|0)==($17|0)){if(HEAP8[$0+12|0]&1){break label$3}$16=($16-HEAP32[$0>>2]|0)/104|0;$17=($16>>>1|0)+2048>>>1|0;$16=($17>>>0<2048?$17:2048)+$16|0;dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($16>>>0<65e3?$16:65e3,104,$0,$0+8|0,$21);$16=HEAP32[$0+8>>2]}$25=$16;$16=HEAP32[$0>>2];$17=$19+1|0;if(($25-$16|0)/104>>>0<$17>>>0){break label$2}$17=Math_imul($17,104);HEAP32[$21>>2]=$17+$16;if(($17|0)/104>>>0<=$19>>>0){break label$1}$16=memset($16+Math_imul($19,104)|0,0,104);$17=HEAP32[$0+16>>2];$21=HEAPU16[$18+46>>1];if(HEAP32[$0+20>>2]-$17>>1>>>0<=$21>>>0){break label$1}HEAP16[$17+($21<<1)>>1]=$19;HEAP16[$16+92>>1]=HEAPU16[$18+46>>1];HEAP32[$16>>2]=$1;HEAP32[$16+24>>2]=$6;HEAP32[$16+16>>2]=$4;HEAP32[$16+20>>2]=$5;HEAP32[$16+8>>2]=$2;HEAP32[$16+12>>2]=$3;$1=HEAP32[$10+4>>2];HEAP32[$16+28>>2]=HEAP32[$10>>2];HEAP32[$16+32>>2]=$1;$1=HEAP32[$10+12>>2];HEAP32[$16+36>>2]=HEAP32[$10+8>>2];HEAP32[$16+40>>2]=$1;HEAP32[$16+44>>2]=HEAP32[$10+16>>2];HEAP16[$16+94>>1]=65535;HEAP32[$16+88>>2]=-1;HEAP32[$16+84>>2]=0;HEAP32[$16+80>>2]=$14;HEAP32[$16+76>>2]=$13;$1=$11>Math_fround(0);HEAPF32[$16+72>>2]=$1?Math_fround(Math_fround(1)/$11):Math_fround(0);HEAPF32[$16+68>>2]=$1?$11:Math_fround(0);HEAPF32[$16+60>>2]=$12>Math_fround(0)?$12:Math_fround(0);HEAPF32[$16+56>>2]=$9;HEAPF32[$16+52>>2]=$8;HEAP32[$16+48>>2]=$7;$1=HEAPU8[$16+96|0]&-6|($15?4:0);$17=$1|1;HEAP8[$16+96|0]=$17;$2=$6+ -2|0;label$19:{if($2>>>0>3){break label$19}label$20:{switch($2-1|0){case 0:case 1:break label$19;default:break label$20}}$17=$1|9;HEAP8[$16+96|0]=$17}HEAP8[$16+96|0]=$17|16;$1=1;if(!$13){break label$8}$2=$0+76|0;label$21:{label$22:{$3=HEAP32[$0+80>>2];label$23:{if(!$3){break label$23}$17=HEAP32[HEAP32[$2>>2]+(($14>>>0)%($3>>>0)<<2)>>2];if(($17|0)==-1){break label$23}$3=HEAP32[$0+84>>2];while(1){$4=$3+Math_imul($17,12)|0;if(HEAP32[$4>>2]==($14|0)){break label$22}$17=HEAP32[$4+8>>2];if(($17|0)!=-1){continue}break}}$3=(HEAP32[$0+92>>2]-HEAP32[$0+84>>2]|0)/12|0;$0=HEAP32[$0+100>>2];if(($3|0)!=($0|0)){break label$21}HEAP32[$18+32>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,9601,9743,$18+32|0);$1=0;break label$8}$4=HEAP32[$0+16>>2];$3=HEAPU16[($3+Math_imul($17,12)|0)+4>>1];if(HEAP32[$0+20>>2]-$4>>1>>>0<=$3>>>0){break label$1}$5=HEAP32[$0+4>>2];$0=HEAP32[$0>>2];$3=HEAPU16[$4+($3<<1)>>1];if(($5-$0|0)/104>>>0<=$3>>>0){break label$1}$0=$0+Math_imul($3,104)|0;HEAP16[$16+90>>1]=HEAPU16[$0+92>>1];HEAP16[$0+88>>1]=HEAPU16[$18+46>>1]}dmHashTable_unsigned_20long_2c_20unsigned_20short___Put_28unsigned_20long_2c_20unsigned_20short_20const__29($2,$14,$18+46|0)}global$0=$18+48|0;return $1}__assert_fail(9813,9820,148,9886);abort()}__assert_fail(9890,9820,149,9886);abort()}__assert_fail(9813,9820,137,10377);abort()}__assert_fail(10382,9820,138,10377);abort()}__assert_fail(10161,10082,444,10236);abort()}__assert_fail(10063,10082,457,10153);abort()}__assert_fail(10355,10082,430,10366);abort()}function exp2reg($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;discharge2reg($0,$1,$2);label$1:{if(HEAP32[$1>>2]!=10){break label$1}$7=HEAP32[$1+8>>2];if(($7|0)==-1){break label$1}$3=HEAP32[$1+16>>2];if(($3|0)!=-1){$8=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$5=$3;$6=$8+($3<<2)|0;$4=HEAP32[$6>>2];$3=($4>>>14|0)+ -131071|0;$3=($3|0)==-1?-1:($5+$3|0)+1|0;if(($3|0)!=-1){continue}break}$3=$6;$8=$7+($5^-1)|0;$5=$8>>31;if(($5^$5+$8)>=131072){luaX_syntaxerror(HEAP32[$0+12>>2],123977);$4=HEAP32[$6>>2]}HEAP32[$3>>2]=($4&16383|$8<<14)+2147467264;break label$1}HEAP32[$1+16>>2]=$7}$3=HEAP32[$1+16>>2];$6=HEAP32[$1+20>>2];label$6:{if(($3|0)==($6|0)){break label$6}$12=-1;label$7:{label$8:{if(($3|0)!=-1){$4=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$8=$4+($3<<2)|0;label$11:{if(($3|0)>=1){$5=HEAP32[$8+ -4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$11}}$5=HEAP32[$8>>2]}if(($5&63)!=27){break label$8}$5=$3;$3=(HEAP32[$8>>2]>>>14|0)+ -131071|0;$3=($3|0)==-1?-1:($5+$3|0)+1|0;if(($3|0)!=-1){continue}break}}$13=-1;if(($6|0)==-1){break label$7}$4=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$3=$4+($6<<2)|0;label$14:{if(($6|0)>=1){$5=HEAP32[$3+ -4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$14}}$5=HEAP32[$3>>2]}if(($5&63)!=27){break label$8}$3=(HEAP32[$3>>2]>>>14|0)+ -131071|0;$6=($3|0)==-1?-1:($3+$6|0)+1|0;if(($6|0)!=-1){continue}break}break label$7}$5=-1;label$16:{if(HEAP32[$1>>2]==10){break label$16}$7=HEAP32[$0+32>>2];HEAP32[$0+32>>2]=-1;$5=luaK_code($0,2147450902,HEAP32[HEAP32[$0+12>>2]+8>>2]);if(($7|0)==-1){break label$16}if(($5|0)==-1){$5=$7;break label$16}$9=HEAP32[HEAP32[$0>>2]+12>>2];$3=$5;while(1){$6=$3;$8=$9+($3<<2)|0;$4=HEAP32[$8>>2];$3=($4>>>14|0)+ -131071|0;$3=($3|0)==-1?-1:($6+$3|0)+1|0;if(($3|0)!=-1){continue}break}$3=$8;$7=$7+($6^-1)|0;$6=$7>>31;if(($6^$6+$7)>=131072){luaX_syntaxerror(HEAP32[$0+12>>2],123977);$4=HEAP32[$8>>2]}HEAP32[$3>>2]=($4&16383|$7<<14)+2147467264}HEAP32[$0+28>>2]=HEAP32[$0+24>>2];$3=$2<<6;$13=luaK_code($0,$3|16386,HEAP32[HEAP32[$0+12>>2]+8>>2]);HEAP32[$0+28>>2]=HEAP32[$0+24>>2];$12=luaK_code($0,$3|8388610,HEAP32[HEAP32[$0+12>>2]+8>>2]);HEAP32[$0+28>>2]=HEAP32[$0+24>>2];if(($5|0)==-1){break label$7}$3=HEAP32[$0+32>>2];if(($3|0)!=-1){$7=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$6=$3;$8=$7+($3<<2)|0;$4=HEAP32[$8>>2];$3=($4>>>14|0)+ -131071|0;$3=($3|0)==-1?-1:($6+$3|0)+1|0;if(($3|0)!=-1){continue}break}$3=$8;$6=($6^-1)+$5|0;$5=$6>>31;if(($5^$5+$6)>=131072){luaX_syntaxerror(HEAP32[$0+12>>2],123977);$4=HEAP32[$8>>2]}HEAP32[$3>>2]=($4&16383|$6<<14)+2147467264;break label$7}HEAP32[$0+32>>2]=$5}$10=HEAP32[$0+24>>2];HEAP32[$0+28>>2]=$10;$3=HEAP32[$1+20>>2];label$25:{if(($3|0)==-1){break label$25}if(($2|0)==255){while(1){$7=HEAP32[HEAP32[$0>>2]+12>>2]+($3<<2)|0;$6=HEAP32[$7>>2];$4=($6>>>14|0)+ -131071|0;$9=($4|0)==-1;$8=($3+$4|0)+1|0;label$28:{if(($3|0)>=1){$4=$7+ -4|0;$5=HEAP32[$4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$28}}$5=$6;$4=$7}$8=$9?-1:$8;label$30:{label$31:{label$32:{if(($5&63)!=27){$3=($3^-1)+$13|0;$4=$3>>31;if(($4^$3+$4)>131071){break label$32}break label$30}HEAP32[$4>>2]=$5&8372224|$5>>>17&32704|26;$3=($3^-1)+$10|0;$4=$3>>31;if(($4^$3+$4)<131072){break label$31}}luaX_syntaxerror(HEAP32[$0+12>>2],123977)}$6=HEAP32[$7>>2]}HEAP32[$7>>2]=($6&16383|$3<<14)+2147467264;$3=$8;if(($3|0)!=-1){continue}break label$25}}$11=$2<<6;$14=$11&16320;while(1){$7=HEAP32[HEAP32[$0>>2]+12>>2]+($3<<2)|0;$6=HEAP32[$7>>2];$4=($6>>>14|0)+ -131071|0;$9=($4|0)==-1;$8=($3+$4|0)+1|0;label$35:{if(($3|0)>=1){$4=$7+ -4|0;$5=HEAP32[$4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$35}}$5=$6;$4=$7}$8=$9?-1:$8;label$37:{label$38:{label$39:{if(($5&63)==27){HEAP32[$4>>2]=($5>>>23|0)!=($2|0)?$14|$5&-16321:$11|$5&8372224|26;$3=($3^-1)+$10|0;$4=$3>>31;if(($4^$3+$4)>131071){break label$39}break label$38}$3=($3^-1)+$13|0;$4=$3>>31;if(($4^$3+$4)<131072){break label$37}}luaX_syntaxerror(HEAP32[$0+12>>2],123977)}$6=HEAP32[$7>>2]}HEAP32[$7>>2]=($6&16383|$3<<14)+2147467264;$3=$8;if(($3|0)!=-1){continue}break}}$3=HEAP32[$1+16>>2];if(($3|0)==-1){break label$6}if(($2|0)==255){while(1){$7=HEAP32[HEAP32[$0>>2]+12>>2]+($3<<2)|0;$6=HEAP32[$7>>2];$4=($6>>>14|0)+ -131071|0;$9=($4|0)==-1;$8=($3+$4|0)+1|0;label$45:{if(($3|0)>=1){$4=$7+ -4|0;$5=HEAP32[$4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$45}}$5=$6;$4=$7}$8=$9?-1:$8;label$47:{label$48:{label$49:{if(($5&63)!=27){$3=($3^-1)+$12|0;$4=$3>>31;if(($4^$3+$4)>131071){break label$49}break label$47}HEAP32[$4>>2]=$5&8372224|$5>>>17&32704|26;$3=($3^-1)+$10|0;$4=$3>>31;if(($4^$3+$4)<131072){break label$48}}luaX_syntaxerror(HEAP32[$0+12>>2],123977)}$6=HEAP32[$7>>2]}HEAP32[$7>>2]=($6&16383|$3<<14)+2147467264;$3=$8;if(($3|0)!=-1){continue}break label$6}}$11=$2<<6;$14=$11&16320;while(1){$7=HEAP32[HEAP32[$0>>2]+12>>2]+($3<<2)|0;$6=HEAP32[$7>>2];$4=($6>>>14|0)+ -131071|0;$9=($4|0)==-1;$8=($3+$4|0)+1|0;label$52:{if(($3|0)>=1){$4=$7+ -4|0;$5=HEAP32[$4>>2];if(HEAP8[($5&63)+123488|0]<0){break label$52}}$5=$6;$4=$7}$8=$9?-1:$8;label$54:{label$55:{label$56:{if(($5&63)==27){HEAP32[$4>>2]=($5>>>23|0)!=($2|0)?$14|$5&-16321:$11|$5&8372224|26;$3=($3^-1)+$10|0;$4=$3>>31;if(($4^$3+$4)>131071){break label$56}break label$55}$3=($3^-1)+$12|0;$4=$3>>31;if(($4^$3+$4)<131072){break label$54}}luaX_syntaxerror(HEAP32[$0+12>>2],123977)}$6=HEAP32[$7>>2]}HEAP32[$7>>2]=($6&16383|$3<<14)+2147467264;$3=$8;if(($3|0)!=-1){continue}break}}HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=$2;HEAP32[$1>>2]=12}function btIDebugDraw__drawSpherePatch_28btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20float_2c_20float_2c_20float_2c_20float_2c_20float_2c_20btVector3_20const__2c_20float_29($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=Math_fround($4);$5=Math_fround($5);$6=Math_fround($6);$7=Math_fround($7);$8=Math_fround($8);$9=$9|0;$10=Math_fround($10);var $11=0,$12=0,$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=0,$21=Math_fround(0),$22=Math_fround(0),$23=0,$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=0,$28=0,$29=0,$30=0,$31=0,$32=Math_fround(0),$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0),$36=Math_fround(0),$37=Math_fround(0),$38=Math_fround(0),$39=0,$40=0,$41=0,$42=0,$43=0,$44=Math_fround(0),$45=0,$46=Math_fround(0);$11=global$0-2416|0;global$0=$11;$15=HEAPF32[$1>>2];$14=HEAPF32[$2>>2];$19=HEAPF32[$1+4>>2];$26=HEAPF32[$2+4>>2];$16=HEAPF32[$1+8>>2];$24=HEAPF32[$2+8>>2];HEAP32[$11+44>>2]=0;$21=Math_fround($24*$4);HEAPF32[$11+40>>2]=$16+$21;$22=Math_fround($26*$4);HEAPF32[$11+36>>2]=$19+$22;$18=Math_fround($14*$4);HEAPF32[$11+32>>2]=$15+$18;HEAP32[$11+28>>2]=0;HEAPF32[$11+24>>2]=$16-$21;HEAPF32[$11+20>>2]=$19-$22;HEAPF32[$11+16>>2]=$15-$18;$21=HEAPF32[$3>>2];$22=HEAPF32[$3+4>>2];$18=HEAPF32[$3+8>>2];$16=Math_fround($10*Math_fround(.01745329238474369));$15=Math_fround($16+Math_fround(-1.5707963705062866));$30=$5<=Math_fround(-1.5707963705062866);$10=$30?$15:$5;$19=Math_fround(Math_fround(1.5707963705062866)-$16);$27=$6>=Math_fround(1.5707963705062866);$5=$27?$19:$6;if(!!($10>$5)){$27=1;$30=1;$10=$15;$5=$19}$12=$7>$8;$6=$12?Math_fround($16+Math_fround(-3.1415927410125732)):$7;$25=Math_fround(($12?Math_fround(3.1415927410125732):$8)-$6);$15=Math_fround($25/$16);label$2:{if(Math_fround(Math_abs($15))=1){$15=Math_fround(Math_fround($14*$22)-Math_fround($26*$21));$19=Math_fround(Math_fround($24*$21)-Math_fround($14*$18));$16=Math_fround(Math_fround($26*$18)-Math_fround($24*$22));$39=$12|Math_fround($8-$7)>=Math_fround(6.2831854820251465);$40=$31+ -1|0;$26=Math_fround($5/Math_fround($40|0));$12=$11+1232|0;$20=$11+48|0;$28=($13|0)<2?2:$13+1|0;$29=$28+ -1|0;$24=Math_fround($25/Math_fround($29|0));$5=Math_fround($6+Math_fround($24*Math_fround(0)));$21=cosf($5);$22=sinf($5);$45=($28|0)<1;while(1){$13=$20;$20=$12;$5=Math_fround($10+Math_fround($26*Math_fround($23|0)));$7=cosf($5);$5=sinf($5);label$8:{if($45){break label$8}$18=HEAPF32[$2>>2];$25=HEAPF32[$1>>2];$32=HEAPF32[$3>>2];$33=HEAPF32[$2+4>>2];$34=HEAPF32[$1+4>>2];$35=HEAPF32[$3+4>>2];$36=HEAPF32[$2+8>>2];$14=HEAPF32[$1+8>>2];$37=HEAPF32[$3+8>>2];HEAP32[$13+12>>2]=0;$7=Math_fround($7*$4);$8=Math_fround($7*$22);$38=$14;$14=Math_fround($7*$21);$5=Math_fround($5*$4);HEAPF32[$13+8>>2]=Math_fround(Math_fround($15*$8)+Math_fround($38+Math_fround($37*$14)))+Math_fround($36*$5);HEAPF32[$13+4>>2]=Math_fround(Math_fround($19*$8)+Math_fround($34+Math_fround($14*$35)))+Math_fround($5*$33);HEAPF32[$13>>2]=Math_fround(Math_fround($16*$8)+Math_fround($25+Math_fround($14*$32)))+Math_fround($5*$18);$12=($23|0)==($40|0);$41=$12&$30;label$9:{if(!$23){if(!$27){break label$9}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11+16|0,$13,$9);break label$9}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$20,$13,$9)}$17=HEAP32[$13+12>>2];HEAP32[$11+8>>2]=HEAP32[$13+8>>2];HEAP32[$11+12>>2]=$17;$17=HEAP32[$13+4>>2];HEAP32[$11>>2]=HEAP32[$13>>2];HEAP32[$11+4>>2]=$17;if($41){FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11+32|0,$13,$9)}$42=$12|!$23;label$12:{if(!$39){if(!$42){break label$12}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$1,$13,$9);break label$12}if($29){break label$12}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11,$13,$9)}$17=1;if(($28|0)==1){break label$8}while(1){$18=HEAPF32[$2>>2];$25=HEAPF32[$1>>2];$32=HEAPF32[$3>>2];$33=HEAPF32[$2+4>>2];$34=HEAPF32[$1+4>>2];$35=HEAPF32[$3+4>>2];$36=HEAPF32[$2+8>>2];$14=HEAPF32[$1+8>>2];$37=HEAPF32[$3+8>>2];$43=$17<<4;$12=$13+$43|0;HEAP32[$12+12>>2]=0;$44=Math_fround($6+Math_fround($24*Math_fround($17|0)));$8=Math_fround($7*sinf($44));$46=Math_fround($15*$8);$38=$14;$14=Math_fround($7*cosf($44));HEAPF32[$12+8>>2]=Math_fround($46+Math_fround($38+Math_fround($37*$14)))+Math_fround($5*$36);HEAPF32[$12+4>>2]=Math_fround(Math_fround($19*$8)+Math_fround($34+Math_fround($14*$35)))+Math_fround($5*$33);HEAPF32[$12>>2]=Math_fround(Math_fround($16*$8)+Math_fround($25+Math_fround($14*$32)))+Math_fround($5*$18);label$15:{if($23){FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$20+$43|0,$12,$9);break label$15}if(!$27){break label$15}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11+16|0,$12,$9)}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$12+ -16|0,$12,$9);if($41){FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11+32|0,$12,$9)}label$18:{if($39){if(($17|0)!=($29|0)){break label$18}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$11,$12,$9);break label$18}if($42^1|($17|0)!=($29|0)){break label$18}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$1,$12,$9)}$17=$17+1|0;if(($28|0)!=($17|0)){continue}break}}$12=$13;$23=$23+1|0;if(($31|0)!=($23|0)){continue}break}}global$0=$11+2416|0}function __rem_pio2_large($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=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;$7=global$0-560|0;global$0=$7;$6=$2;$2=($2+ -3|0)/24|0;$18=($2|0)>0?$2:0;$10=$6+Math_imul($18,-24)|0;$14=HEAP32[($4<<2)+219136>>2];$9=$3+ -1|0;if(($14+$9|0)>=0){$6=$3+$14|0;$2=$18-$9|0;while(1){HEAPF64[($7+320|0)+($8<<3)>>3]=($2|0)<0?0:+HEAP32[($2<<2)+219152>>2];$2=$2+1|0;$8=$8+1|0;if(($6|0)!=($8|0)){continue}break}}$13=$10+ -24|0;$6=0;$19=($14|0)>0?$14:0;$8=($3|0)<1;while(1){label$6:{if($8){$5=0;break label$6}$11=$6+$9|0;$2=0;$5=0;while(1){$5=$5+HEAPF64[($2<<3)+$0>>3]*HEAPF64[($7+320|0)+($11-$2<<3)>>3];$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}HEAPF64[($6<<3)+$7>>3]=$5;$2=($6|0)==($19|0);$6=$6+1|0;if(!$2){continue}break}$25=47-$10|0;$20=48-$10|0;$21=$10+ -25|0;$6=$14;label$9:{while(1){$5=HEAPF64[($6<<3)+$7>>3];$2=0;$8=$6;$16=($6|0)<1;if(!$16){while(1){$11=($7+480|0)+($2<<2)|0;$12=$5;$5=$5*5.960464477539063e-8;label$14:{if(Math_abs($5)<2147483648){$9=~~$5;break label$14}$9=-2147483648}$5=+($9|0);$12=$12+$5*-16777216;label$13:{if(Math_abs($12)<2147483648){$9=~~$12;break label$13}$9=-2147483648}HEAP32[$11>>2]=$9;$8=$8+ -1|0;$5=HEAPF64[($8<<3)+$7>>3]+$5;$2=$2+1|0;if(($6|0)!=($2|0)){continue}break}}$5=scalbn($5,$13);$5=$5+Math_floor($5*.125)*-8;label$17:{if(Math_abs($5)<2147483648){$11=~~$5;break label$17}$11=-2147483648}$5=$5- +($11|0);label$19:{label$20:{label$21:{$22=($13|0)<1;label$22:{if(!$22){$8=($6<<2)+$7|0;$9=HEAP32[$8+476>>2];$2=$9>>$20;$17=$8;$8=$9-($2<<$20)|0;HEAP32[$17+476>>2]=$8;$11=$2+$11|0;$9=$8>>$25;break label$22}if($13){break label$21}$9=HEAP32[(($6<<2)+$7|0)+476>>2]>>23}if(($9|0)<1){break label$19}break label$20}$9=2;if(!!($5>=.5)){break label$20}$9=0;break label$19}$2=0;$8=0;if(!$16){while(1){$17=($7+480|0)+($2<<2)|0;$16=HEAP32[$17>>2];$23=16777215;label$26:{label$27:{if($8){break label$27}$23=16777216;if($16){break label$27}$8=0;break label$26}HEAP32[$17>>2]=$23-$16;$8=1}$2=$2+1|0;if(($6|0)!=($2|0)){continue}break}}label$28:{if($21>>>0>1|$22){break label$28}if($21-1){$2=($6<<2)+$7|0;HEAP32[$2+476>>2]=HEAP32[$2+476>>2]&8388607;break label$28}$2=($6<<2)+$7|0;HEAP32[$2+476>>2]=HEAP32[$2+476>>2]&4194303}$11=$11+1|0;if(($9|0)!=2){break label$19}$5=1-$5;$9=2;if(!$8){break label$19}$5=$5-scalbn(1,$13)}if($5==0){$8=0;label$31:{$2=$6;if(($2|0)<=($14|0)){break label$31}while(1){$2=$2+ -1|0;$8=HEAP32[($7+480|0)+($2<<2)>>2]|$8;if(($2|0)>($14|0)){continue}break}if(!$8){break label$31}$10=$13;while(1){$10=$10+ -24|0;$6=$6+ -1|0;if(!HEAP32[($7+480|0)+($6<<2)>>2]){continue}break}break label$9}$2=1;while(1){$8=$2;$2=$2+1|0;if(!HEAP32[($7+480|0)+($14-$8<<2)>>2]){continue}break}$8=$6+$8|0;while(1){$9=$3+$6|0;$6=$6+1|0;HEAPF64[($7+320|0)+($9<<3)>>3]=HEAP32[($18+$6<<2)+219152>>2];$2=0;$5=0;if(($3|0)>=1){while(1){$5=$5+HEAPF64[($2<<3)+$0>>3]*HEAPF64[($7+320|0)+($9-$2<<3)>>3];$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}HEAPF64[($6<<3)+$7>>3]=$5;if(($6|0)<($8|0)){continue}break}$6=$8;continue}break}$5=scalbn($5,0-$13|0);label$38:{if(!!($5>=16777216)){$3=($7+480|0)+($6<<2)|0;$12=$5;$5=$5*5.960464477539063e-8;label$41:{if(Math_abs($5)<2147483648){$2=~~$5;break label$41}$2=-2147483648}$5=$12+ +($2|0)*-16777216;label$40:{if(Math_abs($5)<2147483648){$0=~~$5;break label$40}$0=-2147483648}HEAP32[$3>>2]=$0;$6=$6+1|0;break label$38}if(Math_abs($5)<2147483648){$2=~~$5}else{$2=-2147483648}$10=$13}HEAP32[($7+480|0)+($6<<2)>>2]=$2}$5=scalbn(1,$10);if(($6|0)>=0){$2=$6;while(1){HEAPF64[($2<<3)+$7>>3]=$5*+HEAP32[($7+480|0)+($2<<2)>>2];$5=$5*5.960464477539063e-8;$0=0;$3=($2|0)>0;$2=$2+ -1|0;if($3){continue}break}$8=$6;while(1){$3=$19>>>0<$0>>>0?$19:$0;$10=$6-$8|0;$2=0;$5=0;while(1){$5=$5+HEAPF64[($2<<3)+221920>>3]*HEAPF64[($2+$8<<3)+$7>>3];$13=($2|0)!=($3|0);$2=$2+1|0;if($13){continue}break}HEAPF64[($7+160|0)+($10<<3)>>3]=$5;$8=$8+ -1|0;$2=($0|0)!=($6|0);$0=$0+1|0;if($2){continue}break}}label$50:{if($4>>>0>3){break label$50}label$51:{label$52:{switch($4-1|0){case 2:label$55:{if(($6|0)<1){break label$55}$3=($7+160|0)+($6<<3)|0;$5=HEAPF64[$3>>3];$2=$6;while(1){$12=$5;$0=$2+ -1|0;$4=($7+160|0)+($0<<3)|0;$24=HEAPF64[$4>>3];$5=$24+$5;HEAPF64[($7+160|0)+($2<<3)>>3]=$12+($24-$5);HEAPF64[$4>>3]=$5;$4=($2|0)>1;$2=$0;if($4){continue}break}if(($6|0)<2){break label$55}$5=HEAPF64[$3>>3];$2=$6;while(1){$12=$5;$0=$2+ -1|0;$3=($7+160|0)+($0<<3)|0;$15=HEAPF64[$3>>3];$5=$15+$5;HEAPF64[($7+160|0)+($2<<3)>>3]=$12+($15-$5);HEAPF64[$3>>3]=$5;$3=($2|0)>2;$2=$0;if($3){continue}break}$15=0;while(1){$15=$15+HEAPF64[($7+160|0)+($6<<3)>>3];$0=($6|0)>2;$6=$6+ -1|0;if($0){continue}break}}$5=HEAPF64[$7+160>>3];if($9){break label$51}HEAPF64[$1>>3]=$5;$0=HEAP32[$7+172>>2];$2=HEAP32[$7+168>>2];HEAPF64[$1+16>>3]=$15;HEAP32[$1+8>>2]=$2;HEAP32[$1+12>>2]=$0;break label$50;default:$5=0;if(($6|0)>=0){while(1){$5=$5+HEAPF64[($7+160|0)+($6<<3)>>3];$0=($6|0)>0;$6=$6+ -1|0;if($0){continue}break}}HEAPF64[$1>>3]=$9?-$5:$5;break label$50;case 0:case 1:break label$52}}$5=0;if(($6|0)>=0){$2=$6;while(1){$5=$5+HEAPF64[($7+160|0)+($2<<3)>>3];$0=($2|0)>0;$2=$2+ -1|0;if($0){continue}break}}HEAPF64[$1>>3]=$9?-$5:$5;$5=HEAPF64[$7+160>>3]-$5;$2=1;if(($6|0)>=1){while(1){$5=$5+HEAPF64[($7+160|0)+($2<<3)>>3];$0=($2|0)!=($6|0);$2=$2+1|0;if($0){continue}break}}HEAPF64[$1+8>>3]=$9?-$5:$5;break label$50}HEAPF64[$1>>3]=-$5;$5=HEAPF64[$7+168>>3];HEAPF64[$1+16>>3]=-$15;HEAPF64[$1+8>>3]=-$5}global$0=$7+560|0;return $11&7}function dmGameSystem__CompParticleFXUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=0,$13=0,$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=0,$28=0,$29=Math_fround(0),$30=Math_fround(0);$1=global$0-48|0;global$0=$1;$5=HEAP32[$0+8>>2];$2=HEAP32[$0+4>>2];HEAP32[$5+100>>2]=HEAP32[$2>>2];label$1:{label$2:{label$3:{$3=HEAP32[$5>>2];$10=HEAP32[$5+4>>2];label$4:{if(($3|0)==($10|0)){break label$4}$4=$10-$3|0;$14=($4|0)/40|0;$10=HEAP32[$5+68>>2];label$5:{if(!$4){break label$5}$28=$14>>>0>1?$14:1;label$6:{while(1){$3=Math_imul($12,40)+$3|0;$13=HEAP32[$3>>2];label$8:{if(!$13){break label$8}$2=HEAP32[$5+32>>2];$27=HEAP32[$3+28>>2];if((HEAP32[$5+36>>2]-$2|0)/48>>>0<=$27>>>0){break label$6}$2=$2+Math_imul($27,48)|0;$15=HEAPF32[$2+24>>2];$16=HEAPF32[$2+20>>2];$17=HEAPF32[$2+28>>2];$18=HEAPF32[$2+16>>2];$7=HEAPF32[$2>>2];$8=HEAPF32[$2+4>>2];$9=HEAPF32[$2+8>>2];dmGameObject__GetWorldTransform_28dmGameObject__Instance__29($1,$13);$29=HEAPF32[$1+16>>2];$30=HEAPF32[$1+20>>2];$13=HEAP32[$3+16>>2];$6=HEAPF32[$1+8>>2];$21=HEAPF32[$1+32>>2];$11=Math_fround($7*$21);$7=HEAPF32[$1+12>>2];$22=HEAPF32[$1+36>>2];$19=Math_fround($8*$22);$8=HEAPF32[$1>>2];$23=HEAPF32[$1+40>>2];$20=Math_fround($9*$23);$24=Math_fround(Math_fround(Math_fround($6*$11)+Math_fround($7*$19))-Math_fround($8*$20));$9=HEAPF32[$1+4>>2];$25=Math_fround(Math_fround($6*$20)+Math_fround(Math_fround($8*$11)+Math_fround($9*$19)));$26=Math_fround(Math_fround(Math_fround($8*$19)+Math_fround($7*$20))-Math_fround($9*$11));$11=Math_fround(Math_fround(Math_fround($7*$11)+Math_fround($9*$20))-Math_fround($6*$19));HEAPF32[$1+8>>2]=HEAPF32[$1+24>>2]+Math_fround(Math_fround($8*$24)+Math_fround(Math_fround(Math_fround($6*$25)+Math_fround($7*$26))-Math_fround($9*$11)));HEAPF32[$1+4>>2]=$30+Math_fround(Math_fround($6*$11)+Math_fround(Math_fround(Math_fround($7*$24)+Math_fround($9*$25))-Math_fround($8*$26)));HEAPF32[$1>>2]=$29+Math_fround(Math_fround($9*$26)+Math_fround(Math_fround(Math_fround($8*$25)+Math_fround($7*$11))-Math_fround($6*$24)));dmParticle__SetPosition_28dmParticle__Context__2c_20unsigned_20int_2c_20Vectormath__Aos__Point3_20const__29($10,$13,$1);$13=HEAP32[$3+16>>2];HEAPF32[$1+12>>2]=Math_fround(Math_fround(Math_fround($17*$7)-Math_fround($18*$8))-Math_fround($16*$9))-Math_fround($15*$6);HEAPF32[$1+8>>2]=Math_fround(Math_fround($16*$8)+Math_fround(Math_fround($17*$6)+Math_fround($15*$7)))-Math_fround($18*$9);HEAPF32[$1+4>>2]=Math_fround(Math_fround($18*$6)+Math_fround(Math_fround($17*$9)+Math_fround($16*$7)))-Math_fround($15*$8);HEAPF32[$1>>2]=Math_fround(Math_fround($15*$9)+Math_fround(Math_fround($17*$8)+Math_fround($18*$7)))-Math_fround($16*$6);dmParticle__SetRotation_28dmParticle__Context__2c_20unsigned_20int_2c_20Vectormath__Aos__Quat_20const__29($10,$13,$1);$6=$21<$22?$21:$22;dmParticle__SetScale_28dmParticle__Context__2c_20unsigned_20int_2c_20float_29($10,HEAP32[$3+16>>2],$23<$6?$23:$6);dmParticle__SetScaleAlongZ_28dmParticle__Context__2c_20unsigned_20int_2c_20bool_29($10,HEAP32[$3+16>>2],(HEAPU8[HEAP32[$3>>2]+137|0]&2)>>>1|0);if(!(HEAP8[$2+36|0]&1)|HEAP8[$3+32|0]&1){break label$8}dmParticle__StartInstance_28dmParticle__Context__2c_20unsigned_20int_29($10,HEAP32[$3+16>>2]);HEAP16[$3+32>>1]=HEAPU16[$3+32>>1]|1}$12=$12+1|0;if(($28|0)==($12|0)){$2=HEAP32[$0+4>>2];break label$5}$3=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$3|0)/40>>>0>$12>>>0){continue}break}break label$1}break label$1}$12=HEAP32[$0+12>>2];dmParticle__Update_28dmParticle__Context__2c_20float_2c_20dmParticle__FetchAnimationResult_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmParticle__AnimationData__29_29($10,HEAPF32[$2>>2]);if(!$4){break label$4}$3=0;while(1){$0=HEAP32[$5>>2];if((HEAP32[$5+4>>2]-$0|0)/40>>>0<=$3>>>0){break label$1}label$11:{label$12:{$2=Math_imul($3,40);$0=$2+$0|0;if(HEAP32[$0>>2]?!(HEAP8[$0+32|0]&1):0){break label$12}if(!dmParticle__IsSleeping_28dmParticle__Context__2c_20unsigned_20int_29($10,HEAP32[$0+16>>2])){break label$12}$4=HEAP32[$0+20>>2];HEAP32[$5+96>>2]=HEAP32[$5+96>>2]-((HEAP32[$4+4>>2]-HEAP32[$4>>2]|0)/18568|0);dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$12>>2],HEAP32[$0+20>>2]);dmParticle__DestroyInstance_28dmParticle__Context__2c_20unsigned_20int_29($10,HEAP32[$0+16>>2]);$4=HEAP32[$5+4>>2];$0=HEAP32[$5>>2];if(($4-$0|0)/40>>>0<=$3>>>0){break label$3}$0=$0+$2|0;$2=$4+ -40|0;$4=HEAP32[$2+4>>2];HEAP32[$0>>2]=HEAP32[$2>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$2+36>>2];HEAP32[$0+32>>2]=HEAP32[$2+32>>2];HEAP32[$0+36>>2]=$4;$4=HEAP32[$2+28>>2];HEAP32[$0+24>>2]=HEAP32[$2+24>>2];HEAP32[$0+28>>2]=$4;$4=HEAP32[$2+20>>2];HEAP32[$0+16>>2]=HEAP32[$2+16>>2];HEAP32[$0+20>>2]=$4;$4=HEAP32[$2+12>>2];HEAP32[$0+8>>2]=HEAP32[$2+8>>2];HEAP32[$0+12>>2]=$4;$0=HEAP32[$5+4>>2]+ -40|0;HEAP32[$5+4>>2]=$0;if($0>>>0>2]){break label$2}$14=$14+ -1|0;break label$11}$3=$3+1|0}if($3>>>0<$14>>>0){continue}break}}global$0=$1+48|0;return 0}__assert_fail(48256,47773,464,48271);abort()}__assert_fail(48281,47773,467,48271);abort()}__assert_fail(48173,47773,430,47986);abort()}function dmHttpServer__Update_28dmHttpServer__Server__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$3=global$0-624|0;global$0=$3;if(HEAP8[$0+65604|0]&1){HEAP32[$3+16>>2]=HEAPU16[$0+20>>1];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,156923,157138,$3+16|0);dmHttpServer__Connect_28dmHttpServer__Server__2c_20unsigned_20short_29($0,HEAPU16[$0+20>>1]);HEAP8[$0+65604|0]=HEAPU8[$0+65604|0]&254}$9=dmSocket__Selector__Selector_28_29($3+24|0);dmSocket__SelectorZero_28dmSocket__Selector__29($9);dmSocket__SelectorSet_28dmSocket__Selector__2c_20dmSocket__SelectorKind_2c_20int_29($9,0,HEAP32[$0+64>>2]);$8=-1;label$2:{label$3:{label$4:{if(dmSocket__Select_28dmSocket__Selector__2c_20int_29($9,0)){break label$4}$1=HEAP32[$0+64>>2];label$5:{if(!(HEAP32[($1>>>3&536870908)+$9>>2]>>>($1&31)&1)){break label$5}$1=$3+416|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;label$6:{label$7:{$1=dmSocket__Accept_28int_2c_20dmSocket__Address__2c_20int__29(HEAP32[$0+64>>2],$1,$3+412|0);$4=$1+31|0;if($4>>>0>11){if($1){break label$5}$1=HEAP32[$0+56>>2];if(($1|0)==HEAP32[$0+52>>2]){HEAP32[$3>>2]=$1-HEAP32[$0+48>>2]>>4;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,156923,157168,$3);dmSocket__Shutdown_28int_2c_20dmSocket__ShutdownType_29(HEAP32[$3+412>>2]);dmSocket__Delete_28int_29(HEAP32[$3+412>>2]);break label$5}dmSocket__SetNoDelay_28int_2c_20bool_29(HEAP32[$3+412>>2]);$4=HEAP32[$3+412>>2];$5=dmTime__GetTime_28_29();$2=i64toi32_i32$HIGH_BITS;$1=HEAP32[$0+52>>2];if(($1|0)==HEAP32[$0+56>>2]){break label$7}HEAP32[$0+52>>2]=$1+16;HEAP32[$1+8>>2]=$5;HEAP32[$1+12>>2]=$2;HEAP32[$1+4>>2]=0;HEAP32[$1>>2]=$4;break label$5}switch($4-1|0){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break label$5;default:break label$6}}__assert_fail(157731,157693,484,157755);abort()}HEAP8[$0+65604|0]=HEAPU8[$0+65604|0]|1}dmSocket__SelectorZero_28dmSocket__Selector__29($9);$4=dmTime__GetTime_28_29();$12=i64toi32_i32$HIGH_BITS;$2=HEAP32[$0+48>>2];$7=HEAP32[$0+52>>2];label$10:{if(($2|0)==($7|0)){break label$10}$1=0;while(1){$10=$1<<4;$6=$10+$2|0;$5=HEAP32[$6+8>>2];$13=$4-$5|0;$5=$12-(HEAP32[$6+12>>2]+($4>>>0<$5>>>0)|0)|0;$11=HEAP32[$0+44>>2];if(($5|0)==($11|0)&$13>>>0>HEAPU32[$0+40>>2]|$5>>>0>$11>>>0){dmSocket__Shutdown_28int_2c_20dmSocket__ShutdownType_29(HEAP32[$6>>2]);dmSocket__Delete_28int_29(HEAP32[$6>>2]);$5=HEAP32[$0+52>>2];$2=HEAP32[$0+48>>2];if($5-$2>>4>>>0<=$1>>>0){break label$3}$5=$5+ -16|0;$6=HEAP32[$5+4>>2];$2=$2+$10|0;HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=$6;$7=HEAP32[$5+12>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=$7;$7=HEAP32[$0+52>>2]+ -16|0;HEAP32[$0+52>>2]=$7;$2=HEAP32[$0+48>>2];if($7>>>0<$2>>>0){break label$2}$1=$1+ -1|0}$1=$1+1|0;if($1>>>0<$7-$2>>4>>>0){continue}break}if(($2|0)==($7|0)){break label$10}$1=0;while(1){dmSocket__SelectorSet_28dmSocket__Selector__2c_20dmSocket__SelectorKind_2c_20int_29($9,0,HEAP32[($1<<4)+$2>>2]);$1=$1+1|0;$2=HEAP32[$0+48>>2];if($1>>>0>2]-$2>>4>>>0){continue}break}}if(dmSocket__Select_28dmSocket__Selector__2c_20int_29($9,0)){break label$4}$8=0;$1=HEAP32[$0+48>>2];if(($1|0)==HEAP32[$0+52>>2]){break label$4}$5=$0+68|0;$2=0;while(1){$7=$2<<4;$4=$7+$1|0;$1=HEAP32[$4>>2];label$16:{if(!(HEAP32[($1>>>3&536870908)+$9>>2]>>>($1&31)&1)){break label$16}$1=0;memset($3+416|0,0,204);HEAP32[$3+440>>2]=0;HEAP32[$3+596>>2]=200;$8=HEAP32[$4>>2];HEAP32[$3+448>>2]=$0;HEAP32[$3+444>>2]=$8;$8=1;label$17:{label$18:{label$19:{label$20:{while(1){$6=65535-$1|0;if($6){if(dmSocket__Receive_28int_2c_20void__2c_20int_2c_20int__29(HEAP32[$4>>2],($0+$1|0)+68|0,$6,$3+412|0)){break label$17}$6=HEAP32[$3+412>>2];if(!$6){if($8&1){break label$17}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,156923,157387,0);break label$17}$1=$1+$6|0;HEAP32[$3+604>>2]=$1;$8=0;HEAP8[((($1|0)<65535?$1:65535)+$0|0)+68|0]=0;$6=dmHttpServerPrivate__ParseHeader_28char__2c_20void__2c_20void_20_28__29_28void__2c_20char_20const__2c_20char_20const__2c_20int_2c_20int_29_2c_20void_20_28__29_28void__2c_20char_20const__2c_20char_20const__29_2c_20void_20_28__29_28void__2c_20int_29_29($5,$3+416|0,2015,2016,2017)+1|0;if($6>>>0>2){break label$19}switch($6-1|0){case 0:break label$18;case 1:continue;default:break label$20}}break}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,156923,157440,0);break label$17}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,156923,157477,0);break label$17}__assert_fail(157498,157102,568,157500);abort()}if(HEAP32[$3+440>>2]){break label$17}if(!(HEAP8[$3+616|0]&1)){break label$16}}dmSocket__Shutdown_28int_2c_20dmSocket__ShutdownType_29(HEAP32[$4>>2]);dmSocket__Delete_28int_29(HEAP32[$4>>2]);$1=HEAP32[$0+52>>2];$4=HEAP32[$0+48>>2];if($1-$4>>4>>>0<=$2>>>0){break label$3}$4=$4+$7|0;$1=$1+ -16|0;$7=HEAP32[$1+4>>2];HEAP32[$4>>2]=HEAP32[$1>>2];HEAP32[$4+4>>2]=$7;$8=HEAP32[$1+12>>2];HEAP32[$4+8>>2]=HEAP32[$1+8>>2];HEAP32[$4+12>>2]=$8;$1=HEAP32[$0+52>>2]+ -16|0;HEAP32[$0+52>>2]=$1;if($1>>>0>2]){break label$2}$2=$2+ -1|0}$2=$2+1|0;$1=HEAP32[$0+48>>2];if($2>>>0>2]-$1>>4>>>0){continue}break}$8=0}global$0=$3+624|0;return $8}__assert_fail(157760,157693,464,157775);abort()}__assert_fail(157785,157693,467,157775);abort()}function btQuantizedBvh__walkStacklessQuantizedTreeAgainstRay_28btNodeOverlapCallback__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20int_2c_20int_29_20const($0,$1,$2,$3,$4,$5,$6){var $7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(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,$43=0,$44=0;$11=global$0-32|0;global$0=$11;$22=HEAPF32[$2+4>>2];$23=HEAPF32[$3+4>>2];$24=HEAPF32[$2>>2];$25=HEAPF32[$3>>2];$13=HEAPF32[$0+28>>2];$20=HEAPF32[$0+12>>2];$16=HEAPF32[$3+8>>2];$17=HEAPF32[$2+8>>2];$7=Math_fround(($16<$17?$16:$17)+HEAPF32[$4+8>>2]);$7=$7<$20?$20:$7;$10=HEAPF32[$0+44>>2];$7=Math_fround(Math_fround(($13<$7?$13:$7)-$20)*$10);label$1:{if($7=Math_fround(0)){$26=~~$7>>>0;break label$1}$26=0}$14=HEAPF32[$0+24>>2];$21=HEAPF32[$0+8>>2];$7=Math_fround(($23<$22?$23:$22)+HEAPF32[$4+4>>2]);$7=$7<$21?$21:$7;$18=HEAPF32[$0+40>>2];$7=Math_fround(Math_fround(($14<$7?$14:$7)-$21)*$18);label$3:{if($7=Math_fround(0)){$27=~~$7>>>0;break label$3}$27=0}$12=HEAPF32[$0+20>>2];$15=HEAPF32[$0+4>>2];$7=Math_fround(($25<$24?$25:$24)+HEAPF32[$4>>2]);$7=$7<$15?$15:$7;$8=HEAPF32[$0+36>>2];$7=Math_fround(Math_fround(($12<$7?$12:$7)-$15)*$8);label$5:{if($7=Math_fround(0)){$28=~~$7>>>0;break label$5}$28=0}$7=Math_fround(($17<$16?$16:$17)+HEAPF32[$5+8>>2]);$7=$7<$20?$20:$7;$7=Math_fround(Math_fround(Math_fround(($13<$7?$13:$7)-$20)*$10)+Math_fround(1));label$7:{if($7=Math_fround(0)){$19=~~$7>>>0;break label$7}$19=0}$7=Math_fround(($22<$23?$23:$22)+HEAPF32[$5+4>>2]);$7=$7<$21?$21:$7;$7=Math_fround(Math_fround(Math_fround(($14<$7?$14:$7)-$21)*$18)+Math_fround(1));label$9:{if($7=Math_fround(0)){$9=~~$7>>>0;break label$9}$9=0}$7=Math_fround(($24<$25?$25:$24)+HEAPF32[$5>>2]);$7=$7<$15?$15:$7;$7=Math_fround(Math_fround(Math_fround(($12<$7?$12:$7)-$15)*$8)+Math_fround(1));label$11:{if($7=Math_fround(0)){$3=~~$7>>>0;break label$11}$3=0}if(0<($6|0)){$12=Math_fround($25-$24);$18=Math_fround($23-$22);$8=Math_fround($16-$17);$7=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround($12*$12)+Math_fround($18*$18))+Math_fround($8*$8)))));$10=Math_fround($8*$7);$13=Math_fround($8*$10);$8=Math_fround($12*$7);$7=Math_fround($18*$7);$18=Math_fround($13+Math_fround(Math_fround($12*$8)+Math_fround($18*$7)));$33=$26&65534;$34=$27&65534;$35=$28&65534;$36=$19|1;$37=$9|1;$38=$3|1;$3=HEAP32[$0+136>>2];$15=$10==Math_fround(0)?Math_fround(0xde0b6b000000000):Math_fround(Math_fround(1)/$10);$19=$15>2];$9=0;label$15:{label$16:{label$17:{label$18:{if($35>>>0>HEAPU16[$3+6>>1]){break label$18}$32=HEAPU16[$3>>1];if($38>>>0<$32>>>0|$33>>>0>HEAPU16[$3+10>>1]){break label$18}$26=HEAPU16[$3+4>>1];if($36>>>0<$26>>>0|$34>>>0>HEAPU16[$3+8>>1]){break label$18}$27=HEAPU16[$3+2>>1];if($37>>>0<$27>>>0){break label$18}$13=HEAPF32[$0+12>>2];$14=HEAPF32[$0+44>>2];$12=HEAPF32[$0+8>>2];$10=HEAPF32[$0+40>>2];$8=HEAPF32[$0+4>>2];$7=HEAPF32[$0+36>>2];HEAP32[$11+12>>2]=0;$28=HEAPU16[$3+10>>1];$19=HEAPU16[$3+8>>1];$9=HEAPU16[$3+6>>1];HEAP32[$11+28>>2]=0;HEAPF32[$11>>2]=Math_fround($8+Math_fround(Math_fround($32>>>0)/$7))-HEAPF32[$5>>2];HEAPF32[$11+4>>2]=Math_fround($12+Math_fround(Math_fround($27>>>0)/$10))-HEAPF32[$5+4>>2];HEAPF32[$11+8>>2]=Math_fround($13+Math_fround(Math_fround($26>>>0)/$14))-HEAPF32[$5+8>>2];HEAPF32[$11+16>>2]=Math_fround($8+Math_fround(Math_fround($9>>>0)/$7))-HEAPF32[$4>>2];HEAPF32[$11+20>>2]=Math_fround($12+Math_fround(Math_fround($19>>>0)/$10))-HEAPF32[$4+4>>2];HEAPF32[$11+24>>2]=Math_fround($13+Math_fround(Math_fround($28>>>0)/$14))-HEAPF32[$4+8>>2];label$19:{$8=HEAPF32[$2+4>>2];$13=Math_fround($16*Math_fround(HEAPF32[$40>>2]-$8));$7=HEAPF32[$2>>2];$10=Math_fround($17*Math_fround(HEAPF32[$44>>2]-$7));if($13>$10){break label$19}$14=Math_fround($17*Math_fround(HEAPF32[$43>>2]-$7));$8=Math_fround($16*Math_fround(HEAPF32[$42>>2]-$8));if($14>$8){break label$19}$7=HEAPF32[$2+8>>2];$12=Math_fround($15*Math_fround(HEAPF32[$39>>2]-$7));$10=$8<$10?$8:$10;if($12>$10){break label$19}$8=$13>$14?$13:$14;$7=Math_fround($15*Math_fround(HEAPF32[$41>>2]-$7));if($8>$7){break label$19}$9=($12>$8?$12:$8)<$18&($7<$10?$7:$10)>Math_fround(0);if(!$9|($31|0)<0){break label$18}$9=HEAP32[$3+12>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+8>>2]]($1,$9>>21,$9&2097151);break label$17}$9=0}if(($31|0)>-1){break label$17}if(!$9){break label$16}}$29=$29+1|0;$3=$3+16|0;break label$15}$9=HEAP32[$3+12>>2];$29=$29-$9|0;$3=$3-($9<<4)|0}$30=$30+1|0;if(($29|0)<($6|0)){continue}break}}if(HEAP32[147973]<($30|0)){HEAP32[147973]=$30}global$0=$11+32|0}function dmParticle__LoadResources_28dmParticle__Prototype__2c_20dmParticleDDF__ParticleFX__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=0,$10=0,$11=Math_fround(0),$12=0,$13=0,$14=0,$15=0,$16=Math_fround(0),$17=0,$18=0,$19=0,$20=0,$21=0,$22=0,$23=0,$24=0,$25=0;$14=global$0-48|0;global$0=$14;$19=HEAP32[$1+4>>2];$2=HEAP32[$0+16>>2];if($2){dmDDF__FreeMessage_28void__29($2)}HEAP32[$0+16>>2]=$1;label$2:{label$3:{label$4:{if(!(HEAP8[$0+12|0]&1)){dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($19,18568,$0,$0+8|0,$0+4|0);$2=HEAP32[$0>>2];if((HEAP32[$0+8>>2]-$2|0)/18568>>>0>=$19>>>0){$3=Math_imul($19,18568);HEAP32[$0+4>>2]=$3+$2;memset($2,0,$3);label$7:{if($19){while(1){label$10:{if(HEAPU32[$1+4>>2]>$17>>>0){$10=HEAP32[$1>>2]+($17<<7)|0;$3=$10;if(HEAP32[$3+60>>2]==2){HEAP32[$3+60>>2]=1}$2=HEAP32[$0>>2];if((HEAP32[$0+4>>2]-$2|0)/18568>>>0<=$17>>>0){break label$4}$2=$2+Math_imul($17,18568)|0;HEAP32[$2+18544>>2]=dmHashString64(HEAP32[$10+52>>2]);HEAP32[$2+18548>>2]=i64toi32_i32$HIGH_BITS;HEAP32[$2+18560>>2]=HEAP32[$3+60>>2];$2=memset($2,0,18528);$12=HEAP32[$10+88>>2];if(!$12){break label$10}$4=0;while(1){$3=HEAP32[$10+84>>2]+($4<<4)|0;$8=HEAP32[$3>>2];label$14:{if(($8|0)<=14){$5=0;$7=Math_fround(0);$13=HEAP32[$3+4>>2];$15=HEAP32[$3+8>>2];$6=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($13,$15,Math_fround(0));while(1){$18=$2+Math_imul($8,772)|0;$9=$18+Math_imul($5,12)|0;$11=Math_fround($7+Math_fround(.015625));$16=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($13,$15,$11);HEAPF32[$9+8>>2]=Math_fround($16-$6)*Math_fround(64);HEAPF32[$9+4>>2]=$6;HEAPF32[$9>>2]=$7;$7=$11;$6=$16;$5=$5+1|0;if(($5|0)!=64){continue}break}HEAP32[$18+768>>2]=HEAP32[$3+12>>2];break label$14}HEAP32[$14+32>>2]=$8;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,131153,131359,$14+32|0)}$4=$4+1|0;if(($12|0)==($4|0)){break label$10}if(HEAPU32[$10+88>>2]>$4>>>0){continue}break}__assert_fail(131789,131801,204,131839);abort()}__assert_fail(131789,131801,240,131839);abort()}$5=0;$7=Math_fround(0);while(1){$3=$2+Math_imul($5,12)|0;$6=HEAPF32[$3+3096>>2];$11=HEAPF32[$3+3092>>2];$6=$6>=Math_fround(0)?Math_fround($6+$11):$11;$7=$6>$7?$6:$7;$5=$5+1|0;if(($5|0)!=64){continue}break}HEAPF32[$2+18564>>2]=$7;$9=HEAP32[$10+96>>2];label$18:{if(!$9){break label$18}$4=0;while(1){$3=HEAP32[$10+92>>2]+Math_imul($4,12)|0;$8=HEAP32[$3>>2];label$20:{if(($8|0)<=8){$5=0;$7=Math_fround(0);$12=HEAP32[$3+4>>2];$13=HEAP32[$3+8>>2];$6=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($12,$13,Math_fround(0));while(1){$3=($2+Math_imul($8,772)|0)+Math_imul($5,12)|0;$15=$3+11588|0;$11=Math_fround($7+Math_fround(.015625));$16=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($12,$13,$11);HEAPF32[$15>>2]=Math_fround($16-$6)*Math_fround(64);HEAPF32[$3+11584>>2]=$6;HEAPF32[$3+11580>>2]=$7;$7=$11;$6=$16;$5=$5+1|0;if(($5|0)!=64){continue}break}break label$20}HEAP32[$14+16>>2]=$8;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,131153,131398,$14+16|0)}$4=$4+1|0;if(($9|0)==($4|0)){break label$18}if(HEAPU32[$10+96>>2]>$4>>>0){continue}break}__assert_fail(131789,131801,212,131839);abort()}if(HEAP8[$2+18540|0]&1){break label$7}$8=HEAP32[$10+104>>2];$20=$2+18528|0;$3=$2+18536|0;$13=$2+18532|0;dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($8,1544,$20,$3,$13);$2=HEAP32[$2+18528>>2];if((HEAP32[$3>>2]-$2|0)/1544>>>0<$8>>>0){break label$3}$3=Math_imul($8,1544);HEAP32[$13>>2]=$3+$2;memset($2,0,$3);if($8){$4=0;while(1){label$25:{label$26:{$21=HEAP32[$20>>2];if((HEAP32[$13>>2]-$21|0)/1544>>>0>$4>>>0){if(HEAPU32[$10+104>>2]<=$4>>>0){break label$26}$2=HEAP32[$10+100>>2]+($4<<6)|0;$22=HEAP32[$2+52>>2];if(!$22){break label$25}$3=$2;$9=0;while(1){$12=HEAP32[$2+48>>2]+($9<<4)|0;$15=HEAP32[$12>>2];label$29:{if(($15|0)<=1){$5=0;$7=Math_fround(0);$23=HEAP32[$12+4>>2];$24=HEAP32[$12+8>>2];$6=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($23,$24,Math_fround(0));while(1){$25=($21+Math_imul($4,1544)|0)+Math_imul($15,772)|0;$18=$25+Math_imul($5,12)|0;$11=Math_fround($7+Math_fround(.015625));$16=dmParticle__GetY_28dmParticleDDF__SplinePoint_20const__2c_20unsigned_20int_2c_20float_29($23,$24,$11);HEAPF32[$18+8>>2]=Math_fround($16-$6)*Math_fround(64);HEAPF32[$18+4>>2]=$6;HEAPF32[$18>>2]=$7;$7=$11;$6=$16;$5=$5+1|0;if(($5|0)!=64){continue}break}HEAP32[$25+768>>2]=HEAP32[$12+12>>2];break label$29}HEAP32[$14>>2]=$15;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,131153,131438,$14)}$9=$9+1|0;if(($22|0)==($9|0)){break label$25}if(HEAPU32[$3+52>>2]>$9>>>0){continue}break}__assert_fail(131789,131801,140,131839);abort()}break label$4}__assert_fail(131789,131801,220,131839);abort()}$4=$4+1|0;if(($8|0)!=($4|0)){continue}break}}$17=$17+1|0;if(($19|0)!=($17|0)){continue}break}}global$0=$14+48|0;return}break label$2}break label$3}break label$2}__assert_fail(132466,131573,430,131839);abort()}__assert_fail(131656,131573,457,131675);abort()}__assert_fail(131498,131573,444,131644);abort()}function void_20std____2____insertion_sort_3_dmParticle__SortPred__2c_20dmParticle__Particle___28dmParticle__Particle__2c_20dmParticle__Particle__2c_20dmParticle__SortPred__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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,$29=0,$30=0,$31=0,$32=0;$6=global$0-48|0;global$0=$6;$3=$0+160|0;$5=$0+320|0;$2=HEAP32[$0+464>>2];$4=HEAP32[$0+304>>2];label$1:{if($4>>>0>=HEAPU32[$0+144>>2]){if($2>>>0>=$4>>>0){break label$1}std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($3,$5);if(HEAPU32[$0+304>>2]>=HEAPU32[$0+144>>2]){break label$1}std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($0,$3);break label$1}if($2>>>0<$4>>>0){std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($0,$5);break label$1}std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($0,$3);if(HEAPU32[$0+464>>2]>=HEAPU32[$0+304>>2]){break label$1}std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($3,$5)}$4=$0+480|0;if(($4|0)!=($1|0)){while(1){$8=HEAP32[$4+144>>2];if($8>>>0>2]){$7=HEAP32[$4+56>>2];$9=HEAP32[$4+52>>2];$10=HEAP32[$4+44>>2];$11=HEAP32[$4+40>>2];$12=HEAP32[$4+36>>2];$13=HEAP32[$4+28>>2];$14=HEAP32[$4+24>>2];$15=HEAP32[$4+20>>2];$16=HEAP32[$4+48>>2];$17=HEAP32[$4+32>>2];$18=HEAP32[$4+16>>2];$19=HEAP32[$4+8>>2];$20=HEAP32[$4+4>>2];$21=HEAP32[$4>>2];HEAP32[$6+44>>2]=HEAP32[$4+88>>2];$3=HEAP32[$4+84>>2];HEAP32[$6+36>>2]=HEAP32[$4+80>>2];HEAP32[$6+40>>2]=$3;$3=HEAP32[$4+76>>2];HEAP32[$6+28>>2]=HEAP32[$4+72>>2];HEAP32[$6+32>>2]=$3;$3=HEAP32[$4+68>>2];HEAP32[$6+20>>2]=HEAP32[$4+64>>2];HEAP32[$6+24>>2]=$3;$22=HEAP32[$4+136>>2];$23=HEAP32[$4+132>>2];$24=HEAP32[$4+124>>2];$25=HEAP32[$4+120>>2];$26=HEAP32[$4+116>>2];$27=HEAP32[$4+108>>2];$28=HEAP32[$4+104>>2];$29=HEAP32[$4+100>>2];$30=HEAP32[$4+128>>2];$31=HEAP32[$4+112>>2];$32=HEAP32[$4+96>>2];HEAP32[$6+8>>2]=HEAP32[$4+156>>2];$3=HEAP32[$4+152>>2];HEAP32[$6>>2]=HEAP32[$4+148>>2];HEAP32[$6+4>>2]=$3;$3=$4;while(1){label$8:{$2=$5;HEAP32[$3>>2]=HEAP32[$2>>2];HEAP32[$3+4>>2]=HEAP32[$2+4>>2];HEAP32[$3+8>>2]=HEAP32[$2+8>>2];HEAP32[$3+16>>2]=HEAP32[$2+16>>2];HEAP32[$3+20>>2]=HEAP32[$2+20>>2];HEAP32[$3+24>>2]=HEAP32[$2+24>>2];HEAP32[$3+28>>2]=HEAP32[$2+28>>2];HEAP32[$3+32>>2]=HEAP32[$2+32>>2];HEAP32[$3+36>>2]=HEAP32[$2+36>>2];HEAP32[$3+40>>2]=HEAP32[$2+40>>2];HEAP32[$3+44>>2]=HEAP32[$2+44>>2];HEAP32[$3+48>>2]=HEAP32[$2+48>>2];HEAP32[$3+52>>2]=HEAP32[$2+52>>2];HEAP32[$3+56>>2]=HEAP32[$2+56>>2];$5=HEAP32[$2+68>>2];HEAP32[$3+64>>2]=HEAP32[$2+64>>2];HEAP32[$3+68>>2]=$5;$5=HEAP32[$2+76>>2];HEAP32[$3+72>>2]=HEAP32[$2+72>>2];HEAP32[$3+76>>2]=$5;$5=HEAP32[$2+84>>2];HEAP32[$3+80>>2]=HEAP32[$2+80>>2];HEAP32[$3+84>>2]=$5;HEAP32[$3+88>>2]=HEAP32[$2+88>>2];HEAP32[$3+96>>2]=HEAP32[$2+96>>2];HEAP32[$3+100>>2]=HEAP32[$2+100>>2];HEAP32[$3+104>>2]=HEAP32[$2+104>>2];HEAP32[$3+108>>2]=HEAP32[$2+108>>2];HEAP32[$3+112>>2]=HEAP32[$2+112>>2];HEAP32[$3+116>>2]=HEAP32[$2+116>>2];HEAP32[$3+120>>2]=HEAP32[$2+120>>2];HEAP32[$3+124>>2]=HEAP32[$2+124>>2];HEAP32[$3+128>>2]=HEAP32[$2+128>>2];HEAP32[$3+132>>2]=HEAP32[$2+132>>2];HEAP32[$3+136>>2]=HEAP32[$2+136>>2];$5=HEAP32[$2+148>>2];HEAP32[$3+144>>2]=HEAP32[$2+144>>2];HEAP32[$3+148>>2]=$5;$5=HEAP32[$2+156>>2];HEAP32[$3+152>>2]=HEAP32[$2+152>>2];HEAP32[$3+156>>2]=$5;if(($0|0)==($2|0)){$3=$0;break label$8}$5=$2+ -160|0;$3=$2;if($8>>>0>2]){continue}}break}HEAP32[$3>>2]=$21;HEAP32[$2+56>>2]=$7;HEAP32[$2+52>>2]=$9;HEAP32[$2+48>>2]=$16;HEAP32[$2+44>>2]=$10;HEAP32[$2+40>>2]=$11;HEAP32[$2+36>>2]=$12;HEAP32[$2+32>>2]=$17;HEAP32[$2+28>>2]=$13;HEAP32[$2+24>>2]=$14;HEAP32[$2+20>>2]=$15;HEAP32[$2+16>>2]=$18;HEAP32[$2+8>>2]=$19;HEAP32[$2+4>>2]=$20;$5=$2- -64|0;HEAP32[$5+24>>2]=HEAP32[$6+44>>2];$7=HEAP32[$6+40>>2];HEAP32[$5+16>>2]=HEAP32[$6+36>>2];HEAP32[$5+20>>2]=$7;$7=HEAP32[$6+32>>2];HEAP32[$5+8>>2]=HEAP32[$6+28>>2];HEAP32[$5+12>>2]=$7;$7=HEAP32[$6+24>>2];HEAP32[$5>>2]=HEAP32[$6+20>>2];HEAP32[$5+4>>2]=$7;HEAP32[$2+136>>2]=$22;HEAP32[$2+132>>2]=$23;HEAP32[$2+128>>2]=$30;HEAP32[$2+124>>2]=$24;HEAP32[$2+120>>2]=$25;HEAP32[$2+116>>2]=$26;HEAP32[$2+112>>2]=$31;HEAP32[$2+108>>2]=$27;HEAP32[$2+104>>2]=$28;HEAP32[$2+100>>2]=$29;HEAP32[$2+96>>2]=$32;HEAP32[$3+144>>2]=$8;$2=HEAP32[$6+4>>2];HEAP32[$3+148>>2]=HEAP32[$6>>2];HEAP32[$3+152>>2]=$2;HEAP32[$3+156>>2]=HEAP32[$6+8>>2]}$5=$4;$4=$4+160|0;if(($4|0)!=($1|0)){continue}break}}global$0=$6+48|0}function dmScript__URL_new_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$1=global$0-160|0;global$0=$1;$5=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;HEAP32[$1+152>>2]=0;HEAP32[$1+156>>2]=0;HEAP32[$1+144>>2]=0;HEAP32[$1+148>>2]=0;HEAP32[$1+136>>2]=0;HEAP32[$1+140>>2]=0;HEAP32[$1+128>>2]=0;HEAP32[$1+132>>2]=0;HEAP8[$1+128|0]=0;HEAP8[$1+129|0]=0;HEAP8[$1+130|0]=0;HEAP8[$1+131|0]=0;HEAP8[$1+132|0]=0;HEAP8[$1+133|0]=0;HEAP8[$1+134|0]=0;HEAP8[$1+135|0]=0;HEAP8[$1+152|0]=0;HEAP8[$1+153|0]=0;HEAP8[$1+154|0]=0;HEAP8[$1+155|0]=0;HEAP8[$1+156|0]=0;HEAP8[$1+157|0]=0;HEAP8[$1+158|0]=0;HEAP8[$1+159|0]=0;HEAP8[$1+144|0]=0;HEAP8[$1+145|0]=0;HEAP8[$1+146|0]=0;HEAP8[$1+147|0]=0;HEAP8[$1+148|0]=0;HEAP8[$1+149|0]=0;HEAP8[$1+150|0]=0;HEAP8[$1+151|0]=0;HEAP8[$1+136|0]=0;HEAP8[$1+137|0]=0;HEAP8[$1+138|0]=0;HEAP8[$1+139|0]=0;HEAP8[$1+140|0]=0;HEAP8[$1+141|0]=0;HEAP8[$1+142|0]=0;HEAP8[$1+143|0]=0;label$1:{label$2:{label$3:{if(($5|0)<=1){dmScript__ResolveURL_28lua_State__2c_20int_2c_20dmMessage__URL__2c_20dmMessage__URL__29($0,1,$1+128|0,0);break label$3}if(($5|0)==3){HEAP32[$1+120>>2]=0;HEAP32[$1+124>>2]=0;HEAP32[$1+112>>2]=0;HEAP32[$1+116>>2]=0;HEAP32[$1+104>>2]=0;HEAP32[$1+108>>2]=0;HEAP32[$1+96>>2]=0;HEAP32[$1+100>>2]=0;if(!lua_type($0,1)){HEAP8[$1+96|0]=0;HEAP8[$1+97|0]=0;HEAP8[$1+98|0]=0;HEAP8[$1+99|0]=0;HEAP8[$1+100|0]=0;HEAP8[$1+101|0]=0;HEAP8[$1+102|0]=0;HEAP8[$1+103|0]=0;HEAP8[$1+120|0]=0;HEAP8[$1+121|0]=0;HEAP8[$1+122|0]=0;HEAP8[$1+123|0]=0;HEAP8[$1+124|0]=0;HEAP8[$1+125|0]=0;HEAP8[$1+126|0]=0;HEAP8[$1+127|0]=0;HEAP8[$1+112|0]=0;HEAP8[$1+113|0]=0;HEAP8[$1+114|0]=0;HEAP8[$1+115|0]=0;HEAP8[$1+116|0]=0;HEAP8[$1+117|0]=0;HEAP8[$1+118|0]=0;HEAP8[$1+119|0]=0;HEAP8[$1+104|0]=0;HEAP8[$1+105|0]=0;HEAP8[$1+106|0]=0;HEAP8[$1+107|0]=0;HEAP8[$1+108|0]=0;HEAP8[$1+109|0]=0;HEAP8[$1+110|0]=0;HEAP8[$1+111|0]=0;dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29_1($0,$1+96|0)}label$7:{if(lua_type($0,1)){if(dmScript__IsHash_28lua_State__2c_20int_29($0,1)){$2=lua_touserdata($0,1);$3=HEAP32[$2+4>>2];HEAP32[$1+128>>2]=HEAP32[$2>>2];HEAP32[$1+132>>2]=$3;break label$7}label$10:{$2=lua_tolstring($0,1,0);$3=dmMessage__GetSocket_28char_20const__2c_20unsigned_20long_20long__29($2,$1+128|0);$4=$3+6|0;if($4>>>0>6){break label$10}switch($4-1|0){case 0:case 2:case 3:case 4:break label$10;case 1:break label$2;default:break label$7}}HEAP32[$1+4>>2]=$3;HEAP32[$1>>2]=$2;$2=luaL_error($0,112580,$1);break label$1}$2=HEAP32[$1+100>>2];HEAP32[$1+128>>2]=HEAP32[$1+96>>2];HEAP32[$1+132>>2]=$2}label$11:{label$12:{if(lua_type($0,2)){if(lua_isstring($0,2)){$2=lua_tolstring($0,2,0);label$15:{if(lua_type($0,1)){if(!lua_isstring($0,1)){break label$15}if(HEAPU8[lua_tolstring($0,1,0)|0]){break label$15}}$3=strlen($2);if(!$3){break label$12}dmScript__ResolvePath_28lua_State__2c_20char_20const__2c_20unsigned_20int_2c_20unsigned_20long_20long__29($0,$2,$3,$1+144|0);break label$11}HEAP32[$1+144>>2]=dmHashString64($2);HEAP32[$1+148>>2]=i64toi32_i32$HIGH_BITS;break label$11}HEAP32[$1+144>>2]=dmScript__CheckHash_28lua_State__2c_20int_29($0,2);HEAP32[$1+148>>2]=i64toi32_i32$HIGH_BITS;break label$11}if(!lua_type($0,1)){$2=HEAP32[$1+116>>2];HEAP32[$1+144>>2]=HEAP32[$1+112>>2];HEAP32[$1+148>>2]=$2;break label$11}if(!lua_type($0,3)){break label$11}$2=luaL_error($0,112616,0);break label$1}HEAP32[$1+88>>2]=0;HEAP32[$1+92>>2]=0;HEAP32[$1+80>>2]=0;HEAP32[$1+84>>2]=0;HEAP32[$1+72>>2]=0;HEAP32[$1+76>>2]=0;HEAP32[$1+64>>2]=0;HEAP32[$1+68>>2]=0;$2=$1- -64|0;HEAP8[$2|0]=0;HEAP8[$2+1|0]=0;HEAP8[$2+2|0]=0;HEAP8[$2+3|0]=0;HEAP8[$2+4|0]=0;HEAP8[$2+5|0]=0;HEAP8[$2+6|0]=0;HEAP8[$2+7|0]=0;HEAP8[$2+24|0]=0;HEAP8[$2+25|0]=0;HEAP8[$2+26|0]=0;HEAP8[$2+27|0]=0;HEAP8[$2+28|0]=0;HEAP8[$2+29|0]=0;HEAP8[$2+30|0]=0;HEAP8[$2+31|0]=0;HEAP8[$2+16|0]=0;HEAP8[$2+17|0]=0;HEAP8[$2+18|0]=0;HEAP8[$2+19|0]=0;HEAP8[$2+20|0]=0;HEAP8[$2+21|0]=0;HEAP8[$2+22|0]=0;HEAP8[$2+23|0]=0;HEAP8[$2+8|0]=0;HEAP8[$2+9|0]=0;HEAP8[$2+10|0]=0;HEAP8[$2+11|0]=0;HEAP8[$2+12|0]=0;HEAP8[$2+13|0]=0;HEAP8[$2+14|0]=0;HEAP8[$2+15|0]=0;dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29_1($0,$1- -64|0);$2=HEAP32[$1+84>>2];HEAP32[$1+144>>2]=HEAP32[$1+80>>2];HEAP32[$1+148>>2]=$2}if(lua_type($0,3)){if(lua_isstring($0,3)){HEAP32[$1+152>>2]=dmHashString64(lua_tolstring($0,3,0));HEAP32[$1+156>>2]=i64toi32_i32$HIGH_BITS;break label$3}HEAP32[$1+152>>2]=dmScript__CheckHash_28lua_State__2c_20int_29($0,3);HEAP32[$1+156>>2]=i64toi32_i32$HIGH_BITS;break label$3}label$20:{if(lua_type($0,1)){break label$20}if(lua_type($0,2)){break label$20}$6=HEAP32[$1+120>>2];$7=HEAP32[$1+124>>2]}HEAP32[$1+152>>2]=$6;HEAP32[$1+156>>2]=$7;break label$3}HEAP32[$1+52>>2]=112770;HEAP32[$1+48>>2]=112766;HEAP32[$1+44>>2]=112770;HEAP32[$1+40>>2]=112766;HEAP32[$1+36>>2]=112770;HEAP32[$1+32>>2]=112766;luaL_error($0,112669,$1+32|0)}$2=lua_newuserdata($0,32);$4=HEAP32[$1+156>>2];HEAP32[$2+24>>2]=HEAP32[$1+152>>2];HEAP32[$2+28>>2]=$4;$3=HEAP32[$1+148>>2];HEAP32[$2+16>>2]=HEAP32[$1+144>>2];HEAP32[$2+20>>2]=$3;$3=HEAP32[$1+140>>2];HEAP32[$2+8>>2]=HEAP32[$1+136>>2];HEAP32[$2+12>>2]=$3;$3=HEAP32[$1+132>>2];HEAP32[$2>>2]=HEAP32[$1+128>>2];HEAP32[$2+4>>2]=$3;lua_getfield($0,-1e4,112770);lua_setmetatable($0,-2);$2=1;if(($5+1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$1}__assert_fail(112774,112799,442,112821);abort()}HEAP32[$1+16>>2]=$2;$2=luaL_error($0,112547,$1+16|0)}global$0=$1+160|0;return $2|0}function dmGameSystem__AcquireResources_28dmGraphics__Context__2c_20dmResource__SResourceFactory__2c_20dmGameSystem__ModelResource__2c_20char_20const__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;$5=global$0-32|0;global$0=$5;label$1:{label$2:{label$3:{$9=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($1,HEAP32[HEAP32[$2>>2]>>2],$2+4|0);label$4:{if($9){break label$4}$9=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($1,HEAP32[HEAP32[$2>>2]+4>>2],$2+8|0);if($9){break label$4}HEAP32[$5+24>>2]=0;HEAP32[$5+28>>2]=0;HEAP32[$5+16>>2]=0;HEAP32[$5+20>>2]=0;HEAP32[$5+8>>2]=0;HEAP32[$5+12>>2]=0;HEAP32[$5>>2]=0;HEAP32[$5+4>>2]=0;label$5:{$7=HEAP32[$2>>2];$6=HEAP32[$7+12>>2];if(!$6){break label$5}$9=0;label$6:{while(1){if($6>>>0>$3>>>0){$6=$3<<2;$7=HEAP32[$6+HEAP32[$7+8>>2]>>2];label$9:{if(!HEAPU8[$7|0]){break label$9}$6=$5+$6|0;$7=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($1,$7,$6);if($7){$9=$9?$9:$7;break label$9}$6=dmResource__GetPath_28dmResource__SResourceFactory__2c_20void_20const__2c_20unsigned_20long_20long__29($1,HEAP32[$6>>2],(($3<<3)+$2|0)+56|0);$9=$6?$6:$9}if($3>>>0>6){break label$6}$3=$3+1|0;$7=HEAP32[$2>>2];$6=HEAP32[$7+12>>2];if($3>>>0<$6>>>0){continue}break label$6}break}__assert_fail(58002,58014,38,58040);abort()}if(!$9){break label$5}$0=HEAP32[$5>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+4>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+8>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+12>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+16>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+20>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+24>>2];if($0){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0)}$0=HEAP32[$5+28>>2];if(!$0){break label$4}dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($1,$0);break label$4}$1=HEAP32[$5+4>>2];HEAP32[$2+20>>2]=HEAP32[$5>>2];HEAP32[$2+24>>2]=$1;$1=HEAP32[$5+12>>2];HEAP32[$2+28>>2]=HEAP32[$5+8>>2];HEAP32[$2+32>>2]=$1;$1=HEAP32[$5+28>>2];HEAP32[$2+44>>2]=HEAP32[$5+24>>2];HEAP32[$2+48>>2]=$1;$1=HEAP32[$5+20>>2];HEAP32[$2+36>>2]=HEAP32[$5+16>>2];HEAP32[$2+40>>2]=$1;$9=0;if(HEAP32[HEAP32[$2+8>>2]+104>>2]!=1){break label$4}$1=HEAP32[$2+4>>2];if(!(HEAP32[$1+20>>2]?0:!HEAP32[$1+28>>2])){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,57885,57893,0);$9=-15;break label$4}$1=HEAP32[HEAP32[$1+24>>2]>>2];if(!$1|!HEAP32[$1+4>>2]|!HEAP32[$1+12>>2]){break label$4}$3=HEAP32[$1+8>>2];label$20:{if(HEAP32[$3+64>>2]==1){$6=HEAP32[$3+60>>2]>>>2|0;if(FUNCTION_TABLE[HEAP32[147568]]($0,1)){$1=FUNCTION_TABLE[HEAP32[147562]]($0,HEAP32[$3+60>>2],HEAP32[$3+56>>2],2)|0;HEAP32[$2+120>>2]=5;HEAP32[$2+16>>2]=$1;break label$20}$10=$6<<5;$1=operator_20new_28unsigned_20long_29(($6&134217727)!=($6|0)?-1:$10);if($6){$11=HEAP32[$3+48>>2];$12=HEAP32[$3+12>>2];$13=HEAP32[$3+20>>2];$14=HEAP32[$3+8>>2];$15=HEAP32[$3+16>>2];$16=HEAP32[$3>>2];$18=HEAP32[$3+4>>2];$7=HEAP32[$3+56>>2];$3=$1;while(1){$8=$11+Math_imul(HEAP32[$7>>2],12)|0;$4=Math_imul(HEAP32[$8>>2],3);if($18>>>0<=$4>>>0){break label$3}$4=$16+($4<<2)|0;HEAP32[$3>>2]=HEAP32[$4>>2];HEAP32[$3+4>>2]=HEAP32[$4+4>>2];HEAP32[$3+8>>2]=HEAP32[$4+8>>2];$4=HEAP32[$8+4>>2]<<1;if($13>>>0<=$4>>>0){break label$2}$4=$15+($4<<2)|0;HEAP32[$3+12>>2]=HEAP32[$4>>2];HEAP32[$3+16>>2]=HEAP32[$4+4>>2];$8=Math_imul(HEAP32[$8+8>>2],3);if($12>>>0<=$8>>>0){break label$1}$8=$14+($8<<2)|0;HEAP32[$3+20>>2]=HEAP32[$8>>2];HEAP32[$3+24>>2]=HEAP32[$8+4>>2];HEAP32[$3+28>>2]=HEAP32[$8+8>>2];$7=$7+4|0;$3=$3+32|0;$17=$17+1|0;if(($17|0)!=($6|0)){continue}break}}HEAP32[$2+12>>2]=FUNCTION_TABLE[HEAP32[147555]]($0,$10,$1,2);dlfree($1);HEAP32[$2+124>>2]=$6;break label$4}$1=FUNCTION_TABLE[HEAP32[147562]]($0,HEAP32[$3+60>>2],HEAP32[$3+56>>2],2)|0;HEAP32[$2+120>>2]=3;HEAP32[$2+16>>2]=$1;$6=HEAP32[$3+60>>2]>>>1|0}HEAP32[$2+124>>2]=$6;$8=HEAP32[$3+52>>2];$10=$8<<5;$6=operator_20new_28unsigned_20long_29(($8|0)!=($8&134217727)?-1:$10);if($8){$11=HEAP32[$3+12>>2];$12=HEAP32[$3+20>>2];$13=HEAP32[$3+8>>2];$14=HEAP32[$3+16>>2];$15=HEAP32[$3>>2];$16=HEAP32[$3+4>>2];$7=HEAP32[$3+48>>2];$1=0;$3=$6;while(1){$4=Math_imul(HEAP32[$7>>2],3);if($16>>>0<=$4>>>0){break label$3}$4=$15+($4<<2)|0;HEAP32[$3>>2]=HEAP32[$4>>2];HEAP32[$3+4>>2]=HEAP32[$4+4>>2];HEAP32[$3+8>>2]=HEAP32[$4+8>>2];$4=HEAP32[$7+4>>2]<<1;if($12>>>0<=$4>>>0){break label$2}$4=$14+($4<<2)|0;HEAP32[$3+12>>2]=HEAP32[$4>>2];HEAP32[$3+16>>2]=HEAP32[$4+4>>2];$4=Math_imul(HEAP32[$7+8>>2],3);if($11>>>0<=$4>>>0){break label$1}$4=$13+($4<<2)|0;HEAP32[$3+20>>2]=HEAP32[$4>>2];HEAP32[$3+24>>2]=HEAP32[$4+4>>2];HEAP32[$3+28>>2]=HEAP32[$4+8>>2];$3=$3+32|0;$7=$7+12|0;$1=$1+1|0;if(($8|0)!=($1|0)){continue}break}}HEAP32[$2+12>>2]=FUNCTION_TABLE[HEAP32[147555]]($0,$10,$6,2);dlfree($6)}global$0=$5+32|0;return $9}__assert_fail(58002,58051,286,58040);abort()}__assert_fail(58002,58051,302,58040);abort()}__assert_fail(58002,58051,294,58040);abort()}function dmScript__Matrix4_mul_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=0,$23=Math_fround(0),$24=Math_fround(0);$2=global$0-144|0;global$0=$2;$22=1;label$1:{if(lua_isnumber($0,1)){$21=lua_tonumber($0,1);$1=dmScript__CheckMatrix4_28lua_State__2c_20int_29($0,2);$8=HEAPF32[$1>>2];HEAP32[$2+80>>2]=HEAP32[$1>>2];$9=HEAPF32[$1+4>>2];HEAP32[$2+84>>2]=HEAP32[$1+4>>2];$10=HEAPF32[$1+8>>2];HEAP32[$2+88>>2]=HEAP32[$1+8>>2];$11=HEAPF32[$1+12>>2];HEAP32[$2+92>>2]=HEAP32[$1+12>>2];$12=HEAPF32[$1+16>>2];HEAP32[$2+96>>2]=HEAP32[$1+16>>2];$13=HEAPF32[$1+20>>2];HEAP32[$2+100>>2]=HEAP32[$1+20>>2];$14=HEAPF32[$1+24>>2];HEAP32[$2+104>>2]=HEAP32[$1+24>>2];$15=HEAPF32[$1+28>>2];HEAP32[$2+108>>2]=HEAP32[$1+28>>2];$16=HEAPF32[$1+32>>2];HEAP32[$2+112>>2]=HEAP32[$1+32>>2];$17=HEAPF32[$1+36>>2];HEAP32[$2+116>>2]=HEAP32[$1+36>>2];$18=HEAPF32[$1+40>>2];HEAP32[$2+120>>2]=HEAP32[$1+40>>2];$19=HEAPF32[$1+44>>2];HEAP32[$2+124>>2]=HEAP32[$1+44>>2];$3=HEAPF32[$1+48>>2];HEAP32[$2+128>>2]=HEAP32[$1+48>>2];$5=HEAPF32[$1+52>>2];HEAP32[$2+132>>2]=HEAP32[$1+52>>2];$6=HEAPF32[$1+56>>2];HEAP32[$2+136>>2]=HEAP32[$1+56>>2];$4=HEAPF32[$1+60>>2];HEAP32[$2+140>>2]=HEAP32[$1+60>>2];$1=lua_newuserdata($0,64);$7=$4;$4=Math_fround($21);HEAPF32[$1+60>>2]=$7*$4;HEAPF32[$1+56>>2]=$6*$4;HEAPF32[$1+52>>2]=$5*$4;HEAPF32[$1+48>>2]=$3*$4;HEAPF32[$1+44>>2]=$19*$4;HEAPF32[$1+40>>2]=$18*$4;HEAPF32[$1+36>>2]=$17*$4;HEAPF32[$1+32>>2]=$16*$4;HEAPF32[$1+28>>2]=$15*$4;HEAPF32[$1+24>>2]=$14*$4;HEAPF32[$1+20>>2]=$13*$4;HEAPF32[$1+16>>2]=$12*$4;HEAPF32[$1+12>>2]=$11*$4;HEAPF32[$1+8>>2]=$10*$4;HEAPF32[$1+4>>2]=$9*$4;HEAPF32[$1>>2]=$8*$4;lua_getfield($0,-1e4,117552);lua_setmetatable($0,-2);break label$1}$1=dmScript__CheckMatrix4_28lua_State__2c_20int_29($0,1);$23=HEAPF32[$1>>2];HEAP32[$2+80>>2]=HEAP32[$1>>2];$24=HEAPF32[$1+4>>2];HEAP32[$2+84>>2]=HEAP32[$1+4>>2];$4=HEAPF32[$1+8>>2];HEAP32[$2+88>>2]=HEAP32[$1+8>>2];$8=HEAPF32[$1+12>>2];HEAP32[$2+92>>2]=HEAP32[$1+12>>2];$9=HEAPF32[$1+16>>2];HEAP32[$2+96>>2]=HEAP32[$1+16>>2];$10=HEAPF32[$1+20>>2];HEAP32[$2+100>>2]=HEAP32[$1+20>>2];$11=HEAPF32[$1+24>>2];HEAP32[$2+104>>2]=HEAP32[$1+24>>2];$12=HEAPF32[$1+28>>2];HEAP32[$2+108>>2]=HEAP32[$1+28>>2];$13=HEAPF32[$1+32>>2];HEAP32[$2+112>>2]=HEAP32[$1+32>>2];$14=HEAPF32[$1+36>>2];HEAP32[$2+116>>2]=HEAP32[$1+36>>2];$15=HEAPF32[$1+40>>2];HEAP32[$2+120>>2]=HEAP32[$1+40>>2];$16=HEAPF32[$1+44>>2];HEAP32[$2+124>>2]=HEAP32[$1+44>>2];$17=HEAPF32[$1+48>>2];HEAP32[$2+128>>2]=HEAP32[$1+48>>2];$18=HEAPF32[$1+52>>2];HEAP32[$2+132>>2]=HEAP32[$1+52>>2];$19=HEAPF32[$1+56>>2];HEAP32[$2+136>>2]=HEAP32[$1+56>>2];$3=HEAPF32[$1+60>>2];HEAP32[$2+140>>2]=HEAP32[$1+60>>2];$1=dmScript__ToUserType_28lua_State__2c_20int_2c_20unsigned_20int_29($0,2,HEAP32[279891]);if($1){Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($2+16|0,$2+80|0,$1);$1=lua_newuserdata($0,64);HEAP32[$1>>2]=HEAP32[$2+16>>2];HEAP32[$1+4>>2]=HEAP32[$2+20>>2];HEAP32[$1+8>>2]=HEAP32[$2+24>>2];HEAP32[$1+12>>2]=HEAP32[$2+28>>2];HEAP32[$1+16>>2]=HEAP32[$2+32>>2];HEAP32[$1+20>>2]=HEAP32[$2+36>>2];HEAP32[$1+24>>2]=HEAP32[$2+40>>2];HEAP32[$1+28>>2]=HEAP32[$2+44>>2];HEAP32[$1+32>>2]=HEAP32[$2+48>>2];HEAP32[$1+36>>2]=HEAP32[$2+52>>2];HEAP32[$1+40>>2]=HEAP32[$2+56>>2];HEAP32[$1+44>>2]=HEAP32[$2+60>>2];HEAP32[$1+48>>2]=HEAP32[$2+64>>2];HEAP32[$1+52>>2]=HEAP32[$2+68>>2];HEAP32[$1+56>>2]=HEAP32[$2+72>>2];HEAP32[$1+60>>2]=HEAP32[$2+76>>2];lua_getfield($0,-1e4,117552);lua_setmetatable($0,-2);break label$1}$1=dmScript__ToUserType_28lua_State__2c_20int_2c_20unsigned_20int_29($0,2,HEAP32[279889]);if($1){$5=HEAPF32[$1+4>>2];$6=HEAPF32[$1>>2];$7=HEAPF32[$1+8>>2];$20=HEAPF32[$1+12>>2];$1=lua_newuserdata($0,16);HEAPF32[$1+12>>2]=Math_fround(Math_fround(Math_fround($6*$8)+Math_fround($5*$12))+Math_fround($7*$16))+Math_fround($20*$3);HEAPF32[$1+8>>2]=Math_fround(Math_fround(Math_fround($6*$4)+Math_fround($5*$11))+Math_fround($7*$15))+Math_fround($20*$19);HEAPF32[$1+4>>2]=Math_fround(Math_fround(Math_fround($6*$24)+Math_fround($5*$10))+Math_fround($7*$14))+Math_fround($20*$18);HEAPF32[$1>>2]=Math_fround(Math_fround(Math_fround($6*$23)+Math_fround($5*$9))+Math_fround($7*$13))+Math_fround($20*$17);lua_getfield($0,-1e4,117520);lua_setmetatable($0,-2);break label$1}if(lua_isnumber($0,2)){$21=luaL_checknumber($0,2);$5=HEAPF32[$2+80>>2];$6=HEAPF32[$2+84>>2];$1=lua_newuserdata($0,64);$7=$3;$3=Math_fround($21);HEAPF32[$1+60>>2]=$7*$3;HEAPF32[$1+56>>2]=$19*$3;HEAPF32[$1+52>>2]=$18*$3;HEAPF32[$1+48>>2]=$17*$3;HEAPF32[$1+44>>2]=$16*$3;HEAPF32[$1+40>>2]=$15*$3;HEAPF32[$1+36>>2]=$14*$3;HEAPF32[$1+32>>2]=$13*$3;HEAPF32[$1+28>>2]=$12*$3;HEAPF32[$1+24>>2]=$11*$3;HEAPF32[$1+20>>2]=$10*$3;HEAPF32[$1+16>>2]=$9*$3;HEAPF32[$1+12>>2]=$8*$3;HEAPF32[$1+8>>2]=$4*$3;HEAPF32[$1+4>>2]=$6*$3;HEAPF32[$1>>2]=$5*$3;lua_getfield($0,-1e4,117552);lua_setmetatable($0,-2);break label$1}HEAP32[$2+12>>2]=117520;HEAP32[$2+8>>2]=117552;HEAP32[$2+4>>2]=117552;HEAP32[$2>>2]=117568;$22=luaL_error($0,118532,$2)}global$0=$2+144|0;return $22|0}function dmGameSystem__CollectionFactoryComp_Create_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=Math_fround(0),$9=0,$10=0,$11=0,$12=0;$1=global$0-4256|0;global$0=$1;$5=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$3=dmGameSystem__CheckGoInstance_28lua_State__29($0);$4=HEAP32[HEAP32[$3+80>>2]+8>>2];$2=$1+4240|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;$2=$1+4232|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;$2=$1+4224|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$1+4216>>2]=0;HEAP32[$1+4220>>2]=0;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$4,62745,$1+4252|0,$1+4216|0,0);$11=HEAP32[$1+4252>>2];label$1:{label$2:{if(($5|0)<2){break label$2}if(!lua_type($0,2)){break label$2}$2=dmScript__CheckVector3_28lua_State__2c_20int_29($0,2);$6=HEAP32[$2+4>>2];$7=HEAP32[$2>>2];HEAP32[$1+4200>>2]=HEAP32[$2+8>>2];HEAP32[$1+4192>>2]=$7;HEAP32[$1+4196>>2]=$6;break label$1}dmGameObject__GetWorldPosition_28dmGameObject__Instance__29($1+80|0,$3);HEAP32[$1+4192>>2]=HEAP32[$1+80>>2];$2=HEAP32[$1+88>>2];HEAP32[$1+4196>>2]=HEAP32[$1+84>>2];HEAP32[$1+4200>>2]=$2}label$3:{label$4:{if(($5|0)<3){break label$4}if(!lua_type($0,3)){break label$4}$2=dmScript__CheckQuat_28lua_State__2c_20int_29($0,3);HEAP32[$1+4176>>2]=HEAP32[$2>>2];HEAP32[$1+4180>>2]=HEAP32[$2+4>>2];HEAP32[$1+4184>>2]=HEAP32[$2+8>>2];HEAP32[$1+4188>>2]=HEAP32[$2+12>>2];break label$3}dmGameObject__GetWorldRotation_28dmGameObject__Instance__29($1+80|0,$3);$2=HEAP32[$1+84>>2];HEAP32[$1+4176>>2]=HEAP32[$1+80>>2];HEAP32[$1+4180>>2]=$2;$2=HEAP32[$1+92>>2];HEAP32[$1+4184>>2]=HEAP32[$1+88>>2];HEAP32[$1+4188>>2]=$2}$2=$1- -64|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$1+72>>2]=0;HEAP32[$1+76>>2]=0;HEAP32[$1+56>>2]=0;HEAP32[$1+60>>2]=0;HEAP32[$1+48>>2]=0;HEAP32[$1+52>>2]=0;HEAP32[$1+68>>2]=-1;dmHashTable_unsigned_20long_20long_2c_20dmGameObject__InstancePropertyBuffer___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($1+48|0,8,32);label$5:{label$6:{label$7:{label$8:{label$9:{if(($5|0)<=3){break label$9}if(lua_type($0,4)){if((lua_type($0,4)|0)!=5){break label$7}lua_pushvalue($0,4);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;if(lua_next($0,-2)){$2=0;while(1){$7=dmScript__CheckHash_28lua_State__2c_20int_29($0,-2);$12=i64toi32_i32$HIGH_BITS;$9=($1+80|0)+$2|0;$10=4096-$2|0;$6=dmScript__CheckTable_28lua_State__2c_20char__2c_20unsigned_20int_2c_20int_29($0,$9,$10,-1);if($6>>>0>$10>>>0){$0=luaL_error($0,63280,0);break label$5}HEAP32[$1>>2]=$9;HEAP32[$1+4>>2]=$6;dmHashTable_unsigned_20long_20long_2c_20dmGameObject__InstancePropertyBuffer___Put_28unsigned_20long_20long_2c_20dmGameObject__InstancePropertyBuffer_20const__29($1+48|0,$7,$12,$1);lua_settop($0,-2);$2=($2|15)+$6&-16;if(lua_next($0,-2)){continue}break}}lua_settop($0,-2)}if(($5|0)<5){break label$9}if(!lua_type($0,5)){break label$9}$2=dmScript__ToVector3_28lua_State__2c_20int_29($0,5);if($2){HEAP32[$1+32>>2]=HEAP32[$2>>2];HEAP32[$1+36>>2]=HEAP32[$2+4>>2];HEAP32[$1+40>>2]=HEAP32[$2+8>>2];break label$8}$8=Math_fround(luaL_checknumber($0,5));HEAPF32[$1+40>>2]=$8;HEAPF32[$1+36>>2]=$8;HEAPF32[$1+32>>2]=$8;break label$8}dmGameObject__GetWorldScale_28dmGameObject__Instance__29($1,$3);HEAP32[$1+32>>2]=HEAP32[$1>>2];$2=HEAP32[$1+8>>2];HEAP32[$1+36>>2]=HEAP32[$1+4>>2];HEAP32[$1+40>>2]=$2}dmScript__GetInstance_28lua_State__29($0);$2=dmScript__Ref_28lua_State__2c_20int_29($0,-1e4);HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+20>>2]=-1;$3=dmGameObject__SpawnFromCollection_28dmGameObject__CollectionHandle__2c_20void__2c_20dmHashTable_unsigned_20long_20long_2c_20dmGameObject__InstancePropertyBuffer___2c_20Vectormath__Aos__Point3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20dmHashTable_unsigned_20long_20long_2c_20unsigned_20long_20long___29($4,HEAP32[HEAP32[$11>>2]>>2],$1+48|0,$1+4192|0,$1+4176|0,$1+32|0,$1);lua_rawgeti($0,-1e4,$2);dmScript__SetInstance_28lua_State__29($0);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($0,-1e4,$2);lua_createtable($0,0,0);label$15:{if(!$3){break label$15}lua_createtable($0,0,1);lua_pushcclosure($0,525,0);lua_setfield($0,-2,63433);lua_setmetatable($0,-2);$4=HEAP32[$1+4>>2];if(!$4){break label$15}$3=0;while(1){$2=HEAP32[HEAP32[$1>>2]+($3<<2)>>2];if(($2|0)!=-1){while(1){$2=HEAP32[$1+8>>2]+Math_imul($2,24)|0;dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,HEAP32[$2>>2],HEAP32[$2+4>>2]);dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,HEAP32[$2+8>>2],HEAP32[$2+12>>2]);lua_rawset($0,-3);$2=HEAP32[$2+16>>2];if(($2|0)!=-1){continue}break}$4=HEAP32[$1+4>>2]}$3=$3+1|0;if($3>>>0<$4>>>0){continue}break}}if(($5+1|0)!=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$6}label$19:{if(HEAP8[$1+28|0]&1){break label$19}$0=HEAP32[$1+8>>2];if($0){dlfree($0)}$0=HEAP32[$1>>2];if(!$0){break label$19}dlfree($0)}$0=1;break label$5}$0=luaL_error($0,63375,0);break label$5}__assert_fail(63441,63200,413,63346);abort()}label$21:{if(HEAP8[$1+76|0]&1){break label$21}$2=HEAP32[$1+56>>2];if($2){dlfree($2)}$2=HEAP32[$1+48>>2];if(!$2){break label$21}dlfree($2)}global$0=$1+4256|0;return $0|0}function SphereTriangleDetector__getClosestPoints_28btDiscreteCollisionDetectorInterface__ClosestPointInput_20const__2c_20btDiscreteCollisionDetectorInterface__Result__2c_20btIDebugDraw__2c_20bool_29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0);$3=global$0-144|0;global$0=$3;HEAP32[$3+108>>2]=1065353216;HEAP32[$3+104>>2]=0;$5=HEAPF32[$1+80>>2];$7=HEAPF32[$1+96>>2];$14=HEAPF32[$1+120>>2];$26=HEAPF32[$1+56>>2];$21=HEAPF32[$1+112>>2];$22=HEAPF32[$1+116>>2];$27=HEAPF32[$1+52>>2];$8=HEAPF32[$1+68>>2];$15=HEAPF32[$1+84>>2];$16=HEAPF32[$1+100>>2];$6=HEAPF32[$1+20>>2];$12=HEAPF32[$1+36>>2];$17=HEAPF32[$1+72>>2];$9=HEAPF32[$1+88>>2];$13=HEAPF32[$1+24>>2];$10=HEAPF32[$1+104>>2];$18=HEAPF32[$1+40>>2];$11=HEAPF32[$1+64>>2];$19=HEAPF32[$1+32>>2];$20=HEAPF32[$1>>2];$23=HEAPF32[$1+16>>2];$28=HEAPF32[$1+48>>2];$24=HEAPF32[$1+4>>2];$25=HEAPF32[$1+8>>2];HEAP32[$3+100>>2]=0;HEAP32[$3+84>>2]=0;HEAP32[$3+68>>2]=0;HEAPF32[$3+80>>2]=Math_fround(Math_fround($25*$17)+Math_fround($13*$9))+Math_fround($18*$10);HEAPF32[$3+76>>2]=Math_fround(Math_fround($24*$17)+Math_fround($6*$9))+Math_fround($12*$10);HEAPF32[$3- -64>>2]=Math_fround(Math_fround($25*$8)+Math_fround($13*$15))+Math_fround($18*$16);HEAPF32[$3+60>>2]=Math_fround(Math_fround($24*$8)+Math_fround($6*$15))+Math_fround($12*$16);$21=Math_fround($28-$21);$22=Math_fround($27-$22);$14=Math_fround($26-$14);HEAPF32[$3+96>>2]=Math_fround(Math_fround($17*$21)+Math_fround($9*$22))+Math_fround($10*$14);HEAPF32[$3+92>>2]=Math_fround(Math_fround($21*$8)+Math_fround($22*$15))+Math_fround($14*$16);HEAP32[$3+52>>2]=0;HEAPF32[$3+72>>2]=Math_fround(Math_fround($20*$17)+Math_fround($23*$9))+Math_fround($19*$10);HEAPF32[$3+56>>2]=Math_fround(Math_fround($20*$8)+Math_fround($23*$15))+Math_fround($19*$16);HEAPF32[$3+48>>2]=Math_fround(Math_fround($11*$25)+Math_fround($5*$13))+Math_fround($7*$18);HEAPF32[$3+44>>2]=Math_fround(Math_fround($11*$24)+Math_fround($5*$6))+Math_fround($7*$12);HEAPF32[$3+40>>2]=Math_fround(Math_fround($11*$20)+Math_fround($5*$23))+Math_fround($7*$19);HEAPF32[$3+88>>2]=Math_fround(Math_fround($21*$11)+Math_fround($22*$5))+Math_fround($14*$7);label$1:{if(!SphereTriangleDetector__collide_28btVector3_20const__2c_20btVector3__2c_20btVector3__2c_20float__2c_20float__2c_20float_29($0,$3+88|0,$3+128|0,$3+112|0,$3+104|0,$3+108|0,HEAPF32[$0+12>>2])){break label$1}if($4){$15=HEAPF32[$1+72>>2];$16=HEAPF32[$1+64>>2];$17=HEAPF32[$1+68>>2];$9=HEAPF32[$1+88>>2];$10=HEAPF32[$1+80>>2];$11=HEAPF32[$1+84>>2];$6=HEAPF32[$1+104>>2];$12=HEAPF32[$1+96>>2];$13=HEAPF32[$1+100>>2];$5=HEAPF32[$3+120>>2];$7=HEAPF32[$3+112>>2];$8=HEAPF32[$3+116>>2];HEAP32[$3+36>>2]=0;$18=Math_fround(Math_fround(Math_fround($7*$12)+Math_fround($8*$13))+Math_fround($5*$6));HEAPF32[$3+32>>2]=-$18;$19=Math_fround(Math_fround(Math_fround($7*$10)+Math_fround($8*$11))+Math_fround($5*$9));HEAPF32[$3+28>>2]=-$19;$20=Math_fround(Math_fround(Math_fround($16*$7)+Math_fround($17*$8))+Math_fround($15*$5));HEAPF32[$3+24>>2]=-$20;$23=HEAPF32[$1+112>>2];$24=HEAPF32[$1+116>>2];$5=HEAPF32[$1+120>>2];HEAP32[$3+20>>2]=0;$7=HEAPF32[$3+128>>2];$8=HEAPF32[$3+132>>2];$14=$6;$6=HEAPF32[$3+136>>2];$14=Math_fround($5+Math_fround(Math_fround(Math_fround($12*$7)+Math_fround($13*$8))+Math_fround($14*$6)));$5=HEAPF32[$3+104>>2];HEAPF32[$3+16>>2]=$14+Math_fround($18*$5);HEAPF32[$3+12>>2]=Math_fround($24+Math_fround(Math_fround(Math_fround($7*$10)+Math_fround($8*$11))+Math_fround($6*$9)))+Math_fround($19*$5);HEAPF32[$3+8>>2]=Math_fround($23+Math_fround(Math_fround(Math_fround($16*$7)+Math_fround($17*$8))+Math_fround($15*$6)))+Math_fround($20*$5);FUNCTION_TABLE[HEAP32[HEAP32[$2>>2]+16>>2]]($2,$3+24|0,$3+8|0,$5);break label$1}$5=HEAPF32[$1+72>>2];$7=HEAPF32[$1+64>>2];$8=HEAPF32[$1+68>>2];$15=HEAPF32[$1+88>>2];$16=HEAPF32[$1+80>>2];$17=HEAPF32[$1+84>>2];$9=HEAPF32[$1+104>>2];$10=HEAPF32[$1+96>>2];$11=HEAPF32[$1+100>>2];HEAP32[$3+36>>2]=0;$6=HEAPF32[$3+112>>2];$12=HEAPF32[$3+116>>2];$13=HEAPF32[$3+120>>2];HEAPF32[$3+32>>2]=Math_fround(Math_fround($10*$6)+Math_fround($11*$12))+Math_fround($9*$13);HEAPF32[$3+28>>2]=Math_fround(Math_fround($6*$16)+Math_fround($12*$17))+Math_fround($13*$15);HEAPF32[$3+24>>2]=Math_fround(Math_fround($7*$6)+Math_fround($8*$12))+Math_fround($5*$13);$6=HEAPF32[$1+112>>2];$12=HEAPF32[$1+116>>2];$13=HEAPF32[$1+120>>2];HEAP32[$3+20>>2]=0;$14=$10;$10=HEAPF32[$3+128>>2];$18=$11;$11=HEAPF32[$3+132>>2];$19=$9;$9=HEAPF32[$3+136>>2];HEAPF32[$3+16>>2]=$13+Math_fround(Math_fround(Math_fround($14*$10)+Math_fround($18*$11))+Math_fround($19*$9));HEAPF32[$3+12>>2]=$12+Math_fround(Math_fround(Math_fround($10*$16)+Math_fround($11*$17))+Math_fround($9*$15));HEAPF32[$3+8>>2]=$6+Math_fround(Math_fround(Math_fround($7*$10)+Math_fround($8*$11))+Math_fround($5*$9));FUNCTION_TABLE[HEAP32[HEAP32[$2>>2]+16>>2]]($2,$3+24|0,$3+8|0,HEAPF32[$3+104>>2])}global$0=$3+144|0}function dmProfile__Initialize_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20int_29(){var $0=0,$1=0,$2=0,$3=0,$4=0,$5=0;label$1:{label$2:{label$3:{label$4:{if(HEAPU8[561908]){$0=HEAP32[282585]-HEAP32[282583]|0;label$6:{label$7:{if(!($0>>4!=256?$0:0)){dmHashTable_unsigned_20long_2c_20char_20const____SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130648,1024,1536);HEAP32[282670]=dmStringPool__New_28_29();if(HEAP32[282585]==HEAP32[282583]){if(HEAP8[1130344]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(256,16,1130332,1130340,1130336);HEAP32[282584]=HEAP32[282583]}if(HEAP8[1130644]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(3,4,1130632,1130640,1130636);HEAP32[282659]=HEAP32[282658];if(HEAP8[1130476]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(16384,24,1130464,1130472,1130468);HEAP32[282617]=HEAP32[282616];if(HEAP8[1130492]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(128,8,1130480,1130488,1130484);$0=HEAP32[282620];if(HEAP32[282622]-$0>>3>>>0<128){break label$1}HEAP32[282621]=$0+1024;if(HEAP8[1130508]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(256,12,1130496,1130504,1130500);$0=HEAP32[282624];if((HEAP32[282626]-$0|0)/12>>>0<256){break label$1}HEAP32[282628]=0;HEAP32[282629]=0;HEAP32[282625]=$0+3072;$0=HEAP32[282659];if(($0|0)==HEAP32[282660]){break label$7}HEAP32[282659]=$0+4;HEAP32[$0>>2]=1130464;if(HEAP8[1130532]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(16384,24,1130520,1130528,1130524);HEAP32[282631]=HEAP32[282630];if(HEAP8[1130548]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(128,8,1130536,1130544,1130540);$0=HEAP32[282634];if(HEAP32[282636]-$0>>3>>>0<128){break label$1}HEAP32[282635]=$0+1024;if(HEAP8[1130564]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(256,12,1130552,1130560,1130556);$0=HEAP32[282638];if((HEAP32[282640]-$0|0)/12>>>0<256){break label$1}HEAP32[282642]=0;HEAP32[282643]=0;HEAP32[282639]=$0+3072;$0=HEAP32[282659];if(($0|0)==HEAP32[282660]){break label$7}HEAP32[282659]=$0+4;HEAP32[$0>>2]=1130520;if(HEAP8[1130588]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(16384,24,1130576,1130584,1130580);HEAP32[282645]=HEAP32[282644];if(HEAP8[1130604]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(128,8,1130592,1130600,1130596);$0=HEAP32[282648];if(HEAP32[282650]-$0>>3>>>0<128){break label$1}HEAP32[282649]=$0+1024;if(HEAP8[1130620]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(256,12,1130608,1130616,1130612);$0=HEAP32[282652];if((HEAP32[282654]-$0|0)/12>>>0<256){break label$1}HEAP32[282656]=0;HEAP32[282657]=0;HEAP32[282653]=$0+3072;$0=HEAP32[282659];if(($0|0)==HEAP32[282660]){break label$7}HEAP32[282659]=$0+4;HEAP32[$0>>2]=1130576;$1=HEAP32[282659];$0=HEAP32[282658];if(($1|0)!=($0|0)){break label$6}break label$3}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,154574,154579,0);__assert_fail(154650,154652,107,154676);abort()}__assert_fail(155249,155196,484,155273);abort()}HEAP32[143153]=HEAP32[$0>>2];HEAP32[$0>>2]=HEAP32[$1+ -4>>2];$0=HEAP32[282659]+ -4|0;HEAP32[282659]=$0;if($0>>>0>4;$5=$0>>>0>1?$0:1;$0=0;while(1){$4=HEAP32[143153];$1=HEAP32[$4+32>>2];if((HEAP32[$4+36>>2]-$1|0)/12>>>0<=$0>>>0){break label$3}$1=$1+Math_imul($0,12)|0;HEAP32[$1+4>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1>>2]=$3+($0<<4);$0=$0+1|0;if(($5|0)!=($0|0)){continue}break}}dmHashTable_unsigned_20int_2c_20unsigned_20int___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130348,85,128);memset(HEAP32[282587],255,HEAP32[282588]<<2);HEAP32[282592]=-1;HEAP32[282593]=0;HEAP32[282590]=HEAP32[282589];if(HEAP8[1130392]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(128,8,1130380,1130388,1130384);HEAP32[282596]=HEAP32[282595];$2=+emscripten_get_now();HEAP8[1130703]=1;$2=$2*1e3;if($2<0x10000000000000000&$2>=0){HEAP32[282671]=~~$2>>>0;return}HEAP32[282671]=0}return}__assert_fail(155310,155196,467,155300);abort()}__assert_fail(155278,155196,430,155289);abort()}__assert_fail(155121,155196,444,155086);abort()}__assert_fail(155222,155196,457,155241);abort()}function void_20std____2____inplace_merge_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=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;label$1:{if(!$5){break label$1}while(1){label$3:{label$4:{if(!(($5|0)<=($7|0)|($4|0)<=($7|0))){if(!$4){break label$1}$8=HEAP32[$3>>2];$18=HEAP32[$1>>2];$9=$8+($18<<3)|0;$11=HEAP32[$9>>2];$9=HEAP32[$9+4>>2];while(1){$10=HEAP32[$0>>2];$12=$8+($10<<3)|0;$14=HEAP32[$12>>2];$12=HEAP32[$12+4>>2];if(($12|0)==($9|0)&$11>>>0<$14>>>0|$9>>>0<$12>>>0){break label$4}$0=$0+4|0;$4=$4+ -1|0;if($4){continue}break}break label$1}if(($4|0)>($5|0)){break label$3}if(($0|0)==($1|0)){break label$1}$8=$6;$9=$0;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($1|0)){continue}break}if(($6|0)==($8|0)){break label$1}$3=HEAP32[$3>>2];while(1){if(($1|0)==($2|0)){$1=$8-$6|0;if(!$1){break label$1}memmove($0,$6,$1);return}$4=HEAP32[$1>>2];$5=$3+($4<<3)|0;$7=HEAP32[$5>>2];$9=HEAP32[$6>>2];$11=$3+($9<<3)|0;$10=HEAP32[$11>>2];$5=HEAP32[$5+4>>2];$11=HEAP32[$11+4>>2];label$10:{if(($5|0)==($11|0)&$7>>>0<$10>>>0|$5>>>0<$11>>>0){HEAP32[$0>>2]=$4;$1=$1+4|0;break label$10}HEAP32[$0>>2]=$9;$6=$6+4|0}$0=$0+4|0;if(($6|0)!=($8|0)){continue}break}break label$1}label$12:{if(($4|0)<($5|0)){$14=($5|0)/2|0;$11=($14<<2)+$1|0;$9=$1-$0|0;label$14:{if(!$9){$10=$0;break label$14}$9=$9>>2;$10=$8+(HEAP32[$11>>2]<<3)|0;$15=HEAP32[$10>>2];$12=HEAP32[$10+4>>2];$10=$0;while(1){$16=$9>>>1|0;$13=($16<<2)+$10|0;$17=$8+(HEAP32[$13>>2]<<3)|0;$19=HEAP32[$17>>2];$20=$10;$21=$13+4|0;$10=HEAP32[$17+4>>2];$13=($10|0)==($12|0)&$15>>>0<$19>>>0|$12>>>0<$10>>>0;$10=$13?$20:$21;$9=$13?$16:($16^-1)+$9|0;if($9){continue}break}}$16=$10-$0>>2;break label$12}if(($4|0)==1){HEAP32[$0>>2]=$18;HEAP32[$1>>2]=$10;return}$16=($4|0)/2|0;$10=($16<<2)+$0|0;$9=$2-$1|0;label$18:{if(!$9){$11=$1;break label$18}$9=$9>>2;$11=$8+(HEAP32[$10>>2]<<3)|0;$15=HEAP32[$11>>2];$12=HEAP32[$11+4>>2];$11=$1;while(1){$14=$9>>>1|0;$13=($14<<2)+$11|0;$17=$8+(HEAP32[$13>>2]<<3)|0;$19=HEAP32[$17>>2];$21=$13+4|0;$20=$11;$11=HEAP32[$17+4>>2];$13=($12|0)==($11|0)&$19>>>0<$15>>>0|$11>>>0<$12>>>0;$11=$13?$21:$20;$9=$13?($14^-1)+$9|0:$14;if($9){continue}break}}$14=$11-$1>>2}$5=$5-$14|0;$4=$4-$16|0;$8=$11;label$21:{if(($1|0)==($10|0)){break label$21}$8=$10;if(($1|0)==($11|0)){break label$21}$8=$10+4|0;if(($8|0)==($1|0)){$8=$11-$1|0;$9=$8>>2;$12=HEAP32[$10>>2];if($8){memmove($10,$1,$8)}$8=($9<<2)+$10|0;HEAP32[$8>>2]=$12;break label$21}$12=$1+4|0;if(($12|0)==($11|0)){$1=$11+ -4|0;$9=HEAP32[$1>>2];$8=$11;$1=$1-$10|0;if($1){$8=$11-$1|0;memmove($8,$10,$1)}HEAP32[$10>>2]=$9;break label$21}$17=$11-$1>>2;$9=$17;$13=$1-$10>>2;$15=$13;if(($9|0)==($13|0)){$9=HEAP32[$10>>2];HEAP32[$10>>2]=$18;HEAP32[$1>>2]=$9;while(1){$9=HEAP32[$8>>2];HEAP32[$8>>2]=HEAP32[$12>>2];HEAP32[$12>>2]=$9;$12=$12+4|0;$8=$8+4|0;if(($8|0)!=($1|0)){continue}break}$8=$1;break label$21}while(1){$1=$9;$9=($15|0)%($1|0)|0;$15=$1;if($9){continue}break}if($15){$1=($15<<2)+$10|0;while(1){$1=$1+ -4|0;$15=$13<<2;$12=$1+$15|0;$18=HEAP32[$1>>2];$9=$1;while(1){$8=$12;HEAP32[$9>>2]=HEAP32[$8>>2];$9=$8;$12=$11-$8>>2;$12=($13|0)<($12|0)?$8+$15|0:($13-$12<<2)+$10|0;if(($12|0)!=($1|0)){continue}break}HEAP32[$8>>2]=$18;if(($1|0)!=($10|0)){continue}break}}$8=($17<<2)+$10|0}label$32:{if(($14+$16|0)<($4+$5|0)){void_20std____2____inplace_merge_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$10,$8,$3,$16,$14,$6,$7);$0=$8;$1=$11;break label$32}void_20std____2____inplace_merge_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($8,$11,$2,$3,$4,$5,$6,$7);$5=$14;$4=$16;$2=$8;$1=$10}if($5){continue}break label$1}break}if(($1|0)==($2|0)){break label$1}$9=$1;$8=$6;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($2|0)){continue}break}if(($6|0)==($8|0)){break label$1}$4=HEAP32[$3>>2];$12=$8;while(1){if(($0|0)==($1|0)){if(($6|0)==($8|0)){break label$1}while(1){$2=$2+ -4|0;$8=$8+ -4|0;HEAP32[$2>>2]=HEAP32[$8>>2];if(($6|0)!=($8|0)){continue}break}break label$1}$5=$12+ -4|0;$3=HEAP32[$5>>2];$7=$4+($3<<3)|0;$9=HEAP32[$7>>2];$11=$1+ -4|0;$10=HEAP32[$11>>2];$14=$4+($10<<3)|0;$16=HEAP32[$14>>2];$2=$2+ -4|0;$15=$3;$3=HEAP32[$7+4>>2];$7=HEAP32[$14+4>>2];$3=($3|0)==($7|0)&$9>>>0<$16>>>0|$3>>>0<$7>>>0;HEAP32[$2>>2]=$3?$10:$15;$1=$3?$11:$1;$8=$3?$8:$5;$12=$3?$12:$5;if(($12|0)!=($6|0)){continue}break}}}function btManifoldResult__addContactPoint_28btVector3_20const__2c_20btVector3_20const__2c_20float_29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=Math_fround($3);var $4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=0,$21=0,$22=0,$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=0,$27=0,$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0);$4=global$0-288|0;global$0=$4;label$1:{if(HEAPF32[HEAP32[$0+4>>2]+1120>>2]<$3){break label$1}$13=HEAPF32[$2+8>>2];$16=Math_fround(Math_fround(HEAPF32[$1+8>>2]*$3)+$13);$11=HEAPF32[$2+4>>2];$17=Math_fround(Math_fround(HEAPF32[$1+4>>2]*$3)+$11);$12=HEAPF32[$2>>2];$18=Math_fround(Math_fround(HEAPF32[$1>>2]*$3)+$12);$19=HEAP32[$0+4>>2];$20=HEAP32[$19+1108>>2];$21=HEAP32[$0+136>>2];$22=($20|0)==($21|0);label$2:{if(!$22){$6=Math_fround($18-HEAPF32[$0+120>>2]);$7=Math_fround($17-HEAPF32[$0+124>>2]);$8=Math_fround($16-HEAPF32[$0+128>>2]);$23=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+80>>2])+Math_fround($7*HEAPF32[$0+96>>2]))+Math_fround($8*HEAPF32[$0+112>>2]));$24=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+76>>2])+Math_fround($7*HEAPF32[$0+92>>2]))+Math_fround($8*HEAPF32[$0+108>>2]));$6=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+72>>2])+Math_fround($7*HEAPF32[$0+88>>2]))+Math_fround($8*HEAPF32[$0+104>>2]));$11=Math_fround($11-HEAPF32[$0+60>>2]);$7=Math_fround($11*HEAPF32[$0+24>>2]);$9=$0+32|0;$14=$0+16|0;$15=$0+44|0;$25=$0+28|0;$10=$0+12|0;$26=$0- -64|0;$12=Math_fround($12-HEAPF32[$0+56>>2]);$8=Math_fround($12*HEAPF32[$0+8>>2]);$27=$0+40|0;$5=$0+48|0;break label$2}$6=Math_fround($18-HEAPF32[$0+56>>2]);$7=Math_fround($17-HEAPF32[$0+60>>2]);$8=Math_fround($16-HEAPF32[$0- -64>>2]);$23=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+16>>2])+Math_fround($7*HEAPF32[$0+32>>2]))+Math_fround($8*HEAPF32[$0+48>>2]));$24=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+12>>2])+Math_fround($7*HEAPF32[$0+28>>2]))+Math_fround($8*HEAPF32[$0+44>>2]));$6=Math_fround(Math_fround(Math_fround($6*HEAPF32[$0+8>>2])+Math_fround($7*HEAPF32[$0+24>>2]))+Math_fround($8*HEAPF32[$0+40>>2]));$11=Math_fround($11-HEAPF32[$0+124>>2]);$7=Math_fround($11*HEAPF32[$0+88>>2]);$9=$0+96|0;$14=$0+80|0;$15=$0+108|0;$25=$0+92|0;$10=$0+76|0;$26=$0+128|0;$12=Math_fround($12-HEAPF32[$0+120>>2]);$8=Math_fround($12*HEAPF32[$0+72>>2]);$27=$0+104|0;$5=$0+112|0}$28=HEAPF32[$27>>2];$29=HEAPF32[$15>>2];$30=HEAPF32[$10>>2];$31=HEAPF32[$25>>2];$32=HEAPF32[$5>>2];$33=HEAPF32[$26>>2];$34=HEAPF32[$14>>2];$35=HEAPF32[$9>>2];HEAP32[$4+36>>2]=0;$13=Math_fround($13-$33);HEAPF32[$4+32>>2]=Math_fround(Math_fround($12*$34)+Math_fround($11*$35))+Math_fround($32*$13);HEAPF32[$4+28>>2]=Math_fround(Math_fround($12*$30)+Math_fround($11*$31))+Math_fround($13*$29);HEAP32[$4+20>>2]=0;HEAPF32[$4+16>>2]=$23;HEAPF32[$4+12>>2]=$24;HEAPF32[$4+8>>2]=$6;HEAPF32[$4+24>>2]=Math_fround($8+$7)+Math_fround($13*$28);$5=HEAP32[$1+12>>2];HEAP32[$4+80>>2]=HEAP32[$1+8>>2];HEAP32[$4+84>>2]=$5;$5=HEAP32[$1>>2];$1=HEAP32[$1+4>>2];HEAP32[$4+280>>2]=0;HEAP32[$4+248>>2]=0;HEAP32[$4+216>>2]=0;HEAP8[$4+124|0]=0;HEAP32[$4+136>>2]=0;HEAP32[$4+140>>2]=0;HEAP32[$4+144>>2]=0;HEAP32[$4+148>>2]=0;HEAP32[$4+152>>2]=0;HEAP32[$4+68>>2]=0;HEAPF32[$4- -64>>2]=$16;HEAPF32[$4+60>>2]=$17;HEAP32[$4+72>>2]=$5;HEAP32[$4+76>>2]=$1;HEAP32[$4+92>>2]=0;HEAP32[$4+96>>2]=0;HEAPF32[$4+88>>2]=$3;HEAP32[$4+116>>2]=0;HEAP32[$4+120>>2]=0;HEAP32[$4+128>>2]=0;HEAP32[$4+132>>2]=0;HEAPF32[$4+56>>2]=$18;$1=HEAP32[$2+12>>2];HEAP32[$4+48>>2]=HEAP32[$2+8>>2];HEAP32[$4+52>>2]=$1;$1=HEAP32[$2+4>>2];HEAP32[$4+40>>2]=HEAP32[$2>>2];HEAP32[$4+44>>2]=$1;$2=btPersistentManifold__getCacheEntry_28btManifoldPoint_20const__29_20const($19,$4+8|0);$1=HEAP32[$0+136>>2];$5=HEAP32[$0+140>>2];HEAPF32[$4+92>>2]=Math_min(Math_fround(Math_max(Math_fround(HEAPF32[$1+224>>2]*HEAPF32[$5+224>>2]),Math_fround(-10))),Math_fround(10));HEAPF32[$4+96>>2]=HEAPF32[$1+228>>2]*HEAPF32[$5+228>>2];label$4:{if(!$22){$5=$0+156|0;$9=$0+144|0;$10=$0+148|0;$1=$0+152|0;break label$4}$5=$0+152|0;$9=$0+148|0;$10=$0+144|0;$1=$0+156|0}$10=HEAP32[$10>>2];$9=HEAP32[$9>>2];$5=HEAP32[$5>>2];HEAP32[$4+112>>2]=HEAP32[$1>>2];HEAP32[$4+108>>2]=$5;HEAP32[$4+104>>2]=$9;HEAP32[$4+100>>2]=$10;$1=HEAP32[$0+4>>2];label$6:{if(($2|0)>=0){$1=$1+Math_imul($2,276)|0;$14=HEAP32[$1+148>>2];$15=HEAP32[$1+112>>2];$5=HEAP32[$1+212>>2];$9=HEAP32[$1+244>>2];$10=HEAP32[$1+276>>2];memcpy($1+4|0,$4+8|0,276);HEAP32[$1+276>>2]=$10;HEAP32[$1+244>>2]=$9;HEAP32[$1+212>>2]=$5;HEAP32[$1+128>>2]=$10;HEAP32[$1+124>>2]=$9;HEAP32[$1+116>>2]=$5;HEAP32[$1+112>>2]=$15;HEAP32[$1+148>>2]=$14;break label$6}$2=btPersistentManifold__addManifoldPoint_28btManifoldPoint_20const__29($1,$4+8|0)}$1=HEAP32[147972];if(!$1|(HEAPU8[HEAP32[$0+140>>2]+204|0]&8?0:!(HEAPU8[HEAP32[$0+136>>2]+204|0]&8))){break label$1}$5=(HEAP32[$0+4>>2]+Math_imul($2,276)|0)+4|0;$2=($20|0)!=($21|0);FUNCTION_TABLE[$1]($5,HEAP32[($2?140:136)+$0>>2],HEAP32[$4+100>>2],HEAP32[$4+108>>2],HEAP32[($2?136:140)+$0>>2],HEAP32[$4+104>>2],HEAP32[$4+112>>2])|0}global$0=$4+288|0}function dmScript__Lerp_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=0,$14=0,$15=0;$2=global$0-288|0;global$0=$2;$3=dmScript__GetUserType_28lua_State__2c_20int_29($0,2);label$1:{if(($3|0)==HEAP32[279888]){break label$1}$1=1;if(($3|0)==HEAP32[279889]){break label$1}$1=2;if(($3|0)==HEAP32[279890]){break label$1}$1=3;if(($3|0)==HEAP32[279891]){break label$1}$1=($3|0)==HEAP32[279892]?4:5}$3=dmScript__GetUserType_28lua_State__2c_20int_29($0,3);label$2:{if(($3|0)==HEAP32[279888]){break label$2}$13=1;if(($3|0)==HEAP32[279889]){break label$2}$13=2;if(($3|0)==HEAP32[279890]){break label$2}$13=3;if(($3|0)==HEAP32[279891]){break label$2}$13=($3|0)==HEAP32[279892]?4:5}$8=Math_fround(luaL_checknumber($0,1));label$3:{label$4:{if(!(($1|0)==5|($1|0)!=($13|0))){if($1>>>0>2){break label$4}label$6:{switch($1-1|0){default:$1=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,2,HEAP32[279888],0);$4=HEAPF32[$1+8>>2];$5=HEAPF32[$1>>2];$6=HEAPF32[$1+4>>2];if(!($4==$4?!($5!=$5|$6!=$6):0)){HEAPF64[$2+88>>3]=$4;HEAPF64[$2+80>>3]=$6;HEAP32[$2+64>>2]=2;HEAPF64[$2+72>>3]=$5;luaL_error($0,117635,$2- -64|0)}$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[279888],0);$4=HEAPF32[$3+8>>2];$5=HEAPF32[$3>>2];$6=HEAPF32[$3+4>>2];if(!($4==$4?!($5!=$5|$6!=$6):0)){HEAPF64[$2+56>>3]=$4;HEAPF64[$2+48>>3]=$6;HEAP32[$2+32>>2]=3;HEAPF64[$2+40>>3]=$5;luaL_error($0,117635,$2+32|0);$6=HEAPF32[$3+4>>2];$5=HEAPF32[$3>>2];$4=HEAPF32[$3+8>>2]}$7=HEAPF32[$1+8>>2];$9=HEAPF32[$1>>2];$10=HEAPF32[$1+4>>2];$1=lua_newuserdata($0,16);HEAPF32[$1+8>>2]=$7+Math_fround(Math_fround($4-$7)*$8);HEAPF32[$1+4>>2]=$10+Math_fround(Math_fround($6-$10)*$8);HEAPF32[$1>>2]=$9+Math_fround(Math_fround($5-$9)*$8);lua_getfield($0,-1e4,117504);lua_setmetatable($0,-2);$0=1;break label$3;case 0:$1=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,2,HEAP32[279889],0);$4=HEAPF32[$1+8>>2];$5=HEAPF32[$1>>2];$6=HEAPF32[$1+4>>2];label$11:{if(!($5!=$5|$6!=$6|$4!=$4)){$7=HEAPF32[$1+12>>2];if($7==$7){break label$11}}$7=HEAPF32[$1+12>>2];HEAPF64[$2+168>>3]=$4;HEAPF64[$2+160>>3]=$6;HEAPF64[$2+176>>3]=$7;HEAPF64[$2+152>>3]=$5;HEAP32[$2+144>>2]=2;luaL_error($0,117725,$2+144|0)}$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[279889],0);$4=HEAPF32[$3+8>>2];$5=HEAPF32[$3>>2];$6=HEAPF32[$3+4>>2];label$13:{if(!($5!=$5|$6!=$6|$4!=$4)){$7=HEAPF32[$3+12>>2];if($7==$7){break label$13}}$7=HEAPF32[$3+12>>2];HEAPF64[$2+120>>3]=$4;HEAPF64[$2+112>>3]=$6;HEAPF64[$2+128>>3]=$7;HEAPF64[$2+104>>3]=$5;HEAP32[$2+96>>2]=3;luaL_error($0,117725,$2+96|0);$7=HEAPF32[$3+12>>2];$4=HEAPF32[$3+8>>2];$6=HEAPF32[$3+4>>2];$5=HEAPF32[$3>>2]}$9=HEAPF32[$1+12>>2];$10=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$12=HEAPF32[$1+8>>2];$1=lua_newuserdata($0,16);HEAPF32[$1+12>>2]=$9+Math_fround(Math_fround($7-$9)*$8);HEAPF32[$1+8>>2]=$12+Math_fround(Math_fround($4-$12)*$8);HEAPF32[$1+4>>2]=$11+Math_fround(Math_fround($6-$11)*$8);HEAPF32[$1>>2]=$10+Math_fround(Math_fround($5-$10)*$8);lua_getfield($0,-1e4,117520);lua_setmetatable($0,-2);$0=1;break label$3;case 1:break label$6}}$1=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,2,HEAP32[279890],0);$4=HEAPF32[$1+8>>2];$5=HEAPF32[$1>>2];$6=HEAPF32[$1+4>>2];label$15:{if(!($5!=$5|$6!=$6|$4!=$4)){$7=HEAPF32[$1+12>>2];if($7==$7){break label$15}}$7=HEAPF32[$1+12>>2];HEAPF64[$2+264>>3]=$4;HEAPF64[$2+256>>3]=$6;HEAPF64[$2+272>>3]=$7;HEAPF64[$2+248>>3]=$5;HEAP32[$2+240>>2]=2;luaL_error($0,117819,$2+240|0)}$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[279890],0);$4=HEAPF32[$3+8>>2];$5=HEAPF32[$3>>2];$6=HEAPF32[$3+4>>2];label$17:{if(!($5!=$5|$6!=$6|$4!=$4)){$7=HEAPF32[$3+12>>2];if($7==$7){break label$17}}$7=HEAPF32[$3+12>>2];HEAPF64[$2+216>>3]=$4;HEAPF64[$2+208>>3]=$6;HEAPF64[$2+224>>3]=$7;HEAPF64[$2+200>>3]=$5;HEAP32[$2+192>>2]=3;luaL_error($0,117819,$2+192|0);$7=HEAPF32[$3+12>>2];$4=HEAPF32[$3+8>>2];$6=HEAPF32[$3+4>>2];$5=HEAPF32[$3>>2]}$9=HEAPF32[$1+12>>2];$10=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$12=HEAPF32[$1+8>>2];$1=lua_newuserdata($0,16);HEAPF32[$1+12>>2]=$9+Math_fround(Math_fround($7-$9)*$8);HEAPF32[$1+8>>2]=$12+Math_fround(Math_fround($4-$12)*$8);HEAPF32[$1+4>>2]=$11+Math_fround(Math_fround($6-$11)*$8);HEAPF32[$1>>2]=$10+Math_fround(Math_fround($5-$10)*$8);lua_getfield($0,-1e4,117536);lua_setmetatable($0,-2);$0=1;break label$3}if(!lua_isnumber($0,2)){break label$4}if(!lua_isnumber($0,3)){break label$4}$14=luaL_checknumber($0,2);$15=+Math_fround(luaL_checknumber($0,3));$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;$14=+Math_fround($14);HEAPF64[$1>>3]=($15-$14)*+$8+$14;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;$0=1;break label$3}HEAP32[$2+28>>2]=117536;HEAP32[$2+24>>2]=117568;HEAP32[$2+20>>2]=117520;HEAP32[$2+16>>2]=117568;HEAP32[$2+12>>2]=117504;HEAP32[$2+8>>2]=117568;HEAP32[$2+4>>2]=118976;HEAP32[$2>>2]=117568;$0=luaL_error($0,119375,$2)}global$0=$2+288|0;return $0|0}function read_numeral($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$7=global$0-160|0;global$0=$7;$2=HEAP32[$0>>2];while(1){$3=HEAP32[$0+60>>2];$5=HEAP32[$3+4>>2];$8=$5+1|0;$4=HEAP32[$3+8>>2];label$2:{if($8>>>0<=$4>>>0){$4=HEAP32[$3>>2];break label$2}if($4>>>0>=2147483646){luaO_chunkid($7+80|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$6=HEAP32[$0+4>>2];HEAP32[$7+72>>2]=123718;HEAP32[$7+68>>2]=$6;HEAP32[$7+64>>2]=$7+80;luaO_pushfstring($4,123695,$7- -64|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$3+8>>2]}$6=HEAP32[$0+52>>2];$5=$4<<1;label$5:{if(($5|0)!=-2){$4=luaM_realloc_($6,HEAP32[$3>>2],$4,$5);break label$5}$4=luaM_toobig($6)}HEAP32[$3+8>>2]=$5;HEAP32[$3>>2]=$4;$5=HEAP32[$3+4>>2];$8=$5+1|0}HEAP32[$3+4>>2]=$8;HEAP8[$4+$5|0]=$2;$2=HEAP32[$0+56>>2];$3=HEAP32[$2>>2];HEAP32[$2>>2]=$3+ -1;$4=$0;label$7:{if($3){$3=$2;$2=HEAP32[$2+4>>2];HEAP32[$3+4>>2]=$2+1;$2=HEAPU8[$2|0];break label$7}$2=luaZ_fill($2)}HEAP32[$4>>2]=$2;if(($2|0)==46|$2+ -48>>>0<10){continue}break}label$9:{if(!memchr(123922,$2,3)){break label$9}$3=HEAP32[$0+60>>2];$5=HEAP32[$3+4>>2];$8=$5+1|0;$4=HEAP32[$3+8>>2];label$10:{if($8>>>0<=$4>>>0){$4=HEAP32[$3>>2];break label$10}if($4>>>0>=2147483646){luaO_chunkid($7+80|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$6=HEAP32[$0+4>>2];HEAP32[$7+56>>2]=123718;HEAP32[$7+52>>2]=$6;HEAP32[$7+48>>2]=$7+80;luaO_pushfstring($4,123695,$7+48|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$3+8>>2]}$6=HEAP32[$0+52>>2];$5=$4<<1;label$13:{if(($5|0)!=-2){$4=luaM_realloc_($6,HEAP32[$3>>2],$4,$5);break label$13}$4=luaM_toobig($6)}HEAP32[$3+8>>2]=$5;HEAP32[$3>>2]=$4;$5=HEAP32[$3+4>>2];$8=$5+1|0}HEAP32[$3+4>>2]=$8;HEAP8[$4+$5|0]=$2;$2=HEAP32[$0+56>>2];$3=HEAP32[$2>>2];HEAP32[$2>>2]=$3+ -1;$4=$0;label$15:{if($3){$3=$2;$2=HEAP32[$2+4>>2];HEAP32[$3+4>>2]=$2+1;$2=HEAPU8[$2|0];break label$15}$2=luaZ_fill($2)}HEAP32[$4>>2]=$2;$4=$2&255;if($4>>>0>63){break label$9}$3=$4&31;if(32<=($4&63)>>>0){$4=1<<$3;$3=0}else{$4=(1<<$3)-1&1>>>32-$3;$3=1<<$3}if(!($3&1|$4&10240)){break label$9}$3=HEAP32[$0+60>>2];$5=HEAP32[$3+4>>2];$8=$5+1|0;$4=HEAP32[$3+8>>2];label$17:{if($8>>>0<=$4>>>0){$4=HEAP32[$3>>2];break label$17}if($4>>>0>=2147483646){luaO_chunkid($7+80|0,HEAP32[$0+64>>2]+16|0,80);$4=HEAP32[$0+52>>2];$6=HEAP32[$0+4>>2];HEAP32[$7+40>>2]=123718;HEAP32[$7+36>>2]=$6;HEAP32[$7+32>>2]=$7+80;luaO_pushfstring($4,123695,$7+32|0);luaD_throw(HEAP32[$0+52>>2],3);$4=HEAP32[$3+8>>2]}$6=HEAP32[$0+52>>2];$5=$4<<1;label$20:{if(($5|0)!=-2){$4=luaM_realloc_($6,HEAP32[$3>>2],$4,$5);break label$20}$4=luaM_toobig($6)}HEAP32[$3+8>>2]=$5;HEAP32[$3>>2]=$4;$5=HEAP32[$3+4>>2];$8=$5+1|0}HEAP32[$3+4>>2]=$8;HEAP8[$4+$5|0]=$2;$2=HEAP32[$0+56>>2];$3=HEAP32[$2>>2];HEAP32[$2>>2]=$3+ -1;$4=$0;label$22:{if($3){$3=$2;$2=HEAP32[$2+4>>2];HEAP32[$3+4>>2]=$2+1;$2=HEAPU8[$2|0];break label$22}$2=luaZ_fill($2)}HEAP32[$4>>2]=$2}$3=HEAP32[$0+60>>2];$5=HEAP32[$3+4>>2];$8=$5+1|0;$6=HEAP32[$3+8>>2];$9=$8>>>0>$6>>>0;$10=$3+8|0;$4=$3+4|0;if(!((($2|32)+ -97>>>0<26?1:$2+ -48>>>0<10)?0:($2|0)!=95)){while(1){label$28:{if(!$9){$6=HEAP32[$3>>2];break label$28}if($6>>>0>=2147483646){luaO_chunkid($7+80|0,HEAP32[$0+64>>2]+16|0,80);$6=HEAP32[$0+52>>2];$5=HEAP32[$0+4>>2];HEAP32[$7+24>>2]=123718;HEAP32[$7+20>>2]=$5;HEAP32[$7+16>>2]=$7+80;luaO_pushfstring($6,123695,$7+16|0);luaD_throw(HEAP32[$0+52>>2],3);$6=HEAP32[$10>>2]}$8=HEAP32[$0+52>>2];$5=$3;$9=$6<<1;label$31:{if(($9|0)!=-2){$6=luaM_realloc_($8,HEAP32[$3>>2],$6,$9);break label$31}$6=luaM_toobig($8)}HEAP32[$5>>2]=$6;HEAP32[$10>>2]=$9;$5=HEAP32[$4>>2];$8=$5+1|0}HEAP32[$4>>2]=$8;HEAP8[$6+$5|0]=$2;$2=HEAP32[$0+56>>2];$3=HEAP32[$2>>2];HEAP32[$2>>2]=$3+ -1;$4=$0;label$33:{if($3){$3=$2;$2=HEAP32[$2+4>>2];HEAP32[$3+4>>2]=$2+1;$2=HEAPU8[$2|0];break label$33}$2=luaZ_fill($2)}HEAP32[$4>>2]=$2;$3=HEAP32[$0+60>>2];$5=HEAP32[$3+4>>2];$8=$5+1|0;$6=HEAP32[$3+8>>2];$9=$8>>>0>$6>>>0;$10=$3+8|0;$4=$3+4|0;if(($2|0)==95|(($2|32)+ -97>>>0<26?1:$2+ -48>>>0<10)){continue}break}}label$37:{if(!$9){$2=HEAP32[$3>>2];break label$37}if($6>>>0>=2147483646){luaO_chunkid($7+80|0,HEAP32[$0+64>>2]+16|0,80);$2=HEAP32[$0+52>>2];$6=HEAP32[$0+4>>2];HEAP32[$7+8>>2]=123718;HEAP32[$7+4>>2]=$6;HEAP32[$7>>2]=$7+80;luaO_pushfstring($2,123695,$7);luaD_throw(HEAP32[$0+52>>2],3);$6=HEAP32[$10>>2]}$2=HEAP32[$0+52>>2];$5=$3;$8=$6<<1;label$40:{if(($8|0)!=-2){$2=luaM_realloc_($2,HEAP32[$3>>2],$6,$8);break label$40}$2=luaM_toobig($2)}HEAP32[$5>>2]=$2;HEAP32[$10>>2]=$8;$5=HEAP32[$4>>2];$8=$5+1|0}HEAP32[$4>>2]=$8;HEAP8[$2+$5|0]=0;$2=HEAP32[$0+60>>2];$4=HEAP32[$2>>2];$2=HEAP32[$2+4>>2];if($2){$3=HEAPU8[$0+68|0];while(1){$2=$2+ -1|0;$6=$4+$2|0;if(HEAPU8[$6|0]==46){HEAP8[$6|0]=$3}if($2){continue}break}$4=HEAP32[HEAP32[$0+60>>2]>>2]}label$42:{if(luaO_str2d($4,$1)){break label$42}$3=HEAPU8[$0+68|0];$6=HEAPU8[HEAP32[54627]];HEAP8[$0+68|0]=$6;$2=HEAP32[$0+60>>2];$4=HEAP32[$2>>2];$2=HEAP32[$2+4>>2];if($2){while(1){$2=$2+ -1|0;$5=$4+$2|0;if(($3|0)==HEAPU8[$5|0]){HEAP8[$5|0]=$6}if($2){continue}break}$4=HEAP32[HEAP32[$0+60>>2]>>2]}if(luaO_str2d($4,$1)){break label$42}$1=HEAP32[$0+60>>2];$2=HEAP32[$1+4>>2];if($2){$1=HEAP32[$1>>2];$4=HEAPU8[$0+68|0];while(1){$2=$2+ -1|0;$3=$1+$2|0;if(($4|0)==HEAPU8[$3|0]){HEAP8[$3|0]=46}if($2){continue}break}}luaX_lexerror($0,123925,284)}global$0=$7+160|0}function VP8LBuildHuffmanTable($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$6=global$0-128|0;global$0=$6;HEAP32[$6+120>>2]=0;HEAP32[$6+124>>2]=0;HEAP32[$6+112>>2]=0;HEAP32[$6+116>>2]=0;HEAP32[$6+104>>2]=0;HEAP32[$6+108>>2]=0;HEAP32[$6+96>>2]=0;HEAP32[$6+100>>2]=0;HEAP32[$6+88>>2]=0;HEAP32[$6+92>>2]=0;HEAP32[$6+80>>2]=0;HEAP32[$6+84>>2]=0;HEAP32[$6+72>>2]=0;HEAP32[$6+76>>2]=0;HEAP32[$6+64>>2]=0;HEAP32[$6+68>>2]=0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{if($3){if(!$2){break label$6}if(!$0){break label$5}if(($1|0)<1){break label$4}if(($3|0)>0){while(1){$5=HEAP32[($4<<2)+$2>>2];if(($5|0)>15){break label$2}$5=($6- -64|0)+($5<<2)|0;HEAP32[$5>>2]=HEAP32[$5>>2]+1;$4=$4+1|0;if(($4|0)!=($3|0)){continue}break}$4=HEAP32[$6+64>>2]}else{$4=0}if(($4|0)==($3|0)){break label$2}HEAP32[$6+4>>2]=0;$4=HEAP32[$6+68>>2];if(($4|0)>2){break label$2}HEAP32[$6+8>>2]=$4;$5=HEAP32[$6+72>>2];if(($5|0)>4){break label$2}$4=$4+$5|0;HEAP32[$6+12>>2]=$4;$5=HEAP32[$6+76>>2];if(($5|0)>8){break label$2}$4=$4+$5|0;HEAP32[$6+16>>2]=$4;$5=HEAP32[$6+80>>2];if(($5|0)>16){break label$2}$4=$4+$5|0;HEAP32[$6+20>>2]=$4;$5=HEAP32[$6+84>>2];if(($5|0)>32){break label$2}$4=$4+$5|0;HEAP32[$6+24>>2]=$4;$5=HEAP32[$6+88>>2];if(($5|0)>64){break label$2}$4=$4+$5|0;HEAP32[$6+28>>2]=$4;$5=HEAP32[$6+92>>2];if(($5|0)>128){break label$2}$4=$4+$5|0;HEAP32[$6+32>>2]=$4;$5=HEAP32[$6+96>>2];if(($5|0)>256){break label$2}$4=$4+$5|0;HEAP32[$6+36>>2]=$4;$5=HEAP32[$6+100>>2];if(($5|0)>512){break label$2}$4=$4+$5|0;HEAP32[$6+40>>2]=$4;$5=HEAP32[$6+104>>2];if(($5|0)>1024){break label$2}$4=$4+$5|0;HEAP32[$6+44>>2]=$4;$5=HEAP32[$6+108>>2];if(($5|0)>2048){break label$2}$4=$4+$5|0;HEAP32[$6+48>>2]=$4;$5=HEAP32[$6+112>>2];if(($5|0)>4096){break label$2}$4=$4+$5|0;HEAP32[$6+52>>2]=$4;$5=HEAP32[$6+116>>2];if(($5|0)>8192){break label$2}$4=$4+$5|0;HEAP32[$6+56>>2]=$4;$5=HEAP32[$6+120>>2];if(($5|0)>16384){break label$2}$8=$4+$5|0;HEAP32[$6+60>>2]=$8;$14=WebPSafeMalloc($3,$3>>31,4);if(!$14){break label$2}if(($3|0)>=1){$4=0;while(1){$7=HEAP32[($4<<2)+$2>>2];if(($7|0)>=1){$5=($7<<2)+$6|0;$7=HEAP32[$5>>2];HEAP32[$5>>2]=$7+1;HEAP32[($7<<2)+$14>>2]=$4}$4=$4+1|0;if(($4|0)!=($3|0)){continue}break}$8=HEAP32[$6+60>>2]}$7=1<<$1;if(($8|0)==1){$2=HEAP32[$14>>2]<<16;$4=$7;while(1){$1=$4+ -1|0;$3=($1<<2)+$0|0;HEAP16[$3>>1]=$2;HEAP16[$3+2>>1]=$2>>>16;$3=($4|0)>1;$4=$1;if($3){continue}break}dlfree($14);break label$2}$19=1;$21=1;label$16:{label$17:{if(($1|0)<1){break label$17}$9=2;$15=1;while(1){$20=$19<<1;$10=($6- -64|0)+($15<<2)|0;$5=HEAP32[$10>>2];$19=$20-$5|0;if(($19|0)<0){break label$3}if(($5|0)>=1){if(($7|0)%($9|0)){break label$1}$18=$15&255;$16=1<<$15+ -1;$13=$5+$12|0;while(1){$3=($11<<2)+$0|0;$2=$18|HEAP32[($12<<2)+$14>>2]<<16;$4=$7;while(1){$4=$4-$9|0;$17=$3+($4<<2)|0;HEAP16[$17>>1]=$2;HEAP16[$17+2>>1]=$2>>>16;if(($4|0)>0){continue}break}$3=$16;while(1){$2=$3;$3=$2>>>1|0;if($2&$11){continue}break}$5=$5+ -1|0;$11=$2+($2+ -1&$11)|0;$12=$12+1|0;if(($13|0)!=($12|0)){continue}break}HEAP32[$10>>2]=$5;$12=$13}$21=$21+$20|0;$9=$9<<1;$2=($1|0)==($15|0);$15=$15+1|0;if(!$2){continue}break}if(($1|0)<=14){break label$17}$16=$7;break label$16}$22=$7+ -1|0;$13=$1;$5=-1;$3=2;$8=$0;$16=$7;while(1){$10=$13;$23=$19<<1;$13=$10+1|0;$18=($6- -64|0)+($13<<2)|0;$17=HEAP32[$18>>2];$19=$23-$17|0;if(($19|0)<0){break label$3}label$24:{if(($17|0)<1){break label$24}$15=1<<$10;$2=$13-$1|0;$24=$2&255;$20=1<<$2;$2=$5;$9=$12;$4=$9;if(($10|0)<14){while(1){$5=$11&$22;label$27:{if(($5|0)==($2|0)){$5=$2;break label$27}$8=($7<<2)+$8|0;$4=$13;$2=$4;$7=$20-$17|0;label$29:{if(($7|0)<1){break label$29}while(1){$2=15;$4=$4+1|0;if(($4|0)==15){break label$29}$2=$4;$7=($7<<1)-HEAP32[($6- -64|0)+($4<<2)>>2]|0;if(($7|0)>0){continue}break}}$4=($5<<2)+$0|0;HEAP8[$4|0]=$2;HEAP16[$4+2>>1]=($8-$0>>>2|0)-$5;$7=1<<$2-$1;$16=$16+$7|0}if(($7|0)%($3|0)){break label$1}$12=$9+1|0;$10=($11>>>$1<<2)+$8|0;$2=HEAP32[($9<<2)+$14>>2]<<16|$24;$4=$7;while(1){$4=$4-$3|0;$9=$10+($4<<2)|0;HEAP16[$9>>1]=$2;HEAP16[$9+2>>1]=$2>>>16;if(($4|0)>0){continue}break}$2=$15;while(1){$4=$2;$2=$4>>>1|0;if($4&$11){continue}break}$10=HEAP32[$18>>2];$17=$10+ -1|0;HEAP32[$18>>2]=$17;$11=$4+($4+ -1&$11)|0;$2=$5;$9=$12;if(($10|0)>1){continue}break label$24}}while(1){$2=$11&$22;if(($2|0)!=($5|0)){$5=($2<<2)+$0|0;HEAP8[$5|0]=$13;$8=($7<<2)+$8|0;HEAP16[$5+2>>1]=($8-$0>>>2|0)-$2;$16=$16+$20|0;$5=$2;$7=$20}if(($7|0)%($3|0)){break label$1}$12=$4+1|0;$9=($11>>>$1<<2)+$8|0;$2=HEAP32[($4<<2)+$14>>2]<<16|$24;$4=$7;while(1){$4=$4-$3|0;$10=$9+($4<<2)|0;HEAP16[$10>>1]=$2;HEAP16[$10+2>>1]=$2>>>16;if(($4|0)>0){continue}break}$2=$15;while(1){$4=$2;$2=$4>>>1|0;if($4&$11){continue}break}$2=HEAP32[$18>>2];HEAP32[$18>>2]=$2+ -1;$11=$4+($4+ -1&$11)|0;$4=$12;if(($2|0)>1){continue}break}}$21=$21+$23|0;$3=$3<<1;if(($13|0)!=15){continue}break}$8=HEAP32[$6+60>>2]}dlfree($14);$7=(($8<<1)+ -1|0)==($21|0)?$16:0;break label$2}__assert_fail(183967,183920,90,183990);abort()}__assert_fail(184012,183920,91,183990);abort()}__assert_fail(184033,183920,92,183990);abort()}__assert_fail(184052,183920,93,183990);abort()}dlfree($14);$7=0}global$0=$6+128|0;return $7}__assert_fail(184066,183920,56,184082);abort()}function luaK_posfix($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0;folding_inner0:{label$1:{label$4:{label$5:{if($1>>>0<=14){label$7:{switch($1-1|0){case 12:luaK_dischargevars($0,$3);$8=HEAP32[$2+20>>2];if(($8|0)==-1){break folding_inner0}$1=HEAP32[$3+20>>2];if(($1|0)==-1){break label$5}$7=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$4=$1;$6=$7+($1<<2)|0;$5=HEAP32[$6>>2];$1=($5>>>14|0)+ -131071|0;$1=($1|0)==-1?-1:($4+$1|0)+1|0;if(($1|0)!=-1){continue}break}$1=$6;$7=$8+($4^-1)|0;$4=$7>>31;if(($4^$4+$7)>=131072){luaX_syntaxerror(HEAP32[$0+12>>2],123977);$5=HEAP32[$6>>2]}HEAP32[$1>>2]=($5&16383|$7<<14)+2147467264;break folding_inner0;case 13:luaK_dischargevars($0,$3);$8=HEAP32[$2+16>>2];if(($8|0)==-1){break folding_inner0}$1=HEAP32[$3+16>>2];if(($1|0)==-1){break label$4}$7=HEAP32[HEAP32[$0>>2]+12>>2];while(1){$4=$1;$6=$7+($1<<2)|0;$5=HEAP32[$6>>2];$1=($5>>>14|0)+ -131071|0;$1=($1|0)==-1?-1:($4+$1|0)+1|0;if(($1|0)!=-1){continue}break}$1=$6;$7=$8+($4^-1)|0;$4=$7>>31;if(($4^$4+$7)>=131072){luaX_syntaxerror(HEAP32[$0+12>>2],123977);$5=HEAP32[$6>>2]}HEAP32[$1>>2]=($5&16383|$7<<14)+2147467264;break folding_inner0;case 5:label$28:{if(HEAP32[$3+16>>2]!=HEAP32[$3+20>>2]){luaK_exp2anyreg($0,$3);break label$28}luaK_dischargevars($0,$3)}label$30:{if(HEAP32[$3>>2]!=11){break label$30}$5=HEAP32[HEAP32[$0>>2]+12>>2];$4=HEAP32[$3+8>>2];$6=HEAP32[$5+($4<<2)>>2];if(($6&63)!=21){break label$30}label$31:{if(HEAP32[$2>>2]!=12){break label$31}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1;$4=HEAP32[$3+8>>2];$6=HEAP32[$5+($4<<2)>>2]}HEAP32[$5+($4<<2)>>2]=$6&8388607|HEAP32[$2+8>>2]<<23;HEAP32[$2>>2]=11;HEAP32[$2+8>>2]=HEAP32[$3+8>>2];return}luaK_dischargevars($0,$3);label$32:{if(HEAP32[$3>>2]!=12){break label$32}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$4=HEAP32[$0+36>>2];$5=$4+1|0;$6=HEAP32[$0>>2];label$33:{if(($4|0)=249){luaX_syntaxerror(HEAP32[$0+12>>2],123942);$6=HEAP32[$0>>2];$1=HEAP32[$0+36>>2]+1|0}HEAP8[$6+75|0]=$5}HEAP32[$0+36>>2]=$1;exp2reg($0,$3,$1+ -1|0);codearith($0,21,$2,$3);return;default:codearith($0,12,$2,$3);return;case 0:codearith($0,13,$2,$3);return;case 1:codearith($0,14,$2,$3);return;case 2:codearith($0,15,$2,$3);return;case 3:codearith($0,16,$2,$3);return;case 4:codearith($0,17,$2,$3);return;case 7:$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$36:{if(HEAP32[$3>>2]!=12){break label$36}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$37:{if(HEAP32[$2>>2]!=12){break label$37}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,23,1,$4,$5);break label$1;case 6:$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$38:{if(HEAP32[$3>>2]!=12){break label$38}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$39:{if(HEAP32[$2>>2]!=12){break label$39}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,23,0,$4,$5);break label$1;case 8:$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$40:{if(HEAP32[$3>>2]!=12){break label$40}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$41:{if(HEAP32[$2>>2]!=12){break label$41}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,24,1,$4,$5);break label$1;case 9:$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$42:{if(HEAP32[$3>>2]!=12){break label$42}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$43:{if(HEAP32[$2>>2]!=12){break label$43}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,25,1,$4,$5);break label$1;case 10:$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$44:{if(HEAP32[$3>>2]!=12){break label$44}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$45:{if(HEAP32[$2>>2]!=12){break label$45}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,24,1,$5,$4);break label$1;case 11:break label$7}}$4=luaK_exp2RK($0,$2);$5=luaK_exp2RK($0,$3);label$46:{if(HEAP32[$3>>2]!=12){break label$46}$1=HEAP32[$3+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}label$47:{if(HEAP32[$2>>2]!=12){break label$47}$1=HEAP32[$2+8>>2];if($1&256|($1|0)>2]=HEAP32[$0+36>>2]+ -1}$0=condjump($0,25,1,$5,$4);HEAP32[$2>>2]=10;HEAP32[$2+8>>2]=$0}return}HEAP32[$3+20>>2]=$8;break folding_inner0}HEAP32[$3+16>>2]=$8;break folding_inner0}HEAP32[$2>>2]=10;HEAP32[$2+8>>2]=$0;return}$0=HEAP32[$3+4>>2];HEAP32[$2>>2]=HEAP32[$3>>2];HEAP32[$2+4>>2]=$0;$0=HEAP32[$3+20>>2];HEAP32[$2+16>>2]=HEAP32[$3+16>>2];HEAP32[$2+20>>2]=$0;$0=HEAP32[$3+12>>2];HEAP32[$2+8>>2]=HEAP32[$3+8>>2];HEAP32[$2+12>>2]=$0}function dmGameSystem__RenderListDispatch_28dmRender__RenderListDispatchParams_20const__29_4($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$2=global$0-112|0;global$0=$2;label$1:{label$2:{$5=HEAP32[$0+8>>2];label$3:{label$4:{if($5>>>0<=2){$3=HEAP32[$0+4>>2];label$6:{switch($5-1|0){case 0:$9=HEAP32[$0+20>>2];$4=HEAP32[$0+16>>2];$11=HEAP32[$0+12>>2];$15=HEAP32[$0>>2];label$8:{if(HEAP8[586240]&1){break label$8}if(!__cxa_guard_acquire(586240)){break label$8}if(HEAPU8[1130703]){$0=dmProfile__AllocateScope_28char_20const__29(50273)}else{$0=-1}HEAP32[146559]=$0;__cxa_guard_release(586240)}label$10:{if(HEAP8[586248]&1){break label$10}if(!__cxa_guard_acquire(586248)){break label$10}if(HEAPU8[1130703]){$0=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(51205,11)}else{$0=0}HEAP32[146561]=$0;__cxa_guard_release(586248)}$0=HEAP32[146559];label$12:{if(($0|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($2+96|0,$0,51205,HEAP32[146561]);break label$12}HEAP32[$2+96>>2]=0}$7=HEAP32[(Math_imul(HEAP32[$4>>2],48)+$11|0)+32>>2];$12=HEAP32[$7+128>>2];$6=($4|0)==($9|0);label$14:{if($6){break label$14}$1=dmRig__GetVertexCount_28dmRig__RigInstance__29(HEAP32[$7+132>>2]);$0=$4+4|0;if(($9|0)==($0|0)){break label$14}while(1){$1=dmRig__GetVertexCount_28dmRig__RigInstance__29(HEAP32[HEAP32[(Math_imul(HEAP32[$0>>2],48)+$11|0)+32>>2]+132>>2])+$1|0;$0=$0+4|0;if(($9|0)!=($0|0)){continue}break}}$13=$3+76|0;$14=$3+84|0;$10=HEAP32[$14>>2];$0=$3+80|0;$5=HEAP32[$0>>2];$8=($10-$5|0)/36|0;if($1>>>0>$8>>>0){if(HEAP8[$3+88|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(($1-$8|0)+(($10-HEAP32[$13>>2]|0)/36|0)|0,36,$13,$14,$0);$5=HEAP32[$0>>2]}$0=$5;if(!$6){$10=HEAP32[$3+108>>2];$6=$2+32|4;while(1){$8=HEAP32[(Math_imul(HEAP32[$4>>2],48)+$11|0)+32>>2];$16=HEAP32[$8+132>>2];HEAP32[$2+32>>2]=1065353216;$1=$6;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$2+52>>2]=1065353216;HEAP32[$2+64>>2]=0;HEAP32[$2+68>>2]=0;HEAP32[$2+56>>2]=0;HEAP32[$2+60>>2]=0;HEAP32[$2+72>>2]=1065353216;HEAP32[$2+84>>2]=0;HEAP32[$2+88>>2]=0;HEAP32[$2+76>>2]=0;HEAP32[$2+80>>2]=0;HEAP32[$2+24>>2]=1065353216;HEAP32[$2+28>>2]=1065353216;HEAP32[$2+16>>2]=1065353216;HEAP32[$2+20>>2]=1065353216;HEAP32[$2+92>>2]=1065353216;$0=dmRig__GenerateVertexData_28dmRig__RigContext__2c_20dmRig__RigInstance__2c_20Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Vector4_2c_20dmRig__RigVertexFormat_2c_20void__29($10,$16,$8- -64|0,$2+32|0,$2+16|0,0,$0);$4=$4+4|0;if(($9|0)!=($4|0)){continue}break}}$1=HEAP32[$13>>2];$6=($0-$1|0)/36|0;if((HEAP32[$14>>2]-$1|0)/36>>>0<$6>>>0){break label$1}HEAP32[$3+80>>2]=$1+Math_imul($6,36);$1=HEAP32[$3+56>>2];$6=HEAP32[$3+52>>2];$4=(($1-$6|0)/736|0)+1|0;if((HEAP32[$3+60>>2]-$6|0)/736>>>0<$4>>>0){break label$1}HEAP32[$3+56>>2]=$6+Math_imul($4,736);dmRender__RenderObject__Init_28_29($1);HEAP32[$1+644>>2]=HEAP32[$3+68>>2];$6=HEAP32[$3+72>>2];HEAP32[$1+688>>2]=1;HEAP32[$1+640>>2]=$6;$6=HEAP32[$3+76>>2];HEAP32[$1+728>>2]=($0-$5|0)/36;HEAP32[$1+724>>2]=($5-$6|0)/36;HEAP32[$1+656>>2]=HEAP32[HEAP32[HEAP32[$12+4>>2]+32>>2]+48>>2];$5=$1;$0=HEAP32[$7+960>>2];if(!$0){$0=HEAP32[$12+8>>2]}HEAP32[$5+652>>2]=$0;$5=HEAP32[$7+944>>2];if($5){$4=0;while(1){$0=($4<<5)+$7|0;dmRender__EnableRenderObjectConstant_28dmRender__RenderObject__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__29($1,HEAP32[$0+192>>2],HEAP32[$0+196>>2],$0+176|0);$4=$4+1|0;if(($5|0)!=($4|0)){continue}break}}label$23:{label$24:{label$25:{$5=HEAP32[HEAP32[$12>>2]+12>>2];if($5>>>0>3){break label$25}$0=7;$4=1;label$26:{switch($5-1|0){case 0:break label$24;case 1:break label$25;case 2:break label$26;default:break label$23}}$4=4;break label$23}HEAP32[$2>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,51217,$2);__assert_fail(51241,51139,493,51205);abort()}$0=1}HEAP32[$1+700>>2]=$0;HEAP32[$1+696>>2]=$4;HEAP8[$1+734|0]=HEAPU8[$1+734|0]|1;dmRender__AddToRender_28dmRender__RenderContext__2c_20dmRender__RenderObject__29($15,$1);if(!HEAP32[$2+96>>2]){break label$3}dmProfile__ProfileScope__EndScope_28_29($2+96|0);break label$3;case 1:break label$6;default:break label$4}}$0=HEAP32[$3+76>>2];FUNCTION_TABLE[HEAP32[147557]](HEAP32[$3+72>>2],HEAP32[$3+80>>2]-$0|0,$0,2);label$27:{if(HEAP8[586232]&1){break label$27}if(!__cxa_guard_acquire(586232)){break label$27}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(51115)}else{$0=-1}HEAP32[146557]=$0;__cxa_guard_release(586232)}$0=HEAP32[146557];if(($0|0)==-1){break label$3}dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,HEAP32[$3+80>>2]-HEAP32[$3+76>>2]|0);break label$3}__assert_fail(51133,51139,597,51186);abort()}FUNCTION_TABLE[HEAP32[147557]](HEAP32[$3+72>>2],0,0,2);HEAP32[$3+56>>2]=HEAP32[$3+52>>2];HEAP32[$3+80>>2]=HEAP32[$3+76>>2]}global$0=$2+112|0;return}__assert_fail(50479,50554,444,50625);abort()}__assert_fail(50637,50554,457,50656);abort()}function b2PrismaticJoint__SolveVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=Math_fround(0),$4=0,$5=0,$6=Math_fround(0),$7=0,$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=0,$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0);$4=global$0-48|0;global$0=$4;$5=HEAP32[$1+28>>2];$7=$5+Math_imul(HEAP32[$0+148>>2],12)|0;$10=HEAPF32[$7+8>>2];$13=HEAPF32[$7+4>>2];$22=HEAP32[$7+4>>2];$14=HEAPF32[$7>>2];$15=HEAP32[$7>>2];$5=$5+Math_imul(HEAP32[$0+144>>2],12)|0;$11=HEAPF32[$5+8>>2];$16=HEAPF32[$5+4>>2];$7=HEAP32[$5+4>>2];$17=HEAPF32[$5>>2];$5=HEAP32[$5>>2];$23=HEAPF32[$0+180>>2];$24=HEAPF32[$0+176>>2];$19=HEAPF32[$0+172>>2];$20=HEAPF32[$0+168>>2];if(!(!HEAPU8[$0+137|0]|HEAP32[$0+140>>2]==3)){$12=Math_fround(HEAPF32[$1>>2]*HEAPF32[$0+128>>2]);$18=Math_fround(-$12);$21=HEAPF32[$0+116>>2];$8=HEAPF32[$0+184>>2];$9=HEAPF32[$0+188>>2];$3=HEAPF32[$0+212>>2];$6=HEAPF32[$0+208>>2];$2=Math_fround($21+Math_fround(HEAPF32[$0+252>>2]*Math_fround(HEAPF32[$0+132>>2]-Math_fround(Math_fround(Math_fround(Math_fround(Math_fround($14-$17)*$8)+Math_fround(Math_fround($13-$16)*$9))+Math_fround($10*$3))-Math_fround($11*$6)))));$2=$2<$12?$2:$12;$2=$2<$18?$18:$2;HEAPF32[$0+116>>2]=$2;$2=Math_fround($2-$21);$10=Math_fround($10+Math_fround($23*Math_fround($3*$2)));$11=Math_fround($11-Math_fround($24*Math_fround($6*$2)));$6=Math_fround($9*$2);$22=(wasm2js_scratch_store_f32(Math_fround(Math_fround($19*$6)+$13)),wasm2js_scratch_load_i32(0));$2=Math_fround($8*$2);$15=(wasm2js_scratch_store_f32(Math_fround(Math_fround($19*$2)+$14)),wasm2js_scratch_load_i32(0));$7=(wasm2js_scratch_store_f32(Math_fround($16-Math_fround($20*$6))),wasm2js_scratch_load_i32(0));$5=(wasm2js_scratch_store_f32(Math_fround($17-Math_fround($20*$2))),wasm2js_scratch_load_i32(0))}$13=(wasm2js_scratch_store_i32(0,$15),wasm2js_scratch_load_f32());$14=(wasm2js_scratch_store_i32(0,$5),wasm2js_scratch_load_f32());$16=Math_fround($13-$14);$17=(wasm2js_scratch_store_i32(0,$22),wasm2js_scratch_load_f32());$12=(wasm2js_scratch_store_i32(0,$7),wasm2js_scratch_load_f32());$18=Math_fround($17-$12);$25=Math_fround(Math_fround(Math_fround(Math_fround($16*HEAPF32[$0+192>>2])+Math_fround($18*HEAPF32[$0+196>>2]))+Math_fround($10*HEAPF32[$0+204>>2]))-Math_fround($11*HEAPF32[$0+200>>2]));$3=Math_fround($10-$11);label$2:{if(!(!HEAPU8[$0+136|0]|!HEAP32[$0+140>>2])){$26=HEAPF32[$0+112>>2];$27=HEAPF32[$0+108>>2];$21=HEAPF32[$0+188>>2];$28=HEAPF32[$0+104>>2];$8=HEAPF32[$0+208>>2];$6=HEAPF32[$0+212>>2];$2=HEAPF32[$0+184>>2];$9=Math_fround(-$3);HEAPF32[$4+20>>2]=$9;$3=Math_fround(-$25);HEAPF32[$4+16>>2]=$3;HEAPF32[$4+24>>2]=-Math_fround(Math_fround(Math_fround(Math_fround($16*$2)+Math_fround($18*$21))+Math_fround($10*$6))-Math_fround($11*$8));$15=$0+216|0;b2Mat33__Solve33_28b2Vec3_20const__29_20const($4+32|0,$15,$4+16|0);HEAPF32[$0+104>>2]=HEAPF32[$4+32>>2]+HEAPF32[$0+104>>2];HEAPF32[$0+108>>2]=HEAPF32[$4+36>>2]+HEAPF32[$0+108>>2];$2=Math_fround(HEAPF32[$4+40>>2]+HEAPF32[$0+112>>2]);HEAPF32[$0+112>>2]=$2;$7=HEAP32[$0+140>>2]+ -1|0;if($7>>>0<=1){$2=$7-1|0?$2>Math_fround(0)?$2:Math_fround(0):$2>2]=$2}$6=HEAPF32[$0+240>>2];$2=Math_fround($2-$26);HEAPF32[$4+20>>2]=$9-Math_fround($2*HEAPF32[$0+244>>2]);HEAPF32[$4+16>>2]=$3-Math_fround($6*$2);b2Mat33__Solve22_28b2Vec2_20const__29_20const($4+8|0,$15,$4+16|0);$6=HEAPF32[$4+8>>2];$2=Math_fround($27+HEAPF32[$4+12>>2]);HEAPF32[$0+108>>2]=$2;$6=Math_fround($28+$6);HEAPF32[$0+104>>2]=$6;$2=Math_fround($2-$27);$8=Math_fround($6-$28);$3=Math_fround(HEAPF32[$0+112>>2]-$26);$6=Math_fround(Math_fround($2+Math_fround($8*HEAPF32[$0+204>>2]))+Math_fround($3*HEAPF32[$0+212>>2]));$2=Math_fround(Math_fround($2+Math_fround($8*HEAPF32[$0+200>>2]))+Math_fround($3*HEAPF32[$0+208>>2]));$9=Math_fround(Math_fround($8*HEAPF32[$0+196>>2])+Math_fround($3*HEAPF32[$0+188>>2]));$3=Math_fround(Math_fround($8*HEAPF32[$0+192>>2])+Math_fround($3*HEAPF32[$0+184>>2]));break label$2}HEAPF32[$4+20>>2]=-$3;HEAPF32[$4+16>>2]=-$25;b2Mat33__Solve22_28b2Vec2_20const__29_20const($4+32|0,$0+216|0,$4+16|0);$3=HEAPF32[$4+32>>2];HEAPF32[$0+104>>2]=$3+HEAPF32[$0+104>>2];$2=HEAPF32[$4+36>>2];HEAPF32[$0+108>>2]=$2+HEAPF32[$0+108>>2];$9=Math_fround($3*HEAPF32[$0+196>>2]);$6=Math_fround($2+Math_fround($3*HEAPF32[$0+204>>2]));$2=Math_fround($2+Math_fround($3*HEAPF32[$0+200>>2]));$3=Math_fround($3*HEAPF32[$0+192>>2])}$5=HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+144>>2],12)|0;HEAPF32[$5+4>>2]=$12-Math_fround($20*$9);HEAPF32[$5>>2]=$14-Math_fround($20*$3);$5=HEAP32[$1+28>>2];HEAPF32[($5+Math_imul(HEAP32[$0+144>>2],12)|0)+8>>2]=$11-Math_fround($24*$2);$5=$5+Math_imul(HEAP32[$0+148>>2],12)|0;HEAPF32[$5+4>>2]=Math_fround($19*$9)+$17;HEAPF32[$5>>2]=Math_fround($19*$3)+$13;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+148>>2],12)|0)+8>>2]=$10+Math_fround($23*$6);global$0=$4+48|0}function dmParticle__Update_28dmParticle__Context__2c_20float_2c_20dmParticle__FetchAnimationResult_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmParticle__AnimationData__29_29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$7=global$0-48|0;global$0=$7;label$1:{if(HEAP8[1120908]&1){break label$1}if(!__cxa_guard_acquire(1120908)){break label$1}if(HEAPU8[1130703]){$2=dmProfile__AllocateScope_28char_20const__29(131308)}else{$2=-1}HEAP32[280226]=$2;__cxa_guard_release(1120908)}label$3:{if(HEAP8[1120916]&1){break label$3}if(!__cxa_guard_acquire(1120916)){break label$3}if(HEAPU8[1130703]){$2=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(131336,6)}else{$2=0}HEAP32[280228]=$2;__cxa_guard_release(1120916)}$2=HEAP32[280226];label$5:{if(($2|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($7+16|0,$2,131336,HEAP32[280228]);break label$5}HEAP32[$7+16>>2]=0}label$7:{label$8:{label$9:{$2=HEAP32[$0>>2];$3=HEAP32[$0+4>>2]-$2|0;if(!$3){break label$9}$3=$3>>2;$13=$3>>>0>1?$3:1;label$10:{while(1){label$12:{$3=HEAP32[($9<<2)+$2>>2];if(!$3){break label$12}$4=HEAP32[$3>>2];$2=HEAP32[$3+4>>2]-$4|0;if(!$2){break label$12}$2=($2|0)/288|0;$10=$2>>>0>1?$2:1;$2=0;label$13:{while(1){if(!HEAP32[(Math_imul($2,288)+$4|0)+264>>2]){$2=$2+1|0;if(($10|0)!=($2|0)){continue}break label$13}break}HEAPF32[$3+76>>2]=HEAPF32[$3+76>>2]+$1;$14=HEAPU16[$3+80>>1]<<16|$9;$11=HEAP32[$3+64>>2];$6=0;label$16:{while(1){$5=HEAP32[$11>>2];if((HEAP32[$11+4>>2]-$5|0)/18568>>>0<=$6>>>0){break label$8}$8=HEAP32[$11+16>>2];if(HEAPU32[$8+4>>2]<=$6>>>0){break label$7}$2=Math_imul($6,288)+$4|0;$8=HEAP32[$8>>2]+($6<<7)|0;dmParticle__UpdateEmitterVelocity_28dmParticle__Instance__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20float_29($3,$2,$8,$1);$4=$5+Math_imul($6,18568)|0;dmParticle__UpdateEmitter_28dmParticle__Prototype__2c_20dmParticle__Instance__2c_20dmParticle__EmitterPrototype__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20float_29($3,$4,$2,$8,$1);$15=(HEAP32[$2+52>>2]-HEAP32[$2+48>>2]|0)/160|0;label$18:{if(HEAP8[1121012]&1){break label$18}if(!__cxa_guard_acquire(1121012)){break label$18}if(HEAPU8[1130703]){$5=dmProfile__AllocateScope_28char_20const__29(131308)}else{$5=-1}HEAP32[280252]=$5;__cxa_guard_release(1121012)}label$20:{if(HEAP8[1121020]&1){break label$20}if(!__cxa_guard_acquire(1121020)){break label$20}if(HEAPU8[1130703]){$5=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(132013,14)}else{$5=0}HEAP32[280254]=$5;__cxa_guard_release(1121020)}$5=HEAP32[280252];label$22:{if(($5|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($7+32|0,$5,132013,HEAP32[280254]);break label$22}HEAP32[$7+32>>2]=0}HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+40>>2]=0;HEAP32[$2+44>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;$5=HEAP32[$4+18552>>2];label$24:{if(!$5){break label$24}if(FUNCTION_TABLE[457]($5,HEAP32[$4+18544>>2],HEAP32[$4+18548>>2],$2)){$5=HEAPU8[$2+280|0];if($5&2){break label$24}HEAP8[$2+280|0]=$5|2;$4=$4+18544|0;HEAP32[$7>>2]=dmHashReverseSafe64(HEAP32[$4>>2],HEAP32[$4+4>>2]);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,131153,132028,$7);break label$24}if(HEAP32[$2+44>>2]!=48){break label$16}HEAP8[$2+280|0]=HEAPU8[$2+280|0]&253}if(HEAP32[$7+32>>2]){dmProfile__ProfileScope__EndScope_28_29($7+32|0)}dmParticle__UpdateEmitterRenderData_28unsigned_20int_2c_20unsigned_20int_2c_20dmParticle__Instance__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__29($14,$6,$3,$2,$8);if(HEAPU8[$2+280|0]&16){dmParticle__ReHashEmitter_28dmParticle__Emitter__29($2)}$12=$12+$15|0;$6=$6+1|0;if(($10|0)==($6|0)){break label$12}$4=HEAP32[$3>>2];if((HEAP32[$3+4>>2]-$4|0)/288>>>0>$6>>>0){continue}break}break label$8}__assert_fail(132066,131478,724,132013);abort()}$2=0;while(1){$6=Math_imul($2,288)+$4|0;HEAP32[$6+244>>2]=0;$4=HEAP32[HEAP32[$3+64>>2]+16>>2];if(HEAPU32[$4+4>>2]<=$2>>>0){break label$10}dmParticle__UpdateEmitterVelocity_28dmParticle__Instance__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__2c_20float_29($3,$6,HEAP32[$4>>2]+($2<<7)|0,$1);$2=$2+1|0;if(($10|0)==($2|0)){break label$12}$4=HEAP32[$3>>2];if((HEAP32[$3+4>>2]-$4|0)/288>>>0>$2>>>0){continue}break}break label$8}$9=$9+1|0;if(($13|0)==($9|0)){break label$9}$2=HEAP32[$0>>2];if(HEAP32[$0+4>>2]-$2>>2>>>0>$9>>>0){continue}break}break label$8}break label$7}label$29:{if(HEAP8[1120924]&1){break label$29}if(!__cxa_guard_acquire(1120924)){break label$29}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(131343)}else{$0=-1}HEAP32[280230]=$0;__cxa_guard_release(1120924)}$0=HEAP32[280230];if(($0|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,$12)}if(HEAP32[$7+16>>2]){dmProfile__ProfileScope__EndScope_28_29($7+16|0)}global$0=$7+48|0;return}__assert_fail(132466,131573,430,131839);abort()}__assert_fail(131789,131801,240,131839);abort()}function dmGameSystem__CompSpineModelEventCallback_28dmRig__RigEventType_2c_20void__2c_20void__2c_20void__29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=0,$5=0,$6=0;$3=global$0-128|0;global$0=$3;HEAP32[$3+120>>2]=0;HEAP32[$3+124>>2]=0;HEAP32[$3+112>>2]=0;HEAP32[$3+116>>2]=0;HEAP32[$3+104>>2]=0;HEAP32[$3+108>>2]=0;HEAP32[$3+96>>2]=0;HEAP32[$3+100>>2]=0;$4=HEAP32[$2+172>>2];HEAP32[$3+88>>2]=HEAP32[$2+168>>2];HEAP32[$3+92>>2]=$4;$4=HEAP32[$2+164>>2];HEAP32[$3+80>>2]=HEAP32[$2+160>>2];HEAP32[$3+84>>2]=$4;$4=HEAP32[$2+156>>2];HEAP32[$3+72>>2]=HEAP32[$2+152>>2];HEAP32[$3+76>>2]=$4;$4=HEAP32[$2+148>>2];HEAP32[$3+64>>2]=HEAP32[$2+144>>2];HEAP32[$3+68>>2]=$4;label$1:{if($0>>>0<=1){if($0-1){$4=$3+40|0;$0=$4;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;$0=HEAP32[HEAP32[HEAP32[$2>>2]+80>>2]+8>>2];label$4:{if(!$0){break label$4}$0=HEAP32[$0>>2];if(!$0){break label$4}$6=HEAP32[$0+4224>>2];$5=HEAP32[$0+4228>>2]}HEAP32[$3+16>>2]=$6;HEAP32[$3+20>>2]=$5;label$5:{if(dmMessage__IsSocketValid_28unsigned_20long_20long_29($6,$5)){if(!dmGameObject__GetComponentId_28dmGameObject__Instance__2c_20unsigned_20short_2c_20unsigned_20long_20long__29(HEAP32[$2>>2],HEAPU16[$2+980>>1],$4)){break label$5}}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50789,0);break label$1}$0=HEAP32[$2>>2];$6=HEAP32[$0+100>>2];HEAP32[$3+112>>2]=HEAP32[$0+96>>2];HEAP32[$3+116>>2]=$6;$0=HEAP32[$3+28>>2];HEAP32[$3+104>>2]=HEAP32[$3+24>>2];HEAP32[$3+108>>2]=$0;$0=HEAP32[$3+44>>2];HEAP32[$3+120>>2]=HEAP32[$3+40>>2];HEAP32[$3+124>>2]=$0;$0=HEAP32[$3+20>>2];HEAP32[$3+96>>2]=HEAP32[$3+16>>2];HEAP32[$3+100>>2]=$0;$0=HEAP32[134190];$5=HEAP32[$0+8>>2];$6=HEAP32[$0+12>>2];$4=HEAP32[$1+4>>2];HEAP32[$3+16>>2]=HEAP32[$1>>2];HEAP32[$3+20>>2]=$4;HEAP32[$3+24>>2]=HEAP32[$1+8>>2];$0=dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($3+96|0,$3- -64|0,$5,$6,0,$0,$3+16|0,16,0);HEAP8[$2+144|0]=0;HEAP8[$2+145|0]=0;HEAP8[$2+146|0]=0;HEAP8[$2+147|0]=0;HEAP8[$2+148|0]=0;HEAP8[$2+149|0]=0;HEAP8[$2+150|0]=0;HEAP8[$2+151|0]=0;HEAP8[$2+168|0]=0;HEAP8[$2+169|0]=0;HEAP8[$2+170|0]=0;HEAP8[$2+171|0]=0;HEAP8[$2+172|0]=0;HEAP8[$2+173|0]=0;HEAP8[$2+174|0]=0;HEAP8[$2+175|0]=0;HEAP8[$2+160|0]=0;HEAP8[$2+161|0]=0;HEAP8[$2+162|0]=0;HEAP8[$2+163|0]=0;HEAP8[$2+164|0]=0;HEAP8[$2+165|0]=0;HEAP8[$2+166|0]=0;HEAP8[$2+167|0]=0;HEAP8[$2+152|0]=0;HEAP8[$2+153|0]=0;HEAP8[$2+154|0]=0;HEAP8[$2+155|0]=0;HEAP8[$2+156|0]=0;HEAP8[$2+157|0]=0;HEAP8[$2+158|0]=0;HEAP8[$2+159|0]=0;if(!$0){break label$1}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50864,0);break label$1}$4=$3+40|0;$0=$4;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;$0=HEAP32[HEAP32[HEAP32[$2>>2]+80>>2]+8>>2];label$7:{if(!$0){break label$7}$0=HEAP32[$0>>2];if(!$0){break label$7}$6=HEAP32[$0+4224>>2];$5=HEAP32[$0+4228>>2]}HEAP32[$3+16>>2]=$6;HEAP32[$3+20>>2]=$5;if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29($6,$5)){break label$1}if(dmGameObject__GetComponentId_28dmGameObject__Instance__2c_20unsigned_20short_2c_20unsigned_20long_20long__29(HEAP32[$2>>2],HEAPU16[$2+980>>1],$4)){break label$1}$0=HEAP32[$2>>2];$2=HEAP32[$0+100>>2];HEAP32[$3+112>>2]=HEAP32[$0+96>>2];HEAP32[$3+116>>2]=$2;$0=HEAP32[$3+28>>2];HEAP32[$3+104>>2]=HEAP32[$3+24>>2];HEAP32[$3+108>>2]=$0;$0=HEAP32[$3+44>>2];HEAP32[$3+120>>2]=HEAP32[$3+40>>2];HEAP32[$3+124>>2]=$0;$0=HEAP32[$3+20>>2];HEAP32[$3+96>>2]=HEAP32[$3+16>>2];HEAP32[$3+100>>2]=$0;HEAP32[$3+72>>2]=0;if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29(HEAP32[$3+64>>2],HEAP32[$3+68>>2])){$0=HEAP32[$3+116>>2];HEAP32[$3+80>>2]=HEAP32[$3+112>>2];HEAP32[$3+84>>2]=$0;$0=HEAP32[$3+108>>2];HEAP32[$3+72>>2]=HEAP32[$3+104>>2];HEAP32[$3+76>>2]=$0;$0=HEAP32[$3+100>>2];HEAP32[$3+64>>2]=HEAP32[$3+96>>2];HEAP32[$3+68>>2]=$0;HEAP32[$3+88>>2]=0;HEAP32[$3+92>>2]=0}$0=HEAP32[134240];$2=$0;$6=HEAP32[$2+8>>2];$2=HEAP32[$2+12>>2];$5=HEAP32[$1+4>>2];HEAP32[$3+16>>2]=HEAP32[$1>>2];HEAP32[$3+20>>2]=$5;$5=HEAP32[$1+12>>2];HEAP32[$3+24>>2]=HEAP32[$1+8>>2];HEAP32[$3+28>>2]=$5;HEAP32[$3+36>>2]=HEAP32[$1+20>>2];HEAP32[$3+32>>2]=HEAP32[$1+16>>2];HEAP32[$3+40>>2]=HEAP32[$1+24>>2];HEAP32[$3+44>>2]=HEAP32[$1+28>>2];$5=HEAP32[$1+32>>2];$1=HEAP32[$1+36>>2];HEAP32[$3+56>>2]=0;HEAP32[$3+60>>2]=0;HEAP32[$3+48>>2]=$5;HEAP32[$3+52>>2]=$1;if(!dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($3+96|0,$3- -64|0,$6,$2,0,$0,$3+16|0,48,0)){break label$1}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50907,0);break label$1}HEAP32[$3>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50947,$3)}global$0=$3+128|0}function dmGameSystem__CompCollisionObjectOnMessage_28dmGameObject__ComponentOnMessageParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0;$2=global$0-80|0;global$0=$2;$3=HEAP32[$0+8>>2];$4=HEAP32[HEAP32[$0+12>>2]>>2];label$1:{label$2:{label$3:{label$4:{$5=HEAP32[$0+16>>2];$1=$5;$6=HEAP32[$1+64>>2];$8=HEAP32[131295];$7=HEAP32[$1+68>>2];$1=($6|0)==HEAP32[$8+8>>2]&($7|0)==HEAP32[$8+12>>2];if(!$1){$8=HEAP32[131296];if(HEAP32[$8+8>>2]!=($6|0)|HEAP32[$8+12>>2]!=($7|0)){break label$4}}$5=HEAPU8[$4+24|0];if($5&2){$0=HEAP32[$0+4>>2];if(HEAPU8[$3+13|0]){dmPhysics__SetEnabled3D_28dmPhysics__World3D__2c_20void__2c_20bool_29(HEAP32[$0+128>>2],HEAP32[$4+8>>2],$1);$1=0;break label$3}dmPhysics__SetEnabled2D_28dmPhysics__World2D__2c_20void__2c_20bool_29(HEAP32[$0+128>>2],HEAP32[$4+8>>2],$1);$1=0;break label$3}HEAP8[$4+24|0]=$5&251|$1<<2;$1=0;break label$3}$1=HEAP32[133694];if(($6|0)==HEAP32[$1+8>>2]&($7|0)==HEAP32[$1+12>>2]){$0=$5+96|0;if(HEAPU8[$3+13|0]){dmPhysics__ApplyForce3D_28dmPhysics__Context3D__2c_20void__2c_20Vectormath__Aos__Vector3_20const__2c_20Vectormath__Aos__Point3_20const__29(HEAP32[$3>>2],HEAP32[$4+8>>2],$0,$5+112|0);$1=0;break label$3}dmPhysics__ApplyForce2D_28dmPhysics__Context2D__2c_20void__2c_20Vectormath__Aos__Vector3_20const__2c_20Vectormath__Aos__Point3_20const__29(HEAP32[$3>>2],HEAP32[$4+8>>2],$0,$5+112|0);$1=0;break label$3}$1=HEAP32[133931];if(($6|0)==HEAP32[$1+8>>2]&($7|0)==HEAP32[$1+12>>2]){label$11:{if(HEAPU8[$3+13|0]){dmPhysics__GetLinearVelocity3D_28dmPhysics__Context3D__2c_20void__29($2+32|0,HEAP32[$3>>2],HEAP32[$4+8>>2]);HEAP32[$2+48>>2]=HEAP32[$2+32>>2];$1=HEAP32[$2+40>>2];HEAP32[$2+52>>2]=HEAP32[$2+36>>2];HEAP32[$2+56>>2]=$1;dmPhysics__GetAngularVelocity3D_28dmPhysics__Context3D__2c_20void__29($2+32|0,HEAP32[$4+8>>2]);break label$11}dmPhysics__GetLinearVelocity2D_28dmPhysics__Context2D__2c_20void__29($2+32|0,HEAP32[$3>>2],HEAP32[$4+8>>2]);HEAP32[$2+48>>2]=HEAP32[$2+32>>2];$1=HEAP32[$2+40>>2];HEAP32[$2+52>>2]=HEAP32[$2+36>>2];HEAP32[$2+56>>2]=$1;HEAP32[$2+40>>2]=HEAP32[HEAP32[$4+8>>2]+72>>2];HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0}$4=HEAP32[$2+40>>2];HEAP32[$2+68>>2]=HEAP32[$2+36>>2];HEAP32[$2+72>>2]=$4;HEAP32[$2+64>>2]=HEAP32[$2+32>>2];$1=0;$0=HEAP32[$0+16>>2];$3=$0+32|0;$5=$0;$0=HEAP32[133950];$0=dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($3,$5,HEAP32[$0+8>>2],HEAP32[$0+12>>2],0,$0,$2+48|0,32,0);if(!$0){break label$3}HEAP32[$2>>2]=HEAP32[HEAP32[133950]+4>>2];HEAP32[$2+4>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,37929,$2);$1=-1e3;break label$3}$1=HEAP32[133990];if(($6|0)==HEAP32[$1+8>>2]&($7|0)==HEAP32[$1+12>>2]){if(HEAPU8[$3+13|0]){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,37973,0);$1=-1e3;break label$3}$1=HEAP32[$4>>2];if(!(HEAP8[$1+168|0]&1)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,38022,0);$1=-1e3;break label$3}label$16:{$7=HEAP32[$5+100>>2];$3=HEAP32[$1+136>>2];if($7>>>0>2]){$8=HEAP32[$5+104>>2];if($8>>>0>2]){break label$16}}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,38092,0);$1=-1e3;break label$3}label$18:{$6=HEAP32[$5+108>>2];$11=($6|0)==-1;if($11){break label$18}$1=HEAP32[$3>>2];if($6>>>0>2]-HEAP32[$1>>2]>>3>>>0){break label$18}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,38137,0);$1=-1e3;break label$3}$1=HEAP32[$5+96>>2];$9=HEAP32[$4+8>>2];$10=HEAPU16[$5+116>>1]<<1&2|HEAP16[$5+112>>1]&1;HEAP16[$2+22>>1]=$10;HEAP16[$2+24>>1]=$10;dmPhysics__SetGridShapeHull_28void__2c_20unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20int_2c_20dmPhysics__HullFlags_29($9,$1,$7,$8,$6,$2+22|0);$12=HEAP32[$3+28>>2];$1=0;$9=0;$10=0;if(!$11){$9=HEAP32[$3>>2];$3=HEAP32[$9>>2];if(HEAP32[$9+4>>2]-$3>>3>>>0<=$6>>>0){break label$2}$9=HEAP32[$0+4>>2];$0=$3+($6<<3)|0;$9=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($9,HEAP32[$0>>2],HEAP32[$0+4>>2]);$10=HEAPU16[$4+20>>1]}dmPhysics__SetCollisionObjectFilter_28void__2c_20unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20short_2c_20unsigned_20short_29(HEAP32[$4+8>>2],HEAP32[$5+96>>2],Math_imul($7,$12)+$8&65535,$9,$10);break label$3}$1=0;$0=HEAP32[134010];if(HEAP32[$0+8>>2]!=($6|0)|HEAP32[$0+12>>2]!=($7|0)){break label$3}if(HEAPU8[$3+13|0]){break label$1}if(!(HEAP8[HEAP32[$4>>2]+168|0]&1)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,37438,38245,0);$1=-1e3;break label$3}dmPhysics__SetGridShapeEnable_28void__2c_20unsigned_20int_2c_20unsigned_20int_29(HEAP32[$4+8>>2],HEAP32[$5+96>>2],HEAP32[$5+100>>2])}global$0=$2+80|0;return $1|0}__assert_fail(38858,38775,430,38452);abort()}__assert_fail(38193,37605,1111,38216);abort()}function dmGameSystem__UpdateIKInstanceCallback_28dmRig__IKTarget__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=Math_fround(0),$4=Math_fround(0),$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=0,$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=0,$28=0,$29=Math_fround(0);$5=global$0-80|0;global$0=$5;$22=HEAP32[$1+44>>2];$28=$22;label$1:{$9=HEAP32[$1+36>>2];$27=HEAP32[$1+40>>2];$22=dmGameObject__GetInstanceFromIdentifier_28dmGameObject__CollectionHandle__2c_20unsigned_20long_20long_29(HEAP32[HEAP32[HEAP32[$9>>2]+80>>2]+8>>2],$27,$22);label$2:{if(!$22){HEAP32[$5>>2]=dmHashReverseSafe64($27,$28);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,51243,$5);HEAP32[$1>>2]=0;HEAP32[$1+32>>2]=0;HEAP32[$0+8>>2]=0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;break label$2}dmGameObject__GetWorldTransform_28dmGameObject__Instance__29($5+32|0,HEAP32[$9>>2]);$3=HEAPF32[$5+64>>2];$19=Math_fround($3*HEAPF32[$9+48>>2]);if($19==Math_fround(0)){break label$1}$4=HEAPF32[$5+68>>2];$20=Math_fround($4*HEAPF32[$9+52>>2]);if($20==Math_fround(0)){break label$1}$10=HEAPF32[$5+72>>2];$23=Math_fround($10*HEAPF32[$9+56>>2]);if($23==Math_fround(0)){break label$1}$21=HEAPF32[$9+40>>2];$2=HEAPF32[$5+44>>2];$12=HEAPF32[$9+36>>2];$6=HEAPF32[$5+32>>2];$14=HEAPF32[$9+32>>2];$7=HEAPF32[$5+36>>2];$8=HEAPF32[$5+40>>2];$13=HEAPF32[$5+56>>2];$24=HEAPF32[$5+52>>2];$25=HEAPF32[$5+48>>2];$15=HEAPF32[$9+16>>2];$16=HEAPF32[$9+28>>2];$17=HEAPF32[$9+20>>2];$26=HEAPF32[$9+24>>2];dmGameObject__GetWorldPosition_28dmGameObject__Instance__29($5+16|0,$22);$11=Math_fround(Math_fround(Math_fround($8*$15)+Math_fround(Math_fround($2*$17)+Math_fround($7*$16)))-Math_fround($6*$26));$29=$13;$3=Math_fround($14*$3);$4=Math_fround($12*$4);$10=Math_fround($21*$10);$12=Math_fround(Math_fround(Math_fround($8*$3)+Math_fround($2*$4))-Math_fround($6*$10));$14=Math_fround(Math_fround($8*$10)+Math_fround(Math_fround($6*$3)+Math_fround($7*$4)));$13=Math_fround(Math_fround(Math_fround($6*$4)+Math_fround($2*$10))-Math_fround($7*$3));$18=Math_fround(Math_fround(Math_fround($2*$3)+Math_fround($7*$10))-Math_fround($8*$4));$10=Math_fround($29+Math_fround(Math_fround($6*$12)+Math_fround(Math_fround(Math_fround($8*$14)+Math_fround($2*$13))-Math_fround($7*$18))));$3=Math_fround(Math_fround(Math_fround(Math_fround($2*$16)-Math_fround($6*$15))-Math_fround($7*$17))-Math_fround($8*$26));$21=Math_fround($25+Math_fround(Math_fround($7*$13)+Math_fround(Math_fround(Math_fround($6*$14)+Math_fround($2*$18))-Math_fround($8*$12))));$4=Math_fround(Math_fround(Math_fround($6*$17)+Math_fround(Math_fround($2*$26)+Math_fround($8*$16)))-Math_fround($7*$15));$12=Math_fround($24+Math_fround(Math_fround($8*$18)+Math_fround(Math_fround(Math_fround($2*$12)+Math_fround($7*$14))-Math_fround($6*$13))));$14=Math_fround(Math_fround(Math_fround($11*$10)-Math_fround($3*$21))-Math_fround($4*$12));$24=Math_fround(Math_fround(1)/$20);$13=Math_fround($24*HEAPF32[$5+20>>2]);$25=Math_fround(Math_fround(1)/$19);$18=Math_fround($25*HEAPF32[$5+16>>2]);$23=Math_fround(Math_fround(1)/$23);$19=Math_fround($23*HEAPF32[$5+24>>2]);$20=Math_fround(Math_fround($4*$13)+Math_fround(Math_fround($3*$18)-Math_fround($11*$19)));$2=Math_fround(Math_fround(Math_fround($7*$26)+Math_fround(Math_fround($2*$15)+Math_fround($6*$16)))-Math_fround($8*$17));$6=Math_fround(Math_fround(Math_fround($2*$12)-Math_fround($3*$10))-Math_fround($11*$21));$7=Math_fround(Math_fround($4*$10)+Math_fround(Math_fround($11*$12)+Math_fround($2*$21)));$8=Math_fround(Math_fround(Math_fround($4*$21)-Math_fround($3*$12))-Math_fround($2*$10));$15=Math_fround(Math_fround($11*$18)+Math_fround(Math_fround($3*$19)-Math_fround($2*$13)));$16=Math_fround(Math_fround(Math_fround($13*Math_fround(-$11))-Math_fround($2*$18))-Math_fround($4*$19));$17=Math_fround(Math_fround(Math_fround($3*$13)-Math_fround($4*$18))+Math_fround($2*$19));HEAPF32[$0+8>>2]=Math_fround($23*Math_fround(Math_fround(Math_fround($11*$14)+Math_fround(Math_fround($3*$6)-Math_fround($4*$7)))-Math_fround($2*$8)))+Math_fround(Math_fround(Math_fround($11*$20)+Math_fround(Math_fround($3*$15)-Math_fround($4*$16)))-Math_fround($2*$17));HEAPF32[$0+4>>2]=Math_fround($24*Math_fround(Math_fround(Math_fround($2*$6)+Math_fround(Math_fround($3*$8)-Math_fround($11*$7)))-Math_fround($4*$14)))+Math_fround(Math_fround(Math_fround(Math_fround($3*$17)-Math_fround($11*$16))+Math_fround($2*$15))-Math_fround($4*$20));HEAPF32[$0>>2]=Math_fround($25*Math_fround(Math_fround(Math_fround($4*$8)+Math_fround(Math_fround($3*$14)-Math_fround($2*$7)))-Math_fround($11*$6)))+Math_fround(Math_fround(Math_fround($4*$17)+Math_fround(Math_fround($3*$20)-Math_fround($2*$16)))-Math_fround($11*$15))}global$0=$5+80|0;return}__assert_fail(51293,51406,374,51471);abort()}function ssl_write_client_hello($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$6=global$0-16|0;global$0=$6;$1=HEAP32[$0>>2];label$1:{if(!HEAP32[$1+24>>2]){$5=-29696;break label$1}if(!HEAP32[$0+8>>2]){HEAP32[$0+16>>2]=HEAPU8[$1+182|0];HEAP32[$0+20>>2]=HEAPU8[$1+183|0]}$2=HEAPU8[$1+180|0];if(!$2){$5=-28928;break label$1}$3=HEAP32[$0+204>>2];mbedtls_ssl_write_version($2,HEAPU8[$1+181|0],HEAP32[$1+184>>2]>>>1&1,$3+4|0);$5=ssl_generate_random($0);if($5){break label$1}$1=HEAP32[$0+68>>2];$2=HEAPU8[$1+1132|0]|HEAPU8[$1+1133|0]<<8|(HEAPU8[$1+1134|0]<<16|HEAPU8[$1+1135|0]<<24);$4=HEAPU8[$1+1128|0]|HEAPU8[$1+1129|0]<<8|(HEAPU8[$1+1130|0]<<16|HEAPU8[$1+1131|0]<<24);HEAP8[$3+6|0]=$4;HEAP8[$3+7|0]=$4>>>8;HEAP8[$3+8|0]=$4>>>16;HEAP8[$3+9|0]=$4>>>24;HEAP8[$3+10|0]=$2;HEAP8[$3+11|0]=$2>>>8;HEAP8[$3+12|0]=$2>>>16;HEAP8[$3+13|0]=$2>>>24;$2=$1+1152|0;$4=HEAPU8[$2+4|0]|HEAPU8[$2+5|0]<<8|(HEAPU8[$2+6|0]<<16|HEAPU8[$2+7|0]<<24);$2=HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24);HEAP8[$3+30|0]=$2;HEAP8[$3+31|0]=$2>>>8;HEAP8[$3+32|0]=$2>>>16;HEAP8[$3+33|0]=$2>>>24;HEAP8[$3+34|0]=$4;HEAP8[$3+35|0]=$4>>>8;HEAP8[$3+36|0]=$4>>>16;HEAP8[$3+37|0]=$4>>>24;$2=$1+1144|0;$4=HEAPU8[$2+4|0]|HEAPU8[$2+5|0]<<8|(HEAPU8[$2+6|0]<<16|HEAPU8[$2+7|0]<<24);$2=HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24);HEAP8[$3+22|0]=$2;HEAP8[$3+23|0]=$2>>>8;HEAP8[$3+24|0]=$2>>>16;HEAP8[$3+25|0]=$2>>>24;HEAP8[$3+26|0]=$4;HEAP8[$3+27|0]=$4>>>8;HEAP8[$3+28|0]=$4>>>16;HEAP8[$3+29|0]=$4>>>24;$1=$1+1136|0;$2=HEAPU8[$1+4|0]|HEAPU8[$1+5|0]<<8|(HEAPU8[$1+6|0]<<16|HEAPU8[$1+7|0]<<24);$1=HEAPU8[$1|0]|HEAPU8[$1+1|0]<<8|(HEAPU8[$1+2|0]<<16|HEAPU8[$1+3|0]<<24);HEAP8[$3+14|0]=$1;HEAP8[$3+15|0]=$1>>>8;HEAP8[$3+16|0]=$1>>>16;HEAP8[$3+17|0]=$1>>>24;HEAP8[$3+18|0]=$2;HEAP8[$3+19|0]=$2>>>8;HEAP8[$3+20|0]=$2>>>16;HEAP8[$3+21|0]=$2>>>24;$1=HEAP32[$0+8>>2];label$5:{label$6:{label$7:{label$8:{$2=HEAP32[$0+64>>2];$4=HEAP32[$2+12>>2];label$9:{if($4+ -16>>>0<=16){if($1){break label$8}$1=HEAP32[HEAP32[$0+68>>2]+2252>>2]?$4:0;break label$9}if($1){break label$8}$1=0}if(!HEAP32[$2+104>>2]|!HEAP32[$2+108>>2]){break label$7}$1=32;$4=HEAP32[$0>>2];$5=FUNCTION_TABLE[HEAP32[$4+24>>2]](HEAP32[$4+28>>2],$2+16|0,32)|0;if($5){break label$1}HEAP32[HEAP32[$0+64>>2]+12>>2]=32;HEAP8[$3+38|0]=32;$8=$3+39|0;break label$6}HEAP8[$3+38|0]=0;$8=$3+39|0;break label$5}HEAP8[$3+38|0]=$1;$8=$3+39|0;if(!$1){break label$5}}$5=0;while(1){HEAP8[$8|0]=HEAPU8[(HEAP32[$0+64>>2]+$5|0)+16|0];$8=$8+1|0;$5=$5+1|0;if(($1|0)!=($5|0)){continue}break}}label$12:{if(!(HEAPU8[HEAP32[$0>>2]+184|0]&2)){break label$12}$1=HEAP32[$0+68>>2];if(!HEAP32[$1+480>>2]){HEAP8[$8|0]=0;$8=$8+1|0;break label$12}HEAP8[$8|0]=HEAPU8[$1+484|0];$1=HEAP32[$0+68>>2];$8=memcpy($8+1|0,HEAP32[$1+480>>2],HEAPU8[$1+484|0])+HEAPU8[HEAP32[$0+68>>2]+484|0]|0}$7=$8+2|0;$4=HEAP32[HEAP32[$0>>2]+(HEAP32[$0+20>>2]<<2)>>2];$5=HEAP32[$4>>2];if($5){$2=$4;$1=0;while(1){$5=mbedtls_ssl_ciphersuite_from_id($5);$10=HEAP32[$0>>2];if(!ssl_validate_ciphersuite($5,$0,HEAPU8[$10+183|0],HEAPU8[$10+181|0])){$5=HEAP32[$5+16>>2]+ -3|0;label$17:{if($5>>>0<=8){$5=HEAP32[($5<<2)+167940>>2];break label$17}$5=0}HEAP8[$7|0]=HEAP32[$2>>2]>>>8;HEAP8[$7+1|0]=HEAP32[$2>>2];$9=$9+1|0;$11=$5|$11;$7=$7+2|0}$1=$1+1|0;$2=$4+($1<<2)|0;$5=HEAP32[$2>>2];if($5){continue}break}}if(!HEAP32[$0+8>>2]){HEAP8[$7|0]=65280;HEAP8[$7+1|0]=255;$9=$9+1|0;$7=$7+2|0}if(HEAP8[HEAP32[$0>>2]+186|0]&1){HEAP8[$7|0]=86;HEAP8[$7+1|0]=0;$9=$9+1|0;$7=$7+2|0}HEAP8[$8+1|0]=$9<<1;HEAP8[$8|0]=$9>>>7;HEAP8[$7|0]=1;HEAP8[$7+1|0]=0;$4=$7+4|0;ssl_write_hostname_ext($0,$4,$6+12|0);$1=HEAP32[$6+12>>2];ssl_write_renegotiation_ext($0,$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;ssl_write_signature_algorithms_ext(HEAP32[$0>>2],HEAP32[$0+204>>2],$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;$2=$0;if($11){ssl_write_supported_elliptic_curves_ext($0,$1+$4|0,$6+12|0);$1=HEAP32[$6+12>>2]+$1|0;ssl_write_supported_point_formats_ext(HEAP32[$0+204>>2],$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0}ssl_write_max_fragment_length_ext($2,$1+$4|0,$6+12|0);$1=HEAP32[$6+12>>2]+$1|0;ssl_write_truncated_hmac_ext(HEAP32[$0>>2],HEAP32[$0+204>>2],$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;ssl_write_encrypt_then_mac_ext(HEAP32[$0>>2],HEAP32[$0+204>>2],$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;ssl_write_extended_ms_ext(HEAP32[$0>>2],HEAP32[$0+204>>2],$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;ssl_write_alpn_ext($0,$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;ssl_write_session_ticket_ext($0,$1+$4|0,$6+12|0);$1=$1+HEAP32[$6+12>>2]|0;$2=$7+2|0;label$23:{if(!$1){break label$23}$2=($1<<8&16711680|$1<<24)>>>16|0;HEAP8[$7+2|0]=$2;HEAP8[$7+3|0]=$2>>>8;$2=$1+$4|0}HEAP32[$0+208>>2]=22;HEAP32[$0+212>>2]=$2-$3;HEAP8[HEAP32[$0+204>>2]]=1;HEAP32[$0+4>>2]=HEAP32[$0+4>>2]+1;if(HEAPU8[HEAP32[$0>>2]+184|0]&2){mbedtls_ssl_send_flight_completed($0)}$5=mbedtls_ssl_write_handshake_msg($0);if($5){break label$1}if(HEAPU8[HEAP32[$0>>2]+184|0]&2){$5=mbedtls_ssl_flight_transmit($0);if($5){break label$1}}$5=0}global$0=$6+16|0;return $5}function VP8LInverseTransform($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0,$20=0;$10=global$0-16|0;global$0=$10;label$1:{label$2:{label$3:{label$4:{label$5:{if(($2|0)>($1|0)){if(HEAP32[$0+12>>2]>=($2|0)){$5=HEAP32[$0>>2];if($5>>>0>3){break label$1}$8=HEAP32[$0+8>>2];label$8:{switch($5-1|0){case 1:FUNCTION_TABLE[HEAP32[283225]]($4,Math_imul($8,$2-$1|0));break label$1;case 0:break label$4;case 2:break label$5;default:break label$8}}$7=$4;$9=$1;if(!$1){$3=HEAP32[$4>>2];$3=$3+ -16777216&-16711936|$3&16711935;HEAP32[$4>>2]=$3;if(($8|0)>=2){$5=1;while(1){$7=($5<<2)+$4|0;$6=HEAP32[$7>>2];$3=($6&-16711936)+($3&-16711936)&-16711936|($6&16711935)+($3&16711935)&16711935;HEAP32[$7>>2]=$3;$5=$5+1|0;if(($8|0)!=($5|0)){continue}break}}$9=1;$7=($8<<2)+$4|0}if(($9|0)>=($2|0)){break label$2}$3=HEAP32[$0+4>>2];$13=1<<$3;$15=$13+ -1|0;$16=$8+$15>>>$3|0;$11=HEAP32[$0+16>>2]+(Math_imul($16,$9>>$3)<<2)|0;$3=0-$8|0;label$13:{$18=$8&0-$13;if(($18|0)>1){$14=$3<<2;break label$13}if(($8|0)<2){break label$3}$5=$3<<2;while(1){$3=HEAP32[$7>>2];$6=HEAP32[$5+$7>>2];$6=($3&-16711936)+($6&-16711936)&-16711936|($3&16711935)+($6&16711935)&16711935;HEAP32[$7>>2]=$6;$14=HEAP32[(HEAP32[$11>>2]>>>6&60)+1132928>>2];$3=1;while(1){$12=$6;$6=($3<<2)+$7|0;$13=FUNCTION_TABLE[$14]($12,$6+$5|0)|0;$12=$6;$6=HEAP32[$6>>2];$6=($6&-16711936)+($13&-16711936)&-16711936|($6&16711935)+($13&16711935)&16711935;HEAP32[$12>>2]=$6;$3=$3+1|0;if(($8|0)!=($3|0)){continue}break}$9=$9+1|0;$11=$15&$9?$11:($16<<2)+$11|0;$7=($8<<2)+$7|0;if(($2|0)!=($9|0)){continue}break}break label$2}while(1){$3=HEAP32[$7>>2];$5=HEAP32[$7+$14>>2];HEAP32[$7>>2]=($3&-16711936)+($5&-16711936)&-16711936|($3&16711935)+($5&16711935)&16711935;$3=1;$5=1;$6=$11;while(1){if(($13|0)>($3|0)){$20=HEAP32[(HEAP32[$6>>2]>>>6&60)+1132928>>2];$3=($13-$3|0)+$5|0;while(1){$12=($5<<2)+$7|0;$19=FUNCTION_TABLE[$20](HEAP32[$12+ -4>>2],$12+$14|0)|0;$17=$12;$12=HEAP32[$12>>2];HEAP32[$17>>2]=($12&-16711936)+($19&-16711936)&-16711936|($12&16711935)+($19&16711935)&16711935;$5=$5+1|0;if(($3|0)!=($5|0)){continue}break}$5=$3}$6=$6+4|0;$3=0;if(($5|0)<($18|0)){continue}break}if(($5|0)<($8|0)){$12=HEAP32[(HEAP32[$6>>2]>>>6&60)+1132928>>2];while(1){$3=($5<<2)+$7|0;$6=FUNCTION_TABLE[$12](HEAP32[$3+ -4>>2],$3+$14|0)|0;$17=$3;$3=HEAP32[$3>>2];HEAP32[$17>>2]=($3&-16711936)+($6&-16711936)&-16711936|($3&16711935)+($6&16711935)&16711935;$5=$5+1|0;if(($8|0)!=($5|0)){continue}break}}$9=$9+1|0;$11=$15&$9?$11:($16<<2)+$11|0;$7=($8<<2)+$7|0;if(($2|0)!=($9|0)){continue}break}break label$2}__assert_fail(182227,182179,368,182206);abort()}__assert_fail(182159,182179,367,182206);abort()}$5=HEAP32[$0+4>>2];if(!(($3|0)!=($4|0)|($5|0)<1)){$4=$2-$1|0;$5=Math_imul($4,($8+(1<<$5)|0)+ -1>>>$5|0)<<2;$4=((Math_imul($4,$8)<<2)+$3|0)-$5|0;$5=memmove($4,$3,$5);$9=HEAP32[$0+16>>2];$7=HEAP32[$0+8>>2];$6=HEAP32[$0+4>>2];$0=8>>>$6|0;if(($0|0)<=7){if(($7|0)<1){break label$1}$11=-1<<$0^-1;$8=-1<<$6^-1;while(1){$6=0;$5=0;while(1){if(!($6&$8)){$5=HEAPU8[$4+1|0];$4=$4+4|0}HEAP32[$3>>2]=HEAP32[$9+(($5&$11)<<2)>>2];$5=$5>>>$0|0;$3=$3+4|0;$6=$6+1|0;if(($7|0)!=($6|0)){continue}break}$1=$1+1|0;if(($2|0)!=($1|0)){continue}break}break label$1}FUNCTION_TABLE[HEAP32[283249]]($5,$9,$3,$1,$2,$7);break label$1}$0=HEAP32[$0+16>>2];$7=8>>>$5|0;if(($7|0)<=7){if(($8|0)<1){break label$1}$9=-1<<$7^-1;$11=-1<<$5^-1;while(1){$6=0;$5=0;while(1){if(!($6&$11)){$5=HEAPU8[$3+1|0];$3=$3+4|0}HEAP32[$4>>2]=HEAP32[$0+(($5&$9)<<2)>>2];$5=$5>>>$7|0;$4=$4+4|0;$6=$6+1|0;if(($8|0)!=($6|0)){continue}break}$1=$1+1|0;if(($2|0)!=($1|0)){continue}break}break label$1}FUNCTION_TABLE[HEAP32[283249]]($3,$0,$4,$1,$2,$8);break label$1}$3=HEAP32[$0+4>>2];$6=1<<$3;$11=$6+ -1|0;$9=$11+$8>>>$3|0;$0=HEAP32[$0+16>>2]+(Math_imul($9,$1>>$3)<<2)|0;$3=$8&0-$6;$7=$8-$3|0;if(($3|0)>0){$14=$3<<2;while(1){HEAP8[$10+10|0]=0;HEAP16[$10+8>>1]=0;$12=$4+$14|0;$3=$4;$5=$0;while(1){$13=HEAP32[$5>>2];HEAP8[$10+8|0]=$13;HEAP8[$10+10|0]=$13>>>16;HEAP8[$10+9|0]=$13>>>8;FUNCTION_TABLE[HEAP32[283248]]($10+8|0,$3,$6);$5=$5+4|0;$3=($6<<2)+$3|0;if($3>>>0<$12>>>0){continue}break}if($3>>>0<($8<<2)+$4>>>0){$4=HEAP32[$5>>2];HEAP8[$10+8|0]=$4;HEAP8[$10+10|0]=$4>>>16;HEAP8[$10+9|0]=$4>>>8;FUNCTION_TABLE[HEAP32[283248]]($10+8|0,$3,$7);$3=($7<<2)+$3|0}$4=$3;$1=$1+1|0;$0=$11&$1?$0:($9<<2)+$0|0;if(($1|0)!=($2|0)){continue}break}break label$1}$5=($8|0)<1;$6=$7<<2;while(1){HEAP8[$10+10|0]=0;HEAP16[$10+8>>1]=0;if(!$5){$3=HEAP32[$0>>2];HEAP8[$10+8|0]=$3;HEAP8[$10+10|0]=$3>>>16;HEAP8[$10+9|0]=$3>>>8;FUNCTION_TABLE[HEAP32[283248]]($10+8|0,$4,$7);$4=$4+$6|0}$1=$1+1|0;$0=$11&$1?$0:($9<<2)+$0|0;if(($1|0)!=($2|0)){continue}break}break label$1}while(1){$5=HEAP32[$7>>2];$6=HEAP32[($3<<2)+$7>>2];HEAP32[$7>>2]=($5&-16711936)+($6&-16711936)&-16711936|($5&16711935)+($6&16711935)&16711935;$7=($8<<2)+$7|0;$9=$9+1|0;if(($9|0)!=($2|0)){continue}break}}if(HEAP32[$0+12>>2]==($2|0)){break label$1}$0=$8<<2;memcpy($4-$0|0,(Math_imul($8,($1^-1)+$2|0)<<2)+$4|0,$0)}global$0=$10+16|0}function dmGameObject__Script_Animate_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0;$1=global$0-240|0;global$0=$1;$7=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;dmScript__GetInstance_28lua_State__29($0);$2=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[145531],21457);lua_settop($0,-2);$2=HEAP32[$2+4>>2];HEAP32[$1+232>>2]=0;HEAP32[$1+236>>2]=0;HEAP32[$1+224>>2]=0;HEAP32[$1+228>>2]=0;HEAP32[$1+216>>2]=0;HEAP32[$1+220>>2]=0;HEAP32[$1+208>>2]=0;HEAP32[$1+212>>2]=0;dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29($0,$1+208|0);HEAP32[$1+200>>2]=0;HEAP32[$1+204>>2]=0;HEAP32[$1+192>>2]=0;HEAP32[$1+196>>2]=0;HEAP32[$1+184>>2]=0;HEAP32[$1+188>>2]=0;HEAP32[$1+176>>2]=0;HEAP32[$1+180>>2]=0;dmScript__ResolveURL_28lua_State__2c_20int_2c_20dmMessage__URL__2c_20dmMessage__URL__29($0,1,$1+176|0,$1+208|0);$8=HEAP32[HEAP32[$2+80>>2]+8>>2];$2=$8;label$2:{if(!$2){break label$2}$2=HEAP32[$2>>2];if(!$2){break label$2}$3=HEAP32[$2+4224>>2];$5=HEAP32[$2+4228>>2]}if(($3|0)!=HEAP32[$1+176>>2]|($5|0)!=HEAP32[$1+180>>2]){luaL_error($0,19277,0)}label$4:{if(lua_isstring($0,2)){$3=dmHashString64(lua_tolstring($0,2,0));$5=i64toi32_i32$HIGH_BITS;break label$4}$3=dmScript__CheckHash_28lua_State__2c_20int_29($0,2);$5=i64toi32_i32$HIGH_BITS}$10=dmGameObject__GetInstanceFromIdentifier_28dmGameObject__CollectionHandle__2c_20unsigned_20long_20long_29($8,HEAP32[$1+192>>2],HEAP32[$1+196>>2]);label$6:{if(!$10){HEAP32[$1>>2]=dmHashReverseSafe64(HEAP32[$1+192>>2],HEAP32[$1+196>>2]);$2=luaL_error($0,18466,$1);break label$6}$11=luaL_checkinteger($0,3);if(($11|0)>=7){$2=luaL_error($0,19343,0);break label$6}$2=$1+136|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;$6=$2;if(dmGameObject__LuaToVar_28lua_State__2c_20int_2c_20dmGameObject__PropertyVar__29($0,4,$2)){$2=luaL_error($0,19392,0);break label$6}label$11:{label$12:{label$13:{if(lua_isnumber($0,5)){$9=luaL_checkinteger($0,5);if(($9|0)>=42){break label$12}$2=0;break label$13}if(!dmScript__IsVector_28lua_State__2c_20int_29($0,5)){break label$11}$13=dmScript__CheckVector_28lua_State__2c_20int_29($0,5);lua_pushvalue($0,5);$14=113;$9=41;$12=dmScript__Ref_28lua_State__2c_20int_29($0,-1e4);$2=$0}$15=Math_fround(luaL_checknumber($0,6));$4=0;label$15:{if(($7|0)<7){break label$15}$16=Math_fround(luaL_checknumber($0,7));$4=0;if(($7|0)==7){break label$15}$17=(lua_type($0,8)|0)!=6;$4=0;if($17){break label$15}$18=114;$4=dmScript__CreateCallback_28lua_State__2c_20int_29($0,8)}HEAP32[$1+104>>2]=$12;HEAP32[$1+124>>2]=$2;HEAP32[$1+120>>2]=$14;$2=HEAP32[$1+124>>2];HEAP32[$1+96>>2]=HEAP32[$1+120>>2];HEAP32[$1+100>>2]=$2;HEAP32[$1+116>>2]=$13;HEAP32[$1+112>>2]=$9;HEAP32[$1+128>>2]=$12;$2=HEAP32[$1+116>>2];HEAP32[$1+88>>2]=HEAP32[$1+112>>2];HEAP32[$1+92>>2]=$2;label$16:{label$17:{$2=dmGameObject__Animate_28dmGameObject__CollectionHandle__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20dmGameObject__PropertyVar__2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($8,$10,HEAP32[$1+200>>2],HEAP32[$1+204>>2],$3,$5,$11,$6,$1+88|0,$15,$16,$18,$4);$6=$2+9|0;if($6>>>0>9){break label$17}label$18:{switch($6-1|0){case 7:lua_pushlstring($0,18789,0);dmScript__PushURL_28lua_State__2c_20dmMessage__URL_20const__29($0,$1+176|0);lua_concat($0,2);$2=lua_tolstring($0,-1,0);lua_settop($0,-2);HEAP32[$1+36>>2]=dmHashReverseSafe64($3,$5);HEAP32[$1+32>>2]=$2;$2=luaL_error($0,18555,$1+32|0);break label$6;case 4:case 5:lua_pushlstring($0,18789,0);dmScript__PushURL_28lua_State__2c_20dmMessage__URL_20const__29($0,$1+176|0);lua_concat($0,2);$2=lua_tolstring($0,-1,0);lua_settop($0,-2);$3=dmHashReverseSafe64($3,$5);HEAP32[$1+52>>2]=$2;HEAP32[$1+48>>2]=$3;$2=luaL_error($0,19539,$1+48|0);break label$6;case 3:$2=dmHashReverseSafe64(HEAP32[$1+200>>2],HEAP32[$1+204>>2]);HEAP32[$1+68>>2]=lua_tolstring($0,1,0);HEAP32[$1+64>>2]=$2;$2=luaL_error($0,18599,$1- -64|0);break label$6;case 8:break label$16;case 0:case 1:case 2:case 6:break label$17;default:break label$18}}lua_pushlstring($0,18789,0);dmScript__PushURL_28lua_State__2c_20dmMessage__URL_20const__29($0,$1+176|0);lua_concat($0,2);$2=lua_tolstring($0,-1,0);lua_settop($0,-2);$3=dmHashReverseSafe64($3,$5);HEAP32[$1+84>>2]=$2;HEAP32[$1+80>>2]=$3;$2=luaL_error($0,19584,$1+80|0);break label$6}HEAP32[$1+16>>2]=$2;$2=luaL_error($0,19638,$1+16|0);break label$6}$2=0;if(($7|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$6}__assert_fail(19675,19221,1482,19696);abort()}$2=luaL_error($0,19457,0);break label$6}$2=luaL_error($0,19481,0)}global$0=$1+240|0;return $2|0}function dmGui__NewScene_28dmGui__Context__2c_20dmGui__NewSceneParams_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$8=global$0-16|0;global$0=$8;$5=HEAP32[$0>>2];$2=$5;$9=HEAP32[$2+8>>2]-HEAP32[$2+12>>2]>>4;$2=memset(lua_newuserdata($2,408),0,408);HEAP32[$2+8>>2]=-2;HEAP32[$2>>2]=-2;HEAP32[$2+4>>2]=-2;$7=$0+44|0;$3=HEAP32[$7>>2];$6=$0+48|0;$4=HEAP32[$6>>2];label$1:{label$2:{if(($3|0)==($4|0)){if(HEAP8[$0+52|0]&1){break label$2}$3=$0+40|0;dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(($4-HEAP32[$3>>2]>>2)+32|0,4,$3,$6,$7);$4=HEAP32[$6>>2];$3=HEAP32[$7>>2]}if(($3|0)==($4|0)){break label$1}HEAP32[$0+44>>2]=$3+4;HEAP32[$3>>2]=$2;lua_pushvalue($5,-1);HEAP32[$2>>2]=dmScript__Ref_28lua_State__2c_20int_29($5,-1e4);lua_createtable($5,0,0);HEAP32[$2+8>>2]=dmScript__Ref_28lua_State__2c_20int_29($5,-1e4);lua_createtable($5,0,0);$3=dmScript__Ref_28lua_State__2c_20int_29($5,-1e4);HEAP32[$2+16>>2]=0;HEAP32[$2+12>>2]=$0;HEAP32[$2+4>>2]=$3;HEAP32[$2+176>>2]=HEAP32[$1+32>>2];HEAP32[$2+212>>2]=HEAP32[$1+36>>2];if(HEAP8[$2+44|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$1>>2],576,$2+32|0,$2+40|0,$2+36|0);$3=HEAPU16[$2+24>>1];$4=HEAPU16[$1>>1];label$4:{if($3>>>0<=$4>>>0){$7=HEAP32[$2+20>>2];$6=dlmalloc($4<<1);HEAP32[$2+20>>2]=$6;$6=memcpy($6,$7,$3<<1);HEAP16[$2+24>>1]=$4;if($3>>>0<$4>>>0){while(1){HEAP16[$6+($3<<1)>>1]=$3;$3=$3+1|0;if(($4|0)!=($3|0)){continue}break}}dlfree($7);if(HEAP8[$2+60|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$1+4>>2],72,$2+48|0,$2+56|0,$2+52|0);if(HEAP8[$2+76|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$1+4>>2],20,$2- -64|0,$2+72|0,$2+68|0);$3=HEAP32[$1+8>>2];dmHashTable_unsigned_20long_20long_2c_20dmGui__TextureInfo___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+112|0,$3<<1,$3);$3=HEAP32[$1+8>>2];dmHashTable_unsigned_20long_20long_2c_20dmGui__DynamicTexture___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+144|0,$3<<1,$3);$3=HEAP32[$1+12>>2];dmHashTable_unsigned_20long_20long_2c_20void____SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+80|0,$3<<1,$3);$3=HEAP32[$1+16>>2];dmHashTable_unsigned_20long_20long_2c_20void____SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+180|0,$3<<1,$3);$3=HEAP32[$1+20>>2];dmHashTable_unsigned_20long_20long_2c_20dmParticle__Prototype____SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+216|0,$3<<1,$3);if(HEAP8[$2+260|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$1+24>>2],12,$2+248|0,$2+256|0,$2+252|0);$3=$2+264|0;$4=HEAP32[$1+28>>2];dmHashTable_unsigned_20long_20long_2c_20unsigned_20short___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($3,$4<<1,$4);if(HEAP8[$2+308|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(1,8,$2+296|0,$2+304|0,$2+300|0);$4=HEAP32[$1+60>>2];HEAP32[$2+356>>2]=0;HEAP32[$2+336>>2]=$4;$4=HEAP32[$1+40>>2];HEAP32[$2+364>>2]=-1;HEAP32[$2+368>>2]=0;HEAP32[$2+360>>2]=$4;HEAP32[$2+376>>2]=HEAP32[$0+28>>2];HEAP32[$2+380>>2]=HEAP32[$0+32>>2];HEAP32[$2+388>>2]=HEAP32[$1+44>>2];HEAP32[$2+392>>2]=HEAP32[$1+48>>2];HEAP32[$2+396>>2]=HEAP32[$1+52>>2];HEAP32[$2+400>>2]=HEAP32[$1+56>>2];HEAP32[$2+384>>2]=HEAP32[$1+64>>2];$0=HEAP32[283394];$1=HEAP32[283395];$4=HEAPU16[$2+372>>1];HEAP16[$2+372>>1]=$4+1;HEAP16[$8+14>>1]=$4;dmHashTable_unsigned_20long_20long_2c_20unsigned_20short___Put_28unsigned_20long_20long_2c_20unsigned_20short_20const__29($3,$0,$1,$8+14|0);$0=HEAP32[283397];$1=$0;$3=HEAP32[283396];HEAP32[$2+328>>2]=$3;HEAP32[$2+332>>2]=$1;$0=HEAP32[$2+296>>2];HEAP32[$2+300>>2]=$0;if(($0|0)==HEAP32[$2+304>>2]){break label$1}HEAP32[$2+300>>2]=$0+8;HEAP32[$0>>2]=$3;HEAP32[$0+4>>2]=$1;if(HEAP8[$2+324|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(0,4,$2+312|0,$2+320|0,$2+316|0);lua_getfield($5,-1e4,199263);lua_setmetatable($5,-2);dmScript__SetInstance_28lua_State__29($5);dmScript__InitializeInstance_28dmScript__ScriptWorld__29(HEAP32[$2+384>>2]);$0=HEAP32[$5+8>>2];HEAP32[$0+8>>2]=0;HEAP32[$5+8>>2]=$0+16;dmScript__SetInstance_28lua_State__29($5);if(HEAP32[$5+8>>2]-HEAP32[$5+12>>2]>>4!=($9|0)){break label$4}global$0=$8+16|0;return $2}__assert_fail(202197,201674,109,202185);abort()}__assert_fail(199281,199220,422,199302);abort()}__assert_fail(202110,201431,444,202185);abort()}__assert_fail(201568,201431,484,201592);abort()}function __addtf3($0,$1,$2,$3,$4,$5,$6,$7,$8){var $9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0,$20=0;$11=global$0-112|0;global$0=$11;$12=$7;$13=$8&2147483647;$10=$2+ -1|0;$9=$1+ -1|0;if($9>>>0<4294967295){$10=$10+1|0}$14=$9;$16=($9|0)==-1&($10|0)==-1;$15=$4&2147483647;$9=$15;$17=$3;$14=($2|0)==($10|0)&$14>>>0<$1>>>0|$10>>>0<$2>>>0;$10=$3+$14|0;if($10>>>0<$14>>>0){$9=$9+1|0}$10=$10+ -1|0;$9=$9+ -1|0;$9=$10>>>0<4294967295?$9+1|0:$9;label$1:{label$2:{if(!(($10|0)==-1&($9|0)==2147418111?$16:($9|0)==2147418111&$10>>>0>4294967295|$9>>>0>2147418111)){$10=$6+ -1|0;$9=$5+ -1|0;if($9>>>0<4294967295){$10=$10+1|0}$14=$9;$16=($9|0)!=-1|($10|0)!=-1;$9=$13;$14=($6|0)==($10|0)&$14>>>0<$5>>>0|$10>>>0<$6>>>0;$10=$14+$12|0;if($10>>>0<$14>>>0){$9=$9+1|0}$10=$10+ -1|0;$9=$9+ -1|0;$9=$10>>>0<4294967295?$9+1|0:$9;if(($10|0)==-1&($9|0)==2147418111?$16:($9|0)==2147418111&$10>>>0<4294967295|$9>>>0<2147418111){break label$2}}if(!(!$17&($15|0)==2147418112?!($1|$2):($15|0)==2147418112&$17>>>0<0|$15>>>0<2147418112)){$7=$3;$8=$4|32768;$5=$1;$6=$2;break label$1}if(!(!$12&($13|0)==2147418112?!($5|$6):($13|0)==2147418112&$12>>>0<0|$13>>>0<2147418112)){$8=$8|32768;break label$1}if(!($1|$17|($15^2147418112|$2))){$9=$3;$3=!($1^$5|$3^$7|($2^$6|$4^$8^-2147483648));$7=$3?0:$9;$8=$3?2147450880:$4;$5=$3?0:$1;$6=$3?0:$2;break label$1}if(!($5|$12|($13^2147418112|$6))){break label$1}if(!($1|$17|($2|$15))){if($5|$12|($6|$13)){break label$1}$5=$1&$5;$6=$2&$6;$7=$3&$7;$8=$4&$8;break label$1}if($5|$12|($6|$13)){break label$2}$5=$1;$6=$2;$7=$3;$8=$4;break label$1}$16=($12|0)==($17|0)&($13|0)==($15|0)?($2|0)==($6|0)&$5>>>0>$1>>>0|$6>>>0>$2>>>0:($13|0)==($15|0)&$12>>>0>$17>>>0|$13>>>0>$15>>>0;$12=$16;$19=$12?$5:$1;$10=$12?$6:$2;$9=$12?$8:$4;$17=$9;$14=$12?$7:$3;$18=$14;$12=$9&65535;$8=$16?$4:$8;$15=$8;$4=$16?$3:$7;$20=$8>>>16&32767;$13=$9>>>16&32767;if(!$13){$3=!($12|$18);$7=$3<<6;$8=Math_clz32($3?$19:$18)+32|0;$3=Math_clz32($3?$10:$12);$3=$7+(($3|0)==32?$8:$3)|0;__ashlti3($11+96|0,$19,$10,$18,$12,$3+ -15|0);$18=HEAP32[$11+104>>2];$12=HEAP32[$11+108>>2];$19=HEAP32[$11+96>>2];$13=16-$3|0;$10=HEAP32[$11+100>>2]}$5=$16?$1:$5;$6=$16?$2:$6;$1=$4;$3=$15&65535;if($20){$2=$1}else{$8=$1;$7=!($1|$3);$2=$7<<6;$9=Math_clz32($7?$5:$1)+32|0;$1=Math_clz32($7?$6:$3);$1=$2+(($1|0)==32?$9:$1)|0;__ashlti3($11+80|0,$5,$6,$8,$3,$1+ -15|0);$20=16-$1|0;$5=HEAP32[$11+80>>2];$6=HEAP32[$11+84>>2];$2=HEAP32[$11+88>>2];$3=HEAP32[$11+92>>2]}$9=$3<<3|$2>>>29;$7=$2<<3|$6>>>29;$8=$9|524288;$2=$18;$3=$12<<3|$2>>>29;$1=$2<<3;$2=$3;$3=$10>>>29|$1;$16=$2;$14=$4^$14;$15=$15^$17;$1=$5;$9=$6<<3|$1>>>29;$2=$1<<3;$1=$9;$5=$13-$20|0;$4=$2;label$11:{if(!$5){break label$11}if($5>>>0>127){$7=0;$8=0;$9=0;$4=1;break label$11}__ashlti3($11- -64|0,$2,$1,$7,$8,128-$5|0);__lshrti3($11+48|0,$2,$1,$7,$8,$5);$7=HEAP32[$11+56>>2];$8=HEAP32[$11+60>>2];$9=HEAP32[$11+52>>2];$4=HEAP32[$11+48>>2]|((HEAP32[$11+64>>2]|HEAP32[$11+72>>2])!=0|(HEAP32[$11+68>>2]|HEAP32[$11+76>>2])!=0)}$12=$9;$16=$16|524288;$1=$19;$9=$10<<3|$1>>>29;$5=$1<<3;label$13:{if(($15|0)<-1?1:($15|0)<=-1?$14>>>0>4294967295?0:1:0){$6=$5;$2=$4;$1=$5-$2|0;$10=$3-$7|0;$4=($9|0)==($12|0)&$5>>>0<$2>>>0|$9>>>0<$12>>>0;$5=$10-$4|0;$2=$9-(($6>>>0<$2>>>0)+$12|0)|0;$6=($16-(($3>>>0<$7>>>0)+$8|0)|0)-($10>>>0<$4>>>0)|0;if(!($1|$5|($2|$6))){$5=0;$6=0;$7=0;$8=0;break label$1}if(($6|0)==524287&$5>>>0>4294967295|$6>>>0>524287){break label$13}$7=$1;$4=!($5|$6);$3=$4<<6;$8=Math_clz32($4?$1:$5)+32|0;$1=Math_clz32($4?$2:$6);$1=$3+(($1|0)==32?$8:$1)|0;$1=$1+ -12|0;__ashlti3($11+32|0,$7,$2,$5,$6,$1);$13=$13-$1|0;$5=HEAP32[$11+40>>2];$6=HEAP32[$11+44>>2];$1=HEAP32[$11+32>>2];$2=HEAP32[$11+36>>2];break label$13}$9=$9+$12|0;$1=$4;$2=$1+$5|0;if($2>>>0<$1>>>0){$9=$9+1|0}$1=$2;$2=$9;$5=($12|0)==($2|0)&$1>>>0<$4>>>0|$2>>>0<$12>>>0;$10=$8+$16|0;$4=$3+$7|0;if($4>>>0<$3>>>0){$10=$10+1|0}$5=$5+$4|0;$3=$10;$3=$5>>>0<$4>>>0?$3+1|0:$3;$6=$3;if(!($3&1048576)){break label$13}$1=$1&1|(($2&1)<<31|$1>>>1);$2=$5<<31|$2>>>1;$13=$13+1|0;$5=($6&1)<<31|$5>>>1;$6=$6>>>1|0}$7=0;$14=$17&-2147483648;if(($13|0)>=32767){$8=$14|2147418112;$5=0;$6=0;break label$1}$4=0;label$17:{if(($13|0)>0){$4=$13;break label$17}__ashlti3($11+16|0,$1,$2,$5,$6,$13+127|0);__lshrti3($11,$1,$2,$5,$6,1-$13|0);$1=HEAP32[$11>>2]|((HEAP32[$11+16>>2]|HEAP32[$11+24>>2])!=0|(HEAP32[$11+20>>2]|HEAP32[$11+28>>2])!=0);$2=HEAP32[$11+4>>2];$5=HEAP32[$11+8>>2];$6=HEAP32[$11+12>>2]}$12=($2&7)<<29|$1>>>3;$3=$5<<29|$2>>>3;$9=$3;$10=$1&7;$2=$10>>>0>4;$1=$2+$12|0;if($1>>>0<$2>>>0){$9=$9+1|0}$17=$1;$2=$1;$1=$9;$8=($3|0)==($1|0)&$2>>>0<$12>>>0|$1>>>0<$3>>>0;$3=$14|$6>>>3&65535;$9=$4<<16;$2=($6&7)<<29|$5>>>3|$7;$4=$2+$8|0;$9=$3|$9;$9=$4>>>0<$2>>>0?$9+1|0:$9;$3=($10|0)==4;$2=$3?$17&1:0;$10=$9;$8=$4;$3=0+$1|0;$1=$2;$4=$1+$17|0;if($4>>>0<$1>>>0){$3=$3+1|0}$5=$4;$1=$5;$6=$3;$2=($7|0)==($3|0)&$1>>>0<$2>>>0|$3>>>0<$7>>>0;$1=$8+$2|0;if($1>>>0<$2>>>0){$10=$10+1|0}$7=$1;$8=$10}HEAP32[$0>>2]=$5;HEAP32[$0+4>>2]=$6;HEAP32[$0+8>>2]=$7;HEAP32[$0+12>>2]=$8;global$0=$11+112|0}function VP8GetHeaders($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;label$1:{if(!$0){break label$1}HEAP32[$0>>2]=0;HEAP32[$0+8>>2]=175514;if(!$1){HEAP32[$0>>2]=2;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175517;break label$1}$7=HEAP32[$1+60>>2];if($7>>>0<=3){HEAP32[$0>>2]=7;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175554;break label$1}$3=HEAP32[$1+64>>2];$4=HEAPU8[$3+1|0];$5=HEAPU8[$3+2|0];$2=HEAPU8[$3|0];$6=$2>>>4&1;HEAP8[$0+42|0]=$6;$8=$2>>>1&7;HEAP8[$0+41|0]=$8;$9=($2^-1)&1;HEAP8[$0+40|0]=$9;$2=($2|$4<<8|$5<<16)>>>5|0;HEAP32[$0+44>>2]=$2;if($8>>>0>=4){HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175572;break label$1}if(!$6){HEAP32[$0>>2]=4;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175603;break label$1}$5=$7+ -3|0;$4=$3+3|0;if($9){if($5>>>0<=6){HEAP32[$0>>2]=7;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175626;break label$1}if(!(HEAPU8[$3+5|0]==42?!(HEAPU8[$4|0]!=157|HEAPU8[$3+4|0]!=1):0)){HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175654;break label$1}$2=HEAPU8[$3+6|0]|HEAPU8[$3+7|0]<<8&16128;HEAP16[$0+48>>1]=$2;HEAP8[$0+52|0]=HEAPU8[$3+7|0]>>>6;$4=HEAPU8[$3+8|0]|HEAPU8[$3+9|0]<<8&16128;HEAP16[$0+50>>1]=$4;$5=HEAPU8[$3+9|0];HEAP32[$0+292>>2]=$4+15>>>4;HEAP32[$0+288>>2]=$2+15>>>4;HEAP8[$0+53|0]=$5>>>6;HEAP32[$1+92>>2]=0;HEAP32[$1+4>>2]=$4;HEAP32[$1>>2]=$2;HEAP32[$1+84>>2]=0;HEAP32[$1+88>>2]=$4;HEAP32[$1+80>>2]=$2;HEAP32[$1+72>>2]=0;HEAP32[$1+76>>2]=0;HEAP32[$1+16>>2]=$4;HEAP32[$1+12>>2]=$2;HEAP16[$0+904>>1]=-1;HEAP8[$0+906|0]=-1;HEAP32[$0+120>>2]=0;HEAP32[$0+112>>2]=1;HEAP32[$0+116>>2]=0;HEAP32[$0+104>>2]=0;HEAP32[$0+108>>2]=0;$5=$7+ -10|0;$4=$3+10|0;$2=HEAP32[$0+44>>2]}label$6:{if($2>>>0>$5>>>0){$2=0;if(HEAP32[$0>>2]){break label$6}HEAP32[$0>>2]=7;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175668;break label$1}$3=$0+12|0;VP8InitBitReader($3,$4,$2);$6=HEAP32[$0+44>>2];if(HEAPU8[$0+40|0]){HEAP8[$0+54|0]=VP8GetValue($3,1);HEAP8[$0+55|0]=VP8GetValue($3,1)}$1=VP8GetValue($3,1);HEAP32[$0+104>>2]=$1;label$14:{if($1){HEAP32[$0+108>>2]=VP8GetValue($3,1);if(VP8GetValue($3,1)){HEAP32[$0+112>>2]=VP8GetValue($3,1);$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,7)}else{$2=0}HEAP8[$1+116|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,7)}else{$2=0}HEAP8[$1+117|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,7)}else{$2=0}HEAP8[$1+118|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,7)}else{$2=0}HEAP8[$1+119|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,6)}else{$2=0}HEAP8[$1+120|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,6)}else{$2=0}HEAP8[$1+121|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,6)}else{$2=0}HEAP8[$1+122|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetSignedValue($3,6)}else{$2=0}HEAP8[$1+123|0]=$2}if(!HEAP32[$0+108>>2]){break label$14}$1=$0;if(VP8GetValue($3,1)){$2=VP8GetValue($3,8)}else{$2=255}HEAP8[$1+904|0]=$2;$1=$0;if(VP8GetValue($3,1)){$2=VP8GetValue($3,8)}else{$2=255}HEAP8[$1+905|0]=$2;$1=$0;$7=!VP8GetValue($3,1);$2=255;label$37:{if($7){break label$37}$2=VP8GetValue($3,8)}HEAP8[$1+906|0]=$2;break label$14}HEAP32[$0+108>>2]=0}if(HEAP32[$0+36>>2]){$2=0;if(HEAP32[$0>>2]){break label$6}HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175689;break label$1}HEAP32[$0+56>>2]=VP8GetValue($3,1);HEAP32[$0+60>>2]=VP8GetValue($3,6);HEAP32[$0- -64>>2]=VP8GetValue($3,3);$1=VP8GetValue($3,1);HEAP32[$0+68>>2]=$1;label$39:{if(!$1){break label$39}if(!VP8GetValue($3,1)){break label$39}if(VP8GetValue($3,1)){HEAP32[$0+72>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+76>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+80>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+84>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+88>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+92>>2]=VP8GetSignedValue($3,6)}if(VP8GetValue($3,1)){HEAP32[$0+96>>2]=VP8GetSignedValue($3,6)}if(!VP8GetValue($3,1)){break label$39}HEAP32[$0+100>>2]=VP8GetSignedValue($3,6)}$1=$0;if(HEAP32[$0+60>>2]){$2=HEAP32[$0+56>>2]?1:2}else{$2=0}HEAP32[$1+2308>>2]=$2;if(HEAP32[$0+36>>2]){$2=0;if(HEAP32[$0>>2]){break label$6}HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175717;break label$1}$1=1<>2]=$1;$8=7;label$49:{$2=$5-$6|0;$7=$1+ -1|0;$1=Math_imul($7,3);if($2>>>0>=$1>>>0){$9=$4+$5|0;$2=$2-$1|0;$4=$4+$6|0;$1=$1+$4|0;if($7){$5=0;while(1){$6=HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|HEAPU8[$4+2|0]<<16;$6=$6>>>0>$2>>>0?$2:$6;VP8InitBitReader((Math_imul($5,28)+$0|0)+316|0,$1,$6);$2=$2-$6|0;$1=$1+$6|0;$4=$4+3|0;$5=$5+1|0;if(($7|0)!=($5|0)){continue}break}}VP8InitBitReader((Math_imul($7,28)+$0|0)+316|0,$1,$2);$8=5;if($1>>>0<$9>>>0){break label$49}}$2=0;if(HEAP32[$0>>2]){break label$6}HEAP32[$0>>2]=$8;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175744;break label$1}VP8ParseQuant($0);if(!HEAPU8[$0+40|0]){$2=0;if(HEAP32[$0>>2]){break label$6}HEAP32[$0>>2]=4;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=175768;break label$1}$2=1;VP8GetValue($3,1);VP8ParseProba($3,$0);HEAP32[$0+4>>2]=1}return $2}return 0}function dmGameSystem__Physics_GetJointProperties_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$2=global$0-112|0;global$0=$2;$6=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($2+96|0,$0,1);$1=dmScript__CheckHashOrString_28lua_State__2c_20int_29($0,2);$4=i64toi32_i32$HIGH_BITS;$5=HEAP32[HEAP32[dmGameSystem__CheckGoInstance_28lua_State__29($0)+80>>2]+8>>2];HEAP32[$2+92>>2]=0;HEAP32[$2+88>>2]=0;HEAP32[$2+56>>2]=0;HEAP32[$2+60>>2]=0;HEAP32[$2+48>>2]=0;HEAP32[$2+52>>2]=0;HEAP32[$2+40>>2]=0;HEAP32[$2+44>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$5,67041,$2+92|0,$2+32|0,$2+88|0);$5=dmGameSystem__GetJointParams_28void__2c_20void__2c_20unsigned_20long_20long_2c_20dmPhysics__JointType__2c_20dmPhysics__ConnectJointParams__29(HEAP32[$2+88>>2],HEAP32[$2+92>>2],$1,$4,$2+84|0,$2+32|0);label$1:{if($5){HEAP32[$2>>2]=dmHashReverseSafe64($1,$4);HEAP32[$2+8>>2]=$5;HEAP32[$2+4>>2]=HEAP32[($5<<2)+528176>>2];$7=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($6,68772,$2);break label$1}lua_createtable($0,0,0);$1=HEAPU8[$2+32|0];$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68100);$1=HEAP32[$2+84>>2];if($1>>>0>3){break label$1}label$3:{label$4:{switch($1-1|0){default:$3=+HEAPF32[$2+36>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68118);$3=+HEAPF32[$2+40>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68125);$3=+HEAPF32[$2+44>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68135);break label$3;case 0:$3=+HEAPF32[$2+36>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68143);break label$3;case 1:$3=+HEAPF32[$2+44>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68154);$3=+HEAPF32[$2+48>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68170);$3=+HEAPF32[$2+52>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68182);$3=+HEAPF32[$2+56>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68194);$3=+HEAPF32[$2+60>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68211);$1=HEAPU8[$2- -64|0];$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68223);$1=HEAPU8[$2+65|0];$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68236);$3=+HEAPF32[$2+36>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68819);$3=+HEAPF32[$2+40>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68831);break label$3;case 2:break label$4}}HEAP32[$2+24>>2]=HEAP32[$2+52>>2];$1=HEAP32[$2+48>>2];HEAP32[$2+16>>2]=HEAP32[$2+44>>2];HEAP32[$2+20>>2]=$1;dmScript__PushVector3_28lua_State__2c_20Vectormath__Aos__Vector3_20const__29($0,$2+16|0);lua_setfield($0,-2,68318);$3=+HEAPF32[$2+56>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68154);$1=HEAPU8[$2+60|0];$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68223);$3=+HEAPF32[$2- -64>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68331);$3=+HEAPF32[$2+68>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68349);$1=HEAPU8[$2+72|0];$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68236);$3=+HEAPF32[$2+76>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68367);$3=+HEAPF32[$2+80>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68211);$3=+HEAPF32[$2+36>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68843);$3=+HEAPF32[$2+40>>2];$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=$3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,68831)}$7=1}dmScript__LuaStackCheck___LuaStackCheck_28_29($6);global$0=$2+112|0;return $7|0}function UpsampleArgbLinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$10=HEAPU8[$5|0];$11=HEAPU8[$4|0];$12=HEAPU8[$3|0];$17=HEAPU8[$2|0];$16=HEAPU8[$0|0];HEAP8[$6|0]=255;$13=$11|$10<<16;$10=$17|$12<<16;$12=($13+Math_imul($10,3)|0)+131074|0;$17=$12>>>2&255;$11=Math_imul($16,19077)>>>8|0;$16=(Math_imul($17,33050)>>>8|0)+$11|0;$9=$16+ -17685|0;HEAP8[$6+3|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$12=$12>>>18&255;$16=$11+(Math_imul($12,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$6+1|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$11=$11-(Math_imul($17,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$6+2|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255;if($1){$11=HEAPU8[$1|0];HEAP8[$7|0]=255;$11=Math_imul($11,19077)>>>8|0;$12=(Math_imul($13,3)+$10|0)+131074|0;$17=$12>>>2&255;$16=$11+(Math_imul($17,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$7+3|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$12=$12>>>18&255;$16=$11+(Math_imul($12,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$7+1|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$11=$11-(Math_imul($17,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$7+2|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255}$16=$8+ -1|0;label$3:{if(($8|0)<3){$11=$13;$12=$10;break label$3}$11=$16>>1;$26=($11|0)>1?$11:1;$17=1;while(1){$24=$17<<1;$19=$24+ -1|0;$14=HEAPU8[$19+$0|0];$12=HEAPU8[$2+$17|0];$18=HEAPU8[$3+$17|0];$11=HEAPU8[$4+$17|0];$23=HEAPU8[$5+$17|0];$25=$19<<2;$9=$25+$6|0;HEAP8[$9|0]=255;$11=$11|$23<<16;$12=$12|$18<<16;$23=$13+$12|0;$18=($11+($23+$10|0)|0)+524296|0;$14=Math_imul($14,19077)>>>8|0;$23=$18+($23<<1)>>>3|0;$20=$23+$10|0;$21=$20>>>1&255;$22=$14+(Math_imul($21,33050)>>>8|0)|0;$15=$22+ -17685|0;HEAP8[$9+3|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<17685?0:255;$20=$20>>>17&255;$22=$14+(Math_imul($20,26149)>>>8|0)|0;$15=$22+ -14234|0;HEAP8[$9+1|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<14234?0:255;$15=$9;$9=$14-(Math_imul($21,6419)>>>8|0)-(Math_imul($20,13320)>>>8)|0;$14=$9+8708|0;HEAP8[$15+2|0]=$14>>>0<16384?$14>>>6|0:($9|0)<-8708?0:255;$14=HEAPU8[$0+$24|0];$20=$17<<3;$9=$20+$6|0;HEAP8[$9|0]=255;$18=$18+($10+$11<<1)>>>3|0;$21=$18+$12|0;$22=$21>>>1&255;$10=Math_imul($14,19077)>>>8|0;$14=(Math_imul($22,33050)>>>8|0)+$10|0;$15=$14+ -17685|0;HEAP8[$9+3|0]=$15>>>0<16384?$15>>>6|0:$14>>>0<17685?0:255;$14=$21>>>17&255;$21=$10+(Math_imul($14,26149)>>>8|0)|0;$15=$21+ -14234|0;HEAP8[$9+1|0]=$15>>>0<16384?$15>>>6|0:$21>>>0<14234?0:255;$15=$9;$10=$10-(Math_imul($22,6419)>>>8|0)-(Math_imul($14,13320)>>>8)|0;$9=$10+8708|0;HEAP8[$15+2|0]=$9>>>0<16384?$9>>>6|0:($10|0)<-8708?0:255;if($1){$9=HEAPU8[$1+$19|0];$10=$7+$25|0;HEAP8[$10|0]=255;$19=$13+$18|0;$18=$19>>>1&255;$13=Math_imul($9,19077)>>>8|0;$9=(Math_imul($18,33050)>>>8|0)+$13|0;$14=$9+ -17685|0;HEAP8[$10+3|0]=$14>>>0<16384?$14>>>6|0:$9>>>0<17685?0:255;$9=$19>>>17&255;$19=$13+(Math_imul($9,26149)>>>8|0)|0;$14=$19+ -14234|0;HEAP8[$10+1|0]=$14>>>0<16384?$14>>>6|0:$19>>>0<14234?0:255;$15=$10;$10=$13-(Math_imul($18,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+2|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255;$13=HEAPU8[$1+$24|0];$10=$7+$20|0;HEAP8[$10|0]=255;$13=Math_imul($13,19077)>>>8|0;$9=$11+$23|0;$24=$9>>>1&255;$19=$13+(Math_imul($24,33050)>>>8|0)|0;$18=$19+ -17685|0;HEAP8[$10+3|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<17685?0:255;$9=$9>>>17&255;$19=$13+(Math_imul($9,26149)>>>8|0)|0;$18=$19+ -14234|0;HEAP8[$10+1|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<14234?0:255;$15=$10;$10=$13-(Math_imul($24,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+2|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255}$9=($17|0)!=($26|0);$17=$17+1|0;$10=$12;$13=$11;if($9){continue}break}}label$7:{if($8&1){break label$7}$2=HEAPU8[$0+$16|0];$3=$16<<2;$0=$3+$6|0;HEAP8[$0|0]=255;$2=Math_imul($2,19077)>>>8|0;$4=(Math_imul($12,3)+$11|0)+131074|0;$5=$4>>>2&255;$6=$2+(Math_imul($5,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$0+3|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:255;$4=$4>>>18&255;$6=$2+(Math_imul($4,26149)>>>8|0)|0;$8=$6+ -14234|0;HEAP8[$0+1|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<14234?0:255;$6=$0;$0=$2-(Math_imul($5,6419)>>>8|0)-(Math_imul($4,13320)>>>8)|0;$2=$0+8708|0;HEAP8[$6+2|0]=$2>>>0<16384?$2>>>6|0:($0|0)<-8708?0:255;if(!$1){break label$7}$1=HEAPU8[$1+$16|0];$0=$3+$7|0;HEAP8[$0|0]=255;$1=Math_imul($1,19077)>>>8|0;$2=(Math_imul($11,3)+$12|0)+131074|0;$3=$2>>>2&255;$4=$1+(Math_imul($3,33050)>>>8|0)|0;$5=$4+ -17685|0;HEAP8[$0+3|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<17685?0:255;$2=$2>>>18&255;$4=$1+(Math_imul($2,26149)>>>8|0)|0;$5=$4+ -14234|0;HEAP8[$0+1|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<14234?0:255;$4=$0;$0=$1-(Math_imul($3,6419)>>>8|0)-(Math_imul($2,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$4+2|0]=$1>>>0<16384?$1>>>6|0:($0|0)<-8708?0:255}return}__assert_fail(182795,182809,100,182920);abort()}function UpsampleRgbaLinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$10=HEAPU8[$5|0];$11=HEAPU8[$4|0];$12=HEAPU8[$3|0];$17=HEAPU8[$2|0];$16=HEAPU8[$0|0];HEAP8[$6+3|0]=255;$13=$11|$10<<16;$10=$17|$12<<16;$12=($13+Math_imul($10,3)|0)+131074|0;$17=$12>>>2&255;$11=Math_imul($16,19077)>>>8|0;$16=(Math_imul($17,33050)>>>8|0)+$11|0;$9=$16+ -17685|0;HEAP8[$6+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$12=$12>>>18&255;$16=$11+(Math_imul($12,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$6|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$11=$11-(Math_imul($17,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$6+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255;if($1){$11=HEAPU8[$1|0];HEAP8[$7+3|0]=255;$11=Math_imul($11,19077)>>>8|0;$12=(Math_imul($13,3)+$10|0)+131074|0;$17=$12>>>2&255;$16=$11+(Math_imul($17,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$7+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$12=$12>>>18&255;$16=$11+(Math_imul($12,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$7|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$11=$11-(Math_imul($17,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$7+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255}$16=$8+ -1|0;label$3:{if(($8|0)<3){$11=$13;$12=$10;break label$3}$11=$16>>1;$26=($11|0)>1?$11:1;$17=1;while(1){$24=$17<<1;$19=$24+ -1|0;$14=HEAPU8[$19+$0|0];$12=HEAPU8[$2+$17|0];$18=HEAPU8[$3+$17|0];$11=HEAPU8[$4+$17|0];$23=HEAPU8[$5+$17|0];$25=$19<<2;$9=$25+$6|0;HEAP8[$9+3|0]=255;$11=$11|$23<<16;$12=$12|$18<<16;$23=$13+$12|0;$18=($11+($23+$10|0)|0)+524296|0;$14=Math_imul($14,19077)>>>8|0;$23=$18+($23<<1)>>>3|0;$20=$23+$10|0;$21=$20>>>1&255;$22=$14+(Math_imul($21,33050)>>>8|0)|0;$15=$22+ -17685|0;HEAP8[$9+2|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<17685?0:255;$20=$20>>>17&255;$22=$14+(Math_imul($20,26149)>>>8|0)|0;$15=$22+ -14234|0;HEAP8[$9|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<14234?0:255;$15=$9;$9=$14-(Math_imul($21,6419)>>>8|0)-(Math_imul($20,13320)>>>8)|0;$14=$9+8708|0;HEAP8[$15+1|0]=$14>>>0<16384?$14>>>6|0:($9|0)<-8708?0:255;$14=HEAPU8[$0+$24|0];$20=$17<<3;$9=$20+$6|0;HEAP8[$9+3|0]=255;$18=$18+($10+$11<<1)>>>3|0;$21=$18+$12|0;$22=$21>>>1&255;$10=Math_imul($14,19077)>>>8|0;$14=(Math_imul($22,33050)>>>8|0)+$10|0;$15=$14+ -17685|0;HEAP8[$9+2|0]=$15>>>0<16384?$15>>>6|0:$14>>>0<17685?0:255;$14=$21>>>17&255;$21=$10+(Math_imul($14,26149)>>>8|0)|0;$15=$21+ -14234|0;HEAP8[$9|0]=$15>>>0<16384?$15>>>6|0:$21>>>0<14234?0:255;$15=$9;$10=$10-(Math_imul($22,6419)>>>8|0)-(Math_imul($14,13320)>>>8)|0;$9=$10+8708|0;HEAP8[$15+1|0]=$9>>>0<16384?$9>>>6|0:($10|0)<-8708?0:255;if($1){$9=HEAPU8[$1+$19|0];$10=$7+$25|0;HEAP8[$10+3|0]=255;$19=$13+$18|0;$18=$19>>>1&255;$13=Math_imul($9,19077)>>>8|0;$9=(Math_imul($18,33050)>>>8|0)+$13|0;$14=$9+ -17685|0;HEAP8[$10+2|0]=$14>>>0<16384?$14>>>6|0:$9>>>0<17685?0:255;$9=$19>>>17&255;$19=$13+(Math_imul($9,26149)>>>8|0)|0;$14=$19+ -14234|0;HEAP8[$10|0]=$14>>>0<16384?$14>>>6|0:$19>>>0<14234?0:255;$15=$10;$10=$13-(Math_imul($18,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255;$13=HEAPU8[$1+$24|0];$10=$7+$20|0;HEAP8[$10+3|0]=255;$13=Math_imul($13,19077)>>>8|0;$9=$11+$23|0;$24=$9>>>1&255;$19=$13+(Math_imul($24,33050)>>>8|0)|0;$18=$19+ -17685|0;HEAP8[$10+2|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<17685?0:255;$9=$9>>>17&255;$19=$13+(Math_imul($9,26149)>>>8|0)|0;$18=$19+ -14234|0;HEAP8[$10|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<14234?0:255;$15=$10;$10=$13-(Math_imul($24,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255}$9=($17|0)!=($26|0);$17=$17+1|0;$10=$12;$13=$11;if($9){continue}break}}label$7:{if($8&1){break label$7}$2=HEAPU8[$0+$16|0];$3=$16<<2;$0=$3+$6|0;HEAP8[$0+3|0]=255;$2=Math_imul($2,19077)>>>8|0;$4=(Math_imul($12,3)+$11|0)+131074|0;$5=$4>>>2&255;$6=$2+(Math_imul($5,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$0+2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:255;$4=$4>>>18&255;$6=$2+(Math_imul($4,26149)>>>8|0)|0;$8=$6+ -14234|0;HEAP8[$0|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<14234?0:255;$6=$0;$0=$2-(Math_imul($5,6419)>>>8|0)-(Math_imul($4,13320)>>>8)|0;$2=$0+8708|0;HEAP8[$6+1|0]=$2>>>0<16384?$2>>>6|0:($0|0)<-8708?0:255;if(!$1){break label$7}$1=HEAPU8[$1+$16|0];$0=$3+$7|0;HEAP8[$0+3|0]=255;$1=Math_imul($1,19077)>>>8|0;$2=(Math_imul($11,3)+$12|0)+131074|0;$3=$2>>>2&255;$4=$1+(Math_imul($3,33050)>>>8|0)|0;$5=$4+ -17685|0;HEAP8[$0+2|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<17685?0:255;$2=$2>>>18&255;$4=$1+(Math_imul($2,26149)>>>8|0)|0;$5=$4+ -14234|0;HEAP8[$0|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<14234?0:255;$4=$0;$0=$1-(Math_imul($3,6419)>>>8|0)-(Math_imul($2,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$4+1|0]=$1>>>0<16384?$1>>>6|0:($0|0)<-8708?0:255}return}__assert_fail(182795,182809,98,182858);abort()}function UpsampleBgraLinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$10=HEAPU8[$5|0];$11=HEAPU8[$4|0];$12=HEAPU8[$3|0];$17=HEAPU8[$2|0];$16=HEAPU8[$0|0];HEAP8[$6+3|0]=255;$13=$11|$10<<16;$10=$17|$12<<16;$12=($13+Math_imul($10,3)|0)+131074|0;$17=$12>>>18&255;$11=Math_imul($16,19077)>>>8|0;$16=(Math_imul($17,26149)>>>8|0)+$11|0;$9=$16+ -14234|0;HEAP8[$6+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$6|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$6+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255;if($1){$11=HEAPU8[$1|0];HEAP8[$7+3|0]=255;$11=Math_imul($11,19077)>>>8|0;$12=(Math_imul($13,3)+$10|0)+131074|0;$17=$12>>>18&255;$16=$11+(Math_imul($17,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$7+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$7|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$7+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255}$16=$8+ -1|0;label$3:{if(($8|0)<3){$11=$13;$12=$10;break label$3}$11=$16>>1;$26=($11|0)>1?$11:1;$17=1;while(1){$24=$17<<1;$19=$24+ -1|0;$14=HEAPU8[$19+$0|0];$12=HEAPU8[$2+$17|0];$18=HEAPU8[$3+$17|0];$11=HEAPU8[$4+$17|0];$23=HEAPU8[$5+$17|0];$25=$19<<2;$9=$25+$6|0;HEAP8[$9+3|0]=255;$11=$11|$23<<16;$12=$12|$18<<16;$23=$13+$12|0;$18=($11+($23+$10|0)|0)+524296|0;$14=Math_imul($14,19077)>>>8|0;$23=$18+($23<<1)>>>3|0;$20=$23+$10|0;$21=$20>>>17&255;$22=$14+(Math_imul($21,26149)>>>8|0)|0;$15=$22+ -14234|0;HEAP8[$9+2|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<14234?0:255;$20=$20>>>1&255;$22=$14+(Math_imul($20,33050)>>>8|0)|0;$15=$22+ -17685|0;HEAP8[$9|0]=$15>>>0<16384?$15>>>6|0:$22>>>0<17685?0:255;$15=$9;$9=$14-(Math_imul($20,6419)>>>8|0)-(Math_imul($21,13320)>>>8)|0;$14=$9+8708|0;HEAP8[$15+1|0]=$14>>>0<16384?$14>>>6|0:($9|0)<-8708?0:255;$14=HEAPU8[$0+$24|0];$20=$17<<3;$9=$20+$6|0;HEAP8[$9+3|0]=255;$18=$18+($10+$11<<1)>>>3|0;$21=$18+$12|0;$22=$21>>>17&255;$10=Math_imul($14,19077)>>>8|0;$14=(Math_imul($22,26149)>>>8|0)+$10|0;$15=$14+ -14234|0;HEAP8[$9+2|0]=$15>>>0<16384?$15>>>6|0:$14>>>0<14234?0:255;$14=$21>>>1&255;$21=$10+(Math_imul($14,33050)>>>8|0)|0;$15=$21+ -17685|0;HEAP8[$9|0]=$15>>>0<16384?$15>>>6|0:$21>>>0<17685?0:255;$15=$9;$10=$10-(Math_imul($14,6419)>>>8|0)-(Math_imul($22,13320)>>>8)|0;$9=$10+8708|0;HEAP8[$15+1|0]=$9>>>0<16384?$9>>>6|0:($10|0)<-8708?0:255;if($1){$9=HEAPU8[$1+$19|0];$10=$7+$25|0;HEAP8[$10+3|0]=255;$19=$13+$18|0;$18=$19>>>17&255;$13=Math_imul($9,19077)>>>8|0;$9=(Math_imul($18,26149)>>>8|0)+$13|0;$14=$9+ -14234|0;HEAP8[$10+2|0]=$14>>>0<16384?$14>>>6|0:$9>>>0<14234?0:255;$9=$19>>>1&255;$19=$13+(Math_imul($9,33050)>>>8|0)|0;$14=$19+ -17685|0;HEAP8[$10|0]=$14>>>0<16384?$14>>>6|0:$19>>>0<17685?0:255;$15=$10;$10=$13-(Math_imul($9,6419)>>>8|0)-(Math_imul($18,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255;$13=HEAPU8[$1+$24|0];$10=$7+$20|0;HEAP8[$10+3|0]=255;$13=Math_imul($13,19077)>>>8|0;$9=$11+$23|0;$24=$9>>>17&255;$19=$13+(Math_imul($24,26149)>>>8|0)|0;$18=$19+ -14234|0;HEAP8[$10+2|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<14234?0:255;$9=$9>>>1&255;$19=$13+(Math_imul($9,33050)>>>8|0)|0;$18=$19+ -17685|0;HEAP8[$10|0]=$18>>>0<16384?$18>>>6|0:$19>>>0<17685?0:255;$15=$10;$10=$13-(Math_imul($9,6419)>>>8|0)-(Math_imul($24,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255}$9=($17|0)!=($26|0);$17=$17+1|0;$10=$12;$13=$11;if($9){continue}break}}label$7:{if($8&1){break label$7}$2=HEAPU8[$0+$16|0];$3=$16<<2;$0=$3+$6|0;HEAP8[$0+3|0]=255;$2=Math_imul($2,19077)>>>8|0;$4=(Math_imul($12,3)+$11|0)+131074|0;$5=$4>>>18&255;$6=$2+(Math_imul($5,26149)>>>8|0)|0;$8=$6+ -14234|0;HEAP8[$0+2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<14234?0:255;$4=$4>>>2&255;$6=$2+(Math_imul($4,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$0|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:255;$6=$0;$0=$2-(Math_imul($4,6419)>>>8|0)-(Math_imul($5,13320)>>>8)|0;$2=$0+8708|0;HEAP8[$6+1|0]=$2>>>0<16384?$2>>>6|0:($0|0)<-8708?0:255;if(!$1){break label$7}$1=HEAPU8[$1+$16|0];$0=$3+$7|0;HEAP8[$0+3|0]=255;$1=Math_imul($1,19077)>>>8|0;$2=(Math_imul($11,3)+$12|0)+131074|0;$3=$2>>>18&255;$4=$1+(Math_imul($3,26149)>>>8|0)|0;$5=$4+ -14234|0;HEAP8[$0+2|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<14234?0:255;$2=$2>>>2&255;$4=$1+(Math_imul($2,33050)>>>8|0)|0;$5=$4+ -17685|0;HEAP8[$0|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<17685?0:255;$4=$0;$0=$1-(Math_imul($2,6419)>>>8|0)-(Math_imul($3,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$4+1|0]=$1>>>0<16384?$1>>>6|0:($0|0)<-8708?0:255}return}__assert_fail(182795,182809,99,182899);abort()}function str_format($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,wasm2js_i32$0=0,wasm2js_i32$1=0,wasm2js_i32$2=0;$1=global$0-1680|0;global$0=$1;$11=1;$5=luaL_checklstring($0,1,$1+1672|0);$2=HEAP32[$1+1672>>2];$3=$1+632|0;HEAP32[$3+4>>2]=0;HEAP32[$3+8>>2]=$0;HEAP32[$3>>2]=$3+12;label$1:{if(($2|0)>=1){$12=$2+$5|0;$13=$1+608|1;$9=$1+1668|0;$7=1;while(1){$2=HEAPU8[$5|0];label$4:{if(($2|0)!=37){$4=HEAP32[$1+632>>2];if($4>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAP32[$1+632>>2];$2=HEAPU8[$5|0]}HEAP32[$1+632>>2]=$4+1;HEAP8[$4|0]=$2;$5=$5+1|0;break label$4}$6=$5+1|0;$2=HEAPU8[$5+1|0];if(($2|0)==37){$4=37;$2=HEAP32[$1+632>>2];if($2>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAPU8[$6|0];$2=HEAP32[$1+632>>2]}HEAP32[$1+632>>2]=$2+1;HEAP8[$2|0]=$4;$5=$5+2|0;break label$4}$3=0;$5=$6;label$9:{if(!$2){break label$9}while(1){if(($2&255)>>>0>63){$3=$2;break label$9}$10=$2&255;$4=$10&31;if(32<=($10&63)>>>0){$10=1<<$4;$4=0}else{$10=(1<<$4)-1&1>>>32-$4;$4=1<<$4}if(!($4&1|$10&75785)){$3=$2;break label$9}$2=HEAPU8[$5+1|0];$4=$5+1|0;$5=$4;if($2){continue}break}$5=$4}$4=$5+1|0;$2=$5;if($2-$6>>>0>=6){luaL_error($0,128758,0);$3=HEAPU8[$5|0]}$5=($3&255)+ -48>>>0<10?$4:$2;$2=HEAPU8[$5|0]+ -48>>>0<10?$5+1|0:$5;$5=HEAPU8[$2|0];if(($5|0)==46){$5=HEAPU8[$2+1|0]+ -48>>>0<10;$3=$5?$2+2|0:$2+1|0;$2=HEAPU8[($5?2:1)+$2|0]+ -48>>>0<10?$3+1|0:$3;$5=HEAPU8[$2|0]}if(($5&255)+ -48>>>0<=9){luaL_error($0,128790,0)}HEAP8[$1+608|0]=37;$5=($2-$6|0)+1|0;HEAP8[strncpy($13,$6,$5)+$5|0]=0;label$18:{label$19:{label$20:{label$21:{$3=HEAP8[$2|0];$6=$3+ -69|0;if($6>>>0>51){break label$21}$7=$7+1|0;$5=$2+1|0;label$22:{switch($6-1|0){case 29:$2=$1;$8=luaL_checknumber($0,$7);label$27:{if(Math_abs($8)<2147483648){$3=~~$8;break label$27}$3=-2147483648}HEAP32[$2+16>>2]=$3;siprintf($1+96|0,$1+608|0,$1+16|0);break label$19;case 30:case 35:$3=strlen($1+608|0)+($1+608|0)|0;$2=$3+ -1|0;$6=HEAPU8[$2|0];HEAP8[$2|0]=108;HEAP8[$2+1|0]=0;HEAP8[$3+1|0]=0;HEAP8[$3|0]=$6;$2=$1;$8=luaL_checknumber($0,$7);label$29:{if(Math_abs($8)<2147483648){$3=~~$8;break label$29}$3=-2147483648}HEAP32[$2+32>>2]=$3;siprintf($1+96|0,$1+608|0,$1+32|0);break label$19;case 18:case 41:case 47:case 50:$3=strlen($1+608|0)+($1+608|0)|0;$2=$3+ -1|0;$6=HEAPU8[$2|0];HEAP8[$2|0]=108;HEAP8[$2+1|0]=0;HEAP8[$3+1|0]=0;HEAP8[$3|0]=$6;$2=$1;$8=luaL_checknumber($0,$7);label$31:{if($8<4294967296&$8>=0){$3=~~$8>>>0;break label$31}$3=0}HEAP32[$2+48>>2]=$3;siprintf($1+96|0,$1+608|0,$1+48|0);break label$19;case 43:$2=luaL_checklstring($0,$7,$1+1676|0);$4=HEAP32[$1+632>>2];if($4>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAP32[$1+632>>2]}HEAP32[$1+632>>2]=$4+1;HEAP8[$4|0]=34;$3=HEAP32[$1+1676>>2];HEAP32[$1+1676>>2]=$3+ -1;if($3){while(1){label$36:{label$37:{label$38:{label$39:{label$40:{$4=HEAP8[$2|0];if($4>>>0>34){if(($4|0)!=92){break label$40}break label$37}switch($4-1|0){case 9:case 33:break label$37;case 12:break label$38;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:break label$40;default:break label$39}}$3=HEAP32[$1+632>>2];if($3>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAPU8[$2|0];$3=HEAP32[$1+632>>2]}HEAP32[$1+632>>2]=$3+1;HEAP8[$3|0]=$4;break label$36}luaL_addlstring($1+632|0,128838,4);break label$36}luaL_addlstring($1+632|0,128835,2);break label$36}$4=HEAP32[$1+632>>2];if($4>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAP32[$1+632>>2]}HEAP32[$1+632>>2]=$4+1;HEAP8[$4|0]=92;$4=HEAP32[$1+632>>2];if($4>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$4=HEAP32[$1+632>>2]}$3=HEAPU8[$2|0];HEAP32[$1+632>>2]=$4+1;HEAP8[$4|0]=$3}$3=HEAP32[$1+1676>>2];HEAP32[$1+1676>>2]=$3+ -1;$2=$2+1|0;if($3){continue}break}}$2=HEAP32[$1+632>>2];if($2>>>0>=$9>>>0){luaL_prepbuffer($1+632|0);$2=HEAP32[$1+632>>2]}HEAP32[$1+632>>2]=$2+1;HEAP8[$2|0]=34;break label$4;case 45:break label$20;case 0:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 34:case 36:case 37:case 38:case 39:case 40:case 42:case 44:case 46:case 48:case 49:break label$21;default:break label$22}}HEAPF64[$1+64>>3]=luaL_checknumber($0,$7);__small_sprintf($1+96|0,$1+608|0,$1- -64|0);break label$19}HEAP32[$1>>2]=$3;$11=luaL_error($0,128724,$1);break label$1}$3=luaL_checklstring($0,$7,$1+1676|0);if(wasm2js_i32$0=!strchr($1+608|0,46),wasm2js_i32$1=0,wasm2js_i32$2=HEAPU32[$1+1676>>2]>99,wasm2js_i32$2?wasm2js_i32$0:wasm2js_i32$1){break label$18}HEAP32[$1+80>>2]=$3;siprintf($1+96|0,$1+608|0,$1+80|0)}luaL_addlstring($1+632|0,$1+96|0,strlen($1+96|0));break label$4}lua_pushvalue($0,$7);luaL_addvalue($1+632|0)}if($5>>>0<$12>>>0){continue}break}}luaL_pushresult($1+632|0)}global$0=$1+1680|0;return $11|0}function dmRig__InstanceCreate_28dmRig__InstanceCreateParams_20const__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$6=global$0-16|0;global$0=$6;$5=HEAP32[$0>>2];$1=HEAP32[$5+8>>2];label$1:{label$2:{label$3:{label$5:{if(($1|0)==HEAP32[$5+4>>2]){$2=2;HEAP32[$6>>2]=$1-HEAP32[$5>>2]>>2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,133044,133084,$6);break label$5}$1=operator_20new_28unsigned_20long_29(232);HEAP32[$1+104>>2]=0;HEAP32[$1+108>>2]=0;HEAP8[$1+60|0]=4;HEAP32[$1+56>>2]=1;HEAP32[$1+48>>2]=0;HEAP32[$1+40>>2]=0;HEAP32[$1+44>>2]=0;HEAP32[$1+32>>2]=0;HEAP8[$1+28|0]=4;HEAP32[$1+24>>2]=1;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+132>>2]=0;HEAP32[$1+136>>2]=0;HEAP32[$1+112>>2]=0;HEAP32[$1+116>>2]=0;HEAP32[$1+140>>2]=0;HEAP32[$1+144>>2]=0;HEAP32[$1+148>>2]=0;HEAP32[$1+152>>2]=0;HEAP32[$1+156>>2]=0;HEAP32[$1+160>>2]=0;HEAP32[$1+164>>2]=0;HEAP32[$1+168>>2]=0;HEAP32[$1+172>>2]=0;HEAP32[$1+176>>2]=0;HEAP32[$1+180>>2]=0;HEAP32[$1+184>>2]=0;HEAP32[$1+188>>2]=0;HEAP32[$1+192>>2]=0;HEAP32[HEAP32[$0+4>>2]>>2]=$1;$1=HEAP32[HEAP32[$0+4>>2]>>2];$2=dmObjectPool_dmRig__RigInstance____Alloc_28_29($5);$1=memset($1,0,232);HEAP32[$1+64>>2]=$2;$3=HEAP32[$5+16>>2];if(HEAP32[$5+20>>2]-$3>>3>>>0<=$2>>>0){break label$3}$4=HEAP32[$5>>2];$2=HEAP32[$3+($2<<3)>>2];if(HEAP32[$5+4>>2]-$4>>2>>>0<=$2>>>0){break label$3}HEAP32[$4+($2<<2)>>2]=$1;$2=HEAP32[$0+20>>2];HEAP32[$1+200>>2]=HEAP32[$0+16>>2];HEAP32[$1+204>>2]=$2;HEAP32[$1+92>>2]=HEAP32[$0+56>>2];HEAP32[$1+96>>2]=HEAP32[$0+60>>2];HEAP32[$1+100>>2]=HEAP32[$0+64>>2];HEAP32[$1+120>>2]=HEAP32[$0+68>>2];HEAP32[$1+124>>2]=HEAP32[$0+72>>2];HEAP32[$1+128>>2]=HEAP32[$0+76>>2];HEAP32[$1+68>>2]=HEAP32[$0+32>>2];HEAP32[$1+72>>2]=HEAP32[$0+36>>2];HEAP32[$1+76>>2]=HEAP32[$0+40>>2];HEAP32[$1+80>>2]=HEAP32[$0+44>>2];HEAP32[$1+84>>2]=HEAP32[$0+48>>2];HEAP32[$1+88>>2]=HEAP32[$0+52>>2];HEAP8[$1+224|0]=HEAPU8[$1+224|0]|4;if(HEAP8[$1+192|0]&1){break label$2}$2=HEAP32[$0+40>>2];dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$2+28>>2],24,$1+180|0,$1+188|0,$1+184|0);$4=HEAP32[$1+180>>2];$3=HEAP32[$2+28>>2];if((HEAP32[$1+188>>2]-$4|0)/24>>>0<$3>>>0){break label$1}HEAP32[$1+184>>2]=$4+Math_imul($3,24);if(HEAP8[$1+116|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($3,4,$1+104|0,$1+112|0,$1+108|0);$3=HEAP32[$1+104>>2];$2=HEAP32[$2+28>>2];if(HEAP32[$1+112>>2]-$3>>2>>>0<$2>>>0){break label$1}HEAP32[$1+108>>2]=$3+($2<<2);dmRig__SetMesh_28dmRig__RigInstance__2c_20unsigned_20long_20long_29($1,HEAP32[$1+200>>2],HEAP32[$1+204>>2]);$2=HEAP32[HEAP32[$1+76>>2]+24>>2];$4=HEAP32[$1+72>>2];label$7:{if(!$4){HEAP32[$1+220>>2]=$2;break label$7}$3=HEAP32[$4+4>>2];HEAP32[$1+220>>2]=$2>>>0>$3>>>0?$2:$3;if(HEAP8[$1+144|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($3,48,$1+132|0,$1+140|0,$1+136|0);$7=HEAP32[$1+132>>2];if((HEAP32[$1+140>>2]-$7|0)/48>>>0<$3>>>0){break label$1}$2=Math_imul($3,48)+$7|0;HEAP32[$1+136>>2]=$2;if($3){$9=($2-$7|0)/48|0;while(1){if(($8|0)==($9|0)){break label$3}$2=Math_imul($8,48)+$7|0;HEAP32[$2+32>>2]=1065353216;HEAP32[$2+36>>2]=1065353216;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=1065353216;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+40>>2]=1065353216;HEAP32[$2+24>>2]=0;$8=$8+1|0;if(($3|0)!=($8|0)){continue}break}}if(HEAP8[$1+176|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$4+12>>2],48,$1+164|0,$1+172|0,$1+168|0);$2=HEAP32[$1+164>>2];$3=HEAP32[$4+12>>2];if((HEAP32[$1+172>>2]-$2|0)/48>>>0<$3>>>0){break label$1}$3=Math_imul($3,48);HEAP32[$1+168>>2]=$3+$2;memset($2,0,$3);if(HEAP8[$1+160|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$4+12>>2],8,$1+148|0,$1+156|0,$1+152|0);$2=HEAP32[$1+148>>2];$3=HEAP32[$4+12>>2];if(HEAP32[$1+156>>2]-$2>>3>>>0<$3>>>0){break label$1}HEAP32[$1+152>>2]=$2+($3<<3)}$2=HEAP32[$0+24>>2];$3=HEAP32[$0+28>>2];if(($2|0)!=HEAP32[280290]|($3|0)!=HEAP32[280291]){dmRig__PlayAnimation_28dmRig__RigInstance__2c_20unsigned_20long_20long_2c_20dmRig__RigPlayback_2c_20float_2c_20float_2c_20float_29($1,$2,$3,4,Math_fround(0),Math_fround(0),Math_fround(1))}$2=0;if(!HEAPU8[$0+80|0]){break label$5}dmRig__DoAnimate_28dmRig__RigContext__2c_20dmRig__RigInstance__2c_20float_29($5,$1,Math_fround(0))}global$0=$6+16|0;return $2}__assert_fail(133208,133219,430,133189);abort()}__assert_fail(133290,133219,444,133365);abort()}__assert_fail(133377,133219,457,133396);abort()}function btIDebugDraw__drawSphere_28float_2c_20btTransform_20const__2c_20btVector3_20const__29($0,$1,$2,$3){var $4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0);$4=global$0-32|0;global$0=$4;$17=HEAPF32[$2+52>>2];$25=HEAPF32[$2+24>>2];$10=HEAPF32[$2+20>>2];$18=HEAPF32[$2+56>>2];$26=HEAPF32[$2+40>>2];$7=HEAPF32[$2+36>>2];$11=HEAPF32[$2+16>>2];$8=HEAPF32[$2+32>>2];$19=HEAPF32[$2+48>>2];$27=HEAPF32[$2+8>>2];$9=HEAPF32[$2>>2];$12=HEAPF32[$2+4>>2];HEAP32[$4+28>>2]=0;$28=Math_fround($12*Math_fround(0));$13=Math_fround($27*Math_fround(0));$14=Math_fround(Math_fround(Math_fround($9*$1)+$28)+$13);$20=Math_fround($19-$14);HEAPF32[$4+16>>2]=$20;$29=Math_fround($7*Math_fround(0));$5=Math_fround($26*Math_fround(0));$15=Math_fround(Math_fround(Math_fround($8*$1)+$29)+$5);$21=Math_fround($18-$15);HEAPF32[$4+24>>2]=$21;$30=Math_fround($10*Math_fround(0));$6=Math_fround($25*Math_fround(0));$16=Math_fround(Math_fround(Math_fround($11*$1)+$30)+$6);$22=Math_fround($17-$16);HEAPF32[$4+20>>2]=$22;HEAP32[$4+12>>2]=0;$31=Math_fround($8*Math_fround(0));$7=Math_fround(Math_fround($31+Math_fround($7*$1))+$5);$23=Math_fround($18+$7);HEAPF32[$4+8>>2]=$23;$8=Math_fround($11*Math_fround(0));$5=Math_fround(Math_fround($8+Math_fround($10*$1))+$6);$24=Math_fround($17+$5);HEAPF32[$4+4>>2]=$24;$9=Math_fround($9*Math_fround(0));$6=Math_fround(Math_fround($9+Math_fround($12*$1))+$13);$10=Math_fround($19+$6);HEAPF32[$4>>2]=$10;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$23;HEAPF32[$4+20>>2]=$24;HEAPF32[$4+16>>2]=$10;HEAP32[$4+12>>2]=0;$11=Math_fround($18+$15);HEAPF32[$4+8>>2]=$11;$12=Math_fround($17+$16);HEAPF32[$4+4>>2]=$12;$13=Math_fround($19+$14);HEAPF32[$4>>2]=$13;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$11;HEAPF32[$4+20>>2]=$12;HEAPF32[$4+16>>2]=$13;HEAP32[$4+12>>2]=0;$14=Math_fround($18-$7);HEAPF32[$4+8>>2]=$14;$15=Math_fround($17-$5);HEAPF32[$4+4>>2]=$15;$16=Math_fround($19-$6);HEAPF32[$4>>2]=$16;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$14;HEAPF32[$4+20>>2]=$15;HEAPF32[$4+16>>2]=$16;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$21;HEAPF32[$4+4>>2]=$22;HEAPF32[$4>>2]=$20;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$21;HEAPF32[$4+20>>2]=$22;HEAPF32[$4+16>>2]=$20;HEAP32[$4+12>>2]=0;$5=Math_fround(Math_fround($31+$29)+Math_fround($26*$1));$7=Math_fround($18+$5);HEAPF32[$4+8>>2]=$7;$6=Math_fround(Math_fround($8+$30)+Math_fround($25*$1));$8=Math_fround($17+$6);HEAPF32[$4+4>>2]=$8;$1=Math_fround(Math_fround($9+$28)+Math_fround($27*$1));$9=Math_fround($19+$1);HEAPF32[$4>>2]=$9;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$7;HEAPF32[$4+20>>2]=$8;HEAPF32[$4+16>>2]=$9;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$11;HEAPF32[$4+4>>2]=$12;HEAPF32[$4>>2]=$13;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$11;HEAPF32[$4+20>>2]=$12;HEAPF32[$4+16>>2]=$13;HEAP32[$4+12>>2]=0;$5=Math_fround($18-$5);HEAPF32[$4+8>>2]=$5;$6=Math_fround($17-$6);HEAPF32[$4+4>>2]=$6;$1=Math_fround($19-$1);HEAPF32[$4>>2]=$1;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$5;HEAPF32[$4+20>>2]=$6;HEAPF32[$4+16>>2]=$1;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$21;HEAPF32[$4+4>>2]=$22;HEAPF32[$4>>2]=$20;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$14;HEAPF32[$4+20>>2]=$15;HEAPF32[$4+16>>2]=$16;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$7;HEAPF32[$4+4>>2]=$8;HEAPF32[$4>>2]=$9;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$7;HEAPF32[$4+20>>2]=$8;HEAPF32[$4+16>>2]=$9;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$23;HEAPF32[$4+4>>2]=$24;HEAPF32[$4>>2]=$10;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$23;HEAPF32[$4+20>>2]=$24;HEAPF32[$4+16>>2]=$10;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$5;HEAPF32[$4+4>>2]=$6;HEAPF32[$4>>2]=$1;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+28>>2]=0;HEAPF32[$4+24>>2]=$5;HEAPF32[$4+20>>2]=$6;HEAPF32[$4+16>>2]=$1;HEAP32[$4+12>>2]=0;HEAPF32[$4+8>>2]=$14;HEAPF32[$4+4>>2]=$15;HEAPF32[$4>>2]=$16;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);global$0=$4+32|0}function b2WeldJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=0,$7=0,$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0);$7=global$0-48|0;global$0=$7;$2=HEAP32[$0+48>>2];$16=HEAP32[$2+8>>2];HEAP32[$0+116>>2]=$16;$9=HEAP32[$0+52>>2];$17=HEAP32[$9+8>>2];HEAP32[$0+120>>2]=$17;$12=HEAPF32[$2+32>>2];$6=HEAP32[$2+32>>2];$3=HEAPF32[$2+28>>2];HEAP32[$0+140>>2]=HEAP32[$2+28>>2];HEAP32[$0+144>>2]=$6;$18=HEAPF32[$9+32>>2];$13=HEAP32[$9+32>>2];$11=HEAPF32[$9+28>>2];HEAP32[$0+148>>2]=HEAP32[$9+28>>2];HEAP32[$0+152>>2]=$13;$19=HEAPF32[$2+120>>2];HEAP32[$0+156>>2]=HEAP32[$2+120>>2];$20=HEAPF32[$9+120>>2];HEAP32[$0+160>>2]=HEAP32[$9+120>>2];$14=HEAPF32[$2+128>>2];HEAP32[$0+164>>2]=HEAP32[$2+128>>2];$15=HEAPF32[$9+128>>2];HEAP32[$0+168>>2]=HEAP32[$9+128>>2];$8=HEAPF32[$0+84>>2];$6=HEAP32[$1+24>>2];$2=Math_imul($16,12);$21=HEAPF32[($6+$2|0)+8>>2];$4=sinf($21);$10=HEAPF32[$0+80>>2];$5=cosf($21);$13=HEAP32[$1+28>>2];$2=$13+$2|0;$26=HEAPF32[$2>>2];$9=HEAP32[$2>>2];$27=HEAPF32[$2+4>>2];$16=HEAP32[$2+4>>2];$22=HEAPF32[$2+8>>2];$25=Math_imul($17,12);$2=$13+$25|0;$28=HEAPF32[$2>>2];$17=HEAP32[$2>>2];$29=HEAPF32[$2+4>>2];$13=HEAP32[$2+4>>2];$23=HEAPF32[$2+8>>2];$24=HEAPF32[($6+$25|0)+8>>2];$10=Math_fround($10-$3);$8=Math_fround($8-$12);$3=Math_fround(Math_fround($5*$10)-Math_fround($4*$8));HEAPF32[$0+124>>2]=$3;$8=Math_fround(Math_fround($4*$10)+Math_fround($5*$8));HEAPF32[$0+128>>2]=$8;$4=HEAPF32[$0+92>>2];$5=sinf($24);$12=HEAPF32[$0+88>>2];$10=cosf($24);$11=Math_fround($12-$11);$12=Math_fround($4-$18);$4=Math_fround(Math_fround($10*$11)-Math_fround($5*$12));HEAPF32[$0+132>>2]=$4;$5=Math_fround(Math_fround($5*$11)+Math_fround($10*$12));HEAPF32[$0+136>>2]=$5;$11=Math_fround(Math_fround($3*$14)+Math_fround($4*$15));HEAPF32[$7+36>>2]=$11;$10=Math_fround($14+$15);HEAPF32[$7+40>>2]=$10;HEAPF32[$7+28>>2]=$11;$11=Math_fround($19+$20);HEAPF32[$7+24>>2]=Math_fround($11+Math_fround(Math_fround($3*$3)*$14))+Math_fround(Math_fround($4*$4)*$15);$12=Math_fround(-$8);$18=Math_fround(Math_fround($14*$12)-Math_fround($5*$15));HEAPF32[$7+32>>2]=$18;HEAPF32[$7+16>>2]=$18;$3=Math_fround(Math_fround(Math_fround($3*$12)*$14)-Math_fround(Math_fround($5*$4)*$15));HEAPF32[$7+20>>2]=$3;HEAPF32[$7+8>>2]=Math_fround($11+Math_fround(Math_fround($8*$8)*$14))+Math_fround(Math_fround($5*$5)*$15);HEAPF32[$7+12>>2]=$3;$6=$0+172|0;$3=Math_fround(0);$2=$0;label$1:{if(!!(HEAPF32[$0+68>>2]>Math_fround(0))){b2Mat33__GetInverse22_28b2Mat33__29_20const($7+8|0,$6);$3=Math_fround(HEAPF32[$0+68>>2]*Math_fround(6.2831854820251465));$4=$10>Math_fround(0)?Math_fround(Math_fround(1)/$10):Math_fround(0);$5=Math_fround($3*Math_fround($4*$3));$8=HEAPF32[$1>>2];$3=Math_fround($8*Math_fround(Math_fround($3*Math_fround(Math_fround($4+$4)*HEAPF32[$0+72>>2]))+Math_fround($8*$5)));$3=$3!=Math_fround(0)?Math_fround(Math_fround(1)/$3):Math_fround(0);$4=Math_fround($10+$3);HEAPF32[$0+204>>2]=$4!=Math_fround(0)?Math_fround(Math_fround(1)/$4):Math_fround(0);$4=Math_fround(Math_fround(Math_fround($8*Math_fround(Math_fround($24-$21)-HEAPF32[$0+96>>2]))*$5)*$3);break label$1}b2Mat33__GetSymInverse33_28b2Mat33__29_20const($7+8|0,$6);$4=Math_fround(0)}HEAPF32[$2+76>>2]=$4;HEAPF32[$0+100>>2]=$3;label$3:{if(HEAPU8[$1+20|0]){$5=HEAPF32[$1+8>>2];$3=Math_fround($5*HEAPF32[$0+104>>2]);HEAPF32[$0+104>>2]=$3;$4=Math_fround($5*HEAPF32[$0+108>>2]);HEAPF32[$0+108>>2]=$4;$5=Math_fround($5*HEAPF32[$0+112>>2]);HEAPF32[$0+112>>2]=$5;$23=Math_fround($23+Math_fround(Math_fround($5+Math_fround(Math_fround($4*HEAPF32[$0+132>>2])-Math_fround($3*HEAPF32[$0+136>>2])))*$15));$22=Math_fround($22-Math_fround(Math_fround($5+Math_fround(Math_fround($4*HEAPF32[$0+124>>2])-Math_fround($3*HEAPF32[$0+128>>2])))*$14));$17=(wasm2js_scratch_store_f32(Math_fround(Math_fround($3*$20)+$28)),wasm2js_scratch_load_i32(0));$9=(wasm2js_scratch_store_f32(Math_fround($26-Math_fround($3*$19))),wasm2js_scratch_load_i32(0));$13=(wasm2js_scratch_store_f32(Math_fround(Math_fround($4*$20)+$29)),wasm2js_scratch_load_i32(0));$16=(wasm2js_scratch_store_f32(Math_fround($27-Math_fround($4*$19))),wasm2js_scratch_load_i32(0));break label$3}HEAP32[$0+104>>2]=0;HEAP32[$0+108>>2]=0;HEAP32[$0+112>>2]=0}$6=HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+116>>2],12)|0;HEAP32[$6+4>>2]=$16;HEAP32[$6>>2]=$9;$6=HEAP32[$1+28>>2];HEAPF32[($6+Math_imul(HEAP32[$0+116>>2],12)|0)+8>>2]=$22;$6=$6+Math_imul(HEAP32[$0+120>>2],12)|0;HEAP32[$6+4>>2]=$13;HEAP32[$6>>2]=$17;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+120>>2],12)|0)+8>>2]=$23;global$0=$7+48|0}function inflate_table($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=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;$7=global$0+ -64|0;HEAP32[$7+48>>2]=0;HEAP32[$7+52>>2]=0;HEAP32[$7+56>>2]=0;HEAP32[$7+60>>2]=0;HEAP32[$7+32>>2]=0;HEAP32[$7+36>>2]=0;HEAP32[$7+40>>2]=0;HEAP32[$7+44>>2]=0;label$1:{label$2:{label$3:{label$4:{label$5:{if($2){while(1){$9=($7+32|0)+(HEAPU16[($10<<1)+$1>>1]<<1)|0;HEAP16[$9>>1]=HEAPU16[$9>>1]+1;$10=$10+1|0;if(($10|0)!=($2|0)){continue}break}$10=HEAP32[$4>>2];$11=15;$6=HEAPU16[$7+62>>1];if($6){break label$4}break label$5}$10=HEAP32[$4>>2]}$11=14;$6=0;if(HEAPU16[$7+60>>1]){break label$4}$11=13;if(HEAPU16[$7+58>>1]){break label$4}$11=12;if(HEAPU16[$7+56>>1]){break label$4}$11=11;if(HEAPU16[$7+54>>1]){break label$4}$11=10;if(HEAPU16[$7+52>>1]){break label$4}$11=9;if(HEAPU16[$7+50>>1]){break label$4}$11=8;if(HEAPU16[$7+48>>1]){break label$4}$11=7;if(HEAPU16[$7+46>>1]){break label$4}$11=6;if(HEAPU16[$7+44>>1]){break label$4}$11=5;if(HEAPU16[$7+42>>1]){break label$4}$11=4;if(HEAPU16[$7+40>>1]){break label$4}$11=3;if(HEAPU16[$7+38>>1]){break label$4}$11=2;if(HEAPU16[$7+36>>1]){break label$4}if(!HEAPU16[$7+34>>1]){$0=HEAP32[$3>>2];HEAP32[$3>>2]=$0+4;HEAP16[$0>>1]=320;HEAP16[$0+2>>1]=0;$0=HEAP32[$3>>2];HEAP32[$3>>2]=$0+4;HEAP16[$0>>1]=320;HEAP16[$0+2>>1]=0;HEAP32[$4>>2]=1;break label$2}$12=($10|0)!=0;$11=1;$10=1;break label$3}$12=$10>>>0>$11>>>0?$11:$10;$10=1;while(1){if(HEAPU16[($7+32|0)+($10<<1)>>1]){break label$3}$10=$10+1|0;if(($11|0)!=($10|0)){continue}break}$10=$11}$9=-1;$14=HEAPU16[$7+34>>1];if($14>>>0>2){break label$1}$15=HEAPU16[$7+36>>1];$8=4-($15+($14<<1)|0)|0;if(($8|0)<0){break label$1}$16=HEAPU16[$7+38>>1];$8=($8<<1)-$16|0;if(($8|0)<0){break label$1}$17=HEAPU16[$7+40>>1];$8=($8<<1)-$17|0;if(($8|0)<0){break label$1}$19=HEAPU16[$7+42>>1];$8=($8<<1)-$19|0;if(($8|0)<0){break label$1}$20=HEAPU16[$7+44>>1];$8=($8<<1)-$20|0;if(($8|0)<0){break label$1}$23=HEAPU16[$7+46>>1];$8=($8<<1)-$23|0;if(($8|0)<0){break label$1}$24=HEAPU16[$7+48>>1];$8=($8<<1)-$24|0;if(($8|0)<0){break label$1}$21=HEAPU16[$7+50>>1];$8=($8<<1)-$21|0;if(($8|0)<0){break label$1}$26=HEAPU16[$7+52>>1];$8=($8<<1)-$26|0;if(($8|0)<0){break label$1}$27=HEAPU16[$7+54>>1];$8=($8<<1)-$27|0;if(($8|0)<0){break label$1}$13=HEAPU16[$7+56>>1];$8=($8<<1)-$13|0;if(($8|0)<0){break label$1}$22=HEAPU16[$7+58>>1];$8=($8<<1)-$22|0;if(($8|0)<0){break label$1}$25=HEAPU16[$7+60>>1];$8=($8<<1)-$25|0;if(($8|0)<0){break label$1}$6=($8<<1)-$6|0;if(($6|0)<0|(!$0|($11|0)!=1?$6:0)){break label$1}$9=0;HEAP16[$7+2>>1]=0;HEAP16[$7+4>>1]=$14;$6=$14+$15|0;HEAP16[$7+6>>1]=$6;$6=$6+$16|0;HEAP16[$7+8>>1]=$6;$6=$6+$17|0;HEAP16[$7+10>>1]=$6;$6=$6+$19|0;HEAP16[$7+12>>1]=$6;$6=$6+$20|0;HEAP16[$7+14>>1]=$6;$6=$6+$23|0;HEAP16[$7+16>>1]=$6;$6=$6+$24|0;HEAP16[$7+18>>1]=$6;$6=$6+$21|0;HEAP16[$7+20>>1]=$6;$6=$6+$26|0;HEAP16[$7+22>>1]=$6;$6=$6+$27|0;HEAP16[$7+24>>1]=$6;$6=$6+$13|0;HEAP16[$7+26>>1]=$6;$6=$6+$22|0;HEAP16[$7+28>>1]=$6;HEAP16[$7+30>>1]=$6+$25;if($2){while(1){$6=HEAPU16[($9<<1)+$1>>1];if($6){$6=($6<<1)+$7|0;$8=HEAPU16[$6>>1];HEAP16[$6>>1]=$8+1;HEAP16[($8<<1)+$5>>1]=$9}$9=$9+1|0;if(($9|0)!=($2|0)){continue}break}}$13=$12>>>0<$10>>>0?$10:$12;$9=1;$23=0;label$14:{if($0>>>0<=1){$14=19;$24=0;$22=$5;$19=$5;if($0-1){break label$14}if($13>>>0>9){break label$1}$19=195102;$22=195038;$14=256;$23=1;break label$14}$19=195744;$22=195680;$24=($0|0)==2;$14=-1;if(($0|0)!=2){break label$14}if($13>>>0>9){break label$1}}$15=1<<$13;$26=$15+ -1|0;$16=HEAP32[$3>>2];$17=0;$6=$13;$12=0;$0=-1;while(1){$25=1<<$6;label$17:{while(1){$20=$10-$18|0;$6=HEAPU16[($17<<1)+$5>>1];$9=0;label$19:{if(($14|0)>($6|0)){break label$19}if(($14|0)>=($6|0)){$6=0;$9=96;break label$19}$2=$6<<1;$6=HEAPU16[$2+$22>>1];$9=HEAPU8[$2+$19|0]}$27=$12>>>$18|0;$8=-1<<$20;$2=$25;while(1){$2=$2+$8|0;$21=($27+$2<<2)+$16|0;HEAP16[$21+2>>1]=$6;HEAP8[$21+1|0]=$20;HEAP8[$21|0]=$9;if($2){continue}break}$9=1<<$10+ -1;while(1){$2=$9;$9=$2>>>1|0;if($2&$12){continue}break}$9=($7+32|0)+($10<<1)|0;$6=HEAPU16[$9>>1]+ -1|0;HEAP16[$9>>1]=$6;$12=$2?$2+($2+ -1&$12)|0:0;$17=$17+1|0;if(!($6&65535)){if(($10|0)==($11|0)){break label$17}$10=HEAPU16[(HEAPU16[($17<<1)+$5>>1]<<1)+$1>>1]}if($10>>>0<=$13>>>0){continue}$2=$12&$26;if(($2|0)==($0|0)){continue}break}$18=$18?$18:$13;$6=$10-$18|0;$0=1<<$6;if($10>>>0<$11>>>0){$8=$11-$18|0;$9=$10;label$25:{while(1){$0=$0-HEAPU16[($7+32|0)+($9<<1)>>1]|0;if(($0|0)<1){break label$25}$0=$0<<1;$6=$6+1|0;$9=$18+$6|0;if($9>>>0<$11>>>0){continue}break}$6=$8}$0=1<<$6}$9=1;$15=$0+$15|0;if($15>>>0>852&$23|$15>>>0>592&$24){break label$1}$0=HEAP32[$3>>2];$9=$0+($2<<2)|0;HEAP8[$9+1|0]=$13;HEAP8[$9|0]=$6;$16=($25<<2)+$16|0;HEAP16[$9+2>>1]=$16-$0>>>2;$0=$2;continue}break}if($12){$0=($12<<2)+$16|0;HEAP16[$0+2>>1]=0;HEAP8[$0+1|0]=$20;HEAP8[$0|0]=64}HEAP32[$3>>2]=HEAP32[$3>>2]+($15<<2);HEAP32[$4>>2]=$13}$9=0}return $9}function dmWebsocket__WebsocketOnUpdate_28dmExtension__Params__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$2=global$0-2304|0;global$0=$2;$0=HEAP32[145211];$1=HEAP32[145212]-$0|0;label$1:{if(!$1){break label$1}$7=$1>>2;label$2:{label$3:{while(1){$1=$5<<2;$0=HEAP32[$1+$0>>2];$3=HEAP32[$0+2220>>2];label$5:{if($3>>>0>4){break label$5}label$6:{switch($3-1|0){case 3:if(HEAP32[$0+2240>>2]){dmWebsocket__HandleCallback_28dmWebsocket__WebsocketConnection__2c_20int_29($0,3)}dmWebsocket__HandleCallback_28dmWebsocket__WebsocketConnection__2c_20int_29($0,1);$3=HEAP32[145212];$4=HEAP32[145211];if($3-$4>>2>>>0<=$5>>>0){break label$3}HEAP32[$1+$4>>2]=HEAP32[$3+ -4>>2];$1=HEAP32[145212]+ -4|0;HEAP32[145212]=$1;if($1>>>0>2];if($1){dmScript__DestroyCallback_28dmScript__LuaCallbackInfo__29($1)}$1=HEAP32[$0+2196>>2];if(($1|0)!=-1){dmSocket__Delete_28int_29($1)}$7=$7+ -1|0;$5=$5+ -1|0;dlfree(HEAP32[$0+2228>>2]);dlfree($0);break label$5;case 2:HEAP32[$2+176>>2]=0;label$14:{$1=dmWebsocket__Receive_28dmWebsocket__WebsocketConnection__2c_20void__2c_20int_2c_20int__29($0,HEAP32[$0+2228>>2],HEAP32[$0+2236>>2]+ -1|0,$2+176|0);$3=$1+3|0;if($3>>>0>3){break label$14}label$15:{switch($3-1|0){case 0:case 1:break label$14;case 2:break label$15;default:break label$5}}HEAP32[$0+2232>>2]=HEAP32[$0+2232>>2]+HEAP32[$2+176>>2];HEAP8[(HEAP32[$0+2236>>2]+HEAP32[$0+2228>>2]|0)+ -1|0]=0;HEAP8[$0+2224|0]=HEAPU8[$0+2224|0]|2;dmWebsocket__HandleCallback_28dmWebsocket__WebsocketConnection__2c_20int_29($0,2);HEAP32[$0+2232>>2]=0;HEAP8[$0+2224|0]=HEAPU8[$0+2224|0]&253;break label$5}HEAP32[$2>>2]=dmSocket__ResultToString_28dmSocket__Result_29($1);dmWebsocket__SetStatus_28dmWebsocket__WebsocketConnection__2c_20dmWebsocket__Result_2c_20char_20const__2c_20____29($0,1,1868,$2);if(HEAP32[$0+2220>>2]==4){break label$5}HEAP32[$0+2220>>2]=4;break label$5;case 1:dmSocket__SetBlocking_28int_2c_20bool_29(HEAP32[$0+2196>>2],0);HEAP8[HEAP32[$0+2228>>2]]=0;HEAP32[$0+2232>>2]=0;if(HEAP32[$0+2220>>2]!=3){HEAP32[$0+2220>>2]=3}dmWebsocket__HandleCallback_28dmWebsocket__WebsocketConnection__2c_20int_29($0,0);break label$5;case 0:label$17:{label$18:{$1=dmWebsocket__SendClientHandshake_28dmWebsocket__WebsocketConnection__29($0);if($1>>>0>5){break label$18}switch($1-1|0){case 0:case 1:case 2:case 3:break label$18;case 4:break label$5;default:break label$17}}HEAP32[$2+48>>2]=$1;dmWebsocket__SetStatus_28dmWebsocket__WebsocketConnection__2c_20dmWebsocket__Result_2c_20char_20const__2c_20____29($0,1,1984,$2+48|0);if(HEAP32[$0+2220>>2]==4){break label$5}HEAP32[$0+2220>>2]=4;break label$5}if(HEAP32[$0+2220>>2]==2){break label$5}HEAP32[$0+2220>>2]=2;break label$5;default:break label$6}}HEAP32[$0+2200>>2]=0;$3=$0+76|0;$4=$3;$1=$0+144|0;if(HEAPU8[$1|0]){HEAP32[$2+148>>2]=$1;HEAP32[$2+144>>2]=$3;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($2+176|0,2124,2013,$2+144|0);$4=$2+176|0}$1=$2+152|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$6=dmSocket__GetHostByName_28char_20const__2c_20dmSocket__Address__2c_20bool_2c_20bool_29($4,$1,1,0);if($6){HEAP32[$2+132>>2]=dmSocket__ResultToString_28dmSocket__Result_29($6);HEAP32[$2+128>>2]=$4;dmWebsocket__SetStatus_28dmWebsocket__WebsocketConnection__2c_20dmWebsocket__Result_2c_20char_20const__2c_20____29($0,1,2019,$2+128|0);if(HEAP32[$0+2220>>2]==4){break label$5}HEAP32[$0+2220>>2]=4;break label$5}$4=dmSocket__New_28dmSocket__Domain_2c_20dmSocket__Type_2c_20dmSocket__Protocol_2c_20int__29(HEAP32[$2+152>>2],0,0,$0+2196|0);if($4){HEAP32[$2+116>>2]=dmSocket__ResultToString_28dmSocket__Result_29($4);HEAP32[$2+112>>2]=$3;dmWebsocket__SetStatus_28dmWebsocket__WebsocketConnection__2c_20dmWebsocket__Result_2c_20char_20const__2c_20____29($0,1,2065,$2+112|0);if(HEAP32[$0+2220>>2]==4){break label$5}HEAP32[$0+2220>>2]=4;break label$5}$4=HEAP32[$0+140>>2];$6=HEAP32[$0+2196>>2];HEAP32[$2+104>>2]=HEAP32[$1+16>>2];$8=HEAP32[$1+12>>2];HEAP32[$2+96>>2]=HEAP32[$1+8>>2];HEAP32[$2+100>>2]=$8;$8=HEAP32[$1+4>>2];HEAP32[$2+88>>2]=HEAP32[$1>>2];HEAP32[$2+92>>2]=$8;$1=dmSocket__Connect_28int_2c_20dmSocket__Address_2c_20int_29($6,$2+88|0,$4);if($1){$4=HEAP32[$0+140>>2];HEAP32[$2+72>>2]=dmSocket__ResultToString_28dmSocket__Result_29($1);HEAP32[$2+68>>2]=$4;HEAP32[$2+64>>2]=$3;dmWebsocket__SetStatus_28dmWebsocket__WebsocketConnection__2c_20dmWebsocket__Result_2c_20char_20const__2c_20____29($0,1,2102,$2- -64|0);if(HEAP32[$0+2220>>2]==4){break label$5}HEAP32[$0+2220>>2]=4;break label$5}if(HEAP32[$0+2220>>2]==1){break label$5}HEAP32[$0+2220>>2]=1}$5=$5+1|0;if($5>>>0>=$7>>>0){break label$1}$0=HEAP32[145211];if(HEAP32[145212]-$0>>2>>>0>$5>>>0){continue}break}__assert_fail(1772,1416,430,1783);abort()}__assert_fail(2180,1416,464,2195);abort()}__assert_fail(2205,1416,467,2195);abort()}global$0=$2+2304|0;return 0}function mbedtls_ssl_decrypt_buf($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$4=global$0-256|0;global$0=$4;label$1:{if(!$0){$3=-27648;break label$1}if(!$1){$3=-27648;break label$1}$3=HEAP32[$1+12>>2];if(!$3){$3=-27648;break label$1}$2=HEAP32[$1+16>>2];$8=HEAP32[$1+20>>2];if($2>>>0<$8>>>0){$3=-27648;break label$1}$6=HEAP32[$1+24>>2];if($2-$8>>>0<$6>>>0){$3=-27648;break label$1}$2=HEAP32[$0+144>>2];$5=0;label$7:{if(!$2){break label$7}$5=HEAP32[$2+4>>2]}$2=$5+ -2|0;if($2>>>0>8){$3=-27648;break label$1}$10=$0+144|0;$5=$3+$8|0;$3=-27648;label$9:{label$10:{label$11:{switch($2-1|0){case 3:case 5:case 7:$3=-29056;$2=HEAP32[$0+4>>2];$12=HEAP32[$0+8>>2];$11=$2-$12|0;$7=$11+HEAP32[$0+16>>2]|0;if($6>>>0<$7>>>0){break label$1}$2=($2|0)!=12;label$13:{if(!($2|($12|0)!=4)){HEAP32[$4>>2]=HEAP32[$0+36>>2];$2=HEAPU8[$5+4|0]|HEAPU8[$5+5|0]<<8|(HEAPU8[$5+6|0]<<16|HEAPU8[$5+7|0]<<24);HEAP32[$4+4>>2]=HEAPU8[$5|0]|HEAPU8[$5+1|0]<<8|(HEAPU8[$5+2|0]<<16|HEAPU8[$5+3|0]<<24);HEAP32[$4+8>>2]=$2;break label$13}$3=-27648;if(($12|0)!=12|$2){break label$1}HEAP32[$4+8>>2]=HEAP32[$0+44>>2];$2=HEAP32[$0+40>>2];HEAP32[$4>>2]=HEAP32[$0+36>>2];HEAP32[$4+4>>2]=$2;HEAP8[$4+4|0]=HEAPU8[$4+4|0]^HEAPU8[$1|0];HEAP8[$4+5|0]=HEAPU8[$4+5|0]^HEAPU8[$1+1|0];HEAP8[$4+6|0]=HEAPU8[$4+6|0]^HEAPU8[$1+2|0];HEAP8[$4+7|0]=HEAPU8[$4+7|0]^HEAPU8[$1+3|0];HEAP8[$4+8|0]=HEAPU8[$4+8|0]^HEAPU8[$1+4|0];HEAP8[$4+9|0]=HEAPU8[$4+9|0]^HEAPU8[$1+5|0];HEAP8[$4+10|0]=HEAPU8[$4+10|0]^HEAPU8[$1+6|0];HEAP8[$4+11|0]=HEAPU8[$4+11|0]^HEAPU8[$1+7|0]}HEAP32[$1+24>>2]=$6-$7;HEAP32[$1+20>>2]=$8+$11;ssl_extract_add_data_from_record($4+192|0,$4+188|0,$1);memcpy((HEAP32[$0+8>>2]+$0|0)+36|0,$5,$11);$3=-29056;$7=$5+$11|0;$2=HEAP32[$1+24>>2];$0=mbedtls_cipher_auth_decrypt($10,$4,HEAP32[$0+4>>2],$4+192|0,HEAP32[$4+188>>2],$7,$2,$7,$4+252|0,$2+$7|0,HEAP32[$0+16>>2]);if(($0|0)==-25344){break label$1}if($0){$3=$0;break label$1}$3=-27648;if(HEAP32[$4+252>>2]==HEAP32[$1+24>>2]){break label$10}break label$1;case 0:case 1:case 2:case 4:case 6:break label$1;default:break label$11}}$3=HEAP32[$0+4>>2];$2=HEAP32[$0+208>>2]>1?$3:0;if($6>>>0<$3+$2>>>0){$3=-29056;break label$1}$8=$2;$2=HEAP32[$0+12>>2];if($6>>>0<($8+$2|0)+1>>>0){$3=-29056;break label$1}if(HEAP32[$0+76>>2]==1){HEAP32[$1+24>>2]=$6-$2;ssl_extract_add_data_from_record($4+192|0,$4+188|0,$1);$2=$0- -64|0;mbedtls_md_hmac_update($2,$4+192|0,HEAP32[$4+188>>2]);mbedtls_md_hmac_update($2,$5,HEAP32[$1+24>>2]);mbedtls_md_hmac_finish($2,$4);mbedtls_md_hmac_reset($2);if(mbedtls_ssl_safer_memcmp(HEAP32[$1+24>>2]+$5|0,$4,HEAP32[$0+12>>2])){$3=-29056;break label$1}$6=HEAP32[$1+24>>2];$13=1;$3=HEAP32[$0+4>>2]}if(($6>>>0)%($3>>>0)){$3=-29056;break label$1}if(HEAP32[$0+208>>2]>=2){memcpy($0+36|0,$5,$3);HEAP32[$1+20>>2]=HEAP32[$1+20>>2]+$3;$6=HEAP32[$1+24>>2]-$3|0;HEAP32[$1+24>>2]=$6;$5=$3+$5|0}$2=$0+36|0;$3=mbedtls_cipher_crypt($10,$2,$3,$5,$6,$5,$4+252|0);if($3){break label$1}$9=HEAP32[$1+24>>2];if(($9|0)!=HEAP32[$4+252>>2]){$3=-27648;break label$1}if(HEAP32[$0+208>>2]<=1){memcpy($2,$0+184|0,HEAP32[$0+4>>2]);$9=HEAP32[$1+24>>2]}$3=HEAPU8[($5+$9|0)+ -1|0];$2=$13?$9>>>0>$3>>>0:$9>>>0>=($3+HEAP32[$0+12>>2]|0)+1>>>0;if(HEAP32[$0+208>>2]<1){$3=-27648;break label$1}$10=$2?$3:0;$8=$10+1|0;$3=$9+ -256|0;$3=$3>>>0>$9>>>0?0:$3;label$27:{if($3>>>0>=$9>>>0){$6=0;break label$27}$12=$9-$8|0;$6=0;while(1){$7=$3>>>0>=$12>>>0|$7;$6=(($10|0)==HEAPU8[$3+$5|0]?$7:0)+$6|0;$3=$3+1|0;if(($9|0)!=($3|0)){continue}break}}$11=$2&($6|0)==($8|0);$8=$8&($11?511:0);$2=$9-$8|0;HEAP32[$1+24>>2]=$2;if(!$13){HEAP32[$1+24>>2]=$2-HEAP32[$0+12>>2];ssl_extract_add_data_from_record($4+192|0,$4+188|0,$1);if(HEAP32[$0+208>>2]<1){break label$9}$3=HEAP32[$1+24>>2];$14=memset($4,0,128);$2=HEAP32[$0+64>>2];$7=0;label$31:{if(!$2){break label$31}$7=HEAP32[$2>>2]}$2=$7+ -3|0;if($2>>>0>4){break label$9}label$32:{label$33:{switch($2-2|0){default:$13=HEAP32[$14+188>>2];$2=($13+HEAP32[$1+24>>2]|0)+8|0;$9=$2>>>6|0;$7=$2+$8>>>6|0;break label$32;case 2:break label$33;case 0:break label$9}}$13=HEAP32[$14+188>>2];$2=($13+HEAP32[$1+24>>2]|0)+16|0;$9=$2>>>7|0;$7=$2+$8>>>7|0}$10=$3+$8|0;$2=$10+ -256|0;$12=$2>>>0>$10>>>0?0:$2;$6=$0- -64|0;mbedtls_md_hmac_update($6,$14+192|0,$13);mbedtls_md_hmac_update($6,$5,HEAP32[$1+24>>2]);ssl_read_memory(HEAP32[$1+24>>2]+$5|0,$8);mbedtls_md_hmac_finish($6,$14+128|0);$3=0;$7=$7-$9&($11?255:0);while(1){label$36:{if(!$6){break label$36}$2=HEAP32[$6>>2];if(!$2){break label$36}FUNCTION_TABLE[HEAP32[$2+44>>2]](HEAP32[$6+4>>2],$14)|0}$2=($3|0)==($7|0);$3=$3+1|0;if(!$2){continue}break}mbedtls_md_hmac_reset($6);ssl_read_memory($5+$12|0,HEAP32[$0+12>>2]+($10-$12|0)|0);if(mbedtls_ssl_safer_memcmp(HEAP32[$1+24>>2]+$5|0,$14+128|0,HEAP32[$0+12>>2])){$3=-29056;break label$1}$3=-29056;if(!!$11){break label$10}break label$1}$3=-29056;if(!$11){break label$1}}$3=0;break label$1}$3=-27648}global$0=$4+256|0;return $3}function void_20std____2____inplace_merge_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;label$1:{if(!$5){break label$1}while(1){label$3:{label$4:{if(!(($5|0)<=($7|0)|($4|0)<=($7|0))){if(!$4){break label$1}$8=HEAP32[HEAP32[$3>>2]+236>>2];$17=HEAP32[$1>>2];$9=HEAP32[($8+($17<<4)|0)+8>>2];while(1){$12=HEAP32[$0>>2];if($9>>>0>HEAPU32[($8+($12<<4)|0)+8>>2]){break label$4}$0=$0+4|0;$4=$4+ -1|0;if($4){continue}break}break label$1}if(($4|0)>($5|0)){break label$3}if(($0|0)==($1|0)){break label$1}$8=$6;$9=$0;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($1|0)){continue}break}if(($6|0)==($8|0)){break label$1}$3=HEAP32[$3>>2];while(1){if(($1|0)==($2|0)){$1=$8-$6|0;if(!$1){break label$1}memmove($0,$6,$1);return}$5=HEAP32[$3+236>>2];$4=HEAP32[$1>>2];$7=HEAP32[$6>>2];label$10:{if(HEAPU32[($5+($4<<4)|0)+8>>2]>HEAPU32[($5+($7<<4)|0)+8>>2]){HEAP32[$0>>2]=$4;$1=$1+4|0;break label$10}HEAP32[$0>>2]=$7;$6=$6+4|0}$0=$0+4|0;if(($6|0)!=($8|0)){continue}break}break label$1}label$12:{if(($4|0)<($5|0)){$15=($5|0)/2|0;$12=($15<<2)+$1|0;$9=$1-$0|0;label$14:{if(!$9){$11=$0;break label$14}$9=$9>>2;$13=HEAP32[($8+(HEAP32[$12>>2]<<4)|0)+8>>2];$11=$0;while(1){$10=$9>>>1|0;$14=($10<<2)+$11|0;$16=$13>>>0>HEAPU32[($8+(HEAP32[$14>>2]<<4)|0)+8>>2];$11=$16?$11:$14+4|0;$9=$16?$10:($10^-1)+$9|0;if($9){continue}break}}$16=$11-$0>>2;break label$12}if(($4|0)==1){HEAP32[$0>>2]=$17;HEAP32[$1>>2]=$12;return}$16=($4|0)/2|0;$11=($16<<2)+$0|0;$9=$2-$1|0;label$18:{if(!$9){$12=$1;break label$18}$9=$9>>2;$13=HEAP32[($8+(HEAP32[$11>>2]<<4)|0)+8>>2];$12=$1;while(1){$10=$9>>>1|0;$14=($10<<2)+$12|0;$15=HEAPU32[($8+(HEAP32[$14>>2]<<4)|0)+8>>2]>$13>>>0;$12=$15?$14+4|0:$12;$9=$15?($10^-1)+$9|0:$10;if($9){continue}break}}$15=$12-$1>>2}$5=$5-$15|0;$4=$4-$16|0;$8=$12;label$21:{if(($1|0)==($11|0)){break label$21}$8=$11;if(($1|0)==($12|0)){break label$21}$8=$11+4|0;if(($8|0)==($1|0)){$8=$12-$1|0;$9=$8>>2;$10=HEAP32[$11>>2];if($8){memmove($11,$1,$8)}$8=($9<<2)+$11|0;HEAP32[$8>>2]=$10;break label$21}$10=$1+4|0;if(($10|0)==($12|0)){$1=$12+ -4|0;$9=HEAP32[$1>>2];$8=$12;$1=$1-$11|0;if($1){$8=$12-$1|0;memmove($8,$11,$1)}HEAP32[$11>>2]=$9;break label$21}$18=$12-$1>>2;$9=$18;$14=$1-$11>>2;$13=$14;if(($9|0)==($14|0)){$9=HEAP32[$11>>2];HEAP32[$11>>2]=$17;HEAP32[$1>>2]=$9;while(1){$9=HEAP32[$8>>2];HEAP32[$8>>2]=HEAP32[$10>>2];HEAP32[$10>>2]=$9;$10=$10+4|0;$8=$8+4|0;if(($8|0)!=($1|0)){continue}break}$8=$1;break label$21}while(1){$1=$9;$9=($13|0)%($1|0)|0;$13=$1;if($9){continue}break}if($13){$1=($13<<2)+$11|0;while(1){$1=$1+ -4|0;$13=$14<<2;$10=$1+$13|0;$17=HEAP32[$1>>2];$9=$1;while(1){$8=$10;HEAP32[$9>>2]=HEAP32[$8>>2];$9=$8;$10=$12-$8>>2;$10=($14|0)<($10|0)?$8+$13|0:($14-$10<<2)+$11|0;if(($10|0)!=($1|0)){continue}break}HEAP32[$8>>2]=$17;if(($1|0)!=($11|0)){continue}break}}$8=($18<<2)+$11|0}label$32:{if(($15+$16|0)<($4+$5|0)){void_20std____2____inplace_merge_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$11,$8,$3,$16,$15,$6,$7);$0=$8;$1=$12;break label$32}void_20std____2____inplace_merge_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($8,$12,$2,$3,$4,$5,$6,$7);$5=$15;$4=$16;$2=$8;$1=$11}if($5){continue}break label$1}break}if(($1|0)==($2|0)){break label$1}$9=$1;$8=$6;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($2|0)){continue}break}if(($6|0)==($8|0)){break label$1}$5=HEAP32[$3>>2];$10=$8;while(1){if(($0|0)==($1|0)){if(($6|0)==($8|0)){break label$1}while(1){$2=$2+ -4|0;$8=$8+ -4|0;HEAP32[$2>>2]=HEAP32[$8>>2];if(($6|0)!=($8|0)){continue}break}break label$1}$3=HEAP32[$5+236>>2];$4=$10+ -4|0;$7=HEAP32[$4>>2];$9=$1+ -4|0;$12=HEAP32[$9>>2];$3=HEAPU32[($3+($7<<4)|0)+8>>2]>HEAPU32[($3+($12<<4)|0)+8>>2];$2=$2+ -4|0;HEAP32[$2>>2]=$3?$12:$7;$1=$3?$9:$1;$8=$3?$8:$4;$10=$3?$10:$4;if(($10|0)!=($6|0)){continue}break}}}function b2RevoluteJoint__SolveVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=0,$4=Math_fround(0),$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0);$3=global$0-48|0;global$0=$3;$14=HEAP32[$1+28>>2];$5=$14+Math_imul(HEAP32[$0+132>>2],12)|0;$9=HEAPF32[$5+8>>2];$11=HEAPF32[$5+4>>2];$12=HEAPF32[$5>>2];$5=$14+Math_imul(HEAP32[$0+128>>2],12)|0;$10=HEAPF32[$5+8>>2];$15=HEAPF32[$5+4>>2];$16=HEAPF32[$5>>2];$17=HEAPF32[$0+172>>2];$18=HEAPF32[$0+168>>2];$20=HEAPF32[$0+176>>2];$21=HEAPF32[$0+180>>2];$4=Math_fround($20+$21);if(!(!HEAPU8[$0+100|0]|$4==Math_fround(0)|HEAP32[$0+224>>2]==3)){$2=Math_fround(HEAPF32[$1>>2]*HEAPF32[$0+104>>2]);$7=Math_fround(-$2);$6=HEAPF32[$0+96>>2];$8=Math_fround($6-Math_fround(HEAPF32[$0+220>>2]*Math_fround(Math_fround($9-$10)-HEAPF32[$0+108>>2])));$2=$8<$2?$8:$2;$2=$2<$7?$7:$2;HEAPF32[$0+96>>2]=$2;$2=Math_fround($2-$6);$9=Math_fround($9+Math_fround($21*$2));$10=Math_fround($10-Math_fround($20*$2))}label$2:{if(!(!HEAP32[$0+224>>2]|(!HEAPU8[$0+112|0]|$4==Math_fround(0)))){$4=HEAPF32[$0+148>>2];$2=HEAPF32[$0+140>>2];$7=HEAPF32[$0+144>>2];$6=HEAPF32[$0+136>>2];HEAPF32[$3+40>>2]=$9-$10;$22=Math_fround(Math_fround(Math_fround(Math_fround($9*$7)+$11)-$15)-Math_fround($10*$6));HEAPF32[$3+36>>2]=$22;$23=Math_fround(Math_fround(Math_fround($12-Math_fround($9*$4))-$16)+Math_fround($10*$2));HEAPF32[$3+32>>2]=$23;$5=$0+184|0;b2Mat33__Solve33_28b2Vec3_20const__29_20const($3+16|0,$5,$3+32|0);$6=HEAPF32[$3+24>>2];$7=Math_fround(-$6);$8=HEAPF32[$3+20>>2];$2=Math_fround(-$8);$19=HEAPF32[$3+16>>2];$4=Math_fround(-$19);$14=HEAP32[$0+224>>2]+ -1|0;label$4:{if($14>>>0>2){break label$4}label$5:{switch($14-1|0){case 1:HEAPF32[$0+84>>2]=HEAPF32[$0+84>>2]-$19;HEAPF32[$0+88>>2]=HEAPF32[$0+88>>2]-$8;HEAPF32[$0+92>>2]=HEAPF32[$0+92>>2]-$6;break label$4;default:$13=HEAPF32[$0+92>>2];$6=Math_fround($13-$6);if(!!($6>2];HEAPF32[$3+20>>2]=Math_fround($13*HEAPF32[$0+212>>2])-$22;HEAPF32[$3+16>>2]=Math_fround($13*$4)-$23;b2Mat33__Solve22_28b2Vec2_20const__29_20const($3+8|0,$5,$3+16|0);$7=HEAPF32[$0+92>>2];$2=HEAPF32[$3+12>>2];$4=HEAPF32[$3+8>>2];HEAP32[$0+92>>2]=0;HEAPF32[$0+84>>2]=$4+HEAPF32[$0+84>>2];HEAPF32[$0+88>>2]=$2+HEAPF32[$0+88>>2];$7=Math_fround(-$7);break label$4}HEAPF32[$0+92>>2]=$6;HEAPF32[$0+84>>2]=HEAPF32[$0+84>>2]-$19;HEAPF32[$0+88>>2]=HEAPF32[$0+88>>2]-$8;break label$4;case 0:break label$5}}$13=HEAPF32[$0+92>>2];$6=Math_fround($13-$6);if(!!($6>Math_fround(0))){$4=HEAPF32[$0+208>>2];HEAPF32[$3+20>>2]=Math_fround($13*HEAPF32[$0+212>>2])-$22;HEAPF32[$3+16>>2]=Math_fround($13*$4)-$23;b2Mat33__Solve22_28b2Vec2_20const__29_20const($3+8|0,$5,$3+16|0);$7=HEAPF32[$0+92>>2];$2=HEAPF32[$3+12>>2];$4=HEAPF32[$3+8>>2];HEAP32[$0+92>>2]=0;HEAPF32[$0+84>>2]=$4+HEAPF32[$0+84>>2];HEAPF32[$0+88>>2]=$2+HEAPF32[$0+88>>2];$7=Math_fround(-$7);break label$4}HEAPF32[$0+92>>2]=$6;HEAPF32[$0+84>>2]=HEAPF32[$0+84>>2]-$19;HEAPF32[$0+88>>2]=HEAPF32[$0+88>>2]-$8}$6=Math_fround($7+Math_fround(Math_fround($2*HEAPF32[$0+144>>2])-Math_fround($4*HEAPF32[$0+148>>2])));$8=Math_fround($7+Math_fround(Math_fround($2*HEAPF32[$0+136>>2])-Math_fround($4*HEAPF32[$0+140>>2])));$7=Math_fround(Math_fround($17*$2)+$11);$12=Math_fround(Math_fround($17*$4)+$12);$4=Math_fround($16-Math_fround($18*$4));$11=Math_fround($15-Math_fround($18*$2));break label$2}$4=HEAPF32[$0+148>>2];$2=HEAPF32[$0+140>>2];HEAPF32[$3+20>>2]=-Math_fround(Math_fround(Math_fround(Math_fround($9*HEAPF32[$0+144>>2])+$11)-$15)-Math_fround($10*HEAPF32[$0+136>>2]));HEAPF32[$3+16>>2]=-Math_fround(Math_fround(Math_fround($12-Math_fround($9*$4))-$16)+Math_fround($10*$2));b2Mat33__Solve22_28b2Vec2_20const__29_20const($3+32|0,$0+184|0,$3+16|0);$4=HEAPF32[$3+32>>2];HEAPF32[$0+84>>2]=$4+HEAPF32[$0+84>>2];$2=HEAPF32[$3+36>>2];HEAPF32[$0+88>>2]=$2+HEAPF32[$0+88>>2];$6=Math_fround(Math_fround($2*HEAPF32[$0+144>>2])-Math_fround($4*HEAPF32[$0+148>>2]));$8=Math_fround(Math_fround($2*HEAPF32[$0+136>>2])-Math_fround($4*HEAPF32[$0+140>>2]));$12=Math_fround(Math_fround($17*$4)+$12);$4=Math_fround($16-Math_fround($18*$4));$7=Math_fround(Math_fround($17*$2)+$11);$11=Math_fround($15-Math_fround($18*$2))}$5=HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+128>>2],12)|0;HEAPF32[$5+4>>2]=$11;HEAPF32[$5>>2]=$4;$5=HEAP32[$1+28>>2];HEAPF32[($5+Math_imul(HEAP32[$0+128>>2],12)|0)+8>>2]=$10-Math_fround($20*$8);$5=$5+Math_imul(HEAP32[$0+132>>2],12)|0;HEAPF32[$5+4>>2]=$7;HEAPF32[$5>>2]=$12;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+132>>2],12)|0)+8>>2]=$9+Math_fround($21*$6);global$0=$3+48|0}function void_20std____2____inplace_merge_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;label$1:{if(!$5){break label$1}while(1){label$3:{label$4:{if(!(($5|0)<=($7|0)|($4|0)<=($7|0))){if(!$4){break label$1}$8=HEAP32[$3>>2];$17=HEAP32[$1>>2];$9=HEAP32[($8+Math_imul($17,48)|0)+24>>2];while(1){$12=HEAP32[$0>>2];if($9>>>0>2]){break label$4}$0=$0+4|0;$4=$4+ -1|0;if($4){continue}break}break label$1}if(($4|0)>($5|0)){break label$3}if(($0|0)==($1|0)){break label$1}$8=$6;$9=$0;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($1|0)){continue}break}if(($6|0)==($8|0)){break label$1}$3=HEAP32[$3>>2];while(1){if(($1|0)==($2|0)){$1=$8-$6|0;if(!$1){break label$1}memmove($0,$6,$1);return}$4=HEAP32[$1>>2];$5=HEAP32[$6>>2];label$10:{if(HEAPU32[($3+Math_imul($4,48)|0)+24>>2]>2]){HEAP32[$0>>2]=$4;$1=$1+4|0;break label$10}HEAP32[$0>>2]=$5;$6=$6+4|0}$0=$0+4|0;if(($6|0)!=($8|0)){continue}break}break label$1}label$12:{if(($4|0)<($5|0)){$15=($5|0)/2|0;$12=($15<<2)+$1|0;$9=$1-$0|0;label$14:{if(!$9){$11=$0;break label$14}$9=$9>>2;$13=HEAP32[($8+Math_imul(HEAP32[$12>>2],48)|0)+24>>2];$11=$0;while(1){$10=$9>>>1|0;$14=($10<<2)+$11|0;$16=$13>>>0>2],48)|0)+24>>2];$11=$16?$11:$14+4|0;$9=$16?$10:($10^-1)+$9|0;if($9){continue}break}}$16=$11-$0>>2;break label$12}if(($4|0)==1){HEAP32[$0>>2]=$17;HEAP32[$1>>2]=$12;return}$16=($4|0)/2|0;$11=($16<<2)+$0|0;$9=$2-$1|0;label$18:{if(!$9){$12=$1;break label$18}$9=$9>>2;$13=HEAP32[($8+Math_imul(HEAP32[$11>>2],48)|0)+24>>2];$12=$1;while(1){$10=$9>>>1|0;$14=($10<<2)+$12|0;$15=HEAPU32[($8+Math_imul(HEAP32[$14>>2],48)|0)+24>>2]<$13>>>0;$12=$15?$14+4|0:$12;$9=$15?($10^-1)+$9|0:$10;if($9){continue}break}}$15=$12-$1>>2}$5=$5-$15|0;$4=$4-$16|0;$8=$12;label$21:{if(($1|0)==($11|0)){break label$21}$8=$11;if(($1|0)==($12|0)){break label$21}$8=$11+4|0;if(($8|0)==($1|0)){$8=$12-$1|0;$9=$8>>2;$10=HEAP32[$11>>2];if($8){memmove($11,$1,$8)}$8=($9<<2)+$11|0;HEAP32[$8>>2]=$10;break label$21}$10=$1+4|0;if(($10|0)==($12|0)){$1=$12+ -4|0;$9=HEAP32[$1>>2];$8=$12;$1=$1-$11|0;if($1){$8=$12-$1|0;memmove($8,$11,$1)}HEAP32[$11>>2]=$9;break label$21}$18=$12-$1>>2;$9=$18;$14=$1-$11>>2;$13=$14;if(($9|0)==($14|0)){$9=HEAP32[$11>>2];HEAP32[$11>>2]=$17;HEAP32[$1>>2]=$9;while(1){$9=HEAP32[$8>>2];HEAP32[$8>>2]=HEAP32[$10>>2];HEAP32[$10>>2]=$9;$10=$10+4|0;$8=$8+4|0;if(($8|0)!=($1|0)){continue}break}$8=$1;break label$21}while(1){$1=$9;$9=($13|0)%($1|0)|0;$13=$1;if($9){continue}break}if($13){$1=($13<<2)+$11|0;while(1){$1=$1+ -4|0;$13=$14<<2;$10=$1+$13|0;$17=HEAP32[$1>>2];$9=$1;while(1){$8=$10;HEAP32[$9>>2]=HEAP32[$8>>2];$9=$8;$10=$12-$8>>2;$10=($14|0)<($10|0)?$8+$13|0:($14-$10<<2)+$11|0;if(($10|0)!=($1|0)){continue}break}HEAP32[$8>>2]=$17;if(($1|0)!=($11|0)){continue}break}}$8=($18<<2)+$11|0}label$32:{if(($15+$16|0)<($4+$5|0)){void_20std____2____inplace_merge_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$11,$8,$3,$16,$15,$6,$7);$0=$8;$1=$12;break label$32}void_20std____2____inplace_merge_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($8,$12,$2,$3,$4,$5,$6,$7);$5=$15;$4=$16;$2=$8;$1=$11}if($5){continue}break label$1}break}if(($1|0)==($2|0)){break label$1}$9=$1;$8=$6;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($2|0)){continue}break}if(($6|0)==($8|0)){break label$1}$4=HEAP32[$3>>2];$10=$8;while(1){if(($0|0)==($1|0)){if(($6|0)==($8|0)){break label$1}while(1){$2=$2+ -4|0;$8=$8+ -4|0;HEAP32[$2>>2]=HEAP32[$8>>2];if(($6|0)!=($8|0)){continue}break}break label$1}$5=$10+ -4|0;$7=HEAP32[$5>>2];$9=$1+ -4|0;$12=HEAP32[$9>>2];$3=HEAPU32[($4+Math_imul($7,48)|0)+24>>2]>2];$2=$2+ -4|0;HEAP32[$2>>2]=$3?$12:$7;$1=$3?$9:$1;$8=$3?$8:$5;$10=$3?$10:$5;if(($10|0)!=($6|0)){continue}break}}}function b2ContactSolver__InitializeVelocityConstraints_28_29($0){var $1=0,$2=Math_fround(0),$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=0,$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=0,$21=0,$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=Math_fround(0);$8=global$0+ -64|0;global$0=$8;label$1:{if(HEAP32[$0+48>>2]>=1){while(1){$1=HEAP32[$0+40>>2]+Math_imul($17,152)|0;$14=HEAP32[HEAP32[$0+44>>2]+(HEAP32[$1+148>>2]<<2)>>2];if(HEAP32[$14+132>>2]<=0){break label$1}$13=HEAPF32[$1+132>>2];$18=HEAPF32[$1+128>>2];$15=HEAPF32[$1+124>>2];$27=HEAPF32[$1+120>>2];$16=HEAP32[$0+28>>2];$9=Math_imul(HEAP32[$1+116>>2],12);$3=$16+$9|0;$19=HEAPF32[$3+8>>2];$28=HEAPF32[$3+4>>2];$29=HEAPF32[$3>>2];$20=HEAP32[$0+24>>2];$9=$20+$9|0;$2=HEAPF32[$9+8>>2];$21=Math_imul(HEAP32[$1+112>>2],12);$3=$16+$21|0;$22=HEAPF32[$3+8>>2];$30=HEAPF32[$3+4>>2];$31=HEAPF32[$3>>2];$3=HEAP32[$0+36>>2]+Math_imul($17,88)|0;$32=HEAPF32[$3+76>>2];$33=HEAPF32[$3+80>>2];$23=HEAPF32[$9>>2];$24=HEAPF32[$9+4>>2];$7=HEAPF32[$3+60>>2];$5=HEAPF32[$3+56>>2];$9=$20+$21|0;$25=HEAPF32[$9>>2];$26=HEAPF32[$9+4>>2];$10=HEAPF32[$3+52>>2];$12=HEAPF32[$3+48>>2];$6=HEAPF32[$9+8>>2];$11=cosf($6);HEAPF32[$8+60>>2]=$11;$6=sinf($6);HEAPF32[$8+56>>2]=$6;$4=cosf($2);HEAPF32[$8+44>>2]=$4;$2=sinf($2);HEAPF32[$8+40>>2]=$2;HEAPF32[$8+52>>2]=$26-Math_fround(Math_fround($11*$10)+Math_fround($6*$12));HEAPF32[$8+48>>2]=$25-Math_fround(Math_fround($11*$12)-Math_fround($6*$10));HEAPF32[$8+36>>2]=$24-Math_fround(Math_fround($4*$7)+Math_fround($2*$5));HEAPF32[$8+32>>2]=$23-Math_fround(Math_fround($4*$5)-Math_fround($2*$7));b2WorldManifold__Initialize_28b2Manifold_20const__2c_20b2Transform_20const__2c_20float_2c_20b2Transform_20const__2c_20float_29($8+8|0,$14- -64|0,$8+48|0,$32,$8+32|0,$33);$3=HEAP32[$8+12>>2];HEAP32[$1+72>>2]=HEAP32[$8+8>>2];HEAP32[$1+76>>2]=$3;$16=HEAP32[$1+144>>2];label$4:{if(($16|0)<1){break label$4}$7=Math_fround($27+$15);$9=0;while(1){$14=($8+8|0)+($9<<3)|0;$2=HEAPF32[$14+8>>2];$3=Math_imul($9,36)+$1|0;$10=Math_fround(HEAPF32[$14+12>>2]-$26);HEAPF32[$3+4>>2]=$10;$12=Math_fround($2-$25);HEAPF32[$3>>2]=$12;$2=HEAPF32[$14+8>>2];$11=Math_fround(HEAPF32[$14+12>>2]-$24);HEAPF32[$3+12>>2]=$11;$6=Math_fround($2-$23);HEAPF32[$3+8>>2]=$6;$5=HEAPF32[$1+76>>2];$2=HEAPF32[$1+72>>2];HEAP32[$3+32>>2]=0;$4=Math_fround(Math_fround($12*$5)-Math_fround($10*$2));$15=Math_fround($7+Math_fround($4*Math_fround($18*$4)));$4=Math_fround(Math_fround($5*$6)-Math_fround($2*$11));$4=Math_fround($15+Math_fround($4*Math_fround($13*$4)));HEAPF32[$3+24>>2]=$4>Math_fround(0)?Math_fround(Math_fround(1)/$4):Math_fround(0);$4=Math_fround(-$2);$15=Math_fround(Math_fround($12*$4)-Math_fround($5*$10));$4=Math_fround(Math_fround($6*$4)-Math_fround($5*$11));$4=Math_fround(Math_fround($7+Math_fround($15*Math_fround($18*$15)))+Math_fround($4*Math_fround($13*$4)));HEAPF32[$3+28>>2]=$4>Math_fround(0)?Math_fround(Math_fround(1)/$4):Math_fround(0);$5=Math_fround(Math_fround($5*Math_fround(Math_fround(Math_fround($28+Math_fround($19*$6))-$30)-Math_fround($22*$12)))+Math_fround($2*Math_fround(Math_fround($22*$10)+Math_fround(Math_fround($29-Math_fround($19*$11))-$31))));if(!!($5>2]=$5*Math_fround(-HEAPF32[$1+140>>2])}$9=$9+1|0;if(($16|0)!=($9|0)){continue}break}if(HEAP32[$1+144>>2]!=2){break label$4}$10=HEAPF32[$1+76>>2];$5=Math_fround(Math_fround(HEAPF32[$1>>2]*$10)-Math_fround(HEAPF32[$1+4>>2]*$2));$12=Math_fround($18*$5);$6=Math_fround(Math_fround($10*HEAPF32[$1+8>>2])-Math_fround($2*HEAPF32[$1+12>>2]));$11=Math_fround($13*$6);$5=Math_fround(Math_fround($7+Math_fround($5*$12))+Math_fround($6*$11));$6=Math_fround(Math_fround($10*HEAPF32[$1+36>>2])-Math_fround($2*HEAPF32[$1+40>>2]));$2=Math_fround(Math_fround($10*HEAPF32[$1+44>>2])-Math_fround($2*HEAPF32[$1+48>>2]));$13=Math_fround(Math_fround($7+Math_fround($6*Math_fround($18*$6)))+Math_fround($2*Math_fround($13*$2)));$2=Math_fround(Math_fround($7+Math_fround($12*$6))+Math_fround($11*$2));$7=Math_fround(Math_fround($5*$13)-Math_fround($2*$2));if(!!(Math_fround($5*$5)>2]=$5;HEAPF32[$1+108>>2]=$13;HEAPF32[$1+104>>2]=$2;HEAPF32[$1+100>>2]=$2;$7=$7!=Math_fround(0)?Math_fround(Math_fround(1)/$7):$7;HEAPF32[$1+92>>2]=$5*$7;HEAPF32[$1+80>>2]=$13*$7;$2=Math_fround($2*Math_fround(-$7));HEAPF32[$1+88>>2]=$2;HEAPF32[$1+84>>2]=$2;break label$4}HEAP32[$1+144>>2]=1}$17=$17+1|0;if(($17|0)>2]){continue}break}}global$0=$8- -64|0;return}__assert_fail(96860,96787,168,96885);abort()}function dmHashBuffer32($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$6=global$0-16|0;global$0=$6;$2=$0;$3=$1;if($3>>>0>=4){while(1){$7=$5;$5=Math_imul(HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24),1540483477);$5=Math_imul($7^Math_imul($5>>>24^$5,1540483477),1540483477);$2=$2+4|0;$3=$3+ -4|0;if($3>>>0>3){continue}break}}$3=$3+ -1|0;if($3>>>0<=2){label$4:{switch($3-1|0){case 1:$4=HEAPU8[$2+2|0]<<16;case 0:$4=HEAPU8[$2+1|0]<<8|$4;break;default:break label$4}}$4=Math_imul(HEAPU8[$2|0]^$4,1540483477)}$2=Math_imul($1,1540483477);$2=Math_imul(Math_imul($4>>>24^$4,1540483477)^$5,1540483477)^Math_imul($2>>>24^$2,1540483477);$2=Math_imul($2>>>13^$2,1540483477);$3=$2>>>15|0;label$7:{if(HEAP8[1130232]&1){break label$7}if(!__cxa_guard_acquire(1130232)){break label$7}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$4=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$4;__cxa_guard_release(1130232)}$3=$2^$3;if(!(!HEAPU8[1130132]|$1>>>0>1024)){label$9:{if(HEAP8[1130232]&1){break label$9}if(!__cxa_guard_acquire(1130232)){break label$9}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$4=HEAP32[282532];dmMutex__Lock_28dmMutex__Mutex__29($4);label$10:{if(HEAP8[1130232]&1){break label$10}if(!__cxa_guard_acquire(1130232)){break label$10}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$2=HEAP32[282535];label$11:{label$12:{if(!$2){break label$12}$2=HEAP32[HEAP32[282534]+(($3>>>0)%($2>>>0)<<2)>>2];if(($2|0)==-1){break label$12}$5=HEAP32[282536];while(1){$2=$5+($2<<4)|0;if(($3|0)==HEAP32[$2>>2]){break label$11}$2=HEAP32[$2+12>>2];if(($2|0)!=-1){continue}break}}if(HEAP32[282540]==HEAP32[282538]-HEAP32[282536]>>4){label$15:{if(HEAP8[1130232]&1){break label$15}if(!__cxa_guard_acquire(1130232)){break label$15}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$2=HEAP32[282538]-HEAP32[282536]>>4;label$16:{if(HEAP8[1130232]&1){break label$16}if(!__cxa_guard_acquire(1130232)){break label$16}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$5=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$5;__cxa_guard_release(1130232)}dmHashTable_unsigned_20int_2c_20ReverseHashEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130136,1024,$2+256|0)}$0=memcpy(dlmalloc($1+1|0),$0,$1);HEAP8[$0+$1|0]=0;HEAP16[$6+12>>1]=$1;HEAP32[$6+8>>2]=$0;dmHashTable_unsigned_20int_2c_20ReverseHashEntry___Put_28unsigned_20int_2c_20ReverseHashEntry_20const__29(1130136,$3,$6+8|0)}dmMutex__Unlock_28dmMutex__Mutex__29($4)}global$0=$6+16|0;return $3}function void_20std____2____inplace_merge_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;label$1:{if(!$5){break label$1}while(1){label$3:{label$4:{if(!(($5|0)<=($7|0)|($4|0)<=($7|0))){if(!$4){break label$1}$8=HEAP32[HEAP32[$3>>2]+232>>2];$17=HEAP32[$1>>2];$9=HEAP32[($8+($17<<4)|0)+8>>2];while(1){$12=HEAP32[$0>>2];if($9>>>0>HEAPU32[($8+($12<<4)|0)+8>>2]){break label$4}$0=$0+4|0;$4=$4+ -1|0;if($4){continue}break}break label$1}if(($4|0)>($5|0)){break label$3}if(($0|0)==($1|0)){break label$1}$8=$6;$9=$0;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($1|0)){continue}break}if(($6|0)==($8|0)){break label$1}$3=HEAP32[$3>>2];while(1){if(($1|0)==($2|0)){$1=$8-$6|0;if(!$1){break label$1}memmove($0,$6,$1);return}$5=HEAP32[$3+232>>2];$4=HEAP32[$1>>2];$7=HEAP32[$6>>2];label$10:{if(HEAPU32[($5+($4<<4)|0)+8>>2]>HEAPU32[($5+($7<<4)|0)+8>>2]){HEAP32[$0>>2]=$4;$1=$1+4|0;break label$10}HEAP32[$0>>2]=$7;$6=$6+4|0}$0=$0+4|0;if(($6|0)!=($8|0)){continue}break}break label$1}label$12:{if(($4|0)<($5|0)){$15=($5|0)/2|0;$12=($15<<2)+$1|0;$9=$1-$0|0;label$14:{if(!$9){$11=$0;break label$14}$9=$9>>2;$13=HEAP32[($8+(HEAP32[$12>>2]<<4)|0)+8>>2];$11=$0;while(1){$10=$9>>>1|0;$14=($10<<2)+$11|0;$16=$13>>>0>HEAPU32[($8+(HEAP32[$14>>2]<<4)|0)+8>>2];$11=$16?$11:$14+4|0;$9=$16?$10:($10^-1)+$9|0;if($9){continue}break}}$16=$11-$0>>2;break label$12}if(($4|0)==1){HEAP32[$0>>2]=$17;HEAP32[$1>>2]=$12;return}$16=($4|0)/2|0;$11=($16<<2)+$0|0;$9=$2-$1|0;label$18:{if(!$9){$12=$1;break label$18}$9=$9>>2;$13=HEAP32[($8+(HEAP32[$11>>2]<<4)|0)+8>>2];$12=$1;while(1){$10=$9>>>1|0;$14=($10<<2)+$12|0;$15=HEAPU32[($8+(HEAP32[$14>>2]<<4)|0)+8>>2]>$13>>>0;$12=$15?$14+4|0:$12;$9=$15?($10^-1)+$9|0:$10;if($9){continue}break}}$15=$12-$1>>2}$5=$5-$15|0;$4=$4-$16|0;$8=$12;label$21:{if(($1|0)==($11|0)){break label$21}$8=$11;if(($1|0)==($12|0)){break label$21}$8=$11+4|0;if(($8|0)==($1|0)){$8=$12-$1|0;$9=$8>>2;$10=HEAP32[$11>>2];if($8){memmove($11,$1,$8)}$8=($9<<2)+$11|0;HEAP32[$8>>2]=$10;break label$21}$10=$1+4|0;if(($10|0)==($12|0)){$1=$12+ -4|0;$9=HEAP32[$1>>2];$8=$12;$1=$1-$11|0;if($1){$8=$12-$1|0;memmove($8,$11,$1)}HEAP32[$11>>2]=$9;break label$21}$18=$12-$1>>2;$9=$18;$14=$1-$11>>2;$13=$14;if(($9|0)==($14|0)){$9=HEAP32[$11>>2];HEAP32[$11>>2]=$17;HEAP32[$1>>2]=$9;while(1){$9=HEAP32[$8>>2];HEAP32[$8>>2]=HEAP32[$10>>2];HEAP32[$10>>2]=$9;$10=$10+4|0;$8=$8+4|0;if(($8|0)!=($1|0)){continue}break}$8=$1;break label$21}while(1){$1=$9;$9=($13|0)%($1|0)|0;$13=$1;if($9){continue}break}if($13){$1=($13<<2)+$11|0;while(1){$1=$1+ -4|0;$13=$14<<2;$10=$1+$13|0;$17=HEAP32[$1>>2];$9=$1;while(1){$8=$10;HEAP32[$9>>2]=HEAP32[$8>>2];$9=$8;$10=$12-$8>>2;$10=($14|0)<($10|0)?$8+$13|0:($14-$10<<2)+$11|0;if(($10|0)!=($1|0)){continue}break}HEAP32[$8>>2]=$17;if(($1|0)!=($11|0)){continue}break}}$8=($18<<2)+$11|0}label$32:{if(($15+$16|0)<($4+$5|0)){void_20std____2____inplace_merge_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$11,$8,$3,$16,$15,$6,$7);$0=$8;$1=$12;break label$32}void_20std____2____inplace_merge_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($8,$12,$2,$3,$4,$5,$6,$7);$5=$15;$4=$16;$2=$8;$1=$11}if($5){continue}break label$1}break}if(($1|0)==($2|0)){break label$1}$9=$1;$8=$6;while(1){HEAP32[$8>>2]=HEAP32[$9>>2];$8=$8+4|0;$9=$9+4|0;if(($9|0)!=($2|0)){continue}break}if(($6|0)==($8|0)){break label$1}$5=HEAP32[$3>>2];$10=$8;while(1){if(($0|0)==($1|0)){if(($6|0)==($8|0)){break label$1}while(1){$2=$2+ -4|0;$8=$8+ -4|0;HEAP32[$2>>2]=HEAP32[$8>>2];if(($6|0)!=($8|0)){continue}break}break label$1}$3=HEAP32[$5+232>>2];$4=$10+ -4|0;$7=HEAP32[$4>>2];$9=$1+ -4|0;$12=HEAP32[$9>>2];$3=HEAPU32[($3+($7<<4)|0)+8>>2]>HEAPU32[($3+($12<<4)|0)+8>>2];$2=$2+ -4|0;HEAP32[$2>>2]=$3?$12:$7;$1=$3?$9:$1;$8=$3?$8:$4;$10=$3?$10:$4;if(($10|0)!=($6|0)){continue}break}}}function dmGameObject__PostUpdate_28dmGameObject__CollectionHandle__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$3=global$0-48|0;global$0=$3;$2=HEAP32[$0>>2];label$1:{if(HEAP8[582020]&1){break label$1}if(!__cxa_guard_acquire(582020)){break label$1}if(HEAPU8[1130703]){$0=dmProfile__AllocateScope_28char_20const__29(11164)}else{$0=-1}HEAP32[145504]=$0;__cxa_guard_release(582020)}label$3:{if(HEAP8[582028]&1){break label$3}if(!__cxa_guard_acquire(582028)){break label$3}if(HEAPU8[1130703]){$0=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(12566,10)}else{$0=0}HEAP32[145506]=$0;__cxa_guard_release(582028)}$0=HEAP32[145504];label$5:{if(($0|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+16|0,$0,12566,HEAP32[145506]);break label$5}HEAP32[$3+16>>2]=0}label$7:{label$8:{if($2){$8=HEAP32[$2+4>>2];if(!$8){break label$8}$6=HEAP32[$8>>2];if(!$6){$0=1;break label$7}$0=1;while(1){$11=HEAPU16[($8+($1<<1)|0)+24488>>1];$4=$8+Math_imul($11,96)|0;$5=$4;if(HEAP32[$4+68>>2]){label$13:{if(HEAP8[582036]&1){break label$13}if(!__cxa_guard_acquire(582036)){break label$13}if(HEAPU8[1130703]){$7=dmProfile__AllocateScope_28char_20const__29(11164)}else{$7=-1}HEAP32[145508]=$7;__cxa_guard_release(582036)}$7=HEAP32[145508];label$15:{if(($7|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+32|0,$7,HEAP32[$4+12>>2],HEAP32[$4+16>>2]);break label$15}HEAP32[$3+32>>2]=0}HEAP32[$3>>2]=HEAP32[$2+8>>2];HEAP32[$3+4>>2]=HEAP32[(($11<<2)+$2|0)+12>>2];HEAP32[$3+8>>2]=HEAP32[$4+24>>2];$4=!FUNCTION_TABLE[HEAP32[$5+68>>2]]($3);if(HEAP32[$3+32>>2]){dmProfile__ProfileScope__EndScope_28_29($3+32|0)}$0=$0&$4}$1=$1+1|0;if(($6|0)!=($1|0)){continue}break}break label$7}__assert_fail(12518,10811,2532,12566);abort()}__assert_fail(15751,10811,2534,12566);abort()}label$18:{$4=HEAPU16[$2+4268>>1];label$19:{if(($4|0)!=32767){$8=0;while(1){HEAP32[$2+4268>>2]=2147450879;$11=$8;$8=$8+1|0;$1=$4;label$22:{label$23:{label$24:{label$26:{label$27:{label$28:{while(1){$9=HEAP32[$2+2056>>2];$10=HEAP32[$2+2060>>2]-$9>>2;$1=$1&65535;if($10>>>0<=$1>>>0){break label$18}$5=HEAP32[$9+($1<<2)>>2];$1=HEAP32[$5+140>>2];$7=HEAP32[$5+136>>2];$6=$1;$12=$10;$10=$1&32767;if($12>>>0<=$10>>>0){break label$18}$12=$10<<2;if(($5|0)!=HEAP32[$9+$12>>2]){break label$28}if(!($6&32768)){break label$27}$1=$0;label$31:{if(!(!($7&256)|!$5)){HEAP32[$5+136>>2]=$7&-257;HEAP32[$5+140>>2]=$6;$0=HEAP32[$2+2056>>2];if(HEAP32[$2+2060>>2]-$0>>2>>>0<=$10>>>0){break label$18}if(($5|0)!=HEAP32[$0+$12>>2]){break label$26}$0=0;if(!dmGameObject__FinalComponents_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($2,$5)){break label$31}}$0=$1}$1=HEAPU16[$5+148>>1];if(($1|0)!=32767){continue}break}$1=HEAP32[$2+4228>>2];HEAP32[$3+32>>2]=HEAP32[$2+4224>>2];HEAP32[$3+36>>2]=$1;$1=HEAP32[$2+4236>>2];HEAP32[$3+40>>2]=HEAP32[$2+4232>>2];HEAP32[$3+44>>2]=$1;$0=dmGameObject__DispatchMessages_28dmGameObject__Collection__2c_20unsigned_20long_20long__2c_20unsigned_20int_29($2,$3+32|0,2)&$0;while(1){$5=HEAP32[$2+2056>>2];$9=HEAP32[$2+2060>>2]-$5>>2;if($9>>>0<=$4>>>0){break label$18}$6=HEAP32[$5+($4<<2)>>2];$4=$6;$1=HEAP32[$4+140>>2];$7=$1;$1=$1&32767;if($9>>>0<=$1>>>0){break label$18}if(($6|0)!=HEAP32[$5+($1<<2)>>2]){break label$24}if(!($7&32768)){break label$23}$4=HEAPU16[$6+148>>1];dmGameObject__DoDeleteInstance_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($2,$6);$13=$13+1|0;if(($4|0)!=32767){continue}break}break label$22}__assert_fail(11833,10811,2574,12566);abort()}__assert_fail(15755,10811,2575,12566);abort()}__assert_fail(11833,10811,1709,15648);abort()}__assert_fail(11833,10811,2593,12566);abort()}__assert_fail(15755,10811,2594,12566);abort()}if($11>>>0<=8){$4=HEAPU16[$2+4268>>1];if(($4|0)!=32767){continue}}break}if(($8|0)!=10){break label$19}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,10938,15779,0);break label$19}$1=HEAP32[$2+4228>>2];HEAP32[$3+32>>2]=HEAP32[$2+4224>>2];HEAP32[$3+36>>2]=$1;$1=HEAP32[$2+4236>>2];HEAP32[$3+40>>2]=HEAP32[$2+4232>>2];HEAP32[$3+44>>2]=$1;$0=dmGameObject__DispatchMessages_28dmGameObject__Collection__2c_20unsigned_20long_20long__2c_20unsigned_20int_29($2,$3+32|0,2)&$0}label$35:{if(HEAP8[582044]&1){break label$35}if(!__cxa_guard_acquire(582044)){break label$35}if(HEAPU8[1130703]){$1=dmProfile__AllocateCounter_28char_20const__29(15866)}else{$1=-1}HEAP32[145510]=$1;__cxa_guard_release(582044)}$1=HEAP32[145510];if(($1|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($1,$13)}if(HEAP32[$3+16>>2]){dmProfile__ProfileScope__EndScope_28_29($3+16|0)}global$0=$3+48|0;return $0}__assert_fail(16081,13666,430,14890);abort()}function dmDDF__DoSaveMessage_28void_20const__2c_20dmDDF__Descriptor_20const__2c_20void__2c_20bool_20_28__29_28void__2c_20void_20const__2c_20unsigned_20int_29_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$8=global$0-16|0;global$0=$8;$4=$8+8|0;HEAP32[$4+4>>2]=$2;HEAP32[$4>>2]=$3;label$1:{if(HEAPU8[$1+24|0]){while(1){$10=4;$9=HEAP32[$1+20>>2]+Math_imul($13,20)|0;$14=$9;label$4:{label$5:{$7=HEAP32[$9+4>>2];$6=$7>>>22&63;$5=$6+ -9|0;if($5>>>0>3){break label$5}label$6:{switch($5-1|0){case 1:$10=HEAP32[HEAP32[$9+8>>2]+16>>2];break label$4;case 0:break label$5;case 2:break label$6;default:break label$4}}$10=8;break label$4}$10=dmDDF__ScalarTypeSize_28unsigned_20int_29($6);$7=HEAP32[$14+4>>2]}$11=HEAP32[$9+12>>2]+$0|0;$15=1;label$8:{if(($7&-268435456)==805306368){$15=HEAP32[$11+4>>2];if(!$15){break label$8}$11=HEAP32[$11>>2]}$12=0;label$10:{label$11:{label$12:{label$13:{while(1){$5=($7>>>22&63)+ -1|0;if($5>>>0>17){break label$10}$6=Math_imul($10,$12)+$11|0;label$15:{label$16:{label$17:{switch($5-1|0){default:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,1)){break label$1}if(dmDDF__OutputStream__WriteDouble_28double_29($4,HEAPF64[$6>>3])){break label$16}break label$1;case 0:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,5)){break label$1}if(dmDDF__OutputStream__WriteFloat_28float_29($4,HEAPF32[$6>>2])){break label$16}break label$1;case 1:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(dmDDF__OutputStream__WriteVarInt64_28unsigned_20long_20long_29($4,HEAP32[$6>>2],HEAP32[$6+4>>2])){break label$16}break label$1;case 2:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(dmDDF__OutputStream__WriteVarInt64_28unsigned_20long_20long_29($4,HEAP32[$6>>2],HEAP32[$6+4>>2])){break label$16}break label$1;case 3:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(dmDDF__OutputStream__WriteVarInt32SignExtended_28int_29($4,HEAP32[$6>>2])){break label$16}break label$1;case 4:__assert_fail(25009,25015,95,25039);abort();case 5:__assert_fail(25009,25015,99,25039);abort();case 6:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(dmDDF__OutputStream__WriteBool_28bool_29($4,HEAPU8[$6|0])){break label$16}break label$1;case 7:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,2)){break label$1}if(dmDDF__OutputStream__WriteString_28char_20const__29($4,HEAP32[$6>>2])){break label$16}break label$1;case 8:__assert_fail(25009,25015,109,25039);abort();case 9:HEAP32[$8+4>>2]=0;$5=dmDDF__SaveMessage_28void_20const__2c_20dmDDF__Descriptor_20const__2c_20void__2c_20bool_20_28__29_28void__2c_20void_20const__2c_20unsigned_20int_29_29($6,HEAP32[$9+8>>2],$8+4|0,155);if($5){break label$1}$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,HEAP32[$14+4>>2]&4194303,2)){break label$1}if(!dmDDF__OutputStream__WriteVarInt32_28unsigned_20int_29($4,HEAP32[$8+4>>2])){break label$1}$5=dmDDF__SaveMessage_28void_20const__2c_20dmDDF__Descriptor_20const__2c_20void__2c_20bool_20_28__29_28void__2c_20void_20const__2c_20unsigned_20int_29_29($6,HEAP32[$9+8>>2],$2,$3);if(!$5){break label$16}break label$1;case 10:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,2)){break label$1}if(!dmDDF__OutputStream__WriteVarInt32_28unsigned_20int_29($4,HEAP32[$6+4>>2])){break label$1}if(FUNCTION_TABLE[HEAP32[$4>>2]](HEAP32[$4+4>>2],HEAP32[$6>>2],HEAP32[$6+4>>2])){break label$16}break label$1;case 11:$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(dmDDF__OutputStream__WriteVarInt32_28unsigned_20int_29($4,HEAP32[$6>>2])){break label$16}break label$1;case 16:break label$11;case 15:break label$12;case 14:break label$13;case 13:break label$15;case 12:break label$17}}$5=3;if(!dmDDF__OutputStream__WriteTag_28unsigned_20int_2c_20dmDDF__WireType_29($4,$7&4194303,0)){break label$1}if(!dmDDF__OutputStream__WriteVarInt32_28unsigned_20int_29($4,HEAP32[$6>>2])){break label$1}}$12=$12+1|0;if(($15|0)==($12|0)){break label$8}$7=HEAP32[$14+4>>2];continue}break}__assert_fail(25009,25015,148,25039);abort()}__assert_fail(25009,25015,152,25039);abort()}__assert_fail(25009,25015,156,25039);abort()}__assert_fail(25009,25015,160,25039);abort()}__assert_fail(25009,25015,164,25039);abort()}$13=$13+1|0;if($13>>>0>2]=6;HEAP32[$6+36>>2]=HEAP32[$1+24>>2];$4=HEAP32[$1>>2];$5=-11;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{$3=HEAP32[309427];label$7:{if(!$3){break label$7}while(1){if(strcmp(HEAP32[$3>>2],$4)){$3=HEAP32[$3+32>>2];if($3){continue}break label$7}break}$5=FUNCTION_TABLE[HEAP32[$3+4>>2]]($6+32|0,$6+44|0)|0;if(!$5){break label$6}$4=HEAP32[$1>>2]}HEAP32[$6>>2]=$4;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,211606,211612,$6);break label$5}FUNCTION_TABLE[HEAP32[$3+20>>2]](HEAP32[$6+44>>2],$6+24|0);$9=HEAPF32[$1+4>>2];$2=memset(operator_20new_28unsigned_20long_29(33952),0,33952);dmSound__SoundSystem__SoundSystem_28_29($2);HEAP32[309426]=$2;HEAP8[$2+33948|0]=1;HEAP16[$2+33946>>1]=0;HEAP32[$2+4>>2]=$3;HEAP32[$2+8>>2]=HEAP32[$6+44>>2];HEAP32[$6+16>>2]=HEAP32[$1+28>>2];HEAP32[$2>>2]=dmSoundCodec__New_28dmSoundCodec__NewCodecContextParams_20const__29($6+16|0);$5=HEAP32[$1+28>>2];$7=HEAP32[$1+8>>2];if($0){$3=HEAP32[$1+12>>2];$4=HEAP32[$1+16>>2];$9=dmConfigFile__GetFloat_28dmConfigFile__Config__2c_20char_20const__2c_20float_29($0,211639,Math_fround(1));$7=dmConfigFile__GetInt_28dmConfigFile__Config__2c_20char_20const__2c_20int_29($0,211650,$7);dmConfigFile__GetInt_28dmConfigFile__Config__2c_20char_20const__2c_20int_29($0,211671,$4);dmConfigFile__GetInt_28dmConfigFile__Config__2c_20char_20const__2c_20int_29($0,211695,$3);$5=dmConfigFile__GetInt_28dmConfigFile__Config__2c_20char_20const__2c_20int_29($0,211719,$5)}if(HEAP8[$2+32|0]&1){break label$4}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($5,64,$2+20|0,$2+28|0,$2+24|0);$0=HEAP32[$2+20>>2];if(HEAP32[$2+28>>2]-$0>>6>>>0<$5>>>0){break label$3}HEAP32[$2+24>>2]=$0+($5<<6);$3=HEAPU16[$2+40>>1];$0=$5&65535;if($3>>>0>$0>>>0){break label$2}$4=HEAP32[$2+36>>2];$8=dlmalloc($0<<1);HEAP32[$2+36>>2]=$8;$8=memcpy($8,$4,$3<<1);HEAP16[$2+40>>1]=$5;if($3>>>0<$0>>>0){while(1){HEAP16[$8+($3<<1)>>1]=$3;$3=$3+1|0;if(($0|0)!=($3|0)){continue}break}}dlfree($4);if($5){$4=0;while(1){$0=HEAP32[$2+20>>2];if(HEAP32[$2+24>>2]-$0>>6>>>0<=$4>>>0){break label$1}$0=$0+($4<<6)|0;HEAP32[$0+56>>2]=0;HEAP32[$0+60>>2]=0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$0+48>>2]=0;HEAP32[$0+52>>2]=0;HEAP32[$0+40>>2]=0;HEAP32[$0+44>>2]=0;HEAP32[$0+32>>2]=0;HEAP32[$0+36>>2]=0;HEAP32[$0+24>>2]=0;HEAP32[$0+28>>2]=0;HEAP32[$0+16>>2]=0;HEAP32[$0+20>>2]=0;HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=0;HEAP32[$0+56>>2]=-1;HEAP32[$0+4>>2]=dlmalloc(Math_imul(HEAP32[$1+24>>2],20)+4|0);HEAP32[$0+40>>2]=1065353216;HEAP32[$0+44>>2]=0;$4=$4+1|0;if(($4|0)!=($5|0)){continue}break}}if(HEAP8[$2+60|0]&1){break label$4}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($7,24,$2+48|0,$2+56|0,$2+52|0);$0=HEAP32[$2+48>>2];if((HEAP32[$2+56>>2]-$0|0)/24>>>0<$7>>>0){break label$3}HEAP32[$2+52>>2]=$0+Math_imul($7,24);$3=HEAPU16[$2+68>>1];$0=$7&65535;if($3>>>0>$0>>>0){break label$2}$5=HEAP32[$2+64>>2];$4=dlmalloc($0<<1);HEAP32[$2+64>>2]=$4;$4=memcpy($4,$5,$3<<1);HEAP16[$2+68>>1]=$7;if($3>>>0<$0>>>0){while(1){HEAP16[$4+($3<<1)>>1]=$3;$3=$3+1|0;if(($0|0)!=($3|0)){continue}break}}dlfree($5);if($7){$0=HEAP32[$2+48>>2];$5=(HEAP32[$2+52>>2]-$0|0)/24|0;$3=0;while(1){if(($3|0)==($5|0)){break label$1}HEAP16[($0+Math_imul($3,24)|0)+16>>1]=65535;$3=$3+1|0;if(($7|0)!=($3|0)){continue}break}}HEAP32[$2+33908>>2]=HEAP32[$6+24>>2];$0=HEAP32[$1+24>>2];HEAP32[$2+33912>>2]=$0;$0=$0<<2;HEAP32[$2+33920>>2]=dlmalloc($0);HEAP32[$2+33924>>2]=dlmalloc($0);HEAP32[$2+33928>>2]=dlmalloc($0);HEAP32[$2+33932>>2]=dlmalloc($0);HEAP32[$2+33936>>2]=dlmalloc($0);$5=0;$0=dlmalloc($0);HEAP16[$2+33944>>1]=0;HEAP32[$2+33940>>2]=$0;dmHashTable_unsigned_20long_20long_2c_20int___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($2+76|0,65,32);$0=memset($2+112|0,0,33792)+Math_imul(dmSound__GetOrCreateGroup_28char_20const__29(211591),1056)|0;HEAP32[$0+8>>2]=0;HEAPF32[$0+16>>2]=$9;HEAPF32[$0+12>>2]=$9;HEAP8[$2+33949|0]=1;HEAP8[$2+33950|0]=0;HEAP32[$2+33904>>2]=-14;HEAP32[$2+12>>2]=0;HEAP32[$2+16>>2]=0;if(!HEAPU8[$1+32|0]){break label$5}HEAP32[$2+16>>2]=dmMutex__New_28_29();HEAP32[$2+12>>2]=dmThread__New_28void_20_28__29_28void__29_2c_20unsigned_20int_2c_20void__2c_20char_20const__29($2)}global$0=$6+48|0;return $5}__assert_fail(212421,212496,444,212567);abort()}__assert_fail(212579,212496,457,212598);abort()}__assert_fail(212606,212629,109,212567);abort()}__assert_fail(212695,212496,430,212706);abort()}function b2RevoluteJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=0,$20=0,$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0);$2=HEAP32[$0+48>>2];$20=HEAP32[$2+8>>2];HEAP32[$0+128>>2]=$20;$8=HEAP32[$0+52>>2];$17=HEAP32[$8+8>>2];HEAP32[$0+132>>2]=$17;$4=HEAPF32[$2+32>>2];$6=HEAP32[$2+32>>2];$13=HEAPF32[$2+28>>2];HEAP32[$0+152>>2]=HEAP32[$2+28>>2];HEAP32[$0+156>>2]=$6;$26=HEAPF32[$8+32>>2];$19=HEAP32[$8+32>>2];$7=HEAPF32[$8+28>>2];HEAP32[$0+160>>2]=HEAP32[$8+28>>2];HEAP32[$0+164>>2]=$19;$21=HEAPF32[$2+120>>2];HEAP32[$0+168>>2]=HEAP32[$2+120>>2];$22=HEAPF32[$8+120>>2];HEAP32[$0+172>>2]=HEAP32[$8+120>>2];$14=HEAPF32[$2+128>>2];HEAP32[$0+176>>2]=HEAP32[$2+128>>2];$15=HEAPF32[$8+128>>2];HEAP32[$0+180>>2]=HEAP32[$8+128>>2];$5=HEAPF32[$0+72>>2];$6=HEAP32[$1+24>>2];$2=Math_imul($20,12);$9=HEAPF32[($6+$2|0)+8>>2];$3=sinf($9);$11=HEAPF32[$0+68>>2];$10=cosf($9);$18=HEAP32[$1+28>>2];$2=$18+$2|0;$27=HEAPF32[$2>>2];$8=HEAP32[$2>>2];$28=HEAPF32[$2+4>>2];$19=HEAP32[$2+4>>2];$23=HEAPF32[$2+8>>2];$25=Math_imul($17,12);$2=$18+$25|0;$29=HEAPF32[$2>>2];$17=HEAP32[$2>>2];$30=HEAPF32[$2+4>>2];$18=HEAP32[$2+4>>2];$24=HEAPF32[$2+8>>2];$12=HEAPF32[($6+$25|0)+8>>2];$11=Math_fround($11-$13);$5=Math_fround($5-$4);$13=Math_fround(Math_fround($10*$11)-Math_fround($3*$5));HEAPF32[$0+136>>2]=$13;$11=Math_fround(Math_fround($3*$11)+Math_fround($10*$5));HEAPF32[$0+140>>2]=$11;$3=Math_fround($14+$15);HEAPF32[$0+216>>2]=$3;HEAPF32[$0+220>>2]=$3>Math_fround(0)?Math_fround(Math_fround(1)/$3):$3;$10=HEAPF32[$0+80>>2];$5=sinf($12);$16=HEAPF32[$0+76>>2];$4=cosf($12);$7=Math_fround($16-$7);$16=Math_fround($10-$26);$10=Math_fround(Math_fround($4*$7)-Math_fround($5*$16));HEAPF32[$0+144>>2]=$10;$5=Math_fround(Math_fround($5*$7)+Math_fround($4*$16));HEAPF32[$0+148>>2]=$5;$4=Math_fround(-$11);$7=Math_fround(Math_fround($14*$4)-Math_fround($5*$15));HEAPF32[$0+208>>2]=$7;$16=Math_fround(Math_fround($13*$14)+Math_fround($10*$15));HEAPF32[$0+212>>2]=$16;HEAPF32[$0+192>>2]=$7;HEAPF32[$0+204>>2]=$16;$7=Math_fround($21+$22);HEAPF32[$0+184>>2]=Math_fround($7+Math_fround(Math_fround($11*$11)*$14))+Math_fround(Math_fround($5*$5)*$15);$4=Math_fround(Math_fround(Math_fround($13*$4)*$14)-Math_fround(Math_fround($5*$10)*$15));HEAPF32[$0+196>>2]=$4;HEAPF32[$0+188>>2]=$4;HEAPF32[$0+200>>2]=Math_fround($7+Math_fround(Math_fround($13*$13)*$14))+Math_fround(Math_fround($10*$10)*$15);if(!(HEAPU8[$0+100|0]?$3!=Math_fround(0):0)){HEAP32[$0+96>>2]=0}label$3:{if(!(!HEAPU8[$0+112|0]|$3==Math_fround(0))){$4=HEAPF32[$0+124>>2];$7=HEAPF32[$0+120>>2];$3=Math_fround($4-$7);if(!!(($3>Math_fround(0)?$3:Math_fround(-$3))>2]=3;break label$3}$3=Math_fround(Math_fround($12-$9)-HEAPF32[$0+116>>2]);if(!!($3<=$7)){if(HEAP32[$0+224>>2]!=1){HEAP32[$0+92>>2]=0}HEAP32[$0+224>>2]=1;break label$3}if(!!($3>=$4)){if(HEAP32[$0+224>>2]!=2){HEAP32[$0+92>>2]=0}HEAP32[$0+224>>2]=2;break label$3}HEAP32[$0+224>>2]=0;HEAP32[$0+92>>2]=0;break label$3}HEAP32[$0+224>>2]=0}label$10:{if(HEAPU8[$1+20|0]){$9=HEAPF32[$1+8>>2];$3=Math_fround($9*HEAPF32[$0+84>>2]);HEAPF32[$0+84>>2]=$3;$4=Math_fround($9*HEAPF32[$0+96>>2]);HEAPF32[$0+96>>2]=$4;$12=Math_fround($9*HEAPF32[$0+88>>2]);HEAPF32[$0+88>>2]=$12;$9=Math_fround($9*HEAPF32[$0+92>>2]);HEAPF32[$0+92>>2]=$9;$24=Math_fround($24+Math_fround(Math_fround($9+Math_fround($4+Math_fround(Math_fround($10*$12)-Math_fround($3*$5))))*$15));$23=Math_fround($23-Math_fround(Math_fround($9+Math_fround($4+Math_fround(Math_fround($13*$12)-Math_fround($3*$11))))*$14));$17=(wasm2js_scratch_store_f32(Math_fround(Math_fround($3*$22)+$29)),wasm2js_scratch_load_i32(0));$8=(wasm2js_scratch_store_f32(Math_fround($27-Math_fround($3*$21))),wasm2js_scratch_load_i32(0));$18=(wasm2js_scratch_store_f32(Math_fround(Math_fround($12*$22)+$30)),wasm2js_scratch_load_i32(0));$19=(wasm2js_scratch_store_f32(Math_fround($28-Math_fround($12*$21))),wasm2js_scratch_load_i32(0));break label$10}HEAP32[$0+84>>2]=0;HEAP32[$0+88>>2]=0;HEAP32[$0+92>>2]=0;HEAP32[$0+96>>2]=0}$6=HEAP32[$1+28>>2]+Math_imul($20,12)|0;HEAP32[$6+4>>2]=$19;HEAP32[$6>>2]=$8;$6=HEAP32[$1+28>>2];HEAPF32[($6+Math_imul(HEAP32[$0+128>>2],12)|0)+8>>2]=$23;$6=$6+Math_imul(HEAP32[$0+132>>2],12)|0;HEAP32[$6+4>>2]=$18;HEAP32[$6>>2]=$17;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+132>>2],12)|0)+8>>2]=$24}function dmGameSystem__CopyStreamInternal_28dmGameSystem__BufferStream__2c_20unsigned_20int_2c_20dmGameSystem__BufferStream_20const__2c_20unsigned_20int_2c_20unsigned_20int_29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$5=HEAP32[$0+40>>2];if($5>>>0>8){return 0}label$2:{label$3:{label$4:{switch($5-1|0){default:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+Math_imul($6,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+Math_imul($8,$6)|0;while(1){HEAP8[$0+$1|0]=HEAPU8[$2+$3|0];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:$2+$6|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:$0+$7|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 0:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<1)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<1)|0;while(1){HEAP16[($1<<1)+$0>>1]=HEAPU16[($3<<1)+$2>>1];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<1)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<1)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 1:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<2)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<2)|0;while(1){HEAP32[($1<<2)+$0>>2]=HEAP32[($3<<2)+$2>>2];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<2)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<2)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 2:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<3)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<3)|0;while(1){$8=($3<<3)+$2|0;$10=HEAP32[$8+4>>2];$9=($1<<3)+$0|0;HEAP32[$9>>2]=HEAP32[$8>>2];HEAP32[$9+4>>2]=$10;$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<3)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<3)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 3:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+Math_imul($6,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+Math_imul($8,$6)|0;while(1){HEAP8[$0+$1|0]=HEAPU8[$2+$3|0];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:$2+$6|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:$0+$7|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 4:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<1)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<1)|0;while(1){HEAP16[($1<<1)+$0>>1]=HEAPU16[($3<<1)+$2>>1];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<1)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<1)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 5:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<2)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<2)|0;while(1){HEAP32[($1<<2)+$0>>2]=HEAP32[($3<<2)+$2>>2];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<2)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<2)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 6:if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<3)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<3)|0;while(1){$8=($3<<3)+$2|0;$10=HEAP32[$8+4>>2];$9=($1<<3)+$0|0;HEAP32[$9>>2]=HEAP32[$8>>2];HEAP32[$9+4>>2]=$10;$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<3)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<3)+$0|0;$4=$4+ -1|0;if($4){continue}break}break label$3;case 7:break label$4}}if(!$4){break label$2}$5=HEAP32[$0+36>>2];$7=($1>>>0)/($5>>>0)|0;$1=$1-Math_imul($5,$7)|0;$6=($3>>>0)/($5>>>0)|0;$3=$3-Math_imul($6,$5)|0;$8=$7;$7=HEAP32[$0+32>>2];$0=HEAP32[$0+16>>2]+(Math_imul($8,$7)<<2)|0;$8=$6;$6=HEAP32[$2+32>>2];$2=HEAP32[$2+16>>2]+(Math_imul($8,$6)<<2)|0;while(1){HEAP32[($1<<2)+$0>>2]=HEAP32[($3<<2)+$2>>2];$3=($3+1>>>0)%($5>>>0)|0;$2=$3?$2:($6<<2)+$2|0;$1=($1+1>>>0)%($5>>>0)|0;$0=$1?$0:($7<<2)+$0|0;$4=$4+ -1|0;if($4){continue}break}}return 1}return 1}function dmSSDP__UpdateListeningSockets_28dmSSDP__SSDP__2c_20dmSocket__IfAddr__2c_20unsigned_20int_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$3=global$0-416|0;global$0=$3;if($2){$9=$3+248|4;while(1){$5=Math_imul($7,160)+$1|0;HEAP32[$3+264>>2]=HEAP32[$5+148>>2];$8=HEAP32[$5+144>>2];HEAP32[$3+256>>2]=HEAP32[$5+140>>2];HEAP32[$3+260>>2]=$8;$8=HEAP32[$5+136>>2];HEAP32[$3+248>>2]=HEAP32[$5+132>>2];HEAP32[$3+252>>2]=$8;$5=$4;label$4:{label$5:{label$6:{if($4>>>0>=HEAPU32[$0+6852>>2]){break label$6}while(1){$8=Math_imul($4,160)+$0|0;$5=memcmp($8+1740|0,$9,16);if(($5|0)<=-1){HEAP32[$3+224>>2]=$4;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158017,$3+224|0);$5=$4+1|0;$6=(($4<<2)+$0|0)+6724|0;if(HEAP32[$6>>2]!=-1){$4=$8+1736|0;HEAP32[$3+216>>2]=HEAP32[$4+16>>2];$8=HEAP32[$4+12>>2];HEAP32[$3+208>>2]=HEAP32[$4+8>>2];HEAP32[$3+212>>2]=$8;$8=HEAP32[$4+4>>2];HEAP32[$3+200>>2]=HEAP32[$4>>2];HEAP32[$3+204>>2]=$8;$4=dmSocket__AddressToIPString_28dmSocket__Address_29($3+200|0);HEAP32[$3+192>>2]=$4;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,157987,157992,$3+192|0);dlfree($4);dmSocket__Delete_28int_29(HEAP32[$6>>2])}$4=$5;if($4>>>0>2]){continue}break label$6}break}if(!$5){$5=(($4<<2)+$0|0)+6724|0;if(HEAP32[$5>>2]!=-1){break label$5}}$5=$4}HEAP32[$3+176>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158126,$3+176|0);$8=($3+272|0)+($7<<2)|0;HEAP32[$8>>2]=-1;label$11:{label$12:{$4=HEAP32[$3+248>>2]+ -1|0;if($4>>>0<=1){if($4-1){break label$12}HEAP32[$3+48>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158168,$3+48|0);break label$11}HEAP32[$3+32>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158212,$3+32|0);break label$11}HEAP32[$3+412>>2]=-1;label$14:{label$15:{label$16:{if(!dmSocket__New_28dmSocket__Domain_2c_20dmSocket__Type_2c_20dmSocket__Protocol_2c_20int__29(1,1,1,$3+412|0)){if(!dmSocket__SetReuseAddress_28int_2c_20bool_29(HEAP32[$3+412>>2])){break label$16}}$4=HEAP32[$3+412>>2];if(($4|0)==-1){break label$15}dmSocket__Delete_28int_29($4);break label$15}$4=HEAP32[$3+412>>2];if(($4|0)!=-1){break label$14}}HEAP32[$3+64>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158259,$3- -64|0);break label$11}HEAP32[$3+168>>2]=HEAP32[$3+264>>2];$6=HEAP32[$3+260>>2];HEAP32[$3+160>>2]=HEAP32[$3+256>>2];HEAP32[$3+164>>2]=$6;$6=HEAP32[$3+252>>2];HEAP32[$3+152>>2]=HEAP32[$3+248>>2];HEAP32[$3+156>>2]=$6;if(dmSocket__SetMulticastIf_28int_2c_20dmSocket__Address_29($4,$3+152|0)){HEAP32[$3+144>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158311,$3+144|0);dmSocket__Delete_28int_29($4);break label$11}HEAP32[$3+136>>2]=HEAP32[$3+264>>2];$6=HEAP32[$3+260>>2];HEAP32[$3+128>>2]=HEAP32[$3+256>>2];HEAP32[$3+132>>2]=$6;$6=HEAP32[$3+252>>2];HEAP32[$3+120>>2]=HEAP32[$3+248>>2];HEAP32[$3+124>>2]=$6;if(dmSocket__Bind_28int_2c_20dmSocket__Address_2c_20int_29($4,$3+120|0,0)){HEAP32[$3+112>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158359,$3+112|0);dmSocket__Delete_28int_29($4);break label$11}HEAP32[$3+104>>2]=HEAP32[$3+264>>2];$6=HEAP32[$3+260>>2];HEAP32[$3+96>>2]=HEAP32[$3+256>>2];HEAP32[$3+100>>2]=$6;$6=HEAP32[$3+252>>2];HEAP32[$3+88>>2]=HEAP32[$3+248>>2];HEAP32[$3+92>>2]=$6;$6=dmSocket__AddressToIPString_28dmSocket__Address_29($3+88|0);HEAP32[$3+80>>2]=$6;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,157987,158402,$3+80|0);dlfree($6);HEAP32[$8>>2]=$4}$4=$5;break label$4}HEAP32[$3+244>>2]=$4;HEAP32[$3+240>>2]=$7;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(0,157987,158068,$3+240|0);HEAP32[($3+272|0)+($7<<2)>>2]=HEAP32[$5>>2];$4=$4+1|0}$7=$7+1|0;if(($7|0)!=($2|0)){continue}break}}$5=HEAP32[$0+6852>>2];if($4>>>0<$5>>>0){while(1){$7=(($4<<2)+$0|0)+6724|0;if(HEAP32[$7>>2]!=-1){$5=Math_imul($4,160)+$0|0;HEAP32[$3+24>>2]=HEAP32[$5+1752>>2];$9=$5+1744|0;$8=HEAP32[$9+4>>2];HEAP32[$3+16>>2]=HEAP32[$9>>2];HEAP32[$3+20>>2]=$8;$5=$5+1736|0;$9=HEAP32[$5+4>>2];HEAP32[$3+8>>2]=HEAP32[$5>>2];HEAP32[$3+12>>2]=$9;$5=dmSocket__AddressToIPString_28dmSocket__Address_29($3+8|0);HEAP32[$3>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,157987,157992,$3);dlfree($5);dmSocket__Delete_28int_29(HEAP32[$7>>2]);$5=HEAP32[$0+6852>>2]}$4=$4+1|0;if($4>>>0<$5>>>0){continue}break}}HEAP32[$0+6852>>2]=$2;memcpy($0+1604|0,$1,Math_imul($2,160));memcpy($0+6724|0,$3+272|0,$2<<2);global$0=$3+416|0}function UpsampleRgb565LinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$12=Math_imul(HEAPU8[$0|0],19077)>>>8|0;$13=HEAPU8[$4|0]|HEAPU8[$5|0]<<16;$9=HEAPU8[$2|0]|HEAPU8[$3|0]<<16;$11=($13+Math_imul($9,3)|0)+131074|0;$16=$11>>>2&255;$11=$11>>>18|0;$15=$12-(Math_imul($16,6419)>>>8|0)-(Math_imul($11,13320)>>>8)|0;$10=$15+8708|0;$15=$10>>>0<16384?$10>>6:($15|0)<-8708?0:255;$11=$12+(Math_imul($11,26149)>>>8|0)|0;$10=$11+ -14234|0;HEAP8[$6|0]=$15>>>5|($10>>>0<16384?$10>>>6|0:$11>>>0<14234?0:248)&248;$12=$12+(Math_imul($16,33050)>>>8|0)|0;$11=$12+ -17685|0;HEAP8[$6+1|0]=$15<<3&224|($11>>>0<16384?$11>>>9|0:$12>>>0<17685?0:31);if($1){$12=Math_imul(HEAPU8[$1|0],19077)>>>8|0;$11=(Math_imul($13,3)+$9|0)+131074|0;$16=$11>>>2&255;$11=$11>>>18|0;$15=$12-(Math_imul($16,6419)>>>8|0)-(Math_imul($11,13320)>>>8)|0;$10=$15+8708|0;$15=$10>>>0<16384?$10>>6:($15|0)<-8708?0:255;$11=$12+(Math_imul($11,26149)>>>8|0)|0;$10=$11+ -14234|0;HEAP8[$7|0]=$15>>>5|($10>>>0<16384?$10>>>6|0:$11>>>0<14234?0:248)&248;$12=$12+(Math_imul($16,33050)>>>8|0)|0;$11=$12+ -17685|0;HEAP8[$7+1|0]=$15<<3&224|($11>>>0<16384?$11>>>9|0:$12>>>0<17685?0:31)}$15=$8+ -1|0;label$3:{if(($8|0)<3){$12=$13;$11=$9;break label$3}$12=$15>>1;$26=($12|0)>1?$12:1;$16=1;while(1){$12=HEAPU8[$4+$16|0]|HEAPU8[$5+$16|0]<<16;$11=HEAPU8[$2+$16|0]|HEAPU8[$3+$16|0]<<16;$24=$13+$11|0;$10=($12+($24+$9|0)|0)+524296|0;$23=$16<<1;$17=$23+ -1|0;$21=$17<<1;$22=$21+$6|0;$14=Math_imul(HEAPU8[$0+$17|0],19077)>>>8|0;$24=$10+($24<<1)>>>3|0;$19=$24+$9|0;$25=$19>>>1&255;$19=$19>>>17|0;$20=$14-(Math_imul($25,6419)>>>8|0)-(Math_imul($19,13320)>>>8)|0;$18=$20+8708|0;$20=$18>>>0<16384?$18>>6:($20|0)<-8708?0:255;$19=$14+(Math_imul($19,26149)>>>8|0)|0;$18=$19+ -14234|0;HEAP8[$22|0]=$20>>>5|($18>>>0<16384?$18>>>6|0:$19>>>0<14234?0:248)&248;$18=$22;$14=$14+(Math_imul($25,33050)>>>8|0)|0;$22=$14+ -17685|0;HEAP8[$18+1|0]=$20<<3&224|($22>>>0<16384?$22>>>9|0:$14>>>0<17685?0:31);$22=$16<<2;$19=$22+$6|0;$14=Math_imul(HEAPU8[$0+$23|0],19077)>>>8|0;$10=$10+($9+$12<<1)>>>3|0;$9=$10+$11|0;$25=$9>>>1&255;$9=$9>>>17|0;$20=$14-(Math_imul($25,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$18=$20+8708|0;$20=$18>>>0<16384?$18>>6:($20|0)<-8708?0:255;$9=$14+(Math_imul($9,26149)>>>8|0)|0;$18=$9+ -14234|0;HEAP8[$19|0]=$20>>>5|($18>>>0<16384?$18>>>6|0:$9>>>0<14234?0:248)&248;$9=$14+(Math_imul($25,33050)>>>8|0)|0;$14=$9+ -17685|0;HEAP8[$19+1|0]=$20<<3&224|($14>>>0<16384?$14>>>9|0:$9>>>0<17685?0:31);if($1){$14=$7+$21|0;$9=Math_imul(HEAPU8[$1+$17|0],19077)>>>8|0;$13=$10+$13|0;$10=$13>>>1&255;$13=$13>>>17|0;$17=$9-(Math_imul($10,6419)>>>8|0)-(Math_imul($13,13320)>>>8)|0;$21=$17+8708|0;$17=$21>>>0<16384?$21>>6:($17|0)<-8708?0:255;$13=$9+(Math_imul($13,26149)>>>8|0)|0;$21=$13+ -14234|0;HEAP8[$14|0]=$17>>>5|($21>>>0<16384?$21>>>6|0:$13>>>0<14234?0:248)&248;$9=$9+(Math_imul($10,33050)>>>8|0)|0;$13=$9+ -17685|0;HEAP8[$14+1|0]=$17<<3&224|($13>>>0<16384?$13>>>9|0:$9>>>0<17685?0:31);$13=$7+$22|0;$9=Math_imul(HEAPU8[$1+$23|0],19077)>>>8|0;$10=$12+$24|0;$23=$10>>>1&255;$10=$10>>>17|0;$17=$9-(Math_imul($23,6419)>>>8|0)-(Math_imul($10,13320)>>>8)|0;$14=$17+8708|0;$17=$14>>>0<16384?$14>>6:($17|0)<-8708?0:255;$10=$9+(Math_imul($10,26149)>>>8|0)|0;$14=$10+ -14234|0;HEAP8[$13|0]=$17>>>5|($14>>>0<16384?$14>>>6|0:$10>>>0<14234?0:248)&248;$18=$13;$9=$9+(Math_imul($23,33050)>>>8|0)|0;$13=$9+ -17685|0;HEAP8[$18+1|0]=$17<<3&224|($13>>>0<16384?$13>>>9|0:$9>>>0<17685?0:31)}$10=($16|0)!=($26|0);$16=$16+1|0;$9=$11;$13=$12;if($10){continue}break}}label$7:{if($8&1){break label$7}$2=$15<<1;$3=$2+$6|0;$0=Math_imul(HEAPU8[$0+$15|0],19077)>>>8|0;$4=(Math_imul($11,3)+$12|0)+131074|0;$5=$4>>>2&255;$4=$4>>>18|0;$6=$0-(Math_imul($5,6419)>>>8|0)-(Math_imul($4,13320)>>>8)|0;$8=$6+8708|0;$6=$8>>>0<16384?$8>>6:($6|0)<-8708?0:255;$4=$0+(Math_imul($4,26149)>>>8|0)|0;$8=$4+ -14234|0;HEAP8[$3|0]=$6>>>5|($8>>>0<16384?$8>>>6|0:$4>>>0<14234?0:248)&248;$4=$3;$0=$0+(Math_imul($5,33050)>>>8|0)|0;$3=$0+ -17685|0;HEAP8[$4+1|0]=$6<<3&224|($3>>>0<16384?$3>>>9|0:$0>>>0<17685?0:31);if(!$1){break label$7}$2=$2+$7|0;$0=Math_imul(HEAPU8[$1+$15|0],19077)>>>8|0;$1=(Math_imul($12,3)+$11|0)+131074|0;$3=$1>>>2&255;$1=$1>>>18|0;$4=$0-(Math_imul($3,6419)>>>8|0)-(Math_imul($1,13320)>>>8)|0;$5=$4+8708|0;$4=$5>>>0<16384?$5>>6:($4|0)<-8708?0:255;$1=$0+(Math_imul($1,26149)>>>8|0)|0;$5=$1+ -14234|0;HEAP8[$2|0]=$4>>>5|($5>>>0<16384?$5>>>6|0:$1>>>0<14234?0:248)&248;$0=$0+(Math_imul($3,33050)>>>8|0)|0;$1=$0+ -17685|0;HEAP8[$2+1|0]=$4<<3&224|($1>>>0<16384?$1>>>9|0:$0>>>0<17685?0:31)}return}__assert_fail(182795,182809,102,182966);abort()}function b2PulleyJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=0,$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=0,$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0);$2=HEAP32[$0+48>>2];$22=HEAP32[$2+8>>2];HEAP32[$0+120>>2]=$22;$9=HEAP32[$0+52>>2];$17=HEAP32[$9+8>>2];HEAP32[$0+124>>2]=$17;$13=HEAPF32[$2+32>>2];$6=HEAP32[$2+32>>2];$10=HEAPF32[$2+28>>2];HEAP32[$0+160>>2]=HEAP32[$2+28>>2];HEAP32[$0+164>>2]=$6;$20=HEAPF32[$9+32>>2];$21=HEAP32[$9+32>>2];$14=HEAPF32[$9+28>>2];HEAP32[$0+168>>2]=HEAP32[$9+28>>2];HEAP32[$0+172>>2]=$21;HEAP32[$0+176>>2]=HEAP32[$2+120>>2];HEAP32[$0+180>>2]=HEAP32[$9+120>>2];HEAP32[$0+184>>2]=HEAP32[$2+128>>2];HEAP32[$0+188>>2]=HEAP32[$9+128>>2];$15=HEAPF32[$0+96>>2];$6=HEAP32[$1+24>>2];$2=Math_imul($22,12);$9=$6+$2|0;$3=HEAPF32[$9+8>>2];$4=sinf($3);$5=HEAPF32[$0+92>>2];$3=cosf($3);$18=HEAP32[$1+28>>2];$2=$18+$2|0;$28=HEAPF32[$2>>2];$21=HEAP32[$2>>2];$29=HEAPF32[$2+4>>2];$25=HEAP32[$2+4>>2];$23=HEAPF32[$2+8>>2];$26=Math_imul($17,12);$2=$18+$26|0;$30=HEAPF32[$2>>2];$17=HEAP32[$2>>2];$31=HEAPF32[$2+4>>2];$18=HEAP32[$2+4>>2];$24=HEAPF32[$2+8>>2];$2=$6+$26|0;$12=HEAPF32[$2+4>>2];$16=HEAPF32[$2>>2];$11=HEAPF32[$9+4>>2];$19=HEAPF32[$9>>2];$7=HEAPF32[$2+8>>2];$5=Math_fround($5-$10);$15=Math_fround($15-$13);$10=Math_fround(Math_fround($3*$5)-Math_fround($4*$15));HEAPF32[$0+144>>2]=$10;$15=Math_fround(Math_fround($4*$5)+Math_fround($3*$15));HEAPF32[$0+148>>2]=$15;$5=HEAPF32[$0+104>>2];$4=sinf($7);$8=HEAPF32[$0+100>>2];$3=cosf($7);$14=Math_fround($8-$14);$5=Math_fround($5-$20);$7=Math_fround(Math_fround($3*$14)-Math_fround($4*$5));HEAPF32[$0+152>>2]=$7;$14=Math_fround(Math_fround($4*$14)+Math_fround($3*$5));HEAPF32[$0+156>>2]=$14;$4=Math_fround(Math_fround($19+$10)-HEAPF32[$0+68>>2]);HEAPF32[$0+128>>2]=$4;$3=Math_fround(Math_fround($11+$15)-HEAPF32[$0+72>>2]);HEAPF32[$0+132>>2]=$3;$5=Math_fround(Math_fround($16+$7)-HEAPF32[$0+76>>2]);HEAPF32[$0+136>>2]=$5;$12=Math_fround(Math_fround($12+$14)-HEAPF32[$0+80>>2]);HEAPF32[$0+140>>2]=$12;$11=Math_fround(Math_sqrt(Math_fround(Math_fround($5*$5)+Math_fround($12*$12))));$2=$0;$16=Math_fround(Math_sqrt(Math_fround(Math_fround($4*$4)+Math_fround($3*$3))));label$1:{if(!!($16>Math_fround(.04999999701976776))){$13=$4;$4=Math_fround(Math_fround(1)/$16);$16=Math_fround($13*$4);HEAPF32[$0+128>>2]=$16;$4=Math_fround($3*$4);break label$1}HEAP32[$0+128>>2]=0;$16=Math_fround(0);$4=Math_fround(0)}HEAPF32[$2+132>>2]=$4;$2=$0;label$3:{if(!!($11>Math_fround(.04999999701976776))){$3=Math_fround(Math_fround(1)/$11);$5=Math_fround($5*$3);HEAPF32[$0+136>>2]=$5;$3=Math_fround($12*$3);break label$3}HEAP32[$0+136>>2]=0;$5=Math_fround(0);$3=Math_fround(0)}HEAPF32[$2+140>>2]=$3;$12=HEAPF32[$0+176>>2];$11=Math_fround(Math_fround($10*$4)-Math_fround($15*$16));$20=HEAPF32[$0+184>>2];$13=Math_fround($12+Math_fround($11*Math_fround($11*$20)));$11=HEAPF32[$0+112>>2];$19=HEAPF32[$0+180>>2];$8=Math_fround(Math_fround($7*$3)-Math_fround($14*$5));$27=HEAPF32[$0+188>>2];$8=Math_fround($13+Math_fround(Math_fround($11*$11)*Math_fround($19+Math_fround($8*Math_fround($8*$27)))));HEAPF32[$0+192>>2]=$8>Math_fround(0)?Math_fround(Math_fround(1)/$8):$8;label$5:{if(HEAPU8[$1+20|0]){$8=Math_fround(HEAPF32[$1+8>>2]*HEAPF32[$0+116>>2]);HEAPF32[$0+116>>2]=$8;$13=$7;$7=$3;$3=Math_fround($8*Math_fround(-$11));$7=Math_fround($7*$3);$3=Math_fround($5*$3);$24=Math_fround($24+Math_fround($27*Math_fround(Math_fround($13*$7)-Math_fround($14*$3))));$13=$10;$10=$4;$4=Math_fround(-$8);$10=Math_fround($10*$4);$4=Math_fround($16*$4);$23=Math_fround($23+Math_fround($20*Math_fround(Math_fround($13*$10)-Math_fround($15*$4))));$18=(wasm2js_scratch_store_f32(Math_fround(Math_fround($19*$7)+$31)),wasm2js_scratch_load_i32(0));$17=(wasm2js_scratch_store_f32(Math_fround(Math_fround($19*$3)+$30)),wasm2js_scratch_load_i32(0));$25=(wasm2js_scratch_store_f32(Math_fround(Math_fround($12*$10)+$29)),wasm2js_scratch_load_i32(0));$21=(wasm2js_scratch_store_f32(Math_fround(Math_fround($12*$4)+$28)),wasm2js_scratch_load_i32(0));break label$5}HEAP32[$0+116>>2]=0}$6=HEAP32[$1+28>>2]+Math_imul($22,12)|0;HEAP32[$6+4>>2]=$25;HEAP32[$6>>2]=$21;$6=HEAP32[$1+28>>2];HEAPF32[($6+Math_imul(HEAP32[$0+120>>2],12)|0)+8>>2]=$23;$6=$6+Math_imul(HEAP32[$0+124>>2],12)|0;HEAP32[$6+4>>2]=$18;HEAP32[$6>>2]=$17;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+124>>2],12)|0)+8>>2]=$24}function b2DistanceJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=0,$21=0,$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=0,$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0);$2=HEAP32[$0+48>>2];$21=HEAP32[$2+8>>2];HEAP32[$0+108>>2]=$21;$9=HEAP32[$0+52>>2];$14=HEAP32[$9+8>>2];HEAP32[$0+112>>2]=$14;$6=HEAPF32[$2+32>>2];$8=HEAP32[$2+32>>2];$13=HEAPF32[$2+28>>2];HEAP32[$0+140>>2]=HEAP32[$2+28>>2];HEAP32[$0+144>>2]=$8;$22=HEAPF32[$9+32>>2];$20=HEAP32[$9+32>>2];$10=HEAPF32[$9+28>>2];HEAP32[$0+148>>2]=HEAP32[$9+28>>2];HEAP32[$0+152>>2]=$20;HEAP32[$0+156>>2]=HEAP32[$2+120>>2];HEAP32[$0+160>>2]=HEAP32[$9+120>>2];HEAP32[$0+164>>2]=HEAP32[$2+128>>2];HEAP32[$0+168>>2]=HEAP32[$9+128>>2];$11=HEAPF32[$0+84>>2];$8=HEAP32[$1+24>>2];$2=Math_imul($21,12);$9=$8+$2|0;$5=HEAPF32[$9+8>>2];$4=sinf($5);$3=HEAPF32[$0+80>>2];$5=cosf($5);$15=HEAP32[$1+28>>2];$2=$15+$2|0;$29=HEAPF32[$2>>2];$20=HEAP32[$2>>2];$30=HEAPF32[$2+4>>2];$25=HEAP32[$2+4>>2];$23=HEAPF32[$2+8>>2];$26=Math_imul($14,12);$2=$15+$26|0;$31=HEAPF32[$2>>2];$14=HEAP32[$2>>2];$32=HEAPF32[$2+4>>2];$15=HEAP32[$2+4>>2];$24=HEAPF32[$2+8>>2];$7=HEAPF32[$9+4>>2];$2=$8+$26|0;$16=HEAPF32[$2+4>>2];$17=HEAPF32[$9>>2];$18=HEAPF32[$2>>2];$12=HEAPF32[$2+8>>2];$3=Math_fround($3-$13);$11=Math_fround($11-$6);$13=Math_fround(Math_fround($5*$3)-Math_fround($4*$11));HEAPF32[$0+124>>2]=$13;$11=Math_fround(Math_fround($4*$3)+Math_fround($5*$11));HEAPF32[$0+128>>2]=$11;$3=HEAPF32[$0+92>>2];$4=sinf($12);$6=HEAPF32[$0+88>>2];$5=cosf($12);$10=Math_fround($6-$10);$3=Math_fround($3-$22);$12=Math_fround(Math_fround($5*$10)-Math_fround($4*$3));HEAPF32[$0+132>>2]=$12;$10=Math_fround(Math_fround($4*$10)+Math_fround($5*$3));HEAPF32[$0+136>>2]=$10;$4=Math_fround(Math_fround(Math_fround($18+$12)-$17)-$13);HEAPF32[$0+116>>2]=$4;$3=Math_fround(Math_fround(Math_fround($16+$10)-$7)-$11);HEAPF32[$0+120>>2]=$3;$2=$0;$16=Math_fround(Math_sqrt(Math_fround(Math_fround($4*$4)+Math_fround($3*$3))));label$1:{if(!!($16>Math_fround(.004999999888241291))){$6=$4;$4=Math_fround(Math_fround(1)/$16);$5=Math_fround($6*$4);HEAPF32[$0+116>>2]=$5;$4=Math_fround($3*$4);break label$1}HEAP32[$0+116>>2]=0;$5=Math_fround(0);$4=Math_fround(0)}HEAPF32[$2+120>>2]=$4;$3=Math_fround(0);$17=HEAPF32[$0+160>>2];$18=HEAPF32[$0+156>>2];$7=Math_fround(Math_fround($13*$4)-Math_fround($11*$5));$27=HEAPF32[$0+164>>2];$6=Math_fround($17+Math_fround($18+Math_fround($7*Math_fround($7*$27))));$7=Math_fround(Math_fround($12*$4)-Math_fround($10*$5));$28=HEAPF32[$0+168>>2];$6=Math_fround($6+Math_fround($7*Math_fround($7*$28)));$7=$6!=Math_fround(0)?Math_fround(Math_fround(1)/$6):Math_fround(0);HEAPF32[$0+172>>2]=$7;$2=$0;$19=HEAPF32[$0+68>>2];if(!($19>Math_fround(0))){$6=Math_fround(0)}else{$3=Math_fround($19*Math_fround(6.2831854820251465));$19=Math_fround($3*Math_fround($3*$7));$22=$6;$6=HEAPF32[$1>>2];$3=Math_fround($6*Math_fround(Math_fround($3*Math_fround(Math_fround($7+$7)*HEAPF32[$0+72>>2]))+Math_fround($6*$19)));$3=$3!=Math_fround(0)?Math_fround(Math_fround(1)/$3):Math_fround(0);$7=Math_fround($22+$3);HEAPF32[$0+172>>2]=$7!=Math_fround(0)?Math_fround(Math_fround(1)/$7):Math_fround(0);$6=Math_fround(Math_fround($19*Math_fround($6*Math_fround($16-HEAPF32[$0+104>>2])))*$3)}HEAPF32[$2+76>>2]=$6;HEAPF32[$0+96>>2]=$3;label$5:{if(HEAPU8[$1+20|0]){$3=Math_fround(HEAPF32[$1+8>>2]*HEAPF32[$0+100>>2]);HEAPF32[$0+100>>2]=$3;$4=Math_fround($4*$3);$5=Math_fround($5*$3);$24=Math_fround($24+Math_fround($28*Math_fround(Math_fround($12*$4)-Math_fround($10*$5))));$23=Math_fround($23-Math_fround($27*Math_fround(Math_fround($13*$4)-Math_fround($11*$5))));$15=(wasm2js_scratch_store_f32(Math_fround(Math_fround($17*$4)+$32)),wasm2js_scratch_load_i32(0));$14=(wasm2js_scratch_store_f32(Math_fround(Math_fround($17*$5)+$31)),wasm2js_scratch_load_i32(0));$25=(wasm2js_scratch_store_f32(Math_fround($30-Math_fround($18*$4))),wasm2js_scratch_load_i32(0));$20=(wasm2js_scratch_store_f32(Math_fround($29-Math_fround($18*$5))),wasm2js_scratch_load_i32(0));break label$5}HEAP32[$0+100>>2]=0}$8=HEAP32[$1+28>>2]+Math_imul($21,12)|0;HEAP32[$8+4>>2]=$25;HEAP32[$8>>2]=$20;$8=HEAP32[$1+28>>2];HEAPF32[($8+Math_imul(HEAP32[$0+108>>2],12)|0)+8>>2]=$23;$8=$8+Math_imul(HEAP32[$0+112>>2],12)|0;HEAP32[$8+4>>2]=$15;HEAP32[$8>>2]=$14;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+112>>2],12)|0)+8>>2]=$24}function dmRender__DebugRenderer__DebugRenderer_28_29($0){var $1=0;$0=memset($0,0,736);HEAP32[$0+516>>2]=0;HEAP32[$0+520>>2]=0;HEAP32[$0+512>>2]=1065353216;HEAP32[$0+524>>2]=0;HEAP32[$0+528>>2]=0;HEAP32[$0+536>>2]=0;HEAP32[$0+540>>2]=0;HEAP32[$0+532>>2]=1065353216;HEAP32[$0+544>>2]=0;HEAP32[$0+548>>2]=0;HEAP32[$0+556>>2]=0;HEAP32[$0+560>>2]=0;HEAP32[$0+552>>2]=1065353216;HEAP32[$0+564>>2]=0;HEAP32[$0+568>>2]=0;HEAP32[$0+580>>2]=0;HEAP32[$0+584>>2]=0;HEAP32[$0+572>>2]=1065353216;HEAP32[$0+576>>2]=1065353216;HEAP32[$0+588>>2]=0;HEAP32[$0+592>>2]=0;HEAP32[$0+600>>2]=0;HEAP32[$0+604>>2]=0;HEAP32[$0+596>>2]=1065353216;HEAP32[$0+608>>2]=0;HEAP32[$0+612>>2]=0;HEAP32[$0+616>>2]=1065353216;HEAP32[$0+628>>2]=0;HEAP32[$0+632>>2]=0;HEAP32[$0+620>>2]=0;HEAP32[$0+624>>2]=0;HEAP32[$0+508>>2]=-1;HEAP32[$0+636>>2]=1065353216;HEAP32[$0+476>>2]=-1;HEAP32[$0+444>>2]=-1;HEAP32[$0+412>>2]=-1;HEAP32[$0+380>>2]=-1;HEAP32[$0+348>>2]=-1;HEAP32[$0+316>>2]=-1;HEAP32[$0+284>>2]=-1;HEAP32[$0+252>>2]=-1;HEAP32[$0+220>>2]=-1;HEAP32[$0+188>>2]=-1;HEAP32[$0+156>>2]=-1;HEAP32[$0+124>>2]=-1;HEAP32[$0+92>>2]=-1;HEAP32[$0+60>>2]=-1;HEAP32[$0+28>>2]=-1;memset($0+752|0,0,736);$1=$0+1268|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1264>>2]=1065353216;$1=$0+1276|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1288|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1284>>2]=1065353216;$1=$0+1296|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1308|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1304>>2]=1065353216;$1=$0+1316|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1332|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1324|0;HEAP32[$1>>2]=1065353216;HEAP32[$1+4>>2]=1065353216;$1=$0+1340|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1352|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1348>>2]=1065353216;$1=$0+1360|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1368>>2]=1065353216;$1=$0+1380|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+1372|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+1260>>2]=-1;HEAP32[$0+1388>>2]=1065353216;HEAP32[$0+1228>>2]=-1;HEAP32[$0+1196>>2]=-1;HEAP32[$0+1164>>2]=-1;HEAP32[$0+1132>>2]=-1;HEAP32[$0+1100>>2]=-1;HEAP32[$0+1068>>2]=-1;HEAP32[$0+1036>>2]=-1;HEAP32[$0+1004>>2]=-1;HEAP32[$0+972>>2]=-1;HEAP32[$0+940>>2]=-1;HEAP32[$0+908>>2]=-1;HEAP32[$0+876>>2]=-1;HEAP32[$0+844>>2]=-1;HEAP32[$0+812>>2]=-1;HEAP32[$0+780>>2]=-1;memset($0+1504|0,0,736);$1=$0+2020|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2016>>2]=1065353216;$1=$0+2028|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2040|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2036>>2]=1065353216;$1=$0+2048|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2060|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2056>>2]=1065353216;$1=$0+2068|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2084|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2076|0;HEAP32[$1>>2]=1065353216;HEAP32[$1+4>>2]=1065353216;$1=$0+2092|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2104|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2100>>2]=1065353216;$1=$0+2112|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2120>>2]=1065353216;$1=$0+2132|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2124|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2012>>2]=-1;HEAP32[$0+2140>>2]=1065353216;HEAP32[$0+1980>>2]=-1;HEAP32[$0+1948>>2]=-1;HEAP32[$0+1916>>2]=-1;HEAP32[$0+1884>>2]=-1;HEAP32[$0+1852>>2]=-1;HEAP32[$0+1820>>2]=-1;HEAP32[$0+1788>>2]=-1;HEAP32[$0+1756>>2]=-1;HEAP32[$0+1724>>2]=-1;HEAP32[$0+1692>>2]=-1;HEAP32[$0+1660>>2]=-1;HEAP32[$0+1628>>2]=-1;HEAP32[$0+1596>>2]=-1;HEAP32[$0+1564>>2]=-1;HEAP32[$0+1532>>2]=-1;memset($0+2256|0,0,736);$1=$0+2772|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2768>>2]=1065353216;$1=$0+2780|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2792|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2788>>2]=1065353216;$1=$0+2800|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2812|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2808>>2]=1065353216;$1=$0+2820|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2836|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2828|0;HEAP32[$1>>2]=1065353216;HEAP32[$1+4>>2]=1065353216;$1=$0+2844|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2856|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2852>>2]=1065353216;$1=$0+2864|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2872>>2]=1065353216;$1=$0+2884|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$1=$0+2876|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$0+2764>>2]=-1;HEAP32[$0+2892>>2]=1065353216;HEAP32[$0+2732>>2]=-1;HEAP32[$0+2700>>2]=-1;HEAP32[$0+2668>>2]=-1;HEAP32[$0+2636>>2]=-1;HEAP32[$0+2604>>2]=-1;HEAP32[$0+2572>>2]=-1;HEAP32[$0+2540>>2]=-1;HEAP32[$0+2508>>2]=-1;HEAP32[$0+2476>>2]=-1;HEAP32[$0+2444>>2]=-1;HEAP32[$0+2412>>2]=-1;HEAP32[$0+2380>>2]=-1;HEAP32[$0+2348>>2]=-1;HEAP32[$0+2316>>2]=-1;HEAP32[$0+2284>>2]=-1}function dmGameSystem__CopyBuffer_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$1=global$0-160|0;global$0=$1;$7=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($1+144|0,$0,0);label$1:{if((lua_type($0,1)|0)==7){$2=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,1,HEAP32[146720],0);label$3:{if(HEAP32[$2+4>>2]==2){$4=HEAP32[$2>>2]+4|0;break label$3}$4=$2}if(dmBuffer__IsBufferValid_28unsigned_20int_29(HEAP32[$4>>2])){break label$1}luaL_error($0,60872,0)}luaL_typerror($0,1,60592);$2=0}label$5:{if((lua_type($0,3)|0)==7){$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,3,HEAP32[146720],0);label$7:{if(HEAP32[$3+4>>2]==2){$4=HEAP32[$3>>2]+4|0;break label$7}$4=$3}if(dmBuffer__IsBufferValid_28unsigned_20int_29(HEAP32[$4>>2])){break label$5}luaL_error($0,60872,0)}luaL_typerror($0,3,60592);$3=0}if(HEAP32[$2+4>>2]==2){$2=HEAP32[$2>>2]+4|0}$14=HEAP32[$2>>2];if(HEAP32[$3+4>>2]==2){$3=HEAP32[$3>>2]+4|0}$11=HEAP32[$3>>2];$12=luaL_checkinteger($0,2);$15=luaL_checkinteger($0,4);$8=luaL_checkinteger($0,5);label$13:{if(($8|0)<=0){HEAP32[$1>>2]=$8;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62253,$1);break label$13}dmBuffer__GetCount_28unsigned_20int_2c_20unsigned_20int__29($14,$1+140|0);dmBuffer__GetCount_28unsigned_20int_2c_20unsigned_20int__29($11,$1+136|0);$0=HEAP32[$1+140>>2];if(($8+$12|0)>($0|0)){HEAP32[$1+24>>2]=$8;HEAP32[$1+20>>2]=$12;HEAP32[$1+16>>2]=$0;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62282,$1+16|0);break label$13}if(($8+$15|0)>HEAP32[$1+136>>2]){HEAP32[$1+40>>2]=$8;HEAP32[$1+36>>2]=$12;HEAP32[$1+32>>2]=$0;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62379,$1+32|0);break label$13}dmBuffer__GetNumStreams_28unsigned_20int_2c_20unsigned_20int__29($11,$1+132|0);$0=HEAP32[$1+132>>2];$9=$1-Math_imul($0,96)|0;global$0=$9;$2=0;if(!$0){break label$13}while(1){$10=$2<<1;$3=Math_imul($10|1,48)+$9|0;dmBuffer__GetStreamName_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long_20long__29($11,$2,$3+8|0);$4=HEAP32[$3+12>>2];$0=$4;$5=Math_imul($2,96)+$9|0;$13=$5+36|0;$6=HEAP32[$3+8>>2];$5=dmBuffer__GetStream_28unsigned_20int_2c_20unsigned_20long_20long_2c_20void___2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__29($14,$6,$0,$5+16|0,$5+28|0,$13,$5+32|0);if($5){if(($5|0)==6){HEAP32[$1+64>>2]=dmHashReverseSafe64($6,$0);$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62475,$1- -64|0);break label$13}$0=$1;if($5>>>0<=8){$4=HEAP32[($5<<2)+558112>>2]}else{$4=134896}HEAP32[$0+48>>2]=$4;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62538,$1+48|0);break label$13}$5=$3+36|0;dmBuffer__GetStream_28unsigned_20int_2c_20unsigned_20long_20long_2c_20void___2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__29($11,$6,$0,$3+16|0,$3+28|0,$5,$3+32|0);$10=Math_imul($10,48)+$9|0;$4=$10;dmBuffer__GetStreamType_28unsigned_20int_2c_20unsigned_20long_20long_2c_20dmBuffer__ValueType__2c_20unsigned_20int__29($14,$6,$0,$10+40|0,$13);dmBuffer__GetStreamType_28unsigned_20int_2c_20unsigned_20long_20long_2c_20dmBuffer__ValueType__2c_20unsigned_20int__29($11,$6,$0,$3+40|0,$5);if(HEAP32[$10+40>>2]!=HEAP32[$3+40>>2]){$8=dmHashReverseSafe64($6,$0);$0=HEAP32[$4+40>>2];label$23:{if($0>>>0<=8){$0=HEAP32[($0<<2)+558148>>2];break label$23}$0=135080}$4=$1;$3=HEAP32[$3+40>>2];label$25:{if($3>>>0<=8){$2=HEAP32[($3<<2)+558148>>2];break label$25}$2=135080}HEAP32[$4+120>>2]=$2;HEAP32[$1+116>>2]=$0;HEAP32[$1+112>>2]=$8;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62600,$1+112|0);break label$13}if(HEAP32[$13>>2]!=HEAP32[$5>>2]){$0=dmHashReverseSafe64($6,$0);$2=HEAP32[$13>>2];HEAP32[$1+104>>2]=HEAP32[$5>>2];HEAP32[$1+100>>2]=$2;HEAP32[$1+96>>2]=$0;$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62670,$1+96|0);break label$13}$2=$2+1|0;$0=HEAP32[$1+132>>2];if($2>>>0<$0>>>0){continue}break}$2=0;if(!$0){break label$13}$0=0;while(1){$6=Math_imul($0,96)+$9|0;$3=HEAP32[$6+36>>2];$4=$6;$6=$0<<1;if(dmGameSystem__CopyStreamInternal_28dmGameSystem__BufferStream__2c_20unsigned_20int_2c_20dmGameSystem__BufferStream_20const__2c_20unsigned_20int_2c_20unsigned_20int_29($4,Math_imul($3,$12),Math_imul($6|1,48)+$9|0,Math_imul($3,$15),Math_imul($3,$8))){$0=$0+1|0;if($0>>>0>2]){continue}break label$13}break}HEAP32[$1+80>>2]=HEAP32[(Math_imul($6,48)+$9|0)+40>>2];$2=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($7,62223,$1+80|0)}dmScript__LuaStackCheck___LuaStackCheck_28_29($7);global$0=$1+160|0;return $2|0}function UpsampleRgbLinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$11=Math_imul(HEAPU8[$0|0],19077)>>>8|0;$14=HEAPU8[$4|0]|HEAPU8[$5|0]<<16;$10=HEAPU8[$2|0]|HEAPU8[$3|0]<<16;$12=($14+Math_imul($10,3)|0)+131074|0;$17=$12>>>18|0;$16=$11+(Math_imul($17,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$6|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$6+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$6+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255;if($1){$11=Math_imul(HEAPU8[$1|0],19077)>>>8|0;$12=(Math_imul($14,3)+$10|0)+131074|0;$17=$12>>>18|0;$16=$11+(Math_imul($17,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$7|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$7+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$7+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255}$16=$8+ -1|0;label$3:{if(($8|0)<3){$11=$14;$12=$10;break label$3}$11=$16>>1;$26=($11|0)>1?$11:1;$17=1;while(1){$11=HEAPU8[$4+$17|0]|HEAPU8[$5+$17|0]<<16;$12=HEAPU8[$2+$17|0]|HEAPU8[$3+$17|0]<<16;$18=$14+$12|0;$9=($11+($18+$10|0)|0)+524296|0;$22=$17<<1;$19=$22+ -1|0;$23=Math_imul($19,3);$13=$23+$6|0;$25=$9+($18<<1)>>>3|0;$20=$25+$10|0;$24=$20>>>17|0;$18=Math_imul(HEAPU8[$0+$19|0],19077)>>>8|0;$15=(Math_imul($24,26149)>>>8|0)+$18|0;$21=$15+ -14234|0;HEAP8[$13|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<14234?0:255;$20=$20>>>1&255;$15=$18+(Math_imul($20,33050)>>>8|0)|0;$21=$15+ -17685|0;HEAP8[$13+2|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<17685?0:255;$15=$13;$13=$18-(Math_imul($20,6419)>>>8|0)-(Math_imul($24,13320)>>>8)|0;$18=$13+8708|0;HEAP8[$15+1|0]=$18>>>0<16384?$18>>>6|0:($13|0)<-8708?0:255;$18=Math_imul($17,6);$13=$18+$6|0;$9=$9+($10+$11<<1)>>>3|0;$20=$9+$12|0;$24=$20>>>1&255;$10=Math_imul(HEAPU8[$0+$22|0],19077)>>>8|0;$15=(Math_imul($24,33050)>>>8|0)+$10|0;$21=$15+ -17685|0;HEAP8[$13+2|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<17685?0:255;$20=$20>>>17|0;$15=$10+(Math_imul($20,26149)>>>8|0)|0;$21=$15+ -14234|0;HEAP8[$13|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<14234?0:255;$15=$13;$10=$10-(Math_imul($24,6419)>>>8|0)-(Math_imul($20,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255;if($1){$10=$7+$23|0;$9=$9+$14|0;$13=$9>>>17|0;$14=Math_imul(HEAPU8[$1+$19|0],19077)>>>8|0;$19=(Math_imul($13,26149)>>>8|0)+$14|0;$23=$19+ -14234|0;HEAP8[$10|0]=$23>>>0<16384?$23>>>6|0:$19>>>0<14234?0:255;$9=$9>>>1&255;$19=$14+(Math_imul($9,33050)>>>8|0)|0;$23=$19+ -17685|0;HEAP8[$10+2|0]=$23>>>0<16384?$23>>>6|0:$19>>>0<17685?0:255;$15=$10;$10=$14-(Math_imul($9,6419)>>>8|0)-(Math_imul($13,13320)>>>8)|0;$14=$10+8708|0;HEAP8[$15+1|0]=$14>>>0<16384?$14>>>6|0:($10|0)<-8708?0:255;$10=$7+$18|0;$14=Math_imul(HEAPU8[$1+$22|0],19077)>>>8|0;$9=$11+$25|0;$19=$9>>>1&255;$22=$14+(Math_imul($19,33050)>>>8|0)|0;$13=$22+ -17685|0;HEAP8[$10+2|0]=$13>>>0<16384?$13>>>6|0:$22>>>0<17685?0:255;$9=$9>>>17|0;$22=$14+(Math_imul($9,26149)>>>8|0)|0;$13=$22+ -14234|0;HEAP8[$10|0]=$13>>>0<16384?$13>>>6|0:$22>>>0<14234?0:255;$13=$10;$10=$14-(Math_imul($19,6419)>>>8|0)-(Math_imul($9,13320)>>>8)|0;$14=$10+8708|0;HEAP8[$13+1|0]=$14>>>0<16384?$14>>>6|0:($10|0)<-8708?0:255}$9=($17|0)!=($26|0);$17=$17+1|0;$10=$12;$14=$11;if($9){continue}break}}label$7:{if($8&1){break label$7}$3=Math_imul($16,3);$2=$3+$6|0;$0=Math_imul(HEAPU8[$0+$16|0],19077)>>>8|0;$4=(Math_imul($12,3)+$11|0)+131074|0;$5=$4>>>18|0;$6=$0+(Math_imul($5,26149)>>>8|0)|0;$8=$6+ -14234|0;HEAP8[$2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<14234?0:255;$4=$4>>>2&255;$6=$0+(Math_imul($4,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$2+2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:255;$6=$2;$0=$0-(Math_imul($4,6419)>>>8|0)-(Math_imul($5,13320)>>>8)|0;$2=$0+8708|0;HEAP8[$6+1|0]=$2>>>0<16384?$2>>>6|0:($0|0)<-8708?0:255;if(!$1){break label$7}$0=$3+$7|0;$1=Math_imul(HEAPU8[$1+$16|0],19077)>>>8|0;$2=(Math_imul($11,3)+$12|0)+131074|0;$3=$2>>>18|0;$4=$1+(Math_imul($3,26149)>>>8|0)|0;$5=$4+ -14234|0;HEAP8[$0|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<14234?0:255;$2=$2>>>2&255;$4=$1+(Math_imul($2,33050)>>>8|0)|0;$5=$4+ -17685|0;HEAP8[$0+2|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<17685?0:255;$4=$0;$0=$1-(Math_imul($2,6419)>>>8|0)-(Math_imul($3,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$4+1|0]=$1>>>0<16384?$1>>>6|0:($0|0)<-8708?0:255}return}__assert_fail(182795,182809,96,182838);abort()}function UpsampleBgrLinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$11=Math_imul(HEAPU8[$0|0],19077)>>>8|0;$14=HEAPU8[$4|0]|HEAPU8[$5|0]<<16;$10=HEAPU8[$2|0]|HEAPU8[$3|0]<<16;$12=($14+Math_imul($10,3)|0)+131074|0;$17=$12>>>18|0;$16=$11+(Math_imul($17,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$6+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$6|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$6+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255;if($1){$11=Math_imul(HEAPU8[$1|0],19077)>>>8|0;$12=(Math_imul($14,3)+$10|0)+131074|0;$17=$12>>>18|0;$16=$11+(Math_imul($17,26149)>>>8|0)|0;$9=$16+ -14234|0;HEAP8[$7+2|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<14234?0:255;$12=$12>>>2&255;$16=$11+(Math_imul($12,33050)>>>8|0)|0;$9=$16+ -17685|0;HEAP8[$7|0]=$9>>>0<16384?$9>>>6|0:$16>>>0<17685?0:255;$11=$11-(Math_imul($12,6419)>>>8|0)-(Math_imul($17,13320)>>>8)|0;$12=$11+8708|0;HEAP8[$7+1|0]=$12>>>0<16384?$12>>>6|0:($11|0)<-8708?0:255}$16=$8+ -1|0;label$3:{if(($8|0)<3){$11=$14;$12=$10;break label$3}$11=$16>>1;$26=($11|0)>1?$11:1;$17=1;while(1){$11=HEAPU8[$4+$17|0]|HEAPU8[$5+$17|0]<<16;$12=HEAPU8[$2+$17|0]|HEAPU8[$3+$17|0]<<16;$18=$14+$12|0;$9=($11+($18+$10|0)|0)+524296|0;$22=$17<<1;$19=$22+ -1|0;$23=Math_imul($19,3);$13=$23+$6|0;$25=$9+($18<<1)>>>3|0;$20=$25+$10|0;$24=$20>>>17|0;$18=Math_imul(HEAPU8[$0+$19|0],19077)>>>8|0;$15=(Math_imul($24,26149)>>>8|0)+$18|0;$21=$15+ -14234|0;HEAP8[$13+2|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<14234?0:255;$20=$20>>>1&255;$15=$18+(Math_imul($20,33050)>>>8|0)|0;$21=$15+ -17685|0;HEAP8[$13|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<17685?0:255;$15=$13;$13=$18-(Math_imul($20,6419)>>>8|0)-(Math_imul($24,13320)>>>8)|0;$18=$13+8708|0;HEAP8[$15+1|0]=$18>>>0<16384?$18>>>6|0:($13|0)<-8708?0:255;$18=Math_imul($17,6);$13=$18+$6|0;$9=$9+($10+$11<<1)>>>3|0;$20=$9+$12|0;$24=$20>>>17|0;$10=Math_imul(HEAPU8[$0+$22|0],19077)>>>8|0;$15=(Math_imul($24,26149)>>>8|0)+$10|0;$21=$15+ -14234|0;HEAP8[$13+2|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<14234?0:255;$20=$20>>>1&255;$15=$10+(Math_imul($20,33050)>>>8|0)|0;$21=$15+ -17685|0;HEAP8[$13|0]=$21>>>0<16384?$21>>>6|0:$15>>>0<17685?0:255;$15=$13;$10=$10-(Math_imul($20,6419)>>>8|0)-(Math_imul($24,13320)>>>8)|0;$13=$10+8708|0;HEAP8[$15+1|0]=$13>>>0<16384?$13>>>6|0:($10|0)<-8708?0:255;if($1){$10=$7+$23|0;$9=$9+$14|0;$13=$9>>>17|0;$14=Math_imul(HEAPU8[$1+$19|0],19077)>>>8|0;$19=(Math_imul($13,26149)>>>8|0)+$14|0;$23=$19+ -14234|0;HEAP8[$10+2|0]=$23>>>0<16384?$23>>>6|0:$19>>>0<14234?0:255;$9=$9>>>1&255;$19=$14+(Math_imul($9,33050)>>>8|0)|0;$23=$19+ -17685|0;HEAP8[$10|0]=$23>>>0<16384?$23>>>6|0:$19>>>0<17685?0:255;$15=$10;$10=$14-(Math_imul($9,6419)>>>8|0)-(Math_imul($13,13320)>>>8)|0;$14=$10+8708|0;HEAP8[$15+1|0]=$14>>>0<16384?$14>>>6|0:($10|0)<-8708?0:255;$10=$7+$18|0;$14=Math_imul(HEAPU8[$1+$22|0],19077)>>>8|0;$9=$11+$25|0;$19=$9>>>17|0;$22=$14+(Math_imul($19,26149)>>>8|0)|0;$13=$22+ -14234|0;HEAP8[$10+2|0]=$13>>>0<16384?$13>>>6|0:$22>>>0<14234?0:255;$9=$9>>>1&255;$22=$14+(Math_imul($9,33050)>>>8|0)|0;$13=$22+ -17685|0;HEAP8[$10|0]=$13>>>0<16384?$13>>>6|0:$22>>>0<17685?0:255;$13=$10;$10=$14-(Math_imul($9,6419)>>>8|0)-(Math_imul($19,13320)>>>8)|0;$14=$10+8708|0;HEAP8[$13+1|0]=$14>>>0<16384?$14>>>6|0:($10|0)<-8708?0:255}$9=($17|0)!=($26|0);$17=$17+1|0;$10=$12;$14=$11;if($9){continue}break}}label$7:{if($8&1){break label$7}$3=Math_imul($16,3);$2=$3+$6|0;$0=Math_imul(HEAPU8[$0+$16|0],19077)>>>8|0;$4=(Math_imul($12,3)+$11|0)+131074|0;$5=$4>>>18|0;$6=$0+(Math_imul($5,26149)>>>8|0)|0;$8=$6+ -14234|0;HEAP8[$2+2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<14234?0:255;$4=$4>>>2&255;$6=$0+(Math_imul($4,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$2|0]=$8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:255;$6=$2;$0=$0-(Math_imul($4,6419)>>>8|0)-(Math_imul($5,13320)>>>8)|0;$2=$0+8708|0;HEAP8[$6+1|0]=$2>>>0<16384?$2>>>6|0:($0|0)<-8708?0:255;if(!$1){break label$7}$0=$3+$7|0;$1=Math_imul(HEAPU8[$1+$16|0],19077)>>>8|0;$2=(Math_imul($11,3)+$12|0)+131074|0;$3=$2>>>18|0;$4=$1+(Math_imul($3,26149)>>>8|0)|0;$5=$4+ -14234|0;HEAP8[$0+2|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<14234?0:255;$2=$2>>>2&255;$4=$1+(Math_imul($2,33050)>>>8|0)|0;$5=$4+ -17685|0;HEAP8[$0|0]=$5>>>0<16384?$5>>>6|0:$4>>>0<17685?0:255;$4=$0;$0=$1-(Math_imul($2,6419)>>>8|0)-(Math_imul($3,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$4+1|0]=$1>>>0<16384?$1>>>6|0:($0|0)<-8708?0:255}return}__assert_fail(182795,182809,97,182879);abort()}function __intscan($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$11=global$0-16|0;global$0=$11;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{if($1>>>0<=36){while(1){$5=HEAP32[$0+4>>2];label$9:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$9}$5=__shgetc($0)}if(($5|0)==32|$5+ -9>>>0<5){continue}break}$8=$5+ -43|0;label$11:{if($8>>>0>2|!($8-1)){break label$11}$12=($5|0)==45?-1:0;$5=HEAP32[$0+4>>2];if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$11}$5=__shgetc($0)}label$13:{if(!($1&-17|($5|0)!=48)){$5=HEAP32[$0+4>>2];label$15:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$15}$5=__shgetc($0)}if(($5&-33)==88){$1=HEAP32[$0+4>>2];label$18:{if($1>>>0>2]){HEAP32[$0+4>>2]=$1+1;$5=HEAPU8[$1|0];break label$18}$5=__shgetc($0)}$1=16;if(HEAPU8[$5+218769|0]<16){break label$5}if(!HEAP32[$0+104>>2]){$3=0;$4=0;if($2){break label$1}break label$2}$1=HEAP32[$0+4>>2];HEAP32[$0+4>>2]=$1+ -1;if(!$2){break label$2}HEAP32[$0+4>>2]=$1+ -2;$3=0;$4=0;break label$1}if($1){break label$13}$1=8;break label$5}$1=$1?$1:10;if($1>>>0>HEAPU8[$5+218769|0]){break label$13}if(HEAP32[$0+104>>2]){HEAP32[$0+4>>2]=HEAP32[$0+4>>2]+ -1}$3=0;$4=0;__shlim($0,0,0);HEAP32[310273]=28;break label$1}if(($1|0)!=10){break label$5}$2=$5+ -48|0;if($2>>>0<=9){$1=0;while(1){$6=Math_imul($1,10);$1=HEAP32[$0+4>>2];label$24:{if($1>>>0>2]){HEAP32[$0+4>>2]=$1+1;$5=HEAPU8[$1|0];break label$24}$5=__shgetc($0)}$1=$2+$6|0;$2=$5+ -48|0;if($1>>>0<429496729?$2>>>0<=9:0){continue}break}$7=$1;$6=0}if($2>>>0>9){break label$6}$8=__wasm_i64_mul($7,0,10,0);$1=i64toi32_i32$HIGH_BITS;while(1){$5=HEAP32[$0+4>>2];label$27:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$27}$5=__shgetc($0)}$6=$1;$1=$2+$8|0;if($1>>>0<$2>>>0){$6=$6+1|0}$7=$1;$2=$5+ -48|0;if(($6|0)==429496729&$1>>>0>=2576980378|$6>>>0>429496729|$2>>>0>9){break label$6}$8=__wasm_i64_mul($7,$6,10,0);$1=i64toi32_i32$HIGH_BITS;if(($1|0)==-1&$8>>>0<=($2^-1)>>>0|$1>>>0<4294967295){continue}break}$1=10;break label$4}HEAP32[310273]=28;$3=0;$4=0;break label$1}$1=10;if($2>>>0<=9){break label$4}break label$3}if($1+ -1&$1){$2=HEAPU8[$5+218769|0];if($1>>>0>$2>>>0){while(1){$7=Math_imul($1,$7)+$2|0;$10=$7>>>0<=119304646;$8=$1;$5=HEAP32[$0+4>>2];label$32:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$32}$5=__shgetc($0)}$2=HEAPU8[$5+218769|0];if($8>>>0>$2>>>0?$10:0){continue}break}}if($1>>>0<=$2>>>0){break label$4}$8=$1;while(1){$9=__wasm_i64_mul($7,$6,$8,0);$10=i64toi32_i32$HIGH_BITS;$2=$2&255;if(($10|0)==-1&$9>>>0>($2^-1)>>>0|$10>>>0>4294967295){break label$4}$5=HEAP32[$0+4>>2];label$35:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$35}$5=__shgetc($0)}$6=$10;$7=$2+$9|0;if($7>>>0<$2>>>0){$6=$6+1|0}$2=HEAPU8[$5+218769|0];if($1>>>0<=$2>>>0){break label$4}__multi3($11,$8,0,$7,$6);if(!(HEAP32[$11+8>>2]|HEAP32[$11+12>>2])){continue}break}break label$4}$8=HEAP8[(Math_imul($1,23)>>>5&7)+219025|0];$2=HEAPU8[$5+218769|0];if($1>>>0>$2>>>0){while(1){$7=$7<<$8|$2;$13=$7>>>0<=134217727;$9=$1;$5=HEAP32[$0+4>>2];label$39:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$39}$5=__shgetc($0)}$2=HEAPU8[$5+218769|0];if($9>>>0>$2>>>0?$13:0){continue}break}}$9=$8&31;if(32<=($8&63)>>>0){$9=-1>>>$9|0}else{$10=-1>>>$9|0;$9=(1<<$9)-1<<32-$9|-1>>>$9}if(!$10&$9>>>0<$7>>>0|$10>>>0<0|$1>>>0<=$2>>>0){break label$4}while(1){$13=$2&255;$2=$8;$5=$2&31;if(32<=($2&63)>>>0){$6=$7<<$5;$2=0}else{$6=(1<<$5)-1&$7>>>32-$5|$6<<$5;$2=$7<<$5}$7=$13|$2;$2=HEAP32[$0+4>>2];label$42:{if($2>>>0>2]){HEAP32[$0+4>>2]=$2+1;$5=HEAPU8[$2|0];break label$42}$5=__shgetc($0)}if(($6|0)==($10|0)&$7>>>0>$9>>>0|$6>>>0>$10>>>0){break label$4}$2=HEAPU8[$5+218769|0];if($1>>>0>$2>>>0){continue}break}}if($1>>>0<=HEAPU8[$5+218769|0]){break label$3}while(1){$2=$1;$5=HEAP32[$0+4>>2];label$45:{if($5>>>0>2]){HEAP32[$0+4>>2]=$5+1;$5=HEAPU8[$5|0];break label$45}$5=__shgetc($0)}if($2>>>0>HEAPU8[$5+218769|0]){continue}break}HEAP32[310273]=68;$12=$3&1?0:$12;$7=$3;$6=$4}if(HEAP32[$0+104>>2]){HEAP32[$0+4>>2]=HEAP32[$0+4>>2]+ -1}label$48:{if(($4|0)==($6|0)&$7>>>0<$3>>>0|$6>>>0<$4>>>0){break label$48}if(!($12|$3&1)){HEAP32[310273]=68;$4=$4+ -1|0;$0=$3+ -1|0;if($0>>>0<4294967295){$4=$4+1|0}$3=$0;break label$1}if(($4|0)==($6|0)&$7>>>0<=$3>>>0|$6>>>0<$4>>>0){break label$48}HEAP32[310273]=68;break label$1}$0=$12;$1=$0^$7;$3=$1-$0|0;$2=$0>>31;$4=($2^$6)-($2+($1>>>0<$0>>>0)|0)|0;break label$1}$3=0;$4=0;__shlim($0,0,0)}global$0=$11+16|0;i64toi32_i32$HIGH_BITS=$4;return $3}function dmGameObject__Animate_28dmGameObject__CollectionHandle__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20dmGameObject__PropertyVar__2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12){var $13=0,$14=0,$15=0,$16=Math_fround(0),$17=0,$18=0,$19=0,$20=Math_fround(0),$21=0,$22=0,$23=0;$13=global$0-240|0;global$0=$13;label$1:{if(!$1){$14=-6;break label$1}$15=dmGameObject__PropertyDesc__PropertyDesc_28_29($13+160|0);$14=dmGameObject__GetProperty_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__29($1,$2,$3,$4,$5,$15);if($14){break label$1}$14=-9;if(HEAPU8[$15+76|0]){break label$1}$17=HEAP32[$7>>2];$18=HEAP32[$15+32>>2];if(($17|0)!=($18|0)){$14=-4;if($18+ -3>>>0>1|$17){break label$1}$16=Math_fround(HEAPF64[$7+8>>3]);label$4:{if(($18|0)==3){HEAPF32[$13+104>>2]=$16;HEAPF32[$13+100>>2]=$16;HEAPF32[$13+96>>2]=$16;HEAP32[$13+120>>2]=3;HEAP32[$13+128>>2]=HEAP32[$13+96>>2];HEAP32[$13+132>>2]=HEAP32[$13+100>>2];HEAP32[$13+136>>2]=HEAP32[$13+104>>2];break label$4}HEAPF32[$13+92>>2]=$16;HEAPF32[$13+88>>2]=$16;HEAPF32[$13+84>>2]=$16;HEAPF32[$13+80>>2]=$16;dmGameObject__PropertyVar__PropertyVar_28Vectormath__Aos__Vector4_29($13+120|0,$13+80|0)}$14=HEAP32[$13+124>>2];HEAP32[$7>>2]=HEAP32[$13+120>>2];HEAP32[$7+4>>2]=$14;$14=HEAP32[$13+156>>2];HEAP32[$7+32>>2]=HEAP32[$13+152>>2];HEAP32[$7+36>>2]=$14;$14=HEAP32[$13+148>>2];HEAP32[$7+24>>2]=HEAP32[$13+144>>2];HEAP32[$7+28>>2]=$14;$14=HEAP32[$13+140>>2];HEAP32[$7+16>>2]=HEAP32[$13+136>>2];HEAP32[$7+20>>2]=$14;$14=HEAP32[$13+132>>2];HEAP32[$7+8>>2]=HEAP32[$13+128>>2];HEAP32[$7+12>>2]=$14;$17=HEAP32[$15+32>>2]}$14=-3;if($17>>>0>5){break label$1}label$6:{label$7:{switch($17-1|0){case 3:case 4:$17=4;case 2:$0=dmGameObject__GetWorld_28dmGameObject__CollectionHandle__29($0);HEAP32[$13+72>>2]=HEAP32[$8+16>>2];$18=HEAP32[$8+12>>2];$14=$13- -64|0;HEAP32[$14>>2]=HEAP32[$8+8>>2];HEAP32[$14+4>>2]=$18;$14=HEAP32[$8+4>>2];HEAP32[$13+56>>2]=HEAP32[$8>>2];HEAP32[$13+60>>2]=$14;$14=-7;if(!dmGameObject__PlayAnimation_28dmGameObject__AnimWorld__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20float__2c_20float_2c_20float_2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__2c_20bool_29($0,$1,$2,$3,$4,$5,$6,0,Math_fround(0),Math_fround(0),$13+56|0,$9,$10,$11,$12,1)){break label$1}HEAP32[$8+8>>2]=0;$11=$7+8|0;$12=$15+40|0;$7=0;while(1){$4=$7<<2;$16=HEAPF32[$4+$11>>2];$20=HEAPF32[$4+$12>>2];$5=$15+($7<<3)|0;$18=HEAP32[$5>>2];$21=HEAP32[$5+4>>2];$5=HEAP32[$15+72>>2];HEAP32[$13+48>>2]=HEAP32[$8+16>>2];$19=HEAP32[$8+12>>2];HEAP32[$13+40>>2]=HEAP32[$8+8>>2];HEAP32[$13+44>>2]=$19;$19=HEAP32[$8+4>>2];HEAP32[$13+32>>2]=HEAP32[$8>>2];HEAP32[$13+36>>2]=$19;if(!dmGameObject__PlayAnimation_28dmGameObject__AnimWorld__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20float__2c_20float_2c_20float_2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__2c_20bool_29($0,$1,$2,$3,$18,$21,$6,$5?$4+$5|0:0,$20,$16,$13+32|0,$9,$10,0,0,0)){break label$1}$7=$7+1|0;if(($17|0)!=($7|0)){continue}break}break label$6;case 0:case 1:break label$1;default:break label$7}}$0=dmGameObject__GetWorld_28dmGameObject__CollectionHandle__29($0);$22=HEAPF64[$15+40>>3];$15=HEAP32[$15+72>>2];$23=HEAPF64[$7+8>>3];HEAP32[$13+24>>2]=HEAP32[$8+16>>2];$7=HEAP32[$8+12>>2];HEAP32[$13+16>>2]=HEAP32[$8+8>>2];HEAP32[$13+20>>2]=$7;$7=HEAP32[$8+4>>2];HEAP32[$13+8>>2]=HEAP32[$8>>2];HEAP32[$13+12>>2]=$7;$14=-7;if(!dmGameObject__PlayAnimation_28dmGameObject__AnimWorld__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__Playback_2c_20float__2c_20float_2c_20float_2c_20dmEasing__Curve_2c_20float_2c_20float_2c_20void_20_28__29_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__2c_20bool_29($0,$1,$2,$3,$4,$5,$6,$15,Math_fround($22),Math_fround($23),$13+8|0,$9,$10,$11,$12,0)){break label$1}}$14=0}global$0=$13+240|0;return $14}function dmGameSystem__RenderSpineNodes_28dmGui__Scene__2c_20dmGui__RenderEntry_20const__2c_20Vectormath__Aos__Matrix4_20const__2c_20float_20const__2c_20dmGui__StencilScope_20const___2c_20unsigned_20int_2c_20void__29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;$9=global$0-112|0;global$0=$9;$10=HEAP32[$6+8>>2];$16=HEAP32[$1+8>>2];label$1:{label$2:{label$3:{label$4:{label$5:{if((dmGui__GetNodeType_28dmGui__Scene__2c_20unsigned_20int_29($0,$16)|0)==4){$12=HEAP32[$10>>2];$13=(HEAP32[$10+4>>2]-$12|0)/752|0;$7=$13+1|0;if((HEAP32[$10+8>>2]-$12|0)/752>>>0<$7>>>0){break label$1}$7=Math_imul($7,752);HEAP32[$10+4>>2]=$7+$12;if(($7|0)/752>>>0<=$13>>>0){break label$5}$8=HEAP32[$6+12>>2];HEAP32[$6+12>>2]=$8+1;$7=$12+Math_imul($13,752)|0;HEAP32[$7+736>>2]=$8;if($5){$8=0;while(1){$15=HEAP32[(($8<<4)+$1|0)+8>>2];if(!dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($0,$15)){$14=dmRig__GetVertexCount_28dmRig__RigInstance__29(dmGui__GetNodeRigInstance_28dmGui__Scene__2c_20unsigned_20int_29($0,$15))+$14|0}$8=$8+1|0;if(($8|0)!=($5|0)){continue}break}}dmRender__RenderObject__Init_28_29($7);HEAP32[$7+644>>2]=HEAP32[$10+32>>2];$8=HEAP32[$10+36>>2];HEAP32[$7+688>>2]=1;HEAP32[$7+640>>2]=$8;$15=$10+44|0;$8=HEAP32[$15>>2];$11=HEAP32[$10+40>>2];HEAP32[$7+728>>2]=$14;HEAP32[$7+724>>2]=($8-$11|0)/36;HEAP32[$7+652>>2]=HEAP32[$6+4>>2];$8=dmGui__GetNodeBlendMode_28dmGui__Scene__2c_20unsigned_20int_29($0,$16);if($8>>>0>=4){break label$4}$7=$12+Math_imul($13,752)|0;$8=$8<<2;HEAP32[$7+700>>2]=HEAP32[$8+42696>>2];HEAP32[$7+696>>2]=HEAP32[$8+42680>>2];$8=HEAPU8[$7+734|0];HEAP8[$7+734|0]=$8|1;$4=HEAP32[$4>>2];HEAP8[$7+734|0]=$8|3;label$10:{label$11:{if($4){HEAP32[$7+704>>2]=5;HEAP32[$7+716>>2]=2;HEAP32[$7+708>>2]=0;HEAP32[$7+712>>2]=2;$8=$7+720|0;$11=HEAPU8[$4|0]|HEAP32[$7+720>>2]&-256;HEAP32[$8>>2]=$11;$11=$11&-65281|HEAPU8[$4+1|0]<<8;HEAP32[$7+720>>2]=$11;$11=$11&-16711681|HEAPU8[$4+2|0]<<16;HEAP32[$7+720>>2]=$11;HEAP32[$7+720>>2]=$11&-251658241|(HEAPU8[$4+3|0]&15)<<24;if(!HEAPU8[$6+16|0]){break label$10}HEAP8[$6+16|0]=0;$4=HEAP32[$7+720>>2]|268435456;break label$11}HEAP32[$7+704>>2]=7;HEAP32[$7+716>>2]=0;HEAP32[$7+708>>2]=0;HEAP32[$7+712>>2]=0;$8=$7+720|0;$4=HEAP32[$8>>2]&-268435456|268435200}HEAP32[$8>>2]=$4}$8=dmGui__GetNodeTexture_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__NodeTextureType__29($0,$16,$9+32|0);if(HEAP32[$9+32>>2]==2){if(!$8){break label$3}$8=HEAP32[$8+48>>2]}label$13:{if($8){HEAP32[($12+Math_imul($13,752)|0)+656>>2]=$8;break label$13}HEAP32[($12+Math_imul($13,752)|0)+656>>2]=HEAP32[$10+56>>2]}$12=$10+40|0;$13=$10+48|0;$6=HEAP32[$13>>2];$4=HEAP32[$10+44>>2];if(($6-$4|0)/36>>>0<$14>>>0){if(HEAP8[$10+52|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29((($6-HEAP32[$12>>2]|0)/36|0)+($14>>>0>128?$14:128)|0,36,$12,$13,$15);$4=HEAP32[$15>>2]}if($5){$7=$9+32|4;$8=0;while(1){$6=HEAP32[(($8<<4)+$1|0)+8>>2];if(!dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($0,$6)){$16=HEAP32[$10+80>>2];$11=dmGui__GetNodeRigInstance_28dmGui__Scene__2c_20unsigned_20int_29($0,$6);$14=HEAP32[($8<<2)+$3>>2];dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($9+96|0,$0,$6,3);HEAP32[$9+108>>2]=$14;$17=HEAP32[$9+96>>2];$18=HEAP32[$9+100>>2];$6=HEAP32[$9+104>>2];HEAP32[$9+32>>2]=1065353216;HEAP32[$7+8>>2]=0;HEAP32[$7+12>>2]=0;HEAP32[$7>>2]=0;HEAP32[$7+4>>2]=0;HEAP32[$9+52>>2]=1065353216;HEAP32[$9+64>>2]=0;HEAP32[$9+68>>2]=0;HEAP32[$9+56>>2]=0;HEAP32[$9+60>>2]=0;HEAP32[$9+72>>2]=1065353216;HEAP32[$9+84>>2]=0;HEAP32[$9+88>>2]=0;HEAP32[$9+76>>2]=0;HEAP32[$9+80>>2]=0;HEAP32[$9+28>>2]=$14;HEAP32[$9+24>>2]=$6;HEAP32[$9+16>>2]=$17;HEAP32[$9+20>>2]=$18;HEAP32[$9+92>>2]=1065353216;$4=dmRig__GenerateVertexData_28dmRig__RigContext__2c_20dmRig__RigInstance__2c_20Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Vector4_2c_20dmRig__RigVertexFormat_2c_20void__29($16,$11,($8<<6)+$2|0,$9+32|0,$9+16|0,0,$4)}$8=$8+1|0;if(($8|0)!=($5|0)){continue}break}}$0=HEAP32[$12>>2];$1=($4-$0|0)/36|0;if((HEAP32[$13>>2]-$0|0)/36>>>0<$1>>>0){break label$1}HEAP32[$15>>2]=$0+Math_imul($1,36);global$0=$9+112|0;return}__assert_fail(41626,41335,993,41662);abort()}__assert_fail(42525,42362,430,42202);abort()}HEAP32[$9>>2]=$8;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,40265,42213,$9);__assert_fail(42237,41335,726,42239);abort()}__assert_fail(42252,41335,780,42268);abort()}__assert_fail(42438,42362,444,42513);abort()}__assert_fail(42578,42362,457,42597);abort()}function b2Island__SolveTOI_28b2TimeStep_20const__2c_20int_2c_20int_29($0,$1,$2,$3){var $4=0,$5=0,$6=Math_fround(0),$7=0,$8=0,$9=0,$10=0,$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0);$8=global$0-128|0;global$0=$8;$4=HEAP32[$0+28>>2];label$1:{if(($4|0)>($2|0)){label$3:{if(($4|0)>($3|0)){if(($4|0)>0){break label$3}$9=HEAP32[$0+24>>2];break label$1}__assert_fail(97106,97056,398,97097);abort()}while(1){$10=HEAP32[HEAP32[$0+8>>2]+($7<<2)>>2];$4=HEAP32[$10+48>>2];$11=Math_imul($7,12);$5=$11+HEAP32[$0+20>>2]|0;HEAP32[$5>>2]=HEAP32[$10+44>>2];HEAP32[$5+4>>2]=$4;HEAP32[($11+HEAP32[$0+20>>2]|0)+8>>2]=HEAP32[$10+56>>2];$4=HEAP32[$10+68>>2];$5=$11+HEAP32[$0+24>>2]|0;HEAP32[$5>>2]=HEAP32[$10+64>>2];HEAP32[$5+4>>2]=$4;$9=HEAP32[$0+24>>2];HEAP32[($11+$9|0)+8>>2]=HEAP32[$10+72>>2];$7=$7+1|0;if(($7|0)>2]){continue}break}break label$1}__assert_fail(97032,97056,397,97097);abort()}HEAP32[$8+80>>2]=HEAP32[$0+12>>2];HEAP32[$8+84>>2]=HEAP32[$0+36>>2];HEAP32[$8+96>>2]=HEAP32[$0>>2];$4=HEAP32[$1+12>>2];$5=$8- -64|0;HEAP32[$5>>2]=HEAP32[$1+8>>2];HEAP32[$5+4>>2]=$4;$5=$1+16|0;$4=HEAP32[$5+4>>2];HEAP32[$8+72>>2]=HEAP32[$5>>2];HEAP32[$8+76>>2]=$4;$4=HEAP32[$1+4>>2];HEAP32[$8+56>>2]=HEAP32[$1>>2];HEAP32[$8+60>>2]=$4;$4=HEAP32[$0+20>>2];HEAP32[$8+92>>2]=$9;HEAP32[$8+88>>2]=$4;$10=b2ContactSolver__b2ContactSolver_28b2ContactSolverDef__29($8,$8+56|0);$7=0;label$6:{if(HEAP32[$1+16>>2]<=0){break label$6}while(1){$4=b2ContactSolver__SolveTOIPositionConstraints_28int_2c_20int_29($10,$2,$3);$7=$7+1|0;if(($7|0)>=HEAP32[$1+16>>2]){break label$6}if(!$4){continue}break}}$11=$2<<2;$9=HEAP32[$11+HEAP32[$0+8>>2]>>2];$5=Math_imul($2,12);$4=$5+HEAP32[$0+20>>2]|0;$2=HEAP32[$4+4>>2];HEAP32[$9+36>>2]=HEAP32[$4>>2];HEAP32[$9+40>>2]=$2;$4=HEAP32[$0+8>>2];$2=HEAP32[$0+20>>2];HEAP32[HEAP32[$4+$11>>2]+52>>2]=HEAP32[($2+$5|0)+8>>2];$9=$3<<2;$5=HEAP32[$9+$4>>2];$4=Math_imul($3,12);$3=$4+$2|0;$2=HEAP32[$3+4>>2];HEAP32[$5+36>>2]=HEAP32[$3>>2];HEAP32[$5+40>>2]=$2;HEAP32[HEAP32[$9+HEAP32[$0+8>>2]>>2]+52>>2]=HEAP32[($4+HEAP32[$0+20>>2]|0)+8>>2];b2ContactSolver__InitializeVelocityConstraints_28_29($10);$7=0;if(HEAP32[$1+12>>2]>0){while(1){b2ContactSolver__SolveVelocityConstraints_28_29($10);$7=$7+1|0;if(($7|0)>2]){continue}break}}$3=0;if(HEAP32[$0+28>>2]>0){$13=HEAPF32[$1>>2];while(1){$9=Math_imul($3,12);$5=$9+HEAP32[$0+24>>2]|0;$14=HEAPF32[$5+8>>2];$2=$9+HEAP32[$0+20>>2]|0;$12=HEAPF32[$2+8>>2];$17=HEAPF32[$2+4>>2];$4=HEAP32[$5>>2];$1=HEAP32[$5+4>>2];$15=HEAPF32[$5>>2];$6=Math_fround($13*$15);$18=Math_fround($6*$6);$16=HEAPF32[$5+4>>2];$6=Math_fround($13*$16);$6=Math_fround($18+Math_fround($6*$6));if(!!($6>Math_fround(4))){$6=Math_fround(Math_fround(2)/Math_fround(Math_sqrt($6)));$1=(wasm2js_scratch_store_f32(Math_fround($6*$16)),wasm2js_scratch_load_i32(0));$4=(wasm2js_scratch_store_f32(Math_fround($6*$15)),wasm2js_scratch_load_i32(0))}$18=Math_fround(HEAPF32[$2>>2]+Math_fround($13*(wasm2js_scratch_store_i32(0,$4),wasm2js_scratch_load_f32())));HEAPF32[$2>>2]=$18;$17=Math_fround($17+Math_fround($13*(wasm2js_scratch_store_i32(0,$1),wasm2js_scratch_load_f32())));HEAPF32[$2+4>>2]=$17;$2=$9+HEAP32[$0+20>>2]|0;$6=Math_fround($13*$14);if(!!(Math_fround($6*$6)>Math_fround(2.4674012660980225))){$14=Math_fround($14*Math_fround(Math_fround(1.5707963705062866)/($6>Math_fround(0)?$6:Math_fround(-$6))));$6=Math_fround($13*$14)}$12=Math_fround($12+$6);HEAPF32[$2+8>>2]=$12;$2=$9+HEAP32[$0+24>>2]|0;HEAP32[$2+4>>2]=$1;HEAP32[$2>>2]=$4;HEAPF32[($9+HEAP32[$0+24>>2]|0)+8>>2]=$14;$2=HEAP32[HEAP32[$0+8>>2]+($3<<2)>>2];HEAPF32[$2+72>>2]=$14;HEAP32[$2+64>>2]=$4;HEAP32[$2+68>>2]=$1;HEAPF32[$2+56>>2]=$12;HEAPF32[$2+48>>2]=$17;HEAPF32[$2+44>>2]=$18;$15=cosf($12);HEAPF32[$2+24>>2]=$15;$16=sinf($12);HEAPF32[$2+20>>2]=$16;$6=HEAPF32[$2+28>>2];$12=HEAPF32[$2+32>>2];HEAPF32[$2+16>>2]=$17-Math_fround(Math_fround($16*$6)+Math_fround($15*$12));HEAPF32[$2+12>>2]=$18-Math_fround(Math_fround($15*$6)-Math_fround($16*$12));$3=$3+1|0;if(($3|0)>2]){continue}break}}if(!(!HEAP32[$0+4>>2]|HEAP32[$0+36>>2]<1)){$9=HEAP32[$10+40>>2];$2=0;while(1){$5=HEAP32[HEAP32[$0+12>>2]+($2<<2)>>2];$4=$9+Math_imul($2,152)|0;$11=HEAP32[$4+144>>2];HEAP32[$8+120>>2]=$11;$7=0;if(($11|0)>0){while(1){$3=($8+104|0)+($7<<2)|0;$1=Math_imul($7,36)+$4|0;HEAP32[$3>>2]=HEAP32[$1+16>>2];HEAP32[$3+8>>2]=HEAP32[$1+20>>2];$7=$7+1|0;if(($11|0)!=($7|0)){continue}break}}$1=HEAP32[$0+4>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+20>>2]]($1,$5,$8+104|0);$2=$2+1|0;if(($2|0)>2]){continue}break}}b2ContactSolver___b2ContactSolver_28_29($10);global$0=$8+128|0}function UpsampleRgba4444LinePair($0,$1,$2,$3,$4,$5,$6,$7,$8){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;$8=$8|0;var $9=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;if($0){$11=Math_imul(HEAPU8[$0|0],19077)>>>8|0;$12=HEAPU8[$4|0]|HEAPU8[$5|0]<<16;$9=HEAPU8[$2|0]|HEAPU8[$3|0]<<16;$13=($12+Math_imul($9,3)|0)+131074|0;$16=$13>>>2&255;$15=$11+(Math_imul($16,33050)>>>8|0)|0;$10=$15+ -17685|0;HEAP8[$6+1|0]=($10>>>0<16384?$10>>>6|0:$15>>>0<17685?0:240)|15;$13=$13>>>18|0;$15=$11+(Math_imul($13,26149)>>>8|0)|0;$10=$15+ -14234|0;$11=$11-(Math_imul($16,6419)>>>8|0)-(Math_imul($13,13320)>>>8)|0;$13=$11+8708|0;HEAP8[$6|0]=($10>>>0<16384?$10>>>6|0:$15>>>0<14234?0:240)&240|($13>>>0<16384?$13>>>10|0:($11|0)<-8708?0:15);if($1){$11=Math_imul(HEAPU8[$1|0],19077)>>>8|0;$13=(Math_imul($12,3)+$9|0)+131074|0;$16=$13>>>2&255;$15=$11+(Math_imul($16,33050)>>>8|0)|0;$10=$15+ -17685|0;HEAP8[$7+1|0]=($10>>>0<16384?$10>>>6|0:$15>>>0<17685?0:240)|15;$13=$13>>>18|0;$15=$11+(Math_imul($13,26149)>>>8|0)|0;$10=$15+ -14234|0;$11=$11-(Math_imul($16,6419)>>>8|0)-(Math_imul($13,13320)>>>8)|0;$13=$11+8708|0;HEAP8[$7|0]=($10>>>0<16384?$10>>>6|0:$15>>>0<14234?0:240)&240|($13>>>0<16384?$13>>>10|0:($11|0)<-8708?0:15)}$15=$8+ -1|0;label$3:{if(($8|0)<3){$11=$12;$13=$9;break label$3}$11=$15>>1;$26=($11|0)>1?$11:1;$16=1;while(1){$11=HEAPU8[$4+$16|0]|HEAPU8[$5+$16|0]<<16;$13=HEAPU8[$2+$16|0]|HEAPU8[$3+$16|0]<<16;$17=$13+$12|0;$10=($11+($17+$9|0)|0)+524296|0;$21=$16<<1;$18=$21+ -1|0;$23=$18<<1;$14=$23+$6|0;$25=$10+($17<<1)>>>3|0;$19=$25+$9|0;$20=$19>>>1&255;$17=Math_imul(HEAPU8[$0+$18|0],19077)>>>8|0;$24=(Math_imul($20,33050)>>>8|0)+$17|0;$22=$24+ -17685|0;HEAP8[$14+1|0]=($22>>>0<16384?$22>>>6|0:$24>>>0<17685?0:240)|15;$22=$14;$14=$19>>>17|0;$19=$17-(Math_imul($20,6419)>>>8|0)-(Math_imul($14,13320)>>>8)|0;$20=$19+8708|0;$17=$17+(Math_imul($14,26149)>>>8|0)|0;$14=$17+ -14234|0;HEAP8[$22|0]=($20>>>0<16384?$20>>>10|0:($19|0)<-8708?0:15)|($14>>>0<16384?$14>>>6|0:$17>>>0<14234?0:240)&240;$17=$16<<2;$14=$17+$6|0;$10=$10+($9+$11<<1)>>>3|0;$19=$10+$13|0;$20=$19>>>1&255;$9=Math_imul(HEAPU8[$0+$21|0],19077)>>>8|0;$24=(Math_imul($20,33050)>>>8|0)+$9|0;$22=$24+ -17685|0;HEAP8[$14+1|0]=($22>>>0<16384?$22>>>6|0:$24>>>0<17685?0:240)|15;$22=$14;$14=$19>>>17|0;$19=$9-(Math_imul($20,6419)>>>8|0)-(Math_imul($14,13320)>>>8)|0;$20=$19+8708|0;$9=$9+(Math_imul($14,26149)>>>8|0)|0;$14=$9+ -14234|0;HEAP8[$22|0]=($20>>>0<16384?$20>>>10|0:($19|0)<-8708?0:15)|($14>>>0<16384?$14>>>6|0:$9>>>0<14234?0:240)&240;if($1){$23=$7+$23|0;$9=Math_imul(HEAPU8[$1+$18|0],19077)>>>8|0;$12=$10+$12|0;$10=$12>>>1&255;$18=$9+(Math_imul($10,33050)>>>8|0)|0;$14=$18+ -17685|0;HEAP8[$23+1|0]=($14>>>0<16384?$14>>>6|0:$18>>>0<17685?0:240)|15;$14=$23;$12=$12>>>17|0;$18=$9+(Math_imul($12,26149)>>>8|0)|0;$23=$18+ -14234|0;$9=$9-(Math_imul($10,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$9+8708|0;HEAP8[$14|0]=($23>>>0<16384?$23>>>6|0:$18>>>0<14234?0:240)&240|($12>>>0<16384?$12>>>10|0:($9|0)<-8708?0:15);$12=$7+$17|0;$9=Math_imul(HEAPU8[$1+$21|0],19077)>>>8|0;$10=$11+$25|0;$18=$10>>>1&255;$21=$9+(Math_imul($18,33050)>>>8|0)|0;$17=$21+ -17685|0;HEAP8[$12+1|0]=($17>>>0<16384?$17>>>6|0:$21>>>0<17685?0:240)|15;$14=$12;$12=$10>>>17|0;$10=$9+(Math_imul($12,26149)>>>8|0)|0;$21=$10+ -14234|0;$9=$9-(Math_imul($18,6419)>>>8|0)-(Math_imul($12,13320)>>>8)|0;$12=$9+8708|0;HEAP8[$14|0]=($21>>>0<16384?$21>>>6|0:$10>>>0<14234?0:240)&240|($12>>>0<16384?$12>>>10|0:($9|0)<-8708?0:15)}$10=($16|0)!=($26|0);$16=$16+1|0;$9=$13;$12=$11;if($10){continue}break}}label$7:{if($8&1){break label$7}$2=$15<<1;$3=$2+$6|0;$0=Math_imul(HEAPU8[$0+$15|0],19077)>>>8|0;$4=(Math_imul($13,3)+$11|0)+131074|0;$5=$4>>>2&255;$6=$0+(Math_imul($5,33050)>>>8|0)|0;$8=$6+ -17685|0;HEAP8[$3+1|0]=($8>>>0<16384?$8>>>6|0:$6>>>0<17685?0:240)|15;$8=$3;$3=$4>>>18|0;$4=$0+(Math_imul($3,26149)>>>8|0)|0;$6=$4+ -14234|0;$0=$0-(Math_imul($5,6419)>>>8|0)-(Math_imul($3,13320)>>>8)|0;$3=$0+8708|0;HEAP8[$8|0]=($6>>>0<16384?$6>>>6|0:$4>>>0<14234?0:240)&240|($3>>>0<16384?$3>>>10|0:($0|0)<-8708?0:15);if(!$1){break label$7}$2=$2+$7|0;$0=Math_imul(HEAPU8[$1+$15|0],19077)>>>8|0;$3=(Math_imul($11,3)+$13|0)+131074|0;$4=$3>>>2&255;$1=$0+(Math_imul($4,33050)>>>8|0)|0;$5=$1+ -17685|0;HEAP8[$2+1|0]=($5>>>0<16384?$5>>>6|0:$1>>>0<17685?0:240)|15;$5=$2;$1=$3>>>18|0;$2=$0+(Math_imul($1,26149)>>>8|0)|0;$3=$2+ -14234|0;$0=$0-(Math_imul($4,6419)>>>8|0)-(Math_imul($1,13320)>>>8)|0;$1=$0+8708|0;HEAP8[$5|0]=($3>>>0<16384?$3>>>6|0:$2>>>0<14234?0:240)&240|($1>>>0<16384?$1>>>10|0:($0|0)<-8708?0:15)}return}__assert_fail(182795,182809,101,182941);abort()}function btAxisSweep3Internal_unsigned_20short___addHandle_28btVector3_20const__2c_20btVector3_20const__2c_20void__2c_20short_2c_20short_2c_20btDispatcher__2c_20void__29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=0,$10=0,$11=0,$12=0;$10=global$0-16|0;global$0=$10;btAxisSweep3Internal_unsigned_20short___quantize_28unsigned_20short__2c_20btVector3_20const__2c_20int_29_20const($0,$10+10|0,$1,0);btAxisSweep3Internal_unsigned_20short___quantize_28unsigned_20short__2c_20btVector3_20const__2c_20int_29_20const($0,$10+4|0,$2,1);$1=HEAP32[$0+60>>2];$11=HEAPU16[$0+64>>1];$9=$1+($11<<6)|0;HEAP16[$0+64>>1]=HEAPU16[$9+48>>1];$2=HEAPU16[$0+56>>1]+1|0;HEAP16[$0+56>>1]=$2;HEAP32[$9+8>>2]=$7;HEAP16[$9+6>>1]=$5;HEAP16[$9+4>>1]=$4;HEAP32[$9>>2]=$3;HEAP32[$9+12>>2]=$11;HEAP16[$1+54>>1]=HEAPU16[$1+54>>1]+2;$1=HEAP32[$0+68>>2];$2=$2<<1;$4=$2&65534;$3=$4<<2;$5=$3|4;$7=$1+$5|0;$8=$1;$4=$4+ -1|0;$1=$4<<2;$8=$8+$1|0;$8=HEAPU16[$8>>1]|HEAPU16[$8+2>>1]<<16;HEAP16[$7>>1]=$8;HEAP16[$7+2>>1]=$8>>>16;$7=HEAPU16[$10+10>>1];$8=HEAP32[$0+68>>2];$12=$8+$1|0;HEAP16[$12+2>>1]=$11;HEAP16[$12>>1]=$7;$7=HEAPU16[$10+4>>1];$8=$3+$8|0;HEAP16[$8+2>>1]=$11;HEAP16[$8>>1]=$7;HEAP16[$9+54>>1]=$2;HEAP16[$9+48>>1]=$4;$7=HEAP32[$0+60>>2];HEAP16[$7+56>>1]=HEAPU16[$7+56>>1]+2;$7=HEAP32[$0+72>>2];$8=$7+$5|0;$7=$1+$7|0;$7=HEAPU16[$7>>1]|HEAPU16[$7+2>>1]<<16;HEAP16[$8>>1]=$7;HEAP16[$8+2>>1]=$7>>>16;$7=HEAPU16[$10+12>>1];$8=HEAP32[$0+72>>2];$12=$8+$1|0;HEAP16[$12+2>>1]=$11;HEAP16[$12>>1]=$7;$7=HEAPU16[$10+6>>1];$8=$3+$8|0;HEAP16[$8+2>>1]=$11;HEAP16[$8>>1]=$7;HEAP16[$9+56>>1]=$2;HEAP16[$9+50>>1]=$4;$7=HEAP32[$0+60>>2];HEAP16[$7+58>>1]=HEAPU16[$7+58>>1]+2;$7=$5;$5=HEAP32[$0+76>>2];$7=$7+$5|0;$5=$1+$5|0;$5=HEAPU16[$5>>1]|HEAPU16[$5+2>>1]<<16;HEAP16[$7>>1]=$5;HEAP16[$7+2>>1]=$5>>>16;$5=HEAPU16[$10+14>>1];$7=$1;$1=HEAP32[$0+76>>2];$7=$7+$1|0;HEAP16[$7+2>>1]=$11;HEAP16[$7>>1]=$5;$5=HEAPU16[$10+8>>1];$1=$1+$3|0;HEAP16[$1+2>>1]=$11;HEAP16[$1>>1]=$5;HEAP16[$9+58>>1]=$2;HEAP16[$9+52>>1]=$4;$3=HEAP32[$0+68>>2];$5=HEAPU16[$9+48>>1]<<2;$2=$3+$5|0;$1=$2+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$2>>1]<$4>>>0){$7=HEAP32[$0+60>>2];$5=$7+(HEAPU16[($3+$5|0)+2>>1]<<6)|0;while(1){$3=$2+ -4|0;$7=(HEAPU16[$3+2>>1]<<6)+$7|0;$4=$4&1?$7+54|0:$7+48|0;HEAP16[$4>>1]=HEAPU16[$4>>1]+1;HEAP16[$5+48>>1]=HEAPU16[$5+48>>1]+ -1;$4=HEAPU16[$2>>1]|HEAPU16[$2+2>>1]<<16;$7=HEAPU16[$1>>1]|HEAPU16[$1+2>>1]<<16;HEAP16[$2>>1]=$7;HEAP16[$2+2>>1]=$7>>>16;HEAP16[$1>>1]=$4;HEAP16[$1+2>>1]=$4>>>16;$1=$1+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$3>>1]<$4>>>0){$7=HEAP32[$0+60>>2];$2=$3;continue}break}$3=HEAP32[$0+68>>2]}$5=HEAPU16[$9+54>>1];$2=($5<<2)+$3|0;$1=$2+ -4|0;$4=HEAPU16[$1>>1];label$4:{if(HEAPU16[$2>>1]>=$4>>>0){break label$4}$7=HEAP32[$0+60>>2];$5=$7+(HEAPU16[(($5<<2)+$3|0)+2>>1]<<6)|0;while(1){$3=$2+ -4|0;$7=(HEAPU16[$3+2>>1]<<6)+$7|0;$4=$4&1?$7+54|0:$7+48|0;HEAP16[$4>>1]=HEAPU16[$4>>1]+1;HEAP16[$5+54>>1]=HEAPU16[$5+54>>1]+ -1;$4=HEAPU16[$2>>1]|HEAPU16[$2+2>>1]<<16;$7=HEAPU16[$1>>1]|HEAPU16[$1+2>>1]<<16;HEAP16[$2>>1]=$7;HEAP16[$2+2>>1]=$7>>>16;HEAP16[$1>>1]=$4;HEAP16[$1+2>>1]=$4>>>16;$1=$1+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$3>>1]>=$4>>>0){break label$4}$7=HEAP32[$0+60>>2];$2=$3;continue}}$3=HEAP32[$0+72>>2];$5=HEAPU16[$9+50>>1]<<2;$2=$3+$5|0;$1=$2+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$2>>1]<$4>>>0){$7=HEAP32[$0+60>>2];$5=$7+(HEAPU16[($3+$5|0)+2>>1]<<6)|0;while(1){$3=$2+ -4|0;$7=(HEAPU16[$3+2>>1]<<6)+$7|0;$4=$4&1?$7+56|0:$7+50|0;HEAP16[$4>>1]=HEAPU16[$4>>1]+1;HEAP16[$5+50>>1]=HEAPU16[$5+50>>1]+ -1;$4=HEAPU16[$2>>1]|HEAPU16[$2+2>>1]<<16;$7=HEAPU16[$1>>1]|HEAPU16[$1+2>>1]<<16;HEAP16[$2>>1]=$7;HEAP16[$2+2>>1]=$7>>>16;HEAP16[$1>>1]=$4;HEAP16[$1+2>>1]=$4>>>16;$1=$1+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$3>>1]<$4>>>0){$7=HEAP32[$0+60>>2];$2=$3;continue}break}$3=HEAP32[$0+72>>2]}$5=HEAPU16[$9+56>>1];$2=($5<<2)+$3|0;$1=$2+ -4|0;$4=HEAPU16[$1>>1];label$9:{if(HEAPU16[$2>>1]>=$4>>>0){break label$9}$7=HEAP32[$0+60>>2];$5=$7+(HEAPU16[(($5<<2)+$3|0)+2>>1]<<6)|0;while(1){$3=$2+ -4|0;$7=(HEAPU16[$3+2>>1]<<6)+$7|0;$4=$4&1?$7+56|0:$7+50|0;HEAP16[$4>>1]=HEAPU16[$4>>1]+1;HEAP16[$5+56>>1]=HEAPU16[$5+56>>1]+ -1;$4=HEAPU16[$2>>1]|HEAPU16[$2+2>>1]<<16;$7=HEAPU16[$1>>1]|HEAPU16[$1+2>>1]<<16;HEAP16[$2>>1]=$7;HEAP16[$2+2>>1]=$7>>>16;HEAP16[$1>>1]=$4;HEAP16[$1+2>>1]=$4>>>16;$1=$1+ -4|0;$4=HEAPU16[$1>>1];if(HEAPU16[$3>>1]>=$4>>>0){break label$9}$7=HEAP32[$0+60>>2];$2=$3;continue}}btAxisSweep3Internal_unsigned_20short___sortMinDown_28int_2c_20unsigned_20short_2c_20btDispatcher__2c_20bool_29($0,2,HEAPU16[$9+52>>1]);btAxisSweep3Internal_unsigned_20short___sortMaxDown_28int_2c_20unsigned_20short_2c_20btDispatcher__2c_20bool_29($0,2,HEAPU16[$9+58>>1],$6);global$0=$10+16|0;return $11}function newkey($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0;$14=global$0-112|0;global$0=$14;$3=HEAP32[$2+8>>2]+ -1|0;label$3:{if($3>>>0<=3){label$5:{switch($3-1|0){case 1:$9=HEAPF64[$2>>3];if($9==0){$4=HEAP32[$1+16>>2];$3=$4;break label$3}$4=HEAP32[$1+16>>2];wasm2js_scratch_store_f64(+$9);$5=wasm2js_scratch_load_i32(1)|0;$3=wasm2js_scratch_load_i32(0)|0;$5=$3+$5|0;$3=$4+(($5>>>0)%(((-1<>>0)<<5)|0;break label$3;case 2:$4=HEAP32[$1+16>>2];$3=$4+((HEAP32[HEAP32[$2>>2]+8>>2]&(-1<>2];$3=$4+((HEAP32[$2>>2]&(-1<>2];$3=$4+(HEAPU32[$2>>2]%(((-1<>>0)<<5)|0;break label$3}$4=HEAP32[$1+16>>2];$3=$4+(HEAPU32[$2>>2]%(((-1<>>0)<<5)|0}label$1:{label$2:{if(HEAP32[$3+8>>2]?0:($3|0)!=124744){break label$2}$5=HEAP32[$1+20>>2];label$11:{label$12:{label$13:{label$14:{label$15:{label$16:{label$17:{while(1){$6=$5;$5=$5+ -32|0;HEAP32[$1+20>>2]=$5;if($6>>>0<=$4>>>0){break label$17}if(HEAP32[$6+ -8>>2]){continue}break}$7=HEAP32[$3+24>>2]+ -1|0;if($7>>>0>3){break label$12}switch($7-1|0){case 0:break label$13;case 2:break label$15;case 1:break label$16;default:break label$14}}$13=memset($14,0,108);$3=HEAP32[$1+28>>2];$8=1;$7=1;while(1){label$20:{$6=$7;if(($6|0)>($3|0)){$6=$3;if(($8|0)>($3|0)){break label$20}}$5=0;if(($8|0)<=($6|0)){$11=HEAP32[$1+12>>2];while(1){$5=(HEAP32[($11+($8<<4)|0)+ -8>>2]!=0)+$5|0;$12=($6|0)!=($8|0);$8=$8+1|0;if($12){continue}break}$8=$6+1|0}$6=($10<<2)+$13|0;HEAP32[$6>>2]=HEAP32[$6>>2]+$5;$7=$7<<1;$15=$5+$15|0;$10=$10+1|0;if(($10|0)!=27){continue}}break}$8=-1<>2]){$4=0;label$26:{if(HEAP32[$5+24>>2]!=3){break label$26}$9=HEAPF64[$5+16>>3];label$27:{if(Math_abs($9)<2147483648){$5=~~$9;break label$27}$5=-2147483648}if($9!=+($5|0)){break label$26}$5=$5+ -1|0;if($5>>>0>67108863){break label$26}$4=1;$5=(luaO_log2($5)<<2)+$13|0;HEAP32[$5+4>>2]=HEAP32[$5+4>>2]+1}$6=$4+$6|0;$3=$3+1|0}if($8){$8=$8+ -1|0;$4=HEAP32[$1+16>>2];continue}break}$7=$6+$15|0;$6=0;$5=0;label$30:{if(HEAP32[$2+8>>2]!=3){break label$30}$9=HEAPF64[$2>>3];label$31:{if(Math_abs($9)<2147483648){$4=~~$9;break label$31}$4=-2147483648}if($9!=+($4|0)){break label$30}$4=$4+ -1|0;if($4>>>0>67108863){break label$30}$5=1;$4=(luaO_log2($4)<<2)+$13|0;HEAP32[$4+4>>2]=HEAP32[$4+4>>2]+1}$8=1;$11=$5+$7|0;label$33:{if(($11|0)<1){$7=0;$10=0;break label$33}$10=0;$7=0;$5=0;$4=0;while(1){$17=$10;$10=HEAP32[($4<<2)+$13>>2];$16=($10|0)>0;$12=$5+$10|0;$6=$16&($12|0)>($6|0);$10=$6?$8:$17;$7=$6?$12:$7;$5=$16?$12:$5;if(($11|0)==($5|0)){break label$33}$4=$4+1|0;$6=$8&2147483647;$8=$8<<1;if(($6|0)<($11|0)){continue}break}}resize($0,$1,$10,(($3+$15|0)-$7|0)+1|0);$3=luaH_get($1,$2);HEAP8[$1+6|0]=0;if(($3|0)!=123176){break label$1}$3=HEAP32[$2+8>>2];label$36:{if($3>>>0>3){break label$36}label$37:{switch($3-1|0){default:luaG_runerror($0,124681,0);$3=newkey($0,$1,$2);break label$1;case 0:case 1:break label$36;case 2:break label$37}}$9=HEAPF64[$2>>3];if($9==$9){break label$36}luaG_runerror($0,124700,0)}$3=newkey($0,$1,$2);break label$1}$9=HEAPF64[$3+16>>3];if($9==0){break label$11}$10=$4;wasm2js_scratch_store_f64(+$9);$7=wasm2js_scratch_load_i32(1)|0;$4=wasm2js_scratch_load_i32(0)|0;$7=$4+$7|0;$4=$10+(($7>>>0)%(((-1<>>0)<<5)|0;break label$11}$4=((HEAP32[HEAP32[$3+16>>2]+8>>2]&(-1<>2]&(-1<>2]%(((-1<>>0)<<5)+$4|0;break label$11}$4=(HEAPU32[$3+16>>2]%(((-1<>>0)<<5)+$4|0}if(($3|0)!=($4|0)){while(1){$6=$4;$4=HEAP32[$4+28>>2];if(($3|0)!=($4|0)){continue}break}HEAP32[$6+28>>2]=$5;$6=HEAP32[$3+28>>2];HEAP32[$5+24>>2]=HEAP32[$3+24>>2];HEAP32[$5+28>>2]=$6;$6=HEAP32[$3+20>>2];HEAP32[$5+16>>2]=HEAP32[$3+16>>2];HEAP32[$5+20>>2]=$6;$6=HEAP32[$3+12>>2];HEAP32[$5+8>>2]=HEAP32[$3+8>>2];HEAP32[$5+12>>2]=$6;$6=HEAP32[$3+4>>2];HEAP32[$5>>2]=HEAP32[$3>>2];HEAP32[$5+4>>2]=$6;HEAP32[$3+28>>2]=0;HEAP32[$3+8>>2]=0;break label$2}HEAP32[$6+ -4>>2]=HEAP32[$3+28>>2];HEAP32[$3+28>>2]=$5;$3=$5}$5=HEAP32[$2+4>>2];HEAP32[$3+16>>2]=HEAP32[$2>>2];HEAP32[$3+20>>2]=$5;HEAP32[$3+24>>2]=HEAP32[$2+8>>2];if(!(HEAPU8[$1+5|0]&4)|(!(HEAPU8[HEAP32[$2>>2]+5|0]&3)|HEAP32[$2+8>>2]<4)){break label$1}$0=HEAP32[$0+16>>2];HEAP8[$1+5|0]=HEAPU8[$1+5|0]&251;HEAP32[$1+24>>2]=HEAP32[$0+40>>2];HEAP32[$0+40>>2]=$1}global$0=$14+112|0;return $3}function dmGameSystem__CompSoundUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=0,$12=0,$13=0;$1=global$0-128|0;global$0=$1;label$1:{label$2:{$6=HEAP32[$0+8>>2];$2=HEAP32[$6>>2];if(($2|0)!=HEAP32[$6+4>>2]){while(1){$4=Math_imul($7,96)+$2|0;$2=HEAP32[$4+8>>2];label$5:{if(!$2){break label$5}$8=HEAPF32[$4+84>>2];$9=Math_fround($8-HEAPF32[HEAP32[$0+4>>2]>>2]);HEAPF32[$4+84>>2]=$9;if(!($9=Math_fround(0))){$2=dmSound__Play_28dmSound__SoundInstance__29($2);if(!$2){break label$5}HEAP32[$1+48>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,48692,48827,$1+48|0);break label$6}$3=HEAPU8[$4+92|0];if(!($3&6|(HEAPU8[$2+60|0]&4)>>>2)){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$4>>2],HEAP32[$4+4>>2]);$5=dmSound__DeleteSoundInstance_28dmSound__SoundInstance__29(HEAP32[$4+8>>2]);HEAP32[$4+8>>2]=0;$3=HEAP32[$6+68>>2];if(!$3){break label$2}$2=HEAP32[$6+76>>2];if(!$2|$2>>>0>HEAPU32[$6+72>>2]){break label$1}$2=$2+ -1|0;HEAP32[$6+76>>2]=$2;HEAP32[($2<<2)+$3>>2]=$7;if($5){HEAP32[$1>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,48692,48853,$1);break label$6}if(!(HEAP32[$4+40>>2]|HEAP32[$4+44>>2])|HEAP32[$4+88>>2]==-1){break label$5}$2=HEAP32[132614];$11=HEAP32[$2+8>>2];$12=HEAP32[$2+12>>2];$3=$4+16|0;$2=HEAP32[$3+28>>2];HEAP32[$1+112>>2]=HEAP32[$3+24>>2];HEAP32[$1+116>>2]=$2;$2=HEAP32[$3+20>>2];HEAP32[$1+104>>2]=HEAP32[$3+16>>2];HEAP32[$1+108>>2]=$2;$2=HEAP32[$3+12>>2];HEAP32[$1+96>>2]=HEAP32[$3+8>>2];HEAP32[$1+100>>2]=$2;$2=HEAP32[$3+4>>2];HEAP32[$1+88>>2]=HEAP32[$3>>2];HEAP32[$1+92>>2]=$2;$2=HEAP32[$4+76>>2];HEAP32[$1+80>>2]=HEAP32[$4+72>>2];HEAP32[$1+84>>2]=$2;$5=$4- -64|0;$2=HEAP32[$5+4>>2];HEAP32[$1+72>>2]=HEAP32[$5>>2];HEAP32[$1+76>>2]=$2;$2=HEAP32[$4+60>>2];$5=$1- -64|0;HEAP32[$5>>2]=HEAP32[$4+56>>2];HEAP32[$5+4>>2]=$2;$10=HEAP32[$4+52>>2];$5=HEAP32[$4+48>>2];HEAP32[$1+56>>2]=$5;HEAP32[$1+60>>2]=$10;$2=$4+48|0;label$10:{if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29($5,$10)){break label$10}if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29(HEAP32[$1+88>>2],HEAP32[$1+92>>2])){break label$10}HEAP32[$1+120>>2]=HEAP32[$4+88>>2];if(!dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($1+56|0,$1+88|0,$11,$12,0,HEAP32[132614],$1+120|0,4,0)){break label$10}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,48692,48880,0)}HEAP8[$2|0]=0;HEAP8[$2+1|0]=0;HEAP8[$2+2|0]=0;HEAP8[$2+3|0]=0;HEAP8[$2+4|0]=0;HEAP8[$2+5|0]=0;HEAP8[$2+6|0]=0;HEAP8[$2+7|0]=0;HEAP8[$2+24|0]=0;HEAP8[$2+25|0]=0;HEAP8[$2+26|0]=0;HEAP8[$2+27|0]=0;HEAP8[$2+28|0]=0;HEAP8[$2+29|0]=0;HEAP8[$2+30|0]=0;HEAP8[$2+31|0]=0;HEAP8[$2+16|0]=0;HEAP8[$2+17|0]=0;HEAP8[$2+18|0]=0;HEAP8[$2+19|0]=0;HEAP8[$2+20|0]=0;HEAP8[$2+21|0]=0;HEAP8[$2+22|0]=0;HEAP8[$2+23|0]=0;HEAP8[$2+8|0]=0;HEAP8[$2+9|0]=0;HEAP8[$2+10|0]=0;HEAP8[$2+11|0]=0;HEAP8[$2+12|0]=0;HEAP8[$2+13|0]=0;HEAP8[$2+14|0]=0;HEAP8[$2+15|0]=0;HEAP8[$3|0]=0;HEAP8[$3+1|0]=0;HEAP8[$3+2|0]=0;HEAP8[$3+3|0]=0;HEAP8[$3+4|0]=0;HEAP8[$3+5|0]=0;HEAP8[$3+6|0]=0;HEAP8[$3+7|0]=0;HEAP8[$3+24|0]=0;HEAP8[$3+25|0]=0;HEAP8[$3+26|0]=0;HEAP8[$3+27|0]=0;HEAP8[$3+28|0]=0;HEAP8[$3+29|0]=0;HEAP8[$3+30|0]=0;HEAP8[$3+31|0]=0;HEAP8[$3+16|0]=0;HEAP8[$3+17|0]=0;HEAP8[$3+18|0]=0;HEAP8[$3+19|0]=0;HEAP8[$3+20|0]=0;HEAP8[$3+21|0]=0;HEAP8[$3+22|0]=0;HEAP8[$3+23|0]=0;HEAP8[$3+8|0]=0;HEAP8[$3+9|0]=0;HEAP8[$3+10|0]=0;HEAP8[$3+11|0]=0;HEAP8[$3+12|0]=0;HEAP8[$3+13|0]=0;HEAP8[$3+14|0]=0;HEAP8[$3+15|0]=0;break label$5}if($3&1){$2=dmSound__Stop_28dmSound__SoundInstance__29(HEAP32[$4+8>>2]);if(!$2){break label$5}HEAP32[$1+32>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,48692,48853,$1+32|0);break label$6}if(!($3&2)){break label$5}HEAP8[$4+92|0]=$3&253;$2=dmSound__Pause_28dmSound__SoundInstance__2c_20bool_29(HEAP32[$4+8>>2],($3&4)>>>2|0);if(!$2){break label$5}HEAP32[$1+16>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,48692,48919,$1+16|0)}$13=-1e3}$7=$7+1|0;$2=HEAP32[$6>>2];if($7>>>0<(HEAP32[$6+4>>2]-$2|0)/96>>>0){continue}break}}dmSound__Update_28_29();global$0=$1+128|0;return $13|0}__assert_fail(49562,49289,137,49569);abort()}__assert_fail(49574,49289,138,49569);abort()}function mbedtls_mpi_div_mpi($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;$5=global$0-80|0;global$0=$5;label$1:{if(!mbedtls_mpi_cmp_int($3,0)){$3=-12;break label$1}$4=$5- -64|0;HEAP32[$4+8>>2]=0;HEAP32[$4>>2]=1;HEAP32[$4+4>>2]=0;HEAP32[$5+56>>2]=0;HEAP32[$5+48>>2]=1;HEAP32[$5+52>>2]=0;HEAP32[$5+40>>2]=0;HEAP32[$5+32>>2]=1;HEAP32[$5+36>>2]=0;HEAP32[$5+24>>2]=0;HEAP32[$5+16>>2]=1;HEAP32[$5+20>>2]=0;HEAP32[$5+8>>2]=0;HEAP32[$5>>2]=1;HEAP32[$5+4>>2]=0;label$3:{if((mbedtls_mpi_cmp_abs($2,$3)|0)<=-1){if($0){$4=mbedtls_mpi_lset($0,0);if($4){break label$3}}$3=0;if(!$1){break label$1}$4=mbedtls_mpi_copy($1,$2);if($4){break label$3}break label$1}$4=mbedtls_mpi_copy($5- -64|0,$2);if($4){break label$3}$4=mbedtls_mpi_copy($5+48|0,$3);if($4){break label$3}HEAP32[$5+64>>2]=1;HEAP32[$5+48>>2]=1;$4=mbedtls_mpi_grow($5+32|0,HEAP32[$2+4>>2]+2|0);if($4){break label$3}$4=mbedtls_mpi_lset($5+32|0,0);if($4){break label$3}$4=mbedtls_mpi_grow($5+16|0,2);if($4){break label$3}$4=mbedtls_mpi_grow($5,3);if($4){break label$3}$4=mbedtls_mpi_bitlen($5+48|0)&31;if(($4|0)!=31){$14=$4^31;$4=mbedtls_mpi_shift_l($5- -64|0,$14);if($4){break label$3}$4=mbedtls_mpi_shift_l($5+48|0,$14);if($4){break label$3}}$7=HEAP32[$5+68>>2]+ -1|0;$12=HEAP32[$5+52>>2];$10=$12+ -1|0;$8=$7-$10|0;$6=$8<<5;$4=mbedtls_mpi_shift_l($5+48|0,$6);if($4){break label$3}$8=$8<<2;while(1){if((mbedtls_mpi_cmp_mpi($5- -64|0,$5+48|0)|0)>=0){$4=$8+HEAP32[$5+40>>2]|0;HEAP32[$4>>2]=HEAP32[$4>>2]+1;$4=mbedtls_mpi_sub_mpi($5- -64|0,$5- -64|0,$5+48|0);if(!$4){continue}break label$3}break}$4=mbedtls_mpi_shift_r($5+48|0,$6);if($4){break label$3}if($7>>>0>$10>>>0){$17=$12+ -2<<2;while(1){$15=$7<<2;$4=HEAP32[$5+72>>2];$8=HEAP32[$15+$4>>2];$16=$10<<2;$9=HEAP32[$16+HEAP32[$5+56>>2]>>2];label$11:{if($8>>>0>=$9>>>0){$4=-1;$6=HEAP32[$5+40>>2];$11=$7-$12|0;HEAP32[$6+($11<<2)>>2]=-1;$8=$7+ -1|0;break label$11}$6=HEAP32[$5+40>>2];$11=$7-$12|0;$18=$6+($11<<2)|0;$13=$8;$8=$7+ -1|0;$4=mbedtls_int_div_int($13,HEAP32[$4+($8<<2)>>2],$9);HEAP32[$18>>2]=$4}$9=$11<<2;HEAP32[$9+$6>>2]=$4;$13=$7+ -2|0;$4=mbedtls_mpi_lset($5+16|0,0);label$13:{if($10){if($4){break label$3}while(1){$4=HEAP32[$5+24>>2];$6=HEAP32[$5+56>>2];HEAP32[$4>>2]=HEAP32[$6+$17>>2];HEAP32[$4+4>>2]=HEAP32[$6+$16>>2];$4=mbedtls_mpi_mul_int($5+16|0,$5+16|0,HEAP32[$9+HEAP32[$5+40>>2]>>2]);if($4){break label$3}$4=mbedtls_mpi_lset($5,0);if($4){break label$3}label$16:{if($7>>>0>=2){$4=HEAP32[$5+8>>2];$6=HEAP32[$5+72>>2];HEAP32[$4>>2]=HEAP32[$6+($13<<2)>>2];break label$16}$4=HEAP32[$5+8>>2];HEAP32[$4>>2]=0;$6=HEAP32[$5+72>>2]}HEAP32[$4+4>>2]=HEAP32[($8<<2)+$6>>2];HEAP32[$4+8>>2]=HEAP32[$6+$15>>2];if((mbedtls_mpi_cmp_mpi($5+16|0,$5)|0)<1){break label$13}$4=$9+HEAP32[$5+40>>2]|0;HEAP32[$4>>2]=HEAP32[$4>>2]+ -1;$4=mbedtls_mpi_lset($5+16|0,0);if(!$4){continue}break}break label$3}if($4){break label$3}while(1){$4=HEAP32[$5+24>>2];HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=HEAP32[HEAP32[$5+56>>2]>>2];$4=mbedtls_mpi_mul_int($5+16|0,$5+16|0,HEAP32[$9+HEAP32[$5+40>>2]>>2]);if($4){break label$3}$4=mbedtls_mpi_lset($5,0);if($4){break label$3}label$19:{if($7>>>0>=2){$4=HEAP32[$5+8>>2];$6=HEAP32[$5+72>>2];HEAP32[$4>>2]=HEAP32[$6+($13<<2)>>2];break label$19}$4=HEAP32[$5+8>>2];HEAP32[$4>>2]=0;$6=HEAP32[$5+72>>2]}HEAP32[$4+4>>2]=HEAP32[($8<<2)+$6>>2];HEAP32[$4+8>>2]=HEAP32[$6+$15>>2];if((mbedtls_mpi_cmp_mpi($5+16|0,$5)|0)<1){break label$13}$4=$9+HEAP32[$5+40>>2]|0;HEAP32[$4>>2]=HEAP32[$4>>2]+ -1;$4=mbedtls_mpi_lset($5+16|0,0);if(!$4){continue}break}break label$3}$4=mbedtls_mpi_mul_int($5+16|0,$5+48|0,HEAP32[$9+HEAP32[$5+40>>2]>>2]);if($4){break label$3}$7=$11<<5;$4=mbedtls_mpi_shift_l($5+16|0,$7);if($4){break label$3}$4=mbedtls_mpi_sub_mpi($5- -64|0,$5- -64|0,$5+16|0);if($4){break label$3}if((mbedtls_mpi_cmp_int($5- -64|0,0)|0)<=-1){$4=mbedtls_mpi_copy($5+16|0,$5+48|0);if($4){break label$3}$4=mbedtls_mpi_shift_l($5+16|0,$7);if($4){break label$3}$4=mbedtls_mpi_add_mpi($5- -64|0,$5- -64|0,$5+16|0);if($4){break label$3}$4=$9+HEAP32[$5+40>>2]|0;HEAP32[$4>>2]=HEAP32[$4>>2]+ -1}$7=$8;if($7>>>0>$10>>>0){continue}break}}if($0){$4=mbedtls_mpi_copy($0,$5+32|0);if($4){break label$3}HEAP32[$0>>2]=Math_imul(HEAP32[$3>>2],HEAP32[$2>>2])}if(!$1){$4=0;break label$3}$4=mbedtls_mpi_shift_r($5- -64|0,$14);if($4){break label$3}HEAP32[$5+64>>2]=HEAP32[$2>>2];$4=mbedtls_mpi_copy($1,$5- -64|0);if($4){break label$3}$4=0;if(mbedtls_mpi_cmp_int($1,0)){break label$3}HEAP32[$1>>2]=1}mbedtls_mpi_free($5- -64|0);mbedtls_mpi_free($5+48|0);mbedtls_mpi_free($5+32|0);mbedtls_mpi_free($5+16|0);mbedtls_mpi_free($5);$3=$4}global$0=$5+80|0;return $3}function btVoronoiSimplexSolver__closestPtPointTriangle_28btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btSubSimplexClosestResult__29($0,$1,$2,$3,$4){var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0);$10=HEAPU8[$4+16|0]&-16;HEAP8[$4+16|0]=$10;$27=HEAPF32[$3>>2];$12=HEAPF32[$1>>2];$17=Math_fround($27-$12);$11=HEAPF32[$0>>2];$5=Math_fround($11-$12);$28=HEAPF32[$3+4>>2];$13=HEAPF32[$1+4>>2];$18=Math_fround($28-$13);$8=HEAPF32[$0+4>>2];$6=Math_fround($8-$13);$29=HEAPF32[$3+8>>2];$14=HEAPF32[$1+8>>2];$19=Math_fround($29-$14);$15=HEAPF32[$0+8>>2];$7=Math_fround($15-$14);$9=Math_fround(Math_fround(Math_fround($17*$5)+Math_fround($18*$6))+Math_fround($19*$7));$0=$4;$23=HEAPF32[$2>>2];$20=Math_fround($23-$12);$24=HEAPF32[$2+4>>2];$21=Math_fround($24-$13);$25=HEAPF32[$2+8>>2];$22=Math_fround($25-$14);$6=Math_fround(Math_fround(Math_fround($20*$5)+Math_fround($21*$6))+Math_fround($22*$7));label$1:{if(!($6<=Math_fround(0)^1|$9<=Math_fround(0)^1)){$2=HEAP32[$1+4>>2];HEAP32[$4>>2]=HEAP32[$1>>2];HEAP32[$4+4>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$4+8>>2]=HEAP32[$1+8>>2];HEAP32[$4+12>>2]=$2;HEAP8[$4+16|0]=$10|1;$6=Math_fround(0);$5=Math_fround(0);$7=Math_fround(1);break label$1}$5=Math_fround($11-$23);$7=Math_fround($8-$24);$16=Math_fround($15-$25);$26=Math_fround(Math_fround(Math_fround($17*$5)+Math_fround($18*$7))+Math_fround($19*$16));$7=Math_fround(Math_fround(Math_fround($20*$5)+Math_fround($21*$7))+Math_fround($22*$16));if(!($7>=Math_fround(0)^1|$26<=$7^1)){$1=HEAP32[$2+4>>2];HEAP32[$4>>2]=HEAP32[$2>>2];HEAP32[$4+4>>2]=$1;$1=HEAP32[$2+12>>2];HEAP32[$4+8>>2]=HEAP32[$2+8>>2];HEAP32[$4+12>>2]=$1;HEAP8[$4+16|0]=$10|2;$6=Math_fround(1);$5=Math_fround(0);$7=Math_fround(0);break label$1}$16=Math_fround(Math_fround($6*$26)-Math_fround($7*$9));label$4:{if($7<=Math_fround(0)^1|$6>=Math_fround(0)^1){break label$4}$5=Math_fround(0);if(!($16<=Math_fround(0))){break label$4}HEAP32[$4+12>>2]=0;HEAP8[$4+16|0]=$10|3;$6=Math_fround($6/Math_fround($6-$7));HEAPF32[$4+8>>2]=$14+Math_fround($22*$6);HEAPF32[$4+4>>2]=$13+Math_fround($21*$6);HEAPF32[$4>>2]=$12+Math_fround($20*$6);$7=Math_fround(Math_fround(1)-$6);break label$1}$5=Math_fround($11-$27);$8=Math_fround($8-$28);$15=Math_fround($15-$29);$11=Math_fround(Math_fround(Math_fround($20*$5)+Math_fround($21*$8))+Math_fround($22*$15));$5=Math_fround(Math_fround(Math_fround($17*$5)+Math_fround($18*$8))+Math_fround($19*$15));if(!($5>=Math_fround(0)^1|$11<=$5^1)){$1=HEAP32[$3+4>>2];HEAP32[$4>>2]=HEAP32[$3>>2];HEAP32[$4+4>>2]=$1;$1=HEAP32[$3+12>>2];HEAP32[$4+8>>2]=HEAP32[$3+8>>2];HEAP32[$4+12>>2]=$1;HEAP8[$4+16|0]=$10|4;$5=Math_fround(1);$6=Math_fround(0);$7=Math_fround(0);break label$1}$8=Math_fround(Math_fround($11*$9)-Math_fround($6*$5));label$6:{if($5<=Math_fround(0)^1|$9>=Math_fround(0)^1){break label$6}$6=Math_fround(0);if(!($8<=Math_fround(0))){break label$6}HEAP32[$4+12>>2]=0;HEAP8[$4+16|0]=$10|5;$5=Math_fround($9/Math_fround($9-$5));HEAPF32[$4+8>>2]=$14+Math_fround($19*$5);HEAPF32[$4+4>>2]=$13+Math_fround($18*$5);HEAPF32[$4>>2]=$12+Math_fround($17*$5);$7=Math_fround(Math_fround(1)-$5);break label$1}label$7:{$9=Math_fround(Math_fround($7*$5)-Math_fround($11*$26));if(!($9<=Math_fround(0))){break label$7}$6=Math_fround($26-$7);if(!($6>=Math_fround(0))){break label$7}$5=Math_fround($11-$5);if(!($5>=Math_fround(0))){break label$7}HEAP32[$4+12>>2]=0;HEAP8[$4+16|0]=$10|6;$5=Math_fround($6/Math_fround($6+$5));HEAPF32[$4+8>>2]=$25+Math_fround(Math_fround($29-$25)*$5);HEAPF32[$4+4>>2]=$24+Math_fround(Math_fround($28-$24)*$5);HEAPF32[$4>>2]=$23+Math_fround(Math_fround($27-$23)*$5);$6=Math_fround(Math_fround(1)-$5);$7=Math_fround(0);break label$1}HEAP32[$4+12>>2]=0;HEAP8[$4+16|0]=$10|7;$6=Math_fround(Math_fround(1)/Math_fround($16+Math_fround($9+$8)));$5=Math_fround($16*$6);$6=Math_fround($8*$6);HEAPF32[$4+8>>2]=Math_fround($19*$5)+Math_fround($14+Math_fround($22*$6));HEAPF32[$4+4>>2]=Math_fround($18*$5)+Math_fround($13+Math_fround($21*$6));HEAPF32[$4>>2]=Math_fround($17*$5)+Math_fround($12+Math_fround($20*$6));$7=Math_fround(Math_fround(Math_fround(1)-$6)-$5)}HEAPF32[$0+20>>2]=$7;HEAP32[$4+32>>2]=0;HEAPF32[$4+28>>2]=$5;HEAPF32[$4+24>>2]=$6}function SphereTriangleDetector__collide_28btVector3_20const__2c_20btVector3__2c_20btVector3__2c_20float__2c_20float__2c_20float_29($0,$1,$2,$3,$4,$5,$6){var $7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=Math_fround(0),$27=Math_fround(0),$28=0;$10=global$0-32|0;global$0=$10;$11=HEAP32[$0+4>>2];$21=Math_fround(HEAPF32[$11+28>>2]*HEAPF32[$11+12>>2]);$15=HEAPF32[$1+8>>2];$11=HEAP32[$0+8>>2];$8=HEAPF32[$11+60>>2];$26=Math_fround($15-$8);$7=HEAPF32[$11+52>>2];$12=Math_fround(HEAPF32[$11+68>>2]-$7);$19=HEAPF32[$11+56>>2];$13=Math_fround(HEAPF32[$11+88>>2]-$19);$14=Math_fround(HEAPF32[$11+72>>2]-$19);$16=Math_fround(HEAPF32[$11+84>>2]-$7);$9=Math_fround(Math_fround($12*$13)-Math_fround($14*$16));$20=$9;$18=Math_fround($9*$9);$9=Math_fround(HEAPF32[$11+92>>2]-$8);$27=Math_fround($14*$9);$14=Math_fround(HEAPF32[$11+76>>2]-$8);$8=Math_fround($27-Math_fround($14*$13));$16=Math_fround(Math_fround($14*$16)-Math_fround($12*$9));$18=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($18+Math_fround(Math_fround($8*$8)+Math_fround($16*$16))))));$9=Math_fround($20*$18);$13=HEAPF32[$1>>2];$12=Math_fround($8*$18);$20=Math_fround(Math_fround($13-$7)*$12);$14=HEAPF32[$1+4>>2];$7=Math_fround($16*$18);$8=Math_fround(Math_fround($26*$9)+Math_fround($20+Math_fround(Math_fround($14-$19)*$7)));if(!!($8=Math_fround(0)^1|$8<$21)|$8<$6^1){break label$2}$25=HEAP32[$1+12>>2];HEAP32[$10+24>>2]=HEAP32[$1+8>>2];HEAP32[$10+28>>2]=$25;$25=HEAP32[$1+4>>2];HEAP32[$10+16>>2]=HEAP32[$1>>2];HEAP32[$10+20>>2]=$25;HEAP32[$10+12>>2]=0;HEAPF32[$10+8>>2]=$9;HEAPF32[$10+4>>2]=$7;HEAPF32[$10>>2]=$12;label$3:{if(SphereTriangleDetector__pointInTriangle_28btVector3_20const__2c_20btVector3_20const__2c_20btVector3__29($11+52|0,$10,$10+16|0)){$22=Math_fround($15-Math_fround($8*$9));$23=Math_fround($14-Math_fround($8*$7));$24=Math_fround($13-Math_fround($8*$12));break label$3}if((FUNCTION_TABLE[HEAP32[HEAP32[$11>>2]+88>>2]]($11)|0)<1){break label$2}$20=Math_fround($6*$6);$11=0;while(1){$17=HEAP32[$0+8>>2];FUNCTION_TABLE[HEAP32[HEAP32[$17>>2]+92>>2]]($17,$11,$10+16|0,$10);$7=Math_fround(0);$14=HEAPF32[$10+16>>2];$8=Math_fround(HEAPF32[$1>>2]-$14);$6=Math_fround(HEAPF32[$10>>2]-$14);$19=HEAPF32[$10+20>>2];$9=Math_fround(HEAPF32[$1+4>>2]-$19);$15=Math_fround(HEAPF32[$10+4>>2]-$19);$16=HEAPF32[$10+24>>2];$12=Math_fround(HEAPF32[$1+8>>2]-$16);$13=Math_fround(HEAPF32[$10+8>>2]-$16);$18=Math_fround(Math_fround(Math_fround($8*$6)+Math_fround($9*$15))+Math_fround($12*$13));label$6:{if(!($18>Math_fround(0))){break label$6}$7=Math_fround(Math_fround(Math_fround($6*$6)+Math_fround($15*$15))+Math_fround($13*$13));if(!!($18<$7)){$7=Math_fround($18/$7);$12=Math_fround($12-Math_fround($13*$7));$9=Math_fround($9-Math_fround($15*$7));$8=Math_fround($8-Math_fround($6*$7));break label$6}$12=Math_fround($12-$13);$9=Math_fround($9-$15);$8=Math_fround($8-$6);$7=Math_fround(1)}if(!!(Math_fround(Math_fround(Math_fround($8*$8)+Math_fround($9*$9))+Math_fround($12*$12))<$20)){$24=Math_fround($14+Math_fround($6*$7));$23=Math_fround($19+Math_fround($15*$7));$28=1;$22=Math_fround($16+Math_fround($13*$7))}$11=$11+1|0;$17=HEAP32[$0+8>>2];if(($11|0)<(FUNCTION_TABLE[HEAP32[HEAP32[$17>>2]+88>>2]]($17)|0)){continue}break}$17=0;if(!$28){break label$2}$15=HEAPF32[$1+8>>2];$14=HEAPF32[$1+4>>2];$13=HEAPF32[$1>>2]}$17=1;$6=Math_fround($13-$24);$8=Math_fround($14-$23);$7=Math_fround($15-$22);$9=Math_fround(Math_fround(Math_fround($6*$6)+Math_fround($8*$8))+Math_fround($7*$7));if(!!($9>2]=0;$20=$7;$9=Math_fround(Math_sqrt($9));$7=Math_fround(Math_fround(1)/$9);HEAPF32[$3+8>>2]=$20*$7;HEAPF32[$3+4>>2]=$8*$7;HEAPF32[$3>>2]=$6*$7;HEAP32[$2+12>>2]=0;HEAPF32[$2+8>>2]=$22;HEAPF32[$2+4>>2]=$23;HEAPF32[$2>>2]=$24;HEAPF32[$4>>2]=-Math_fround($21-$9);break label$2}$17=0;if(Math_fround(Math_fround(Math_fround($6*Math_fround(0))+Math_fround($8*Math_fround(0)))+Math_fround($7*Math_fround(0)))>=Math_fround(0)){break label$2}HEAP32[$2+12>>2]=0;HEAPF32[$2+8>>2]=$22;HEAPF32[$2+4>>2]=$23;HEAPF32[$2>>2]=$24;HEAP32[$5>>2]=0;$17=1}global$0=$10+32|0;return $17}function dmResource__ReloadResource_28dmResource__SResourceFactory__2c_20char_20const__2c_20dmResource__SResourceDescriptor___29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$3=global$0-1232|0;global$0=$3;$9=HEAP32[$0+5140>>2];dmMutex__Lock_28dmMutex__Mutex__29($9);$5=HEAP32[$0+7368>>2];if($5){dmHttpCache__SetConsistencyPolicy_28dmHttpCache__Cache__2c_20dmHttpCache__ConsistencyPolicy_29($5,0)}HEAP32[$3+100>>2]=$1;HEAP32[$3+96>>2]=26259;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($3+208|0,1024,26253,$3+96|0);$7=$3+208|0;$6=$7;label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{while(1){label$9:{$5=HEAPU8[$6|0];label$10:{label$11:{if(($5|0)!=47){if($5){break label$11}HEAP8[$7|0]=0;$5=dmHashBuffer64($3+208|0,strlen($3+208|0));$6=i64toi32_i32$HIGH_BITS;$7=0;$8=HEAP32[$0>>2];$4=HEAP32[$8+4>>2];label$13:{if(!$4){break label$13}$4=HEAP32[HEAP32[$8>>2]+(__wasm_i64_urem($5,$6,$4)<<2)>>2];if(($4|0)==-1){break label$13}$8=HEAP32[$8+8>>2];while(1){$4=Math_imul($4,56);$7=$4+$8|0;if(($5|0)==HEAP32[$7>>2]&($6|0)==HEAP32[$7+4>>2]){break label$13}$4=HEAP32[($4+$8|0)+48>>2];if(($4|0)!=-1){continue}break}$7=0}$5=$7?$7+8|0:0;if($2){HEAP32[$2>>2]=$5}if(!$7){break label$6}$8=HEAP32[$5+24>>2];if(!HEAP32[$8+32>>2]){break label$5}$6=$0+7376|0;$7=$0+7380|0;$10=$0+7384|0;$4=HEAP32[$0+7376>>2];if((HEAP32[$10>>2]-$4|0)!=1048576){if(HEAP8[$0+7388|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(1048576,1,$6,$10,$0+7380|0);$4=HEAP32[$0+7376>>2]}HEAP32[$7>>2]=$4;$6=dmResource__DoLoadResourceLocked_28dmResource__SResourceFactory__2c_20char_20const__2c_20char_20const__2c_20unsigned_20int__2c_20dmArray_char___29($0,$3+208|0,$1,$3+204|0,$6);if($6){break label$7}$4=HEAP32[$0+7376>>2];HEAP32[$3+160>>2]=$0;$6=HEAP32[$8+12>>2];HEAP32[$3+188>>2]=0;HEAP32[$3+164>>2]=$6;HEAP32[$3+180>>2]=$4;HEAP32[$3+192>>2]=$5;$4=HEAP32[$3+204>>2];HEAP32[$3+184>>2]=$4;HEAP32[$3+176>>2]=$1;HEAP32[$5+12>>2]=0;$6=FUNCTION_TABLE[HEAP32[$8+32>>2]]($3+160|0)|0;if($6){break label$7}HEAP32[HEAP32[$3+192>>2]+20>>2]=$4;$4=HEAP32[$0+12>>2];label$18:{if(!$4){break label$18}$7=HEAP32[$4>>2];if(($7|0)==HEAP32[$4+4>>2]){break label$18}$6=0;while(1){$4=($6<<3)+$7|0;$7=HEAP32[$4+4>>2];HEAP32[$3+128>>2]=$1;HEAP32[$3+124>>2]=$5;HEAP32[$3+120>>2]=$7;FUNCTION_TABLE[HEAP32[$4>>2]]($3+120|0);$4=HEAP32[$0+12>>2];$7=HEAP32[$4>>2];$6=$6+1|0;if($6>>>0>2]-$7>>3>>>0){continue}break}}if(HEAP32[$5+12>>2]){break label$9}$6=0;break label$7}if(($4&255)==47){break label$10}}HEAP8[$7|0]=$5;$7=$7+1|0}$6=$6+1|0;$4=$5;continue}break}$4=HEAP32[$5+36>>2];HEAP32[$3+152>>2]=HEAP32[$5+32>>2];HEAP32[$3+156>>2]=$4;$4=HEAP32[$5+28>>2];HEAP32[$3+144>>2]=HEAP32[$5+24>>2];HEAP32[$3+148>>2]=$4;$4=HEAP32[$5+20>>2];HEAP32[$3+136>>2]=HEAP32[$5+16>>2];HEAP32[$3+140>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$3+128>>2]=HEAP32[$5+8>>2];HEAP32[$3+132>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$3+120>>2]=HEAP32[$5>>2];HEAP32[$3+124>>2]=$4;HEAP32[$3+128>>2]=HEAP32[$5+12>>2];HEAP32[$3+104>>2]=$0;HEAP32[$3+108>>2]=HEAP32[$8+12>>2];HEAP32[$3+112>>2]=$3+120;$6=FUNCTION_TABLE[HEAP32[$8+28>>2]]($3+104|0)|0;HEAP32[$5+12>>2]=0}$4=$6+15|0;if($4>>>0>15){break label$4}label$20:{switch($4-1|0){case 14:HEAP32[$3+48>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,26260,28405,$3+48|0);$6=0;break label$3;case 6:HEAP32[$3+64>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,26260,28435,$3- -64|0);$6=-8;break label$3;case 0:case 1:break label$20;case 2:case 3:case 4:case 5:case 7:case 8:case 9:case 10:case 12:case 13:break label$4;case 11:break label$6;default:break label$5}}HEAP32[$3+80>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,26260,28467,$3+80|0);break label$3}HEAP32[$3>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,26260,28516,$3);$6=-3;break label$3}HEAP32[$3+16>>2]=HEAP32[HEAP32[HEAP32[$2>>2]+24>>2]+8>>2];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,26260,28575,$3+16|0);$6=-15;break label$3}HEAP32[$3+36>>2]=$6;HEAP32[$3+32>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,26260,28620,$3+32|0)}$0=HEAP32[$0+7368>>2];if($0){dmHttpCache__SetConsistencyPolicy_28dmHttpCache__Cache__2c_20dmHttpCache__ConsistencyPolicy_29($0,1)}dmMutex__Unlock_28dmMutex__Mutex__29($9);global$0=$3+1232|0;return $6}__assert_fail(29450,28946,444,29525);abort()}function symbexec($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0,$20=0;label$1:{$8=HEAPU8[$0+75|0];label$2:{if($8>>>0>250){break label$2}$4=HEAPU8[$0+74|0];if(($4&5)==4|HEAPU8[$0+73|0]+($4&1)>>>0>$8>>>0){break label$2}$19=HEAPU8[$0+72|0];if(HEAP32[$0+36>>2]>($19|0)){break label$2}$11=HEAP32[$0+44>>2];if(($11|0)<1){break label$2}$3=HEAP32[$0+48>>2];if(!(!$3|($3|0)==($11|0))){break label$2}$12=HEAP32[$0+12>>2];$16=$11+ -1|0;$3=HEAP32[$12+($16<<2)>>2];if(($3&63)!=30){break label$2}$7=$3;if(($1|0)<1){break label$2}$20=($4&6)!=2;$10=$16;while(1){$13=($6<<2)+$12|0;$7=HEAP32[$13>>2];$17=$7&63;if($17>>>0>37){break label$1}$9=$7>>>6&255;if($9>>>0>=$8>>>0){break label$1}$4=HEAPU8[$17+123488|0];$18=$4<<24>>24;$3=0;$5=$4&3;label$4:{if($5>>>0>2){$5=0;break label$4}label$6:{switch($5-1|0){default:$5=$7>>>23|0;label$9:{$3=$4>>>4&3;if($3>>>0>3){break label$9}label$10:{switch($3-1|0){default:if(!$5){break label$9}break label$1;case 1:if($5>>>0<$8>>>0){break label$9}break label$1;case 2:break label$10;case 0:break label$9}}if(($7|0)<=-1){if(($5&255)>2]){break label$9}break label$1}if($5>>>0<$8>>>0){break label$9}break label$1}$14=$7>>>14|0;$4=$14&511;$15=$18>>>2&3;if($15>>>0>3){$3=$4;break label$4}$3=$4;label$15:{switch($15-1|0){default:$3=0;$7=0;if(!$4){break label$4}break label$2;case 1:if($4>>>0<$8>>>0){break label$4}break label$1;case 2:break label$15;case 0:break label$4}}if($7&4194304){if(($14&255)>2]){break label$4}break label$1}if($4>>>0<$8>>>0){break label$4}break label$1;case 0:$5=$7>>>14|0;if(($4&48)!=48){break label$4}$7=0;if(($5|0)>2]){break label$4}break label$2;case 1:break label$6}}$14=$7>>>14|0;$5=$14+ -131071|0;if(($4&48)!=32){break label$4}$7=0;$15=$5+$6|0;$3=$15+1|0;if(($3|0)<0|($3|0)>=($11|0)){break label$2}if(($3|0)<1){$3=0;break label$4}$3=($6+$14|0)+ -131070|0;$4=0;label$20:{while(1){if((HEAP32[($15-$4<<2)+$12>>2]&8372287)!=34){break label$20}$4=$4+1|0;if(($3|0)!=($4|0)){continue}break}$4=$3}$3=0;if($4&1){break label$2}}if(($18|0)<=-1){$7=0;if((HEAP32[$13+4>>2]&63)!=22|($6+2|0)>=($11|0)){break label$2}}$10=($2|0)==($9|0)?($18&64)>>>6|0?$6:$10:$10;$4=$17+ -2|0;label$23:{if($4>>>0>35){break label$23}label$24:{label$25:{label$26:{label$27:{label$28:{label$29:{label$30:{label$31:{switch($4-1|0){default:if(($3|0)!=1){break label$23}$7=0;if(($6+2|0)>=($11|0)){break label$2}if((HEAP32[$13+4>>2]&8372287)!=34){break label$23}break label$2;case 0:$10=($9|0)>($2|0)?$10:($5|0)<($2|0)?$10:$6;break label$23;case 1:case 5:if(($5|0)<($19|0)){break label$23}break label$1;case 2:case 4:if(HEAP32[(HEAP32[$0+8>>2]+($5<<4)|0)+8>>2]==4){break label$23}break label$1;case 8:$3=$9+1|0;if($3>>>0>=$8>>>0){break label$1}$10=($2|0)==($3|0)?$6:$10;break label$23;case 18:if(($5|0)<($3|0)){break label$23}break label$1;case 30:$7=0;if(!$3){break label$2}$4=$3;$3=$9+2|0;if($4+$3>>>0>=$8>>>0){break label$2}$10=($3|0)>($2|0)?$10:$6;break label$23;case 3:case 6:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 20:case 21:case 22:case 23:case 24:case 32:break label$23;case 34:break label$25;case 33:break label$26;case 31:break label$27;case 27:break label$28;case 25:case 26:break label$29;case 19:break label$30;case 28:case 29:break label$31}}if($9+3>>>0<$8>>>0){break label$30}break label$1}$3=($5+$6|0)+1|0;$6=(($3|0)>($1|0)?0:($2|0)==255?0:($6|0)>=($3|0)?0:$5)+$6|0;break label$23}$7=0;if(($5+$9|0)>($8|0)?$5:0){break label$2}label$39:{if(!$3){$3=HEAP32[$13+4>>2];$4=$3&63;if(($4|0)!=34?$4+ -28>>>0>=3:0){break label$2}if($3>>>0<=8388607){break label$39}break label$2}$3=$3+ -1|0;if(!$3){break label$39}if(($3+$9|0)>($8|0)){break label$2}}$10=($9|0)>($2|0)?$10:$6;break label$23}if(($5|0)<2|(($5+$9|0)+ -1|0)<=($8|0)){break label$23}break label$1}$7=0;if(($5+$9|0)>=($8|0)?($5|0)>=1:0){break label$2}if($3){break label$23}$6=$6+1|0;if(($6|0)<($16|0)){break label$23}break label$2}$7=0;if(($5|0)>=HEAP32[$0+52>>2]){break label$2}$3=HEAPU8[HEAP32[HEAP32[$0+16>>2]+($5<<2)>>2]+72|0];$5=$3+$6|0;if(($5|0)>=($11|0)){break label$2}$4=1;if(!$3){break label$24}while(1){if(HEAPU8[($4+$6<<2)+$12|0]&59){break label$2}$9=($3|0)==($4|0);$4=$4+1|0;if(!$9){continue}break}break label$24}$7=0;if($20){break label$2}if(!$5){$3=HEAP32[$13+4>>2];$4=$3&63;if((($4|0)!=34?$4+ -28>>>0>=3:0)|$3>>>0>8388607){break label$2}}if((($5+$9|0)+ -1|0)>($8|0)){break label$2}break label$23}$6=($2|0)==255?$6:$5}$6=$6+1|0;if(($6|0)<($1|0)){continue}break}$7=HEAP32[($10<<2)+$12>>2]}return $7}return 0}function unsigned_20int_20std____2____sort4_dmGui__RenderEntrySortPred__2c_20dmGui__RenderEntry___28dmGui__RenderEntry__2c_20dmGui__RenderEntry__2c_20dmGui__RenderEntry__2c_20dmGui__RenderEntry__2c_20dmGui__RenderEntrySortPred__29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$5=global$0-16|0;$9=HEAP32[$2>>2];$6=HEAP32[$2+4>>2];$7=HEAP32[$1+4>>2];$4=$7;$10=HEAP32[$0+4>>2];$8=HEAP32[$1>>2];label$1:{label$2:{if(($4|0)==($10|0)&$8>>>0>=HEAPU32[$0>>2]|$4>>>0>$10>>>0){$4=0;if(($6|0)==($7|0)&$9>>>0>=$8>>>0|$6>>>0>$7>>>0){break label$1}$4=HEAP32[$1+12>>2];HEAP32[$5+8>>2]=HEAP32[$1+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$1+4>>2];HEAP32[$5>>2]=HEAP32[$1>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$4;$4=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=$4;$6=HEAP32[$1+4>>2];$7=HEAP32[$0+4>>2];$4=1;if(($6|0)==($7|0)&HEAPU32[$1>>2]>=HEAPU32[$0>>2]|$6>>>0>$7>>>0){break label$1}$4=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$4;$4=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$1+8>>2]=HEAP32[$5+8>>2];HEAP32[$1+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$1>>2]=HEAP32[$5>>2];HEAP32[$1+4>>2]=$4;break label$2}if(($6|0)==($7|0)&$9>>>0<$8>>>0|$6>>>0<$7>>>0){$4=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$2+12>>2];HEAP32[$0+8>>2]=HEAP32[$2+8>>2];HEAP32[$0+12>>2]=$4;$4=HEAP32[$2+4>>2];HEAP32[$0>>2]=HEAP32[$2>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=$4;$4=1;break label$1}$4=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$4;$4=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$1+8>>2]=HEAP32[$5+8>>2];HEAP32[$1+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$1>>2]=HEAP32[$5>>2];HEAP32[$1+4>>2]=$4;$6=HEAP32[$2+4>>2];$7=HEAP32[$1+4>>2];$4=1;if(($6|0)==($7|0)&HEAPU32[$2>>2]>=HEAPU32[$1>>2]|$6>>>0>$7>>>0){break label$1}$4=HEAP32[$1+12>>2];HEAP32[$5+8>>2]=HEAP32[$1+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$1+4>>2];HEAP32[$5>>2]=HEAP32[$1>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$4;$4=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=$4}$4=2}$6=HEAP32[$3+4>>2];$7=HEAP32[$2+4>>2];if(($6|0)==($7|0)&HEAPU32[$3>>2]>2]|$6>>>0<$7>>>0){$6=HEAP32[$2+12>>2];HEAP32[$5+8>>2]=HEAP32[$2+8>>2];HEAP32[$5+12>>2]=$6;$6=HEAP32[$2+4>>2];HEAP32[$5>>2]=HEAP32[$2>>2];HEAP32[$5+4>>2]=$6;$6=HEAP32[$3+12>>2];HEAP32[$2+8>>2]=HEAP32[$3+8>>2];HEAP32[$2+12>>2]=$6;$6=HEAP32[$3+4>>2];HEAP32[$2>>2]=HEAP32[$3>>2];HEAP32[$2+4>>2]=$6;$6=HEAP32[$5+12>>2];HEAP32[$3+8>>2]=HEAP32[$5+8>>2];HEAP32[$3+12>>2]=$6;$6=HEAP32[$5+4>>2];HEAP32[$3>>2]=HEAP32[$5>>2];HEAP32[$3+4>>2]=$6;$3=HEAP32[$2+4>>2];$6=HEAP32[$1+4>>2];if(($3|0)==($6|0)&HEAPU32[$2>>2]>=HEAPU32[$1>>2]|$3>>>0>$6>>>0){return $4+1|0}$3=HEAP32[$1+12>>2];HEAP32[$5+8>>2]=HEAP32[$1+8>>2];HEAP32[$5+12>>2]=$3;$3=HEAP32[$1+4>>2];HEAP32[$5>>2]=HEAP32[$1>>2];HEAP32[$5+4>>2]=$3;$3=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$3;$3=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$3;$3=HEAP32[$5+12>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=$3;$3=HEAP32[$5+4>>2];HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=$3;$2=HEAP32[$1+4>>2];$3=HEAP32[$0+4>>2];if(($2|0)==($3|0)&HEAPU32[$1>>2]>=HEAPU32[$0>>2]|$2>>>0>$3>>>0){return $4+2|0}$2=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$2;$2=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$2;$2=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$2;$0=HEAP32[$5+12>>2];HEAP32[$1+8>>2]=HEAP32[$5+8>>2];HEAP32[$1+12>>2]=$0;$0=HEAP32[$5+4>>2];HEAP32[$1>>2]=HEAP32[$5>>2];HEAP32[$1+4>>2]=$0;$4=$4+3|0}return $4}function btAxisSweep3Internal_unsigned_20short___removeHandle_28unsigned_20short_2c_20btDispatcher__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$8=HEAP32[$0+60>>2];$3=HEAP32[$0+92>>2];if(!FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+56>>2]]($3)){$3=HEAP32[$0+92>>2];FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+16>>2]]($3,$8+($1<<6)|0,$2)}$9=HEAPU16[$0+56>>1];$6=HEAP32[$0+60>>2];HEAP16[$6+54>>1]=HEAPU16[$6+54>>1]+ -2;HEAP16[$6+56>>1]=HEAPU16[$6+56>>1]+ -2;HEAP16[$6+58>>1]=HEAPU16[$6+58>>1]+ -2;$7=HEAP32[$0+68>>2];$10=$8+($1<<6)|0;$4=HEAPU16[$10+54>>1]<<2;$3=$7+$4|0;$2=HEAPU16[$0+6>>1];HEAP16[$3>>1]=$2;$5=HEAPU16[$3+6>>1];$11=$7;label$2:{if(!$5){break label$2}$6=$6+(HEAPU16[($4+$7|0)+2>>1]<<6)|0;while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+54|0:$4+48|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$6+54>>1]=HEAPU16[$6+54>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1];$11=HEAP32[$0+68>>2]}$4=$11;$6=HEAPU16[$10+48>>1];$3=$6<<2;HEAP16[$3+$7>>1]=$2;$3=$3+$4|0;$5=HEAPU16[$3+6>>1];if($5){$6=HEAP32[$0+60>>2]+(HEAPU16[($4+($6<<2)|0)+2>>1]<<6)|0;$2=HEAPU16[$3>>1];while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+54|0:$4+48|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$6+48>>1]=HEAPU16[$6+48>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1]}$6=($9<<1)+ -1|0;$3=$7+($6<<2)|0;HEAP16[$3>>1]=$2;HEAP16[$3+2>>1]=0;$7=HEAP32[$0+72>>2];$10=$8+($1<<6)|0;$9=HEAPU16[$10+56>>1]<<2;$3=$7+$9|0;HEAP16[$3>>1]=$2;$5=HEAPU16[$3+6>>1];$4=$7;label$8:{if(!$5){break label$8}$9=HEAP32[$0+60>>2]+(HEAPU16[($7+$9|0)+2>>1]<<6)|0;while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+56|0:$4+50|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$9+56>>1]=HEAPU16[$9+56>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1];$4=HEAP32[$0+72>>2]}$9=HEAPU16[$10+50>>1];$3=$9<<2;HEAP16[$3+$7>>1]=$2;$3=$3+$4|0;$5=HEAPU16[$3+6>>1];if($5){$9=HEAP32[$0+60>>2]+(HEAPU16[($4+($9<<2)|0)+2>>1]<<6)|0;$2=HEAPU16[$3>>1];while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+56|0:$4+50|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$9+50>>1]=HEAPU16[$9+50>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1]}$3=$7+($6<<2)|0;HEAP16[$3>>1]=$2;HEAP16[$3+2>>1]=0;$7=HEAP32[$0+76>>2];$9=$8+($1<<6)|0;$8=HEAPU16[$9+58>>1]<<2;$3=$7+$8|0;HEAP16[$3>>1]=$2;$5=HEAPU16[$3+6>>1];$4=$7;label$14:{if(!$5){break label$14}$8=HEAP32[$0+60>>2]+(HEAPU16[($8+$7|0)+2>>1]<<6)|0;while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+58|0:$4+52|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$8+58>>1]=HEAPU16[$8+58>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1];$4=HEAP32[$0+76>>2]}$8=HEAPU16[$9+52>>1];$3=$8<<2;HEAP16[$3+$7>>1]=$2;$3=$3+$4|0;$5=HEAPU16[$3+6>>1];if($5){$8=HEAP32[$0+60>>2]+(HEAPU16[($4+($8<<2)|0)+2>>1]<<6)|0;$2=HEAPU16[$3>>1];while(1){$4=$2&65535;$2=HEAPU16[$3+4>>1];if($4>>>0>=$2>>>0){$4=HEAP32[$0+60>>2]+($5<<6)|0;$2=$2&1?$4+58|0:$4+52|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+ -1;HEAP16[$8+52>>1]=HEAPU16[$8+52>>1]+1;$4=HEAPU16[$3+4>>1]|HEAPU16[$3+6>>1]<<16;$2=HEAPU16[$3>>1]|HEAPU16[$3+2>>1]<<16;HEAP16[$3+4>>1]=$2;HEAP16[$3+6>>1]=$2>>>16;HEAP16[$3>>1]=$4;HEAP16[$3+2>>1]=$4>>>16;$4=$3;$3=$3+4|0;$5=HEAPU16[$4+10>>1];if($5){continue}}break}$2=HEAPU16[$0+6>>1]}$3=$7+($6<<2)|0;HEAP16[$3>>1]=$2;HEAP16[$3+2>>1]=0;HEAP16[(HEAP32[$0+60>>2]+($1<<6)|0)+48>>1]=HEAPU16[$0+64>>1];HEAP16[$0+64>>1]=$1;HEAP16[$0+56>>1]=HEAPU16[$0+56>>1]+ -1}function dlfree($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;label$1:{if(!$0){break label$1}$3=$0+ -8|0;$2=HEAP32[$0+ -4>>2];$0=$2&-8;$5=$3+$0|0;label$2:{if($2&1){break label$2}if(!($2&3)){break label$1}$2=HEAP32[$3>>2];$3=$3-$2|0;if($3>>>0>>0<=255){$4=HEAP32[$3+8>>2];$2=$2>>>3|0;$1=HEAP32[$3+12>>2];if(($1|0)==($4|0)){HEAP32[310328]=HEAP32[310328]&__wasm_rotl_i32(-2,$2);break label$2}HEAP32[$4+12>>2]=$1;HEAP32[$1+8>>2]=$4;break label$2}$7=HEAP32[$3+24>>2];$2=HEAP32[$3+12>>2];label$6:{if(($3|0)!=($2|0)){$1=HEAP32[$3+8>>2];HEAP32[$1+12>>2]=$2;HEAP32[$2+8>>2]=$1;break label$6}label$9:{$4=$3+20|0;$1=HEAP32[$4>>2];if($1){break label$9}$4=$3+16|0;$1=HEAP32[$4>>2];if($1){break label$9}$2=0;break label$6}while(1){$6=$4;$2=$1;$4=$2+20|0;$1=HEAP32[$4>>2];if($1){continue}$4=$2+16|0;$1=HEAP32[$2+16>>2];if($1){continue}break}HEAP32[$6>>2]=0}if(!$7){break label$2}$4=HEAP32[$3+28>>2];$1=($4<<2)+1241616|0;label$11:{if(HEAP32[$1>>2]==($3|0)){HEAP32[$1>>2]=$2;if($2){break label$11}HEAP32[310329]=HEAP32[310329]&__wasm_rotl_i32(-2,$4);break label$2}HEAP32[$7+(HEAP32[$7+16>>2]==($3|0)?16:20)>>2]=$2;if(!$2){break label$2}}HEAP32[$2+24>>2]=$7;$1=HEAP32[$3+16>>2];if($1){HEAP32[$2+16>>2]=$1;HEAP32[$1+24>>2]=$2}$1=HEAP32[$3+20>>2];if(!$1){break label$2}HEAP32[$2+20>>2]=$1;HEAP32[$1+24>>2]=$2;break label$2}$2=HEAP32[$5+4>>2];if(($2&3)!=3){break label$2}HEAP32[310330]=$0;HEAP32[$5+4>>2]=$2&-2;HEAP32[$3+4>>2]=$0|1;HEAP32[$0+$3>>2]=$0;return}if($5>>>0<=$3>>>0){break label$1}$2=HEAP32[$5+4>>2];if(!($2&1)){break label$1}label$14:{if(!($2&2)){if(HEAP32[310334]==($5|0)){HEAP32[310334]=$3;$0=HEAP32[310331]+$0|0;HEAP32[310331]=$0;HEAP32[$3+4>>2]=$0|1;if(HEAP32[310333]!=($3|0)){break label$1}HEAP32[310330]=0;HEAP32[310333]=0;return}if(HEAP32[310333]==($5|0)){HEAP32[310333]=$3;$0=HEAP32[310330]+$0|0;HEAP32[310330]=$0;HEAP32[$3+4>>2]=$0|1;HEAP32[$0+$3>>2]=$0;return}$0=($2&-8)+$0|0;label$18:{if($2>>>0<=255){$1=HEAP32[$5+8>>2];$2=$2>>>3|0;$4=HEAP32[$5+12>>2];if(($1|0)==($4|0)){HEAP32[310328]=HEAP32[310328]&__wasm_rotl_i32(-2,$2);break label$18}HEAP32[$1+12>>2]=$4;HEAP32[$4+8>>2]=$1;break label$18}$7=HEAP32[$5+24>>2];$2=HEAP32[$5+12>>2];label$23:{if(($5|0)!=($2|0)){$1=HEAP32[$5+8>>2];HEAP32[$1+12>>2]=$2;HEAP32[$2+8>>2]=$1;break label$23}label$26:{$4=$5+20|0;$1=HEAP32[$4>>2];if($1){break label$26}$4=$5+16|0;$1=HEAP32[$4>>2];if($1){break label$26}$2=0;break label$23}while(1){$6=$4;$2=$1;$4=$2+20|0;$1=HEAP32[$4>>2];if($1){continue}$4=$2+16|0;$1=HEAP32[$2+16>>2];if($1){continue}break}HEAP32[$6>>2]=0}if(!$7){break label$18}$4=HEAP32[$5+28>>2];$1=($4<<2)+1241616|0;label$28:{if(HEAP32[$1>>2]==($5|0)){HEAP32[$1>>2]=$2;if($2){break label$28}HEAP32[310329]=HEAP32[310329]&__wasm_rotl_i32(-2,$4);break label$18}HEAP32[$7+(HEAP32[$7+16>>2]==($5|0)?16:20)>>2]=$2;if(!$2){break label$18}}HEAP32[$2+24>>2]=$7;$1=HEAP32[$5+16>>2];if($1){HEAP32[$2+16>>2]=$1;HEAP32[$1+24>>2]=$2}$1=HEAP32[$5+20>>2];if(!$1){break label$18}HEAP32[$2+20>>2]=$1;HEAP32[$1+24>>2]=$2}HEAP32[$3+4>>2]=$0|1;HEAP32[$0+$3>>2]=$0;if(HEAP32[310333]!=($3|0)){break label$14}HEAP32[310330]=$0;return}HEAP32[$5+4>>2]=$2&-2;HEAP32[$3+4>>2]=$0|1;HEAP32[$0+$3>>2]=$0}if($0>>>0<=255){$0=$0>>>3|0;$2=($0<<3)+1241352|0;$1=HEAP32[310328];$0=1<<$0;label$32:{if(!($1&$0)){HEAP32[310328]=$0|$1;$0=$2;break label$32}$0=HEAP32[$2+8>>2]}HEAP32[$2+8>>2]=$3;HEAP32[$0+12>>2]=$3;HEAP32[$3+12>>2]=$2;HEAP32[$3+8>>2]=$0;return}HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=0;$5=$3;$4=$0>>>8|0;$1=0;label$34:{if(!$4){break label$34}$1=31;if($0>>>0>16777215){break label$34}$2=$4;$4=$4+1048320>>>16&8;$1=$2<<$4;$7=$1+520192>>>16&4;$1=$1<<$7;$6=$1+245760>>>16&2;$1=($1<<$6>>>15|0)-($6|($4|$7))|0;$1=($1<<1|$0>>>$1+21&1)+28|0}HEAP32[$5+28>>2]=$1;$6=($1<<2)+1241616|0;label$35:{label$36:{$4=HEAP32[310329];$2=1<<$1;label$37:{if(!($4&$2)){HEAP32[310329]=$2|$4;HEAP32[$6>>2]=$3;HEAP32[$3+24>>2]=$6;break label$37}$4=$0<<(($1|0)==31?0:25-($1>>>1|0)|0);$2=HEAP32[$6>>2];while(1){$1=$2;if((HEAP32[$2+4>>2]&-8)==($0|0)){break label$36}$2=$4>>>29|0;$4=$4<<1;$6=$1+($2&4)|0;$2=HEAP32[$6+16>>2];if($2){continue}break}HEAP32[$6+16>>2]=$3;HEAP32[$3+24>>2]=$1}HEAP32[$3+12>>2]=$3;HEAP32[$3+8>>2]=$3;break label$35}$0=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$3;HEAP32[$1+8>>2]=$3;HEAP32[$3+24>>2]=0;HEAP32[$3+12>>2]=$1;HEAP32[$3+8>>2]=$0}$0=HEAP32[310336]+ -1|0;HEAP32[310336]=$0;if($0){break label$1}$3=1241768;while(1){$0=HEAP32[$3>>2];$3=$0+8|0;if($0){continue}break}HEAP32[310336]=-1}}function dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($0,$1,$2,$3,$4,$5,$6,$7,$8){var $9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0;$15=global$0-16|0;global$0=$15;label$1:{if(HEAP8[1130304]&1){break label$1}if(!__cxa_guard_acquire(1130304)){break label$1}if(HEAPU8[1130703]){$11=dmProfile__AllocateScope_28char_20const__29(153961)}else{$11=-1}HEAP32[282575]=$11;__cxa_guard_release(1130304)}label$3:{if(HEAP8[1130312]&1){break label$3}if(!__cxa_guard_acquire(1130312)){break label$3}if(HEAPU8[1130703]){$11=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(153979,4)}else{$11=0}HEAP32[282577]=$11;__cxa_guard_release(1130312)}$9=HEAP32[282575];label$5:{if(($9|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($15,$9,153979,HEAP32[282577]);break label$5}HEAP32[$15>>2]=0}label$7:{if(HEAP8[1130320]&1){break label$7}if(!__cxa_guard_acquire(1130320)){break label$7}if(HEAPU8[1130703]){$11=dmProfile__AllocateCounter_28char_20const__29(153984)}else{$11=-1}HEAP32[282579]=$11;__cxa_guard_release(1130320)}$9=HEAP32[282579];if(($9|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($9,1)}$10=-2;label$10:{label$11:{label$12:{if(!$1){break label$12}$9=HEAP32[282570];$13=HEAP32[$1>>2];$14=HEAP32[$1+4>>2];while(1){if(HEAP32[$9+32>>2]){continue}break}label$14:{$12=HEAP32[$9+4>>2];label$15:{if(!$12){break label$15}$12=HEAP32[HEAP32[$9>>2]+(__wasm_i64_urem($13,$14,$12)<<2)>>2];if(($12|0)==-1){break label$15}$16=HEAP32[$9+8>>2];while(1){$11=($12<<6)+$16|0;if(($13|0)==HEAP32[$11>>2]&($14|0)==HEAP32[$11+4>>2]){break label$14}$12=HEAP32[$11+56>>2];if(($12|0)!=-1){continue}break}}HEAP32[$9+32>>2]=0;break label$12}$13=($12<<6)+$16|0;$10=HEAP32[$13+8>>2];if(!$10){break label$10}$14=$13+8|0;HEAP32[$14>>2]=$10+1;HEAP32[$9+32>>2]=0;dmMutex__Lock_28dmMutex__Mutex__29(HEAP32[$13+36>>2]);$17=$7+111&-16;if($17>>>0>=4097){break label$11}$11=($12<<6)+$16|0;$18=$11;$9=HEAP32[$11+44>>2];label$17:{if($9){$10=HEAP32[$9+4096>>2];if(4096-$10>>>0>=$17>>>0){break label$17}$10=($12<<6)+$16|0;HEAP32[$9+4100>>2]=HEAP32[$10+52>>2];HEAP32[$10+52>>2]=$9}$9=HEAP32[$11+48>>2];label$19:{if($9){HEAP32[$11+48>>2]=HEAP32[$9+4100>>2];break label$19}$9=operator_20new_28unsigned_20long_29(4104)}HEAP32[$9+4096>>2]=0;HEAP32[$9+4100>>2]=0;HEAP32[$18+44>>2]=$9;$10=0}HEAP32[$9+4096>>2]=$10+$17;$9=$9+$10|0;label$21:{if($0){$10=HEAP32[$0+4>>2];HEAP32[$9>>2]=HEAP32[$0>>2];HEAP32[$9+4>>2]=$10;$10=HEAP32[$0+28>>2];HEAP32[$9+24>>2]=HEAP32[$0+24>>2];HEAP32[$9+28>>2]=$10;$10=HEAP32[$0+20>>2];HEAP32[$9+16>>2]=HEAP32[$0+16>>2];HEAP32[$9+20>>2]=$10;$10=HEAP32[$0+12>>2];HEAP32[$9+8>>2]=HEAP32[$0+8>>2];HEAP32[$9+12>>2]=$10;break label$21}HEAP8[$9|0]=0;HEAP8[$9+1|0]=0;HEAP8[$9+2|0]=0;HEAP8[$9+3|0]=0;HEAP8[$9+4|0]=0;HEAP8[$9+5|0]=0;HEAP8[$9+6|0]=0;HEAP8[$9+7|0]=0;HEAP8[$9+24|0]=0;HEAP8[$9+25|0]=0;HEAP8[$9+26|0]=0;HEAP8[$9+27|0]=0;HEAP8[$9+28|0]=0;HEAP8[$9+29|0]=0;HEAP8[$9+30|0]=0;HEAP8[$9+31|0]=0;HEAP8[$9+16|0]=0;HEAP8[$9+17|0]=0;HEAP8[$9+18|0]=0;HEAP8[$9+19|0]=0;HEAP8[$9+20|0]=0;HEAP8[$9+21|0]=0;HEAP8[$9+22|0]=0;HEAP8[$9+23|0]=0;HEAP8[$9+8|0]=0;HEAP8[$9+9|0]=0;HEAP8[$9+10|0]=0;HEAP8[$9+11|0]=0;HEAP8[$9+12|0]=0;HEAP8[$9+13|0]=0;HEAP8[$9+14|0]=0;HEAP8[$9+15|0]=0}$0=HEAP32[$1+4>>2];HEAP32[$9+32>>2]=HEAP32[$1>>2];HEAP32[$9+36>>2]=$0;$0=HEAP32[$1+28>>2];HEAP32[$9+56>>2]=HEAP32[$1+24>>2];HEAP32[$9+60>>2]=$0;$0=HEAP32[$1+20>>2];HEAP32[$9+48>>2]=HEAP32[$1+16>>2];HEAP32[$9+52>>2]=$0;$0=HEAP32[$1+12>>2];HEAP32[$9+40>>2]=HEAP32[$1+8>>2];HEAP32[$9+44>>2]=$0;HEAP32[$9+88>>2]=$8;HEAP32[$9+84>>2]=0;HEAP32[$9+80>>2]=$7;HEAP32[$9+76>>2]=$5;HEAP32[$9+72>>2]=$4;HEAP32[$9+64>>2]=$2;HEAP32[$9+68>>2]=$3;memcpy($9+96|0,$6,$7);$0=($12<<6)+$16|0;$1=$0;label$23:{if(HEAP32[$0+24>>2]){HEAP32[HEAP32[$0+28>>2]+84>>2]=$9;break label$23}HEAP32[$1+24>>2]=$9}HEAP32[$0+28>>2]=$9;dmMutex__Unlock_28dmMutex__Mutex__29(HEAP32[$13+36>>2]);$0=HEAP32[282570];while(1){if(HEAP32[$0+32>>2]){continue}break}$1=HEAP32[$14>>2]+ -1|0;HEAP32[$14>>2]=$1;$10=0;HEAP32[$0+32>>2]=0;if($1){break label$12}dmMessage__DisposeSocket_28dmMessage__MessageSocket__29($14)}if(HEAP32[$15>>2]){dmProfile__ProfileScope__EndScope_28_29($15)}global$0=$15+16|0;return $10}__assert_fail(154170,154132,95,154199);abort()}__assert_fail(154113,154132,259,154156);abort()}function b2WorldManifold__Initialize_28b2Manifold_20const__2c_20b2Transform_20const__2c_20float_2c_20b2Transform_20const__2c_20float_29($0,$1,$2,$3,$4,$5){var $6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=0,$19=Math_fround(0);label$1:{if(!HEAP32[$1+68>>2]){break label$1}$13=HEAP32[$1+64>>2];if($13>>>0>2){break label$1}label$2:{switch($13-1|0){default:HEAP32[$0>>2]=1065353216;HEAP32[$0+4>>2]=0;$8=HEAPF32[$2+12>>2];$6=HEAPF32[$1+56>>2];$9=HEAPF32[$2+8>>2];$11=HEAPF32[$1+60>>2];$7=Math_fround(HEAPF32[$2>>2]+Math_fround(Math_fround($8*$6)-Math_fround($9*$11)));$12=HEAPF32[$4+12>>2];$14=HEAPF32[$1>>2];$15=HEAPF32[$4+8>>2];$16=HEAPF32[$1+4>>2];$10=Math_fround(HEAPF32[$4>>2]+Math_fround(Math_fround($12*$14)-Math_fround($15*$16)));$17=Math_fround($7-$10);$9=Math_fround(Math_fround(Math_fround($6*$9)+Math_fround($8*$11))+HEAPF32[$2+4>>2]);$11=Math_fround(Math_fround(Math_fround($14*$15)+Math_fround($12*$16))+HEAPF32[$4+4>>2]);$8=Math_fround($9-$11);label$5:{if(!(Math_fround(Math_fround($17*$17)+Math_fround($8*$8))>Math_fround(1.4210854715202004e-14))){$8=Math_fround(1);$6=Math_fround(0);break label$5}$6=Math_fround($11-$9);HEAPF32[$0+4>>2]=$6;$8=Math_fround($10-$7);HEAPF32[$0>>2]=$8;$12=Math_fround(Math_sqrt(Math_fround(Math_fround($8*$8)+Math_fround($6*$6))));if($12>2]=$6;$8=Math_fround($8*$12);HEAPF32[$0>>2]=$8}HEAPF32[$0+12>>2]=Math_fround(Math_fround($9+Math_fround($6*$3))+Math_fround($11-Math_fround($6*$5)))*Math_fround(.5);HEAPF32[$0+8>>2]=Math_fround(Math_fround($7+Math_fround($8*$3))+Math_fround($10-Math_fround($8*$5)))*Math_fround(.5);return;case 0:$6=HEAPF32[$1+48>>2];$7=HEAPF32[$2+8>>2];$10=HEAPF32[$2+12>>2];$9=HEAPF32[$1+52>>2];$8=Math_fround(Math_fround($6*$7)+Math_fround($10*$9));HEAPF32[$0+4>>2]=$8;$6=Math_fround(Math_fround($10*$6)-Math_fround($7*$9));HEAPF32[$0>>2]=$6;if(HEAP32[$1+68>>2]<1){break label$1}$7=HEAPF32[$1+56>>2];$10=HEAPF32[$2+8>>2];$9=HEAPF32[$2+12>>2];$11=HEAPF32[$1+60>>2];$12=Math_fround(Math_fround(Math_fround($7*$10)+Math_fround($9*$11))+HEAPF32[$2+4>>2]);$10=Math_fround(HEAPF32[$2>>2]+Math_fround(Math_fround($9*$7)-Math_fround($10*$11)));$9=Math_fround($8*$5);$11=Math_fround($6*$5);$2=0;while(1){$13=($2<<3)+$0|0;$18=Math_imul($2,24)+$1|0;$7=HEAPF32[$18>>2];$14=HEAPF32[$4+8>>2];$15=HEAPF32[$4+12>>2];$16=HEAPF32[$18+4>>2];$5=Math_fround(Math_fround(Math_fround($7*$14)+Math_fround($15*$16))+HEAPF32[$4+4>>2]);$19=Math_fround($5-$9);$17=$5;$7=Math_fround(HEAPF32[$4>>2]+Math_fround(Math_fround($15*$7)-Math_fround($14*$16)));$5=Math_fround($3-Math_fround(Math_fround($6*Math_fround($7-$10))+Math_fround(Math_fround($5-$12)*$8)));HEAPF32[$13+12>>2]=Math_fround($19+Math_fround($17+Math_fround($8*$5)))*Math_fround(.5);HEAPF32[$13+8>>2]=Math_fround(Math_fround($7-$11)+Math_fround($7+Math_fround($6*$5)))*Math_fround(.5);$2=$2+1|0;if(($2|0)>2]){continue}break}break label$1;case 1:break label$2}}$6=HEAPF32[$1+48>>2];$7=HEAPF32[$4+8>>2];$10=HEAPF32[$4+12>>2];$9=HEAPF32[$1+52>>2];$8=Math_fround(Math_fround($6*$7)+Math_fround($10*$9));HEAPF32[$0+4>>2]=$8;$6=Math_fround(Math_fround($10*$6)-Math_fround($7*$9));HEAPF32[$0>>2]=$6;if(HEAP32[$1+68>>2]>=1){$7=HEAPF32[$1+56>>2];$10=HEAPF32[$4+8>>2];$9=HEAPF32[$4+12>>2];$11=HEAPF32[$1+60>>2];$12=Math_fround(Math_fround(Math_fround($7*$10)+Math_fround($9*$11))+HEAPF32[$4+4>>2]);$10=Math_fround(HEAPF32[$4>>2]+Math_fround(Math_fround($9*$7)-Math_fround($10*$11)));$9=Math_fround($8*$3);$11=Math_fround($6*$3);$4=0;while(1){$13=($4<<3)+$0|0;$18=Math_imul($4,24)+$1|0;$7=HEAPF32[$18>>2];$14=HEAPF32[$2+8>>2];$15=HEAPF32[$2+12>>2];$16=HEAPF32[$18+4>>2];$3=Math_fround(Math_fround(Math_fround($7*$14)+Math_fround($15*$16))+HEAPF32[$2+4>>2]);$19=Math_fround($3-$9);$17=$3;$7=Math_fround(HEAPF32[$2>>2]+Math_fround(Math_fround($15*$7)-Math_fround($14*$16)));$3=Math_fround($5-Math_fround(Math_fround($6*Math_fround($7-$10))+Math_fround(Math_fround($3-$12)*$8)));HEAPF32[$13+12>>2]=Math_fround($19+Math_fround($17+Math_fround($8*$3)))*Math_fround(.5);HEAPF32[$13+8>>2]=Math_fround(Math_fround($7-$11)+Math_fround($7+Math_fround($6*$3)))*Math_fround(.5);$4=$4+1|0;if(($4|0)>2]){continue}break}}HEAPF32[$0+4>>2]=-$8;HEAPF32[$0>>2]=-$6}}function dmHttpCache__Begin_28dmHttpCache__Cache__2c_20char_20const__2c_20char_20const__2c_20unsigned_20int_2c_20dmHttpCache__CacheCreator___29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$6=global$0-224|0;global$0=$6;$15=HEAP32[$0+48>>2];dmMutex__Lock_28dmMutex__Mutex__29($15);HEAP32[$4>>2]=0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{if(!(HEAPU8[$2|0]|$3)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,147820,148144,0);break label$6}$9=dmHashString64($1);$8=i64toi32_i32$HIGH_BITS;dmHashInit64($6+192|0,0);dmHashUpdateBuffer64($6+192|0,$1,strlen($1));dmHashUpdateBuffer64($6+192|0,$2,strlen($2));$11=$0+16|0;$12=dmHashFinal64($6+192|0);$13=i64toi32_i32$HIGH_BITS;label$8:{label$9:{$7=HEAP32[$0+20>>2];label$10:{if(!$7){break label$10}$5=HEAP32[HEAP32[$11>>2]+(__wasm_i64_urem($9,$8,$7)<<2)>>2];if(($5|0)==-1){break label$10}$10=HEAP32[$0+24>>2];while(1){$14=$10+Math_imul($5,136)|0;if(($9|0)==HEAP32[$14>>2]&($8|0)==HEAP32[$14+4>>2]){break label$9}$5=HEAP32[$14+128>>2];if(($5|0)!=-1){continue}break}}memset($6+72|0,0,120);$5=HEAP32[$0+40>>2];if(($5|0)==((HEAP32[$0+32>>2]-HEAP32[$0+24>>2]|0)/136|0)){$5=$5+128|0;$7=$5<<1;dmHashTable_unsigned_20long_20long_2c_20dmHttpCache__Entry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($11,$7>>>0<3?1:($7>>>0)/3|0,$5)}dmHashTable_unsigned_20long_20long_2c_20dmHttpCache__Entry___Put_28unsigned_20long_20long_2c_20dmHttpCache__Entry_20const__29($11,$9,$8,$6+72|0);$7=HEAP32[$0+20>>2];break label$8}$5=$10+Math_imul($5,136)|0;if(!(!HEAPU8[$2|0]|(($12|0)!=HEAP32[$5+80>>2]|($13|0)!=HEAP32[$5+84>>2]))){HEAP32[$6+68>>2]=$2;HEAP32[$6+64>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,147820,148202,$6- -64|0);break label$6}$5=HEAPU16[$5+120>>1];if($5&255){HEAP32[$6+52>>2]=$2;HEAP32[$6+48>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,147820,148271,$6+48|0);break label$6}if(!($5&256)){break label$8}HEAP32[$6+36>>2]=$2;HEAP32[$6+32>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,147820,148339,$6+32|0);break label$6}$10=0;label$15:{if(!$7){break label$15}$5=HEAP32[HEAP32[$11>>2]+(__wasm_i64_urem($9,$8,$7)<<2)>>2];if(($5|0)==-1){break label$15}$11=HEAP32[$0+24>>2];while(1){$5=Math_imul($5,136);$10=$5+$11|0;$7=$10;if(($9|0)==HEAP32[$7>>2]&($8|0)==HEAP32[$7+4>>2]){break label$15}$5=HEAP32[($5+$11|0)+128>>2];if(($5|0)!=-1){continue}break}$10=0}$5=$10?$10+8|0:0;dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($5,$2,64);$2=dmPoolAllocator__Duplicate_28dmPoolAllocator__Pool__2c_20char_20const__29(HEAP32[$0+84>>2],$1);HEAP32[$5+72>>2]=$12;HEAP32[$5+76>>2]=$13;HEAP32[$5+64>>2]=$2;HEAP32[$5+80>>2]=dmTime__GetTime_28_29();HEAP32[$5+84>>2]=i64toi32_i32$HIGH_BITS;$9=$5;$7=$5;if($3){$8=dmTime__GetTime_28_29();$2=i64toi32_i32$HIGH_BITS;$3=Math_imul($3,1e6);$8=$3+$8|0;if($8>>>0<$3>>>0){$2=$2+1|0}}else{$2=0;$8=0}HEAP32[$7+88>>2]=$8;HEAP32[$9+92>>2]=$2;HEAP16[$5+112>>1]=HEAPU16[$5+112>>1]|256;$3=HEAPU16[$0+56>>1];$2=HEAPU16[$0+58>>1];if(($3|0)==($2|0)){break label$6}$5=HEAP32[$0+52>>2];if(!$5){break label$5}if($2>>>0>=$3>>>0){break label$4}HEAP16[$0+58>>1]=$2+1;$2=HEAPU16[$5+($2<<1)>>1];$5=HEAP32[$0>>2];$9=strlen($5)+10|0;$3=dlmalloc($9);HEAP32[$6+20>>2]=$2;HEAP32[$6+16>>2]=$5;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($3,$9,148411,$6+16|0);$5=fopen($3,148077);if(!$5){HEAP32[$6>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,147820,148423,$6);dlfree($3);$3=HEAP32[$0+52>>2];if(!$3){break label$3}$1=HEAPU16[$0+58>>1];if(!$1|$1>>>0>HEAPU16[$0+56>>1]){break label$2}$4=$0;$0=$1+ -1|0;HEAP16[$4+58>>1]=$0;HEAP16[$3+(($0&65535)<<1)>>1]=$2;break label$6}$7=HEAP32[$0+68>>2];$0=HEAP32[$0+64>>2];if($7-$0>>6>>>0<=$2>>>0){break label$1}$0=$0+($2<<6)|0;HEAP16[$0+56>>1]=$2;dmHashInit64($0+8|0,0);HEAP32[$0+40>>2]=$12;HEAP32[$0+44>>2]=$13;HEAP32[$0>>2]=$3;HEAP32[$0+4>>2]=$5;HEAP32[$0+48>>2]=dmHashString64($1);HEAP32[$0+52>>2]=i64toi32_i32$HIGH_BITS;HEAP8[$0+58|0]=HEAPU8[$0+58|0]&254;HEAP32[$4>>2]=$0}dmMutex__Unlock_28dmMutex__Mutex__29($15);global$0=$6+224|0;return}__assert_fail(149415,149152,148,149422);abort()}__assert_fail(149426,149152,149,149422);abort()}__assert_fail(149415,149152,137,149446);abort()}__assert_fail(149451,149152,138,149446);abort()}__assert_fail(149305,149252,430,149316);abort()}function dmGui__UpdateAnimations_28dmGui__Scene__2c_20float_29($0,$1){var $2=0,$3=0,$4=Math_fround(0),$5=0,$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$10=global$0-32|0;global$0=$10;label$1:{$2=HEAP32[$0+48>>2];label$2:{if(($2|0)==HEAP32[$0+52>>2]){break label$2}label$3:{while(1){label$5:{$3=Math_imul($12,72)+$2|0;$4=HEAPF32[$3+20>>2];$7=HEAPF32[$3+24>>2];label$6:{if($4>$7){break label$6}$5=HEAPU8[$3+68|0];if($5&4){break label$6}$6=HEAP32[$3+52>>2];$9=$6+ -3|0;$11=$7==Math_fround(0);if($9>>>0>2?!($11|$4!=$7):0){break label$6}$13=HEAP32[$0+32>>2];$15=(HEAP32[$0+36>>2]-$13|0)/576|0;$2=HEAP32[$3>>2];while(1){$2=$2&65535;if($15>>>0<=$2>>>0){break label$5}$2=$13+Math_imul($2,576)|0;if(!(HEAPU8[$2+414|0]&16)){break label$6}$2=HEAPU16[$2+560>>1];if(($2|0)!=65535){continue}break}$14=$14+1|0;$8=HEAPF32[$3+16>>2];if(!!($8<$1)){if($5&1){HEAP32[$3+8>>2]=HEAP32[HEAP32[$3+4>>2]>>2];$5=$5&254;HEAP8[$3+68|0]=$5;$4=Math_fround(-$8);HEAPF32[$3+20>>2]=$4;HEAP32[$3+16>>2]=0}$8=$4;$4=Math_fround(HEAPF32[$3+28>>2]*$1);$8=Math_fround($8+$4);$4=Math_fround(Math_fround($8+Math_fround($4*Math_fround(.5)))-$7)>=Math_fround(0)?$7:$8;HEAPF32[$3+20>>2]=$4;$7=$11?Math_fround(1):Math_fround($7-$4)>=Math_fround(0)?Math_fround($4/$7):Math_fround(1);label$13:{label$14:{label$15:{$2=$6+ -1|0;if($2>>>0>3){break label$15}switch($2-1|0){case 0:case 1:break label$15;default:break label$14}}$4=$7;if(!($5&8)){break label$13}}$4=Math_fround(Math_fround(1)-$7)}$2=$6+ -2|0;label$16:{if($2>>>0>3){break label$16}label$17:{switch($2-1|0){case 0:case 1:break label$16;default:break label$17}}$4=Math_fround($4+$4);if(!($4>Math_fround(1))){break label$16}$4=Math_fround(Math_fround(2)-$4)}HEAP32[$10+24>>2]=HEAP32[$3+48>>2];$2=HEAP32[$3+44>>2];HEAP32[$10+16>>2]=HEAP32[$3+40>>2];HEAP32[$10+20>>2]=$2;$2=HEAP32[$3+36>>2];HEAP32[$10+8>>2]=HEAP32[$3+32>>2];HEAP32[$10+12>>2]=$2;$4=dmEasing__GetValue_28dmEasing__Curve_2c_20float_29($10+8|0,$4);$8=HEAPF32[$3+8>>2];HEAPF32[HEAP32[$3+4>>2]>>2]=$8+Math_fround($4*Math_fround(HEAPF32[$3+12>>2]-$8));$2=HEAP32[$0+32>>2];$5=HEAPU16[$3>>1];if((HEAP32[$0+36>>2]-$2|0)/576>>>0<=$5>>>0){break label$1}$2=$2+Math_imul($5,576)|0;HEAP32[$2+412>>2]=HEAP32[$2+412>>2]|2097152;if(!($7>=Math_fround(1))){break label$6}if($9>>>0<=2){HEAPF32[$3+20>>2]=HEAPF32[$3+20>>2]-HEAPF32[$3+24>>2];if(($6|0)!=5){break label$6}HEAP8[$3+68|0]=HEAPU8[$3+68|0]^8;break label$6}$2=HEAPU8[$3+68|0];if($2&2){break label$6}HEAP8[$3+68|0]=$2|2;$2=HEAP32[$3+56>>2];if($2){FUNCTION_TABLE[$2]($0,HEAP32[$3>>2],1,HEAP32[$3+60>>2],HEAP32[$3+64>>2])}$2=HEAP32[$3+40>>2];if(!$2){break label$6}FUNCTION_TABLE[$2]($3+32|0);break label$6}HEAPF32[$3+16>>2]=$8-$1}$12=$12+1|0;$6=HEAP32[$0+52>>2];$2=HEAP32[$0+48>>2];$3=$6-$2|0;$9=($3|0)/72|0;if($12>>>0<$9>>>0){continue}break label$3}break}break label$1}if(!$3){$9=0;break label$2}$3=0;label$21:{while(1){if(($6-$2|0)/72>>>0>$3>>>0){$13=Math_imul($3,72);$5=$13+$2|0;$12=HEAPU8[$5+68|0];$11=$12&4;label$24:{label$25:{label$26:{if(!(HEAPF32[$5+20>>2]>=HEAPF32[$5+24>>2])){if($11){break label$26}break label$24}if(!$11){break label$25}}if($12&2){break label$25}$11=HEAP32[$5+56>>2];if(!$11){break label$25}HEAP8[$5+68|0]=$12|2;FUNCTION_TABLE[$11]($0,HEAP32[$5>>2],0,HEAP32[$5+60>>2],HEAP32[$5+64>>2]);$2=HEAP32[$0+48>>2];$6=HEAP32[$0+52>>2]}if(($6-$2|0)/72>>>0<=$3>>>0){break label$1}$2=$2+$13|0;memmove($2,$2+72|0,($6-$2|0)+ -72|0);$2=HEAP32[$0+48>>2];$5=((HEAP32[$0+52>>2]-$2|0)/72|0)+ -1|0;if((HEAP32[$0+56>>2]-$2|0)/72>>>0<$5>>>0){break label$21}$6=Math_imul($5,72)+$2|0;HEAP32[$0+52>>2]=$6;$9=$9+ -1|0;$3=$3+ -1|0}$3=$3+1|0;if($3>>>0<$9>>>0){continue}break label$2}break}break label$1}__assert_fail(202434,201431,457,202453);abort()}label$28:{if(HEAP8[1134468]&1){break label$28}if(!__cxa_guard_acquire(1134468)){break label$28}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(199609)}else{$0=-1}HEAP32[283616]=$0;__cxa_guard_release(1134468)}$0=HEAP32[283616];if(($0|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,$9)}label$31:{if(HEAP8[1134476]&1){break label$31}if(!__cxa_guard_acquire(1134476)){break label$31}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(199624)}else{$0=-1}HEAP32[283618]=$0;__cxa_guard_release(1134476)}$0=HEAP32[283618];if(($0|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,$14)}global$0=$10+32|0;return}__assert_fail(201597,201431,430,201608);abort()}function mbedtls_aes_setkey_enc($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$3=$0;$4=10;label$1:{label$2:{if(($2|0)==128){break label$2}if(($2|0)!=256){$5=-32;if(($2|0)!=192){break label$1}$4=12;break label$2}$4=14}HEAP32[$3>>2]=$4;if(!HEAPU8[1121360]){aes_gen_tables();HEAP8[1121360]=1}$3=$0+8|0;HEAP32[$0+4>>2]=$3;$5=$2>>>5|0;if($5){$2=0;while(1){$4=$2<<2;HEAP32[($4+$0|0)+8>>2]=HEAPU8[$1+$4|0]|HEAPU8[($4|1)+$1|0]<<8|HEAPU8[($4|2)+$1|0]<<16|HEAPU8[($4|3)+$1|0]<<24;$2=$2+1|0;if(($5|0)!=($2|0)){continue}break}}$5=0;$1=HEAP32[$0>>2]+ -10|0;if($1>>>0>4){break label$1}label$7:{switch($1-1|0){default:$1=HEAP32[$3>>2];$2=0;while(1){$0=HEAP32[$3+12>>2];$1=HEAPU8[($0>>>8&255)+1121424|0]^(HEAP32[($2<<2)+1121376>>2]^$1)^HEAPU8[($0>>>16&255)+1121424|0]<<8^HEAPU8[($0>>>24|0)+1121424|0]<<16^HEAPU8[($0&255)+1121424|0]<<24;HEAP32[$3+16>>2]=$1;$4=HEAP32[$3+4>>2]^$1;HEAP32[$3+20>>2]=$4;$4=$4^HEAP32[$3+8>>2];HEAP32[$3+24>>2]=$4;HEAP32[$3+28>>2]=$0^$4;$3=$3+16|0;$2=$2+1|0;if(($2|0)!=10){continue}break}break label$1;case 1:$1=HEAP32[$0+28>>2];$2=HEAPU8[($1>>>8&255)+1121424|0]^(HEAP32[280344]^HEAP32[$0+8>>2])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+32>>2]=$2;$3=$2^HEAP32[$0+12>>2];HEAP32[$0+36>>2]=$3;$4=$3^HEAP32[$0+16>>2];HEAP32[$0+40>>2]=$4;$5=$4^HEAP32[$0+20>>2];HEAP32[$0+44>>2]=$5;$6=$5^HEAP32[$0+24>>2];HEAP32[$0+48>>2]=$6;$1=$1^$6;HEAP32[$0+52>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280345])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+56>>2]=$2;$3=$2^$3;HEAP32[$0+60>>2]=$3;$4=$3^$4;HEAP32[$0- -64>>2]=$4;$5=$4^$5;HEAP32[$0+68>>2]=$5;$6=$5^$6;HEAP32[$0+72>>2]=$6;$1=$1^$6;HEAP32[$0+76>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280346])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+80>>2]=$2;$3=$2^$3;HEAP32[$0+84>>2]=$3;$4=$3^$4;HEAP32[$0+88>>2]=$4;$5=$4^$5;HEAP32[$0+92>>2]=$5;$6=$5^$6;HEAP32[$0+96>>2]=$6;$1=$1^$6;HEAP32[$0+100>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280347])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+104>>2]=$2;$3=$2^$3;HEAP32[$0+108>>2]=$3;$4=$3^$4;HEAP32[$0+112>>2]=$4;$5=$4^$5;HEAP32[$0+116>>2]=$5;$6=$5^$6;HEAP32[$0+120>>2]=$6;$1=$1^$6;HEAP32[$0+124>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280348])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+128>>2]=$2;$3=$2^$3;HEAP32[$0+132>>2]=$3;$4=$3^$4;HEAP32[$0+136>>2]=$4;$5=$4^$5;HEAP32[$0+140>>2]=$5;$6=$5^$6;HEAP32[$0+144>>2]=$6;$1=$1^$6;HEAP32[$0+148>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280349])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+152>>2]=$2;$3=$2^$3;HEAP32[$0+156>>2]=$3;$4=$3^$4;HEAP32[$0+160>>2]=$4;$5=$4^$5;HEAP32[$0+164>>2]=$5;$6=$5^$6;HEAP32[$0+168>>2]=$6;$1=$1^$6;HEAP32[$0+172>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280350])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+176>>2]=$2;$3=$2^$3;HEAP32[$0+180>>2]=$3;$4=$3^$4;HEAP32[$0+184>>2]=$4;$5=$4^$5;HEAP32[$0+188>>2]=$5;$6=$5^$6;HEAP32[$0+192>>2]=$6;$1=$1^$6;HEAP32[$0+196>>2]=$1;$2=HEAPU8[($1>>>8&255)+1121424|0]^($2^HEAP32[280351])^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$0+200>>2]=$2;$2=$2^$3;HEAP32[$0+204>>2]=$2;$2=$2^$4;HEAP32[$0+208>>2]=$2;$2=$2^$5;HEAP32[$0+212>>2]=$2;$2=$2^$6;HEAP32[$0+216>>2]=$2;HEAP32[$0+220>>2]=$1^$2;return 0;case 0:case 2:break label$1;case 3:break label$7}}$0=HEAP32[$3>>2];$4=0;while(1){$1=HEAP32[$3+28>>2];$0=HEAPU8[($1>>>8&255)+1121424|0]^(HEAP32[($4<<2)+1121376>>2]^$0)^HEAPU8[($1>>>16&255)+1121424|0]<<8^HEAPU8[($1>>>24|0)+1121424|0]<<16^HEAPU8[($1&255)+1121424|0]<<24;HEAP32[$3+32>>2]=$0;$2=HEAP32[$3+4>>2]^$0;HEAP32[$3+36>>2]=$2;$2=$2^HEAP32[$3+8>>2];HEAP32[$3+40>>2]=$2;$2=$2^HEAP32[$3+12>>2];HEAP32[$3+44>>2]=$2;$2=HEAP32[$3+16>>2]^HEAPU8[($2&255)+1121424|0]^HEAPU8[($2>>>8&255)+1121424|0]<<8^HEAPU8[($2>>>16&255)+1121424|0]<<16^HEAPU8[($2>>>24|0)+1121424|0]<<24;HEAP32[$3+48>>2]=$2;$2=$2^HEAP32[$3+20>>2];HEAP32[$3+52>>2]=$2;$2=$2^HEAP32[$3+24>>2];HEAP32[$3+56>>2]=$2;HEAP32[$3+60>>2]=$1^$2;$3=$3+32|0;$4=$4+1|0;if(($4|0)!=7){continue}break}}return $5}function dmGui__SetScript_28dmGui__Script__2c_20dmLuaDDF__LuaSource__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$4=global$0-112|0;global$0=$4;$2=HEAP32[HEAP32[$0+24>>2]>>2];$6=HEAP32[$2+8>>2]-HEAP32[$2+12>>2]>>4;label$1:{if(dmScript__LuaLoad_28lua_State__2c_20dmLuaDDF__LuaSource__29($2,$1)){$3=-1;HEAP32[$4+96>>2]=lua_tolstring($2,-1,0);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,201160,$4+96|0);lua_settop($2,-2);break label$1}lua_rawgeti($2,-1e4,HEAP32[$0+32>>2]);dmScript__SetInstance_28lua_State__29($2);$5=dmScript__PCall_28lua_State__2c_20int_2c_20int_29($2,0,-1);$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;dmScript__SetInstance_28lua_State__29($2);$3=-2;if($5){break label$1}$3=HEAP32[$0>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0>>2]=-2}lua_getfield($2,-10002,201619);label$4:{if((lua_type($2,-1)|0)==6){HEAP32[$0>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4);break label$4}if(lua_type($2,-1)){HEAP32[$4+84>>2]=HEAP32[$1+8>>2];HEAP32[$4+80>>2]=201619;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4+80|0)}lua_settop($2,-2)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201619);$3=HEAP32[$0+4>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0+4>>2]=-2}lua_getfield($2,-10002,201624);label$8:{if((lua_type($2,-1)|0)!=6){if(lua_type($2,-1)){HEAP32[$4+68>>2]=HEAP32[$1+8>>2];HEAP32[$4+64>>2]=201624;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4- -64|0)}lua_settop($2,-2);break label$8}HEAP32[$0+4>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201624);$3=HEAP32[$0+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0+8>>2]=-2}lua_getfield($2,-10002,201630);label$12:{if((lua_type($2,-1)|0)!=6){if(lua_type($2,-1)){HEAP32[$4+52>>2]=HEAP32[$1+8>>2];HEAP32[$4+48>>2]=201630;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4+48|0)}lua_settop($2,-2);break label$12}HEAP32[$0+8>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201630);$3=HEAP32[$0+12>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0+12>>2]=-2}lua_getfield($2,-10002,201637);label$16:{if((lua_type($2,-1)|0)!=6){if(lua_type($2,-1)){HEAP32[$4+36>>2]=HEAP32[$1+8>>2];HEAP32[$4+32>>2]=201637;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4+32|0)}lua_settop($2,-2);break label$16}HEAP32[$0+12>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201637);$3=HEAP32[$0+16>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0+16>>2]=-2}lua_getfield($2,-10002,201648);label$20:{if((lua_type($2,-1)|0)!=6){if(lua_type($2,-1)){HEAP32[$4+20>>2]=HEAP32[$1+8>>2];HEAP32[$4+16>>2]=201648;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4+16|0)}lua_settop($2,-2);break label$20}HEAP32[$0+16>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201648);$3=HEAP32[$0+20>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($2,-1e4,$3);HEAP32[$0+20>>2]=-2}lua_getfield($2,-10002,201657);label$24:{if((lua_type($2,-1)|0)!=6){if(lua_type($2,-1)){HEAP32[$4+4>>2]=HEAP32[$1+8>>2];HEAP32[$4>>2]=201657;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201187,$4)}lua_settop($2,-2);break label$24}HEAP32[$0+20>>2]=dmScript__Ref_28lua_State__2c_20int_29($2,-1e4)}$3=HEAP32[$2+8>>2];HEAP32[$3+8>>2]=0;HEAP32[$2+8>>2]=$3+16;lua_setfield($2,-10002,201657);$3=0;if(HEAPU8[1130703]){$1=HEAP32[$1+8>>2];$5=strlen($1);$1=dmProfile__Internalize_28char_20const__2c_20unsigned_20int_2c_20unsigned_20int_29($1,$5,dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29($1,$5))}else{$1=0}HEAP32[$0+28>>2]=$1}if(HEAP32[$2+8>>2]-HEAP32[$2+12>>2]>>4==($6|0)){global$0=$4+112|0;return $3}__assert_fail(199281,199220,4447,201215);abort()}function dmGameSystem__CompModelGetProperty_28dmGameObject__ComponentGetPropertyParams_20const__2c_20dmGameObject__PropertyDesc__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=Math_fround(0),$8=0;$2=global$0-48|0;global$0=$2;label$1:{$3=HEAP32[$0+4>>2];$4=HEAP32[$3+16>>2];label$2:{label$3:{label$4:{label$5:{$5=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$3+20>>2]-$4>>3>>>0>$5>>>0){$8=HEAP32[$3+4>>2];$3=HEAP32[$3>>2];$4=HEAP32[$4+($5<<3)>>2];if($8-$3>>2>>>0<=$4>>>0){break label$1}$5=HEAP32[$3+($4<<2)>>2];$3=HEAP32[$0+16>>2];$4=HEAP32[$0+20>>2];if(($3|0)==HEAP32[146366]&($4|0)==HEAP32[146367]){$0=HEAP32[$5+132>>2];$3=HEAP32[$0+204>>2];HEAP32[$2+16>>2]=HEAP32[$0+200>>2];HEAP32[$2+20>>2]=$3;HEAP32[$2+8>>2]=1;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$2}if(($3|0)==HEAP32[146368]&($4|0)==HEAP32[146369]){$0=HEAP32[$5+132>>2];$0=((HEAP8[$0+224|0]&1)<<5)+$0|0;$3=HEAP32[$0+12>>2];HEAP32[$2+16>>2]=HEAP32[$0+8>>2];HEAP32[$2+20>>2]=$3;HEAP32[$2+8>>2]=1;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$2}if(($3|0)==HEAP32[146370]&($4|0)==HEAP32[146371]){$0=$2+8|0;$7=dmRig__GetCursor_28dmRig__RigInstance__2c_20bool_29(HEAP32[$5+132>>2]);HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$7;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$2}if(($3|0)==HEAP32[146372]&($4|0)==HEAP32[146373]){$0=$2+8|0;$7=dmRig__GetPlaybackRate_28dmRig__RigInstance__29(HEAP32[$5+132>>2]);HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$7;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$2}label$11:{if(($3|0)!=HEAP32[146344]|($4|0)!=HEAP32[146345]){if(HEAP32[146348]!=($3|0)|HEAP32[146349]!=($4|0)){break label$11}break label$3}$3=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$0=HEAP32[$5+992>>2];if(!$0){$0=HEAP32[HEAP32[$5+128>>2]+8>>2]}$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($3,$0,$1);break label$2}$6=1;if(HEAP32[146350]==($3|0)&HEAP32[146351]==($4|0)){break label$3}$6=2;if(HEAP32[146352]==($3|0)&HEAP32[146353]==($4|0)){break label$3}$6=3;if(HEAP32[146354]==($3|0)&HEAP32[146355]==($4|0)){break label$3}$6=4;if(HEAP32[146356]==($3|0)&HEAP32[146357]==($4|0)){break label$3}$6=5;if(HEAP32[146358]==($3|0)&HEAP32[146359]==($4|0)){break label$3}$6=6;if(HEAP32[146360]==($3|0)&HEAP32[146361]==($4|0)){break label$3}$6=7;if(HEAP32[146362]==($3|0)&HEAP32[146363]==($4|0)){break label$3}$0=HEAP32[$5+992>>2];if(!$0){break label$5}break label$4}break label$1}$0=HEAP32[HEAP32[$5+128>>2]+8>>2]}$0=dmGameSystem__GetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__2c_20bool_2c_20bool_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmRender__Constant___29_2c_20void__29($0,$3,$4,$1,1,474,$5);break label$2}$3=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$4=$6<<2;$0=HEAP32[($4+$5|0)+960>>2];if(!$0){$0=HEAP32[($4+HEAP32[$5+128>>2]|0)+20>>2]}$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($3,$0,$1)}global$0=$2+48|0;return $0|0}__assert_fail(46554,46388,430,46565);abort()}function dmGui__PlayNodeFlipbookAnim_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$2,$3,$4,$5,$6,$7,$8){var $9=0,$10=0,$11=0,$12=0,$13=0,$14=Math_fround(0),$15=0,$16=0,$17=0,$18=Math_fround(0);$12=global$0-32|0;global$0=$12;label$1:{label$2:{label$4:{label$5:{$11=HEAP32[$0+32>>2];$10=$1&65535;if((HEAP32[$0+36>>2]-$11|0)/576>>>0>$10>>>0){$15=$1>>>16|0;if(($15|0)!=HEAPU16[(Math_imul($10,576)+$11|0)+552>>1]){break label$5}$9=Math_imul($10,576)+$11|0;if(HEAPU16[$9+554>>1]!=($1&65535)){break label$4}HEAP32[$9+464>>2]=0;HEAP32[$9+468>>2]=0;HEAP32[$9+472>>2]=0;label$7:{if(!($2|$3)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,200963,0);$0=-7;break label$7}$17=Math_imul($10,576)+$11|0;if(HEAP32[$17+436>>2]!=2){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,201015,0);$0=-7;break label$7}$16=$9+472|0;HEAP32[$9+464>>2]=$2;HEAP32[$9+468>>2]=$3;label$10:{$9=HEAP32[$0+388>>2];label$11:{if(!$9){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,202022,0);$9=-2;break label$11}$13=Math_imul($10,576)+$11|0;$9=FUNCTION_TABLE[$9](HEAP32[$13+432>>2],$2,$3,$13+440|0)|0;if(!$9){break label$10}}$6=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$6|0)/576>>>0<=$10>>>0){break label$2}if(HEAPU16[($6+Math_imul($10,576)|0)+552>>1]!=($15|0)){break label$1}$6=HEAP32[$0+48>>2];$7=HEAP32[$0+52>>2]-$6|0;$0=($7|0)/72|0;label$13:{if(!$7){break label$13}$7=$0>>>0>1?$0:1;$0=0;while(1){$8=$6+Math_imul($0,72)|0;if(!(HEAP32[$8+4>>2]==($16|0)?HEAP32[$8>>2]==($1|0):0)){$0=$0+1|0;if(($7|0)!=($0|0)){continue}break label$13}break}$0=$6+Math_imul($0,72)|0;HEAP8[$0+68|0]=HEAPU8[$0+68|0]|4}$0=Math_imul($10,576)+$11|0;HEAP32[$0+440>>2]=0;HEAP32[$0+444>>2]=0;HEAP32[$0+464>>2]=0;HEAP32[$0+468>>2]=0;HEAP32[$0+456>>2]=0;HEAP32[$0+460>>2]=0;HEAP32[$0+448>>2]=0;HEAP32[$0+452>>2]=0;$0=dmHashReverseSafe64($2,$3);if(($9|0)==-1){HEAP32[$12>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201079,$12);$0=-5;break label$7}HEAP32[$12+20>>2]=$9;HEAP32[$12+16>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,199311,201118,$12+16|0);$0=-5;break label$7}label$18:{if((HEAP32[$13+440>>2]&1006632960)==402653184){$2=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$2|0)/576>>>0<=$10>>>0){break label$2}if(HEAPU16[($2+Math_imul($10,576)|0)+552>>1]!=($15|0)){break label$1}$2=HEAP32[$0+48>>2];$0=HEAP32[$0+52>>2]-$2|0;if(!$0){break label$18}$0=($0|0)/72|0;$3=$0>>>0>1?$0:1;$0=0;while(1){$6=$2+Math_imul($0,72)|0;if(!(HEAP32[$6+4>>2]==($16|0)?HEAP32[$6>>2]==($1|0):0)){$0=$0+1|0;if(($3|0)!=($0|0)){continue}break label$18}break}$0=$2+Math_imul($0,72)|0;HEAP8[$0+68|0]=HEAPU8[$0+68|0]|4;break label$18}dmGui__AnimateTextureSetAnim_28dmGui__Scene__2c_20unsigned_20int_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$4,$5,$6,$7,$8)}$0=0;$1=HEAP32[(Math_imul($10,576)+$11|0)+412>>2];if(!($1&262144)|($1&224)==64|HEAP32[$17+436>>2]!=2){break label$7}$6=HEAP32[(Math_imul($10,576)+$11|0)+452>>2];if(!$6){break label$7}$0=HEAP32[$13+440>>2];$2=$0&8191;$3=($0>>>13&8191)-$2|0;$4=Math_fround(HEAPF32[$16>>2]*Math_fround($3|0));label$23:{if(Math_fround(Math_abs($4))($1|0)?$1:$3+ -1|0)|0;$1=($1|0)<0?0:$6+($1<<5)|0;$4=HEAPF32[$1+12>>2];label$25:{$5=HEAPF32[$1>>2];$14=HEAPF32[$1+8>>2];if($5==$14){break label$25}$18=HEAPF32[$1+20>>2];if($4==$18){break label$25}$2=Math_imul($10,576)+$11|0;HEAPF32[$2+64>>2]=Math_fround(HEAPF32[$1+4>>2]-$18)*Math_fround(HEAPU16[$2+446>>1]);HEAPF32[$2+68>>2]=Math_fround($14-$5)*Math_fround(HEAPU16[$2+444>>1]);break label$7}$14=HEAPF32[$1+4>>2];$2=Math_imul($10,576)+$11|0;HEAPF32[$2+64>>2]=Math_fround(HEAPF32[$1+16>>2]-$5)*Math_fround(HEAPU16[$2+444>>1]);HEAPF32[$2+68>>2]=Math_fround($4-$14)*Math_fround(HEAPU16[$2+446>>1])}global$0=$12+32|0;return $0}break label$2}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,3862,201967);abort()}function dmGameSystem__UpdateIKPositionCallback_28dmRig__IKTarget__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0);$8=global$0-48|0;global$0=$8;$11=HEAP32[$1+36>>2];dmGameObject__GetWorldTransform_28dmGameObject__Instance__29($8,HEAP32[$11>>2]);$3=HEAPF32[$8+32>>2];$18=Math_fround($3*HEAPF32[$11+48>>2]);label$1:{label$2:{if($18==Math_fround(0)){break label$2}$4=HEAPF32[$8+36>>2];$20=Math_fround($4*HEAPF32[$11+52>>2]);if($20==Math_fround(0)){break label$2}$9=HEAPF32[$8+40>>2];$21=Math_fround($9*HEAPF32[$11+56>>2]);if($21!=Math_fround(0)){break label$1}}__assert_fail(51293,51406,374,51471);abort()}$2=HEAPF32[$8+8>>2];$12=HEAPF32[$11+16>>2];$5=HEAPF32[$8+12>>2];$13=HEAPF32[$11+20>>2];$6=HEAPF32[$8+4>>2];$14=HEAPF32[$11+28>>2];$7=HEAPF32[$8>>2];$22=HEAPF32[$11+24>>2];$10=Math_fround(Math_fround(Math_fround($2*$12)+Math_fround(Math_fround($5*$13)+Math_fround($6*$14)))-Math_fround($7*$22));$3=Math_fround(HEAPF32[$11+32>>2]*$3);$4=Math_fround(HEAPF32[$11+36>>2]*$4);$9=Math_fround(HEAPF32[$11+40>>2]*$9);$15=Math_fround(Math_fround(Math_fround($2*$3)+Math_fround($5*$4))-Math_fround($7*$9));$19=Math_fround(Math_fround($2*$9)+Math_fround(Math_fround($7*$3)+Math_fround($6*$4)));$16=Math_fround(Math_fround(Math_fround($7*$4)+Math_fround($5*$9))-Math_fround($6*$3));$17=Math_fround(Math_fround(Math_fround($5*$3)+Math_fround($6*$9))-Math_fround($2*$4));$9=Math_fround(HEAPF32[$8+24>>2]+Math_fround(Math_fround($7*$15)+Math_fround(Math_fround(Math_fround($2*$19)+Math_fround($5*$16))-Math_fround($6*$17))));$3=Math_fround(Math_fround(Math_fround(Math_fround($5*$14)-Math_fround($7*$12))-Math_fround($6*$13))-Math_fround($2*$22));$23=Math_fround(HEAPF32[$8+16>>2]+Math_fround(Math_fround($6*$16)+Math_fround(Math_fround(Math_fround($7*$19)+Math_fround($5*$17))-Math_fround($2*$15))));$4=Math_fround(Math_fround(Math_fround($7*$13)+Math_fround(Math_fround($5*$22)+Math_fround($2*$14)))-Math_fround($6*$12));$15=Math_fround(HEAPF32[$8+20>>2]+Math_fround(Math_fround($2*$17)+Math_fround(Math_fround(Math_fround($5*$15)+Math_fround($6*$19))-Math_fround($7*$16))));$19=Math_fround(Math_fround(Math_fround($10*$9)-Math_fround($3*$23))-Math_fround($4*$15));$24=Math_fround(Math_fround(1)/$20);$16=Math_fround($24*HEAPF32[$1+20>>2]);$25=Math_fround(Math_fround(1)/$18);$17=Math_fround($25*HEAPF32[$1+16>>2]);$21=Math_fround(Math_fround(1)/$21);$18=Math_fround($21*HEAPF32[$1+24>>2]);$20=Math_fround(Math_fround($4*$16)+Math_fround(Math_fround($3*$17)-Math_fround($10*$18)));$2=Math_fround(Math_fround(Math_fround($6*$22)+Math_fround(Math_fround($5*$12)+Math_fround($7*$14)))-Math_fround($2*$13));$5=Math_fround(Math_fround(Math_fround($2*$15)-Math_fround($3*$9))-Math_fround($10*$23));$6=Math_fround(Math_fround($4*$9)+Math_fround(Math_fround($10*$15)+Math_fround($2*$23)));$7=Math_fround(Math_fround(Math_fround($4*$23)-Math_fround($3*$15))-Math_fround($2*$9));$12=Math_fround(Math_fround($10*$17)+Math_fround(Math_fround($3*$18)-Math_fround($2*$16)));$13=Math_fround(Math_fround(Math_fround($16*Math_fround(-$10))-Math_fround($2*$17))-Math_fround($4*$18));$14=Math_fround(Math_fround(Math_fround($3*$16)-Math_fround($4*$17))+Math_fround($2*$18));HEAPF32[$0+8>>2]=Math_fround($21*Math_fround(Math_fround(Math_fround($10*$19)+Math_fround(Math_fround($3*$5)-Math_fround($4*$6)))-Math_fround($2*$7)))+Math_fround(Math_fround(Math_fround($10*$20)+Math_fround(Math_fround($3*$12)-Math_fround($4*$13)))-Math_fround($2*$14));HEAPF32[$0+4>>2]=Math_fround($24*Math_fround(Math_fround(Math_fround($2*$5)+Math_fround(Math_fround($3*$7)-Math_fround($10*$6)))-Math_fround($4*$19)))+Math_fround(Math_fround(Math_fround(Math_fround($3*$14)-Math_fround($10*$13))+Math_fround($2*$12))-Math_fround($4*$20));HEAPF32[$0>>2]=Math_fround($25*Math_fround(Math_fround(Math_fround($4*$7)+Math_fround(Math_fround($3*$19)-Math_fround($2*$6)))-Math_fround($10*$5)))+Math_fround(Math_fround(Math_fround($4*$14)+Math_fround(Math_fround($3*$20)-Math_fround($2*$13)))-Math_fround($10*$12));global$0=$8+48|0}function mpi_mul_hlp($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0;if($0>>>0>=16){$7=$3;while(1){$5=__wasm_i64_mul(HEAP32[$1>>2],0,$7,0)+$4|0;$6=$5+HEAP32[$2>>2]|0;HEAP32[$2>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($5>>>0<$4>>>0)|0)+($6>>>0<$5>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+4>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+4>>2]|0;HEAP32[$2+4>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+8>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+8>>2]|0;HEAP32[$2+8>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+12>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+12>>2]|0;HEAP32[$2+12>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+16>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+16>>2]|0;HEAP32[$2+16>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+20>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+20>>2]|0;HEAP32[$2+20>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+24>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+24>>2]|0;HEAP32[$2+24>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+28>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+28>>2]|0;HEAP32[$2+28>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+32>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+32>>2]|0;HEAP32[$2+32>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+36>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+36>>2]|0;HEAP32[$2+36>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+40>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+40>>2]|0;HEAP32[$2+40>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+44>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+44>>2]|0;HEAP32[$2+44>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+48>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+48>>2]|0;HEAP32[$2+48>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+52>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+52>>2]|0;HEAP32[$2+52>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+56>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+56>>2]|0;HEAP32[$2+56>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+60>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+60>>2]|0;HEAP32[$2+60>>2]=$6;$4=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$2=$2- -64|0;$1=$1- -64|0;$0=$0+ -16|0;if($0>>>0>15){continue}break}}if($0>>>0>=8){$7=$3;while(1){$5=__wasm_i64_mul(HEAP32[$1>>2],0,$7,0)+$4|0;$6=$5+HEAP32[$2>>2]|0;HEAP32[$2>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($5>>>0<$4>>>0)|0)+($6>>>0<$5>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+4>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+4>>2]|0;HEAP32[$2+4>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+8>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+8>>2]|0;HEAP32[$2+8>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+12>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+12>>2]|0;HEAP32[$2+12>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+16>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+16>>2]|0;HEAP32[$2+16>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+20>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+20>>2]|0;HEAP32[$2+20>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+24>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+24>>2]|0;HEAP32[$2+24>>2]=$6;$5=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$4=__wasm_i64_mul(HEAP32[$1+28>>2],0,$7,0)+$5|0;$6=$4+HEAP32[$2+28>>2]|0;HEAP32[$2+28>>2]=$6;$4=(i64toi32_i32$HIGH_BITS+($4>>>0<$5>>>0)|0)+($6>>>0<$4>>>0)|0;$2=$2+32|0;$1=$1+32|0;$0=$0+ -8|0;if($0>>>0>7){continue}break}}if($0){while(1){$7=__wasm_i64_mul(HEAP32[$1>>2],0,$3,0)+$4|0;$5=$7+HEAP32[$2>>2]|0;HEAP32[$2>>2]=$5;$4=(i64toi32_i32$HIGH_BITS+($7>>>0<$4>>>0)|0)+($5>>>0<$7>>>0)|0;$2=$2+4|0;$1=$1+4|0;$0=$0+ -1|0;if($0){continue}break}}$0=HEAP32[$2>>2];$1=$0+$4|0;HEAP32[$2>>2]=$1;if($1>>>0<$0>>>0){while(1){$0=HEAP32[$2+4>>2];$1=$0+1|0;HEAP32[$2+4>>2]=$1;$2=$2+4|0;if($1>>>0<$0>>>0){continue}break}}}function dmGui__DeleteNode_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$11=global$0-16|0;global$0=$11;label$1:{label$2:{label$3:{label$4:{label$5:{$9=HEAP32[$0+32>>2];$7=$1&65535;if((HEAP32[$0+36>>2]-$9|0)/576>>>0>$7>>>0){$10=$1>>>16|0;$15=Math_imul($7,576)+$9|0;if(($10|0)!=HEAPU16[$15+552>>1]){break label$3}$8=Math_imul($7,576)+$9|0;$12=HEAPU16[$8+554>>1];if(($12|0)!=($1&65535)){break label$2}$4=HEAP32[$8+412>>2];label$8:{if(($4&240)!=64){break label$8}$3=Math_imul($7,576)+$9|0;if(!HEAP32[$3+524>>2]){break label$8}HEAP32[$11+8>>2]=HEAP32[$0+176>>2];HEAP32[$11+12>>2]=HEAP32[$3+524>>2];dmRig__InstanceDestroy_28dmRig__InstanceDestroyParams_20const__29($11+8|0);HEAP32[$3+524>>2]=0;$4=HEAP32[$8+412>>2]}$6=HEAP32[$0+252>>2];$3=HEAP32[$0+248>>2];$13=$6-$3|0;$5=($13|0)/12|0;if(!$13|($4&240)!=80){break label$5}label$9:{label$10:{if($2){$13=Math_imul($7,576);$16=$13+$9|0;$4=0;while(1){if(($6-$3|0)/12>>>0<=$4>>>0){break label$4}$14=Math_imul($4,12);label$14:{if(HEAP32[($14+$3|0)+8>>2]!=($1|0)){$4=$4+1|0;break label$14}$3=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$3|0)/576>>>0<=$7>>>0){break label$4}$3=$3+$13|0;if(($10|0)!=HEAPU16[$3+552>>1]){break label$3}if(($12|0)!=HEAPU16[$3+554>>1]){break label$2}dmParticle__DestroyInstance_28dmParticle__Context__2c_20unsigned_20int_29(HEAP32[$0+212>>2],HEAP32[$3+540>>2]);HEAP32[$16+540>>2]=0;$6=HEAP32[$0+252>>2];$3=HEAP32[$0+248>>2];if(($6-$3|0)/12>>>0<=$4>>>0){break label$10}$3=$3+$14|0;$6=$6+ -12|0;$14=HEAP32[$6+4>>2];HEAP32[$3>>2]=HEAP32[$6>>2];HEAP32[$3+4>>2]=$14;HEAP32[$3+8>>2]=HEAP32[$6+8>>2];$6=HEAP32[$0+252>>2]+ -12|0;HEAP32[$0+252>>2]=$6;$3=HEAP32[$0+248>>2];if($6>>>0<$3>>>0){break label$9}$5=$5+ -1|0}if($4>>>0<$5>>>0){continue}break}break label$5}$6=$5>>>0>1?$5:1;$4=0;while(1){$3=Math_imul($4,12)+$3|0;if(HEAP32[$3+8>>2]==($1|0)){dmParticle__StopInstance_28dmParticle__Context__2c_20unsigned_20int_29(HEAP32[$0+212>>2],HEAP32[$3>>2]);HEAP32[$8+412>>2]=HEAP32[$8+412>>2]|268435456}$4=$4+1|0;if(($6|0)==($4|0)){break label$5}$3=HEAP32[$0+248>>2];if((HEAP32[$0+252>>2]-$3|0)/12>>>0>$4>>>0){continue}break}break label$4}__assert_fail(202392,201431,464,202407);abort()}__assert_fail(202417,201431,467,202407);abort()}break label$4}$3=HEAPU16[(Math_imul($7,576)+$9|0)+562>>1];if(($3|0)!=65535){while(1){$4=HEAP32[$0+32>>2];$3=$3&65535;if((HEAP32[$0+36>>2]-$4|0)/576>>>0<=$3>>>0){break label$4}$4=$4+Math_imul($3,576)|0;$3=HEAPU16[$4+558>>1];dmGui__DeleteNode_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_29($0,HEAPU16[$4+554>>1]|HEAPU16[$4+552>>1]<<16,$2);if(($3|0)!=65535){continue}break}}$10=HEAP32[$0+52>>2];$4=HEAP32[$0+48>>2];$3=$10-$4|0;if($3){$6=($3|0)/72|0;$3=0;while(1){if(($10-$4|0)/72>>>0<=$3>>>0){break label$4}$12=Math_imul($3,72);$5=$12+$4|0;if(HEAP32[$5>>2]==($1|0)){$4=HEAPU8[$5+68|0];label$27:{if($4&2){break label$27}HEAP8[$5+68|0]=$4|2;$4=HEAP32[$5+56>>2];if($4){FUNCTION_TABLE[$4]($0,$1,0,HEAP32[$5+60>>2],HEAP32[$5+64>>2])}$4=HEAP32[$5+40>>2];if(!$4){break label$27}FUNCTION_TABLE[$4]($5+32|0)}$5=HEAP32[$0+52>>2];$4=HEAP32[$0+48>>2];if(($5-$4|0)/72>>>0<=$3>>>0){break label$4}$4=$4+$12|0;memmove($4,$4+72|0,($5-$4|0)+ -72|0);$4=HEAP32[$0+48>>2];$5=((HEAP32[$0+52>>2]-$4|0)/72|0)+ -1|0;if((HEAP32[$0+56>>2]-$4|0)/72>>>0<$5>>>0){break label$1}$10=Math_imul($5,72)+$4|0;HEAP32[$0+52>>2]=$10;$6=$6+ -1|0;$3=$3+ -1|0}$3=$3+1|0;if($3>>>0<$6>>>0){continue}break}}label$18:{label$19:{label$20:{if(!(HEAPU8[$8+415|0]&16?!$2:0)){dmGui__RemoveFromNodeList_28dmGui__Scene__2c_20dmGui__InternalNode__29($0,$15);$3=HEAP32[$0+20>>2];if(!$3){break label$20}$2=HEAPU16[$0+26>>1];if(!$2|$2>>>0>HEAPU16[$0+24>>1]){break label$19}$1=HEAPU16[$8+554>>1];$2=$2+ -1|0;HEAP16[$0+26>>1]=$2;HEAP16[$3+(($2&65535)<<1)>>1]=$1;$2=HEAP32[$0+32>>2];if(($1+1|0)==((HEAP32[$0+36>>2]-$2|0)/576|0)){if((HEAP32[$0+40>>2]-$2|0)/576>>>0<$1>>>0){break label$18}HEAP32[$0+36>>2]=$2+Math_imul($1,576)}$0=HEAP32[(Math_imul($7,576)+$9|0)+420>>2];if($0){dlfree($0)}memset($15,0,576);HEAP16[$8+554>>1]=65535}global$0=$11+16|0;return}__assert_fail(201667,201674,137,201592);abort()}__assert_fail(201764,201674,138,201592);abort()}break label$1}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}__assert_fail(202434,201431,457,202453);abort()}function deflate_fast($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;label$1:{while(1){label$3:{label$4:{if(HEAPU32[$0+116>>2]<=261){fill_window($0);$2=HEAP32[$0+116>>2];if(!($2>>>0>=262|$1)){return 0}if(!$2){break label$1}if($2>>>0<3){break label$4}}$2=HEAP32[$0+108>>2];$3=HEAP32[$0+84>>2]&(HEAPU8[($2+HEAP32[$0+56>>2]|0)+2|0]^HEAP32[$0+72>>2]<>2]);HEAP32[$0+72>>2]=$3;$4=HEAP32[$0+68>>2]+($3<<1)|0;$3=HEAPU16[$4>>1];HEAP16[HEAP32[$0+64>>2]+(($2&HEAP32[$0+52>>2])<<1)>>1]=$3;HEAP16[$4>>1]=$2;if(!$3|$2-$3>>>0>HEAP32[$0+44>>2]+ -262>>>0){break label$4}$2=longest_match($0,$3);HEAP32[$0+96>>2]=$2;break label$3}$2=HEAP32[$0+96>>2]}label$7:{if($2>>>0>=3){$3=HEAP32[$0+5792>>2];$4=HEAP32[$0+108>>2]-HEAP32[$0+112>>2]|0;HEAP16[HEAP32[$0+5796>>2]+($3<<1)>>1]=$4;HEAP32[$0+5792>>2]=$3+1;$2=$2+ -3|0;HEAP8[$3+HEAP32[$0+5784>>2]|0]=$2;$2=(HEAPU8[($2&255)+196320|0]<<2|1024)+$0|0;HEAP16[$2+152>>1]=HEAPU16[$2+152>>1]+1;$2=$4+ -1&65535;$2=((HEAPU8[($2>>>0<256?$2:($2>>>7|0)+256|0)+195808|0]<<2)+$0|0)+2440|0;HEAP16[$2>>1]=HEAPU16[$2>>1]+1;$2=HEAP32[$0+96>>2];$3=HEAP32[$0+116>>2]-$2|0;HEAP32[$0+116>>2]=$3;$7=HEAP32[$0+5792>>2]==(HEAP32[$0+5788>>2]+ -1|0);if(!($3>>>0<3|$2>>>0>HEAPU32[$0+128>>2])){$4=$2+ -1|0;HEAP32[$0+96>>2]=$4;$6=HEAP32[$0+72>>2];$2=HEAP32[$0+108>>2];$9=HEAP32[$0+52>>2];$10=HEAP32[$0+64>>2];$11=HEAP32[$0+68>>2];$12=HEAP32[$0+84>>2];$13=HEAP32[$0+56>>2];$5=HEAP32[$0+88>>2];while(1){$3=$2;$2=$2+1|0;HEAP32[$0+108>>2]=$2;$6=(HEAPU8[($3+$13|0)+3|0]^$6<<$5)&$12;HEAP32[$0+72>>2]=$6;$8=($6<<1)+$11|0;HEAP16[(($2&$9)<<1)+$10>>1]=HEAPU16[$8>>1];HEAP16[$8>>1]=$2;$4=$4+ -1|0;HEAP32[$0+96>>2]=$4;if($4){continue}break}$2=$3+2|0;HEAP32[$0+108>>2]=$2;break label$7}HEAP32[$0+96>>2]=0;$2=$2+HEAP32[$0+108>>2]|0;HEAP32[$0+108>>2]=$2;$3=HEAP32[$0+56>>2]+$2|0;$4=HEAPU8[$3|0];HEAP32[$0+72>>2]=$4;HEAP32[$0+72>>2]=HEAP32[$0+84>>2]&(HEAPU8[$3+1|0]^$4<>2]);break label$7}$2=HEAPU8[HEAP32[$0+56>>2]+HEAP32[$0+108>>2]|0];$3=HEAP32[$0+5792>>2];HEAP16[HEAP32[$0+5796>>2]+($3<<1)>>1]=0;HEAP32[$0+5792>>2]=$3+1;HEAP8[$3+HEAP32[$0+5784>>2]|0]=$2;$2=($2<<2)+$0|0;HEAP16[$2+148>>1]=HEAPU16[$2+148>>1]+1;HEAP32[$0+116>>2]=HEAP32[$0+116>>2]+ -1;$2=HEAP32[$0+108>>2]+1|0;HEAP32[$0+108>>2]=$2;$7=HEAP32[$0+5792>>2]==(HEAP32[$0+5788>>2]+ -1|0)}if(!$7){continue}$3=$0;$4=HEAP32[$0+92>>2];if(($4|0)>=0){$5=$4+HEAP32[$0+56>>2]|0}else{$5=0}_tr_flush_block($3,$5,$2-$4|0,0);HEAP32[$0+92>>2]=HEAP32[$0+108>>2];$2=HEAP32[$0>>2];$3=HEAP32[$2+28>>2];_tr_flush_bits($3);$4=HEAP32[$2+16>>2];$6=HEAP32[$3+20>>2];$4=$6>>>0>$4>>>0?$4:$6;label$13:{if(!$4){break label$13}memcpy(HEAP32[$2+12>>2],HEAP32[$3+16>>2],$4);HEAP32[$2+12>>2]=$4+HEAP32[$2+12>>2];HEAP32[$3+16>>2]=$4+HEAP32[$3+16>>2];HEAP32[$2+20>>2]=$4+HEAP32[$2+20>>2];HEAP32[$2+16>>2]=HEAP32[$2+16>>2]-$4;$2=HEAP32[$3+20>>2]-$4|0;HEAP32[$3+20>>2]=$2;if($2){break label$13}HEAP32[$3+16>>2]=HEAP32[$3+8>>2]}if(HEAP32[HEAP32[$0>>2]+16>>2]){continue}break}return 0}$2=HEAP32[$0+108>>2];HEAP32[$0+5812>>2]=$2>>>0<2?$2:2;if(($1|0)==4){$1=$0;$3=HEAP32[$0+92>>2];if(($3|0)>=0){$5=$3+HEAP32[$0+56>>2]|0}else{$5=0}_tr_flush_block($1,$5,$2-$3|0,1);HEAP32[$0+92>>2]=HEAP32[$0+108>>2];$1=HEAP32[$0>>2];$2=HEAP32[$1+28>>2];_tr_flush_bits($2);$3=HEAP32[$1+16>>2];$4=HEAP32[$2+20>>2];$3=$4>>>0>$3>>>0?$3:$4;label$17:{if(!$3){break label$17}memcpy(HEAP32[$1+12>>2],HEAP32[$2+16>>2],$3);HEAP32[$1+12>>2]=$3+HEAP32[$1+12>>2];HEAP32[$2+16>>2]=$3+HEAP32[$2+16>>2];HEAP32[$1+20>>2]=$3+HEAP32[$1+20>>2];HEAP32[$1+16>>2]=HEAP32[$1+16>>2]-$3;$1=HEAP32[$2+20>>2]-$3|0;HEAP32[$2+20>>2]=$1;if($1){break label$17}HEAP32[$2+16>>2]=HEAP32[$2+8>>2]}return(HEAP32[HEAP32[$0>>2]+16>>2]?3:2)|0}label$18:{if(!HEAP32[$0+5792>>2]){break label$18}$1=$0;$3=HEAP32[$0+92>>2];if(($3|0)>=0){$5=$3+HEAP32[$0+56>>2]|0}else{$5=0}_tr_flush_block($1,$5,$2-$3|0,0);HEAP32[$0+92>>2]=HEAP32[$0+108>>2];$1=HEAP32[$0>>2];$2=HEAP32[$1+28>>2];_tr_flush_bits($2);$3=HEAP32[$1+16>>2];$4=HEAP32[$2+20>>2];$3=$4>>>0>$3>>>0?$3:$4;label$21:{if(!$3){break label$21}memcpy(HEAP32[$1+12>>2],HEAP32[$2+16>>2],$3);HEAP32[$1+12>>2]=$3+HEAP32[$1+12>>2];HEAP32[$2+16>>2]=$3+HEAP32[$2+16>>2];HEAP32[$1+20>>2]=$3+HEAP32[$1+20>>2];HEAP32[$1+16>>2]=HEAP32[$1+16>>2]-$3;$1=HEAP32[$2+20>>2]-$3|0;HEAP32[$2+20>>2]=$1;if($1){break label$21}HEAP32[$2+16>>2]=HEAP32[$2+8>>2]}if(HEAP32[HEAP32[$0>>2]+16>>2]){break label$18}return 0}return 1}function dmHashBuffer64($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$3=global$0-16|0;global$0=$3;$4=dmHashBufferNoReverse64($0,$1);$5=i64toi32_i32$HIGH_BITS;label$1:{if(HEAP8[1130232]&1){break label$1}if(!__cxa_guard_acquire(1130232)){break label$1}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}if(!(!HEAPU8[1130132]|$1>>>0>1024)){label$3:{if(HEAP8[1130232]&1){break label$3}if(!__cxa_guard_acquire(1130232)){break label$3}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$7=HEAP32[282532];dmMutex__Lock_28dmMutex__Mutex__29($7);label$4:{if(HEAP8[1130232]&1){break label$4}if(!__cxa_guard_acquire(1130232)){break label$4}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$2=HEAP32[282543];label$5:{label$6:{if(!$2){break label$6}$2=HEAP32[HEAP32[282542]+(__wasm_i64_urem($4,$5,$2)<<2)>>2];if(($2|0)==-1){break label$6}$6=HEAP32[282544];while(1){$2=$6+Math_imul($2,24)|0;if(HEAP32[$2>>2]==($4|0)&($5|0)==HEAP32[$2+4>>2]){break label$5}$2=HEAP32[$2+16>>2];if(($2|0)!=-1){continue}break}}if(HEAP32[282548]==((HEAP32[282546]-HEAP32[282544]|0)/24|0)){label$9:{if(HEAP8[1130232]&1){break label$9}if(!__cxa_guard_acquire(1130232)){break label$9}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$2=(HEAP32[282546]-HEAP32[282544]|0)/24|0;label$10:{if(HEAP8[1130232]&1){break label$10}if(!__cxa_guard_acquire(1130232)){break label$10}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$6=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$6;__cxa_guard_release(1130232)}dmHashTable_unsigned_20long_20long_2c_20ReverseHashEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130168,1024,$2+256|0)}$0=memcpy(dlmalloc($1+1|0),$0,$1);HEAP8[$0+$1|0]=0;HEAP16[$3+12>>1]=$1;HEAP32[$3+8>>2]=$0;dmHashTable_unsigned_20long_20long_2c_20ReverseHashEntry___Put_28unsigned_20long_20long_2c_20ReverseHashEntry_20const__29(1130168,$4,$5,$3+8|0)}dmMutex__Unlock_28dmMutex__Mutex__29($7)}global$0=$3+16|0;i64toi32_i32$HIGH_BITS=$5;return $4|0}function dmRender__InitializeDebugRenderer_28dmRender__RenderContext__2c_20unsigned_20int_2c_20void_20const__2c_20unsigned_20int_2c_20void_20const__2c_20unsigned_20int_29($0,$1,$2,$3,$4,$5){var $6=0,$7=0;$6=global$0-832|0;global$0=$6;HEAP32[$0+3568>>2]=$0;HEAP32[$0+3580>>2]=$1;HEAP32[$0+3572>>2]=FUNCTION_TABLE[HEAP32[147555]](HEAP32[$0+4016>>2],$1<<7,0,0);$7=HEAP32[136485];HEAP32[$6+816>>2]=HEAP32[136484];HEAP32[$6+820>>2]=$7;$7=HEAP32[136483];HEAP32[$6+808>>2]=HEAP32[136482];HEAP32[$6+812>>2]=$7;$7=HEAP32[136481];HEAP32[$6+800>>2]=HEAP32[136480];HEAP32[$6+804>>2]=$7;$7=HEAP32[136479];HEAP32[$6+792>>2]=HEAP32[136478];HEAP32[$6+796>>2]=$7;$7=HEAP32[136477];HEAP32[$6+784>>2]=HEAP32[136476];HEAP32[$6+788>>2]=$7;HEAP32[$0+3576>>2]=FUNCTION_TABLE[HEAP32[147570]](HEAP32[$0+4016>>2],$6+784|0,2);$1=$1<<5;$7=-1;label$1:{if(!$3){$2=-1;break label$1}$2=dmDDF__LoadMessage_28void_20const__2c_20unsigned_20int_2c_20dmDDF__Descriptor_20const__2c_20void___29($2,$3,541208,$6+780|0);if($2){HEAP32[$6+16>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,97995,98002,$6+16|0);$2=-1;break label$1}$2=dmGraphics__GetShaderProgram_28dmGraphics__Context__2c_20dmGraphics__ShaderDesc__29(HEAP32[$0+4016>>2],HEAP32[$6+780>>2]);$2=FUNCTION_TABLE[HEAP32[147580]](HEAP32[$0+4016>>2],$2)|0;dmDDF__FreeMessage_28void__29(HEAP32[$6+780>>2]);if(!$5|($2|0)==-1){break label$1}$3=dmDDF__LoadMessage_28void_20const__2c_20unsigned_20int_2c_20dmDDF__Descriptor_20const__2c_20void___29($4,$5,541208,$6+780|0);if($3){HEAP32[$6>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,97995,98052,$6);break label$1}$3=dmGraphics__GetShaderProgram_28dmGraphics__Context__2c_20dmGraphics__ShaderDesc__29(HEAP32[$0+4016>>2],HEAP32[$6+780>>2]);$7=FUNCTION_TABLE[HEAP32[147581]](HEAP32[$0+4016>>2],$3)|0;dmDDF__FreeMessage_28void__29(HEAP32[$6+780>>2])}$3=dmRender__NewMaterial_28dmRender__RenderContext__2c_20unsigned_20long_2c_20unsigned_20long_29($0,$2,$7);dmRender__SetMaterialProgramConstantType_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmRenderDDF__MaterialDesc__ConstantType_29($3,dmHashString64(98104),i64toi32_i32$HIGH_BITS,1);dmRender__AddMaterialTag_28dmRender__Material__2c_20unsigned_20long_20long_29($3,dmHashString64(98114),i64toi32_i32$HIGH_BITS);$2=dmRender__NewMaterial_28dmRender__RenderContext__2c_20unsigned_20long_2c_20unsigned_20long_29($0,$2,$7);dmRender__SetMaterialProgramConstantType_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmRenderDDF__MaterialDesc__ConstantType_29($2,dmHashString64(98104),i64toi32_i32$HIGH_BITS,1);dmRender__AddMaterialTag_28dmRender__Material__2c_20unsigned_20long_20long_29($2,dmHashString64(98123),i64toi32_i32$HIGH_BITS);$4=dmRender__RenderObject__RenderObject_28_29($6+32|0);HEAP32[$6+720>>2]=1;HEAP32[$6+684>>2]=$3;HEAP32[$6+672>>2]=HEAP32[$0+3572>>2];$5=HEAP32[$0+3576>>2];HEAP32[$6+760>>2]=0;HEAP32[$6+676>>2]=$5;dmRender__RenderObject__operator__28dmRender__RenderObject_20const__29($0+32|0,$4);HEAP32[$0+768>>2]=operator_20new_28unsigned_20long_29($1);$4=dmRender__RenderObject__RenderObject_28_29($4);HEAP32[$6+720>>2]=0;HEAP32[$6+684>>2]=$3;HEAP32[$6+672>>2]=HEAP32[$0+3572>>2];$3=HEAP32[$0+3576>>2];HEAP32[$6+760>>2]=0;HEAP32[$6+676>>2]=$3;dmRender__RenderObject__operator__28dmRender__RenderObject_20const__29($0+784|0,$4);HEAP32[$0+1520>>2]=operator_20new_28unsigned_20long_29($1);$3=dmRender__RenderObject__RenderObject_28_29($4);HEAP32[$6+720>>2]=1;HEAP32[$6+684>>2]=$2;HEAP32[$6+672>>2]=HEAP32[$0+3572>>2];$4=HEAP32[$0+3576>>2];HEAP32[$6+760>>2]=0;HEAP32[$6+676>>2]=$4;dmRender__RenderObject__operator__28dmRender__RenderObject_20const__29($0+1536|0,$3);HEAP32[$0+2272>>2]=operator_20new_28unsigned_20long_29($1);$3=dmRender__RenderObject__RenderObject_28_29($3);HEAP32[$6+720>>2]=0;HEAP32[$6+684>>2]=$2;HEAP32[$6+672>>2]=HEAP32[$0+3572>>2];$2=HEAP32[$0+3576>>2];HEAP32[$6+760>>2]=0;HEAP32[$6+676>>2]=$2;dmRender__RenderObject__operator__28dmRender__RenderObject_20const__29($0+2288|0,$3);HEAP32[$0+3024>>2]=operator_20new_28unsigned_20long_29($1);$1=dmHashString64(98114);HEAP32[$0+3296>>2]=1;$2=$0+3040|0;HEAP32[$2>>2]=$1;HEAP32[$2+4>>2]=i64toi32_i32$HIGH_BITS;$1=dmHashString64(98123);HEAP32[$0+3584>>2]=0;HEAP32[$0+3560>>2]=1;$0=$0+3304|0;HEAP32[$0>>2]=$1;HEAP32[$0+4>>2]=i64toi32_i32$HIGH_BITS;global$0=$6+832|0}function dmPhysics__AllHitsRayResultCallback__addSingleResult_28btCollisionWorld__LocalRayResult__2c_20bool_29($0,$1,$2){$0=$0|0;$1=$1|0;$2=$2|0;var $3=0,$4=0,$5=0,$6=0,$7=0,$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0);HEAP32[$0+8>>2]=HEAP32[$1>>2];$4=HEAP32[$0+24>>2];label$1:{if(($4|0)!=HEAP32[$0+28>>2]){break label$1}$7=$4?$4<<1:1;if(($4|0)>=($7|0)){break label$1}if($7){$3=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($7<<2);$4=HEAP32[$0+24>>2]}if(($4|0)>=1){while(1){$6=$5<<2;HEAP32[$6+$3>>2]=HEAP32[$6+HEAP32[$0+32>>2]>>2];$5=$5+1|0;if(($5|0)!=($4|0)){continue}break}}$5=HEAP32[$0+32>>2];if($5){if(HEAPU8[$0+36|0]){if($5){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$5+ -4>>2])}$4=HEAP32[$0+24>>2]}HEAP32[$0+32>>2]=0}HEAP32[$0+32>>2]=$3;HEAP32[$0+28>>2]=$7;HEAP8[$0+36|0]=1}HEAP32[HEAP32[$0+32>>2]+($4<<2)>>2]=HEAP32[$1>>2];HEAP32[$0+24>>2]=$4+1;label$9:{if($2){$11=HEAPF32[$1+16>>2];$12=HEAPF32[$1+12>>2];$9=HEAPF32[$1+8>>2];$8=HEAPF32[$1+20>>2];break label$9}$8=HEAPF32[$1+8>>2];$2=HEAP32[$0+8>>2];$9=HEAPF32[$1+12>>2];$13=HEAPF32[$1+16>>2];$11=Math_fround(Math_fround(Math_fround($8*HEAPF32[$2+36>>2])+Math_fround($9*HEAPF32[$2+40>>2]))+Math_fround($13*HEAPF32[$2+44>>2]));$12=Math_fround(Math_fround(Math_fround($8*HEAPF32[$2+20>>2])+Math_fround($9*HEAPF32[$2+24>>2]))+Math_fround($13*HEAPF32[$2+28>>2]));$9=Math_fround(Math_fround(Math_fround(HEAPF32[$2+4>>2]*$8)+Math_fround(HEAPF32[$2+8>>2]*$9))+Math_fround(HEAPF32[$2+12>>2]*$13));$8=Math_fround(0)}$3=HEAP32[$0+44>>2];label$11:{if(($3|0)!=HEAP32[$0+48>>2]){break label$11}$4=$3?$3<<1:1;if(($3|0)>=($4|0)){break label$11}label$12:{if(!$4){$2=0;break label$12}$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($4<<4);$3=HEAP32[$0+44>>2]}if(($3|0)>=1){$5=0;while(1){$6=$5<<4;$7=$6+$2|0;$6=$6+HEAP32[$0+52>>2]|0;$10=HEAP32[$6+4>>2];HEAP32[$7>>2]=HEAP32[$6>>2];HEAP32[$7+4>>2]=$10;$10=HEAP32[$6+12>>2];HEAP32[$7+8>>2]=HEAP32[$6+8>>2];HEAP32[$7+12>>2]=$10;$5=$5+1|0;if(($5|0)!=($3|0)){continue}break}}$3=HEAP32[$0+52>>2];if($3){if(HEAPU8[$0+56|0]){if($3){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$3+ -4>>2])}}HEAP32[$0+52>>2]=0}HEAP32[$0+52>>2]=$2;HEAP32[$0+48>>2]=$4;HEAP8[$0+56|0]=1;$3=HEAP32[$0+44>>2]}$2=HEAP32[$0+52>>2]+($3<<4)|0;HEAPF32[$2+12>>2]=$8;HEAPF32[$2+8>>2]=$11;HEAPF32[$2+4>>2]=$12;HEAPF32[$2>>2]=$9;HEAP32[$0+44>>2]=HEAP32[$0+44>>2]+1;$8=HEAPF32[$1+24>>2];$11=Math_fround(Math_fround(1)-$8);$12=Math_fround(Math_fround($11*HEAPF32[$0+108>>2])+Math_fround($8*HEAPF32[$0+124>>2]));$9=Math_fround(Math_fround($11*HEAPF32[$0+104>>2])+Math_fround($8*HEAPF32[$0+120>>2]));$8=Math_fround(Math_fround($11*HEAPF32[$0+100>>2])+Math_fround($8*HEAPF32[$0+116>>2]));$3=HEAP32[$0- -64>>2];label$19:{if(($3|0)!=HEAP32[$0+68>>2]){break label$19}$4=$3?$3<<1:1;if(($3|0)>=($4|0)){break label$19}label$20:{if(!$4){$2=0;break label$20}$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($4<<4);$3=HEAP32[$0+64>>2]}if(($3|0)>=1){$5=0;while(1){$6=$5<<4;$7=$6+$2|0;$6=$6+HEAP32[$0+72>>2]|0;$10=HEAP32[$6+4>>2];HEAP32[$7>>2]=HEAP32[$6>>2];HEAP32[$7+4>>2]=$10;$10=HEAP32[$6+12>>2];HEAP32[$7+8>>2]=HEAP32[$6+8>>2];HEAP32[$7+12>>2]=$10;$5=$5+1|0;if(($5|0)!=($3|0)){continue}break}}$3=HEAP32[$0+72>>2];if($3){if(HEAPU8[$0+76|0]){if($3){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$3+ -4>>2])}}HEAP32[$0+72>>2]=0}HEAP32[$0+72>>2]=$2;HEAP32[$0+68>>2]=$4;HEAP8[$0+76|0]=1;$3=HEAP32[$0+64>>2]}$2=HEAP32[$0+72>>2]+($3<<4)|0;HEAPF32[$2+8>>2]=$12;HEAPF32[$2+4>>2]=$9;HEAPF32[$2>>2]=$8;HEAP32[$0+64>>2]=HEAP32[$0+64>>2]+1;$2=HEAP32[$0+84>>2];label$27:{if(($2|0)!=HEAP32[$0+88>>2]){break label$27}$7=$2?$2<<1:1;if(($2|0)>=($7|0)){break label$27}$5=0;$3=0;if($7){$3=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($7<<2);$2=HEAP32[$0+84>>2]}$4=HEAP32[$0+92>>2];label$29:{label$30:{if(($2|0)>=1){while(1){$6=$5<<2;HEAP32[$6+$3>>2]=HEAP32[$4+$6>>2];$5=$5+1|0;if(($5|0)!=($2|0)){continue}break label$30}}if(!$4){break label$29}}if(HEAPU8[$0+96|0]){if($4){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$4+ -4>>2])}$2=HEAP32[$0+84>>2]}HEAP32[$0+92>>2]=0}HEAP32[$0+92>>2]=$3;HEAP32[$0+88>>2]=$7;HEAP8[$0+96|0]=1}HEAP32[HEAP32[$0+92>>2]+($2<<2)>>2]=HEAP32[$1+24>>2];HEAP32[$0+84>>2]=$2+1;return Math_fround(HEAPF32[$0+4>>2])}function dmResource__CreateResource_28dmResource__ResourcePreloader__2c_20dmResource__PreloadRequest__2c_20void__2c_20unsigned_20int_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0;$4=global$0-96|0;global$0=$4;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{label$9:{label$10:{label$11:{label$12:{if(HEAP32[$1+56>>2]==-17){if(HEAPU16[$1+38>>1]){break label$12}$6=HEAP32[$1+8>>2];if(!$6){break label$11}HEAP32[$4+88>>2]=0;HEAP32[$4+92>>2]=0;HEAP32[$4+72>>2]=0;HEAP32[$4+76>>2]=0;HEAP32[$4+80>>2]=0;HEAP32[$4+84>>2]=0;HEAP32[$4+64>>2]=0;HEAP32[$4+68>>2]=0;$5=HEAP32[$1+28>>2];$7=HEAP32[$1+24>>2];HEAP32[$4+84>>2]=1;HEAP32[$4+56>>2]=$7;HEAP32[$4+60>>2]=$5;HEAP32[$4+80>>2]=$6;HEAP32[$4+24>>2]=HEAP32[$0+155704>>2];HEAP32[$4+28>>2]=HEAP32[$6+12>>2];HEAP32[$4+44>>2]=HEAP32[$1+52>>2];HEAP32[$4+48>>2]=$4+56;HEAP32[$4+32>>2]=HEAP32[$1>>2];label$14:{if(!$2){$2=HEAP32[$1+44>>2];if(!$2){break label$10}$3=HEAP32[$1+48>>2];HEAP32[$4+40>>2]=$3;HEAP32[$4+36>>2]=$2;HEAP32[$4+76>>2]=$3;HEAP32[$1+56>>2]=FUNCTION_TABLE[HEAP32[$6+20>>2]]($4+24|0);dmBlockAllocator__Free_28dmBlockAllocator__Context__2c_20void__2c_20unsigned_20int_29(HEAP32[$0+173488>>2],HEAP32[$1+44>>2],HEAP32[$1+48>>2]);HEAP32[$1+44>>2]=0;$2=HEAP32[$1+56>>2];break label$14}HEAP32[$4+40>>2]=$3;HEAP32[$4+36>>2]=$2;HEAP32[$4+76>>2]=$3;$2=FUNCTION_TABLE[HEAP32[$6+20>>2]]($4+24|0)|0;HEAP32[$1+56>>2]=$2}if(!(!HEAP32[$6+24>>2]|$2)){$3=$0+173500|0;$5=$0+173504|0;$7=HEAP32[$5>>2];$8=$0+173508|0;$2=HEAP32[$8>>2];if(($7|0)==($2|0)){if(HEAP8[$0+173512|0]&1){break label$9}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(($2-HEAP32[$3>>2]>>6)+128|0,64,$3,$8,$5);$7=HEAP32[$5>>2];$2=HEAP32[$8>>2]}$3=HEAP32[$3>>2];$8=$7-$3>>6;$7=$8+1|0;if($2-$3>>6>>>0<$7>>>0){break label$8}$2=$7<<6;HEAP32[$5>>2]=$2+$3;if(!$2){break label$7}$2=$3+($8<<6)|0;HEAP8[$2+56|0]=0;HEAP32[$2>>2]=HEAP32[$0+155704>>2];HEAP32[$2+4>>2]=HEAP32[$6+12>>2];$3=HEAP32[$1+52>>2];HEAP32[$2+12>>2]=0;HEAP32[$2+8>>2]=$3;$3=HEAP32[$4+60>>2];HEAP32[$2+16>>2]=HEAP32[$4+56>>2];HEAP32[$2+20>>2]=$3;$3=$4- -64|0;$5=HEAP32[$3+4>>2];HEAP32[$2+24>>2]=HEAP32[$3>>2];HEAP32[$2+28>>2]=$5;$3=HEAP32[$4+76>>2];HEAP32[$2+32>>2]=HEAP32[$4+72>>2];HEAP32[$2+36>>2]=$3;$3=HEAP32[$4+84>>2];HEAP32[$2+40>>2]=HEAP32[$4+80>>2];HEAP32[$2+44>>2]=$3;$3=HEAP32[$4+92>>2];HEAP32[$2+48>>2]=HEAP32[$4+88>>2];HEAP32[$2+52>>2]=$3}if(HEAP32[$1+44>>2]){break label$6}HEAP32[$1+52>>2]=0;$2=HEAP16[$1+32>>1];if(($2|0)!=-1){$2=(($2<<6)+$0|0)+88150|0;$3=HEAPU16[$2>>1];if(!$3){break label$5}HEAP16[$2>>1]=$3+ -1}dmResource__RemoveChildren_28dmResource__ResourcePreloader__2c_20dmResource__PreloadRequest__29($0,$1);if(HEAP32[$1+56>>2]){break label$2}if(!HEAP32[$4+64>>2]){break label$4}$2=dmResource__FindByHash_28dmResource__SResourceFactory__2c_20unsigned_20long_20long_29(HEAP32[$0+155704>>2],HEAP32[$1+24>>2],HEAP32[$1+28>>2]);if($2){HEAP32[$2+28>>2]=HEAP32[$2+28>>2]+1;HEAP32[$1+60>>2]=HEAP32[$2+8>>2];break label$3}$2=dmResource__InsertResource_28dmResource__SResourceFactory__2c_20char_20const__2c_20unsigned_20long_20long_2c_20dmResource__SResourceDescriptor__29(HEAP32[$0+155704>>2],HEAP32[$1>>2],HEAP32[$1+24>>2],HEAP32[$1+28>>2],$4+56|0);HEAP32[$1+56>>2]=$2;if($2){break label$3}HEAP32[$1+60>>2]=HEAP32[$4+64>>2];break label$2}__assert_fail(31712,31097,516,31748);abort()}__assert_fail(31763,31097,517,31748);abort()}__assert_fail(31793,31097,519,31748);abort()}__assert_fail(31830,31097,540,31748);abort()}__assert_fail(32433,31450,444,32508);abort()}__assert_fail(31532,31450,457,31551);abort()}__assert_fail(31916,31450,386,31927);abort()}__assert_fail(31844,31097,577,31748);abort()}__assert_fail(31623,31097,316,31683);abort()}__assert_fail(31863,31097,593,31748);abort()}$3=HEAP32[$4+64>>2];if(!$3){break label$1}label$21:{if(!HEAP32[$6+24>>2]){break label$21}$1=HEAP32[$0+173496>>2];$2=HEAP32[$0+173500>>2];$5=HEAP32[$0+173504>>2]-$2>>6;if($1>>>0>=$5>>>0){break label$21}while(1){if(($3|0)==HEAP32[($2+($1<<6)|0)+24>>2]){HEAP8[($2+($1<<6)|0)+56|0]=1;break label$2}$1=$1+1|0;if($1>>>0<$5>>>0){continue}break}}HEAP32[$4+8>>2]=HEAP32[$0+155704>>2];HEAP32[$4+12>>2]=HEAP32[$6+12>>2];HEAP32[$4+16>>2]=$4+56;FUNCTION_TABLE[HEAP32[$6+28>>2]]($4+8|0)|0}global$0=$4+96|0;return}__assert_fail(31887,31097,623,31748);abort()}function dmPhysics__TransformCopyShape_28dmPhysics__Context2D__2c_20b2Shape_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20float_29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=0,$12=0,$13=0,$14=0;$12=global$0-144|0;global$0=$12;$7=HEAP32[$1+4>>2];label$1:{label$2:{if($7>>>0>4){break label$2}$10=$1;$8=Math_fround($4+$4);$5=Math_fround($8*$5);$4=Math_fround(Math_fround(1)-Math_fround($8*$4));$8=Math_fround(HEAPF32[$0+64>>2]*$6);$3=Math_fround($8*$3);$2=Math_fround($8*$2);label$3:{label$4:{switch($7-1|0){default:$7=operator_20new_28unsigned_20long_29(32);HEAP8[$7+20|0]=HEAPU8[$10+20|0];$11=HEAP32[$10+16>>2];HEAP32[$7+12>>2]=HEAP32[$10+12>>2];HEAP32[$7+16>>2]=$11;$11=HEAP32[$10+8>>2];HEAP32[$7+4>>2]=HEAP32[$10+4>>2];HEAP32[$7+8>>2]=$11;HEAP32[$7>>2]=544848;$9=$3;$3=Math_fround(HEAPF32[$1+24>>2]*$6);$8=Math_fround(HEAPF32[$1+28>>2]*$6);HEAPF32[$7+28>>2]=$9+Math_fround(Math_fround($5*$3)+Math_fround($4*$8));HEAPF32[$7+24>>2]=$2+Math_fround(Math_fround($4*$3)-Math_fround($5*$8));$1=$7;label$8:{if(!(HEAP8[$0+88|0]&1)){$2=HEAPF32[$7+8>>2];break label$8}$2=HEAPF32[$7+8>>2];HEAP32[$7+12>>2]=HEAP32[$7+8>>2]}$6=Math_fround($2*$6);HEAPF32[$1+8>>2]=$6;$1=$7;break label$3;case 0:$0=operator_20new_28unsigned_20long_29(60);HEAP8[$0+20|0]=HEAPU8[$10+20|0];$7=HEAP32[$10+16>>2];HEAP32[$0+12>>2]=HEAP32[$10+12>>2];HEAP32[$0+16>>2]=$7;$7=HEAP32[$10+8>>2];HEAP32[$0+4>>2]=HEAP32[$10+4>>2];HEAP32[$0+8>>2]=$7;HEAP32[$0>>2]=544888;HEAP16[$0+56>>1]=HEAPU16[$1+56>>1];$7=HEAP32[$1+28>>2];HEAP32[$0+24>>2]=HEAP32[$1+24>>2];HEAP32[$0+28>>2]=$7;$7=$1+32|0;$11=HEAP32[$7+4>>2];HEAP32[$0+32>>2]=HEAP32[$7>>2];HEAP32[$0+36>>2]=$11;$7=$1;$11=$7+40|0;$13=HEAP32[$11+4>>2];HEAP32[$0+40>>2]=HEAP32[$11>>2];HEAP32[$0+44>>2]=$13;$11=HEAP32[$7+52>>2];HEAP32[$0+48>>2]=HEAP32[$7+48>>2];HEAP32[$0+52>>2]=$11;if(HEAPU8[$0+56|0]){$8=Math_fround(HEAPF32[$7+40>>2]*$6);$9=Math_fround(HEAPF32[$7+44>>2]*$6);HEAPF32[$0+44>>2]=$3+Math_fround(Math_fround($5*$8)+Math_fround($4*$9));HEAPF32[$0+40>>2]=$2+Math_fround(Math_fround($4*$8)-Math_fround($5*$9))}$8=Math_fround(HEAPF32[$7+24>>2]*$6);$9=Math_fround(HEAPF32[$7+28>>2]*$6);HEAPF32[$0+28>>2]=$3+Math_fround(Math_fround($5*$8)+Math_fround($4*$9));HEAPF32[$0+24>>2]=$2+Math_fround(Math_fround($4*$8)-Math_fround($5*$9));$8=Math_fround(HEAPF32[$1+32>>2]*$6);$9=Math_fround(HEAPF32[$7+36>>2]*$6);HEAPF32[$0+36>>2]=$3+Math_fround(Math_fround($5*$8)+Math_fround($4*$9));HEAPF32[$0+32>>2]=$2+Math_fround(Math_fround($4*$8)-Math_fround($5*$9));$1=$0;if(!HEAPU8[$0+57|0]){break label$3}$9=$3;$3=Math_fround(HEAPF32[$7+48>>2]*$6);$8=Math_fround(HEAPF32[$7+52>>2]*$6);HEAPF32[$0+52>>2]=$9+Math_fround(Math_fround($5*$3)+Math_fround($4*$8));HEAPF32[$0+48>>2]=$2+Math_fround(Math_fround($4*$3)-Math_fround($5*$8));$1=$0;break label$3;case 1:$7=operator_20new_28unsigned_20long_29(420);HEAP8[$7+20|0]=HEAPU8[$10+20|0];$0=HEAP32[$10+16>>2];HEAP32[$7+12>>2]=HEAP32[$10+12>>2];HEAP32[$7+16>>2]=$0;$0=HEAP32[$10+8>>2];HEAP32[$7+4>>2]=HEAP32[$10+4>>2];HEAP32[$7+8>>2]=$0;HEAP32[$7>>2]=544968;memcpy($7+24|0,$1+24|0,396);$0=0;$11=HEAP32[$1+416>>2];if(($11|0)>0){while(1){$13=$0<<3;$14=$13+($12+16|0)|0;$13=$1+$13|0;$8=Math_fround(HEAPF32[$13+160>>2]*$6);$9=Math_fround(HEAPF32[$13+164>>2]*$6);HEAPF32[$14+4>>2]=$3+Math_fround(Math_fround($5*$8)+Math_fround($4*$9));HEAPF32[$14>>2]=$2+Math_fround(Math_fround($4*$8)-Math_fround($5*$9));$0=$0+1|0;if(($11|0)!=($0|0)){continue}break}}b2PolygonShape__Set_28b2Vec2_20const__2c_20int_29($7,$12+16|0,$11);$1=$7;break label$3;case 2:break label$2;case 3:break label$4}}$0=operator_20new_28unsigned_20long_29(64);$7=HEAP32[$1+40>>2];$9=$3;$3=Math_fround(HEAPF32[$1+24>>2]*$6);$8=Math_fround(HEAPF32[$1+28>>2]*$6);HEAPF32[$12+12>>2]=$9+Math_fround(Math_fround($5*$3)+Math_fround($4*$8));HEAPF32[$12+8>>2]=$2+Math_fround(Math_fround($4*$3)-Math_fround($5*$8));$11=HEAP32[$1+56>>2];$13=HEAP32[$1+52>>2];$2=HEAPF32[$1+44>>2];$3=HEAPF32[$1+48>>2];$1=HEAP32[$12+12>>2];HEAP32[$12>>2]=HEAP32[$12+8>>2];HEAP32[$12+4>>2]=$1;b2GridShape__b2GridShape_28b2HullSet_20const__2c_20b2Vec2_2c_20float_2c_20float_2c_20unsigned_20int_2c_20unsigned_20int_29($0,$7,$12,Math_fround($2*$6),Math_fround($3*$6),$13,$11);$1=$0}if(!HEAP32[$10+4>>2]){break label$1}}HEAPF32[$1+12>>2]=$6}global$0=$12+144|0;return $1}function dmGameSystem__AcquireResources_28dmResource__SResourceFactory__2c_20dmGui__Context__2c_20dmGuiDDF__SceneDesc__2c_20dmGameSystem__GuiSceneResource__2c_20char_20const__29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0;$6=global$0-16|0;global$0=$6;HEAP32[$3>>2]=$2;label$1:{label$2:{label$3:{label$4:{label$5:{$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[$2+64>>2],$3+80|0);label$6:{if($2){break label$6}if(HEAP32[HEAP32[$3+80>>2]+104>>2]){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,56274,56282,0);$2=-15;break label$6}$2=HEAP32[HEAP32[$3>>2]>>2];if(!(!$2|!HEAPU8[$2|0])){$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,$2,$3+4|0);if($2){break label$6}}if(HEAP8[$3+52|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[HEAP32[$3>>2]+88>>2],4,$3+40|0,$3+48|0,$3+44|0);HEAP32[$3+44>>2]=HEAP32[$3+40>>2];$2=HEAP32[$3>>2];$4=HEAP32[$2+88>>2];if($4){while(1){HEAP32[$6+12>>2]=0;if($4>>>0<=$5>>>0){break label$5}$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[(HEAP32[$2+84>>2]+($5<<3)|0)+4>>2],$6+12|0);if($2){break label$6}$2=HEAP32[$3+44>>2];if(($2|0)==HEAP32[$3+48>>2]){break label$1}$4=HEAP32[$6+12>>2];HEAP32[$3+44>>2]=$2+4;HEAP32[$2>>2]=$4;$5=$5+1|0;$2=HEAP32[$3>>2];$4=HEAP32[$2+88>>2];if($5>>>0<$4>>>0){continue}break}}if(HEAP8[$3+68|0]&1){break label$2}$4=$3- -64|0;dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$2+96>>2],4,$3+56|0,$4,$3+60|0);HEAP32[$3+60>>2]=HEAP32[$3+56>>2];$2=HEAP32[$3>>2];if(HEAP32[$2+96>>2]){$5=0;while(1){HEAP32[$6+12>>2]=0;$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[(HEAP32[$2+92>>2]+($5<<3)|0)+4>>2],$6+12|0);if($2){break label$6}$2=HEAP32[$3+60>>2];if(($2|0)==HEAP32[$4>>2]){break label$1}$7=HEAP32[$6+12>>2];HEAP32[$3+60>>2]=$2+4;HEAP32[$2>>2]=$7;$5=$5+1|0;$2=HEAP32[$3>>2];if($5>>>0>2]){continue}break}}if(HEAP8[$3+20|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$2+8>>2],4,$3+8|0,$3+16|0,$3+12|0);HEAP32[$3+12>>2]=HEAP32[$3+8>>2];$2=HEAP32[$3>>2];$4=HEAP32[$2+8>>2];if($4){$5=0;while(1){if($4>>>0<=$5>>>0){break label$4}$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[(HEAP32[$2+4>>2]+($5<<3)|0)+4>>2],$6+12|0);if($2){break label$6}$2=HEAP32[$3+12>>2];if(($2|0)==HEAP32[$3+16>>2]){break label$1}$4=HEAP32[$6+12>>2];HEAP32[$3+12>>2]=$2+4;HEAP32[$2>>2]=$4;$5=$5+1|0;$2=HEAP32[$3>>2];$4=HEAP32[$2+8>>2];if($5>>>0<$4>>>0){continue}break}}dmResource__GetTypeFromExtension_28dmResource__SResourceFactory__2c_20char_20const__2c_20unsigned_20long__29($0,56412,$6+12|0);if(HEAP8[$3+36|0]&1){break label$2}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[HEAP32[$3>>2]+16>>2],8,$3+24|0,$3+32|0,$3+28|0);HEAP32[$3+28>>2]=HEAP32[$3+24>>2];$2=HEAP32[$3>>2];$4=HEAP32[$2+16>>2];if($4){$5=0;while(1){if($4>>>0<=$5>>>0){break label$3}$2=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[(HEAP32[$2+12>>2]+($5<<3)|0)+4>>2],$6+8|0);if($2){break label$6}$2=dmResource__GetType_28dmResource__SResourceFactory__2c_20void__2c_20unsigned_20long__29($0,HEAP32[$6+8>>2],$6+4|0);if($2){break label$6}$4=HEAP32[$6+8>>2];label$17:{if(HEAP32[$6+4>>2]!=HEAP32[$6+12>>2]){$2=$4;$4=0;break label$17}$2=HEAP32[$4+48>>2]}$7=HEAP32[$3+28>>2];if(($7|0)==HEAP32[$3+32>>2]){break label$1}HEAP32[$3+28>>2]=$7+8;HEAP32[$7+4>>2]=$2;HEAP32[$7>>2]=$4;$5=$5+1|0;$2=HEAP32[$3>>2];$4=HEAP32[$2+16>>2];if($5>>>0<$4>>>0){continue}break}}$0=__strdup(HEAP32[$2>>2]);HEAP32[$3+76>>2]=$1;HEAP32[$3+72>>2]=$0;$2=0}global$0=$6+16|0;return $2}__assert_fail(56424,56516,256,56505);abort()}__assert_fail(56424,56516,212,56505);abort()}__assert_fail(56424,56516,220,56505);abort()}__assert_fail(56620,56549,444,56695);abort()}__assert_fail(56707,56549,484,56731);abort()}function ProcessRows($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0;label$1:{$5=HEAP32[$0+108>>2];$2=$1-$5|0;if(($2|0)>=1){$6=HEAP32[$0+176>>2];$3=HEAP32[$0+100>>2];$9=HEAP32[$0+16>>2]+(Math_imul($3,$5)<<2)|0;$3=memcpy(HEAP32[$0+20>>2],$9,Math_imul($2,$3)<<2);label$3:{if(($6|0)<1){break label$3}$2=$6+ -1|0;VP8LInverseTransform((Math_imul($2,20)+$0|0)+180|0,$5,$1,$9,$3);if(($6|0)<2){break label$3}while(1){$6=$2+ -1|0;VP8LInverseTransform((Math_imul($6,20)+$0|0)+180|0,$5,$1,$3,$3);$9=($2|0)>1;$2=$6;if($9){continue}break}}$5=HEAP32[$0+108>>2];label$5:{label$6:{label$7:{label$8:{if(($5|0)<($1|0)){$2=HEAP32[$0+8>>2];$3=HEAP32[$2+80>>2];$8=HEAP32[$2+76>>2];if(($3|0)<=($8|0)){break label$8}$9=HEAP32[$2+84>>2];$7=($9|0)>($5|0);$6=HEAP32[$2+88>>2];$6=($6|0)<($1|0)?$6:$1;$10=$7?$9:$5;if(($6|0)<=($10|0)){break label$5}$12=HEAP32[$2>>2];$4=HEAP32[$0+20>>2];$6=$6-$10|0;HEAP32[$2+16>>2]=$6;$3=$3-$8|0;HEAP32[$2+12>>2]=$3;HEAP32[$2+8>>2]=$10-$9;$10=$12<<2;$8=($8<<2)+($7?$4+Math_imul($10,$9-$5|0)|0:$4)|0;$9=HEAP32[$0+12>>2];$13=HEAP32[$9>>2];if($13>>>0<=10){$12=HEAP32[$9+20>>2];$7=HEAP32[$9+16>>2]+Math_imul($12,HEAP32[$0+116>>2])|0;label$11:{if(HEAP32[$2+92>>2]){if(($6|0)<1){$3=0;break label$11}$5=0;$3=0;while(1){$4=HEAP32[$0+268>>2];$2=HEAP32[$4+32>>2];$11=$6-$5|0;$2=(($2+HEAP32[$4+24>>2]|0)+ -1|0)/($2|0)|0;$4=($2|0)>($11|0)?$11:$2;if(($4|0)<1|($4|0)>($11|0)){break label$7}$2=0;$14=Math_imul($5,$10)+$8|0;WebPMultARGBRows($14,$10,HEAP32[HEAP32[$0+268>>2]+44>>2],$4);WebPRescalerImport(HEAP32[$0+268>>2],$11,$14,$10);$5=$5+$4|0;$4=HEAP32[$0+268>>2];$15=$4- -64|0;label$15:{if(HEAP32[$15>>2]>=HEAP32[$4+56>>2]){break label$15}$17=Math_imul($3,$12)+$7|0;$11=HEAP32[$4+52>>2];$14=HEAP32[$4+68>>2];while(1){if(HEAP32[$4+24>>2]>0){break label$15}WebPRescalerExportRow($4);FUNCTION_TABLE[HEAP32[283159]]($14,$11,1);VP8LConvertFromBGRA($14,$11,$13,$17+Math_imul($2,$12)|0);$2=$2+1|0;if(HEAP32[$15>>2]>2]){continue}break}}$3=$2+$3|0;if(($5|0)<($6|0)){continue}break}break label$11}if(($6|0)>=1){$2=$6;while(1){VP8LConvertFromBGRA($8,$3,$13,$7);$7=$7+$12|0;$8=$8+$10|0;$5=($2|0)>1;$2=$2+ -1|0;if($5){continue}break}}$3=$6}$5=HEAP32[$0+116>>2]+$3|0;break label$6}$5=HEAP32[$0+116>>2];if(HEAP32[$2+92>>2]){if(($6|0)<1){break label$6}$7=0;while(1){$3=HEAP32[$0+268>>2];$2=HEAP32[$3+32>>2];$4=$6-$7|0;$2=(($2+HEAP32[$3+24>>2]|0)+ -1|0)/($2|0)|0;$2=($2|0)>($4|0)?$4:$2;WebPMultARGBRows($8,$10,HEAP32[HEAP32[$0+268>>2]+44>>2],$2);WebPRescalerImport(HEAP32[$0+268>>2],$4,$8,$10);$7=$2+$7|0;$14=Math_imul($2,$10);$13=0;$4=HEAP32[$0+268>>2];$15=$4- -64|0;label$21:{if(HEAP32[$15>>2]>=HEAP32[$4+56>>2]){break label$21}$12=HEAP32[$4+52>>2];$11=HEAP32[$4+68>>2];$17=$11+3|0;$2=$5;while(1){if(HEAP32[$4+24>>2]>0){break label$21}WebPRescalerExportRow($4);FUNCTION_TABLE[HEAP32[283159]]($11,$12,1);$3=HEAP32[$0+12>>2];FUNCTION_TABLE[HEAP32[283301]]($11,HEAP32[$3+16>>2]+Math_imul(HEAP32[$3+32>>2],$2)|0,$12);$16=$2>>1;FUNCTION_TABLE[HEAP32[283302]]($11,HEAP32[$3+20>>2]+Math_imul($16,HEAP32[$3+36>>2])|0,HEAP32[$3+24>>2]+Math_imul($16,HEAP32[$3+40>>2])|0,$12,($2^-1)&1);$16=HEAP32[$3+28>>2];if($16){FUNCTION_TABLE[HEAP32[283165]]($17,0,$12,1,$16+Math_imul(HEAP32[$3+44>>2],$2)|0,0)|0}$13=$13+1|0;$2=$2+1|0;if(HEAP32[$15>>2]>2]){continue}break}}$8=$8+$14|0;$5=$5+$13|0;if(($7|0)<($6|0)){continue}break}break label$6}if(($6|0)<1){break label$6}$2=$9;while(1){FUNCTION_TABLE[HEAP32[283301]]($8,HEAP32[$2+16>>2]+Math_imul(HEAP32[$2+32>>2],$5)|0,$3);$7=$5>>1;FUNCTION_TABLE[HEAP32[283302]]($8,HEAP32[$2+20>>2]+Math_imul($7,HEAP32[$2+36>>2])|0,HEAP32[$2+24>>2]+Math_imul($7,HEAP32[$2+40>>2])|0,$3,($5^-1)&1);$7=HEAP32[$2+28>>2];if($7){FUNCTION_TABLE[HEAP32[283165]]($8+3|0,0,$3,1,$7+Math_imul(HEAP32[$2+44>>2],$5)|0,0)|0}$5=$5+1|0;if(($6|0)<2){break label$6}$6=$6+ -1|0;$8=$8+$10|0;$2=HEAP32[$0+12>>2];continue}}__assert_fail(178008,176499,657,178024);abort()}__assert_fail(178038,176499,658,178024);abort()}__assert_fail(178069,176499,550,178116);abort()}HEAP32[$0+116>>2]=$5;if(($5|0)<=HEAP32[$9+8>>2]){break label$5}__assert_fail(177928,176499,764,177965);abort()}HEAP32[$0+108>>2]=$1;if(HEAP32[$0+104>>2]<($1|0)){break label$1}}return}__assert_fail(177977,176499,770,177965);abort()}function poly1305_process($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=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,$29=0,$30=0,$31=0,$32=0,$33=0,$34=0;$14=HEAP32[$0+48>>2];$11=HEAP32[$0+44>>2];$8=HEAP32[$0+40>>2];$6=HEAP32[$0+36>>2];$4=HEAP32[$0+32>>2];if($1){$23=HEAP32[$0+12>>2];$20=$23+($23>>>2|0)|0;$21=HEAP32[$0+8>>2];$24=$21+($21>>>2|0)|0;$17=HEAP32[$0+4>>2];$25=$17+($17>>>2|0)|0;$18=HEAP32[$0>>2];while(1){$9=$4;$7=HEAPU8[($12|1)+$2|0];$4=$7>>>24|0;$10=HEAPU8[$2+$12|0]|$7<<8;$7=$4;$5=$10;$10=HEAPU8[($12|2)+$2|0];$4=$10>>>16|0;$10=$5|$10<<16;$7=$4|$7;$5=HEAPU8[($12|3)+$2|0];$4=$5>>>8|0;$10=$5<<24|$10;$9=$10+$9|0;$5=$4|$7;$5=$9>>>0<$10>>>0?$5+1|0:$5;$16=$9;$28=__wasm_i64_mul($18,0,$9,0);$29=i64toi32_i32$HIGH_BITS;$9=$20;$10=$6;$4=0;$6=$5;$5=$10+$5|0;if($5>>>0<$6>>>0){$4=$4+1|0}$10=$5;$6=$4;$4=HEAPU8[($12|5)+$2|0];$5=$4>>>24|0;$13=HEAPU8[($12|4)+$2|0]|$4<<8;$7=HEAPU8[($12|6)+$2|0];$4=$7>>>16|0;$7=$13|$7<<16;$13=$4|$5;$19=$9;$4=HEAPU8[($12|7)+$2|0];$5=$4>>>8|0;$9=$4<<24|$7;$4=$9+$10|0;$6=($5|$13)+$6|0;$6=$4>>>0<$9>>>0?$6+1|0:$6;$15=$4;$9=__wasm_i64_mul($19,0,$4,0);$30=i64toi32_i32$HIGH_BITS;$7=$24;$5=$8;$8=$6;$6=$5+$6|0;$4=0;$4=$6>>>0<$8>>>0?$4+1|0:$4;$10=$6;$5=HEAPU8[($12|9)+$2|0];$6=$5>>>24|0;$13=HEAPU8[($12|8)+$2|0]|$5<<8;$8=HEAPU8[($12|10)+$2|0];$5=$8>>>16|0;$8=$13|$8<<16;$13=$5|$6;$5=HEAPU8[($12|11)+$2|0];$6=$5>>>8|0;$8=$5<<24|$8;$5=$8+$10|0;$4=($6|$13)+$4|0;$4=$5>>>0<$8>>>0?$4+1|0:$4;$19=$5;$31=__wasm_i64_mul($7,0,$5,0);$8=i64toi32_i32$HIGH_BITS;$7=$4;$11=$4+$11|0;$4=0;$10=$11;$11=$11>>>0<$7>>>0?$4+1|0:$4;$6=HEAPU8[($12|13)+$2|0];$4=$6>>>24|0;$5=HEAPU8[($12|12)+$2|0]|$6<<8;$7=HEAPU8[($12|14)+$2|0];$6=$7>>>16|0;$7=$5|$7<<16;$6=$4|$6;$5=HEAPU8[($12|15)+$2|0];$4=$5>>>8|0;$7=$5<<24|$7;$5=$7+$10|0;$4=($4|$6)+$11|0;$4=$5>>>0<$7>>>0?$4+1|0:$4;$26=$5;$32=__wasm_i64_mul($25,0,$5,0);$11=i64toi32_i32$HIGH_BITS;$22=($3+$14|0)+$4|0;$7=__wasm_i64_mul($25,0,$22,0);$10=i64toi32_i32$HIGH_BITS;$4=__wasm_i64_mul($23,0,$16,0);$5=i64toi32_i32$HIGH_BITS;$6=__wasm_i64_mul($21,0,$15,0);$4=$6+$4|0;$5=i64toi32_i32$HIGH_BITS+$5|0;$5=$4>>>0<$6>>>0?$5+1|0:$5;$14=__wasm_i64_mul($17,0,$19,0);$6=$14+$4|0;$4=i64toi32_i32$HIGH_BITS+$5|0;$33=$6;$14=$6>>>0<$14>>>0?$4+1|0:$4;$4=__wasm_i64_mul($21,0,$16,0);$5=i64toi32_i32$HIGH_BITS;$13=__wasm_i64_mul($17,0,$15,0);$4=$13+$4|0;$6=i64toi32_i32$HIGH_BITS+$5|0;$6=$4>>>0<$13>>>0?$6+1|0:$6;$13=__wasm_i64_mul($18,0,$19,0);$5=$13+$4|0;$4=i64toi32_i32$HIGH_BITS+$6|0;$6=$5;$13=$5>>>0<$13>>>0?$4+1|0:$4;$4=__wasm_i64_mul($17,0,$16,0);$16=i64toi32_i32$HIGH_BITS;$15=__wasm_i64_mul($18,0,$15,0);$5=$15+$4|0;$4=i64toi32_i32$HIGH_BITS+$16|0;$4=$5>>>0<$15>>>0?$4+1|0:$4;$16=$4;$15=$6;$34=$5;$5=$29+$30|0;$4=$9+$28|0;if($4>>>0<$9>>>0){$5=$5+1|0}$9=$4;$6=$4+$31|0;$4=$5+$8|0;$8=$6;$5=$6+$32|0;$6=($6>>>0<$9>>>0?$4+1|0:$4)+$11|0;$11=$5;$8=$5>>>0<$8>>>0?$6+1|0:$6;$6=$34+$8|0;$4=$16;$4=$6>>>0<$8>>>0?$4+1|0:$4;$5=$6;$6=__wasm_i64_mul($20,0,$19,0);$5=$5+$6|0;$4=i64toi32_i32$HIGH_BITS+$4|0;$4=$5>>>0<$6>>>0?$4+1|0:$4;$6=__wasm_i64_mul($24,0,$26,0);$5=$6+$5|0;$4=i64toi32_i32$HIGH_BITS+$4|0;$4=$5>>>0<$6>>>0?$4+1|0:$4;$8=$5;$5=$5+$7|0;$6=$4+$10|0;$6=$5>>>0<$8>>>0?$6+1|0:$6;$8=$5;$9=$6;$6=$15+$6|0;$5=$13;$5=$6>>>0<$9>>>0?$5+1|0:$5;$9=__wasm_i64_mul($20,0,$26,0);$6=$9+$6|0;$4=i64toi32_i32$HIGH_BITS+$5|0;$4=$6>>>0<$9>>>0?$4+1|0:$4;$5=$6;$6=__wasm_i64_mul($24,0,$22,0);$5=$5+$6|0;$4=i64toi32_i32$HIGH_BITS+$4|0;$9=$5;$7=$5>>>0<$6>>>0?$4+1|0:$4;$4=$7+$33|0;$6=$14;$6=$4>>>0<$7>>>0?$6+1|0:$6;$7=__wasm_i64_mul($18,0,$26,0);$5=$7+$4|0;$4=i64toi32_i32$HIGH_BITS+$6|0;$4=$5>>>0<$7>>>0?$4+1|0:$4;$6=__wasm_i64_mul($20,0,$22,0);$5=$6+$5|0;$4=i64toi32_i32$HIGH_BITS+$4|0;$4=$5>>>0<$6>>>0?$4+1|0:$4;$6=$5;$5=Math_imul($18,$22)+$4|0;$4=$5&3;$10=0;$14=0;$7=0;$16=$4;$13=$6;$15=$9;$6=$5&-4;$4=0;$5=$11+($5>>>2|0)|0;if($5>>>0<$11>>>0){$4=$4+1|0}$11=$5;$6=$6+$5|0;$9=$6;$6=$6>>>0<$11>>>0?$4+1|0:$4;$5=$6+$8|0;$4=$7;$7=$5;$11=$5>>>0<$6>>>0?$4+1|0:$4;$4=$15+$11|0;$6=$14;$5=$4;$11=$4>>>0<$11>>>0?$6+1|0:$6;$6=$13+$11|0;$4=$10;$10=$6;$14=$16+($6>>>0<$11>>>0?$4+1|0:$4)|0;$4=$9;$6=$7;$8=$5;$11=$10;$12=$12+16|0;$27=$27+1|0;if(($27|0)!=($1|0)){continue}break}}HEAP32[$0+48>>2]=$14;HEAP32[$0+44>>2]=$11;HEAP32[$0+40>>2]=$8;HEAP32[$0+36>>2]=$6;HEAP32[$0+32>>2]=$4}function dmRender__NewMaterial_28dmRender__RenderContext__2c_20unsigned_20long_2c_20unsigned_20long_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$4=global$0-144|0;global$0=$4;$3=operator_20new_28unsigned_20long_29(112);HEAP32[$3>>2]=0;HEAP32[$3+4>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;HEAP32[$3+48>>2]=0;HEAP32[$3+52>>2]=0;HEAP32[$3+88>>2]=0;HEAP32[$3+92>>2]=0;HEAP32[$3+104>>2]=1;HEAP32[$3+40>>2]=0;HEAP32[$3+44>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=0;HEAP32[$3+56>>2]=0;HEAP32[$3+60>>2]=0;$5=$3- -64|0;HEAP32[$5>>2]=0;HEAP32[$5+4>>2]=0;HEAP32[$3+72>>2]=0;HEAP32[$3+76>>2]=0;HEAP32[$3+80>>2]=0;HEAP32[$3+96>>2]=0;HEAP32[$3+100>>2]=0;HEAP32[$3>>2]=$0;HEAP32[$3+36>>2]=-1;HEAP32[$3+12>>2]=$2;HEAP32[$3+8>>2]=$1;$0=FUNCTION_TABLE[HEAP32[147582]](HEAP32[$0+4016>>2],$1,$2)|0;HEAP32[$3+4>>2]=$0;$5=FUNCTION_TABLE[HEAP32[147593]]($0)|0;label$1:{if(!$5){$0=0;break label$1}$0=0;$1=0;while(1){HEAP32[$4+12>>2]=-1;FUNCTION_TABLE[HEAP32[147592]](HEAP32[$3+4>>2],$1,$4+16|0,128,$4+12|0)|0;$2=HEAP32[$4+12>>2];label$4:{if($2+ -7>>>0<=1){$6=$6+1|0;break label$4}if($2+ -9>>>0<=1){$0=$0+1|0;break label$4}HEAP32[$4+4>>2]=$2;HEAP32[$4>>2]=$4+16;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,99883,99890,$4)}$1=$1+1|0;if(($5|0)!=($1|0)){continue}break}}$1=$0+$6|0;label$7:{label$8:{if($1){dmHashTable_unsigned_20long_20long_2c_20int___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($3+16|0,$1<<1,$1);if(HEAP8[$3+60|0]&1){break label$8}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($6,64,$3+48|0,$3+56|0,$3+52|0)}if($0){if(HEAP8[$3+76|0]&1){break label$8}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($0,32,$3- -64|0,$3+72|0,$3+68|0);$2=0;while(1){$1=HEAP32[$3+68>>2];if(($1|0)==HEAP32[$3+72>>2]){break label$7}HEAP32[$3+68>>2]=$1+32;HEAP32[$1+20>>2]=1;HEAP32[$1+24>>2]=1;HEAP32[$1+12>>2]=5;HEAP32[$1+16>>2]=2;HEAP32[$1+8>>2]=$2<<24|16777215;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;$2=$2+1|0;if(($2|0)!=($0|0)){continue}break}}label$12:{if($5){$7=$3+16|0;$2=0;while(1){$0=FUNCTION_TABLE[HEAP32[147592]](HEAP32[$3+4>>2],$2,$4+16|0,128,$4+12|0)|0;$1=FUNCTION_TABLE[HEAP32[147594]](HEAP32[$3+4>>2],$4+16|0)|0;HEAP32[$4+8>>2]=$1;label$15:{if(($1|0)==-1){break label$15}if(!$0){break label$12}$1=dmHashString64($4+16|0);$6=i64toi32_i32$HIGH_BITS;$0=HEAP32[$4+12>>2];if($0+ -7>>>0<=1){dmHashTable_unsigned_20long_20long_2c_20int___Put_28unsigned_20long_20long_2c_20int_20const__29($7,$1,$6,$4+8|0);$16=HEAP32[$4+8>>2];label$17:{if(HEAP32[$4+12>>2]!=7){$8=0;$9=0;$10=0;$11=0;$12=0;$13=0;$14=0;$15=0;break label$17}$0=strlen($4+16|0);dmStrlCat_28char__2c_20char_20const__2c_20unsigned_20long_29($4+16|0,99991,128);$8=dmHashString64($4+16|0);$9=i64toi32_i32$HIGH_BITS;$0=$0+($4+16|0)|0;HEAP8[$0|0]=0;dmStrlCat_28char__2c_20char_20const__2c_20unsigned_20long_29($4+16|0,99994,128);$10=dmHashString64($4+16|0);$11=i64toi32_i32$HIGH_BITS;HEAP8[$0|0]=0;dmStrlCat_28char__2c_20char_20const__2c_20unsigned_20long_29($4+16|0,99997,128);$12=dmHashString64($4+16|0);$13=i64toi32_i32$HIGH_BITS;HEAP8[$0|0]=0;dmStrlCat_28char__2c_20char_20const__2c_20unsigned_20long_29($4+16|0,1e5,128);$14=dmHashString64($4+16|0);HEAP8[$0|0]=0;$15=i64toi32_i32$HIGH_BITS}$0=HEAP32[$3+52>>2];if(($0|0)==HEAP32[$3+56>>2]){break label$7}HEAP32[$3+52>>2]=$0- -64;HEAP32[$0+56>>2]=$14;HEAP32[$0+60>>2]=$15;HEAP32[$0+48>>2]=$12;HEAP32[$0+52>>2]=$13;HEAP32[$0+40>>2]=$10;HEAP32[$0+44>>2]=$11;HEAP32[$0+32>>2]=$8;HEAP32[$0+36>>2]=$9;HEAP32[$0+28>>2]=$16;HEAP32[$0+24>>2]=0;HEAP32[$0+16>>2]=$1;HEAP32[$0+20>>2]=$6;HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;break label$15}if($0+ -9>>>0>1){break label$15}dmHashTable_unsigned_20long_20long_2c_20int___Put_28unsigned_20long_20long_2c_20int_20const__29($7,$1,$6,$4+8|0)}$2=$2+1|0;if(($5|0)!=($2|0)){continue}break}}global$0=$4+144|0;return $3}__assert_fail(99932,99952,108,99979);abort()}__assert_fail(100270,100345,444,100189);abort()}__assert_fail(100416,100345,484,100440);abort()}function unsigned_20int_20std____2____sort4_bool_20_28___29_28dmRender__Tag_20const__2c_20dmRender__Tag_20const__29_2c_20dmRender__Tag___28dmRender__Tag__2c_20dmRender__Tag__2c_20dmRender__Tag__2c_20dmRender__Tag__2c_20bool_20_28___29_28dmRender__Tag_20const__2c_20dmRender__Tag_20const__29_29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0;$6=global$0-16|0;global$0=$6;$5=FUNCTION_TABLE[HEAP32[$4>>2]]($1,$0)|0;$7=FUNCTION_TABLE[HEAP32[$4>>2]]($2,$1)|0;label$1:{label$2:{if(!$5){$5=0;if(!$7){break label$1}$5=HEAP32[$1+12>>2];HEAP32[$6+8>>2]=HEAP32[$1+8>>2];HEAP32[$6+12>>2]=$5;$5=HEAP32[$1+4>>2];HEAP32[$6>>2]=HEAP32[$1>>2];HEAP32[$6+4>>2]=$5;$5=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$5;$5=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$5;$5=HEAP32[$6+12>>2];HEAP32[$2+8>>2]=HEAP32[$6+8>>2];HEAP32[$2+12>>2]=$5;$5=HEAP32[$6+4>>2];HEAP32[$2>>2]=HEAP32[$6>>2];HEAP32[$2+4>>2]=$5;$5=1;if(!FUNCTION_TABLE[HEAP32[$4>>2]]($1,$0)){break label$1}$5=HEAP32[$0+12>>2];HEAP32[$6+8>>2]=HEAP32[$0+8>>2];HEAP32[$6+12>>2]=$5;$5=HEAP32[$0+4>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$6+4>>2]=$5;$5=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$5;$5=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$5;$5=HEAP32[$6+12>>2];HEAP32[$1+8>>2]=HEAP32[$6+8>>2];HEAP32[$1+12>>2]=$5;$5=HEAP32[$6+4>>2];HEAP32[$1>>2]=HEAP32[$6>>2];HEAP32[$1+4>>2]=$5;break label$2}if($7){$5=HEAP32[$0+12>>2];HEAP32[$6+8>>2]=HEAP32[$0+8>>2];HEAP32[$6+12>>2]=$5;$5=HEAP32[$0+4>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$6+4>>2]=$5;$5=HEAP32[$2+12>>2];HEAP32[$0+8>>2]=HEAP32[$2+8>>2];HEAP32[$0+12>>2]=$5;$5=HEAP32[$2+4>>2];HEAP32[$0>>2]=HEAP32[$2>>2];HEAP32[$0+4>>2]=$5;$5=HEAP32[$6+12>>2];HEAP32[$2+8>>2]=HEAP32[$6+8>>2];HEAP32[$2+12>>2]=$5;$5=HEAP32[$6+4>>2];HEAP32[$2>>2]=HEAP32[$6>>2];HEAP32[$2+4>>2]=$5;$5=1;break label$1}$5=HEAP32[$0+12>>2];HEAP32[$6+8>>2]=HEAP32[$0+8>>2];HEAP32[$6+12>>2]=$5;$5=HEAP32[$0+4>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$6+4>>2]=$5;$5=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$5;$5=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$5;$5=HEAP32[$6+12>>2];HEAP32[$1+8>>2]=HEAP32[$6+8>>2];HEAP32[$1+12>>2]=$5;$5=HEAP32[$6+4>>2];HEAP32[$1>>2]=HEAP32[$6>>2];HEAP32[$1+4>>2]=$5;$5=1;if(!FUNCTION_TABLE[HEAP32[$4>>2]]($2,$1)){break label$1}$5=HEAP32[$1+12>>2];HEAP32[$6+8>>2]=HEAP32[$1+8>>2];HEAP32[$6+12>>2]=$5;$5=HEAP32[$1+4>>2];HEAP32[$6>>2]=HEAP32[$1>>2];HEAP32[$6+4>>2]=$5;$5=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$5;$5=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$5;$5=HEAP32[$6+12>>2];HEAP32[$2+8>>2]=HEAP32[$6+8>>2];HEAP32[$2+12>>2]=$5;$5=HEAP32[$6+4>>2];HEAP32[$2>>2]=HEAP32[$6>>2];HEAP32[$2+4>>2]=$5}$5=2}label$5:{if(!FUNCTION_TABLE[HEAP32[$4>>2]]($3,$2)){break label$5}$7=HEAP32[$2+12>>2];HEAP32[$6+8>>2]=HEAP32[$2+8>>2];HEAP32[$6+12>>2]=$7;$7=HEAP32[$2+4>>2];HEAP32[$6>>2]=HEAP32[$2>>2];HEAP32[$6+4>>2]=$7;$7=HEAP32[$3+12>>2];HEAP32[$2+8>>2]=HEAP32[$3+8>>2];HEAP32[$2+12>>2]=$7;$7=HEAP32[$3+4>>2];HEAP32[$2>>2]=HEAP32[$3>>2];HEAP32[$2+4>>2]=$7;$7=HEAP32[$6+12>>2];HEAP32[$3+8>>2]=HEAP32[$6+8>>2];HEAP32[$3+12>>2]=$7;$7=HEAP32[$6+4>>2];HEAP32[$3>>2]=HEAP32[$6>>2];HEAP32[$3+4>>2]=$7;if(!FUNCTION_TABLE[HEAP32[$4>>2]]($2,$1)){$5=$5+1|0;break label$5}$3=HEAP32[$1+12>>2];HEAP32[$6+8>>2]=HEAP32[$1+8>>2];HEAP32[$6+12>>2]=$3;$3=HEAP32[$1+4>>2];HEAP32[$6>>2]=HEAP32[$1>>2];HEAP32[$6+4>>2]=$3;$3=HEAP32[$2+12>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=$3;$3=HEAP32[$2+4>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=$3;$3=HEAP32[$6+12>>2];HEAP32[$2+8>>2]=HEAP32[$6+8>>2];HEAP32[$2+12>>2]=$3;$3=HEAP32[$6+4>>2];HEAP32[$2>>2]=HEAP32[$6>>2];HEAP32[$2+4>>2]=$3;if(!FUNCTION_TABLE[HEAP32[$4>>2]]($1,$0)){$5=$5+2|0;break label$5}$2=HEAP32[$0+12>>2];HEAP32[$6+8>>2]=HEAP32[$0+8>>2];HEAP32[$6+12>>2]=$2;$2=HEAP32[$0+4>>2];HEAP32[$6>>2]=HEAP32[$0>>2];HEAP32[$6+4>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$2;$2=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$2;$0=HEAP32[$6+12>>2];HEAP32[$1+8>>2]=HEAP32[$6+8>>2];HEAP32[$1+12>>2]=$0;$0=HEAP32[$6+4>>2];HEAP32[$1>>2]=HEAP32[$6>>2];HEAP32[$1+4>>2]=$0;$5=$5+3|0}global$0=$6+16|0;return $5}function btSequentialImpulseConstraintSolver__setFrictionConstraintImpulse_28btSolverConstraint__2c_20btRigidBody__2c_20btRigidBody__2c_20btManifoldPoint__2c_20btContactSolverInfo_20const__29($0,$1,$2,$3,$4,$5){var $6=Math_fround(0),$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=0,$12=0,$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0;$0=HEAP32[$0+56>>2];$8=HEAP32[$1+100>>2];$12=HEAP32[$5+60>>2];label$1:{if($12&8){if($12&4){$17=$0+Math_imul($8,136)|0;$6=Math_fround(HEAPF32[$4+120>>2]*HEAPF32[$5+56>>2]);HEAPF32[$17+84>>2]=$6;label$4:{if(!$2){break label$4}$7=HEAPF32[$2+336>>2];if($7==Math_fround(0)){break label$4}$11=$0+Math_imul($8,136)|0;$9=HEAPF32[$11+24>>2];$10=HEAPF32[$11+20>>2];HEAPF32[$2+504>>2]=HEAPF32[$2+504>>2]+Math_fround($6*Math_fround(Math_fround($7*HEAPF32[$11+16>>2])*HEAPF32[$2+340>>2]));HEAPF32[$2+508>>2]=Math_fround($6*Math_fround(Math_fround($7*$10)*HEAPF32[$2+344>>2]))+HEAPF32[$2+508>>2];HEAPF32[$2+512>>2]=Math_fround($6*Math_fround(Math_fround($7*$9)*HEAPF32[$2+348>>2]))+HEAPF32[$2+512>>2];$7=HEAPF32[$11+56>>2];$9=HEAPF32[$11+52>>2];HEAPF32[$2+520>>2]=Math_fround(Math_fround($6*HEAPF32[$2+536>>2])*HEAPF32[$11+48>>2])+HEAPF32[$2+520>>2];$10=HEAPF32[$2+544>>2];HEAPF32[$2+524>>2]=Math_fround($9*Math_fround($6*HEAPF32[$2+540>>2]))+HEAPF32[$2+524>>2];HEAPF32[$2+528>>2]=Math_fround($7*Math_fround($6*$10))+HEAPF32[$2+528>>2]}label$5:{if(!$3){break label$5}$6=HEAPF32[$3+336>>2];if($6==Math_fround(0)){break label$5}$8=$0+Math_imul($8,136)|0;$10=HEAPF32[$8+72>>2];$13=HEAPF32[$8+68>>2];$14=HEAPF32[$8+24>>2];$15=HEAPF32[$8+20>>2];$16=HEAPF32[$8+16>>2];$7=HEAPF32[$17+84>>2];$9=Math_fround(-$7);HEAPF32[$3+520>>2]=HEAPF32[$3+520>>2]-Math_fround(HEAPF32[$8+64>>2]*Math_fround(HEAPF32[$3+536>>2]*$9));HEAPF32[$3+504>>2]=HEAPF32[$3+504>>2]-Math_fround($7*Math_fround(Math_fround($6*$16)*HEAPF32[$3+340>>2]));HEAPF32[$3+508>>2]=HEAPF32[$3+508>>2]-Math_fround($7*Math_fround(Math_fround($6*$15)*HEAPF32[$3+344>>2]));HEAPF32[$3+512>>2]=HEAPF32[$3+512>>2]-Math_fround($7*Math_fround(Math_fround($6*$14)*HEAPF32[$3+348>>2]));$6=HEAPF32[$3+544>>2];HEAPF32[$3+524>>2]=HEAPF32[$3+524>>2]-Math_fround($13*Math_fround(HEAPF32[$3+540>>2]*$9));HEAPF32[$3+528>>2]=HEAPF32[$3+528>>2]-Math_fround($10*Math_fround($6*$9))}if(!($12&16)){break label$1}$8=HEAP32[$1+100>>2]+1|0;$11=$0+Math_imul($8,136)|0;$6=Math_fround(HEAPF32[$4+124>>2]*HEAPF32[$5+56>>2]);HEAPF32[$11+84>>2]=$6;label$6:{if(!$2){break label$6}$7=HEAPF32[$2+336>>2];if($7==Math_fround(0)){break label$6}$1=$0+Math_imul($8,136)|0;$9=HEAPF32[$1+24>>2];$10=HEAPF32[$1+20>>2];HEAPF32[$2+504>>2]=HEAPF32[$2+504>>2]+Math_fround($6*Math_fround($7*HEAPF32[$1+16>>2]));HEAPF32[$2+508>>2]=Math_fround($6*Math_fround($7*$10))+HEAPF32[$2+508>>2];HEAPF32[$2+512>>2]=Math_fround($6*Math_fround($7*$9))+HEAPF32[$2+512>>2];$7=HEAPF32[$1+56>>2];$9=HEAPF32[$1+52>>2];HEAPF32[$2+520>>2]=Math_fround(Math_fround($6*HEAPF32[$2+536>>2])*HEAPF32[$1+48>>2])+HEAPF32[$2+520>>2];$10=HEAPF32[$2+544>>2];HEAPF32[$2+524>>2]=Math_fround($9*Math_fround($6*HEAPF32[$2+540>>2]))+HEAPF32[$2+524>>2];HEAPF32[$2+528>>2]=Math_fround($7*Math_fround($6*$10))+HEAPF32[$2+528>>2]}if(!$3){break label$1}$6=HEAPF32[$3+336>>2];if($6==Math_fround(0)){break label$1}$0=$0+Math_imul($8,136)|0;$10=HEAPF32[$0+72>>2];$13=HEAPF32[$0+68>>2];$14=HEAPF32[$0+24>>2];$15=HEAPF32[$0+20>>2];$16=HEAPF32[$0+16>>2];$7=HEAPF32[$11+84>>2];$9=Math_fround(-$7);HEAPF32[$3+520>>2]=HEAPF32[$3+520>>2]-Math_fround(HEAPF32[$0+64>>2]*Math_fround(HEAPF32[$3+536>>2]*$9));HEAPF32[$3+504>>2]=HEAPF32[$3+504>>2]-Math_fround($7*Math_fround($6*$16));HEAPF32[$3+508>>2]=HEAPF32[$3+508>>2]-Math_fround($7*Math_fround($6*$15));HEAPF32[$3+512>>2]=HEAPF32[$3+512>>2]-Math_fround($7*Math_fround($6*$14));$6=HEAPF32[$3+544>>2];HEAPF32[$3+524>>2]=HEAPF32[$3+524>>2]-Math_fround($13*Math_fround(HEAPF32[$3+540>>2]*$9));HEAPF32[$3+528>>2]=HEAPF32[$3+528>>2]-Math_fround($10*Math_fround($6*$9));return}HEAP32[($0+Math_imul($8,136)|0)+84>>2]=0;if(!($12&16)){break label$1}HEAP32[($0+Math_imul(HEAP32[$1+100>>2],136)|0)+220>>2]=0;return}HEAP32[($0+Math_imul($8,136)|0)+84>>2]=0;if(!($12&16)){break label$1}HEAP32[($0+Math_imul(HEAP32[$1+100>>2],136)|0)+220>>2]=0}}function WebPAllocateDecBuffer($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$14=global$0-16|0;global$0=$14;$7=2;label$1:{if(!$3|(($1|0)<1|($0|0)<1)){break label$1}label$2:{if(!$2){break label$2}label$3:{if(!HEAP32[$2+8>>2]){$4=$1;$5=$0;break label$3}$4=HEAP32[$2+24>>2];if(($4|0)<1){break label$1}$5=HEAP32[$2+20>>2];if(($5|0)<1){break label$1}$8=HEAP32[$2+16>>2];$9=HEAP32[$2+12>>2];if(($8|$9)<0|(($9&-2)+$5|0)>($0|0)|(($8&-2)+$4|0)>($1|0)){break label$1}}if(!HEAP32[$2+28>>2]){$1=$4;$0=$5;break label$2}HEAP32[$14+12>>2]=HEAP32[$2+32>>2];HEAP32[$14+8>>2]=HEAP32[$2+36>>2];if(!WebPRescalerGetScaledDimensions($5,$4,$14+12|0,$14+8|0)){break label$1}$1=HEAP32[$14+8>>2];$0=HEAP32[$14+12>>2]}HEAP32[$3+8>>2]=$1;HEAP32[$3+4>>2]=$0;if(($1|0)<1|($0|0)<1){break label$1}$9=HEAP32[$3>>2];if($9>>>0>12){break label$1}label$6:{if(HEAP32[$3+12>>2]|HEAP32[$3+80>>2]){break label$6}$4=$1;$15=Math_imul(HEAP32[($9<<2)+178144>>2],$0);$5=$15;$8=__wasm_i64_mul($1,0,$5,$5>>31);$12=i64toi32_i32$HIGH_BITS;label$7:{if($9>>>0<11){$0=0;$5=0;break label$7}$5=($0+1|0)/2|0;$1=($1+1|0)/2|0;$6=__wasm_i64_mul($5,$5>>31,$1,$1>>31);$10=i64toi32_i32$HIGH_BITS;if(($9|0)!=12){$0=0;break label$7}$11=__wasm_i64_mul($0,0,$4,0);$16=i64toi32_i32$HIGH_BITS}$7=1;$1=$6;$4=$10<<1|$1>>>31;$13=$1<<1;$18=$13;$10=$12+$16|0;$1=$11;$12=$1+$8|0;if($12>>>0<$1>>>0){$10=$10+1|0}$16=$12;$12=$18+$12|0;$1=$4+$10|0;$1=WebPSafeMalloc($12,$12>>>0<$16>>>0?$1+1|0:$1,1);if(!$1){break label$1}HEAP32[$3+16>>2]=$1;HEAP32[$3+80>>2]=$1;if($9>>>0>=11){HEAP32[$3+48>>2]=$8;HEAP32[$3+32>>2]=$15;HEAP32[$3+52>>2]=$6;HEAP32[$3+36>>2]=$5;HEAP32[$3+56>>2]=$6;HEAP32[$3+40>>2]=$5;$1=$1+$8|0;HEAP32[$3+20>>2]=$1;HEAP32[$3+24>>2]=$1+$6;if(($9|0)==12){HEAP32[$3+28>>2]=$1+$13}HEAP32[$3+44>>2]=$0;HEAP32[$3+60>>2]=$11;break label$6}HEAP32[$3+24>>2]=$8;HEAP32[$3+20>>2]=$15}$7=2;$8=HEAP32[$3>>2];if($8>>>0>12){break label$1}$6=HEAP32[$3+8>>2];$5=HEAP32[$3+4>>2];label$12:{label$13:{label$14:{if($8>>>0>=11){$1=HEAP32[$3+40>>2];$0=$1>>31;$9=$0^$0+$1;$1=($5+1|0)/2|0;$15=($9|0)>=($1|0);$4=HEAP32[$3+36>>2];$0=$4>>31;$13=$0^$0+$4;$12=($13|0)>=($1|0);$4=HEAP32[$3+32>>2];$0=$4>>31;$4=$0^$0+$4;$16=($4|0)>=($5|0);$10=$5>>31;$0=$5;$11=$6+ -1|0;$18=$11;$19=$11>>31;$17=__wasm_i64_mul($11,$19,$4,0);$7=$0+$17|0;$4=i64toi32_i32$HIGH_BITS+$10|0;$4=$7>>>0<$17>>>0?$4+1|0:$4;$17=!$4&$7>>>0<=HEAPU32[$3+48>>2]|$4>>>0<0;$7=$1>>31;$4=(($6+1|0)/2|0)+ -1|0;$21=$4;$20=$4>>31;$13=__wasm_i64_mul($4,$20,$13,0);$6=$13+$1|0;$4=i64toi32_i32$HIGH_BITS+$7|0;$4=$6>>>0<$13>>>0?$4+1|0:$4;$4=(!$4&$6>>>0<=HEAPU32[$3+52>>2]|$4>>>0<0)&$17;$6=__wasm_i64_mul($9,0,$21,$20);$13=$4;$4=$7+i64toi32_i32$HIGH_BITS|0;$6=$1+$6|0;if($6>>>0<$1>>>0){$4=$4+1|0}$1=$6;$6=HEAP32[$3+16>>2];$9=HEAP32[$3+20>>2];$1=$13&(!$4&$1>>>0<=HEAPU32[$3+56>>2]|$4>>>0<0)&$16&$12&$15&($6|0)!=0&($9|0)!=0;$15=HEAP32[$3+24>>2];$1=$1&($15|0)!=0;if(($8|0)!=12){break label$14}$8=HEAP32[$3+44>>2];$4=$8>>31;$4=$4^$4+$8;$1=$1&($4|0)>=($5|0);$5=__wasm_i64_mul($4,0,$18,$19);$4=$1;$10=$10+i64toi32_i32$HIGH_BITS|0;$1=$0+$5|0;if($1>>>0<$0>>>0){$10=$10+1|0}$0=$4&(!$10&$1>>>0<=HEAPU32[$3+60>>2]|$10>>>0<0)&HEAP32[$3+28>>2]!=0;$7=$0?0:2;if(!$2|!$0){break label$1}break label$12}$1=HEAP32[$3+20>>2];$0=$1>>31;$0=$0^$0+$1;$4=($0|0)>=(Math_imul($5,HEAP32[($8<<2)+178144>>2])|0);$8=$5>>31;$7=$5;$6=$6+ -1|0;$5=$6;$11=__wasm_i64_mul($5,$5>>31,$0,0);$5=$7+$11|0;$0=i64toi32_i32$HIGH_BITS+$8|0;$0=$5>>>0<$11>>>0?$0+1|0:$0;$5=(!$0&$5>>>0<=HEAPU32[$3+24>>2]|$0>>>0<0)&$4;$0=HEAP32[$3+16>>2];$5=$5&($0|0)!=0;$7=$5?0:2;if(!$2|!$5){break label$1}if(HEAP32[$2+48>>2]){break label$13}$7=0;break label$1}if(!(!$2|$1^1)){break label$12}$7=$1?0:2;break label$1}$7=0;HEAP32[$3+20>>2]=0-$1;HEAP32[$3+16>>2]=$0+Math_imul($1,$6);break label$1}if(!HEAP32[$2+48>>2]){$7=0;break label$1}$7=0;$0=HEAP32[$3+32>>2];HEAP32[$3+32>>2]=0-$0;$1=HEAP32[$3+36>>2];HEAP32[$3+36>>2]=0-$1;$2=HEAP32[$3+40>>2];HEAP32[$3+40>>2]=0-$2;HEAP32[$3+16>>2]=$6+Math_imul($0,$11);$0=$11>>1;HEAP32[$3+20>>2]=$9+Math_imul($0,$1);HEAP32[$3+24>>2]=$15+Math_imul($0,$2);$0=HEAP32[$3+28>>2];if(!$0){break label$1}$1=HEAP32[$3+44>>2];HEAP32[$3+44>>2]=0-$1;HEAP32[$3+28>>2]=$0+Math_imul($1,$11)}global$0=$14+16|0;return $7}function dmGameObject__GetPropertyDefault_28dmGameObject__Properties__2c_20unsigned_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar__29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=0,$6=0,$7=0,$8=0,$9=0;$9=global$0-32|0;global$0=$9;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{label$9:{label$10:{$5=HEAP32[$1+40>>2];$6=HEAP32[$5+48>>2];label$11:{if($6){$7=HEAP32[$5+44>>2];$1=0;while(1){if(($1|0)==($6|0)){break label$10}$8=$7+($1<<5)|0;if(HEAP32[$8+8>>2]==($2|0)&HEAP32[$8+12>>2]==($3|0)){$0=0;HEAP32[$4>>2]=0;$1=HEAP32[($7+($1<<5)|0)+16>>2];if(HEAPU32[$5+104>>2]<=$1>>>0){break label$1}HEAPF64[$4+8>>3]=HEAPF32[HEAP32[$5+100>>2]+($1<<2)>>2];break label$11}$1=$1+1|0;if(($6|0)!=($1|0)){continue}break}}$6=HEAP32[$5+56>>2];label$15:{if($6){$7=HEAP32[$5+52>>2];$1=0;while(1){if(($1|0)==($6|0)){break label$9}$8=$7+($1<<5)|0;if(HEAP32[$8+8>>2]==($2|0)&HEAP32[$8+12>>2]==($3|0)){HEAP32[$4>>2]=1;$0=HEAP32[($7+($1<<5)|0)+16>>2];if(HEAPU32[$5+112>>2]<=$0>>>0){break label$8}$0=HEAP32[$5+108>>2]+($0<<3)|0;$1=HEAP32[$0+4>>2];HEAP32[$4+8>>2]=HEAP32[$0>>2];HEAP32[$4+12>>2]=$1;break label$15}$1=$1+1|0;if(($6|0)!=($1|0)){continue}break}}$6=HEAP32[$5- -64>>2];if($6){$7=HEAP32[$5+60>>2];$1=0;while(1){if(($1|0)==($6|0)){break label$7}$8=$7+($1<<5)|0;if(HEAP32[$8+8>>2]==($2|0)&HEAP32[$8+12>>2]==($3|0)){HEAP32[$4>>2]=2;$2=$9;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;$3=HEAP32[$0+40>>2];FUNCTION_TABLE[HEAP32[$0+44>>2]]($3,$2);$0=HEAP32[($7+($1<<5)|0)+16>>2];if(HEAPU32[$5+120>>2]<=$0>>>0){break label$2}$0=dmScript__ResolveURL_28lua_State__2c_20char_20const__2c_20dmMessage__URL__2c_20dmMessage__URL__29($3,HEAP32[HEAP32[$5+116>>2]+($0<<2)>>2],$4+8|0,$9)?-2:0;break label$11}$1=$1+1|0;if(($6|0)!=($1|0)){continue}break}}$0=HEAP32[$5+72>>2];if($0){$6=HEAP32[$5+68>>2];$1=0;while(1){if(($0|0)==($1|0)){break label$6}$7=$6+($1<<5)|0;if(HEAP32[$7+8>>2]==($2|0)&HEAP32[$7+12>>2]==($3|0)){HEAP32[$4>>2]=3;$0=HEAP32[($6+($1<<5)|0)+16>>2];if(HEAPU32[$5+104>>2]<=$0>>>0){break label$1}$0=HEAP32[$5+100>>2]+($0<<2)|0;HEAP32[$4+8>>2]=HEAP32[$0>>2];HEAP32[$4+12>>2]=HEAP32[$0+4>>2];HEAP32[$4+16>>2]=HEAP32[$0+8>>2];break label$15}$1=$1+1|0;if(($0|0)!=($1|0)){continue}break}}$0=HEAP32[$5+80>>2];if($0){$6=HEAP32[$5+76>>2];$1=0;while(1){if(($0|0)==($1|0)){break label$5}$7=$6+($1<<5)|0;if(HEAP32[$7+8>>2]==($2|0)&HEAP32[$7+12>>2]==($3|0)){HEAP32[$4>>2]=4;$0=HEAP32[($6+($1<<5)|0)+16>>2];if(HEAPU32[$5+104>>2]<=$0>>>0){break label$1}$0=HEAP32[$5+100>>2]+($0<<2)|0;HEAP32[$4+8>>2]=HEAP32[$0>>2];HEAP32[$4+12>>2]=HEAP32[$0+4>>2];HEAP32[$4+16>>2]=HEAP32[$0+8>>2];HEAP32[$4+20>>2]=HEAP32[$0+12>>2];break label$15}$1=$1+1|0;if(($0|0)!=($1|0)){continue}break}}$0=HEAP32[$5+88>>2];if($0){$6=HEAP32[$5+84>>2];$1=0;while(1){if(($0|0)==($1|0)){break label$4}$7=$6+($1<<5)|0;if(HEAP32[$7+8>>2]==($2|0)&HEAP32[$7+12>>2]==($3|0)){HEAP32[$4>>2]=5;$0=HEAP32[($6+($1<<5)|0)+16>>2];if(HEAPU32[$5+104>>2]<=$0>>>0){break label$1}$0=HEAP32[$5+100>>2]+($0<<2)|0;HEAP32[$4+8>>2]=HEAP32[$0>>2];HEAP32[$4+12>>2]=HEAP32[$0+4>>2];HEAP32[$4+16>>2]=HEAP32[$0+8>>2];HEAP32[$4+20>>2]=HEAP32[$0+12>>2];break label$15}$1=$1+1|0;if(($0|0)!=($1|0)){continue}break}}$0=-1;$6=HEAP32[$5+96>>2];if(!$6){break label$11}$7=HEAP32[$5+92>>2];$1=0;while(1){if(($1|0)==($6|0)){break label$3}label$32:{$8=$7+($1<<5)|0;if(HEAP32[$8+8>>2]==($2|0)&HEAP32[$8+12>>2]==($3|0)){HEAP32[$4>>2]=6;$0=HEAP32[($7+($1<<5)|0)+16>>2];if(HEAPU32[$5+104>>2]>$0>>>0){break label$32}break label$1}$1=$1+1|0;if(($6|0)!=($1|0)){continue}break label$11}break}HEAP8[$4+8|0]=HEAPF32[HEAP32[$5+100>>2]+($0<<2)>>2]!=Math_fround(0)}$0=0}global$0=$9+32|0;return $0|0}__assert_fail(22141,22153,34,22195);abort()}__assert_fail(22141,22153,42,22195);abort()}__assert_fail(22141,22153,98,22195);abort()}__assert_fail(22141,22153,50,22195);abort()}__assert_fail(22141,22153,58,22195);abort()}__assert_fail(22141,22153,66,22195);abort()}__assert_fail(22141,22153,74,22195);abort()}__assert_fail(22141,22153,82,22195);abort()}__assert_fail(22141,22153,106,22195);abort()}__assert_fail(22141,22153,90,22195);abort()}function dmScript__Sys_GetIfaddrs_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$2=global$0-2880|0;global$0=$2;$7=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$1=$2+180|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+340|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+500|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+660|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+820|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+980|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1140|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1300|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1460|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1620|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1780|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+1940|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+2100|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+2260|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+2420|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;$1=$2+2580|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$2+44>>2]=0;HEAP32[$2+44>>2]=0;lua_createtable($0,HEAP32[$2+44>>2],0);if(HEAP32[$2+44>>2]){$8=$2+2736|0;$9=$2+2672|0;while(1){lua_createtable($0,0,0);$3=($2+48|0)+Math_imul($5,160)|0;lua_pushstring($0,$3);lua_setfield($0,-2,114226);label$3:{if(HEAPU8[$3+128|0]&4){HEAP32[$2+40>>2]=HEAP32[$3+148>>2];$1=HEAP32[$3+144>>2];HEAP32[$2+32>>2]=HEAP32[$3+140>>2];HEAP32[$2+36>>2]=$1;$1=HEAP32[$3+136>>2];HEAP32[$2+24>>2]=HEAP32[$3+132>>2];HEAP32[$2+28>>2]=$1;$1=dmSocket__AddressToIPString_28dmSocket__Address_29($2+24|0);if($1){lua_pushstring($0,$1);dlfree($1);break label$3}$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=0;HEAP32[$0+8>>2]=$4+16;dlfree($1);break label$3}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16}lua_setfield($0,-2,114231);$1=HEAP32[$3+132>>2]+ -1|0;label$6:{if($1>>>0<=1){if($1-1){lua_pushstring($0,114239);break label$6}lua_pushstring($0,114244);break label$6}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16}lua_setfield($0,-2,114249);label$9:{if(HEAPU8[$3+128|0]&8){$1=HEAPU8[$3+152|0];$4=HEAPU8[$3+153|0];$6=HEAPU8[$3+154|0];$10=HEAPU8[$3+155|0];$11=HEAPU8[$3+156|0];HEAP32[$2+20>>2]=HEAPU8[$3+157|0];HEAP32[$2+16>>2]=$11;HEAP32[$2+12>>2]=$10;HEAP32[$2+8>>2]=$6;HEAP32[$2+4>>2]=$4;HEAP32[$2>>2]=$1;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($2+2608|0,64,114256,$2);lua_pushstring($0,$2+2608|0);break label$9}$4=0;memset($2+2608|0,0,264);dmSys__GetSystemInfo_28dmSys__SystemInfo__29($2+2608|0);$1=$9;$1=(HEAPU8[$1|0]|HEAPU8[$1+1|0]<<8|(HEAPU8[$1+2|0]<<16|HEAPU8[$1+3|0]<<24))!=1919184449|(HEAPU8[$1+4|0]|HEAPU8[$1+5|0]<<8|(HEAPU8[$1+6|0]<<16|HEAPU8[$1+7|0]<<24))!=6580591;if(!$1){$4=(strtol($8,0)|0)>22}$6=HEAP32[$2+2868>>2];if($6){dlfree($6)}if(!$1&$4){lua_pushstring($0,114286);break label$9}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16}lua_setfield($0,-2,114304);$1=HEAP32[$3+128>>2]&1;$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=1;HEAP32[$4>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,114308);$1=HEAP32[$3+128>>2]>>>1&1;$3=HEAP32[$0+8>>2];HEAP32[$3+8>>2]=1;HEAP32[$3>>2]=($1|0)!=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,114311);$5=$5+1|0;lua_rawseti($0,-2,$5);if($5>>>0>2]){continue}break}}if(($7+1|0)!=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){__assert_fail(113851,113876,836,114319);abort()}global$0=$2+2880|0;return 1}function dmEngine__Dispatch_28dmMessage__Message__2c_20void__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$4=global$0-80|0;global$0=$4;$2=HEAP32[$0+76>>2];label$1:{if($2){$3=$0+96|0;dmDDF__ResolvePointers_28dmDDF__Descriptor_20const__2c_20void__29($2,$3);if(($2|0)==HEAP32[137950]){$0=HEAP32[$3>>2];HEAP32[$1+144>>2]=-1;HEAP32[$1+140>>2]=$0;HEAP8[$1+148|0]=0;break label$1}if(($2|0)==HEAP32[138026]){HEAP32[$1+12>>2]=__strdup(5349);$2=0;$3=HEAP32[$3>>2];if($3){$6=__strdup($3)}$3=HEAP32[$0+100>>2];if($3){$2=__strdup($3)}$3=0;$5=HEAP32[$0+104>>2];if($5){$7=__strdup($5)}$5=HEAP32[$0+108>>2];if($5){$3=__strdup($5)}$5=0;$9=HEAP32[$0+112>>2];if($9){$8=__strdup($9)}$0=HEAP32[$0+116>>2];if($0){$5=__strdup($0)}HEAP32[$1+16>>2]=$6;$0=1;label$11:{if(!$6|!HEAPU8[$6|0]){break label$11}HEAP32[$1+20>>2]=$2;$0=2;if(!$2|!HEAPU8[$2|0]){break label$11}HEAP32[$1+24>>2]=$7;$0=3;if(!$7|!HEAPU8[$7|0]){break label$11}HEAP32[$1+28>>2]=$3;$0=4;if(!$3|!HEAPU8[$3|0]){break label$11}HEAP32[$1+32>>2]=$8;$0=5;if(!$8|!HEAPU8[$8|0]){break label$11}HEAP32[$1+36>>2]=$5;$0=6;if(!$5){break label$11}$0=HEAPU8[$5|0]?7:6}HEAP8[$1+148|0]=0;HEAP32[$1+8>>2]=$0;HEAP32[$1+144>>2]=1;break label$1}if(($2|0)==HEAP32[137951]){dmProfiler__ToggleProfiler_28_29();break label$1}if(($2|0)==HEAP32[137952]){if(!HEAPU8[561908]){break label$1}HEAP8[$1+204|0]=HEAPU8[$1+204|0]^1;break label$1}if(($2|0)==HEAP32[137984]){HEAP32[$1+520>>2]=HEAP32[$0+100>>2];$2=FUNCTION_TABLE[HEAP32[147544]](HEAP32[$1+184>>2])|0;$3=FUNCTION_TABLE[HEAP32[147545]](HEAP32[$1+184>>2])|0;HEAP32[$4+56>>2]=0;HEAP32[$4+60>>2]=0;HEAP32[$4+64>>2]=0;HEAP32[$4+68>>2]=0;HEAP32[$4+72>>2]=0;HEAP32[$4+76>>2]=30;HEAP32[$4+60>>2]=$3;HEAP32[$4+56>>2]=$2;HEAP32[$4+72>>2]=HEAP32[$0+96>>2];HEAP32[$4+76>>2]=HEAP32[$0+104>>2];HEAP32[$4+16>>2]=-3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,2222,4727,$4+16|0);HEAP32[$1+508>>2]=0;break label$1}if(($2|0)==HEAP32[137985]){if(HEAP32[$1+508>>2]){$0=HEAP32[$1+512>>2];if($0){dlfree($0)}HEAP32[$1+508>>2]=0;HEAP32[$1+512>>2]=0;break label$1}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,2222,4758,0);break label$1}if(($2|0)==HEAP32[138062]){$0=HEAP32[$3>>2];$0=$0?$0:1;HEAP32[$1+480>>2]=$0;HEAP32[130700]=$0;break label$1}if(($2|0)==HEAP32[115262]){FUNCTION_TABLE[HEAP32[147541]](HEAP32[$1+184>>2]);break label$1}if(($2|0)==HEAP32[138046]){if(HEAPU8[$1+449|0]){break label$1}$0=HEAP32[$3>>2];$3=($0|0)>0?$0:0;$2=HEAP32[$1+504>>2];label$22:{if(!$2){HEAP8[$1+448|0]=1;break label$22}$5=($0|0)<1;HEAP8[$1+448|0]=$5&($2|0)==1;if(($2|0)!=1|$5){break label$22}HEAP32[$1+480>>2]=HEAPU32[$1+480>>2]/($0>>>0)}FUNCTION_TABLE[HEAP32[147553]](HEAP32[$1+184>>2],$3);break label$1}if(($2|0)==HEAP32[115278]){$0=HEAP32[$1+244>>2];$2=HEAP32[$1+228>>2];if($2){dmGameObject__LuaLoad_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29($0,$2,$3);break label$1}dmGameObject__LuaLoad_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29($0,HEAP32[$1+232>>2],$3);dmGameObject__LuaLoad_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29($0,HEAP32[$1+240>>2],$3);dmGameObject__LuaLoad_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29($0,HEAP32[$1+236>>2],$3);break label$1}$1=dmMessage__GetSocketName_28unsigned_20long_20long_29(HEAP32[$0>>2],HEAP32[$0+4>>2]);$3=dmHashReverseSafe64(HEAP32[$0+16>>2],HEAP32[$0+20>>2]);$0=dmHashReverseSafe64(HEAP32[$0+24>>2],HEAP32[$0+28>>2]);$2=HEAP32[$2+4>>2];HEAP32[$4+48>>2]=$0;HEAP32[$4+44>>2]=$3;HEAP32[$4+40>>2]=$1;HEAP32[$4+36>>2]=3557;HEAP32[$4+32>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,2222,4783,$4+32|0);break label$1}$1=dmMessage__GetSocketName_28unsigned_20long_20long_29(HEAP32[$0>>2],HEAP32[$0+4>>2]);$2=dmHashReverseSafe64(HEAP32[$0+16>>2],HEAP32[$0+20>>2]);HEAP32[$4+12>>2]=dmHashReverseSafe64(HEAP32[$0+24>>2],HEAP32[$0+28>>2]);HEAP32[$4+8>>2]=$2;HEAP32[$4+4>>2]=$1;HEAP32[$4>>2]=3557;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,2222,4846,$4)}global$0=$4+80|0}function FinishRow($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$14=HEAP32[$0+2280>>2];$19=HEAP32[$0+160>>2];$20=HEAP32[$0+2308>>2];$16=HEAP32[$0+2268>>2];$12=HEAP32[$0+2284>>2];$17=HEAP32[$0+2276>>2];$21=HEAP32[$0+2272>>2];$22=HEAP32[$0+308>>2];$18=HEAP32[$0+164>>2];if(HEAP32[$0+148>>2]==2){ReconstructRow($0,$0+160|0)}label$2:{label$3:{label$4:{label$5:{if(!HEAP32[$0+168>>2]){break label$5}$3=HEAP32[$0+296>>2];if(($3|0)>=HEAP32[$0+304>>2]){break label$5}$13=HEAP32[$0+164>>2];while(1){$10=HEAP32[$0+172>>2]+($3<<2)|0;$4=HEAPU8[$10|0];label$7:{if(!$4){break label$7}if($4>>>0<=2){break label$4}$6=HEAP32[$0+160>>2];$2=HEAP32[$0+2280>>2];$5=(HEAP32[$0+2268>>2]+(Math_imul($6,$2)<<4)|0)+($3<<4)|0;if(HEAP32[$0+2308>>2]==1){if(($3|0)>=1){FUNCTION_TABLE[HEAP32[283182]]($5,$2,$4+4|0)}if(HEAPU8[$10+2|0]){FUNCTION_TABLE[HEAP32[283184]]($5,$2,$4)}if(($13|0)>=1){FUNCTION_TABLE[HEAP32[283181]]($5,$2,$4+4|0)}if(!HEAPU8[$10+2|0]){break label$7}FUNCTION_TABLE[HEAP32[283183]]($5,$2,$4);break label$7}$8=HEAPU8[$10+1|0];$9=$3<<3;$11=HEAP32[$0+2284>>2];$6=Math_imul($11,$6)<<3;$7=$9+($6+HEAP32[$0+2276>>2]|0)|0;$9=$9+($6+HEAP32[$0+2272>>2]|0)|0;$6=HEAPU8[$10+3|0];if(($3|0)>=1){$15=$4+4|0;FUNCTION_TABLE[HEAP32[283174]]($5,$2,$15,$8,$6);FUNCTION_TABLE[HEAP32[283176]]($9,$7,$11,$15,$8,$6)}if(HEAPU8[$10+2|0]){FUNCTION_TABLE[HEAP32[283178]]($5,$2,$4,$8,$6);FUNCTION_TABLE[HEAP32[283180]]($9,$7,$11,$4,$8,$6)}if(($13|0)>=1){$15=$4+4|0;FUNCTION_TABLE[HEAP32[283173]]($5,$2,$15,$8,$6);FUNCTION_TABLE[HEAP32[283175]]($9,$7,$11,$15,$8,$6)}if(!HEAPU8[$10+2|0]){break label$7}FUNCTION_TABLE[HEAP32[283177]]($5,$2,$4,$8,$6);FUNCTION_TABLE[HEAP32[283179]]($9,$7,$11,$4,$8,$6)}$3=$3+1|0;if(($3|0)>2]){continue}break}}$9=Math_imul($14,$19)<<4;$7=HEAPU8[$20+175175|0];$14=Math_imul($7,$14);$8=$16-$14|0;$4=Math_imul($12,$19)<<3;$11=Math_imul($12,$7>>>1|0);$6=$17-$11|0;$10=$21-$11|0;label$15:{if(!HEAP32[$0+540>>2]){break label$15}$3=HEAP32[$0+296>>2];$2=HEAP32[$0+304>>2];if(($3|0)>=($2|0)){break label$15}$5=$0+544|0;while(1){$12=HEAP32[$0+176>>2]+Math_imul($3,800)|0;$13=HEAPU8[$12+796|0];if($13>>>0>=4){$20=HEAP32[$0+2276>>2];$17=$3<<3;$2=HEAP32[$0+2284>>2];$16=Math_imul($2,HEAP32[$0+160>>2])<<3;Dither8x8($5,$17+($16+HEAP32[$0+2272>>2]|0)|0,$2,$13);Dither8x8($5,$17+($20+$16|0)|0,$2,HEAPU8[$12+796|0]);$2=HEAP32[$0+304>>2]}$3=$3+1|0;if(($3|0)<($2|0)){continue}break}}$8=$8+$9|0;$6=$4+$6|0;$10=$4+$10|0;$12=$22+ -1|0;$2=1;label$18:{if(!HEAP32[$1+44>>2]){break label$18}$3=$18<<4;$13=$3+16|0;label$19:{if($18){$4=$8;$5=$10;$2=$6;$3=$3-$7|0;break label$19}$2=$4+HEAP32[$0+2276>>2]|0;$5=$4+HEAP32[$0+2272>>2]|0;$4=$9+HEAP32[$0+2268>>2]|0;$3=0}HEAP32[$1+28>>2]=$2;HEAP32[$1+24>>2]=$5;HEAP32[$1+20>>2]=$4;$4=0;HEAP32[$1+104>>2]=0;$2=HEAP32[$1+88>>2];$5=$13-(($18|0)>=($12|0)?0:$7)|0;$7=($5|0)>($2|0)?$2:$5;if(!(!HEAP32[$0+2348>>2]|($7|0)<=($3|0))){$4=VP8DecompressAlphaRows($0,$3,$7-$3|0);HEAP32[$1+104>>2]=$4;if(!$4){break label$2}}$5=HEAP32[$1+84>>2];if(($5|0)>($3|0)){$3=$5-$3|0;if($3&1){break label$3}HEAP32[$1+20>>2]=HEAP32[$1+20>>2]+Math_imul($3,HEAP32[$0+2280>>2]);$2=Math_imul(HEAP32[$0+2284>>2],$3>>1);HEAP32[$1+24>>2]=$2+HEAP32[$1+24>>2];HEAP32[$1+28>>2]=$2+HEAP32[$1+28>>2];label$23:{if(!$4){$4=0;break label$23}$4=Math_imul($3,HEAP32[$1>>2])+$4|0;HEAP32[$1+104>>2]=$4}$3=$5}$2=1;if(($7|0)<=($3|0)){break label$18}$2=HEAP32[$1+76>>2];HEAP32[$1+20>>2]=$2+HEAP32[$1+20>>2];$9=$2>>1;HEAP32[$1+24>>2]=$9+HEAP32[$1+24>>2];HEAP32[$1+28>>2]=$9+HEAP32[$1+28>>2];if($4){HEAP32[$1+104>>2]=$4+$2}HEAP32[$1+8>>2]=$3-$5;HEAP32[$1+16>>2]=$7-$3;HEAP32[$1+12>>2]=HEAP32[$1+80>>2]-$2;$2=FUNCTION_TABLE[HEAP32[$1+44>>2]]($1)|0}if(!(HEAP32[$0+156>>2]!=($19+1|0)|($18|0)>=($12|0))){memcpy(HEAP32[$0+2268>>2]-$14|0,$8+(HEAP32[$0+2280>>2]<<4)|0,$14);$1=0-$11|0;memcpy($1+HEAP32[$0+2272>>2]|0,$10+(HEAP32[$0+2284>>2]<<3)|0,$11);memcpy($1+HEAP32[$0+2276>>2]|0,$6+(HEAP32[$0+2284>>2]<<3)|0,$11)}return $2|0}__assert_fail(175366,175020,214,175377);abort()}__assert_fail(175341,175020,474,175356);abort()}if(!HEAP32[$0>>2]){HEAP32[$0+8>>2]=175312;HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=0}return 0}function btMinkowskiPenetrationDepthSolver__getPenetrationDirections_28_29(){label$1:{if(HEAP8[593008]&1){break label$1}if(!__cxa_guard_acquire(593008)){break label$1}HEAP32[148168]=1042701022;HEAP32[148169]=1056964440;HEAP32[148164]=-1093024784;HEAP32[148165]=1050556081;HEAP32[148160]=-1093024784;HEAP32[148161]=-1096927567;HEAP32[148156]=1042701022;HEAP32[148157]=-1090519208;HEAP32[148152]=1057396286;HEAP32[148153]=0;HEAP32[148148]=1060121912;HEAP32[148149]=1056964507;HEAP32[148144]=-1098475836;HEAP32[148145]=1062148969;HEAP32[148140]=-1084636143;HEAP32[148141]=0;HEAP32[148136]=-1098475836;HEAP32[148137]=-1085334679;HEAP32[148132]=1060121912;HEAP32[148133]=-1090519141;HEAP32[148128]=1058437413;HEAP32[148129]=1062149053;HEAP32[148124]=-2147483648;HEAP32[148125]=1065353216;HEAP32[148120]=-1089046235;HEAP32[148121]=1062149053;HEAP32[148116]=-1082951543;HEAP32[148117]=1050556148;HEAP32[148112]=-1082951543;HEAP32[148113]=-1096927500;HEAP32[148108]=-1089046235;HEAP32[148109]=-1085334595;HEAP32[148104]=0;HEAP32[148105]=-1082130432;HEAP32[148100]=1058437413;HEAP32[148101]=-1085334595;HEAP32[148096]=1064532105;HEAP32[148097]=-1096927500;HEAP32[148092]=1064532105;HEAP32[148093]=1050556148;HEAP32[148088]=1049007812;HEAP32[148089]=1062148969;HEAP32[148084]=-1087361736;HEAP32[148085]=1056964507;HEAP32[148080]=-1104782626;HEAP32[148081]=1056964440;HEAP32[148076]=-1087361736;HEAP32[148077]=-1090519141;HEAP32[148072]=-1090087362;HEAP32[148073]=-2147483648;HEAP32[148068]=1062847505;HEAP32[148069]=-2147483648;HEAP32[148064]=1054458864;HEAP32[148065]=1050556081;HEAP32[148060]=1049007812;HEAP32[148061]=-1085334679;HEAP32[148056]=-1104782626;HEAP32[148057]=-1090519208;HEAP32[148052]=1054458864;HEAP32[148053]=-1096927567;HEAP32[148048]=-2147483648;HEAP32[148049]=0;HEAP32[148044]=1063581978;HEAP32[148045]=0;HEAP32[148040]=1049461434;HEAP32[148041]=1062847522;HEAP32[148036]=-1086767520;HEAP32[148037]=1057396202;HEAP32[148032]=-1086767520;HEAP32[148033]=-1090087446;HEAP32[148028]=1049461434;HEAP32[148029]=-1084636126;HEAP32[148024]=1060716128;HEAP32[148025]=1057396202;HEAP32[148020]=-1098022214;HEAP32[148021]=1062847522;HEAP32[148016]=-1083901670;HEAP32[148017]=-2147483648;HEAP32[148012]=-1098022214;HEAP32[148013]=-1084636126;HEAP32[148008]=1060716128;HEAP32[148009]=-1090087446;HEAP32[148006]=-1082130432;HEAP32[148007]=0;HEAP32[148004]=0;HEAP32[148005]=-2147483648;HEAP32[148170]=1062847606;HEAP32[148171]=0;HEAP32[148166]=1062847606;HEAP32[148167]=0;HEAP32[148162]=1062847606;HEAP32[148163]=0;HEAP32[148158]=1062847606;HEAP32[148159]=0;HEAP32[148154]=1062847572;HEAP32[148155]=0;HEAP32[148150]=1057396386;HEAP32[148151]=0;HEAP32[148146]=1057396420;HEAP32[148147]=0;HEAP32[148142]=1057396386;HEAP32[148143]=0;HEAP32[148138]=1057396420;HEAP32[148139]=0;HEAP32[148134]=1057396386;HEAP32[148135]=0;HEAP32[148130]=-2147483648;HEAP32[148131]=0;HEAP32[148126]=-2147483648;HEAP32[148127]=0;HEAP32[148122]=-2147483648;HEAP32[148123]=0;HEAP32[148118]=-2147483648;HEAP32[148119]=0;HEAP32[148114]=-2147483648;HEAP32[148115]=0;HEAP32[148110]=0;HEAP32[148111]=0;HEAP32[148106]=0;HEAP32[148107]=0;HEAP32[148102]=0;HEAP32[148103]=0;HEAP32[148098]=0;HEAP32[148099]=0;HEAP32[148094]=0;HEAP32[148095]=0;HEAP32[148090]=-1090087228;HEAP32[148091]=0;HEAP32[148086]=-1090087262;HEAP32[148087]=0;HEAP32[148082]=-1084636042;HEAP32[148083]=0;HEAP32[148078]=-1090087262;HEAP32[148079]=0;HEAP32[148074]=-1084636076;HEAP32[148075]=0;HEAP32[148070]=-1090087262;HEAP32[148071]=0;HEAP32[148066]=-1084636042;HEAP32[148067]=0;HEAP32[148062]=-1090087228;HEAP32[148063]=0;HEAP32[148058]=-1084636042;HEAP32[148059]=0;HEAP32[148054]=-1084636042;HEAP32[148055]=0;HEAP32[148050]=1065353216;HEAP32[148051]=0;HEAP32[148046]=1055193471;HEAP32[148047]=0;HEAP32[148042]=1055193572;HEAP32[148043]=0;HEAP32[148038]=1055193572;HEAP32[148039]=0;HEAP32[148034]=1055193572;HEAP32[148035]=0;HEAP32[148030]=1055193605;HEAP32[148031]=0;HEAP32[148026]=-1092290076;HEAP32[148027]=0;HEAP32[148022]=-1092290043;HEAP32[148023]=0;HEAP32[148018]=-1092290177;HEAP32[148019]=0;HEAP32[148014]=-1092290076;HEAP32[148015]=0;HEAP32[148010]=-1092290076;HEAP32[148011]=0;__cxa_guard_release(593008)}}function bool_20std____2____insertion_sort_incomplete_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$6=1;$5=$1-$0>>2;label$1:{if($5>>>0<=5){label$3:{switch($5-2|0){case 0:$5=HEAP32[$2>>2];$8=HEAP32[$5+208>>2];$12=HEAP32[$0>>2];$14=HEAP32[HEAP32[$5+16>>2]+8>>2];$9=$1+ -4|0;$7=HEAP32[($14+(HEAP32[$9>>2]<<3)|0)+4>>2];$10=HEAP32[$5+204>>2];$5=HEAP32[$5+200>>2];$4=HEAP32[(($7>>>0)%($10>>>0)<<2)+$5>>2];$1=0;label$7:{if(($4|0)==-1){break label$7}label$8:{while(1){$1=Math_imul($4,12);$3=$1+$8|0;if(($7|0)==HEAP32[$3>>2]){break label$8}$4=HEAP32[($1+$8|0)+8>>2];if(($4|0)!=-1){continue}break}$3=0}$1=$3?$3+4|0:0}$2=HEAP32[($14+($12<<3)|0)+4>>2];$4=HEAP32[$5+(($2>>>0)%($10>>>0)<<2)>>2];if(HEAP32[$8+Math_imul($4,12)>>2]!=($2|0)){while(1){$4=HEAP32[($8+Math_imul($4,12)|0)+8>>2];if(($2|0)!=HEAP32[$8+Math_imul($4,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$1>>2],HEAP32[($8+Math_imul($4,12)|0)+4>>2])|0)>-1){break label$1}$1=HEAP32[$0>>2];HEAP32[$0>>2]=HEAP32[$9>>2];HEAP32[$9>>2]=$1;return 1;case 1:unsigned_20int_20std____2____sort3_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$0+4|0,$1+ -4|0,$2);return 1;case 2:unsigned_20int_20std____2____sort4_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$0+4|0,$0+8|0,$1+ -4|0,$2);return 1;case 3:break label$3;default:break label$1}}unsigned_20int_20std____2____sort5_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$0+4|0,$0+8|0,$0+12|0,$1+ -4|0,$2);return 1}$10=$0+8|0;unsigned_20int_20std____2____sort3_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$0+4|0,$10,$2);$3=$0+12|0;if(($3|0)==($1|0)){break label$1}label$12:{while(1){$7=HEAP32[$2>>2];$11=HEAP32[$7+208>>2];$15=HEAP32[$10>>2];$6=0;$5=$3;$8=HEAP32[HEAP32[$7+16>>2]+8>>2];$9=HEAP32[($8+(HEAP32[$3>>2]<<3)|0)+4>>2];$12=HEAP32[$7+204>>2];$7=HEAP32[$7+200>>2];$4=HEAP32[(($9>>>0)%($12>>>0)<<2)+$7>>2];if(($4|0)!=-1){label$15:{while(1){$6=Math_imul($4,12);$3=$6+$11|0;if(($9|0)==HEAP32[$3>>2]){break label$15}$4=HEAP32[($6+$11|0)+8>>2];if(($4|0)!=-1){continue}break}$3=0}$6=$3?$3+4|0:0}$3=HEAP32[($8+($15<<3)|0)+4>>2];$4=HEAP32[$7+(($3>>>0)%($12>>>0)<<2)>>2];if(HEAP32[$11+Math_imul($4,12)>>2]!=($3|0)){while(1){$4=HEAP32[($11+Math_imul($4,12)|0)+8>>2];if(($3|0)!=HEAP32[$11+Math_imul($4,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$6>>2],HEAP32[($11+Math_imul($4,12)|0)+4>>2])|0)<=-1){$16=HEAP32[$5>>2];$3=$5;while(1){label$21:{$6=$10;HEAP32[$3>>2]=HEAP32[$6>>2];if(($0|0)==($6|0)){$6=$0;break label$21}$10=$6+ -4|0;$11=HEAP32[$10>>2];$3=HEAP32[$2>>2];$13=HEAP32[$3+208>>2];$12=HEAP32[$3+200>>2];$15=HEAP32[HEAP32[$3+16>>2]+8>>2];$8=HEAP32[($15+($16<<3)|0)+4>>2];$9=HEAP32[$3+204>>2];$4=HEAP32[$12+(($8>>>0)%($9>>>0)<<2)>>2];$3=0;label$23:{if(($4|0)==-1){break label$23}label$24:{while(1){$7=Math_imul($4,12);$3=$7+$13|0;if(($8|0)==HEAP32[$3>>2]){break label$24}$4=HEAP32[($7+$13|0)+8>>2];if(($4|0)!=-1){continue}break}$3=0}$3=$3?$3+4|0:0}$7=$3;$3=HEAP32[($15+($11<<3)|0)+4>>2];$4=HEAP32[$12+(($3>>>0)%($9>>>0)<<2)>>2];if(HEAP32[Math_imul($4,12)+$13>>2]!=($3|0)){while(1){$4=HEAP32[(Math_imul($4,12)+$13|0)+8>>2];if(($3|0)!=HEAP32[Math_imul($4,12)+$13>>2]){continue}break}}$3=$6;if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$7>>2],HEAP32[(Math_imul($4,12)+$13|0)+4>>2])|0)<0){continue}}break}HEAP32[$6>>2]=$16;$14=$14+1|0;if(($14|0)==8){break label$12}}$10=$5;$3=$5+4|0;if(($3|0)!=($1|0)){continue}break}return 1}$6=($5+4|0)==($1|0)}return $6}function dmGameSystem__SetCollisionObjectData_28dmGameSystem__CollisionWorld__2c_20dmGameSystem__CollisionComponent__2c_20dmGameSystem__CollisionObjectResource__2c_20dmPhysicsDDF__CollisionObjectDesc__2c_20bool_2c_20dmPhysics__CollisionObjectData__29($0,$1,$2,$3,$4,$5){HEAP32[$5>>2]=$1;HEAP32[$5+4>>2]=HEAP32[$3+4>>2];HEAP32[$5+8>>2]=HEAP32[$3+8>>2];HEAP32[$5+12>>2]=HEAP32[$3+12>>2];HEAP32[$5+16>>2]=HEAP32[$3+16>>2];$1=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,HEAP32[$2+128>>2],HEAP32[$2+132>>2]);HEAP16[$5+30>>1]=0;HEAP16[$5+28>>1]=$1;HEAP32[$5+20>>2]=HEAP32[$3+48>>2];HEAP32[$5+24>>2]=HEAP32[$3+52>>2];HEAP16[$5+32>>1]=HEAPU16[$5+32>>1]&65532|(HEAPU8[$3+56|0]|($4?2:0));$1=HEAP32[$2+4>>2];$3=$1;$4=HEAP32[$2>>2];label$1:{if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+12>>2];$3=$1;$4=HEAP32[$2+8>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+20>>2];$3=$1;$4=HEAP32[$2+16>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+28>>2];$3=$1;$4=HEAP32[$2+24>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+36>>2];$3=$1;$4=HEAP32[$2+32>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+44>>2];$3=$1;$4=HEAP32[$2+40>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+52>>2];$3=$1;$4=HEAP32[$2+48>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+60>>2];$3=$1;$4=HEAP32[$2+56>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+68>>2];$3=$1;$4=HEAP32[$2+64>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+76>>2];$3=$1;$4=HEAP32[$2+72>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+84>>2];$3=$1;$4=HEAP32[$2+80>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+92>>2];$3=$1;$4=HEAP32[$2+88>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+100>>2];$3=$1;$4=HEAP32[$2+96>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+108>>2];$3=$1;$4=HEAP32[$2+104>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+116>>2];$3=$1;$4=HEAP32[$2+112>>2];if(!($1|$4)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$4,$3)|HEAPU16[$5+30>>1];$1=HEAP32[$2+124>>2];$3=$1;$2=HEAP32[$2+120>>2];if(!($1|$2)){break label$1}HEAP16[$5+30>>1]=dmGameSystem__GetGroupBitIndex_28dmGameSystem__CollisionWorld__2c_20unsigned_20long_20long_29($0,$2,$3)|HEAPU16[$5+30>>1]}}function dispose_chunk($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$5=$0+$1|0;label$1:{label$2:{$2=HEAP32[$0+4>>2];if($2&1){break label$2}if(!($2&3)){break label$1}$2=HEAP32[$0>>2];$1=$2+$1|0;$0=$0-$2|0;if(($0|0)!=HEAP32[310333]){if($2>>>0<=255){$4=$2>>>3|0;$2=HEAP32[$0+8>>2];$3=HEAP32[$0+12>>2];if(($3|0)==($2|0)){HEAP32[310328]=HEAP32[310328]&__wasm_rotl_i32(-2,$4);break label$2}HEAP32[$2+12>>2]=$3;HEAP32[$3+8>>2]=$2;break label$2}$7=HEAP32[$0+24>>2];$2=HEAP32[$0+12>>2];label$6:{if(($2|0)!=($0|0)){$3=HEAP32[$0+8>>2];HEAP32[$3+12>>2]=$2;HEAP32[$2+8>>2]=$3;break label$6}label$9:{$3=$0+20|0;$4=HEAP32[$3>>2];if($4){break label$9}$3=$0+16|0;$4=HEAP32[$3>>2];if($4){break label$9}$2=0;break label$6}while(1){$6=$3;$2=$4;$3=$2+20|0;$4=HEAP32[$3>>2];if($4){continue}$3=$2+16|0;$4=HEAP32[$2+16>>2];if($4){continue}break}HEAP32[$6>>2]=0}if(!$7){break label$2}$3=HEAP32[$0+28>>2];$4=($3<<2)+1241616|0;label$11:{if(HEAP32[$4>>2]==($0|0)){HEAP32[$4>>2]=$2;if($2){break label$11}HEAP32[310329]=HEAP32[310329]&__wasm_rotl_i32(-2,$3);break label$2}HEAP32[$7+(HEAP32[$7+16>>2]==($0|0)?16:20)>>2]=$2;if(!$2){break label$2}}HEAP32[$2+24>>2]=$7;$3=HEAP32[$0+16>>2];if($3){HEAP32[$2+16>>2]=$3;HEAP32[$3+24>>2]=$2}$3=HEAP32[$0+20>>2];if(!$3){break label$2}HEAP32[$2+20>>2]=$3;HEAP32[$3+24>>2]=$2;break label$2}$2=HEAP32[$5+4>>2];if(($2&3)!=3){break label$2}HEAP32[310330]=$1;HEAP32[$5+4>>2]=$2&-2;HEAP32[$0+4>>2]=$1|1;HEAP32[$5>>2]=$1;return}$2=HEAP32[$5+4>>2];label$14:{if(!($2&2)){if(HEAP32[310334]==($5|0)){HEAP32[310334]=$0;$1=HEAP32[310331]+$1|0;HEAP32[310331]=$1;HEAP32[$0+4>>2]=$1|1;if(HEAP32[310333]!=($0|0)){break label$1}HEAP32[310330]=0;HEAP32[310333]=0;return}if(HEAP32[310333]==($5|0)){HEAP32[310333]=$0;$1=HEAP32[310330]+$1|0;HEAP32[310330]=$1;HEAP32[$0+4>>2]=$1|1;HEAP32[$0+$1>>2]=$1;return}$1=($2&-8)+$1|0;label$18:{if($2>>>0<=255){$4=$2>>>3|0;$2=HEAP32[$5+8>>2];$3=HEAP32[$5+12>>2];if(($3|0)==($2|0)){HEAP32[310328]=HEAP32[310328]&__wasm_rotl_i32(-2,$4);break label$18}HEAP32[$2+12>>2]=$3;HEAP32[$3+8>>2]=$2;break label$18}$7=HEAP32[$5+24>>2];$2=HEAP32[$5+12>>2];label$21:{if(($5|0)!=($2|0)){$3=HEAP32[$5+8>>2];HEAP32[$3+12>>2]=$2;HEAP32[$2+8>>2]=$3;break label$21}label$24:{$3=$5+20|0;$4=HEAP32[$3>>2];if($4){break label$24}$3=$5+16|0;$4=HEAP32[$3>>2];if($4){break label$24}$2=0;break label$21}while(1){$6=$3;$2=$4;$3=$2+20|0;$4=HEAP32[$3>>2];if($4){continue}$3=$2+16|0;$4=HEAP32[$2+16>>2];if($4){continue}break}HEAP32[$6>>2]=0}if(!$7){break label$18}$3=HEAP32[$5+28>>2];$4=($3<<2)+1241616|0;label$26:{if(HEAP32[$4>>2]==($5|0)){HEAP32[$4>>2]=$2;if($2){break label$26}HEAP32[310329]=HEAP32[310329]&__wasm_rotl_i32(-2,$3);break label$18}HEAP32[$7+(HEAP32[$7+16>>2]==($5|0)?16:20)>>2]=$2;if(!$2){break label$18}}HEAP32[$2+24>>2]=$7;$3=HEAP32[$5+16>>2];if($3){HEAP32[$2+16>>2]=$3;HEAP32[$3+24>>2]=$2}$3=HEAP32[$5+20>>2];if(!$3){break label$18}HEAP32[$2+20>>2]=$3;HEAP32[$3+24>>2]=$2}HEAP32[$0+4>>2]=$1|1;HEAP32[$0+$1>>2]=$1;if(HEAP32[310333]!=($0|0)){break label$14}HEAP32[310330]=$1;return}HEAP32[$5+4>>2]=$2&-2;HEAP32[$0+4>>2]=$1|1;HEAP32[$0+$1>>2]=$1}if($1>>>0<=255){$2=$1>>>3|0;$1=($2<<3)+1241352|0;$3=HEAP32[310328];$2=1<<$2;label$30:{if(!($3&$2)){HEAP32[310328]=$2|$3;$2=$1;break label$30}$2=HEAP32[$1+8>>2]}HEAP32[$1+8>>2]=$0;HEAP32[$2+12>>2]=$0;HEAP32[$0+12>>2]=$1;HEAP32[$0+8>>2]=$2;return}HEAP32[$0+16>>2]=0;HEAP32[$0+20>>2]=0;$3=$0;$4=$1>>>8|0;$2=0;label$32:{if(!$4){break label$32}$2=31;if($1>>>0>16777215){break label$32}$6=$4+1048320>>>16&8;$4=$4<<$6;$2=$4+520192>>>16&4;$5=$4<<$2;$4=$5+245760>>>16&2;$2=($5<<$4>>>15|0)-($4|($2|$6))|0;$2=($2<<1|$1>>>$2+21&1)+28|0}HEAP32[$3+28>>2]=$2;$4=($2<<2)+1241616|0;label$33:{$3=HEAP32[310329];$6=1<<$2;label$34:{if(!($3&$6)){HEAP32[310329]=$3|$6;HEAP32[$4>>2]=$0;break label$34}$3=$1<<(($2|0)==31?0:25-($2>>>1|0)|0);$2=HEAP32[$4>>2];while(1){$4=$2;if((HEAP32[$2+4>>2]&-8)==($1|0)){break label$33}$2=$3>>>29|0;$3=$3<<1;$6=$4+($2&4)|0;$2=HEAP32[$6+16>>2];if($2){continue}break}HEAP32[$6+16>>2]=$0}HEAP32[$0+24>>2]=$4;HEAP32[$0+12>>2]=$0;HEAP32[$0+8>>2]=$0;return}$1=HEAP32[$4+8>>2];HEAP32[$1+12>>2]=$0;HEAP32[$4+8>>2]=$0;HEAP32[$0+24>>2]=0;HEAP32[$0+12>>2]=$4;HEAP32[$0+8>>2]=$1}}function dmGui__AnimateNodeHash_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11){var $12=0,$13=0,$14=0,$15=Math_fround(0),$16=0,$17=0;$12=global$0-160|0;global$0=$12;$13=HEAP32[$0+32>>2];$14=$1&65535;label$1:{if((HEAP32[$0+36>>2]-$13|0)/576>>>0>$14>>>0){if(HEAPU16[($13+Math_imul($14,576)|0)+552>>1]!=($1>>>16|0)){break label$1}$16=dmGui__GetPropertyDesc_28unsigned_20long_20long_29($2,$3);label$3:{if($16){$13=($13+Math_imul($14,576)|0)+(HEAP32[$16+8>>2]<<4)|0;$2=HEAPU8[$16+12|0];if(($2|0)==255){$15=HEAPF32[$4>>2];$2=HEAP32[$5>>2];$3=HEAP32[$5+4>>2];$17=HEAP32[$5+16>>2];$14=$17;$16=HEAP32[$5+12>>2];HEAP32[$12+148>>2]=$16;HEAP32[$12+152>>2]=$14;HEAP32[$12+144>>2]=0;$17=HEAP32[$12+148>>2];HEAP32[$12+96>>2]=HEAP32[$12+144>>2];HEAP32[$12+100>>2]=$17;HEAP32[$12+104>>2]=HEAP32[$12+152>>2];HEAP32[$12+136>>2]=$2;HEAP32[$12+140>>2]=$3;HEAP32[$12+88>>2]=$2;HEAP32[$12+92>>2]=$3;dmGui__AnimateComponent_28dmGui__Scene__2c_20unsigned_20int_2c_20float__2c_20float_2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$13,$15,$12+88|0,$6,$7,$8,Math_fround(1),0,0,0);$15=HEAPF32[$4+4>>2];HEAP32[$12+148>>2]=$16;HEAP32[$12+152>>2]=$14;HEAP32[$12+144>>2]=0;$17=HEAP32[$12+148>>2];HEAP32[$12+72>>2]=HEAP32[$12+144>>2];HEAP32[$12+76>>2]=$17;HEAP32[$12+80>>2]=HEAP32[$12+152>>2];HEAP32[$12+136>>2]=$2;HEAP32[$12+140>>2]=$3;HEAP32[$12+64>>2]=$2;HEAP32[$12+68>>2]=$3;dmGui__AnimateComponent_28dmGui__Scene__2c_20unsigned_20int_2c_20float__2c_20float_2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$13+4|0,$15,$12- -64|0,$6,$7,$8,Math_fround(1),0,0,0);$15=HEAPF32[$4+8>>2];HEAP32[$12+148>>2]=$16;HEAP32[$12+152>>2]=$14;HEAP32[$12+144>>2]=0;$14=HEAP32[$12+148>>2];HEAP32[$12+48>>2]=HEAP32[$12+144>>2];HEAP32[$12+52>>2]=$14;HEAP32[$12+56>>2]=HEAP32[$12+152>>2];HEAP32[$12+136>>2]=$2;HEAP32[$12+140>>2]=$3;HEAP32[$12+40>>2]=$2;HEAP32[$12+44>>2]=$3;dmGui__AnimateComponent_28dmGui__Scene__2c_20unsigned_20int_2c_20float__2c_20float_2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$13+8|0,$15,$12+40|0,$6,$7,$8,Math_fround(1),0,0,0);$15=HEAPF32[$4+12>>2];HEAP32[$12+32>>2]=HEAP32[$5+16>>2];$2=HEAP32[$5+12>>2];HEAP32[$12+24>>2]=HEAP32[$5+8>>2];HEAP32[$12+28>>2]=$2;$2=HEAP32[$5+4>>2];HEAP32[$12+16>>2]=HEAP32[$5>>2];HEAP32[$12+20>>2]=$2;dmGui__AnimateComponent_28dmGui__Scene__2c_20unsigned_20int_2c_20float__2c_20float_2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$13+12|0,$15,$12+16|0,$6,$7,$8,Math_fround(1),$9,$10,$11);break label$3}$2=$2<<2;$15=HEAPF32[$2+$4>>2];HEAP32[$12+128>>2]=HEAP32[$5+16>>2];$3=HEAP32[$5+12>>2];HEAP32[$12+120>>2]=HEAP32[$5+8>>2];HEAP32[$12+124>>2]=$3;$3=HEAP32[$5+4>>2];HEAP32[$12+112>>2]=HEAP32[$5>>2];HEAP32[$12+116>>2]=$3;dmGui__AnimateComponent_28dmGui__Scene__2c_20unsigned_20int_2c_20float__2c_20float_2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($0,$1,$2+$13|0,$15,$12+112|0,$6,$7,$8,Math_fround(1),$9,$10,$11);break label$3}HEAP32[$12>>2]=dmHashReverseSafe64($2,$3);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,200919,$12)}global$0=$12+160|0;return}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,3758,200903);abort()}function b2DynamicTree__InsertLeaf_28int_29($0,$1){var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=0,$6=0,$7=Math_fround(0),$8=0,$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=0,$24=Math_fround(0);HEAP32[$0+24>>2]=HEAP32[$0+24>>2]+1;$8=HEAP32[$0>>2];if(($8|0)==-1){HEAP32[$0>>2]=$1;HEAP32[(HEAP32[$0+4>>2]+Math_imul($1,36)|0)+20>>2]=-1;return}$6=HEAP32[$0+4>>2];$2=$6+Math_imul($1,36)|0;$10=HEAPF32[$2+8>>2];$11=HEAPF32[$2+4>>2];$14=HEAPF32[$2>>2];$15=HEAPF32[$2+12>>2];$9=HEAP32[($6+Math_imul($8,36)|0)+24>>2];label$2:{if(($9|0)==-1){break label$2}while(1){$2=$6+Math_imul($8,36)|0;$4=HEAPF32[$2+8>>2];$3=HEAPF32[$2>>2];$7=HEAPF32[$2+12>>2];$12=HEAPF32[$2+4>>2];$13=Math_fround(Math_fround(($4>$10?$4:$10)-($3<$14?$3:$14))+Math_fround(($7>$15?$7:$15)-($12<$11?$12:$11)));$13=Math_fround($13+$13);$4=Math_fround(Math_fround($4-$3)+Math_fround($7-$12));$4=Math_fround($13-Math_fround($4+$4));$4=Math_fround($4+$4);$5=$6+Math_imul($9,36)|0;$3=HEAPF32[$5+8>>2];$7=$10>$3?$10:$3;$12=HEAPF32[$5+4>>2];$16=$11<$12?$11:$12;$17=HEAPF32[$5>>2];$20=$14<$17?$14:$17;$18=HEAPF32[$5+12>>2];$21=$15>$18?$15:$18;$19=HEAP32[$2+28>>2];label$4:{if(HEAP32[$5+24>>2]==-1){$3=Math_fround(Math_fround($7-$20)+Math_fround($21-$16));$7=Math_fround($3+$3);break label$4}$7=Math_fround(Math_fround($7-$20)+Math_fround($21-$16));$3=Math_fround(Math_fround($3-$17)+Math_fround($18-$12));$7=Math_fround(Math_fround($7+$7)-Math_fround($3+$3))}$2=$6+Math_imul($19,36)|0;$12=HEAPF32[$2+8>>2];$16=$10>$12?$10:$12;$17=HEAPF32[$2+4>>2];$20=$11<$17?$11:$17;$18=HEAPF32[$2>>2];$21=$14<$18?$14:$18;$22=HEAPF32[$2+12>>2];$24=$15>$22?$15:$22;$3=Math_fround($13+$13);$13=Math_fround($4+$7);$5=!!($3<$13);label$6:{if(HEAP32[$2+24>>2]==-1){$7=Math_fround(Math_fround($16-$21)+Math_fround($24-$20));$7=Math_fround($7+$7);break label$6}$7=Math_fround(Math_fround($16-$21)+Math_fround($24-$20));$16=Math_fround($7+$7);$7=Math_fround(Math_fround($12-$18)+Math_fround($22-$17));$7=Math_fround($16-Math_fround($7+$7))}$4=Math_fround($4+$7);if($3<$4?$5:0){break label$2}$8=$13<$4?$9:$19;$9=HEAP32[($6+Math_imul($8,36)|0)+24>>2];if(($9|0)!=-1){continue}break}}$19=Math_imul($8,36);$5=HEAP32[($19+$6|0)+20>>2];$6=b2DynamicTree__AllocateNode_28_29($0);$23=Math_imul($6,36);HEAP32[($23+HEAP32[$0+4>>2]|0)+20>>2]=$5;$9=HEAP32[$0+4>>2];$2=$9+$23|0;HEAP32[$2+16>>2]=0;$9=$9+$19|0;$4=HEAPF32[$9>>2];$3=HEAPF32[$9+4>>2];HEAPF32[$2+4>>2]=$11<$3?$11:$3;HEAPF32[$2>>2]=$14<$4?$14:$4;$4=HEAPF32[$9+8>>2];$3=HEAPF32[$9+12>>2];HEAPF32[$2+12>>2]=$15>$3?$15:$3;HEAPF32[$2+8>>2]=$10>$4?$10:$4;$2=HEAP32[$0+4>>2];HEAP32[($2+$23|0)+32>>2]=HEAP32[($2+$19|0)+32>>2]+1;label$8:{if(($5|0)!=-1){$5=$2+Math_imul($5,36)|0;HEAP32[(HEAP32[$5+24>>2]==($8|0)?$5+24|0:$5+28|0)>>2]=$6;$5=$2+Math_imul($6,36)|0;HEAP32[$5+28>>2]=$1;HEAP32[$5+24>>2]=$8;HEAP32[($2+Math_imul($8,36)|0)+20>>2]=$6;$2=(HEAP32[$0+4>>2]+Math_imul($1,36)|0)+20|0;break label$8}$5=$2+Math_imul($6,36)|0;HEAP32[$5+28>>2]=$1;HEAP32[$5+24>>2]=$8;HEAP32[($2+Math_imul($8,36)|0)+20>>2]=$6;HEAP32[(HEAP32[$0+4>>2]+Math_imul($1,36)|0)+20>>2]=$6;$2=$0}HEAP32[$2>>2]=$6;label$10:{label$11:{$1=HEAP32[(HEAP32[$0+4>>2]+Math_imul($1,36)|0)+20>>2];if(($1|0)!=-1){while(1){$1=b2DynamicTree__Balance_28int_29($0,$1);$6=HEAP32[$0+4>>2];$2=Math_imul($1,36);$1=$6+$2|0;$8=HEAP32[$1+24>>2];if(($8|0)==-1){break label$11}$5=HEAP32[$1+28>>2];if(($5|0)==-1){break label$10}$8=$6+Math_imul($8,36)|0;$9=HEAP32[$8+32>>2];$6=$6+Math_imul($5,36)|0;$5=HEAP32[$6+32>>2];HEAP32[$1+32>>2]=(($9|0)>($5|0)?$9:$5)+1;$4=HEAPF32[$6>>2];$3=HEAPF32[$8>>2];$10=HEAPF32[$8+4>>2];$11=HEAPF32[$6+4>>2];HEAPF32[$1+4>>2]=$10<$11?$10:$11;HEAPF32[$1>>2]=$3<$4?$3:$4;$4=HEAPF32[$6+8>>2];$3=HEAPF32[$8+8>>2];$10=HEAPF32[$8+12>>2];$11=HEAPF32[$6+12>>2];HEAPF32[$1+12>>2]=$10>$11?$10:$11;HEAPF32[$1+8>>2]=$3>$4?$3:$4;$1=HEAP32[($2+HEAP32[$0+4>>2]|0)+20>>2];if(($1|0)!=-1){continue}break}}return}__assert_fail(93984,93770,307,93999);abort()}__assert_fail(94010,93770,308,93999);abort()}function dmGameSystem__UpdateTransforms_28dmGameSystem__SpineModelWorld__29($0){var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=0,$19=0,$20=0;$2=global$0-144|0;global$0=$2;label$1:{if(HEAP8[586216]&1){break label$1}if(!__cxa_guard_acquire(586216)){break label$1}if(HEAPU8[1130703]){$1=dmProfile__AllocateScope_28char_20const__29(50273)}else{$1=-1}HEAP32[146553]=$1;__cxa_guard_release(586216)}label$3:{if(HEAP8[586224]&1){break label$3}if(!__cxa_guard_acquire(586224)){break label$3}if(HEAPU8[1130703]){$1=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(50284,16)}else{$1=0}HEAP32[146555]=$1;__cxa_guard_release(586224)}$1=HEAP32[146553];label$5:{if(($1|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($2+128|0,$1,50284,HEAP32[146555]);break label$5}HEAP32[$2+128>>2]=0}$1=HEAP32[$0>>2];$3=HEAP32[$0+4>>2]-$1|0;label$7:{if(!$3){break label$7}$3=$3>>2;$18=$3>>>0>1?$3:1;$3=0;while(1){$1=HEAP32[($3<<2)+$1>>2];label$9:{if((HEAPU8[$1+982|0]&5)!=5|!HEAP32[HEAP32[$1+132>>2]+196>>2]){break label$9}$15=dmGameObject__GetWorldMatrix_28dmGameObject__Instance__29(HEAP32[$1>>2]);$9=HEAPF32[$1+20>>2];$6=HEAPF32[$1+28>>2];$13=HEAPF32[$1+24>>2];$10=HEAPF32[$1+56>>2];$7=HEAPF32[$1+52>>2];$11=HEAPF32[$1+48>>2];$19=HEAP32[$1+40>>2];$4=HEAPF32[$1+16>>2];$20=HEAP32[$1+36>>2];HEAP32[$2+112>>2]=HEAP32[$1+32>>2];HEAP32[$2+116>>2]=$20;HEAP32[$2+124>>2]=1065353216;HEAP32[$2+120>>2]=$19;HEAPF32[$2+76>>2]=$11*Math_fround(0);HEAPF32[$2+92>>2]=$7*Math_fround(0);HEAPF32[$2+108>>2]=$10*Math_fround(0);$14=Math_fround($9+$9);$8=Math_fround($4*$14);$12=Math_fround($13+$13);$5=Math_fround($6*$12);HEAPF32[$2+68>>2]=$11*Math_fround($8+$5);$16=Math_fround($4*$12);$17=Math_fround($14*$6);HEAPF32[$2+72>>2]=$11*Math_fround($16-$17);HEAPF32[$2+80>>2]=$7*Math_fround($8-$5);$8=Math_fround($9*$12);$5=$6;$6=Math_fround($4+$4);$5=Math_fround($5*$6);HEAPF32[$2+88>>2]=$7*Math_fround($8+$5);HEAPF32[$2+96>>2]=$10*Math_fround($16+$17);HEAPF32[$2+100>>2]=$10*Math_fround($8-$5);$5=$7;$4=Math_fround(Math_fround(1)-Math_fround($4*$6));$7=Math_fround($13*$12);HEAPF32[$2+84>>2]=$5*Math_fround($4-$7);$6=$4;$4=Math_fround($9*$14);HEAPF32[$2+104>>2]=$10*Math_fround($6-$4);HEAPF32[$2+64>>2]=$11*Math_fround(Math_fround(Math_fround(1)-$4)-$7);if((HEAPU8[HEAP32[$1>>2]+137|0]&2)>>>1){Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($2,$15,$2- -64|0);HEAP32[$1+64>>2]=HEAP32[$2>>2];HEAP32[$1+68>>2]=HEAP32[$2+4>>2];HEAP32[$1+72>>2]=HEAP32[$2+8>>2];HEAP32[$1+76>>2]=HEAP32[$2+12>>2];HEAP32[$1+80>>2]=HEAP32[$2+16>>2];HEAP32[$1+84>>2]=HEAP32[$2+20>>2];HEAP32[$1+88>>2]=HEAP32[$2+24>>2];HEAP32[$1+92>>2]=HEAP32[$2+28>>2];HEAP32[$1+96>>2]=HEAP32[$2+32>>2];HEAP32[$1+100>>2]=HEAP32[$2+36>>2];HEAP32[$1+104>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+44>>2];HEAP32[$1+112>>2]=HEAP32[$2+48>>2];HEAP32[$1+116>>2]=HEAP32[$2+52>>2];HEAP32[$1+120>>2]=HEAP32[$2+56>>2];HEAP32[$1+124>>2]=HEAP32[$2+60>>2];break label$9}dmTransform__MulNoScaleZ_28Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__29($2,$15,$2- -64|0);HEAP32[$1+64>>2]=HEAP32[$2>>2];HEAP32[$1+68>>2]=HEAP32[$2+4>>2];HEAP32[$1+72>>2]=HEAP32[$2+8>>2];HEAP32[$1+76>>2]=HEAP32[$2+12>>2];HEAP32[$1+80>>2]=HEAP32[$2+16>>2];HEAP32[$1+84>>2]=HEAP32[$2+20>>2];HEAP32[$1+88>>2]=HEAP32[$2+24>>2];HEAP32[$1+92>>2]=HEAP32[$2+28>>2];HEAP32[$1+96>>2]=HEAP32[$2+32>>2];HEAP32[$1+100>>2]=HEAP32[$2+36>>2];HEAP32[$1+104>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+44>>2];HEAP32[$1+112>>2]=HEAP32[$2+48>>2];HEAP32[$1+116>>2]=HEAP32[$2+52>>2];HEAP32[$1+120>>2]=HEAP32[$2+56>>2];HEAP32[$1+124>>2]=HEAP32[$2+60>>2]}$3=$3+1|0;if(($18|0)==($3|0)){break label$7}$1=HEAP32[$0>>2];if(HEAP32[$0+4>>2]-$1>>2>>>0>$3>>>0){continue}break}__assert_fail(50664,50554,430,50675);abort()}if(HEAP32[$2+128>>2]){dmProfile__ProfileScope__EndScope_28_29($2+128|0)}global$0=$2+144|0}function dmGameSystem__RenderListDispatch_28dmRender__RenderListDispatchParams_20const__29_6($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$4=global$0-32|0;global$0=$4;label$1:{label$2:{label$3:{label$4:{$2=HEAP32[$0+8>>2];label$5:{if($2>>>0>2){break label$5}$1=HEAP32[$0+4>>2];label$6:{switch($2-1|0){default:HEAP32[$1+52>>2]=HEAP32[$1+44>>2];HEAP32[$1+24>>2]=HEAP32[$1+20>>2];break label$5;case 1:FUNCTION_TABLE[HEAP32[147557]](HEAP32[$1+40>>2],0,0,2);$0=HEAP32[$1+44>>2];FUNCTION_TABLE[HEAP32[147557]](HEAP32[$1+40>>2],HEAP32[$1+52>>2]-$0|0,$0,2);label$9:{if(HEAP8[586844]&1){break label$9}if(!__cxa_guard_acquire(586844)){break label$9}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(54164)}else{$0=-1}HEAP32[146710]=$0;__cxa_guard_release(586844)}$0=HEAP32[146710];if(($0|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,HEAP32[$1+52>>2]-HEAP32[$1+44>>2]|0)}label$12:{if(HEAP8[586852]&1){break label$12}if(!__cxa_guard_acquire(586852)){break label$12}if(HEAPU8[1130703]){$0=dmProfile__AllocateCounter_28char_20const__29(54185)}else{$0=-1}HEAP32[146712]=$0;__cxa_guard_release(586852)}$0=HEAP32[146712];if(($0|0)==-1){break label$5}dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($0,(HEAP32[$1+52>>2]-HEAP32[$1+44>>2]|0)/20|0);break label$5;case 0:break label$6}}$5=HEAP32[$0+20>>2];$8=HEAP32[$0+16>>2];$9=HEAP32[$0+12>>2];$11=HEAP32[$0>>2];label$14:{if(HEAP8[586860]&1){break label$14}if(!__cxa_guard_acquire(586860)){break label$14}if(HEAPU8[1130703]){$0=dmProfile__AllocateScope_28char_20const__29(53450)}else{$0=-1}HEAP32[146714]=$0;__cxa_guard_release(586860)}label$16:{if(HEAP8[586868]&1){break label$16}if(!__cxa_guard_acquire(586868)){break label$16}if(HEAPU8[1130703]){$0=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(54203,11)}else{$0=0}HEAP32[146716]=$0;__cxa_guard_release(586868)}$0=HEAP32[146714];label$18:{if(($0|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($4+16|0,$0,54203,HEAP32[146716]);break label$18}HEAP32[$4+16>>2]=0}$2=HEAP32[$1+4>>2];$0=HEAPU16[(Math_imul(HEAP32[$8>>2],48)+$9|0)+32>>1];if(HEAP32[$1+8>>2]-$2>>2>>>0<=$0>>>0){break label$4}$6=HEAP32[$2+($0<<2)>>2];if(!(HEAP8[$6+946|0]&1)){break label$3}$10=HEAP32[$6+936>>2];$0=HEAP32[$6+932>>2];if(!$0){$0=HEAP32[$10>>2]}$3=HEAP32[$1+24>>2];$7=HEAP32[$1+20>>2];$2=(($3-$7|0)/736|0)+1|0;if((HEAP32[$1+28>>2]-$7|0)/736>>>0<$2>>>0){break label$2}HEAP32[$1+24>>2]=$7+Math_imul($2,736);$7=HEAP32[$1+52>>2];HEAP32[$1+52>>2]=dmGameSystem__CreateVertexData_28dmGameSystem__TileGridWorld__2c_20dmGameSystem__TileGridVertex__2c_20dmGameSystem__TextureSetResource__2c_20dmRender__RenderListEntry__2c_20unsigned_20int__2c_20unsigned_20int__29($1,$7,$0,$9,$8,$5);dmRender__RenderObject__Init_28_29($3);HEAP32[$3+644>>2]=HEAP32[$1+36>>2];$2=HEAP32[$1+40>>2];HEAP32[$3+688>>2]=1;HEAP32[$3+640>>2]=$2;HEAP32[$3+724>>2]=($7-HEAP32[$1+44>>2]|0)/20;HEAP32[$3+728>>2]=(HEAP32[$1+52>>2]-$7|0)/20;$5=$3;$2=HEAP32[$6+928>>2];if(!$2){$2=HEAP32[HEAP32[$6+936>>2]+24>>2]}HEAP32[$5+652>>2]=$2;HEAP32[$3+656>>2]=HEAP32[$0+48>>2];$2=HEAP32[$6+912>>2];if($2){$0=0;while(1){$5=($0<<5)+$6|0;dmRender__EnableRenderObjectConstant_28dmRender__RenderObject__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__29($3,HEAP32[$5+160>>2],HEAP32[$5+164>>2],$5+144|0);$0=$0+1|0;if(($2|0)!=($0|0)){continue}break}}$0=HEAP32[HEAP32[$10+4>>2]+16>>2];if($0>>>0>=4){break label$1}HEAP8[$3+734|0]=HEAPU8[$3+734|0]|1;$0=$0<<2;HEAP32[$3+700>>2]=HEAP32[$0+54528>>2];HEAP32[$3+696>>2]=HEAP32[$0+54512>>2];dmRender__AddToRender_28dmRender__RenderContext__2c_20dmRender__RenderObject__29($11,$3);if(!HEAP32[$4+16>>2]){break label$5}dmProfile__ProfileScope__EndScope_28_29($4+16|0)}global$0=$4+32|0;return}__assert_fail(54153,53995,430,54142);abort()}__assert_fail(54215,53386,611,54203);abort()}__assert_fail(54078,53995,457,54097);abort()}HEAP32[$4>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,53242,54232,$4);__assert_fail(54256,53386,661,54203);abort()}function dmGameSystem__UpdateTransforms_28dmGameSystem__ModelWorld__29($0){var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=0,$19=0,$20=0;$2=global$0-144|0;global$0=$2;label$1:{if(HEAP8[585500]&1){break label$1}if(!__cxa_guard_acquire(585500)){break label$1}if(HEAPU8[1130703]){$1=dmProfile__AllocateScope_28char_20const__29(46186)}else{$1=-1}HEAP32[146374]=$1;__cxa_guard_release(585500)}label$3:{if(HEAP8[585508]&1){break label$3}if(!__cxa_guard_acquire(585508)){break label$3}if(HEAPU8[1130703]){$1=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(46192,16)}else{$1=0}HEAP32[146376]=$1;__cxa_guard_release(585508)}$1=HEAP32[146374];label$5:{if(($1|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($2+128|0,$1,46192,HEAP32[146376]);break label$5}HEAP32[$2+128>>2]=0}$1=HEAP32[$0>>2];$3=HEAP32[$0+4>>2]-$1|0;label$7:{if(!$3){break label$7}$3=$3>>2;$18=$3>>>0>1?$3:1;$3=0;while(1){$1=HEAP32[($3<<2)+$1>>2];label$9:{if((HEAPU8[$1+1014|0]&5)!=5|!HEAP32[HEAP32[$1+132>>2]+196>>2]){break label$9}$15=dmGameObject__GetWorldMatrix_28dmGameObject__Instance__29(HEAP32[$1>>2]);$9=HEAPF32[$1+20>>2];$6=HEAPF32[$1+28>>2];$13=HEAPF32[$1+24>>2];$10=HEAPF32[$1+56>>2];$7=HEAPF32[$1+52>>2];$11=HEAPF32[$1+48>>2];$19=HEAP32[$1+40>>2];$4=HEAPF32[$1+16>>2];$20=HEAP32[$1+36>>2];HEAP32[$2+112>>2]=HEAP32[$1+32>>2];HEAP32[$2+116>>2]=$20;HEAP32[$2+124>>2]=1065353216;HEAP32[$2+120>>2]=$19;HEAPF32[$2+76>>2]=$11*Math_fround(0);HEAPF32[$2+92>>2]=$7*Math_fround(0);HEAPF32[$2+108>>2]=$10*Math_fround(0);$14=Math_fround($9+$9);$8=Math_fround($4*$14);$12=Math_fround($13+$13);$5=Math_fround($6*$12);HEAPF32[$2+68>>2]=$11*Math_fround($8+$5);$16=Math_fround($4*$12);$17=Math_fround($14*$6);HEAPF32[$2+72>>2]=$11*Math_fround($16-$17);HEAPF32[$2+80>>2]=$7*Math_fround($8-$5);$8=Math_fround($9*$12);$5=$6;$6=Math_fround($4+$4);$5=Math_fround($5*$6);HEAPF32[$2+88>>2]=$7*Math_fround($8+$5);HEAPF32[$2+96>>2]=$10*Math_fround($16+$17);HEAPF32[$2+100>>2]=$10*Math_fround($8-$5);$5=$7;$4=Math_fround(Math_fround(1)-Math_fround($4*$6));$7=Math_fround($13*$12);HEAPF32[$2+84>>2]=$5*Math_fround($4-$7);$6=$4;$4=Math_fround($9*$14);HEAPF32[$2+104>>2]=$10*Math_fround($6-$4);HEAPF32[$2+64>>2]=$11*Math_fround(Math_fround(Math_fround(1)-$4)-$7);if((HEAPU8[HEAP32[$1>>2]+137|0]&2)>>>1){Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($2,$15,$2- -64|0);HEAP32[$1+64>>2]=HEAP32[$2>>2];HEAP32[$1+68>>2]=HEAP32[$2+4>>2];HEAP32[$1+72>>2]=HEAP32[$2+8>>2];HEAP32[$1+76>>2]=HEAP32[$2+12>>2];HEAP32[$1+80>>2]=HEAP32[$2+16>>2];HEAP32[$1+84>>2]=HEAP32[$2+20>>2];HEAP32[$1+88>>2]=HEAP32[$2+24>>2];HEAP32[$1+92>>2]=HEAP32[$2+28>>2];HEAP32[$1+96>>2]=HEAP32[$2+32>>2];HEAP32[$1+100>>2]=HEAP32[$2+36>>2];HEAP32[$1+104>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+44>>2];HEAP32[$1+112>>2]=HEAP32[$2+48>>2];HEAP32[$1+116>>2]=HEAP32[$2+52>>2];HEAP32[$1+120>>2]=HEAP32[$2+56>>2];HEAP32[$1+124>>2]=HEAP32[$2+60>>2];break label$9}dmTransform__MulNoScaleZ_28Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__29($2,$15,$2- -64|0);HEAP32[$1+64>>2]=HEAP32[$2>>2];HEAP32[$1+68>>2]=HEAP32[$2+4>>2];HEAP32[$1+72>>2]=HEAP32[$2+8>>2];HEAP32[$1+76>>2]=HEAP32[$2+12>>2];HEAP32[$1+80>>2]=HEAP32[$2+16>>2];HEAP32[$1+84>>2]=HEAP32[$2+20>>2];HEAP32[$1+88>>2]=HEAP32[$2+24>>2];HEAP32[$1+92>>2]=HEAP32[$2+28>>2];HEAP32[$1+96>>2]=HEAP32[$2+32>>2];HEAP32[$1+100>>2]=HEAP32[$2+36>>2];HEAP32[$1+104>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+44>>2];HEAP32[$1+112>>2]=HEAP32[$2+48>>2];HEAP32[$1+116>>2]=HEAP32[$2+52>>2];HEAP32[$1+120>>2]=HEAP32[$2+56>>2];HEAP32[$1+124>>2]=HEAP32[$2+60>>2]}$3=$3+1|0;if(($18|0)==($3|0)){break label$7}$1=HEAP32[$0>>2];if(HEAP32[$0+4>>2]-$1>>2>>>0>$3>>>0){continue}break}__assert_fail(46554,46388,430,46565);abort()}if(HEAP32[$2+128>>2]){dmProfile__ProfileScope__EndScope_28_29($2+128|0)}global$0=$2+144|0}function dmGui__LuaAnimate_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=Math_fround(0),$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$1=global$0-288|0;global$0=$1;$16=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($1+272|0,$0,0);dmScript__GetInstance_28lua_State__29($0);$4=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[283639],205559);lua_settop($0,-2);dmGui__LuaCheckNode_28lua_State__2c_20int_2c_20unsigned_20int__29($0,1,$1+268|0);label$1:{if(dmScript__IsHash_28lua_State__2c_20int_29($0,2)){$7=dmScript__CheckHash_28lua_State__2c_20int_29($0,2);$8=i64toi32_i32$HIGH_BITS;break label$1}$7=dmHashString64(luaL_checklstring($0,2,0));$8=i64toi32_i32$HIGH_BITS}if(!dmGui__HasPropertyHash_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_29($7,$8)){HEAP32[$1+48>>2]=dmScript__GetStringFromHashOrString_28lua_State__2c_20int_2c_20char__2c_20unsigned_20int_29($0,2,$1+128|0);luaL_error($0,202661,$1+48|0)}label$4:{if(lua_isnumber($0,3)){$3=Math_fround(lua_tonumber($0,3));HEAPF32[$1+140>>2]=$3;HEAPF32[$1+136>>2]=$3;HEAPF32[$1+132>>2]=$3;HEAPF32[$1+128>>2]=$3;break label$4}$2=dmScript__ToVector3_28lua_State__2c_20int_29($0,3);if($2){dmGui__GetNodePropertyHash_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_29($1+112|0,$4,HEAP32[$1+268>>2],$7,$8);$5=HEAP32[$2+4>>2];$6=HEAP32[$2>>2];$2=HEAP32[$2+8>>2];HEAP32[$1+140>>2]=HEAP32[$1+124>>2];HEAP32[$1+136>>2]=$2;HEAP32[$1+128>>2]=$6;HEAP32[$1+132>>2]=$5;break label$4}$2=dmScript__CheckVector4_28lua_State__2c_20int_29($0,3);HEAP32[$1+128>>2]=HEAP32[$2>>2];HEAP32[$1+132>>2]=HEAP32[$2+4>>2];HEAP32[$1+136>>2]=HEAP32[$2+8>>2];HEAP32[$1+140>>2]=HEAP32[$2+12>>2]}label$7:{label$8:{label$9:{if(lua_isnumber($0,4)){$6=luaL_checkinteger($0,4);$2=0;if(($6|0)<42){break label$9}$0=luaL_error($0,202685,0);break label$7}if(!dmScript__IsVector_28lua_State__2c_20int_29($0,4)){break label$8}$12=dmScript__CheckVector_28lua_State__2c_20int_29($0,4);lua_rawgeti($0,-1e4,HEAP32[$4+8>>2]);lua_pushvalue($0,4);$9=dmScript__Ref_28lua_State__2c_20int_29($0,-2);lua_settop($0,-2);$13=2192;$6=41;$2=$4}$14=luaL_checknumber($0,5);label$12:{if(lua_isnumber($0,6)){$3=Math_fround(lua_tonumber($0,6));if((lua_type($0,7)|0)!=6){$11=-2;break label$12}$15=dmScript__CreateCallback_28lua_State__2c_20int_29($0,7);lua_rawgeti($0,-1e4,HEAP32[$4+8>>2]);lua_pushvalue($0,1);$11=luaL_ref($0,-2);lua_settop($0,-2);break label$12}$11=-2;$3=Math_fround(0);if((lua_type($0,6)|0)==-1){break label$12}luaL_typerror($0,6,202767)}$10=!lua_isnumber($0,8);$5=0;label$15:{if($10){break label$15}$5=luaL_checkinteger($0,8)}$10=HEAP32[$1+268>>2];if(!$15){HEAP32[$1+16>>2]=$9;HEAP32[$1+100>>2]=$2;HEAP32[$1+96>>2]=$13;$0=HEAP32[$1+100>>2];HEAP32[$1+8>>2]=HEAP32[$1+96>>2];HEAP32[$1+12>>2]=$0;HEAP32[$1+92>>2]=$12;HEAP32[$1+88>>2]=$6;HEAP32[$1+104>>2]=$9;$0=HEAP32[$1+92>>2];HEAP32[$1>>2]=HEAP32[$1+88>>2];HEAP32[$1+4>>2]=$0;$0=0;dmGui__AnimateNodeHash_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($4,$10,$7,$8,$1+128|0,$1,$5,Math_fround($14),$3,0,0,0);break label$7}HEAP32[$1+40>>2]=$9;HEAP32[$1+76>>2]=$2;HEAP32[$1+72>>2]=$13;$0=HEAP32[$1+76>>2];HEAP32[$1+32>>2]=HEAP32[$1+72>>2];HEAP32[$1+36>>2]=$0;HEAP32[$1+68>>2]=$12;HEAP32[$1+64>>2]=$6;HEAP32[$1+80>>2]=$9;$0=HEAP32[$1+68>>2];HEAP32[$1+24>>2]=HEAP32[$1+64>>2];HEAP32[$1+28>>2]=$0;dmGui__AnimateNodeHash_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmEasing__Curve_2c_20dmGui__Playback_2c_20float_2c_20float_2c_20void_20_28__29_28dmGui__Scene__2c_20unsigned_20int_2c_20bool_2c_20void__2c_20void__29_2c_20void__2c_20void__29($4,$10,$7,$8,$1+128|0,$1+24|0,$5,Math_fround($14),$3,2193,$15,$11);$0=0;break label$7}$0=luaL_error($0,202709,0)}dmScript__LuaStackCheck___LuaStackCheck_28_29($16);global$0=$1+288|0;return $0|0}function dmGameObject__AcquireResources_28dmResource__SResourceFactory__2c_20dmGameObject__Register__2c_20dmGameObjectDDF__PrototypeDesc__2c_20dmGameObject__Prototype__2c_20char_20const__29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$5=global$0-160|0;global$0=$5;label$1:{label$2:{label$3:{label$4:{$7=$3+8|0;$8=dmGameObject__LoadPropertyResources_28dmResource__SResourceFactory__2c_20char_20const___2c_20unsigned_20int_2c_20dmArray_void____29($0,HEAP32[$2+16>>2],HEAP32[$2+20>>2],$7);label$5:{if($8){if(HEAP32[$3+4>>2]){while(1){$1=HEAP32[$3>>2]+Math_imul($6,80)|0;dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,HEAP32[$1+24>>2]);dmGameObject__DestroyPropertyContainerCallback_28unsigned_20long_29(HEAP32[$1+72>>2]);$6=$6+1|0;if($6>>>0>2]){continue}break}}dmGameObject__UnloadPropertyResources_28dmResource__SResourceFactory__2c_20dmArray_void____29($0,$7);dmDDF__FreeMessage_28void__29($2);break label$5}HEAP32[$3>>2]=0;HEAP32[$3+4>>2]=0;$6=HEAP32[$2+4>>2];if(!$6){$8=0;break label$5}HEAP32[$3>>2]=dlmalloc(Math_imul($6,80));$9=$5+80|0;label$10:{while(1){if($6>>>0<=$10>>>0){break label$4}$7=HEAP32[$2>>2]+Math_imul($10,144)|0;$12=HEAP32[$7+4>>2];$8=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,$12,$5+156|0);if($8){break label$5}$13=dmHashString64(HEAP32[$7>>2]);$14=i64toi32_i32$HIGH_BITS;$6=0;$8=0;label$12:{$11=HEAP32[$3+4>>2];if(!$11){break label$12}while(1){$15=HEAP32[$3>>2]+Math_imul($6,80)|0;if(HEAP32[$15>>2]==($13|0)&HEAP32[$15+4>>2]==($14|0)){$8=HEAP32[$7>>2];HEAP32[$5+4>>2]=$4;HEAP32[$5>>2]=$8;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,23245,23256,$5);$11=HEAP32[$3+4>>2];$8=1}$6=$6+1|0;if($6>>>0<$11>>>0){continue}break}if(!($8&1)){break label$12}dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,HEAP32[$5+156>>2]);break label$10}if(dmResource__GetType_28dmResource__SResourceFactory__2c_20void__2c_20unsigned_20long__29($0,HEAP32[$5+156>>2],$5+152|0)){break label$3}$6=dmGameObject__FindComponentType_28dmGameObject__Register__2c_20unsigned_20long_2c_20unsigned_20int__29($1,HEAP32[$5+152>>2],$5+148|0);if(!$6){break label$2}if(dmResource__GetDescriptor_28dmResource__SResourceFactory__2c_20char_20const__2c_20dmResource__SResourceDescriptor__29($0,$12,$5+104|0)){break label$1}HEAP32[$5+44>>2]=HEAP32[$5+152>>2];HEAP32[$5+40>>2]=HEAP32[$5+156>>2];HEAP32[$5+36>>2]=HEAP32[$5+148>>2];HEAP32[$5+32>>2]=$6;$6=HEAP32[$5+108>>2];HEAP32[$5+24>>2]=HEAP32[$5+104>>2];HEAP32[$5+28>>2]=$6;HEAP32[$5+16>>2]=$13;HEAP32[$5+20>>2]=$14;HEAP32[$5+48>>2]=HEAP32[$7+16>>2];HEAP32[$5+52>>2]=HEAP32[$7+20>>2];HEAP32[$5+56>>2]=HEAP32[$7+24>>2];HEAP32[$5+64>>2]=HEAP32[$7+32>>2];HEAP32[$5+68>>2]=HEAP32[$7+36>>2];HEAP32[$5+72>>2]=HEAP32[$7+40>>2];HEAP32[$5+76>>2]=HEAP32[$7+44>>2];HEAP32[$9>>2]=0;HEAP32[$9+4>>2]=0;HEAP32[$9+8>>2]=0;HEAP32[$5+80>>2]=92;$6=dmGameObject__CreatePropertyContainerFromDDF_28dmPropertiesDDF__PropertyDeclarations_20const__29($7+56|0);HEAP32[$5+88>>2]=$6;if($6){$6=HEAP32[$3+4>>2];HEAP32[$3+4>>2]=$6+1;$7=HEAP32[$5+44>>2];$6=HEAP32[$3>>2]+Math_imul($6,80)|0;HEAP32[$6+24>>2]=HEAP32[$5+40>>2];HEAP32[$6+28>>2]=$7;$7=HEAP32[$5+36>>2];HEAP32[$6+16>>2]=HEAP32[$5+32>>2];HEAP32[$6+20>>2]=$7;$7=HEAP32[$5+28>>2];HEAP32[$6+8>>2]=HEAP32[$5+24>>2];HEAP32[$6+12>>2]=$7;$7=HEAP32[$5+20>>2];HEAP32[$6>>2]=HEAP32[$5+16>>2];HEAP32[$6+4>>2]=$7;HEAP32[$6+32>>2]=HEAP32[$5+48>>2];HEAP32[$6+36>>2]=HEAP32[$5+52>>2];HEAP32[$6+40>>2]=HEAP32[$5+56>>2];HEAP32[$6+48>>2]=HEAP32[$5+64>>2];HEAP32[$6+52>>2]=HEAP32[$5+68>>2];HEAP32[$6+56>>2]=HEAP32[$5+72>>2];HEAP32[$6+60>>2]=HEAP32[$5+76>>2];$7=HEAP32[$9+4>>2];HEAP32[$6+64>>2]=HEAP32[$9>>2];HEAP32[$6+68>>2]=$7;HEAP32[$6+72>>2]=HEAP32[$9+8>>2];$6=1}else{$6=0}if(!$6){break label$10}$10=$10+1|0;$6=HEAP32[$2+4>>2];if($10>>>0<$6>>>0){continue}break}$8=0;break label$5}$8=-13}global$0=$5+160|0;return $8}__assert_fail(23173,23185,72,23234);abort()}__assert_fail(23311,23343,92,23379);abort()}__assert_fail(23396,23343,95,23379);abort()}__assert_fail(23311,23343,98,23379);abort()}function ParseHeadersInternal($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0;$8=global$0-16|0;global$0=$8;HEAP32[$8+12>>2]=0;HEAP32[$8+8>>2]=0;$12=$3?HEAP32[$3+8>>2]:$12;label$2:{if(!$0){$6=7;break label$2}if($1>>>0<12){$6=7;break label$2}label$6:{if((HEAPU8[$0|0]|HEAPU8[$0+1|0]<<8|(HEAPU8[$0+2|0]<<16|HEAPU8[$0+3|0]<<24))!=1179011410){$5=$1;$7=$0;break label$6}$6=3;if((HEAPU8[$0+8|0]|HEAPU8[$0+9|0]<<8|(HEAPU8[$0+10|0]<<16|HEAPU8[$0+11|0]<<24))!=1346520407){break label$2}$11=HEAPU8[$0+4|0]|HEAPU8[$0+5|0]<<8|(HEAPU8[$0+6|0]<<16|HEAPU8[$0+7|0]<<24);if($11+ -12>>>0>4294967274){break label$2}if(!(!$12|$11>>>0<=$1+ -8>>>0)){$6=7;break label$2}$5=$1+ -12|0;if($5>>>0<8){$6=7;break label$2}$9=1;$7=$0+12|0}$4=$7;label$5:{if((HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))!=1480085590){$6=0;$7=0;break label$5}$6=3;if((HEAPU8[$4+4|0]|HEAPU8[$4+5|0]<<8|(HEAPU8[$4+6|0]<<16|HEAPU8[$4+7|0]<<24))!=10){break label$2}if($5>>>0<18){$6=7;break label$2}$13=1;$14=(HEAPU8[$4+12|0]|HEAPU8[$4+13|0]<<8|HEAPU8[$4+14|0]<<16)+1|0;$15=(HEAPU8[$4+15|0]|HEAPU8[$4+16|0]<<8|HEAPU8[$4+17|0]<<16)+1|0;__wasm_i64_mul($14,0,$15,0);if(i64toi32_i32$HIGH_BITS|!$9){break label$2}$6=HEAPU8[$4+8|0];$5=$5+ -18|0;$4=$4+18|0;$7=$6>>>1&1}if($2){HEAP32[$2>>2]=$7}HEAP32[$8+8>>2]=$15;HEAP32[$8+12>>2]=$14;label$13:{if($6&3?!($3|!$13):0){break label$13}$2=0;label$15:{if($5>>>0<4){break label$15}label$16:{if(!$13|$9^1){$9=0;if($11|$13|(HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))!=1213221953){break label$16}}if($5>>>0<8){break label$15}if(!$11){$9=0;while(1){$7=HEAPU8[$4+4|0]|HEAPU8[$4+5|0]<<8|(HEAPU8[$4+6|0]<<16|HEAPU8[$4+7|0]<<24);if($7>>>0>4294967286){$6=3;break label$2}if((HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==540561494|(HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==1278758998){break label$16}$6=$7+9&-2;if($5>>>0<$6>>>0){break label$15}$10=(HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==1213221953;$2=$10?$4+8|0:$2;$9=$10?$7:$9;$4=$4+$6|0;$5=$5-$6|0;if($5>>>0>=8){continue}break}break label$15}$10=22;$9=0;while(1){$6=3;$16=HEAPU8[$4+4|0]|HEAPU8[$4+5|0]<<8|(HEAPU8[$4+6|0]<<16|HEAPU8[$4+7|0]<<24);if($16>>>0>4294967286){break label$2}$7=$16+9&-2;$10=$7+$10|0;if($10>>>0>$11>>>0){break label$2}if((HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==540561494|(HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==1278758998){break label$16}if($5>>>0<$7>>>0){break label$15}$6=(HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24))==1213221953;$2=$6?$4+8|0:$2;$9=$6?$16:$9;$4=$4+$7|0;$5=$5-$7|0;if($5>>>0>=8){continue}break}break label$15}label$22:{if($4){if($5>>>0<8){break label$15}$10=HEAPU8[$4|0]|HEAPU8[$4+1|0]<<8|(HEAPU8[$4+2|0]<<16|HEAPU8[$4+3|0]<<24);label$24:{if(!(($10|0)!=1278758998?($10|0)!=540561494:0)){$7=HEAPU8[$4+4|0]|HEAPU8[$4+5|0]<<8|(HEAPU8[$4+6|0]<<16|HEAPU8[$4+7|0]<<24);if($11>>>0>=12){$6=3;if($7>>>0>$11+ -12>>>0){break label$2}}$5=$5+ -8|0;if($7>>>0>$5>>>0?$12:0){break label$15}$12=($10|0)==1278758998;$4=$4+8|0;break label$24}$7=0;$12=HEAPU8[$4|0]!=47|$5>>>0<5?$7:HEAPU8[$4+4|0]<32;$7=$5}$6=3;if($7>>>0>4294967286){break label$2}label$28:{if(!$12){if($5>>>0<10){break label$15}if(VP8GetInfo($4,$5,$7,$8+12|0,$8+8|0)){break label$28}break label$2}if($5>>>0<5){break label$15}if(!VP8LGetInfo($4,$5,$8+12|0,$8+8|0)){break label$2}}if(HEAP32[$8+12>>2]!=($14|0)|HEAP32[$8+8>>2]!=($15|0)?$13:0){break label$2}if(!$3){break label$13}HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;HEAP32[$3+4>>2]=$1;HEAP32[$3>>2]=$0;HEAP32[$3+32>>2]=$12;HEAP32[$3+28>>2]=$11;HEAP32[$3+24>>2]=$7;HEAP32[$3+20>>2]=$9;HEAP32[$3+16>>2]=$2;$0=$4-$0|0;HEAP32[$3+12>>2]=$0;if(($0|0)<=-1){break label$22}if(($0|0)==($1-$5|0)){break label$13}__assert_fail(178293,178196,399,178272);abort()}__assert_fail(178343,178196,232,178356);abort()}__assert_fail(178219,178196,398,178272);abort()}if($3){$6=7;break label$2}$6=7;if(!$13){break label$2}}$6=0}global$0=$8+16|0;return $6}function dmPhysics__NewCollisionObject2D_28dmPhysics__World2D__2c_20dmPhysics__CollisionObjectData_20const__2c_20void___2c_20Vectormath__Aos__Vector3__2c_20Vectormath__Aos__Quat__2c_20unsigned_20int_29($0,$1,$2,$3,$4,$5){var $6=0,$7=Math_fround(0),$8=0,$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=0,$13=0,$14=0,$15=0,$16=0;$6=global$0-128|0;global$0=$6;label$1:{if(!$5){$0=0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84838,85108,0);break label$1}$7=HEAPF32[$1+8>>2];label$3:{if(!HEAP32[$1+4>>2]){if($7!=Math_fround(0)){break label$3}$0=0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84838,85145,0);break label$1}if(!($7>Math_fround(0))){break label$3}$0=0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84838,85202,0);break label$1}$13=HEAP32[$0+36>>2];HEAP32[$6+84>>2]=0;HEAP32[$6+88>>2]=0;HEAP32[$6+92>>2]=0;HEAP32[$6+96>>2]=0;HEAP32[$6+100>>2]=0;HEAP32[$6+104>>2]=0;HEAP32[$6+76>>2]=0;HEAP32[$6+80>>2]=0;HEAP32[$6+116>>2]=0;HEAP32[$6+120>>2]=1065353216;HEAP32[$6+108>>2]=257;HEAP8[$6+112|0]=1;HEAP32[$6+72>>2]=0;$7=Math_fround(1);$9=HEAP32[$0+103108>>2];label$5:{if(!$9){break label$5}$8=HEAP32[$1>>2];if($8){FUNCTION_TABLE[$9]($8,$6+16|0);$7=HEAPF32[$13+64>>2];HEAPF32[$6+80>>2]=HEAPF32[$6+36>>2]*$7;HEAPF32[$6+76>>2]=$7*HEAPF32[$6+32>>2];$7=HEAPF32[$6+20>>2];$10=HEAPF32[$6+24>>2];$11=Math_fround(Math_fround(HEAPF32[$6+16>>2]*$7)+Math_fround($10*HEAPF32[$6+28>>2]));$7=Math_fround(Math_fround($7*$7)+Math_fround($10*$10));HEAPF32[$6+84>>2]=atan2f(Math_fround($11+$11),Math_fround(Math_fround(1)-Math_fround($7+$7)));$7=HEAPF32[$6+48>>2];$10=HEAPF32[$6+52>>2];$7=$7<$10?$7:$10;break label$5}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,84838,85259,0)}label$7:{label$8:{$9=HEAP32[$1+4>>2];if($9>>>0>2){break label$8}label$9:{switch($9-1|0){default:HEAP32[$6+72>>2]=2;break label$7;case 0:break label$8;case 1:break label$9}}HEAP32[$6+72>>2]=0;break label$7}HEAP32[$6+72>>2]=1}HEAP32[$6+116>>2]=HEAP32[$1>>2];HEAP32[$6+100>>2]=HEAP32[$1+20>>2];HEAP32[$6+104>>2]=HEAP32[$1+24>>2];$9=HEAPU8[$1+32|0];HEAP8[$6+110|0]=$9&1;HEAP8[$6+112|0]=$9>>>1&1;$15=$5>>>0>1?$5:1;$9=$6+28|0;$0=b2World__CreateBody_28b2BodyDef_20const__29($0+40|0,$6+72|0);$8=0;if(!(!$3|!$4)){while(1){$12=($14^-1)+$5|0;$16=$12<<4;$8=$16+$3|0;$10=HEAPF32[$8>>2];$11=HEAPF32[$8+4>>2];$8=$4+$16|0;$8=dmPhysics__TransformCopyShape_28dmPhysics__Context2D__2c_20b2Shape_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20float_29($13,HEAP32[($12<<2)+$2>>2],$10,$11,HEAPF32[$8+8>>2],HEAPF32[$8+12>>2],$7);HEAP32[$6+24>>2]=1045220557;HEAP16[$6+42>>1]=0;HEAP8[$9+8|0]=0;HEAP32[$9>>2]=0;HEAP32[$9+4>>2]=0;HEAP32[$6+20>>2]=HEAP32[$1>>2];HEAP16[$6+38>>1]=HEAPU16[$1+28>>1];$12=HEAPU16[$1+30>>1];HEAP32[$6+16>>2]=$8;HEAP16[$6+40>>1]=$12;FUNCTION_TABLE[HEAP32[HEAP32[$8>>2]+28>>2]]($8,$6,Math_fround(1));HEAPF32[$6+32>>2]=HEAPF32[$1+8>>2]/HEAPF32[$6>>2];HEAP32[$6+24>>2]=HEAP32[$1+12>>2];HEAP32[$6+28>>2]=HEAP32[$1+16>>2];HEAP8[$6+36|0]=HEAP32[$1+4>>2]==3;b2Body__CreateFixture_28b2FixtureDef_20const__29($0,$6+16|0);$14=$14+1|0;if(($15|0)!=($14|0)){continue}break}break label$1}while(1){$3=dmPhysics__TransformCopyShape_28dmPhysics__Context2D__2c_20b2Shape_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20float_29($13,HEAP32[(($8^-1)+$5<<2)+$2>>2],Math_fround(0),Math_fround(0),Math_fround(0),Math_fround(1),$7);HEAP32[$6+24>>2]=1045220557;HEAP16[$6+42>>1]=0;HEAP8[$9+8|0]=0;HEAP32[$9>>2]=0;HEAP32[$9+4>>2]=0;HEAP32[$6+20>>2]=HEAP32[$1>>2];HEAP16[$6+38>>1]=HEAPU16[$1+28>>1];$4=HEAPU16[$1+30>>1];HEAP32[$6+16>>2]=$3;HEAP16[$6+40>>1]=$4;FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+28>>2]]($3,$6,Math_fround(1));HEAPF32[$6+32>>2]=HEAPF32[$1+8>>2]/HEAPF32[$6>>2];HEAP32[$6+24>>2]=HEAP32[$1+12>>2];HEAP32[$6+28>>2]=HEAP32[$1+16>>2];HEAP8[$6+36|0]=HEAP32[$1+4>>2]==3;b2Body__CreateFixture_28b2FixtureDef_20const__29($0,$6+16|0);$8=$8+1|0;if(($15|0)!=($8|0)){continue}break}}global$0=$6+128|0;return $0}function b2RopeJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=0,$17=Math_fround(0),$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=Math_fround(0),$23=0,$24=0,$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0);$2=HEAP32[$0+48>>2];$21=HEAP32[$2+8>>2];HEAP32[$0+96>>2]=$21;$10=HEAP32[$0+52>>2];$14=HEAP32[$10+8>>2];HEAP32[$0+100>>2]=$14;$15=HEAPF32[$2+32>>2];$9=HEAP32[$2+32>>2];$12=HEAPF32[$2+28>>2];HEAP32[$0+128>>2]=HEAP32[$2+28>>2];HEAP32[$0+132>>2]=$9;$25=HEAPF32[$10+32>>2];$18=HEAP32[$10+32>>2];$5=HEAPF32[$10+28>>2];HEAP32[$0+136>>2]=HEAP32[$10+28>>2];HEAP32[$0+140>>2]=$18;HEAP32[$0+144>>2]=HEAP32[$2+120>>2];HEAP32[$0+148>>2]=HEAP32[$10+120>>2];HEAP32[$0+152>>2]=HEAP32[$2+128>>2];HEAP32[$0+156>>2]=HEAP32[$10+128>>2];$4=HEAPF32[$0+72>>2];$9=HEAP32[$1+24>>2];$2=Math_imul($21,12);$10=$9+$2|0;$13=HEAPF32[$10+8>>2];$11=sinf($13);$3=HEAPF32[$0+68>>2];$7=cosf($13);$16=HEAP32[$1+28>>2];$2=$16+$2|0;$26=HEAPF32[$2>>2];$18=HEAP32[$2>>2];$27=HEAPF32[$2+4>>2];$23=HEAP32[$2+4>>2];$13=HEAPF32[$2+8>>2];$24=Math_imul($14,12);$2=$16+$24|0;$28=HEAPF32[$2>>2];$14=HEAP32[$2>>2];$29=HEAPF32[$2+4>>2];$16=HEAP32[$2+4>>2];$22=HEAPF32[$2+8>>2];$17=HEAPF32[$10+4>>2];$2=$9+$24|0;$8=HEAPF32[$2+4>>2];$19=HEAPF32[$10>>2];$20=HEAPF32[$2>>2];$6=HEAPF32[$2+8>>2];$3=Math_fround($3-$12);$4=Math_fround($4-$15);$12=Math_fround(Math_fround($7*$3)-Math_fround($11*$4));HEAPF32[$0+112>>2]=$12;$11=Math_fround(Math_fround($11*$3)+Math_fround($7*$4));HEAPF32[$0+116>>2]=$11;$7=HEAPF32[$0+80>>2];$4=sinf($6);$3=HEAPF32[$0+76>>2];$6=cosf($6);$5=Math_fround($3-$5);$3=Math_fround($7-$25);$7=Math_fround(Math_fround($6*$5)-Math_fround($4*$3));HEAPF32[$0+120>>2]=$7;$6=Math_fround(Math_fround($4*$5)+Math_fround($6*$3));HEAPF32[$0+124>>2]=$6;$4=Math_fround(Math_fround(Math_fround($20+$7)-$19)-$12);HEAPF32[$0+104>>2]=$4;$5=Math_fround(Math_fround(Math_fround($8+$6)-$17)-$11);HEAPF32[$0+108>>2]=$5;$3=Math_fround(Math_sqrt(Math_fround(Math_fround($4*$4)+Math_fround($5*$5))));HEAPF32[$0+88>>2]=$3;HEAP32[$0+164>>2]=(Math_fround($3-HEAPF32[$0+84>>2])>Math_fround(0))<<1;if(!!($3>Math_fround(.004999999888241291))){$3=Math_fround(Math_fround(1)/$3);$5=Math_fround($5*$3);HEAPF32[$0+108>>2]=$5;$4=Math_fround($4*$3);HEAPF32[$0+104>>2]=$4;$3=HEAPF32[$0+148>>2];$17=HEAPF32[$0+144>>2];$8=Math_fround(Math_fround($12*$5)-Math_fround($11*$4));$19=HEAPF32[$0+152>>2];$15=Math_fround($3+Math_fround($17+Math_fround($8*Math_fround($8*$19))));$8=Math_fround(Math_fround($7*$5)-Math_fround($6*$4));$20=HEAPF32[$0+156>>2];$8=Math_fround($15+Math_fround($8*Math_fround($8*$20)));HEAPF32[$0+160>>2]=$8!=Math_fround(0)?Math_fround(Math_fround(1)/$8):Math_fround(0);label$2:{if(HEAPU8[$1+20|0]){$8=Math_fround(HEAPF32[$1+8>>2]*HEAPF32[$0+92>>2]);HEAPF32[$0+92>>2]=$8;$15=$7;$7=Math_fround($5*$8);$5=$6;$6=Math_fround($4*$8);$22=Math_fround($22+Math_fround($20*Math_fround(Math_fround($15*$7)-Math_fround($5*$6))));$13=Math_fround($13-Math_fround($19*Math_fround(Math_fround($12*$7)-Math_fround($11*$6))));$16=(wasm2js_scratch_store_f32(Math_fround(Math_fround($3*$7)+$29)),wasm2js_scratch_load_i32(0));$14=(wasm2js_scratch_store_f32(Math_fround(Math_fround($3*$6)+$28)),wasm2js_scratch_load_i32(0));$23=(wasm2js_scratch_store_f32(Math_fround($27-Math_fround($17*$7))),wasm2js_scratch_load_i32(0));$18=(wasm2js_scratch_store_f32(Math_fround($26-Math_fround($17*$6))),wasm2js_scratch_load_i32(0));break label$2}HEAP32[$0+92>>2]=0}$9=HEAP32[$1+28>>2]+Math_imul($21,12)|0;HEAP32[$9+4>>2]=$23;HEAP32[$9>>2]=$18;$9=HEAP32[$1+28>>2];HEAPF32[($9+Math_imul(HEAP32[$0+96>>2],12)|0)+8>>2]=$13;$9=$9+Math_imul(HEAP32[$0+100>>2],12)|0;HEAP32[$9+4>>2]=$16;HEAP32[$9>>2]=$14;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+100>>2],12)|0)+8>>2]=$22;return}HEAP32[$0+160>>2]=0;HEAP32[$0+104>>2]=0;HEAP32[$0+108>>2]=0;HEAP32[$0+92>>2]=0}function btConvexPlaneCollisionAlgorithm__processCollision_28btCollisionObject__2c_20btCollisionObject__2c_20btDispatcherInfo_20const__2c_20btManifoldResult__29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=0;$3=global$0-16|0;global$0=$3;label$1:{if(!HEAP32[$0+12>>2]){break label$1}$9=HEAPU8[$0+16|0];$11=HEAP32[($9?$1:$2)+192>>2];$9=HEAP32[($9?$2:$1)+192>>2];HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=1065353216;HEAP32[$3>>2]=0;HEAP32[$3+4>>2]=0;btConvexPlaneCollisionAlgorithm__collideSingleContact_28btQuaternion_20const__2c_20btCollisionObject__2c_20btCollisionObject__2c_20btDispatcherInfo_20const__2c_20btManifoldResult__29($0,$3,$1,$2,$4);label$2:{if(HEAP32[HEAP32[$4+4>>2]+1116>>2]>=HEAP32[$0+24>>2]){break label$2}$6=HEAPF32[$11+56>>2];label$3:{if(!!(Math_fround(Math_abs($6))>Math_fround(.7071067690849304))){$5=HEAPF32[$11+52>>2];$7=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround($6*$6)+Math_fround($5*$5)))));$5=Math_fround($5*$7);$6=Math_fround($7*Math_fround(-$6));$7=Math_fround(0);break label$3}$5=HEAPF32[$11+48>>2];$6=HEAPF32[$11+52>>2];$8=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround($5*$5)+Math_fround($6*$6)))));$7=Math_fround($8*Math_fround(-$6));$6=Math_fround($5*$8);$5=Math_fround(0)}$8=Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$9>>2]+16>>2]]($9));$8=Math_fround(Math_fround(Math_min(Math_fround(HEAPF32[136189]/$8),Math_fround(.39269909262657166)))*Math_fround(.5));$12=sinf($8);$9=HEAP32[$0+20>>2];$14=cosf($8);if(($9|0)<1){break label$2}$13=$5;$5=Math_fround($12/Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround($7*$7)+Math_fround($6*$6))+Math_fround($5*$5)))));$12=Math_fround($13*$5);$15=Math_fround($6*$5);$16=Math_fround($7*$5);while(1){$7=HEAPF32[$11+52>>2];$8=HEAPF32[$11+48>>2];$6=HEAPF32[$11+56>>2];$5=Math_fround(Math_fround(Math_fround(Math_fround(6.2831854820251465)/Math_fround($9|0))*Math_fround($19|0))*Math_fround(.5));$10=sinf($5);$5=cosf($5);$10=Math_fround($10/Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround($8*$8)+Math_fround($7*$7))+Math_fround($6*$6)))));$6=Math_fround($6*$10);$7=Math_fround($7*$10);$8=Math_fround($8*$10);$10=Math_fround(Math_fround($12*$6)+Math_fround(Math_fround($15*$7)+Math_fround(Math_fround($14*$5)+Math_fround($16*$8))));$17=Math_fround(Math_fround($15*$6)+Math_fround(Math_fround(Math_fround($16*$5)-Math_fround($14*$8))-Math_fround($12*$7)));$18=Math_fround(Math_fround($12*$8)+Math_fround(Math_fround(Math_fround($15*$5)-Math_fround($14*$7))-Math_fround($16*$6)));$13=Math_fround(Math_fround($16*$7)+Math_fround(Math_fround(Math_fround($12*$5)-Math_fround($14*$6))-Math_fround($15*$8)));HEAPF32[$3+12>>2]=Math_fround(Math_fround(Math_fround($5*$10)-Math_fround($8*$17))-Math_fround($7*$18))-Math_fround($6*$13);HEAPF32[$3+8>>2]=Math_fround(Math_fround($7*$17)+Math_fround(Math_fround($6*$10)+Math_fround($5*$13)))-Math_fround($8*$18);HEAPF32[$3+4>>2]=Math_fround(Math_fround($8*$13)+Math_fround(Math_fround($5*$18)+Math_fround($7*$10)))-Math_fround($6*$17);HEAPF32[$3>>2]=Math_fround(Math_fround($6*$18)+Math_fround(Math_fround($8*$10)+Math_fround($5*$17)))-Math_fround($7*$13);btConvexPlaneCollisionAlgorithm__collideSingleContact_28btQuaternion_20const__2c_20btCollisionObject__2c_20btCollisionObject__2c_20btDispatcherInfo_20const__2c_20btManifoldResult__29($0,$3,$1,$2,$4);$19=$19+1|0;$9=HEAP32[$0+20>>2];if(($19|0)<($9|0)){continue}break}}if(!HEAPU8[$0+8|0]|!HEAP32[HEAP32[$0+12>>2]+1116>>2]){break label$1}$0=HEAP32[$4+4>>2];if(!HEAP32[$0+1116>>2]){break label$1}if(HEAP32[$0+1108>>2]!=HEAP32[$4+136>>2]){btPersistentManifold__refreshContactPoints_28btTransform_20const__2c_20btTransform_20const__29($0,$4+72|0,$4+8|0);break label$1}btPersistentManifold__refreshContactPoints_28btTransform_20const__2c_20btTransform_20const__29($0,$4+8|0,$4+72|0)}global$0=$3+16|0}function btPersistentManifold__refreshContactPoints_28btTransform_20const__2c_20btTransform_20const__29($0,$1,$2){var $3=0,$4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=0,$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0);label$1:{$3=HEAP32[$0+1116>>2];if(($3|0)<1){break label$1}while(1){$12=HEAPF32[$1+48>>2];$16=HEAPF32[$1+8>>2];$17=HEAPF32[$1>>2];$18=HEAPF32[$1+4>>2];$13=HEAPF32[$1+52>>2];$19=HEAPF32[$1+24>>2];$10=HEAPF32[$1+16>>2];$20=HEAPF32[$1+20>>2];$5=HEAPF32[$1+56>>2];$6=HEAPF32[$1+40>>2];$7=HEAPF32[$1+32>>2];$14=HEAPF32[$1+36>>2];$8=$3+ -1|0;$4=Math_imul($8,276)+$0|0;HEAP32[$4- -64>>2]=0;$21=$5;$5=HEAPF32[$4+4>>2];$22=Math_fround($7*$5);$7=HEAPF32[$4+8>>2];$11=$6;$6=HEAPF32[$4+12>>2];$14=Math_fround($21+Math_fround(Math_fround($22+Math_fround($14*$7))+Math_fround($11*$6)));HEAPF32[$4+60>>2]=$14;$13=Math_fround($13+Math_fround(Math_fround(Math_fround($5*$10)+Math_fround($7*$20))+Math_fround($6*$19)));HEAPF32[$4+56>>2]=$13;$12=Math_fround($12+Math_fround(Math_fround(Math_fround($17*$5)+Math_fround($18*$7))+Math_fround($16*$6)));HEAPF32[$4+52>>2]=$12;$16=HEAPF32[$2+56>>2];$17=HEAPF32[$2+40>>2];$18=HEAPF32[$2+32>>2];$19=HEAPF32[$2+36>>2];$10=HEAPF32[$2+52>>2];$20=HEAPF32[$2+24>>2];$23=HEAPF32[$2+16>>2];$24=HEAPF32[$2+20>>2];$5=HEAPF32[$2+48>>2];$6=HEAPF32[$2+8>>2];$7=HEAPF32[$2>>2];$15=HEAPF32[$2+4>>2];HEAP32[$4+48>>2]=0;$21=$5;$5=HEAPF32[$4+20>>2];$22=Math_fround($7*$5);$7=HEAPF32[$4+24>>2];$11=$6;$6=HEAPF32[$4+28>>2];$15=Math_fround($21+Math_fround(Math_fround($22+Math_fround($15*$7))+Math_fround($11*$6)));HEAPF32[$4+36>>2]=$15;$10=Math_fround($10+Math_fround(Math_fround(Math_fround($5*$23)+Math_fround($7*$24))+Math_fround($6*$20)));HEAPF32[$4+40>>2]=$10;$5=Math_fround($16+Math_fround(Math_fround(Math_fround($5*$18)+Math_fround($7*$19))+Math_fround($6*$17)));HEAPF32[$4+44>>2]=$5;HEAPF32[$4+84>>2]=Math_fround(Math_fround(Math_fround($12-$15)*HEAPF32[$4+68>>2])+Math_fround(Math_fround($13-$10)*HEAPF32[$4+72>>2]))+Math_fround(Math_fround($14-$5)*HEAPF32[$4+76>>2]);HEAP32[$4+148>>2]=HEAP32[$4+148>>2]+1;$4=($3|0)>1;$3=$8;if($4){continue}break}$2=HEAP32[$0+1116>>2];if(($2|0)<1){break label$1}while(1){$1=$2;$2=$1+ -1|0;$3=Math_imul($2,276)+$0|0;$4=$3+4|0;$5=HEAPF32[$3+84>>2];$7=HEAPF32[$0+1120>>2];label$4:{if(!($5<=$7)){$8=HEAP32[$3+112>>2];label$6:{if(!$8){break label$6}$9=HEAP32[148253];if(!$9){break label$6}FUNCTION_TABLE[$9]($8)|0;HEAP32[$3+112>>2]=0}$9=HEAP32[$0+1116>>2];$3=$9+ -1|0;$8=$0;if(($1|0)!=($9|0)){$3=Math_imul($3,276)+$0|0;memcpy($4,$3+4|0,276);HEAP32[$3+276>>2]=0;HEAP32[$3+244>>2]=0;HEAP32[$3+212>>2]=0;HEAP32[$3+148>>2]=0;HEAP32[$3+124>>2]=0;HEAP32[$3+128>>2]=0;HEAP32[$3+112>>2]=0;HEAP32[$3+116>>2]=0;HEAP8[$3+120|0]=0;$3=HEAP32[$0+1116>>2]+ -1|0}HEAP32[$8+1116>>2]=$3;break label$4}$6=Math_fround(HEAPF32[$3+36>>2]-Math_fround(HEAPF32[$3+52>>2]-Math_fround(HEAPF32[$3+68>>2]*$5)));$11=Math_fround($6*$6);$6=Math_fround(HEAPF32[$3+40>>2]-Math_fround(HEAPF32[$3+56>>2]-Math_fround($5*HEAPF32[$3+72>>2])));$5=Math_fround(HEAPF32[$3+44>>2]-Math_fround(HEAPF32[$3+60>>2]-Math_fround($5*HEAPF32[$3+76>>2])));if(!!(Math_fround(Math_fround($11+Math_fround($6*$6))+Math_fround($5*$5))>Math_fround($7*$7))){$8=HEAP32[$3+112>>2];label$10:{if(!$8){break label$10}$9=HEAP32[148253];if(!$9){break label$10}FUNCTION_TABLE[$9]($8)|0;HEAP32[$3+112>>2]=0}$9=HEAP32[$0+1116>>2];$3=$9+ -1|0;$8=$0;if(($1|0)!=($9|0)){$3=Math_imul($3,276)+$0|0;memcpy($4,$3+4|0,276);HEAP32[$3+276>>2]=0;HEAP32[$3+244>>2]=0;HEAP32[$3+212>>2]=0;HEAP32[$3+148>>2]=0;HEAP32[$3+124>>2]=0;HEAP32[$3+128>>2]=0;HEAP32[$3+112>>2]=0;HEAP32[$3+116>>2]=0;HEAP8[$3+120|0]=0;$3=HEAP32[$0+1116>>2]+ -1|0}HEAP32[$8+1116>>2]=$3;break label$4}$3=HEAP32[148254];if(!$3){break label$4}FUNCTION_TABLE[$3]($4,HEAP32[$0+1108>>2],HEAP32[$0+1112>>2])|0}if(($1|0)>1){continue}break}}}function btQuantizedBvh__walkStacklessTreeAgainstRay_28btNodeOverlapCallback__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__2c_20int_2c_20int_29_20const($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=0,$22=Math_fround(0),$23=0,$24=0,$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=0,$32=0,$33=0,$34=0,$35=0,$36=0;$6=global$0-32|0;global$0=$6;label$1:{if(HEAP32[$0+56>>2]<1){break label$1}$10=HEAPF32[$3+8>>2];$9=HEAPF32[$2+8>>2];$13=Math_fround($10-$9);$19=$13;$8=HEAPF32[$3>>2];$14=HEAPF32[$2>>2];$11=Math_fround($8-$14);$15=HEAPF32[$3+4>>2];$16=HEAPF32[$2+4>>2];$12=Math_fround($15-$16);$18=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround($11*$11)+Math_fround($12*$12))+Math_fround($13*$13)))));$13=Math_fround($13*$18);$20=$11;$11=Math_fround($11*$18);$22=$12;$12=Math_fround($12*$18);$22=Math_fround(Math_fround($19*$13)+Math_fround(Math_fround($20*$11)+Math_fround($22*$12)));$18=HEAPF32[$5+8>>2];$25=Math_fround(($9<$10?$10:$9)+$18);$19=HEAPF32[$5+4>>2];$26=Math_fround(($16<$15?$15:$16)+$19);$20=HEAPF32[$5>>2];$27=Math_fround(($14<$8?$8:$14)+$20);$9=$10<$9?$10:$9;$10=HEAPF32[$4+8>>2];$28=Math_fround($9+$10);$9=HEAPF32[$4+4>>2];$29=Math_fround(($15<$16?$15:$16)+$9);$14=$8<$14?$8:$14;$8=HEAPF32[$4>>2];$30=Math_fround($14+$8);$3=HEAP32[$0+96>>2];$14=$13==Math_fround(0)?Math_fround(0xde0b6b000000000):Math_fround(Math_fround(1)/$13);$7=$14>2];HEAP32[$6>>2]=HEAP32[$3>>2];HEAP32[$6+4>>2]=$7;$7=HEAP32[$3+12>>2];HEAP32[$6+8>>2]=HEAP32[$3+8>>2];HEAP32[$6+12>>2]=$7;$7=HEAP32[$3+28>>2];HEAP32[$6+24>>2]=HEAP32[$3+24>>2];HEAP32[$6+28>>2]=$7;$7=HEAP32[$3+20>>2];HEAP32[$6+16>>2]=HEAP32[$3+16>>2];HEAP32[$6+20>>2]=$7;HEAPF32[$6>>2]=HEAPF32[$6>>2]-$20;HEAPF32[$6+4>>2]=HEAPF32[$6+4>>2]-$19;HEAPF32[$6+16>>2]=HEAPF32[$6+16>>2]-$8;HEAPF32[$6+20>>2]=HEAPF32[$6+20>>2]-$9;HEAPF32[$6+8>>2]=HEAPF32[$6+8>>2]-$18;HEAPF32[$6+24>>2]=HEAPF32[$6+24>>2]-$10;$7=0;label$3:{if($30>HEAPF32[$3+16>>2]){break label$3}$7=0;if($27>2]){break label$3}$7=1}$17=0;$17=$25>2]|$28>HEAPF32[$3+24>>2]?$17:$7;label$5:{label$6:{label$7:{label$8:{label$9:{if($26>2]|$29>HEAPF32[$3+20>>2]|$17^1){break label$9}$11=HEAPF32[$2+4>>2];$10=Math_fround($15*Math_fround(HEAPF32[$32>>2]-$11));$8=HEAPF32[$2>>2];$9=Math_fround($16*Math_fround(HEAPF32[$36>>2]-$8));if($10>$9){break label$9}$8=Math_fround($16*Math_fround(HEAPF32[$35>>2]-$8));$11=Math_fround($15*Math_fround(HEAPF32[$34>>2]-$11));if($8>$11){break label$9}$13=HEAPF32[$2+8>>2];$12=Math_fround($14*Math_fround(HEAPF32[$31>>2]-$13));$9=$11<$9?$11:$9;if($12>$9){break label$9}$10=$10>$8?$10:$8;$8=Math_fround($14*Math_fround(HEAPF32[$33>>2]-$13));if($10>$8){break label$9}$24=HEAP32[$3+32>>2];$17=($24|0)==-1;$7=($12>$10?$12:$10)<$22&($8<$9?$8:$9)>Math_fround(0);if(($7|0)!=1|($24|0)!=-1){break label$8}FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+8>>2]]($1,HEAP32[$3+36>>2],HEAP32[$3+40>>2]);break label$7}$17=HEAP32[$3+32>>2]==-1;$7=0}if($17){break label$7}if(!$7){break label$6}}$21=$21+1|0;$3=$3- -64|0;break label$5}$7=HEAP32[$3+32>>2];$21=$7+$21|0;$3=($7<<6)+$3|0}$23=$23+1|0;if(($21|0)>=HEAP32[$0+56>>2]){break label$1}$10=HEAPF32[$4+8>>2];$9=HEAPF32[$4+4>>2];$8=HEAPF32[$4>>2];$18=HEAPF32[$5+8>>2];$19=HEAPF32[$5+4>>2];$20=HEAPF32[$5>>2];continue}}if(HEAP32[147973]<($23|0)){HEAP32[147973]=$23}global$0=$6+32|0}function dmPhysics__OverlapCacheAdd_28dmPhysics__OverlapCache__2c_20dmPhysics__OverlapCacheAddData_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$5=global$0-16|0;global$0=$5;$10=HEAP32[$1+8>>2];$4=HEAP32[$0+4>>2];label$1:{if(!$4){break label$1}$2=HEAP32[HEAP32[$0>>2]+(($10>>>0)%($4>>>0)<<2)>>2];if(($2|0)==-1){break label$1}$3=HEAP32[$0+8>>2];while(1){$2=Math_imul($2,24);$8=$2+$3|0;if(($10|0)==HEAP32[$8>>2]){break label$1}$2=HEAP32[($2+$3|0)+20>>2];if(($2|0)!=-1){continue}break}$8=0}$6=$8?$8+4|0:0;label$3:{label$4:{if(!$6){$7=HEAP32[$1+16>>2];$3=0;break label$4}$11=HEAP32[$0+32>>2];$7=HEAP32[$1+16>>2];label$6:{$3=HEAP32[$6+8>>2];if($3){$9=HEAP32[$6+4>>2];$2=0;while(1){if(HEAP32[$9+($2<<3)>>2]==($7|0)){break label$6}$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}if(($3|0)!=($11|0)){HEAP32[$6+8>>2]=$3+1;$3=HEAP32[$6+4>>2]+($3<<3)|0;HEAP32[$3+4>>2]=1;HEAP32[$3>>2]=$7;$3=0;break label$4}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84410,84418,0);break label$3}$3=$9+($2<<3)|0;HEAP32[$3+4>>2]=HEAP32[$3+4>>2]+1;$3=1}$9=1;label$10:{if(!$4){break label$10}$2=HEAP32[HEAP32[$0>>2]+(($7>>>0)%($4>>>0)<<2)>>2];if(($2|0)==-1){break label$10}$11=HEAP32[$0+8>>2];while(1){$4=$11+Math_imul($2,24)|0;if(HEAP32[$4>>2]!=($7|0)){$2=HEAP32[$4+20>>2];if(($2|0)!=-1){continue}break label$10}break}$12=HEAP32[$0+32>>2];$4=$11+Math_imul($2,24)|0;$13=$4;label$13:{$3=HEAP32[$4+12>>2];if($3){$9=HEAP32[$4+8>>2];$4=0;while(1){if(($10|0)==HEAP32[$9+($4<<3)>>2]){break label$13}$4=$4+1|0;if(($3|0)!=($4|0)){continue}break}}if(($3|0)!=($12|0)){$2=HEAP32[($11+Math_imul($2,24)|0)+8>>2];HEAP32[$13+12>>2]=$3+1;$3=$2+($3<<3)|0;HEAP32[$3+4>>2]=1;HEAP32[$3>>2]=$10;$9=0;$3=0;break label$10}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84410,84418,0);if(!$6){break label$3}$0=HEAP32[$6+8>>2];if(!$0){break label$3}$7=HEAP32[$1+16>>2];$1=HEAP32[$6+4>>2];$2=0;while(1){$3=$1+($2<<3)|0;if(($7|0)!=HEAP32[$3>>2]){$2=$2+1|0;if(($0|0)!=($2|0)){continue}break label$3}break}$0=($1+($0<<3)|0)+ -8|0;$1=HEAP32[$0+4>>2];HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$3+4>>2]=$1;HEAP32[$6+8>>2]=HEAP32[$6+8>>2]+ -1;break label$3}$3=1;$2=$9+($4<<3)|0;HEAP32[$2+4>>2]=HEAP32[$2+4>>2]+1;$9=0}if(!$8){$6=HEAPU16[$1+24>>1];$8=HEAP32[$1+12>>2];$2=(HEAP32[$0+16>>2]-HEAP32[$0+8>>2]|0)/24|0;if(HEAPU32[$0+24>>2]>Math_imul($2,3)>>>2>>>0){$2=$2+16|0;dmHashTable_unsigned_20long_2c_20dmPhysics__OverlapEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($0,Math_imul($2,3)>>>2|0,$2)}HEAP32[$5+8>>2]=0;HEAP32[$5+12>>2]=0;$4=HEAP32[$0+32>>2];$2=dlmalloc($4<<3);HEAP16[$5+12>>1]=$6;HEAP32[$5>>2]=$8;HEAP32[$5+4>>2]=$2;label$21:{if(!$4){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84410,84418,0);break label$21}HEAP32[$5+8>>2]=1;HEAP32[$2+4>>2]=1;HEAP32[$2>>2]=$7}dmHashTable_unsigned_20long_2c_20dmPhysics__OverlapEntry___Put_28unsigned_20long_2c_20dmPhysics__OverlapEntry_20const__29($0,$10,$5)}if($9){$6=HEAPU16[$1+26>>1];$7=HEAP32[$1+8>>2];$10=HEAP32[$1+20>>2];$8=HEAP32[$1+16>>2];$2=(HEAP32[$0+16>>2]-HEAP32[$0+8>>2]|0)/24|0;if(HEAPU32[$0+24>>2]>Math_imul($2,3)>>>2>>>0){$2=$2+16|0;dmHashTable_unsigned_20long_2c_20dmPhysics__OverlapEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($0,Math_imul($2,3)>>>2|0,$2)}HEAP32[$5+8>>2]=0;HEAP32[$5+12>>2]=0;$4=HEAP32[$0+32>>2];$2=dlmalloc($4<<3);HEAP16[$5+12>>1]=$6;HEAP32[$5>>2]=$10;HEAP32[$5+4>>2]=$2;label$25:{if(!$4){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,84410,84418,0);break label$25}HEAP32[$5+8>>2]=1;HEAP32[$2+4>>2]=1;HEAP32[$2>>2]=$7}dmHashTable_unsigned_20long_2c_20dmPhysics__OverlapEntry___Put_28unsigned_20long_2c_20dmPhysics__OverlapEntry_20const__29($0,$8,$5)}if($3){break label$3}$0=HEAP32[$1>>2];if(!$0){break label$3}HEAP32[$5>>2]=HEAP32[$1+12>>2];HEAP32[$5+4>>2]=HEAP32[$1+20>>2];HEAP16[$5+8>>1]=HEAPU16[$1+24>>1];HEAP16[$5+10>>1]=HEAPU16[$1+26>>1];FUNCTION_TABLE[$0]($5,HEAP32[$1+4>>2])}global$0=$5+16|0}function VP8DecodeMB($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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,$29=0,$30=0,$31=0,$32=0;$17=global$0-32|0;global$0=$17;$4=HEAP32[$0+2256>>2];$11=HEAP32[$0+2296>>2];$12=$4+($11<<1)|0;$16=HEAP32[$0+2304>>2];label$1:{label$2:{if(HEAP32[$0+2236>>2]){$2=Math_imul($11,800)+$16|0;if(HEAPU8[$2+797|0]){break label$2}}$5=Math_imul($11,800)+$16|0;$10=HEAPU8[$5+798|0];$2=3;$9=memset($5,0,768);if(!HEAPU8[$9+768|0]){$2=$17;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;$3=$4+ -1|0;$23=$3;$6=HEAPU8[$3|0];$3=$4+($11<<1)|0;$2=GetCoeffs($1,$0+2032|0,$6+HEAPU8[$3+1|0]|0,(($10<<5)+$0|0)+784|0,0,$2);$6=($2|0)>0;HEAP8[$23|0]=$6;HEAP8[$3+1|0]=$6;label$5:{if(($2|0)>=2){FUNCTION_TABLE[HEAP32[283167]]($17,$9);break label$5}$2=Math_imul($11,800)+$16|0;$3=HEAP16[$17>>1]+3>>>3|0;HEAP16[$2+480>>1]=$3;HEAP16[$2+448>>1]=$3;HEAP16[$2+416>>1]=$3;HEAP16[$2+384>>1]=$3;HEAP16[$2+352>>1]=$3;HEAP16[$2+320>>1]=$3;HEAP16[$2+288>>1]=$3;HEAP16[$2+256>>1]=$3;HEAP16[$2+224>>1]=$3;HEAP16[$2+192>>1]=$3;HEAP16[$2+160>>1]=$3;HEAP16[$2+128>>1]=$3;HEAP16[$2+96>>1]=$3;HEAP16[$2+64>>1]=$3;HEAP16[$2+32>>1]=$3;HEAP16[$2>>1]=$3}$3=1;$2=0}$9=HEAPU8[$12|0]&15;$6=(($10<<5)+$0|0)+776|0;$18=$4+ -2|0;$19=HEAPU8[$18|0]&15;$4=(Math_imul($2,68)+$0|0)+1964|0;while(1){$2=$5;$5=GetCoeffs($1,$4,($19&1)+($9&1)|0,$6,$3,$2);$13=HEAPU16[$2>>1];$7=($5|0)>($3|0);$8=$9>>>1|0;$9=GetCoeffs($1,$4,$7+($8&1)|0,$6,$3,$2+32|0);$14=HEAPU16[$2+32>>1];$15=($9|0)>($3|0);$7=($8&126|$7<<7)>>>1|0;$8=GetCoeffs($1,$4,$15+($7&1)|0,$6,$3,$2- -64|0);$24=HEAPU16[$2+64>>1];$20=($8|0)>($3|0);$15=($7|$15<<7)>>>1|0;$7=GetCoeffs($1,$4,$20+($15&1)|0,$6,$3,$2+96|0);$25=$25<<8|(($8|0)>3?12:($8|0)<2?(($24|0)!=0)<<2:8)|((($9|0)>3?3:($9|0)<2?($14|0)!=0:2)|(($5|0)>3?12:($5|0)<2?(($13|0)!=0)<<2:8))<<4|(($7|0)>3?3:($7|0)<2?HEAPU16[$2+96>>1]!=0:2);$5=($7|0)>($3|0);$9=$5<<3|($15|$20<<7)>>>5;$19=$5<<7|($19&254)>>>1;$5=$2+128|0;$21=$21+1|0;if(($21|0)!=4){continue}break}$3=$0+2100|0;$8=HEAPU8[$18|0];$6=HEAPU8[$12|0];$15=($10<<5)+$0|0;$4=$15+792|0;$5=GetCoeffs($1,$3,($8>>>4&1)+($6>>>4&1)|0,$4,0,$5);$24=HEAPU16[$2+128>>1];$10=($5|0)>0;$6=GetCoeffs($1,$3,$10+($6>>>5&1)|0,$4,0,$2+160|0);$20=HEAPU16[$2+160>>1];$10=GetCoeffs($1,$3,$10+($8>>>5&1)|0,$4,0,$2+192|0);$21=HEAPU16[$2+192>>1];$26=($10|0)>0;$27=($6|0)>0;$8=GetCoeffs($1,$3,$26+$27|0,$4,0,$2+224|0);$30=HEAPU16[$2+224>>1];$14=HEAPU8[$18|0];$13=HEAPU8[$12|0];$7=GetCoeffs($1,$3,($14>>>6&1)+($13>>>6&1)|0,$4,0,$2+256|0);$31=HEAPU16[$2+256>>1];$22=($7|0)>0;$13=GetCoeffs($1,$3,$22+($13>>>7|0)|0,$4,0,$2+288|0);$32=HEAPU16[$2+288>>1];$14=GetCoeffs($1,$3,$22+($14>>>7|0)|0,$4,0,$2+320|0);$22=HEAPU16[$2+320>>1];$28=($14|0)>0;$29=($13|0)>0;$3=GetCoeffs($1,$3,$28+$29|0,$4,0,$2+352|0);$4=HEAPU16[$2+352>>1];$23=$12;$2=($8|0)>0;$12=($3|0)>0;HEAP8[$23|0]=($26|$2<<1)<<4|$9|($12<<1|$28)<<6;HEAP8[$18|0]=$27<<4|$19>>>4|$2<<5|$29<<6|$12<<7;$2=Math_imul($11,800)+$16|0;$5=((($6|0)>3?3:($6|0)<2?($20|0)!=0:2)|(($5|0)>3?12:($5|0)<2?(($24|0)!=0)<<2:8))<<4|(($10|0)>3?12:($10|0)<2?(($21|0)!=0)<<2:8)|(($8|0)>3?3:($8|0)<2?($30|0)!=0:2)|(((($13|0)>3?3:($13|0)<2?($32|0)!=0:2)|(($7|0)>3?12:($7|0)<2?(($31|0)!=0)<<2:8))<<4|(($14|0)>3?12:($14|0)<2?(($22|0)!=0)<<2:8)|(($3|0)>3?3:($3|0)<2?($4|0)!=0:2))<<8;HEAP32[$2+792>>2]=$5;HEAP32[$2+788>>2]=$25;HEAP8[$2+796|0]=$5&43690?0:HEAP32[$15+804>>2];$3=($5|$25)!=0;break label$1}HEAP8[$12|0]=0;HEAP8[$4+ -2|0]=0;if(!HEAPU8[$2+768|0]){HEAP8[($4+($11<<1)|0)+1|0]=0;HEAP8[$4+ -1|0]=0}$2=Math_imul($11,800)+$16|0;HEAP32[$2+788>>2]=0;HEAP32[$2+792>>2]=0;HEAP8[$2+796|0]=0}if(HEAP32[$0+2308>>2]>=1){$2=HEAP32[$0+2260>>2]+(HEAP32[$0+2296>>2]<<2)|0;$5=$0;$0=Math_imul($11,800)+$16|0;$0=HEAP32[(($5+(HEAPU8[$0+798|0]<<3)|0)+(HEAPU8[$0+768|0]<<2)|0)+2312>>2];HEAP8[$2|0]=$0;HEAP8[$2+1|0]=$0>>>8;HEAP8[$2+2|0]=$0>>>16;HEAP8[$2+3|0]=$0>>>24;HEAP8[$2+2|0]=HEAPU8[$2+2|0]|$3}global$0=$17+32|0;return!HEAP32[$1+24>>2]}function dmParticle__UpdateEmitterRenderData_28unsigned_20int_2c_20unsigned_20int_2c_20dmParticle__Instance__2c_20dmParticle__Emitter__2c_20dmParticleDDF__Emitter__29($0,$1,$2,$3,$4){var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=0,$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0);$8=HEAPF32[$2+52>>2];$14=HEAPF32[$4+36>>2];$9=HEAPF32[$2+60>>2];$13=HEAPF32[$4+44>>2];$10=HEAPF32[$2+48>>2];$15=HEAPF32[$4+32>>2];$11=HEAPF32[$2+56>>2];$16=HEAPF32[$4+40>>2];$6=HEAPF32[$2+44>>2];$12=Math_fround(HEAPF32[$4+20>>2]*$6);$7=Math_fround(HEAPF32[$4+16>>2]*$6);$5=HEAPF32[$4+24>>2];label$1:{if(HEAP8[$2+82|0]&1){$23=Math_fround(Math_fround($8*$12)+Math_fround($10*$7));$5=Math_fround($5*$6);$17=Math_fround(Math_fround(Math_fround($11*$7)+Math_fround($9*$12))-Math_fround($10*$5));$18=Math_fround(Math_fround(Math_fround($9*$5)+Math_fround($10*$12))-Math_fround($8*$7));$24=Math_fround($11*$5);$12=Math_fround(Math_fround(Math_fround($9*$7)+Math_fround($8*$5))-Math_fround($11*$12));break label$1}$23=Math_fround(Math_fround($10*$7)+Math_fround($8*$12));$18=Math_fround(Math_fround(Math_fround($5*$9)+Math_fround($10*$12))-Math_fround($8*$7));$17=Math_fround(Math_fround(Math_fround($11*$7)+Math_fround($9*$12))-Math_fround($5*$10));$24=Math_fround($5*$11);$12=Math_fround(Math_fround(Math_fround($5*$8)+Math_fround($9*$7))-Math_fround($11*$12))}$25=HEAP32[$2+64>>2];$4=HEAP32[$25>>2];if((HEAP32[$25+4>>2]-$4|0)/18568>>>0<=$1>>>0){__assert_fail(132466,131573,430,131839);abort()}$29=HEAPF32[$2+36>>2];$30=HEAPF32[$2+40>>2];$31=HEAPF32[$2+32>>2];HEAP32[$3+188>>2]=1065353216;$20=Math_fround($6*Math_fround(0));HEAPF32[$3+172>>2]=$20;$7=Math_fround(Math_fround(Math_fround($16*$8)+Math_fround(Math_fround($13*$10)+Math_fround($15*$9)))-Math_fround($14*$11));$26=Math_fround($7+$7);$5=Math_fround(Math_fround(Math_fround($15*$11)+Math_fround(Math_fround($13*$8)+Math_fround($14*$9)))-Math_fround($16*$10));$21=Math_fround($5+$5);$27=Math_fround(Math_fround(1)-Math_fround($7*$26));$28=Math_fround($5*$21);HEAPF32[$3+168>>2]=$6*Math_fround($27-$28);$19=$5;$22=Math_fround(Math_fround(Math_fround($14*$10)+Math_fround(Math_fround($13*$11)+Math_fround($16*$9)))-Math_fround($15*$8));$5=Math_fround($22+$22);$19=Math_fround($19*$5);$14=Math_fround(Math_fround(Math_fround(Math_fround($13*$9)-Math_fround($15*$10))-Math_fround($14*$8))-Math_fround($16*$11));$13=Math_fround($14*$26);HEAPF32[$3+164>>2]=$6*Math_fround($19-$13);$15=Math_fround($7*$5);$16=Math_fround($14*$21);HEAPF32[$3+160>>2]=$6*Math_fround($15+$16);HEAPF32[$3+156>>2]=$20;HEAPF32[$3+152>>2]=$6*Math_fround($19+$13);$13=Math_fround($22*$5);HEAPF32[$3+148>>2]=$6*Math_fround($27-$13);$7=Math_fround($7*$21);$5=Math_fround($14*$5);HEAPF32[$3+144>>2]=$6*Math_fround($7-$5);HEAPF32[$3+140>>2]=$20;HEAPF32[$3+136>>2]=$6*Math_fround($15-$16);HEAPF32[$3+132>>2]=$6*Math_fround($7+$5);HEAPF32[$3+128>>2]=$6*Math_fround(Math_fround(Math_fround(1)-$28)-$13);$6=Math_fround($24+$23);HEAPF32[$3+184>>2]=$30+Math_fround(Math_fround($10*$17)+Math_fround(Math_fround(Math_fround($11*$6)+Math_fround($9*$18))-Math_fround($8*$12)));HEAPF32[$3+180>>2]=$29+Math_fround(Math_fround($11*$12)+Math_fround(Math_fround(Math_fround($9*$17)+Math_fround($8*$6))-Math_fround($10*$18)));HEAPF32[$3+176>>2]=$31+Math_fround(Math_fround($8*$18)+Math_fround(Math_fround(Math_fround($9*$12)+Math_fround($10*$6))-Math_fround($11*$17)));$2=$4+Math_imul($1,18568)|0;HEAP32[$3+192>>2]=HEAP32[$2+18556>>2];HEAP32[$3+196>>2]=HEAP32[$2+18560>>2];HEAP32[$3+200>>2]=HEAP32[$3>>2];$2=HEAP32[$3+64>>2];HEAP32[$3+204>>2]=$2;HEAP32[$3+216>>2]=$1;HEAP32[$3+212>>2]=$0;HEAP32[$3+208>>2]=HEAP32[$3+68>>2]-$2>>5}function b2WeldJoint__SolvePositionConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0);$2=global$0-80|0;global$0=$2;$6=HEAP32[$1+24>>2];$16=$6+Math_imul(HEAP32[$0+120>>2],12)|0;$13=HEAPF32[$16+4>>2];$20=HEAPF32[$16>>2];$6=$6+Math_imul(HEAP32[$0+116>>2],12)|0;$21=HEAPF32[$6+4>>2];$22=HEAPF32[$6>>2];$23=HEAPF32[$6+8>>2];$7=HEAPF32[$0+144>>2];$4=HEAPF32[$0+84>>2];$24=HEAPF32[$16+8>>2];$9=HEAPF32[$0+152>>2];$10=HEAPF32[$0+92>>2];$12=HEAPF32[$0+160>>2];$18=HEAPF32[$0+156>>2];$11=HEAPF32[$0+140>>2];$25=HEAPF32[$0+80>>2];$26=HEAPF32[$0+148>>2];$19=HEAPF32[$0+88>>2];$14=HEAPF32[$0+164>>2];$15=HEAPF32[$0+168>>2];HEAPF32[$2+72>>2]=$14+$15;$3=sinf($24);$5=cosf($24);$8=sinf($23);$17=cosf($23);$11=Math_fround($25-$11);$25=Math_fround($4-$7);$7=Math_fround(Math_fround($17*$11)-Math_fround($8*$25));$26=Math_fround($19-$26);$9=Math_fround($10-$9);$4=Math_fround(Math_fround($5*$26)-Math_fround($3*$9));$10=Math_fround(Math_fround($14*$7)+Math_fround($15*$4));HEAPF32[$2+68>>2]=$10;HEAPF32[$2+60>>2]=$10;$10=Math_fround($18+$12);HEAPF32[$2+56>>2]=Math_fround($10+Math_fround($14*Math_fround($7*$7)))+Math_fround($15*Math_fround($4*$4));$8=Math_fround(Math_fround($8*$11)+Math_fround($17*$25));$11=Math_fround(-$8);$3=Math_fround(Math_fround($3*$26)+Math_fround($5*$9));$5=Math_fround(Math_fround($14*$11)-Math_fround($15*$3));HEAPF32[$2+64>>2]=$5;HEAPF32[$2+48>>2]=$5;$5=Math_fround(Math_fround($14*Math_fround($7*$11))-Math_fround($15*Math_fround($3*$4)));HEAPF32[$2+52>>2]=$5;HEAPF32[$2+40>>2]=Math_fround($10+Math_fround($14*Math_fround($8*$8)))+Math_fround($15*Math_fround($3*$3));HEAPF32[$2+44>>2]=$5;$16=1;label$1:{if(!!(HEAPF32[$0+68>>2]>Math_fround(0))){$5=Math_fround(Math_fround(Math_fround($4+$20)-$22)-$7);HEAPF32[$2+24>>2]=$5;$9=Math_fround(Math_fround(Math_fround($3+$13)-$21)-$8);HEAPF32[$2+28>>2]=$9;b2Mat33__Solve22_28b2Vec2_20const__29_20const($2+8|0,$2+40|0,$2+24|0);$17=$3;$3=HEAPF32[$2+8>>2];$19=$4;$4=HEAPF32[$2+12>>2];$10=Math_fround(Math_fround($17*$3)-Math_fround($19*$4));$7=Math_fround(Math_fround($8*$3)-Math_fround($7*$4));$8=Math_fround(Math_sqrt(Math_fround(Math_fround($5*$5)+Math_fround($9*$9))));$13=Math_fround($13-Math_fround($12*$4));$12=Math_fround($20-Math_fround($12*$3));$3=Math_fround(Math_fround($18*$3)+$22);$4=Math_fround(Math_fround($18*$4)+$21);break label$1}$5=Math_fround(Math_fround($24-$23)-HEAPF32[$0+96>>2]);HEAPF32[$2+32>>2]=$5;$16=($5>Math_fround(0)?$5:Math_fround(-$5))<=Math_fround(.03490658849477768);$5=Math_fround(Math_fround(Math_fround($4+$20)-$22)-$7);HEAPF32[$2+24>>2]=$5;$9=Math_fround(Math_fround(Math_fround($3+$13)-$21)-$8);HEAPF32[$2+28>>2]=$9;b2Mat33__Solve33_28b2Vec3_20const__29_20const($2+8|0,$2+40|0,$2+24|0);$17=$3;$3=HEAPF32[$2+8>>2];$19=$4;$4=HEAPF32[$2+12>>2];$11=HEAPF32[$2+16>>2];$10=Math_fround(Math_fround(Math_fround($17*$3)-Math_fround($19*$4))-$11);$7=Math_fround(Math_fround(Math_fround($8*$3)-Math_fround($7*$4))-$11);$8=Math_fround(Math_sqrt(Math_fround(Math_fround($5*$5)+Math_fround($9*$9))));$13=Math_fround($13-Math_fround($12*$4));$12=Math_fround($20-Math_fround($12*$3));$3=Math_fround(Math_fround($18*$3)+$22);$4=Math_fround(Math_fround($18*$4)+$21)}$6=HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+116>>2],12)|0;HEAPF32[$6+4>>2]=$4;HEAPF32[$6>>2]=$3;$6=HEAP32[$1+24>>2];HEAPF32[($6+Math_imul(HEAP32[$0+116>>2],12)|0)+8>>2]=$23-Math_fround($14*$7);$6=$6+Math_imul(HEAP32[$0+120>>2],12)|0;HEAPF32[$6+4>>2]=$13;HEAPF32[$6>>2]=$12;HEAPF32[(HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+120>>2],12)|0)+8>>2]=$24+Math_fround($15*$10);global$0=$2+80|0;return $8<=Math_fround(.004999999888241291)&$16}function dmVMath__EulerToQuat_28Vectormath__Aos__Vector3_29($0,$1){var $2=0,$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=0,$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0);label$1:{$4=HEAPF32[$1+4>>2];$5=HEAPF32[$1+8>>2];$6=($4!=Math_fround(0))<<1|($5!=Math_fround(0))<<2;$3=HEAPF32[$1>>2];$1=$6|$3!=Math_fround(0);if($1>>>0>4){break label$1}label$2:{switch($1-1|0){default:HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=1065353216;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;return;case 2:break label$1;case 0:case 1:case 3:break label$2}}$10=HEAP32[144610];$12=$10;$4=Math_fround(Math_fround($5+Math_fround($4+$3))*Math_fround(.008726646192371845));$2=+$4*10430.378350470453;label$4:{if(Math_abs($2)<2147483648){$1=~~$2;break label$4}$1=-2147483648}$5=HEAPF32[$12+((($1>>>9|0)+1&127)<<2)>>2];$3=HEAPF32[$10+($1>>>7&508)>>2];HEAP32[$0+8>>2]=0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;$13=$3;$3=Math_fround(Math_fround($1&511)*Math_fround(.001953125));HEAPF32[$0+12>>2]=Math_fround($13*Math_fround(Math_fround(1)-$3))+Math_fround($3*$5);$1=($6<<1)+$0|0;$2=+Math_fround($4+Math_fround(-1.5707963705062866))*10430.378350470453;label$6:{if(Math_abs($2)<2147483648){$0=~~$2;break label$6}$0=-2147483648}$4=Math_fround(Math_fround($0&511)*Math_fround(.001953125));HEAPF32[$1>>2]=Math_fround(Math_fround(Math_fround(1)-$4)*HEAPF32[$10+($0>>>7&508)>>2])+Math_fround($4*HEAPF32[$10+((($0>>>9|0)+1&127)<<2)>>2]);return}$8=Math_fround($5*Math_fround(.008726646192371845));$2=+$8*10430.378350470453;label$8:{if(Math_abs($2)<2147483648){$1=~~$2;break label$8}$1=-2147483648}$5=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$7=Math_fround(Math_fround(1)-$5);$6=HEAP32[144610];$9=HEAPF32[$6+($1>>>7&508)>>2];$11=HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2];$14=Math_fround($4*Math_fround(.008726646192371845));$2=+$14*10430.378350470453;label$10:{if(Math_abs($2)<2147483648){$1=~~$2;break label$10}$1=-2147483648}$4=Math_fround($7*$9);$7=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$7=Math_fround(Math_fround(Math_fround(Math_fround(1)-$7)*HEAPF32[$6+($1>>>7&508)>>2])+Math_fround($7*HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2]));$9=Math_fround($4+Math_fround($5*$11));$11=Math_fround($7*$9);$3=Math_fround($3*Math_fround(.008726646192371845));$2=+$3*10430.378350470453;label$12:{if(Math_abs($2)<2147483648){$1=~~$2;break label$12}$1=-2147483648}$4=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$4=Math_fround(Math_fround(Math_fround(Math_fround(1)-$4)*HEAPF32[$6+($1>>>7&508)>>2])+Math_fround($4*HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2]));$2=+Math_fround($3+Math_fround(-1.5707963705062866))*10430.378350470453;label$14:{if(Math_abs($2)<2147483648){$1=~~$2;break label$14}$1=-2147483648}$5=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$5=Math_fround(Math_fround(Math_fround(Math_fround(1)-$5)*HEAPF32[$6+($1>>>7&508)>>2])+Math_fround($5*HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2]));$2=+Math_fround($8+Math_fround(-1.5707963705062866))*10430.378350470453;label$16:{if(Math_abs($2)<2147483648){$1=~~$2;break label$16}$1=-2147483648}$3=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$8=Math_fround(Math_fround(Math_fround(Math_fround(1)-$3)*HEAPF32[$6+($1>>>7&508)>>2])+Math_fround($3*HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2]));$15=Math_fround($8*$5);$12=$0;$13=Math_fround($11*$4);$2=+Math_fround($14+Math_fround(-1.5707963705062866))*10430.378350470453;label$18:{if(Math_abs($2)<2147483648){$1=~~$2;break label$18}$1=-2147483648}$3=Math_fround(Math_fround($1&511)*Math_fround(.001953125));$3=Math_fround(Math_fround(Math_fround(Math_fround(1)-$3)*HEAPF32[$6+($1>>>7&508)>>2])+Math_fround($3*HEAPF32[$6+((($1>>>9|0)+1&127)<<2)>>2]));HEAPF32[$12+12>>2]=$13-Math_fround($3*$15);HEAPF32[$0+8>>2]=Math_fround(Math_fround($7*$8)*$4)-Math_fround($9*Math_fround($5*$3));HEAPF32[$0+4>>2]=Math_fround(Math_fround($3*$9)*$4)+Math_fround($7*$15);HEAPF32[$0>>2]=Math_fround(Math_fround($3*$8)*$4)+Math_fround($11*$5)}function dmGameSystem__CompSpriteGetProperty_28dmGameObject__ComponentGetPropertyParams_20const__2c_20dmGameObject__PropertyDesc__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=Math_fround(0),$6=0,$7=0,$8=0;$7=global$0-48|0;global$0=$7;$2=HEAP32[$0+4>>2];$3=HEAP32[$2+16>>2];$4=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$2+20>>2]-$3>>3>>>0>$4>>>0){$6=HEAP32[$2>>2];$4=HEAP32[$3+($4<<3)>>2];if(HEAP32[$2+4>>2]-$6>>10>>>0>$4>>>0){label$3:{label$4:{$2=HEAP32[$0+16>>2];$3=HEAP32[$0+20>>2];if(!(($2|0)==HEAP32[146610]&($3|0)==HEAP32[146611]|($2|0)==HEAP32[146612]&($3|0)==HEAP32[146613]|($2|0)==HEAP32[146614]&($3|0)==HEAP32[146615])){if(($2|0)!=HEAP32[146616]|($3|0)!=HEAP32[146617]){break label$4}}$0=dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector3_20const__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$3,($6+($4<<10)|0)+48|0,586440);break label$3}label$6:{if(!(($2|0)==HEAP32[146624]&($3|0)==HEAP32[146625]|(($2|0)==HEAP32[146620]&($3|0)==HEAP32[146621]|($2|0)==HEAP32[146622]&($3|0)==HEAP32[146623]))){if(($2|0)!=HEAP32[146626]|($3|0)!=HEAP32[146627]){break label$6}}$0=dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector3_20const__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$3,($6+($4<<10)|0)- -64|0,586480);break label$3}if(($2|0)==HEAP32[146630]&($3|0)==HEAP32[146631]){$0=$6+($4<<10)|0;$5=HEAPF32[$0+1e3>>2];$0=HEAPU16[$0+1010>>1];$5=$0&2?Math_fround(Math_fround(1)-$5):$5;label$9:{if(!($0&1)){break label$9}$5=Math_fround($5+$5);if(!($5>Math_fround(1))){break label$9}$5=Math_fround(Math_fround(2)-$5)}$0=$7+8|0;HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$5;$0=$7;$3=HEAP32[$0+44>>2];$2=$1- -64|0;HEAP32[$2>>2]=HEAP32[$0+40>>2];HEAP32[$2+4>>2]=$3;$2=HEAP32[$0+36>>2];HEAP32[$1+56>>2]=HEAP32[$0+32>>2];HEAP32[$1+60>>2]=$2;$2=HEAP32[$0+28>>2];HEAP32[$1+48>>2]=HEAP32[$0+24>>2];HEAP32[$1+52>>2]=$2;$2=HEAP32[$0+20>>2];HEAP32[$1+40>>2]=HEAP32[$0+16>>2];HEAP32[$1+44>>2]=$2;$2=HEAP32[$0+12>>2];HEAP32[$1+32>>2]=HEAP32[$0+8>>2];HEAP32[$1+36>>2]=$2;$0=0;break label$3}if(($2|0)==HEAP32[146632]&($3|0)==HEAP32[146633]){$5=HEAPF32[($6+($4<<10)|0)+1004>>2];$0=$7+8|0;HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$5;$0=$7;$3=HEAP32[$0+44>>2];$2=$1- -64|0;HEAP32[$2>>2]=HEAP32[$0+40>>2];HEAP32[$2+4>>2]=$3;$2=HEAP32[$0+36>>2];HEAP32[$1+56>>2]=HEAP32[$0+32>>2];HEAP32[$1+60>>2]=$2;$2=HEAP32[$0+28>>2];HEAP32[$1+48>>2]=HEAP32[$0+24>>2];HEAP32[$1+52>>2]=$2;$2=HEAP32[$0+20>>2];HEAP32[$1+40>>2]=HEAP32[$0+16>>2];HEAP32[$1+44>>2]=$2;$2=HEAP32[$0+12>>2];HEAP32[$1+32>>2]=HEAP32[$0+8>>2];HEAP32[$1+36>>2]=$2;$0=0;break label$3}if(($2|0)==HEAP32[146590]&($3|0)==HEAP32[146591]){$2=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$6+($4<<10)|0;$0=HEAP32[$3+980>>2];if(!$0){$0=HEAP32[HEAP32[$3+188>>2]+16>>2]}$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($2,$0,$1);break label$3}if(($2|0)==HEAP32[146588]&($3|0)==HEAP32[146589]){$2=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$6+($4<<10)|0;$0=HEAP32[$3+976>>2];if(!$0){$0=HEAP32[HEAP32[$3+188>>2]+8>>2]}$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($2,$0,$1);break label$3}if(($2|0)==HEAP32[146592]&($3|0)==HEAP32[146593]){$2=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$6+($4<<10)|0;$0=HEAP32[$3+976>>2];if(!$0){$0=HEAP32[HEAP32[$3+188>>2]+8>>2]}$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($2,HEAP32[$0+48>>2],$1);break label$3}$8=$6+($4<<10)|0;$0=HEAP32[$8+980>>2];if(!$0){$0=HEAP32[HEAP32[$8+188>>2]+16>>2]}$0=dmGameSystem__GetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__2c_20bool_2c_20bool_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmRender__Constant___29_2c_20void__29($0,$2,$3,$1,0,487,$6+($4<<10)|0)}global$0=$7+48|0;return $0|0}}__assert_fail(52907,52459,430,52059);abort()}function b2RevoluteJoint__SolvePositionConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=0,$29=Math_fround(0);$3=HEAP32[$1+24>>2];$14=$3+Math_imul(HEAP32[$0+128>>2],12)|0;$28=$14;$3=$3+Math_imul(HEAP32[$0+132>>2],12)|0;$11=HEAPF32[$3+8>>2];$23=HEAPF32[$3+4>>2];$24=HEAPF32[$3>>2];$12=HEAPF32[$14+8>>2];$25=HEAPF32[$14+4>>2];$9=HEAPF32[$14>>2];$13=HEAPF32[$0+176>>2];$15=HEAPF32[$0+180>>2];label$1:{if(!HEAPU8[$0+112|0]|Math_fround($13+$15)==Math_fround(0)){break label$1}$3=HEAP32[$0+224>>2];if(!$3){break label$1}$3=$3+ -1|0;label$3:{if($3>>>0>2){break label$3}$2=Math_fround(Math_fround($11-$12)-HEAPF32[$0+116>>2]);label$5:{switch($3-1|0){case 1:$2=Math_fround($2-HEAPF32[$0+120>>2]);$2=Math_fround(Math_max($2Math_fround(0)?$2:Math_fround(-$2);$2=Math_fround($2*Math_fround(-HEAPF32[$0+220>>2]));break label$3;default:$4=Math_fround($2-HEAPF32[$0+120>>2]);$2=Math_fround($4+Math_fround(.03490658849477768));$2=Math_fround(Math_fround(Math_max($2>2]));$19=Math_fround(-$4);break label$3;case 0:break label$5}}$19=Math_fround($2-HEAPF32[$0+124>>2]);$2=Math_fround($19+Math_fround(-.03490658849477768));$2=Math_fround(Math_fround(Math_max($2>2]))}$11=Math_fround($11+Math_fround($15*$2));$12=Math_fround($12-Math_fround($13*$2))}$20=HEAPF32[$0+164>>2];$16=HEAPF32[$0+80>>2];$26=sinf($11);$5=HEAPF32[$0+160>>2];$6=HEAPF32[$0+76>>2];$27=cosf($11);$17=HEAPF32[$0+156>>2];$21=HEAPF32[$0+72>>2];$7=sinf($12);$4=HEAPF32[$0+152>>2];$2=HEAPF32[$0+68>>2];$8=cosf($12);$10=Math_fround($6-$5);$5=Math_fround($16-$20);$22=Math_fround(Math_fround($27*$10)-Math_fround($26*$5));$20=Math_fround($15*$22);$6=Math_fround($2-$4);$4=Math_fround($21-$17);$18=Math_fround(Math_fround($8*$6)-Math_fround($7*$4));$16=HEAPF32[$0+168>>2];$17=HEAPF32[$0+172>>2];$2=Math_fround($16+$17);$21=Math_fround(Math_fround(Math_fround($18*Math_fround($13*$18))+$2)+Math_fround($22*$20));$29=$9;$9=Math_fround(Math_fround(Math_fround($24+$22)-$9)-$18);$7=Math_fround(Math_fround($7*$6)+Math_fround($8*$4));$8=Math_fround(Math_fround($26*$10)+Math_fround($27*$5));$10=Math_fround(Math_fround($7*Math_fround($18*Math_fround(-$13)))-Math_fround($8*$20));$5=Math_fround(Math_fround(Math_fround($23+$8)-$25)-$7);$4=Math_fround(Math_fround(Math_fround($7*Math_fround($13*$7))+$2)+Math_fround($8*Math_fround($15*$8)));$2=Math_fround(Math_fround($4*$21)-Math_fround($10*$10));$2=Math_fround(-($2!=Math_fround(0)?Math_fround(Math_fround(1)/$2):$2));$6=Math_fround(Math_fround(Math_fround($21*$9)-Math_fround($10*$5))*$2);HEAPF32[$14>>2]=$29-Math_fround($16*$6);$2=Math_fround(Math_fround(Math_fround($4*$5)-Math_fround($10*$9))*$2);HEAPF32[$28+4>>2]=$25-Math_fround($16*$2);$3=HEAP32[$1+24>>2];HEAPF32[($3+Math_imul(HEAP32[$0+128>>2],12)|0)+8>>2]=$12-Math_fround($13*Math_fround(Math_fround($18*$2)-Math_fround($7*$6)));$3=$3+Math_imul(HEAP32[$0+132>>2],12)|0;HEAPF32[$3+4>>2]=$23+Math_fround($17*$2);HEAPF32[$3>>2]=$24+Math_fround($17*$6);HEAPF32[(HEAP32[$1+24>>2]+Math_imul(HEAP32[$0+132>>2],12)|0)+8>>2]=$11+Math_fround($15*Math_fround(Math_fround($22*$2)-Math_fround($8*$6)));return($19<=Math_fround(.03490658849477768)?Math_fround(Math_sqrt(Math_fround(Math_fround($9*$9)+Math_fround($5*$5))))<=Math_fround(.004999999888241291):0)|0}function btTriangleShape__isInside_28btVector3_20const__2c_20float_29_20const($0,$1,$2){$0=$0|0;$1=$1|0;$2=Math_fround($2);var $3=Math_fround(0),$4=Math_fround(0),$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=0;$5=global$0-32|0;global$0=$5;$13=HEAPF32[$0+52>>2];$8=Math_fround(HEAPF32[$0+68>>2]-$13);$4=HEAPF32[$0+56>>2];$7=Math_fround(HEAPF32[$0+88>>2]-$4);$3=Math_fround(HEAPF32[$0+72>>2]-$4);$9=Math_fround(HEAPF32[$0+84>>2]-$13);$6=Math_fround(Math_fround($8*$7)-Math_fround($3*$9));$11=$6;$14=Math_fround($6*$6);$12=$3;$3=HEAPF32[$0+60>>2];$6=Math_fround(HEAPF32[$0+92>>2]-$3);$10=Math_fround(HEAPF32[$0+76>>2]-$3);$7=Math_fround(Math_fround($12*$6)-Math_fround($10*$7));$8=Math_fround(Math_fround($10*$9)-Math_fround($8*$6));$9=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($14+Math_fround(Math_fround($7*$7)+Math_fround($8*$8))))));$6=Math_fround($11*$9);$7=Math_fround($7*$9);$8=Math_fround($8*$9);$4=Math_fround(Math_fround(Math_fround(HEAPF32[$1+8>>2]*$6)+Math_fround(Math_fround(HEAPF32[$1>>2]*$7)+Math_fround(HEAPF32[$1+4>>2]*$8)))-Math_fround(Math_fround($3*$6)+Math_fround(Math_fround($13*$7)+Math_fround($4*$8))));$13=Math_fround(-$2);label$1:{if($4>=$13^1|$4<=$2^1){break label$1}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+92>>2]]($0,0,$5+16|0,$5);$9=HEAPF32[$5+16>>2];$4=Math_fround(HEAPF32[$5>>2]-$9);$10=HEAPF32[$5+20>>2];$3=Math_fround(HEAPF32[$5+4>>2]-$10);$2=Math_fround(Math_fround($8*$4)-Math_fround($7*$3));$11=$2;$14=Math_fround($2*$2);$2=Math_fround($6*$3);$12=HEAPF32[$5+24>>2];$3=Math_fround(HEAPF32[$5+8>>2]-$12);$2=Math_fround($2-Math_fround($8*$3));$4=Math_fround(Math_fround($7*$3)-Math_fround($6*$4));$3=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($14+Math_fround(Math_fround($2*$2)+Math_fround($4*$4))))));$11=Math_fround($11*$3);$2=Math_fround($2*$3);$4=Math_fround($4*$3);if(Math_fround(Math_fround(Math_fround(HEAPF32[$1+8>>2]*$11)+Math_fround(Math_fround(HEAPF32[$1>>2]*$2)+Math_fround(HEAPF32[$1+4>>2]*$4)))-Math_fround(Math_fround($12*$11)+Math_fround(Math_fround($9*$2)+Math_fround($10*$4))))<$13){break label$1}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+92>>2]]($0,1,$5+16|0,$5);$9=HEAPF32[$5+16>>2];$4=Math_fround(HEAPF32[$5>>2]-$9);$10=HEAPF32[$5+20>>2];$3=Math_fround(HEAPF32[$5+4>>2]-$10);$2=Math_fround(Math_fround($8*$4)-Math_fround($7*$3));$11=$2;$14=Math_fround($2*$2);$2=Math_fround($6*$3);$12=HEAPF32[$5+24>>2];$3=Math_fround(HEAPF32[$5+8>>2]-$12);$2=Math_fround($2-Math_fround($8*$3));$4=Math_fround(Math_fround($7*$3)-Math_fround($6*$4));$3=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($14+Math_fround(Math_fround($2*$2)+Math_fround($4*$4))))));$11=Math_fround($11*$3);$2=Math_fround($2*$3);$4=Math_fround($4*$3);if(!!(Math_fround(Math_fround(Math_fround(HEAPF32[$1+8>>2]*$11)+Math_fround(Math_fround(HEAPF32[$1>>2]*$2)+Math_fround(HEAPF32[$1+4>>2]*$4)))-Math_fround(Math_fround($12*$11)+Math_fround(Math_fround($9*$2)+Math_fround($10*$4))))<$13)){break label$1}FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+92>>2]]($0,2,$5+16|0,$5);$4=HEAPF32[$5+16>>2];$3=Math_fround(HEAPF32[$5>>2]-$4);$9=HEAPF32[$5+20>>2];$10=Math_fround(HEAPF32[$5+4>>2]-$9);$2=Math_fround(Math_fround($8*$3)-Math_fround($7*$10));$11=$2;$12=Math_fround($2*$2);$14=Math_fround($6*$10);$2=$8;$8=HEAPF32[$5+24>>2];$10=Math_fround(HEAPF32[$5+8>>2]-$8);$2=Math_fround($14-Math_fround($2*$10));$6=Math_fround(Math_fround($7*$10)-Math_fround($6*$3));$7=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($12+Math_fround(Math_fround($2*$2)+Math_fround($6*$6))))));$3=Math_fround($11*$7);$2=Math_fround($2*$7);$6=Math_fround($6*$7);if(Math_fround(Math_fround(Math_fround(HEAPF32[$1+8>>2]*$3)+Math_fround(Math_fround(HEAPF32[$1>>2]*$2)+Math_fround(HEAPF32[$1+4>>2]*$6)))-Math_fround(Math_fround($8*$3)+Math_fround(Math_fround($4*$2)+Math_fround($9*$6))))<$13){break label$1}$15=1}global$0=$5+32|0;return $15|0}function dmGameSystem__CompCollisionObjectUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0;$3=global$0-112|0;global$0=$3;label$1:{$4=HEAP32[$0+8>>2];$2=0;label$2:{if(!$4){break label$2}$2=HEAP32[$0>>2];$7=HEAP32[$0+12>>2];HEAP32[$3+44>>2]=$4;HEAP8[$3+36|0]=1;HEAP32[$3+32>>2]=$7;HEAP32[$3+40>>2]=$2;label$3:{if(HEAPU8[$7+13|0]){$5=HEAP32[$7>>2];$2=HEAP32[$5+64>>2];$5=HEAP32[$5+68>>2];break label$3}$5=HEAP32[$7>>2];$2=HEAP32[$5+56>>2];$5=HEAP32[$5+60>>2]}dmMessage__Dispatch_28unsigned_20long_20long_2c_20void_20_28__29_28dmMessage__Message__2c_20void__29_2c_20void__29($2,$5,445,$3+32|0);$11=HEAPU8[$3+36|0];label$5:{if(!HEAPU8[561908]){break label$5}$2=HEAP32[$4+140>>2];$5=HEAP32[$4+144>>2]-$2|0;if(!$5){break label$5}$5=$5>>2;$12=$5>>>0>1?$5:1;$5=0;while(1){$2=HEAP32[($5<<2)+$2>>2];$6=HEAP32[$2>>2];$8=HEAP32[$6+136>>2];if(!(!$8|!(HEAP8[$8+44|0]&1))){$9=HEAP32[$6+164>>2];$10=dmPhysics__CollisionObjectData__CollisionObjectData_28_29($3+32|0);dmGameSystem__SetCollisionObjectData_28dmGameSystem__CollisionWorld__2c_20dmGameSystem__CollisionComponent__2c_20dmGameSystem__CollisionObjectResource__2c_20dmPhysicsDDF__CollisionObjectDesc__2c_20bool_2c_20dmPhysics__CollisionObjectData__29($4,$2,HEAP32[$2>>2],$9,1,$10);HEAP16[$2+20>>1]=HEAPU16[$3+62>>1];dmPhysics__DeleteCollisionObject2D_28dmPhysics__World2D__2c_20void__29(HEAP32[$4+128>>2],HEAP32[$2+8>>2]);$6=HEAP32[$6+136>>2];$9=HEAP32[$6+12>>2];$6=HEAP32[$6+8>>2];if(($9|0)==($6|0)){break label$1}$6=dmPhysics__NewCollisionObject2D_28dmPhysics__World2D__2c_20dmPhysics__CollisionObjectData_20const__2c_20void___2c_20Vectormath__Aos__Vector3__2c_20Vectormath__Aos__Quat__2c_20unsigned_20int_29(HEAP32[$4+128>>2],$10,$6,0,0,$9-$6>>2);HEAP32[$2+8>>2]=$6;if(HEAP8[HEAP32[$2>>2]+168|0]&1){dmPhysics__ClearGridShapeHulls_28void__29($6)}dmGameSystem__SetupTileGrid_28dmGameSystem__CollisionWorld__2c_20dmGameSystem__CollisionComponent__29($4,$2);HEAP8[$8+44|0]=HEAPU8[$8+44|0]&254}$5=$5+1|0;if(($12|0)==($5|0)){break label$5}$2=HEAP32[$4+140>>2];if(HEAP32[$4+144>>2]-$2>>2>>>0>$5>>>0){continue}break}__assert_fail(38858,38775,430,38452);abort()}HEAP32[$3+104>>2]=0;HEAP32[$3+100>>2]=$7;HEAP32[$3+96>>2]=$4;HEAP32[$3+88>>2]=0;HEAP32[$3+84>>2]=$7;HEAP32[$3+80>>2]=$4;$2=$3+32|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+40>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;$0=HEAP32[HEAP32[$0+4>>2]>>2];HEAP32[$2+40>>2]=$4;HEAP32[$2+36>>2]=446;HEAP32[$2+32>>2]=$4;HEAP32[$2+28>>2]=447;HEAP32[$2+12>>2]=448;HEAP32[$2+4>>2]=449;HEAP32[$2>>2]=$0;HEAP32[$2+24>>2]=$4;HEAP32[$2+20>>2]=450;HEAP32[$2+16>>2]=$3+80;HEAP32[$2+8>>2]=$3+96;HEAP32[$4+132>>2]=$0;HEAP32[146024]=0;label$9:{if(HEAPU8[$7+13|0]){dmPhysics__StepWorld3D_28dmPhysics__World3D__2c_20dmPhysics__StepWorldContext_20const__29(HEAP32[$4+128>>2],$2);break label$9}dmPhysics__StepWorld2D_28dmPhysics__World2D__2c_20dmPhysics__StepWorldContext_20const__29(HEAP32[$4+128>>2],$2)}HEAP8[$1|0]=HEAP32[146024]>0;$0=HEAP32[$7+4>>2];label$11:{if(HEAPU32[$3+104>>2]>=$0>>>0){if(HEAPU8[584100]){break label$11}HEAP32[$3+16>>2]=$0;HEAP32[$3+20>>2]=HEAP32[131809];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,37438,37733,$3+16|0);$0=1}else{$0=0}HEAP8[584100]=$0}$0=HEAP32[$7+8>>2];label$14:{if(HEAPU32[$3+88>>2]>=$0>>>0){if(HEAPU8[584101]){break label$14}HEAP32[$3>>2]=$0;HEAP32[$3+4>>2]=HEAP32[131810];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,37438,37832,$3);$0=1}else{$0=0}HEAP8[584101]=$0}label$17:{if(HEAPU8[$7+13|0]){HEAP32[HEAP32[$4+128>>2]+60>>2]=HEAPU8[$7+12|0]?7631:0;break label$17}HEAP32[(HEAP32[$4+128>>2]+103084|0)+4>>2]=HEAPU8[$7+12|0]?11:0}$2=$11?0:-1e3}global$0=$3+112|0;return $2|0}__assert_fail(39018,38775,372,39029);abort()}function dmGameSystem__CompSpineModelCreate_28dmGameObject__ComponentCreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$2=global$0-112|0;global$0=$2;$4=HEAP32[$0+64>>2];$1=HEAP32[$4+8>>2];label$1:{label$2:{if(($1|0)==HEAP32[$4+4>>2]){HEAP32[$2>>2]=$1-HEAP32[$4>>2]>>2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,49964,$2);$5=-1e3;break label$2}$6=dmObjectPool_dmGameSystem__SpineModelComponent____Alloc_28_29($4);$1=operator_20new_28unsigned_20long_29(992);HEAP32[$1+144>>2]=0;HEAP32[$1+148>>2]=0;HEAP32[$1+168>>2]=0;HEAP32[$1+172>>2]=0;HEAP32[$1+160>>2]=0;HEAP32[$1+164>>2]=0;HEAP32[$1+152>>2]=0;HEAP32[$1+156>>2]=0;dmGameSystem__CompRenderConstants__CompRenderConstants_28_29($1+176|0);$1=memset($1,0,992);$3=HEAP32[$4+16>>2];if(HEAP32[$4+20>>2]-$3>>3>>>0<=$6>>>0){break label$1}$5=HEAP32[$4>>2];$3=HEAP32[$3+($6<<3)>>2];if(HEAP32[$4+4>>2]-$5>>2>>>0<=$3>>>0){break label$1}HEAP32[$5+($3<<2)>>2]=$1;HEAP32[$1>>2]=HEAP32[$0>>2];$3=HEAP32[$0+40>>2];$5=HEAP32[$0+44>>2];$7=HEAP32[$0+24>>2];$8=HEAP32[$0+32>>2];$9=HEAP32[$0+36>>2];$10=HEAP32[$0+16>>2];$11=HEAP32[$0+20>>2];HEAP32[$1+56>>2]=1065353216;HEAP32[$1+48>>2]=1065353216;HEAP32[$1+52>>2]=1065353216;HEAP32[$1+40>>2]=$7;HEAP32[$1+32>>2]=$10;HEAP32[$1+36>>2]=$11;HEAP32[$1+24>>2]=$3;HEAP32[$1+28>>2]=$5;HEAP32[$1+16>>2]=$8;HEAP32[$1+20>>2]=$9;HEAP32[$1+128>>2]=HEAP32[$0+60>>2];HEAP8[$1+144|0]=0;HEAP8[$1+145|0]=0;HEAP8[$1+146|0]=0;HEAP8[$1+147|0]=0;HEAP8[$1+148|0]=0;HEAP8[$1+149|0]=0;HEAP8[$1+150|0]=0;HEAP8[$1+151|0]=0;HEAP8[$1+168|0]=0;HEAP8[$1+169|0]=0;HEAP8[$1+170|0]=0;HEAP8[$1+171|0]=0;HEAP8[$1+172|0]=0;HEAP8[$1+173|0]=0;HEAP8[$1+174|0]=0;HEAP8[$1+175|0]=0;HEAP8[$1+160|0]=0;HEAP8[$1+161|0]=0;HEAP8[$1+162|0]=0;HEAP8[$1+163|0]=0;HEAP8[$1+164|0]=0;HEAP8[$1+165|0]=0;HEAP8[$1+166|0]=0;HEAP8[$1+167|0]=0;HEAP8[$1+152|0]=0;HEAP8[$1+153|0]=0;HEAP8[$1+154|0]=0;HEAP8[$1+155|0]=0;HEAP8[$1+156|0]=0;HEAP8[$1+157|0]=0;HEAP8[$1+158|0]=0;HEAP8[$1+159|0]=0;HEAP16[$1+980>>1]=HEAPU16[$0+76>>1];HEAP32[$1+68>>2]=0;HEAP32[$1+72>>2]=0;HEAP32[$1+64>>2]=1065353216;HEAP32[$1+76>>2]=0;HEAP32[$1+80>>2]=0;HEAP32[$1+88>>2]=0;HEAP32[$1+92>>2]=0;HEAP32[$1+84>>2]=1065353216;HEAP32[$1+96>>2]=0;HEAP32[$1+100>>2]=0;HEAP32[$1+108>>2]=0;HEAP32[$1+112>>2]=0;HEAP32[$1+104>>2]=1065353216;HEAP32[$1+116>>2]=0;HEAP32[$1+120>>2]=0;HEAP32[$1+124>>2]=1065353216;HEAP8[$1+982|0]=HEAPU8[$1+982|0]&252|1;label$4:{label$5:{if(!dmGameSystem__CreateGOBones_28dmGameSystem__SpineModelWorld__2c_20dmGameSystem__SpineModelComponent__29($4,$1)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50028,0);break label$5}$5=0;memset($2+32|0,0,80);$3=HEAP32[$4+108>>2];HEAP32[$2+100>>2]=0;HEAP32[$2+96>>2]=$1;HEAP32[$2+92>>2]=478;HEAP32[$2+88>>2]=0;HEAP32[$2+84>>2]=$1;HEAP32[$2+80>>2]=479;HEAP32[$2+28>>2]=$1+132;HEAP32[$2+24>>2]=$3;$7=HEAP32[$1+128>>2];$3=HEAP32[$7+4>>2];HEAP32[$2+56>>2]=$3;HEAP32[$2+60>>2]=HEAP32[HEAP32[$3+20>>2]>>2];HEAP32[$2+64>>2]=HEAP32[HEAP32[$3+24>>2]>>2];$8=HEAP32[HEAP32[$3+28>>2]>>2];HEAP32[$2+76>>2]=$3+52;HEAP32[$2+72>>2]=$3+36;HEAP32[$2+68>>2]=$8;HEAP32[$2+40>>2]=dmHashString64(HEAP32[HEAP32[$7>>2]+8>>2]);HEAP32[$2+44>>2]=i64toi32_i32$HIGH_BITS;HEAP32[$2+48>>2]=dmHashString64(HEAP32[HEAP32[HEAP32[$1+128>>2]>>2]+4>>2]);HEAP32[$2+52>>2]=i64toi32_i32$HIGH_BITS;$3=dmRig__InstanceCreate_28dmRig__InstanceCreateParams_20const__29($2+24|0);if(!$3){break label$4}HEAP32[$2+16>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50157,$2+16|0);if(($3|0)!=2){break label$5}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50216,0)}dmGameSystem__DestroyComponent_28dmGameSystem__SpineModelWorld__2c_20unsigned_20int_29($4,$6);$5=-1e3;break label$2}HEAP8[$1+982|0]=HEAPU8[$1+982|0]|8;HEAP32[HEAP32[$0+72>>2]>>2]=$6}global$0=$2+112|0;return $5|0}__assert_fail(50664,50554,430,50675);abort()}function dmResource__DoLoadResourceLocked_28dmResource__SResourceFactory__2c_20char_20const__2c_20char_20const__2c_20unsigned_20int__2c_20dmArray_char___29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0;$5=global$0-3136|0;global$0=$5;label$1:{if(HEAP8[582800]&1){break label$1}if(!__cxa_guard_acquire(582800)){break label$1}if(HEAPU8[1130703]){$6=dmProfile__AllocateScope_28char_20const__29(28339)}else{$6=-1}HEAP32[145699]=$6;__cxa_guard_release(582800)}label$3:{if(HEAP8[582808]&1){break label$3}if(!__cxa_guard_acquire(582808)){break label$3}if(HEAPU8[1130703]){$6=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(29124,12)}else{$6=0}HEAP32[145701]=$6;__cxa_guard_release(582808)}$6=HEAP32[145699];label$5:{if(($6|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($5+3120|0,$6,29124,HEAP32[145701]);break label$5}HEAP32[$5+3120>>2]=0}label$7:{label$8:{label$9:{label$10:{$6=HEAP32[$0+7408>>2];label$11:{if($6){if(!dmResource__LoadFromManifest_28dmResource__Manifest_20const__2c_20char_20const__2c_20unsigned_20int__2c_20dmArray_char___29($6,$2,$3,$4)){break label$11}}HEAP32[$5+36>>2]=$1;HEAP32[$5+32>>2]=$0+5316;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($5+2096|0,1024,26253,$5+32|0);$6=0;$7=$5+2096|0;$8=$7;label$13:{while(1){label$15:{$1=HEAPU8[$8|0];label$16:{label$17:{if(($1|0)!=47){if($1){break label$17}HEAP8[$7|0]=0;if(!HEAP32[$0+7364>>2]){break label$13}HEAP32[$3>>2]=0;HEAP32[$0+7392>>2]=-1;HEAP32[$0+7396>>2]=0;HEAP32[$0+7372>>2]=$4;HEAP32[$0+7400>>2]=-1;HEAP32[$0+7404>>2]=0;dmURI__Encode_28char_20const__2c_20char__2c_20unsigned_20int_2c_20unsigned_20int__29($5+2096|0,$5+48|0);$4=dmHttpClient__Get_28dmHttpClient__Client__2c_20char_20const__29(HEAP32[$0+7364>>2],$5+48|0);if(!$4){break label$15}$1=-3;$2=HEAP32[$0+7400>>2];if(($2|0)==404){break label$7}if(($2|0)==304|($4|0)!=1){break label$15}HEAP32[$5+16>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,26260,29137,$5+16|0);break label$8}if(($6&255)==47){break label$16}}HEAP8[$7|0]=$1;$7=$7+1|0}$8=$8+1|0;$6=$1;continue}break}$1=HEAP32[$0+7404>>2];if($1){break label$7}label$19:{if(HEAP32[$0+7400>>2]==304){break label$19}$1=HEAP32[$0+7392>>2];if(($1|0)==-1){break label$19}$2=HEAP32[$0+7396>>2];if(($2|0)==($1|0)){break label$19}HEAP32[$5+8>>2]=$2;HEAP32[$5+4>>2]=$1;HEAP32[$5>>2]=$5+2096;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,26260,29169,$5)}HEAP32[$3>>2]=HEAP32[$0+7396>>2];break label$11}$0=HEAP32[$0+7412>>2];if($0){$1=dmResource__LoadFromManifest_28dmResource__Manifest_20const__2c_20char_20const__2c_20unsigned_20int__2c_20dmArray_char___29($0,$2,$3,$4);break label$7}$1=-3;if(dmSys__ResolveMountFileName_28char__2c_20unsigned_20long_2c_20char_20const__29($5+48|0,$5+2096|0)){break label$7}$0=dmSys__ResourceSize_28char_20const__2c_20unsigned_20int__29($5+48|0,$5+44|0)+2|0;if($0>>>0>2){break label$8}label$21:{switch($0-1|0){case 1:break label$21;case 0:break label$8;default:break label$7}}$8=HEAP32[$4>>2];$7=HEAP32[$5+44>>2];if(HEAP32[$4+8>>2]-$8>>>0<$7>>>0){if(HEAP8[$4+12|0]&1){break label$10}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($7,1,$4,$4+8|0,$4+4|0);$8=HEAP32[$4>>2];$7=HEAP32[$5+44>>2]}HEAP32[$4+4>>2]=$8;$0=dmSys__LoadResource_28char_20const__2c_20void__2c_20unsigned_20int_2c_20unsigned_20int__29($5+48|0,$8,$7,$5+44|0)+2|0;if($0>>>0>2){break label$8}label$23:{switch($0-1|0){case 1:break label$23;case 0:break label$8;default:break label$7}}$1=HEAP32[$4>>2];$0=HEAP32[$5+44>>2];if(HEAP32[$4+8>>2]-$1>>>0<$0>>>0){break label$9}HEAP32[$4+4>>2]=$0+$1;HEAP32[$3>>2]=$0}$1=0;break label$7}__assert_fail(29450,28946,444,29525);abort()}__assert_fail(29537,28946,457,29556);abort()}$1=-9}if(HEAP32[$5+3120>>2]){dmProfile__ProfileScope__EndScope_28_29($5+3120|0)}global$0=$5+3136|0;return $1}function singlestep($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$2=HEAP32[$0+16>>2];$3=HEAPU8[$2+21|0];$1=0;label$1:{if($3>>>0>4){break label$1}label$2:{switch($3-1|0){default:markroot($0);return 0;case 0:if(HEAP32[$2+36>>2]){return propagatemark($2)}$1=HEAP32[$2+140>>2];$3=$2+120|0;label$8:{if(($1|0)==($3|0)){break label$8}while(1){label$10:{if(HEAPU8[$1+5|0]&7){break label$10}$4=HEAP32[$1+8>>2];if(HEAP32[$4+8>>2]<4){break label$10}$4=HEAP32[$4>>2];if(!(HEAPU8[$4+5|0]&3)){break label$10}reallymarkobject($2,$4)}$1=HEAP32[$1+20>>2];if(($3|0)!=($1|0)){continue}break}if(!HEAP32[$2+36>>2]){break label$8}while(1){propagatemark($2);if(HEAP32[$2+36>>2]){continue}break}}$1=HEAP32[$2+44>>2];HEAP32[$2+44>>2]=0;HEAP32[$2+36>>2]=$1;if(HEAPU8[$0+5|0]&3){reallymarkobject($2,$0)}markmt($2);if(HEAP32[$2+36>>2]){while(1){propagatemark($2);if(HEAP32[$2+36>>2]){continue}break}}$1=HEAP32[$2+40>>2];HEAP32[$2+40>>2]=0;HEAP32[$2+36>>2]=$1;if($1){while(1){propagatemark($2);if(HEAP32[$2+36>>2]){continue}break}}$7=HEAP32[$0+16>>2];$3=HEAP32[$7+112>>2];$1=HEAP32[$3>>2];if($1){while(1){$4=HEAPU8[$1+5|0];label$19:{if(!($4&3?!($4&8):0)){$3=$1;break label$19}label$21:{$6=$1;$5=HEAP32[$1+8>>2];if(!(!$5|HEAPU8[$5+6|0]&4)){if(luaT_gettm($5,2,HEAP32[HEAP32[$0+16>>2]+196>>2])){break label$21}$4=HEAPU8[$1+5|0]}HEAP8[$6+5|0]=$4|8;$3=$1;break label$19}HEAP8[$1+5|0]=HEAPU8[$1+5|0]|8;$4=HEAP32[$1+16>>2];HEAP32[$3>>2]=HEAP32[$1>>2];$8=($4+$8|0)+32|0;$4=HEAP32[$7+48>>2];label$23:{if(!$4){HEAP32[$1>>2]=$1;break label$23}HEAP32[$1>>2]=HEAP32[$4>>2];HEAP32[HEAP32[$7+48>>2]>>2]=$1}HEAP32[$7+48>>2]=$1}$1=HEAP32[$3>>2];if($1){continue}break}}$1=HEAP32[$2+48>>2];if($1){while(1){$1=HEAP32[$1>>2];HEAP8[$1+5|0]=HEAPU8[$2+20|0]&3|HEAPU8[$1+5|0]&248;reallymarkobject($2,$1);if(HEAP32[$2+48>>2]!=($1|0)){continue}break}}$7=0;if(HEAP32[$2+36>>2]){while(1){$7=propagatemark($2)+$7|0;if(HEAP32[$2+36>>2]){continue}break}}$3=HEAP32[$2+44>>2];if($3){while(1){$1=HEAP32[$3+28>>2];if(!(!$1|!(HEAPU8[$3+5|0]&16))){while(1){$1=$1+ -1|0;$4=HEAP32[$3+12>>2]+($1<<4)|0;$5=HEAP32[$4+8>>2];label$33:{if(($5|0)<4){break label$33}$6=HEAP32[$4>>2];$0=HEAPU8[$6+5|0];if(($5|0)==4){HEAP8[$6+5|0]=$0&252;break label$33}if(!($0&8)|($5|0)!=7?!($0&3):0){break label$33}HEAP32[$4+8>>2]=0}if($1){continue}break}}$0=-1<>2]+($1<<5)|0;$4=HEAP32[$0+8>>2];label$37:{if(!$4){break label$37}$6=HEAP32[$0+24>>2];label$38:{label$39:{if(($6|0)<4){break label$39}$9=HEAP32[$0+16>>2];$5=HEAPU8[$9+5|0];if(($6|0)==4){HEAP8[$9+5|0]=$5&252;$4=HEAP32[$0+8>>2];break label$39}if($5&3){break label$38}}if(($4|0)<4){break label$37}$6=HEAP32[$0>>2];$5=HEAPU8[$6+5|0];if(($4|0)==4){HEAP8[$6+5|0]=$5&252;break label$37}if($5&3){break label$38}if(!($5&8)|($4|0)!=7){break label$37}}HEAP32[$0+8>>2]=0;if(HEAP32[$0+24>>2]<4){break label$37}HEAP32[$0+24>>2]=11}$0=$1+ -1|0;if($1){continue}break}$3=HEAP32[$3+24>>2];if($3){continue}break}}HEAP32[$2+24>>2]=0;HEAP8[$2+21|0]=2;HEAP32[$2+32>>2]=$2+28;HEAP8[$2+20|0]=HEAPU8[$2+20|0]^3;HEAP32[$2+72>>2]=HEAP32[$2+68>>2]-($7+$8|0);return 0;case 1:$1=HEAP32[$2+24>>2];HEAP32[$2+24>>2]=$1+1;$3=HEAP32[$2+68>>2];sweeplist($0,HEAP32[$2>>2]+($1<<2)|0,-3);if(HEAP32[$2+24>>2]>=HEAP32[$2+8>>2]){HEAP8[$2+21|0]=3}HEAP32[$2+72>>2]=HEAP32[$2+72>>2]+(HEAP32[$2+68>>2]-$3|0);return 10;case 2:$4=HEAP32[$2+68>>2];$1=sweeplist($0,HEAP32[$2+32>>2],40);HEAP32[$2+32>>2]=$1;if(!HEAP32[$1>>2]){$1=HEAP32[$0+16>>2];$3=HEAP32[$1+8>>2];$7=($3|0)/4|0;if(!(($3|0)<65|HEAPU32[$1+4>>2]>=$7>>>0)){luaS_resize($0,$3>>>1|0)}$3=HEAP32[$1+60>>2];if($3>>>0>=65){$6=$0;$0=$3>>>1|0;$3=luaM_realloc_($6,HEAP32[$1+52>>2],$3,$0);HEAP32[$1+60>>2]=$0;HEAP32[$1+52>>2]=$3}HEAP8[$2+21|0]=4}HEAP32[$2+72>>2]=HEAP32[$2+72>>2]+(HEAP32[$2+68>>2]-$4|0);return 400;case 3:break label$2}}if(HEAP32[$2+48>>2]){GCTM($0);$0=HEAP32[$2+72>>2];$1=100;if($0>>>0<101){break label$1}HEAP32[$2+72>>2]=$0+ -100;return 100}HEAP32[$2+76>>2]=0;HEAP8[$2+21|0]=0;$1=0}return $1}function unsigned_20int_20std____2____sort5_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$13=unsigned_20int_20std____2____sort4_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$1,$2,$3,$5);$6=HEAP32[$5>>2];$8=HEAP32[$6+208>>2];$9=HEAP32[$3>>2];$14=HEAP32[$6+200>>2];$10=HEAP32[HEAP32[$6+16>>2]+8>>2];$11=HEAP32[($10+(HEAP32[$4>>2]<<3)|0)+4>>2];$12=HEAP32[$6+204>>2];$6=HEAP32[$14+(($11>>>0)%($12>>>0)<<2)>>2];$7=0;label$1:{if(($6|0)==-1){break label$1}label$2:{while(1){$7=Math_imul($6,12);$6=$8+$7|0;if(($11|0)==HEAP32[$6>>2]){break label$2}$6=HEAP32[($7+$8|0)+8>>2];if(($6|0)!=-1){continue}break}$6=0}$7=$6?$6+4|0:0}$9=HEAP32[($10+($9<<3)|0)+4>>2];$6=HEAP32[$14+(($9>>>0)%($12>>>0)<<2)>>2];if(HEAP32[$8+Math_imul($6,12)>>2]!=($9|0)){while(1){$6=HEAP32[($8+Math_imul($6,12)|0)+8>>2];if(($9|0)!=HEAP32[$8+Math_imul($6,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$7>>2],HEAP32[($8+Math_imul($6,12)|0)+4>>2])|0)<=-1){$7=HEAP32[$3>>2];HEAP32[$3>>2]=HEAP32[$4>>2];HEAP32[$4>>2]=$7;$6=HEAP32[$5>>2];$7=HEAP32[$6+208>>2];$8=HEAP32[$2>>2];$12=HEAP32[$6+200>>2];$9=HEAP32[HEAP32[$6+16>>2]+8>>2];$10=HEAP32[($9+(HEAP32[$3>>2]<<3)|0)+4>>2];$11=HEAP32[$6+204>>2];$6=HEAP32[$12+(($10>>>0)%($11>>>0)<<2)>>2];$4=0;label$7:{if(($6|0)==-1){break label$7}label$8:{while(1){$4=Math_imul($6,12);$6=$4+$7|0;if(($10|0)==HEAP32[$6>>2]){break label$8}$6=HEAP32[($4+$7|0)+8>>2];if(($6|0)!=-1){continue}break}$6=0}$4=$6?$6+4|0:0}$8=HEAP32[($9+($8<<3)|0)+4>>2];$6=HEAP32[$12+(($8>>>0)%($11>>>0)<<2)>>2];if(HEAP32[$7+Math_imul($6,12)>>2]!=($8|0)){while(1){$6=HEAP32[($7+Math_imul($6,12)|0)+8>>2];if(($8|0)!=HEAP32[$7+Math_imul($6,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$4>>2],HEAP32[($7+Math_imul($6,12)|0)+4>>2])|0)>-1){return $13+1|0}$4=HEAP32[$2>>2];HEAP32[$2>>2]=HEAP32[$3>>2];HEAP32[$3>>2]=$4;$7=HEAP32[$5>>2];$4=HEAP32[$7+208>>2];$8=HEAP32[$1>>2];$12=HEAP32[$7+200>>2];$9=HEAP32[HEAP32[$7+16>>2]+8>>2];$10=HEAP32[($9+(HEAP32[$2>>2]<<3)|0)+4>>2];$11=HEAP32[$7+204>>2];$6=HEAP32[$12+(($10>>>0)%($11>>>0)<<2)>>2];$3=0;label$13:{if(($6|0)==-1){break label$13}label$14:{while(1){$3=Math_imul($6,12);$6=$3+$4|0;if(($10|0)==HEAP32[$6>>2]){break label$14}$6=HEAP32[($3+$4|0)+8>>2];if(($6|0)!=-1){continue}break}$6=0}$3=$6?$6+4|0:0}$7=HEAP32[($9+($8<<3)|0)+4>>2];$6=HEAP32[$12+(($7>>>0)%($11>>>0)<<2)>>2];if(HEAP32[$4+Math_imul($6,12)>>2]!=($7|0)){while(1){$6=HEAP32[($4+Math_imul($6,12)|0)+8>>2];if(($7|0)!=HEAP32[$4+Math_imul($6,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$3>>2],HEAP32[($4+Math_imul($6,12)|0)+4>>2])|0)>-1){return $13+2|0}$3=HEAP32[$1>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$2>>2]=$3;$4=HEAP32[$5>>2];$3=HEAP32[$4+208>>2];$5=HEAP32[$0>>2];$10=HEAP32[$4+200>>2];$7=HEAP32[HEAP32[$4+16>>2]+8>>2];$8=HEAP32[($7+(HEAP32[$1>>2]<<3)|0)+4>>2];$9=HEAP32[$4+204>>2];$6=HEAP32[$10+(($8>>>0)%($9>>>0)<<2)>>2];$2=0;label$19:{if(($6|0)==-1){break label$19}label$20:{while(1){$2=Math_imul($6,12);$6=$2+$3|0;if(($8|0)==HEAP32[$6>>2]){break label$20}$6=HEAP32[($2+$3|0)+8>>2];if(($6|0)!=-1){continue}break}$6=0}$2=$6?$6+4|0:0}$4=HEAP32[($7+($5<<3)|0)+4>>2];$6=HEAP32[$10+(($4>>>0)%($9>>>0)<<2)>>2];if(HEAP32[$3+Math_imul($6,12)>>2]!=($4|0)){while(1){$6=HEAP32[($3+Math_imul($6,12)|0)+8>>2];if(($4|0)!=HEAP32[$3+Math_imul($6,12)>>2]){continue}break}}if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$2>>2],HEAP32[($3+Math_imul($6,12)|0)+4>>2])|0)>-1){return $13+3|0}$2=HEAP32[$0>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$1>>2]=$2;$13=$13+4|0}return $13}function gjkepa2_impl__EPA__newface_28gjkepa2_impl__GJK__sSV__2c_20gjkepa2_impl__GJK__sSV__2c_20gjkepa2_impl__GJK__sSV__2c_20bool_29($0,$1,$2,$3,$4){var $5=0,$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0);$5=HEAP32[$0+9800>>2];if($5){$8=HEAP32[$5+52>>2];if($8){HEAP32[$8+48>>2]=HEAP32[$5+48>>2]}$8=HEAP32[$5+48>>2];if($8){HEAP32[$8+52>>2]=HEAP32[$5+52>>2]}if(HEAP32[$0+9800>>2]==($5|0)){HEAP32[$0+9800>>2]=HEAP32[$5+52>>2]}$8=$0+9804|0;HEAP32[$8>>2]=HEAP32[$8>>2]+ -1;HEAP32[$5+48>>2]=0;HEAP32[$5+52>>2]=HEAP32[$0+9792>>2];$8=HEAP32[$0+9792>>2];if($8){HEAP32[$8+48>>2]=$5}HEAP32[$0+9792>>2]=$5;$8=$0+9796|0;HEAP32[$8>>2]=HEAP32[$8>>2]+1;HEAP32[$5+32>>2]=$3;HEAP32[$5+28>>2]=$2;HEAP32[$5+24>>2]=$1;HEAP8[$5+59|0]=0;$16=HEAPF32[$2+24>>2];$7=HEAPF32[$3+24>>2];$10=HEAPF32[$1+24>>2];$11=HEAPF32[$3+20>>2];$9=HEAPF32[$1+20>>2];$12=HEAPF32[$2+20>>2];$13=HEAPF32[$2+16>>2];$14=HEAPF32[$3+16>>2];$6=HEAPF32[$1+16>>2];HEAP32[$5+12>>2]=0;$13=Math_fround($13-$6);$11=Math_fround($11-$9);$12=Math_fround($12-$9);$6=Math_fround($14-$6);$9=Math_fround(Math_fround($13*$11)-Math_fround($12*$6));HEAPF32[$5+8>>2]=$9;$16=Math_fround($16-$10);$15=Math_fround($16*$6);$6=Math_fround($7-$10);$10=Math_fround($15-Math_fround($13*$6));HEAPF32[$5+4>>2]=$10;$6=Math_fround(Math_fround($12*$6)-Math_fround($16*$11));HEAPF32[$5>>2]=$6;$7=HEAPF32[$1+24>>2];$11=HEAPF32[$2+24>>2];$12=Math_fround($7-$11);$16=Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround($6*$6)+Math_fround($10*$10))+Math_fround($9*$9))));$8=$16>Math_fround(9999999747378752e-20);$13=HEAPF32[$1+20>>2];$14=HEAPF32[$2+20>>2];$17=Math_fround($13-$14);$18=HEAPF32[$1+16>>2];$15=HEAPF32[$2+16>>2];$19=Math_fround($18-$15);$19=Math_fround(Math_fround($7*Math_fround(Math_fround($6*$17)-Math_fround($10*$19)))+Math_fround(Math_fround($18*Math_fround(Math_fround($10*$12)-Math_fround($9*$17)))+Math_fround($13*Math_fround(Math_fround($9*$19)-Math_fround($6*$12)))));$12=HEAPF32[$3+20>>2];$20=Math_fround($14-$12);$17=HEAPF32[$3+16>>2];$21=Math_fround($15-$17);$22=Math_fround($11*Math_fround(Math_fround($6*$20)-Math_fround($10*$21)));$23=$15;$15=$11;$11=HEAPF32[$3+24>>2];$15=Math_fround($15-$11);$14=Math_fround($22+Math_fround(Math_fround($23*Math_fround(Math_fround($10*$15)-Math_fround($9*$20)))+Math_fround($14*Math_fround(Math_fround($9*$21)-Math_fround($6*$15)))));$14=$19<$14?$19:$14;$13=Math_fround($12-$13);$18=Math_fround($17-$18);$7=Math_fround($11-$7);$7=Math_fround(Math_fround($11*Math_fround(Math_fround($6*$13)-Math_fround($10*$18)))+Math_fround(Math_fround($17*Math_fround(Math_fround($10*$7)-Math_fround($9*$13)))+Math_fround($12*Math_fround(Math_fround($9*$18)-Math_fround($6*$7)))));$7=Math_fround(($14<$7?$14:$7)/($8?$16:Math_fround(1)));HEAPF32[$5+20>>2]=$7>=Math_fround(-.009999999776482582)?Math_fround(0):$7;$2=2;label$6:{if(!$8){break label$6}$11=HEAPF32[$1+24>>2];$12=HEAPF32[$1+16>>2];$13=HEAPF32[$1+20>>2];$7=Math_fround(Math_fround(1)/$16);HEAPF32[$5+8>>2]=$9*$7;HEAPF32[$5+4>>2]=$10*$7;HEAPF32[$5>>2]=$6*$7;$9=Math_fround(Math_fround(Math_fround(Math_fround($6*$12)+Math_fround($10*$13))+Math_fround($9*$11))/$16);HEAPF32[$5+16>>2]=$9;if($9>=Math_fround(-9999999747378752e-21)){return $5}$2=3;if(!$4){break label$6}return $5}HEAP32[$0>>2]=$2;$1=HEAP32[$5+52>>2];if($1){HEAP32[$1+48>>2]=HEAP32[$5+48>>2]}$1=HEAP32[$5+48>>2];if($1){HEAP32[$1+52>>2]=HEAP32[$5+52>>2]}if(HEAP32[$0+9792>>2]==($5|0)){HEAP32[$0+9792>>2]=HEAP32[$5+52>>2]}HEAP32[$0+9796>>2]=HEAP32[$0+9796>>2]+ -1;HEAP32[$5+48>>2]=0;HEAP32[$5+52>>2]=HEAP32[$0+9800>>2];$1=HEAP32[$0+9800>>2];if($1){HEAP32[$1+48>>2]=$5}HEAP32[$0+9800>>2]=$5;HEAP32[$0+9804>>2]=HEAP32[$0+9804>>2]+1;return 0}HEAP32[$0>>2]=5;return 0}function dmGameSystem__CompTileGridRender_28dmGameObject__ComponentsRenderParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=Math_fround(0),$12=0,$13=0,$14=0,$15=0,$16=0,$17=Math_fround(0),$18=Math_fround(0),$19=0,$20=0,$21=0,$22=0,$23=0,$24=0,$25=0,$26=0,$27=0,$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0),$36=Math_fround(0),$37=Math_fround(0),$38=Math_fround(0),$39=Math_fround(0);$8=HEAP32[$0+4>>2];$12=HEAP32[$8+4>>2];label$1:{label$2:{$2=HEAP32[$8+8>>2]-$12|0;label$3:{if(!$2){break label$3}$5=$2>>2;$9=HEAP32[$0+8>>2];while(1){$2=HEAP32[$12+($4<<2)>>2];label$5:{if((HEAPU8[$2+946|0]&3)!=3|!HEAPU16[$2+944>>1]){break label$5}$6=HEAP32[$2+124>>2];$1=HEAP32[$2+128>>2]-$6|0;if(!$1){break label$5}$0=0;while(1){$3=HEAP8[$0+$6|0]&1?Math_imul(HEAPU16[$2+940>>1],HEAPU16[$2+942>>1])+$3|0:$3;$0=$0+1|0;if(($1|0)!=($0|0)){continue}break}}$4=$4+1|0;if(($5|0)!=($4|0)){continue}break}$20=$5>>>0>1?$5:1;$15=HEAP32[$9>>2];$9=dmRender__RenderListAlloc_28dmRender__RenderContext__2c_20unsigned_20int_29($15,$3);$21=dmRender__RenderListMakeDispatch_28dmRender__RenderContext__2c_20void_20_28__29_28dmRender__RenderListDispatchParams_20const__29_2c_20void__29($15,488,$8)<<6;$0=$9;while(1){$2=HEAP32[$8+4>>2];if(HEAP32[$8+8>>2]-$2>>2>>>0<=$10>>>0){break label$1}$1=HEAP32[$2+($10<<2)>>2];label$9:{if((HEAPU8[$1+946|0]&3)!=3|!HEAPU16[$1+944>>1]){break label$9}if(dmGameSystem__AreRenderConstantsUpdated_28dmGameSystem__CompRenderConstants__29($1+144|0)){dmGameSystem__ReHash_28dmGameSystem__TileGridComponent__29($1)}$2=HEAP32[$1+936>>2];$4=HEAP32[$1+932>>2];if(!$4){$4=HEAP32[$2>>2]}$16=HEAP32[$2+4>>2];$19=HEAP32[$16+8>>2];if(!$19){break label$9}$2=HEAP32[$4+64>>2];$22=HEAP32[$2+24>>2];$23=HEAP32[$2+20>>2];$24=$10&65535;$7=0;while(1){$2=HEAP32[$1+124>>2];if(HEAP32[$1+128>>2]-$2>>>0<=$7>>>0){break label$1}label$13:{if(!(HEAP8[$2+$7|0]&1)){break label$13}if(HEAPU32[$16+8>>2]<=$7>>>0){break label$2}if(!HEAPU16[$1+942>>1]){break label$13}$25=HEAP32[$16+4>>2]+($7<<5)|0;$26=$7<<16|$24;$13=0;$14=0;$2=0;$4=HEAPU16[$1+940>>1];$3=$4;while(1){label$15:{if(!($3&65535)){$3=0;break label$15}$12=$14<<16;$27=$26;$17=Math_fround(Math_imul($14,$22)>>>0);$6=0;$5=0;while(1){$3=HEAP32[$1+108>>2];if(HEAP32[$1+112>>2]-$3>>>0>$13>>>0){if(HEAPU8[$3+$13|0]&2){$28=HEAPF32[$1+80>>2];$29=HEAPF32[$1+64>>2];$30=HEAPF32[$1+32>>2];$31=HEAPF32[$1+48>>2];$32=HEAPF32[$1+84>>2];$33=HEAPF32[$1+68>>2];$34=HEAPF32[$1+36>>2];$35=HEAPF32[$1+52>>2];$11=HEAPF32[$1+88>>2];$36=HEAPF32[$1+72>>2];$18=HEAPF32[$25+4>>2];$37=HEAPF32[$1+40>>2];$38=HEAPF32[$1+56>>2];$4=$0;HEAP32[$0+32>>2]=$27;HEAP32[$0+36>>2]=$6|$12;$39=$11;$11=Math_fround(Math_imul($6,$23)>>>0);HEAPF32[$0+8>>2]=$39+Math_fround(Math_fround(Math_fround($37*$11)+Math_fround($38*$17))+Math_fround($18*$36));HEAPF32[$0+4>>2]=$32+Math_fround(Math_fround(Math_fround($34*$11)+Math_fround($35*$17))+Math_fround($18*$33));HEAPF32[$0>>2]=$28+Math_fround(Math_fround(Math_fround($30*$11)+Math_fround($31*$17))+Math_fround($18*$29));$3=HEAP32[$1+928>>2];if(!$3){$3=HEAP32[HEAP32[$1+936>>2]+24>>2]}HEAP32[$4+24>>2]=HEAP32[$3+80>>2];HEAP32[$0+20>>2]=HEAP32[$1+140>>2];HEAP16[$0+40>>1]=HEAPU16[$0+40>>1]&49152|$21|16;$4=HEAPU16[$1+940>>1];$0=$0+48|0}$13=$13+1|0;$3=$6+1|0;if($3>>>0<1){$5=$5+1|0}$6=$3;$3=$4;if(!$5&$6>>>0<($3&65535)>>>0|$5>>>0<0){continue}break label$15}break}break label$1}$5=$14+1|0;if($5>>>0<1){$2=$2+1|0}$14=$5;if(!$2&$5>>>0>1]|$2>>>0<0){continue}break}}$7=$7+1|0;if(($19|0)!=($7|0)){continue}break}}$10=$10+1|0;if(($20|0)!=($10|0)){continue}break}if(($0|0)==($9|0)){break label$3}dmRender__RenderListSubmit_28dmRender__RenderContext__2c_20dmRender__RenderListEntry__2c_20dmRender__RenderListEntry__29($15,$9,$0)}return 0}__assert_fail(54105,54117,168,54142);abort()}__assert_fail(54153,53995,430,54142);abort()}function dmGameObject__CreatePropertyContainerFromDDF_28dmPropertiesDDF__PropertyDeclarations_20const__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$4=global$0-48|0;global$0=$4;HEAP32[$4+8>>2]=HEAP32[$0+4>>2];HEAP32[$4+12>>2]=HEAP32[$0+12>>2];$1=HEAP32[$0+20>>2];HEAP32[$4+20>>2]=0;HEAP32[$4+24>>2]=0;HEAP32[$4+16>>2]=$1;HEAP32[$4+28>>2]=HEAP32[$0+28>>2];HEAP32[$4+32>>2]=HEAP32[$0+36>>2];HEAP32[$4+36>>2]=HEAP32[$0+44>>2];HEAP32[$4+40>>2]=HEAP32[$0+52>>2];label$1:{label$2:{label$3:{label$5:{if($1){$2=HEAP32[$0+16>>2];$3=HEAP32[$0+72>>2];while(1){if(($1|0)==($5|0)){break label$5}$6=(strlen(HEAP32[(HEAP32[($2+($5<<5)|0)+16>>2]<<2)+$3>>2])+$6|0)+1|0;HEAP32[$4+20>>2]=$6;$5=$5+1|0;if(($1|0)!=($5|0)){continue}break}}$5=dmGameObject__CreatePropertyContainerBuilder_28dmGameObject__PropertyContainerParameters_20const__29($4+8|0);if(HEAP32[$0+4>>2]){$1=0;while(1){$2=HEAP32[$0>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+60>>2]<=$3>>>0){break label$1}dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],0,HEAP32[$0+56>>2]+($3<<2)|0);$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+28>>2]){$1=0;while(1){$2=HEAP32[$0+24>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+60>>2]<=$3>>>0){break label$1}dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],3,HEAP32[$0+56>>2]+($3<<2)|0);$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+36>>2]){$1=0;while(1){$2=HEAP32[$0+32>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+60>>2]<=$3>>>0){break label$1}dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],4,HEAP32[$0+56>>2]+($3<<2)|0);$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+44>>2]){$1=0;while(1){$2=HEAP32[$0+40>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+60>>2]<=$3>>>0){break label$1}dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],5,HEAP32[$0+56>>2]+($3<<2)|0);$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+52>>2]){$1=0;while(1){$2=HEAP32[$0+48>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+60>>2]<=$3>>>0){break label$1}dmGameObject__PushBool_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20bool_29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],HEAPF32[HEAP32[$0+56>>2]+($3<<2)>>2]!=Math_fround(0));$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+12>>2]){$1=0;while(1){$2=HEAP32[$0+8>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+68>>2]<=$3>>>0){break label$3}$6=HEAP32[$2+8>>2];$7=HEAP32[$2+12>>2];$2=HEAP32[$0+64>>2]+($3<<3)|0;dmGameObject__PushHash_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_29($5,$6,$7,HEAP32[$2>>2],HEAP32[$2+4>>2]);$1=$1+1|0;if($1>>>0>2]){continue}break}}if(HEAP32[$0+20>>2]){$1=0;while(1){$2=HEAP32[$0+16>>2]+($1<<5)|0;$3=HEAP32[$2+16>>2];if(HEAPU32[$0+76>>2]<=$3>>>0){break label$2}dmGameObject__PushURLString_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20char_20const__29($5,HEAP32[$2+8>>2],HEAP32[$2+12>>2],HEAP32[HEAP32[$0+72>>2]+($3<<2)>>2]);$1=$1+1|0;if($1>>>0>2]){continue}break}}$0=dmGameObject__CreatePropertyContainer_28dmGameObject__PropertyContainerBuilder__29($5);global$0=$4+48|0;return $0}__assert_fail(17847,17859,50,17901);abort()}__assert_fail(17847,17859,98,17901);abort()}__assert_fail(17847,17859,106,17901);abort()}__assert_fail(17847,17859,90,17901);abort()}function dmGameSystem__CompModelCreate_28dmGameObject__ComponentCreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$3=global$0-112|0;global$0=$3;label$1:{$5=HEAP32[$0+64>>2];$2=HEAP32[$5+8>>2];label$2:{if(($2|0)==HEAP32[$5+4>>2]){HEAP32[$3>>2]=$2-HEAP32[$5>>2]>>2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,45895,$3);$0=-1e3;break label$2}$8=dmObjectPool_dmGameSystem__ModelComponent____Alloc_28_29($5);$2=operator_20new_28unsigned_20long_29(1024);HEAP32[$2+144>>2]=0;HEAP32[$2+148>>2]=0;HEAP32[$2+168>>2]=0;HEAP32[$2+172>>2]=0;HEAP32[$2+160>>2]=0;HEAP32[$2+164>>2]=0;HEAP32[$2+152>>2]=0;HEAP32[$2+156>>2]=0;dmGameSystem__CompRenderConstants__CompRenderConstants_28_29($2+176|0);$1=memset($2,0,1024);$2=HEAP32[$5+16>>2];if(HEAP32[$5+20>>2]-$2>>3>>>0<=$8>>>0){break label$1}$6=HEAP32[$5>>2];$2=HEAP32[$2+($8<<3)>>2];if(HEAP32[$5+4>>2]-$6>>2>>>0<=$2>>>0){break label$1}HEAP32[$6+($2<<2)>>2]=$1;HEAP32[$1>>2]=HEAP32[$0>>2];$2=HEAP32[$0+40>>2];$6=HEAP32[$0+44>>2];$7=HEAP32[$0+24>>2];$4=HEAP32[$0+32>>2];$9=HEAP32[$0+36>>2];$10=HEAP32[$0+16>>2];$11=HEAP32[$0+20>>2];HEAP32[$1+56>>2]=1065353216;HEAP32[$1+48>>2]=1065353216;HEAP32[$1+52>>2]=1065353216;HEAP32[$1+40>>2]=$7;HEAP32[$1+32>>2]=$10;HEAP32[$1+36>>2]=$11;HEAP32[$1+24>>2]=$2;HEAP32[$1+28>>2]=$6;HEAP32[$1+16>>2]=$4;HEAP32[$1+20>>2]=$9;$7=HEAP32[$0+60>>2];HEAP32[$1+128>>2]=$7;HEAP8[$1+144|0]=0;HEAP8[$1+145|0]=0;HEAP8[$1+146|0]=0;HEAP8[$1+147|0]=0;HEAP8[$1+148|0]=0;HEAP8[$1+149|0]=0;HEAP8[$1+150|0]=0;HEAP8[$1+151|0]=0;HEAP8[$1+168|0]=0;HEAP8[$1+169|0]=0;HEAP8[$1+170|0]=0;HEAP8[$1+171|0]=0;HEAP8[$1+172|0]=0;HEAP8[$1+173|0]=0;HEAP8[$1+174|0]=0;HEAP8[$1+175|0]=0;HEAP8[$1+160|0]=0;HEAP8[$1+161|0]=0;HEAP8[$1+162|0]=0;HEAP8[$1+163|0]=0;HEAP8[$1+164|0]=0;HEAP8[$1+165|0]=0;HEAP8[$1+166|0]=0;HEAP8[$1+167|0]=0;HEAP8[$1+152|0]=0;HEAP8[$1+153|0]=0;HEAP8[$1+154|0]=0;HEAP8[$1+155|0]=0;HEAP8[$1+156|0]=0;HEAP8[$1+157|0]=0;HEAP8[$1+158|0]=0;HEAP8[$1+159|0]=0;HEAP16[$1+1012>>1]=HEAPU16[$0+76>>1];HEAP32[$1+68>>2]=0;HEAP32[$1+72>>2]=0;HEAP32[$1+64>>2]=1065353216;HEAP32[$1+76>>2]=0;HEAP32[$1+80>>2]=0;HEAP32[$1+88>>2]=0;HEAP32[$1+92>>2]=0;HEAP32[$1+84>>2]=1065353216;HEAP32[$1+96>>2]=0;HEAP32[$1+100>>2]=0;HEAP32[$1+108>>2]=0;HEAP32[$1+112>>2]=0;HEAP32[$1+104>>2]=1065353216;HEAP32[$1+116>>2]=0;HEAP32[$1+120>>2]=0;HEAP32[$1+124>>2]=1065353216;HEAP8[$1+1014|0]=HEAPU8[$1+1014|0]&252|1;label$4:{label$5:{if(!dmGameSystem__CreateGOBones_28dmGameSystem__ModelWorld__2c_20dmGameSystem__ModelComponent__29($5,$1)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,45953,0);break label$5}memset($3+32|0,0,80);$2=HEAP32[$5+96>>2];HEAP32[$3+100>>2]=0;HEAP32[$3+96>>2]=$1;HEAP32[$3+92>>2]=470;HEAP32[$3+88>>2]=0;HEAP32[$3+84>>2]=$1;HEAP32[$3+80>>2]=471;HEAP32[$3+28>>2]=$1+132;HEAP32[$3+24>>2]=$2;$6=HEAP32[$7+4>>2];HEAP32[$3+56>>2]=$6;$2=$3;$4=HEAP32[$6+28>>2];if($4){$4=HEAP32[$4>>2]}else{$4=0}HEAP32[$2+68>>2]=$4;$2=$3;$4=HEAP32[$6+20>>2];if($4){$4=HEAP32[$4>>2]}else{$4=0}HEAP32[$2+60>>2]=$4;$2=HEAP32[HEAP32[$6+24>>2]>>2];HEAP32[$3+76>>2]=$6+52;HEAP32[$3+72>>2]=$6+36;HEAP32[$3+64>>2]=$2;HEAP32[$3+40>>2]=0;HEAP32[$3+44>>2]=0;HEAP32[$3+48>>2]=dmHashString64(HEAP32[HEAP32[$7>>2]+16>>2]);HEAP32[$3+52>>2]=i64toi32_i32$HIGH_BITS;$2=dmRig__InstanceCreate_28dmRig__InstanceCreateParams_20const__29($3+24|0);if(!$2){break label$4}HEAP32[$3+16>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,46076,$3+16|0);if(($2|0)!=2){break label$5}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,46129,0)}dmGameSystem__DestroyComponent_28dmGameSystem__ModelWorld__2c_20unsigned_20int_29($5,$8);$0=-1e3;break label$2}HEAP8[$1+1014|0]=HEAPU8[$1+1014|0]|8;HEAP32[HEAP32[$0+72>>2]>>2]=$8;$0=0}global$0=$3+112|0;return $0|0}__assert_fail(46554,46388,430,46565);abort()}function send_tree($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;if(($2|0)>=0){$11=HEAPU16[$1+2>>1];$9=$11?4:3;$3=$11?7:138;$10=$0+5817|0;$6=-1;while(1){$14=$13;$12=$11;$13=$13+1|0;$11=HEAPU16[(($13<<2)+$1|0)+2>>1];$4=$5+1|0;label$3:{if(!(($12|0)!=($11|0)|($4|0)>=($3|0))){$5=$4;break label$3}label$5:{if(($4|0)<($9|0)){$5=($12<<2)+$0|0;$6=$5+2684|0;$7=$5+2686|0;$5=HEAP32[$0+5820>>2];while(1){$9=HEAPU16[$7>>1];$8=HEAPU16[$6>>1];$3=HEAPU16[$0+5816>>1]|$8<<$5;HEAP16[$0+5816>>1]=$3;$15=$0;label$8:{if(($5|0)>(16-$9|0)){$5=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$5+1;HEAP8[$5+HEAP32[$0+8>>2]|0]=$3;$5=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$5+1;HEAP8[$5+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$5=HEAP32[$0+5820>>2];HEAP16[$0+5816>>1]=$8>>>16-$5;$5=($5+$9|0)+ -16|0;break label$8}$5=$5+$9|0}HEAP32[$15+5820>>2]=$5;$4=$4+ -1|0;if($4){continue}break}break label$5}$9=$0;label$10:{if($12){label$12:{if(($6|0)==($12|0)){$3=HEAP32[$0+5820>>2];$5=$4;break label$12}$4=($12<<2)+$0|0;$3=HEAPU16[$4+2686>>1];$7=HEAPU16[$4+2684>>1];$6=HEAP32[$0+5820>>2];$8=HEAPU16[$0+5816>>1]|$7<<$6;HEAP16[$0+5816>>1]=$8;$4=$0;label$14:{if(($6|0)>(16-$3|0)){$6=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$6+1;HEAP8[$6+HEAP32[$0+8>>2]|0]=$8;$6=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$6+1;HEAP8[$6+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$6=HEAP32[$0+5820>>2];HEAP16[$0+5816>>1]=$7>>>16-$6;$3=($3+$6|0)+ -16|0;break label$14}$3=$3+$6|0}HEAP32[$4+5820>>2]=$3}$8=HEAPU16[$0+2748>>1];$4=HEAPU16[$0+5816>>1]|$8<<$3;HEAP16[$0+5816>>1]=$4;$6=$0;$7=HEAPU16[$0+2750>>1];label$16:{if(($3|0)>(16-$7|0)){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=HEAP32[$0+5820>>2];$4=$8>>>16-$3|0;HEAP16[$0+5816>>1]=$4;$3=($3+$7|0)+ -16|0;break label$16}$3=$3+$7|0}HEAP32[$6+5820>>2]=$3;$5=$5+65533&65535;$4=$5<<$3|$4;HEAP16[$0+5816>>1]=$4;if(($3|0)>=15){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=$5;$5=HEAP32[$0+5820>>2];HEAP16[$0+5816>>1]=$3>>>16-$5;$5=$5+ -14|0;break label$10}$5=$3+2|0;break label$10}if(($5|0)<=9){$8=HEAPU16[$0+2752>>1];$3=HEAP32[$0+5820>>2];$4=HEAPU16[$0+5816>>1]|$8<<$3;HEAP16[$0+5816>>1]=$4;$6=$0;$7=HEAPU16[$0+2754>>1];label$20:{if(($3|0)>(16-$7|0)){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=HEAP32[$0+5820>>2];$4=$8>>>16-$3|0;HEAP16[$0+5816>>1]=$4;$3=($3+$7|0)+ -16|0;break label$20}$3=$3+$7|0}HEAP32[$6+5820>>2]=$3;$5=$5+65534&65535;$4=$5<<$3|$4;HEAP16[$0+5816>>1]=$4;if(($3|0)>=14){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=$5;$5=HEAP32[$0+5820>>2];HEAP16[$0+5816>>1]=$3>>>16-$5;$5=$5+ -13|0;break label$10}$5=$3+3|0;break label$10}$8=HEAPU16[$0+2756>>1];$3=HEAP32[$0+5820>>2];$4=HEAPU16[$0+5816>>1]|$8<<$3;HEAP16[$0+5816>>1]=$4;$6=$0;$7=HEAPU16[$0+2758>>1];label$23:{if(($3|0)>(16-$7|0)){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=HEAP32[$0+5820>>2];$4=$8>>>16-$3|0;HEAP16[$0+5816>>1]=$4;$3=($3+$7|0)+ -16|0;break label$23}$3=$3+$7|0}HEAP32[$6+5820>>2]=$3;$5=$5+65526&65535;$4=$5<<$3|$4;HEAP16[$0+5816>>1]=$4;if(($3|0)>=10){$3=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$3+1;HEAP8[$3+HEAP32[$0+8>>2]|0]=$4;$4=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=$4+1;HEAP8[$4+HEAP32[$0+8>>2]|0]=HEAPU8[$10|0];$3=$5;$5=HEAP32[$0+5820>>2];HEAP16[$0+5816>>1]=$3>>>16-$5;$5=$5+ -9|0;break label$10}$5=$3+7|0}HEAP32[$9+5820>>2]=$5}$5=0;label$26:{if(!$11){$3=138;$9=3;break label$26}$4=($12|0)==($11|0);$3=$4?6:7;$9=$4?3:4}$6=$12}if(($2|0)!=($14|0)){continue}break}}}function btDiscreteDynamicsWorld__solveConstraints_28btContactSolverInfo__29__InplaceSolverIslandCallback__ProcessIsland_28btCollisionObject___2c_20int_2c_20btPersistentManifold___2c_20int_2c_20int_29($0,$1,$2,$3,$4,$5){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;var $6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$9=HEAP32[$0+16>>2];label$1:{if(($5|0)>=0){label$3:{if(($9|0)>=1){$10=HEAP32[$0+12>>2];while(1){$11=$10+($6<<2)|0;$8=HEAP32[$11>>2];$7=HEAP32[HEAP32[$8+20>>2]+208>>2];if(($7|0)<=-1){$7=HEAP32[HEAP32[$8+24>>2]+208>>2]}if(($5|0)==($7|0)){break label$3}$6=$6+1|0;if(($6|0)<($9|0)){continue}break}}$11=0}$10=0;if(($6|0)<($9|0)){$8=HEAP32[$0+12>>2];while(1){$12=HEAP32[$8+($6<<2)>>2];$7=HEAP32[HEAP32[$12+20>>2]+208>>2];if(($7|0)<=-1){$7=HEAP32[HEAP32[$12+24>>2]+208>>2]}$10=(($5|0)==($7|0))+$10|0;$6=$6+1|0;if(($9|0)!=($6|0)){continue}break}}$5=HEAP32[$0+4>>2];if(HEAP32[$5+68>>2]>=2){if(($2|0)>=1){$7=HEAP32[$0+40>>2];$6=HEAP32[$0+36>>2];$8=0;while(1){$12=($8<<2)+$1|0;label$15:{if(($7|0)!=($6|0)){break label$15}$9=$7?$7<<1:1;if(($7|0)>=($9|0)){$6=$7;break label$15}$6=0;$5=0;if($9){$5=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($9<<2);$7=HEAP32[$0+36>>2]}if(($7|0)>=1){while(1){$13=$6<<2;HEAP32[$13+$5>>2]=HEAP32[HEAP32[$0+44>>2]+$13>>2];$6=$6+1|0;if(($6|0)!=($7|0)){continue}break}}$6=HEAP32[$0+44>>2];if($6){if(HEAPU8[$0+48|0]){if($6){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$6+ -4>>2])}$7=HEAP32[$0+36>>2]}HEAP32[$0+44>>2]=0}$6=$7;HEAP32[$0+44>>2]=$5;HEAP8[$0+48|0]=1;HEAP32[$0+40>>2]=$9;$7=$9}HEAP32[HEAP32[$0+44>>2]+($6<<2)>>2]=HEAP32[$12>>2];$6=$6+1|0;HEAP32[$0+36>>2]=$6;$8=$8+1|0;if(($8|0)!=($2|0)){continue}break}}if(($4|0)>=1){$7=HEAP32[$0+60>>2];$6=HEAP32[$0+56>>2];$8=0;while(1){$9=($8<<2)+$3|0;label$26:{if(($7|0)!=($6|0)){break label$26}$1=$7?$7<<1:1;if(($7|0)>=($1|0)){$6=$7;break label$26}$6=0;$5=0;if($1){$5=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($1<<2);$7=HEAP32[$0+56>>2]}if(($7|0)>=1){while(1){$2=$6<<2;HEAP32[$2+$5>>2]=HEAP32[$2+HEAP32[$0+64>>2]>>2];$6=$6+1|0;if(($6|0)!=($7|0)){continue}break}}$2=HEAP32[$0+64>>2];if($2){if(HEAPU8[$0+68|0]){if($2){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$2+ -4>>2])}$7=HEAP32[$0+56>>2]}HEAP32[$0+64>>2]=0}$6=$7;HEAP32[$0+64>>2]=$5;HEAP8[$0+68|0]=1;HEAP32[$0+60>>2]=$1;$7=$1}HEAP32[HEAP32[$0+64>>2]+($6<<2)>>2]=HEAP32[$9>>2];$6=$6+1|0;HEAP32[$0+56>>2]=$6;$8=$8+1|0;if(($8|0)!=($4|0)){continue}break}}label$35:{if(!$10){$6=HEAP32[$0+76>>2];break label$35}$7=HEAP32[$0+80>>2];$6=HEAP32[$0+76>>2];$8=0;while(1){$3=($8<<2)+$11|0;label$38:{if(($7|0)!=($6|0)){break label$38}$1=$7?$7<<1:1;if(($7|0)>=($1|0)){$6=$7;break label$38}$6=0;$5=0;if($1){$5=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($1<<2);$7=HEAP32[$0+76>>2]}if(($7|0)>=1){while(1){$2=$6<<2;HEAP32[$2+$5>>2]=HEAP32[$2+HEAP32[$0+84>>2]>>2];$6=$6+1|0;if(($6|0)!=($7|0)){continue}break}}$2=HEAP32[$0+84>>2];if($2){if(HEAPU8[$0+88|0]){if($2){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$2+ -4>>2])}$7=HEAP32[$0+76>>2]}HEAP32[$0+84>>2]=0}$6=$7;HEAP32[$0+84>>2]=$5;HEAP8[$0+88|0]=1;HEAP32[$0+80>>2]=$1;$7=$1}HEAP32[HEAP32[$0+84>>2]+($6<<2)>>2]=HEAP32[$3>>2];$6=$6+1|0;HEAP32[$0+76>>2]=$6;$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}if((HEAP32[$0+56>>2]+$6|0)<=HEAP32[HEAP32[$0+4>>2]+68>>2]){break label$1}btDiscreteDynamicsWorld__solveConstraints_28btContactSolverInfo__29__InplaceSolverIslandCallback__processConstraints_28_29($0);break label$1}if((0-$4|0)==($10|0)){break label$1}$7=HEAP32[$0+8>>2];Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$7>>2]+12>>2]]($7,$1,$2,$3,$4,$11,$10,$5,HEAP32[$0+20>>2],HEAP32[$0+24>>2],HEAP32[$0+28>>2]));return}if(($9|0)==(0-$4|0)){break label$1}$5=HEAP32[$0+8>>2];Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$5>>2]+12>>2]]($5,$1,$2,$3,$4,HEAP32[$0+12>>2],$9,HEAP32[$0+4>>2],HEAP32[$0+20>>2],HEAP32[$0+24>>2],HEAP32[$0+28>>2]))}}function dmHashUpdateBuffer64($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;HEAP32[$0+20>>2]=HEAP32[$0+20>>2]+$2;label$1:{if(!$2){break label$1}$3=HEAP32[$0+16>>2];$8=$1;$4=$2;while(1){if(!($3|($4|0)<8)){while(1){$3=$8;$3=__wasm_i64_mul(HEAPU8[$3|0]|HEAPU8[$3+1|0]<<8|(HEAPU8[$3+2|0]<<16|HEAPU8[$3+3|0]<<24),HEAPU8[$3+4|0]|HEAPU8[$3+5|0]<<8|(HEAPU8[$3+6|0]<<16|HEAPU8[$3+7|0]<<24),1540483477,-962287725);$6=i64toi32_i32$HIGH_BITS;$3=__wasm_i64_mul($3^$6>>>15,$6,1540483477,-962287725);$6=i64toi32_i32$HIGH_BITS;HEAP32[$0>>2]=__wasm_i64_mul(HEAP32[$0>>2],HEAP32[$0+4>>2],1540483477,-962287725)^$3;HEAP32[$0+4>>2]=i64toi32_i32$HIGH_BITS^$6;$8=$8+8|0;$5=($4|0)>15;$3=$4+ -8|0;$4=$3;if($5){continue}break}if(!$3){break label$1}$4=HEAP32[$0+16>>2];while(1){if($4?0:($3|0)>=8){break label$1}$5=HEAPU8[$8|0];$6=$4+1|0;HEAP32[$0+16>>2]=$6;$9=$0;$10=HEAP32[$0+12>>2];$7=$4<<3;$4=$7&31;if(32<=($7&63)>>>0){$7=$5<<$4;$5=0}else{$7=(1<<$4)-1&$5>>>32-$4;$5=$5<<$4}$4=$5|HEAP32[$0+8>>2];$5=$7|$10;$7=$5;HEAP32[$9+8>>2]=$4;HEAP32[$9+12>>2]=$5;$3=$3+ -1|0;$8=$8+1|0;if(($6|0)==8){HEAP32[$0+16>>2]=0;HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=0;$6=__wasm_i64_mul(HEAP32[$0>>2],HEAP32[$0+4>>2],1540483477,-962287725);$9=i64toi32_i32$HIGH_BITS;$4=__wasm_i64_mul($4,$7,1540483477,-962287725);$10=i64toi32_i32$HIGH_BITS;$5=$10;HEAP32[$0>>2]=__wasm_i64_mul($4^$5>>>15,$5,1540483477,-962287725)^$6;HEAP32[$0+4>>2]=i64toi32_i32$HIGH_BITS^$9;$4=0}else{$4=$6}if($3){continue}break}break label$1}$5=HEAPU8[$8|0];$6=$3+1|0;HEAP32[$0+16>>2]=$6;$9=$0;$10=HEAP32[$0+12>>2];$7=$3<<3;$3=$7&31;if(32<=($7&63)>>>0){$7=$5<<$3;$5=0}else{$7=(1<<$3)-1&$5>>>32-$3;$5=$5<<$3}$3=$5|HEAP32[$0+8>>2];$5=$7|$10;$7=$5;HEAP32[$9+8>>2]=$3;HEAP32[$9+12>>2]=$5;$4=$4+ -1|0;$8=$8+1|0;if(($6|0)==8){HEAP32[$0+16>>2]=0;HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=0;$6=__wasm_i64_mul(HEAP32[$0>>2],HEAP32[$0+4>>2],1540483477,-962287725);$9=i64toi32_i32$HIGH_BITS;$3=__wasm_i64_mul($3,$7,1540483477,-962287725);$10=i64toi32_i32$HIGH_BITS;$5=$10;HEAP32[$0>>2]=__wasm_i64_mul($3^$5>>>15,$5,1540483477,-962287725)^$6;HEAP32[$0+4>>2]=i64toi32_i32$HIGH_BITS^$9;$3=0}else{$3=$6}if($4){continue}break}}label$10:{if(HEAP8[1130232]&1){break label$10}if(!__cxa_guard_acquire(1130232)){break label$10}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$4=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$4;__cxa_guard_release(1130232)}label$11:{label$12:{if(!(!HEAPU8[1130132]|!HEAP32[$0+24>>2]|HEAPU32[$0+20>>2]>1024)){label$14:{if(HEAP8[1130232]&1){break label$14}if(!__cxa_guard_acquire(1130232)){break label$14}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$4=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$4;__cxa_guard_release(1130232)}$0=HEAP32[$0+24>>2];if(!$0){break label$12}$4=HEAP32[282550];if(HEAP32[282551]-$4>>3>>>0<=$0>>>0){break label$11}$0=$4+($0<<3)|0;$4=HEAPU16[$0+4>>1]+$2|0;$8=dlrealloc(HEAP32[$0>>2],$4+32&-16);HEAP32[$0>>2]=$8;memcpy($8+HEAPU16[$0+4>>1]|0,$1,$2);HEAP8[$4+$8|0]=0;HEAP16[$0+4>>1]=$4}return}__assert_fail(147415,147127,148,147454);abort()}__assert_fail(147626,147230,430,147637);abort()}function dmGameSystem__CompLabelSetProperty_28dmGameObject__ComponentSetPropertyParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$3=HEAP32[$0+4>>2];$1=HEAP32[$3+16>>2];$2=HEAP32[HEAP32[$0+24>>2]>>2];label$1:{if(HEAP32[$3+20>>2]-$1>>3>>>0>$2>>>0){$4=HEAP32[$3>>2];$5=HEAP32[$1+($2<<3)>>2];if(HEAP32[$3+4>>2]-$4>>10>>>0>$5>>>0){label$4:{$1=HEAP32[$0+16>>2];$2=HEAP32[$0+20>>2];if(!(($1|0)==HEAP32[146190]&($2|0)==HEAP32[146191]|($1|0)==HEAP32[146192]&($2|0)==HEAP32[146193]|($1|0)==HEAP32[146194]&($2|0)==HEAP32[146195])){if(($1|0)!=HEAP32[146196]|($2|0)!=HEAP32[146197]){break label$4}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector3__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$0+32|0,($4+($5<<10)|0)- -64|0,584760)|0}label$6:{if(!(($1|0)==HEAP32[146204]&($2|0)==HEAP32[146205]|(($1|0)==HEAP32[146200]&($2|0)==HEAP32[146201]|($1|0)==HEAP32[146202]&($2|0)==HEAP32[146203]))){if(($1|0)!=HEAP32[146206]|($2|0)!=HEAP32[146207]){break label$6}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector3__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$0+32|0,($4+($5<<10)|0)+48|0,584800)|0}label$8:{if(!(($1|0)==HEAP32[146210]&($2|0)==HEAP32[146211]|($1|0)==HEAP32[146212]&($2|0)==HEAP32[146213]|(($1|0)==HEAP32[146214]&($2|0)==HEAP32[146215]|($1|0)==HEAP32[146216]&($2|0)==HEAP32[146217]))){if(($1|0)!=HEAP32[146218]|($2|0)!=HEAP32[146219]){break label$8}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector4__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$0+32|0,($4+($5<<10)|0)+80|0,584840)|0}label$10:{if(!(($1|0)==HEAP32[146222]&($2|0)==HEAP32[146223]|($1|0)==HEAP32[146224]&($2|0)==HEAP32[146225]|(($1|0)==HEAP32[146226]&($2|0)==HEAP32[146227]|($1|0)==HEAP32[146228]&($2|0)==HEAP32[146229]))){if(($1|0)!=HEAP32[146230]|($2|0)!=HEAP32[146231]){break label$10}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector4__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$0+32|0,($4+($5<<10)|0)+96|0,584888)|0}label$12:{if(!(($1|0)==HEAP32[146234]&($2|0)==HEAP32[146235]|($1|0)==HEAP32[146236]&($2|0)==HEAP32[146237]|(($1|0)==HEAP32[146238]&($2|0)==HEAP32[146239]|($1|0)==HEAP32[146240]&($2|0)==HEAP32[146241]))){if(($1|0)!=HEAP32[146242]|($2|0)!=HEAP32[146243]){break label$12}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector4__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$0+32|0,($4+($5<<10)|0)+112|0,584936)|0}if(($1|0)==HEAP32[146170]&($2|0)==HEAP32[146171]){$1=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$2=$0+32|0;$0=$4+($5<<10)|0;$3=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29($1,$2,HEAP32[146152],HEAP32[146153],$0+1008|0);break label$1}if(($1|0)==HEAP32[146166]&($2|0)==HEAP32[146167]){$1=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$2=$0+32|0;$0=$4+($5<<10)|0;$3=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29($1,$2,HEAP32[146150],HEAP32[146151],$0+1012|0);break label$1}$6=$4+($5<<10)|0;$3=HEAP32[$6+1008>>2];if(!$3){$3=HEAP32[HEAP32[$6+216>>2]+4>>2]}return dmGameSystem__SetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20void_20_28__29_28void__2c_20unsigned_20long_20long_2c_20unsigned_20int__2c_20dmGameObject__PropertyVar_20const__29_2c_20void__29($3,$1,$2,$0+32|0,464,$4+($5<<10)|0)|0}}__assert_fail(43706,43608,430,43717);abort()}$1=$0;$0=HEAPU8[$0+1022|0];HEAP8[$1+1022|0]=($3?$0&8:8)|$0&247;return $3|0}function btRigidBody__setCenterOfMassTransform_28btTransform_20const__29($0,$1){var $2=0,$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0);label$1:{if(HEAPU8[$0+204|0]&3){$2=HEAP32[$0+8>>2];HEAP32[$0+68>>2]=HEAP32[$0+4>>2];HEAP32[$0+72>>2]=$2;$2=HEAP32[$0+16>>2];HEAP32[$0+76>>2]=HEAP32[$0+12>>2];HEAP32[$0+80>>2]=$2;$2=HEAP32[$0+24>>2];HEAP32[$0+84>>2]=HEAP32[$0+20>>2];HEAP32[$0+88>>2]=$2;$2=HEAP32[$0+32>>2];HEAP32[$0+92>>2]=HEAP32[$0+28>>2];HEAP32[$0+96>>2]=$2;$2=HEAP32[$0+40>>2];HEAP32[$0+100>>2]=HEAP32[$0+36>>2];HEAP32[$0+104>>2]=$2;$2=HEAP32[$0+48>>2];HEAP32[$0+108>>2]=HEAP32[$0+44>>2];HEAP32[$0+112>>2]=$2;$2=HEAP32[$0+56>>2];HEAP32[$0+116>>2]=HEAP32[$0+52>>2];HEAP32[$0+120>>2]=$2;$2=HEAP32[$0+64>>2];HEAP32[$0+124>>2]=HEAP32[$0+60>>2];HEAP32[$0+128>>2]=$2;break label$1}$2=$1;$3=HEAP32[$2+4>>2];HEAP32[$0+68>>2]=HEAP32[$2>>2];HEAP32[$0+72>>2]=$3;$3=HEAP32[$2+12>>2];HEAP32[$0+76>>2]=HEAP32[$2+8>>2];HEAP32[$0+80>>2]=$3;$3=HEAP32[$2+28>>2];HEAP32[$0+92>>2]=HEAP32[$2+24>>2];HEAP32[$0+96>>2]=$3;$3=HEAP32[$2+20>>2];HEAP32[$0+84>>2]=HEAP32[$2+16>>2];HEAP32[$0+88>>2]=$3;$3=HEAP32[$2+36>>2];HEAP32[$0+100>>2]=HEAP32[$2+32>>2];HEAP32[$0+104>>2]=$3;$3=HEAP32[$2+44>>2];HEAP32[$0+108>>2]=HEAP32[$2+40>>2];HEAP32[$0+112>>2]=$3;$3=HEAP32[$2+60>>2];HEAP32[$0+124>>2]=HEAP32[$2+56>>2];HEAP32[$0+128>>2]=$3;$3=HEAP32[$2+52>>2];HEAP32[$0+116>>2]=HEAP32[$2+48>>2];HEAP32[$0+120>>2]=$3}$2=HEAP32[$0+324>>2];HEAP32[$0+148>>2]=HEAP32[$0+320>>2];HEAP32[$0+152>>2]=$2;$2=HEAP32[$0+308>>2];HEAP32[$0+132>>2]=HEAP32[$0+304>>2];HEAP32[$0+136>>2]=$2;$2=HEAP32[$0+332>>2];HEAP32[$0+156>>2]=HEAP32[$0+328>>2];HEAP32[$0+160>>2]=$2;$2=HEAP32[$0+316>>2];HEAP32[$0+140>>2]=HEAP32[$0+312>>2];HEAP32[$0+144>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+12>>2]=HEAP32[$1+8>>2];HEAP32[$0+16>>2]=$2;$2=HEAP32[$1+4>>2];HEAP32[$0+4>>2]=HEAP32[$1>>2];HEAP32[$0+8>>2]=$2;$2=HEAP32[$1+28>>2];HEAP32[$0+28>>2]=HEAP32[$1+24>>2];HEAP32[$0+32>>2]=$2;$2=HEAP32[$1+20>>2];HEAP32[$0+20>>2]=HEAP32[$1+16>>2];HEAP32[$0+24>>2]=$2;$2=HEAP32[$1+44>>2];HEAP32[$0+44>>2]=HEAP32[$1+40>>2];HEAP32[$0+48>>2]=$2;$2=HEAP32[$1+36>>2];HEAP32[$0+36>>2]=HEAP32[$1+32>>2];HEAP32[$0+40>>2]=$2;$2=HEAP32[$1+60>>2];HEAP32[$0+60>>2]=HEAP32[$1+56>>2];HEAP32[$0+64>>2]=$2;$2=HEAP32[$1+52>>2];HEAP32[$0+52>>2]=HEAP32[$1+48>>2];HEAP32[$0+56>>2]=$2;$10=HEAPF32[$0+8>>2];$11=HEAPF32[$0+12>>2];$12=HEAPF32[$0+28>>2];$13=HEAPF32[$0+20>>2];$14=HEAPF32[$0+24>>2];$7=HEAPF32[$0+44>>2];$16=HEAPF32[$0+396>>2];$8=HEAPF32[$0+36>>2];$9=HEAPF32[$0+40>>2];$17=HEAPF32[$0+392>>2];$15=HEAPF32[$0+4>>2];$18=HEAPF32[$0+388>>2];HEAP32[$0+300>>2]=0;HEAP32[$0+284>>2]=0;HEAP32[$0+268>>2]=0;$4=Math_fround($18*$8);$5=Math_fround($17*$9);$6=Math_fround($16*$7);HEAPF32[$0+296>>2]=Math_fround(Math_fround($8*$4)+Math_fround($9*$5))+Math_fround($7*$6);HEAPF32[$0+292>>2]=Math_fround(Math_fround($13*$4)+Math_fround($14*$5))+Math_fround($12*$6);HEAPF32[$0+288>>2]=Math_fround(Math_fround($15*$4)+Math_fround($10*$5))+Math_fround($11*$6);$4=Math_fround($18*$13);$5=Math_fround($17*$14);$6=Math_fround($16*$12);HEAPF32[$0+280>>2]=Math_fround(Math_fround($8*$4)+Math_fround($9*$5))+Math_fround($7*$6);HEAPF32[$0+276>>2]=Math_fround(Math_fround($13*$4)+Math_fround($14*$5))+Math_fround($12*$6);HEAPF32[$0+272>>2]=Math_fround(Math_fround($15*$4)+Math_fround($10*$5))+Math_fround($11*$6);$4=$8;$8=Math_fround($15*$18);$5=$9;$9=Math_fround($10*$17);$6=$7;$7=Math_fround($11*$16);HEAPF32[$0+264>>2]=Math_fround(Math_fround($4*$8)+Math_fround($5*$9))+Math_fround($6*$7);HEAPF32[$0+260>>2]=Math_fround(Math_fround($8*$13)+Math_fround($9*$14))+Math_fround($7*$12);HEAPF32[$0+256>>2]=Math_fround(Math_fround($15*$8)+Math_fround($10*$9))+Math_fround($11*$7)}function mbedtls_ssl_encrypt_buf($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$4=global$0-128|0;global$0=$4;label$1:{if(!$0){$5=-27648;break label$1}if(!$1){$5=-27648;break label$1}$9=HEAP32[$1+12>>2];if(!$9){$5=-27648;break label$1}$5=HEAP32[$1+16>>2];$7=HEAP32[$1+20>>2];if($5>>>0<$7>>>0){$5=-27648;break label$1}$11=$5-$7|0;$6=HEAP32[$1+24>>2];if($11>>>0<$6>>>0){$5=-27648;break label$1}$5=-28928;$10=HEAP32[$0+80>>2];$8=0;label$7:{if(!$10){break label$7}$8=HEAP32[$10+4>>2]}if($6>>>0>16384){break label$1}$10=$1+24|0;$14=$0+80|0;$7=$7+$9|0;$9=$11-$6|0;$11=0;label$8:{$8=$8+ -2|0;label$9:{if($8>>>0>5){break label$9}label$10:{switch($8-1|0){default:if(HEAP32[$0+76>>2]){break label$8}break;case 4:break label$10;case 0:case 1:case 2:case 3:break label$9}}$5=-27136;if($9>>>0>2]){break label$1}$11=1;if(HEAP32[$0+208>>2]<1){$5=-27648;break label$1}ssl_extract_add_data_from_record($4+80|0,$4+76|0,$1);$5=$0+52|0;mbedtls_md_hmac_update($5,$4+80|0,HEAP32[$4+76>>2]);mbedtls_md_hmac_update($5,$7,HEAP32[$1+24>>2]);mbedtls_md_hmac_finish($5,$4+16|0);mbedtls_md_hmac_reset($5);memcpy(HEAP32[$1+24>>2]+$7|0,$4+16|0,HEAP32[$0+12>>2]);$5=HEAP32[$0+12>>2];$6=$5+HEAP32[$1+24>>2]|0;HEAP32[$1+24>>2]=$6;$9=$9-$5|0}if($8>>>0>8){$5=-27648;break label$1}$5=-27648;label$14:{switch($8-1|0){case 0:case 1:case 2:case 4:case 6:break label$1;case 3:case 5:case 7:break label$14;default:break label$8}}$5=-27136;if($9>>>0>2]){break label$1}$6=HEAP32[$0+4>>2];$3=HEAP32[$0+8>>2];$2=$6-$3|0;if(HEAPU32[$1+20>>2]<$2>>>0){break label$1}$6=($6|0)!=12;label$15:{if(!($6|($3|0)!=4)){HEAP32[$4+16>>2]=HEAP32[$0+20>>2];memcpy($4+16|4,$1,$2);memcpy($7-$2|0,$1,$2);break label$15}$5=-27648;if(($3|0)!=12|$6){break label$1}HEAP32[$4+24>>2]=HEAP32[$0+28>>2];$3=HEAP32[$0+24>>2];HEAP32[$4+16>>2]=HEAP32[$0+20>>2];HEAP32[$4+20>>2]=$3;HEAP8[$4+20|0]=HEAPU8[$4+20|0]^HEAPU8[$1|0];HEAP8[$4+21|0]=HEAPU8[$4+21|0]^HEAPU8[$1+1|0];HEAP8[$4+22|0]=HEAPU8[$4+22|0]^HEAPU8[$1+2|0];HEAP8[$4+23|0]=HEAPU8[$4+23|0]^HEAPU8[$1+3|0];HEAP8[$4+24|0]=HEAPU8[$4+24|0]^HEAPU8[$1+4|0];HEAP8[$4+25|0]=HEAPU8[$4+25|0]^HEAPU8[$1+5|0];HEAP8[$4+26|0]=HEAPU8[$4+26|0]^HEAPU8[$1+6|0];HEAP8[$4+27|0]=HEAPU8[$4+27|0]^HEAPU8[$1+7|0]}ssl_extract_add_data_from_record($4+80|0,$4+76|0,$1);$3=HEAP32[$1+24>>2];$5=mbedtls_cipher_auth_encrypt($14,$4+16|0,HEAP32[$0+4>>2],$4+80|0,HEAP32[$4+76>>2],$7,$3,$7,$10,$3+$7|0,HEAP32[$0+16>>2]);if($5){break label$1}$0=HEAP32[$0+16>>2];HEAP32[$1+20>>2]=HEAP32[$1+20>>2]-$2;HEAP32[$1+24>>2]=HEAP32[$1+24>>2]+($0+$2|0);$5=$11?-27648:0;break label$1}$8=0;$5=-27136;$12=HEAP32[$0+4>>2];$13=($6+1>>>0)%($12>>>0)|0;$13=$13?$12-$13|0:0;$12=$13+1|0;if($9>>>0<$12>>>0){break label$1}while(1){HEAP8[($6+$8|0)+$7|0]=$13;$6=HEAP32[$10>>2];$8=$8+1|0;if($8>>>0<=$13>>>0){continue}break}$6=$6+$12|0;HEAP32[$10>>2]=$6;if(HEAP32[$0+208>>2]>=2){if(!$2){$5=-27648;break label$1}$6=HEAP32[$0+4>>2];if(HEAPU32[$1+20>>2]<$6>>>0){break label$1}$8=$3;$3=$0+20|0;$5=FUNCTION_TABLE[$2]($8,$3,$6)|0;if($5){break label$1}$2=HEAP32[$0+4>>2];memcpy($7-$2|0,$3,$2);$6=HEAP32[$10>>2]}$2=$0+20|0;$5=mbedtls_cipher_crypt($14,$2,HEAP32[$0+4>>2],$7,$6,$7,$4+12|0);if($5){break label$1}$5=-27648;$3=HEAP32[$10>>2];if(($3|0)!=HEAP32[$4+12>>2]){break label$1}label$20:{if(HEAP32[$0+208>>2]<=1){memcpy($2,$0+120|0,HEAP32[$0+4>>2]);break label$20}$2=HEAP32[$0+4>>2];HEAP32[$1+24>>2]=$2+$3;HEAP32[$1+20>>2]=HEAP32[$1+20>>2]-$2;$7=$7-$2|0}label$22:{if(!$11){if($9-$12>>>0>2]){break label$22}ssl_extract_add_data_from_record($4+80|0,$4+76|0,$1);$2=$0+52|0;mbedtls_md_hmac_update($2,$4+80|0,HEAP32[$4+76>>2]);mbedtls_md_hmac_update($2,$7,HEAP32[$1+24>>2]);mbedtls_md_hmac_finish($2,$4+16|0);mbedtls_md_hmac_reset($2);memcpy(HEAP32[$1+24>>2]+$7|0,$4+16|0,HEAP32[$0+12>>2]);HEAP32[$1+24>>2]=HEAP32[$1+24>>2]+HEAP32[$0+12>>2]}$5=0;break label$1}$5=-27136}global$0=$4+128|0;return $5}function b2FrictionJoint__InitVelocityConstraints_28b2SolverData_20const__29($0,$1){$0=$0|0;$1=$1|0;var $2=Math_fround(0),$3=0,$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=0,$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=0,$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=0,$24=0,$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0);$3=HEAP32[$0+48>>2];$16=HEAP32[$3+8>>2];HEAP32[$0+104>>2]=$16;$8=HEAP32[$0+52>>2];$13=HEAP32[$8+8>>2];HEAP32[$0+108>>2]=$13;$17=HEAPF32[$3+32>>2];$7=HEAP32[$3+32>>2];$11=HEAPF32[$3+28>>2];HEAP32[$0+128>>2]=HEAP32[$3+28>>2];HEAP32[$0+132>>2]=$7;$18=HEAPF32[$8+32>>2];$12=HEAP32[$8+32>>2];$9=HEAPF32[$8+28>>2];HEAP32[$0+136>>2]=HEAP32[$8+28>>2];HEAP32[$0+140>>2]=$12;$19=HEAPF32[$3+120>>2];HEAP32[$0+144>>2]=HEAP32[$3+120>>2];$20=HEAPF32[$8+120>>2];HEAP32[$0+148>>2]=HEAP32[$8+120>>2];$14=HEAPF32[$3+128>>2];HEAP32[$0+152>>2]=HEAP32[$3+128>>2];$15=HEAPF32[$8+128>>2];HEAP32[$0+156>>2]=HEAP32[$8+128>>2];$2=HEAPF32[$0+72>>2];$23=HEAP32[$1+24>>2];$12=Math_imul($16,12);$5=HEAPF32[($23+$12|0)+8>>2];$10=cosf($5);$6=HEAPF32[$0+68>>2];$5=sinf($5);$24=HEAP32[$1+28>>2];$7=Math_imul($13,12);$3=$24+$7|0;$21=HEAPF32[$3+8>>2];$25=HEAPF32[$3+4>>2];$8=HEAP32[$3+4>>2];$26=HEAPF32[$3>>2];$13=HEAP32[$3>>2];$3=$12+$24|0;$22=HEAPF32[$3+8>>2];$27=HEAPF32[$3+4>>2];$12=HEAP32[$3+4>>2];$28=HEAPF32[$3>>2];$3=HEAP32[$3>>2];$4=HEAPF32[($23+$7|0)+8>>2];$6=Math_fround($6-$11);$2=Math_fround($2-$17);$11=Math_fround(Math_fround($5*$6)+Math_fround($10*$2));HEAPF32[$0+116>>2]=$11;$10=Math_fround(Math_fround($10*$6)-Math_fround($5*$2));HEAPF32[$0+112>>2]=$10;$5=Math_fround($14+$15);HEAPF32[$0+176>>2]=$5>Math_fround(0)?Math_fround(Math_fround(1)/$5):$5;$5=HEAPF32[$0+80>>2];$2=cosf($4);$6=HEAPF32[$0+76>>2];$4=sinf($4);$9=Math_fround($6-$9);$6=Math_fround($5-$18);$5=Math_fround(Math_fround($4*$9)+Math_fround($2*$6));HEAPF32[$0+124>>2]=$5;$9=Math_fround(Math_fround($2*$9)-Math_fround($4*$6));HEAPF32[$0+120>>2]=$9;$4=Math_fround($19+$20);$2=Math_fround(Math_fround($4+Math_fround($11*Math_fround($11*$14)))+Math_fround($5*Math_fround($5*$15)));$18=$2;$17=Math_fround($4+Math_fround($10*Math_fround($10*$14)));$4=Math_fround($9*$15);$6=Math_fround($17+Math_fround($9*$4));$4=Math_fround(Math_fround($11*Math_fround($10*Math_fround(-$14)))-Math_fround($5*$4));$2=Math_fround(Math_fround($2*$6)-Math_fround($4*$4));$2=$2!=Math_fround(0)?Math_fround(Math_fround(1)/$2):$2;HEAPF32[$0+172>>2]=$18*$2;HEAPF32[$0+160>>2]=$6*$2;$4=Math_fround($4*Math_fround(-$2));HEAPF32[$0+168>>2]=$4;HEAPF32[$0+164>>2]=$4;label$1:{if(HEAPU8[$1+20|0]){$2=HEAPF32[$1+8>>2];$4=Math_fround($2*HEAPF32[$0+84>>2]);HEAPF32[$0+84>>2]=$4;$6=Math_fround($2*HEAPF32[$0+92>>2]);HEAPF32[$0+92>>2]=$6;$2=Math_fround($2*HEAPF32[$0+88>>2]);HEAPF32[$0+88>>2]=$2;$21=Math_fround($21+Math_fround(Math_fround($6+Math_fround(Math_fround($9*$2)-Math_fround($4*$5)))*$15));$22=Math_fround($22-Math_fround(Math_fround($6+Math_fround(Math_fround($10*$2)-Math_fround($4*$11)))*$14));$13=(wasm2js_scratch_store_f32(Math_fround(Math_fround($4*$20)+$26)),wasm2js_scratch_load_i32(0));$3=(wasm2js_scratch_store_f32(Math_fround($28-Math_fround($4*$19))),wasm2js_scratch_load_i32(0));$8=(wasm2js_scratch_store_f32(Math_fround(Math_fround($2*$20)+$25)),wasm2js_scratch_load_i32(0));$12=(wasm2js_scratch_store_f32(Math_fround($27-Math_fround($2*$19))),wasm2js_scratch_load_i32(0));break label$1}HEAP32[$0+92>>2]=0;HEAP32[$0+84>>2]=0;HEAP32[$0+88>>2]=0}$7=HEAP32[$1+28>>2]+Math_imul($16,12)|0;HEAP32[$7+4>>2]=$12;HEAP32[$7>>2]=$3;$7=HEAP32[$1+28>>2];HEAPF32[($7+Math_imul(HEAP32[$0+104>>2],12)|0)+8>>2]=$22;$7=$7+Math_imul(HEAP32[$0+108>>2],12)|0;HEAP32[$7+4>>2]=$8;HEAP32[$7>>2]=$13;HEAPF32[(HEAP32[$1+28>>2]+Math_imul(HEAP32[$0+108>>2],12)|0)+8>>2]=$21}function dmGameObject__CreatePropertyContainerFromLua_28void__2c_20unsigned_20char__2c_20unsigned_20int_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$3=global$0+ -64|0;global$0=$3;$0=$0?HEAP32[$0+120>>2]:0;$6=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($3+48|0,$0,0);HEAP32[$3+40>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;label$3:{if(!$2){$0=dmGameObject__CreatePropertyContainerBuilder_28dmGameObject__PropertyContainerParameters_20const__29($3+8|0);if(!$0){break label$3}$4=dmGameObject__CreatePropertyContainer_28dmGameObject__PropertyContainerBuilder__29($0);break label$3}dmScript__PushTable_28lua_State__2c_20char_20const__2c_20unsigned_20int_29($0,$1,$2);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;if(lua_next($0,-2)){while(1){label$7:{if(!lua_isstring($0,-2)){break label$7}HEAP32[$3+4>>2]=0;$1=dmGameObject__GetPropertyType_28lua_State__2c_20int_2c_20void___29($0,-1,$3+4|0);if($1>>>0>7){break label$7}label$8:{switch($1-1|0){case 0:HEAP32[$3+12>>2]=HEAP32[$3+12>>2]+1;break label$7;case 1:HEAP32[$3+24>>2]=HEAP32[$3+24>>2]+1;break label$7;case 2:HEAP32[$3+28>>2]=HEAP32[$3+28>>2]+1;break label$7;case 3:HEAP32[$3+32>>2]=HEAP32[$3+32>>2]+1;break label$7;case 4:HEAP32[$3+36>>2]=HEAP32[$3+36>>2]+1;break label$7;case 5:HEAP32[$3+40>>2]=HEAP32[$3+40>>2]+1;break label$7;case 6:lua_settop($0,-4);break label$3;default:break label$8}}HEAP32[$3+8>>2]=HEAP32[$3+8>>2]+1}lua_settop($0,-2);if(lua_next($0,-2)){continue}break}}$1=dmGameObject__CreatePropertyContainerBuilder_28dmGameObject__PropertyContainerParameters_20const__29($3+8|0);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;if(lua_next($0,-2)){while(1){label$18:{if(!lua_isstring($0,-2)){break label$18}HEAP32[$3+4>>2]=0;$2=dmHashString64(lua_tolstring($0,-2,0));$4=i64toi32_i32$HIGH_BITS;$5=dmGameObject__GetPropertyType_28lua_State__2c_20int_2c_20void___29($0,-1,$3+4|0);if($5>>>0>7){break label$18}label$19:{switch($5-1|0){case 0:dmGameObject__PushHash_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_29($1,$2,$4,dmScript__CheckHash_28lua_State__2c_20int_29($0,-1),i64toi32_i32$HIGH_BITS);break label$18;case 1:dmGameObject__PushURL_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20char_20const__29($1,$2,$4,dmScript__CheckURL_28lua_State__2c_20int_29($0,-1));break label$18;case 2:dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($1,$2,$4,3,dmScript__CheckVector3_28lua_State__2c_20int_29($0,-1));break label$18;case 3:dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($1,$2,$4,4,dmScript__CheckVector4_28lua_State__2c_20int_29($0,-1));break label$18;case 4:dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($1,$2,$4,5,dmScript__CheckQuat_28lua_State__2c_20int_29($0,-1));break label$18;case 5:dmGameObject__PushBool_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20bool_29($1,$2,$4,(lua_toboolean($0,-1)|0)!=0);break label$18;case 6:__assert_fail(17912,17918,235,17961);abort();default:break label$19}}HEAPF32[$3>>2]=lua_tonumber($0,-1);dmGameObject__PushFloatType_28dmGameObject__PropertyContainerBuilder__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyType_2c_20float_20const__29($1,$2,$4,0,$3)}lua_settop($0,-2);if(lua_next($0,-2)){continue}break}}lua_settop($0,-2);$4=dmGameObject__CreatePropertyContainer_28dmGameObject__PropertyContainerBuilder__29($1)}dmScript__LuaStackCheck___LuaStackCheck_28_29($6);global$0=$3- -64|0;return $4}function dmGameSystem__RenderTextNodes_28dmGui__Scene__2c_20dmGui__RenderEntry_20const__2c_20Vectormath__Aos__Matrix4_20const__2c_20float_20const__2c_20dmGui__StencilScope_20const___2c_20unsigned_20int_2c_20void__29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0,$9=0,$10=0,$11=0,$12=Math_fround(0),$13=0,$14=0;$7=global$0-768|0;global$0=$7;label$1:{if($5){while(1){$10=HEAP32[(($11<<4)+$1|0)+8>>2];if(!dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($0,$10)){dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($7+752|0,$0,$10,3);dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($7+736|0,$0,$10,5);dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($7+720|0,$0,$10,6);if((dmGui__GetNodeType_28dmGui__Scene__2c_20unsigned_20int_29($0,$10)|0)!=1){break label$1}$13=dmRender__DrawTextParams__DrawTextParams_28_29($7+16|0);$9=$11<<2;$12=HEAPF32[$9+$3>>2];HEAPF32[$7+92>>2]=$12;HEAP32[$7+88>>2]=HEAP32[$7+760>>2];$8=HEAP32[$7+756>>2];HEAP32[$7+80>>2]=HEAP32[$7+752>>2];HEAP32[$7+84>>2]=$8;HEAP32[$7+104>>2]=HEAP32[$7+744>>2];$8=HEAP32[$7+740>>2];HEAP32[$7+96>>2]=HEAP32[$7+736>>2];HEAP32[$7+100>>2]=$8;$8=HEAP32[$7+724>>2];HEAP32[$7+112>>2]=HEAP32[$7+720>>2];HEAP32[$7+116>>2]=$8;HEAP32[$7+120>>2]=HEAP32[$7+728>>2];HEAPF32[$7+108>>2]=$12*HEAPF32[$7+748>>2];HEAPF32[$7+124>>2]=$12*HEAPF32[$7+732>>2];HEAP32[$7+128>>2]=dmGui__GetNodeText_28dmGui__Scene__2c_20unsigned_20int_29($0,$10);$8=($11<<6)+$2|0;HEAP32[$7+16>>2]=HEAP32[$8>>2];HEAP32[$7+20>>2]=HEAP32[$8+4>>2];HEAP32[$7+24>>2]=HEAP32[$8+8>>2];HEAP32[$7+28>>2]=HEAP32[$8+12>>2];HEAP32[$7+32>>2]=HEAP32[$8+16>>2];HEAP32[$7+36>>2]=HEAP32[$8+20>>2];HEAP32[$7+40>>2]=HEAP32[$8+24>>2];HEAP32[$7+44>>2]=HEAP32[$8+28>>2];HEAP32[$7+48>>2]=HEAP32[$8+32>>2];HEAP32[$7+52>>2]=HEAP32[$8+36>>2];HEAP32[$7+56>>2]=HEAP32[$8+40>>2];HEAP32[$7+60>>2]=HEAP32[$8+44>>2];HEAP32[$7+64>>2]=HEAP32[$8+48>>2];HEAP32[$7+68>>2]=HEAP32[$8+52>>2];HEAP32[$7+72>>2]=HEAP32[$8+56>>2];HEAP32[$7+76>>2]=HEAP32[$8+60>>2];HEAP16[$7+664>>1]=HEAPU16[$0+370>>1];HEAP8[$7+684|0]=dmGui__GetNodeLineBreak_28dmGui__Scene__2c_20unsigned_20int_29($0,$10);HEAPF32[$7+676>>2]=dmGui__GetNodeTextLeading_28dmGui__Scene__2c_20unsigned_20int_29($0,$10);HEAPF32[$7+680>>2]=dmGui__GetNodeTextTracking_28dmGui__Scene__2c_20unsigned_20int_29($0,$10);dmGui__GetNodeProperty_28dmGui__Scene__2c_20unsigned_20int_2c_20dmGui__Property_29($7,$0,$10,4);$8=HEAP32[$7+4>>2];HEAP32[$7+668>>2]=HEAP32[$7>>2];HEAP32[$7+672>>2]=$8;$8=HEAP32[$4+$9>>2];HEAP8[$7+716|0]=HEAPU8[$7+716|0]|1;$14=$7;label$5:{label$6:{if($8){HEAP32[$7+704>>2]=2;HEAP32[$7+708>>2]=2;HEAP32[$7+696>>2]=5;HEAP32[$7+700>>2]=0;$9=HEAPU8[$8|0]|HEAP32[$7+712>>2]&-256;HEAP32[$7+712>>2]=$9;$9=$9&-65281|HEAPU8[$8+1|0]<<8;HEAP32[$7+712>>2]=$9;$9=$9&-16711681|HEAPU8[$8+2|0]<<16;HEAP32[$7+712>>2]=$9;$9=$9&-251658241|(HEAPU8[$8+3|0]&15)<<24;HEAP32[$7+712>>2]=$9;if(!HEAPU8[$6+16|0]){break label$5}HEAP8[$6+16|0]=0;$9=$9|268435456;break label$6}HEAP32[$7+704>>2]=0;HEAP32[$7+708>>2]=0;HEAP32[$7+696>>2]=7;HEAP32[$7+700>>2]=0;$9=HEAP32[$7+712>>2]&-268435456|268435200}HEAP32[$14+712>>2]=$9}$8=dmGui__GetNodePivot_28dmGui__Scene__2c_20unsigned_20int_29($0,$10);if($8>>>0<=8){$8=$8<<2;HEAP32[$7+692>>2]=HEAP32[$8+42644>>2];HEAP32[$7+688>>2]=HEAP32[$8+42608>>2]}dmRender__DrawText_28dmRender__RenderContext__2c_20dmRender__FontMap__2c_20dmRender__Material__2c_20unsigned_20long_20long_2c_20dmRender__DrawTextParams_20const__29(HEAP32[$6>>2],dmGui__GetNodeFont_28dmGui__Scene__2c_20unsigned_20int_29($0,$10),0,0,0,$13)}$11=$11+1|0;if(($11|0)!=($5|0)){continue}break}}$2=HEAP32[$6>>2];$1=HEAPU16[$0+370>>1];$0=HEAP32[$6+12>>2];HEAP32[$6+12>>2]=$0+1;dmRender__FlushTexts_28dmRender__RenderContext__2c_20unsigned_20int_2c_20unsigned_20int_2c_20bool_29($2,2,$0+($1<<16)|0);global$0=$7+768|0;return}__assert_fail(41512,41335,811,41547);abort()}function _GLOBAL__sub_I_comp_label_cpp(){var $0=0,$1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;HEAP32[146144]=dmHashString64(42724);HEAP32[146145]=i64toi32_i32$HIGH_BITS;HEAP32[146146]=dmHashString64(42743);HEAP32[146147]=i64toi32_i32$HIGH_BITS;HEAP32[146148]=dmHashString64(42760);HEAP32[146149]=i64toi32_i32$HIGH_BITS;HEAP32[146150]=dmHashString64(42769);HEAP32[146151]=i64toi32_i32$HIGH_BITS;HEAP32[146152]=dmHashString64(42775);HEAP32[146153]=i64toi32_i32$HIGH_BITS;HEAP32[146154]=dmHashString64(42785);HEAP32[146155]=i64toi32_i32$HIGH_BITS;HEAP32[146156]=dmHashString64(42793);HEAP32[146157]=i64toi32_i32$HIGH_BITS;HEAP32[146158]=dmHashString64(42800);HEAP32[146159]=i64toi32_i32$HIGH_BITS;HEAP32[146160]=dmHashString64(42812);HEAP32[146161]=i64toi32_i32$HIGH_BITS;HEAP32[146162]=dmHashString64(42821);HEAP32[146163]=i64toi32_i32$HIGH_BITS;HEAP32[146164]=dmHashString64(42833);HEAP32[146165]=i64toi32_i32$HIGH_BITS;HEAP32[146166]=dmHashString64(42842);HEAP32[146167]=i64toi32_i32$HIGH_BITS;HEAP32[146168]=dmHashString64(42847);HEAP32[146169]=i64toi32_i32$HIGH_BITS;HEAP32[146170]=dmHashString64(42853);HEAP32[146171]=i64toi32_i32$HIGH_BITS;HEAP32[146172]=dmHashString64(42862);HEAP32[146173]=i64toi32_i32$HIGH_BITS;HEAP32[146174]=dmHashString64(42871);HEAP32[146175]=i64toi32_i32$HIGH_BITS;HEAP32[146176]=dmHashString64(42880);HEAP32[146177]=i64toi32_i32$HIGH_BITS;HEAP32[146178]=dmHashString64(42889);HEAP32[146179]=i64toi32_i32$HIGH_BITS;HEAP32[146180]=dmHashString64(42898);HEAP32[146181]=i64toi32_i32$HIGH_BITS;HEAP32[146182]=dmHashString64(42907);HEAP32[146183]=i64toi32_i32$HIGH_BITS;HEAP32[146184]=dmHashString64(42916);HEAP32[146185]=i64toi32_i32$HIGH_BITS;HEAP32[146186]=dmHashString64(42925);HEAP32[146187]=i64toi32_i32$HIGH_BITS;HEAP32[146188]=dmHashString64(42934);HEAP32[146189]=i64toi32_i32$HIGH_BITS;$0=dmHashString64(42946);$1=i64toi32_i32$HIGH_BITS;$2=dmHashString64(42952);$3=i64toi32_i32$HIGH_BITS;$4=dmHashString64(42960);$5=i64toi32_i32$HIGH_BITS;$6=dmHashString64(42968);HEAP8[584792]=0;HEAP32[146196]=$6;HEAP32[146197]=i64toi32_i32$HIGH_BITS;HEAP32[146194]=$4;HEAP32[146195]=$5;HEAP32[146192]=$2;HEAP32[146193]=$3;HEAP32[146190]=$0;HEAP32[146191]=$1;$0=dmHashString64(42976);$1=i64toi32_i32$HIGH_BITS;$2=dmHashString64(42981);$3=i64toi32_i32$HIGH_BITS;$4=dmHashString64(42988);$5=i64toi32_i32$HIGH_BITS;$6=dmHashString64(42995);HEAP8[584832]=0;HEAP32[146206]=$6;HEAP32[146207]=i64toi32_i32$HIGH_BITS;HEAP32[146204]=$4;HEAP32[146205]=$5;HEAP32[146202]=$2;HEAP32[146203]=$3;HEAP32[146200]=$0;HEAP32[146201]=$1;$0=dmHashString64(43002);$1=i64toi32_i32$HIGH_BITS;$2=dmHashString64(43008);$3=i64toi32_i32$HIGH_BITS;$4=dmHashString64(43016);$5=i64toi32_i32$HIGH_BITS;$6=dmHashString64(43024);$7=i64toi32_i32$HIGH_BITS;$8=dmHashString64(43032);HEAP8[584880]=0;HEAP32[146218]=$8;HEAP32[146219]=i64toi32_i32$HIGH_BITS;HEAP32[146216]=$6;HEAP32[146217]=$7;HEAP32[146214]=$4;HEAP32[146215]=$5;HEAP32[146212]=$2;HEAP32[146213]=$3;HEAP32[146210]=$0;HEAP32[146211]=$1;$0=dmHashString64(43040);$1=i64toi32_i32$HIGH_BITS;$2=dmHashString64(43048);$3=i64toi32_i32$HIGH_BITS;$4=dmHashString64(43058);$5=i64toi32_i32$HIGH_BITS;$6=dmHashString64(43068);$7=i64toi32_i32$HIGH_BITS;$8=dmHashString64(43078);HEAP8[584928]=0;HEAP32[146230]=$8;HEAP32[146231]=i64toi32_i32$HIGH_BITS;HEAP32[146228]=$6;HEAP32[146229]=$7;HEAP32[146226]=$4;HEAP32[146227]=$5;HEAP32[146224]=$2;HEAP32[146225]=$3;HEAP32[146222]=$0;HEAP32[146223]=$1;$0=dmHashString64(43088);$1=i64toi32_i32$HIGH_BITS;$2=dmHashString64(43095);$3=i64toi32_i32$HIGH_BITS;$4=dmHashString64(43104);$5=i64toi32_i32$HIGH_BITS;$6=dmHashString64(43113);$7=i64toi32_i32$HIGH_BITS;$8=dmHashString64(43122);HEAP8[584976]=0;HEAP32[146242]=$8;HEAP32[146243]=i64toi32_i32$HIGH_BITS;HEAP32[146240]=$6;HEAP32[146241]=$7;HEAP32[146238]=$4;HEAP32[146239]=$5;HEAP32[146236]=$2;HEAP32[146237]=$3;HEAP32[146234]=$0;HEAP32[146235]=$1}function dmGameSystem__CompSpineModelOnMessage_28dmGameObject__ComponentOnMessageParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$6=global$0-80|0;global$0=$6;$2=HEAP32[$0+4>>2];$1=HEAP32[$2+16>>2];$4=HEAP32[HEAP32[$0+12>>2]>>2];if(HEAP32[$2+20>>2]-$1>>3>>>0>$4>>>0){$5=HEAP32[$2+4>>2];$2=HEAP32[$2>>2];$1=HEAP32[$1+($4<<3)>>2];if($5-$2>>2>>>0>$1>>>0){$2=HEAP32[$2+($1<<2)>>2];$1=HEAP32[$0+16>>2];$4=HEAP32[$1+64>>2];$3=HEAP32[131295];$5=HEAP32[$1+68>>2];label$3:{if(($4|0)==HEAP32[$3+8>>2]&($5|0)==HEAP32[$3+12>>2]){HEAP8[$2+982|0]=HEAPU8[$2+982|0]|1;$0=HEAP32[$2+132>>2];HEAP8[$0+224|0]=HEAPU8[$0+224|0]&251|4;break label$3}$3=HEAP32[131296];if(($4|0)==HEAP32[$3+8>>2]&($5|0)==HEAP32[$3+12>>2]){HEAP8[$2+982|0]=HEAPU8[$2+982|0]&254;$0=HEAP32[$2+132>>2];HEAP8[$0+224|0]=HEAPU8[$0+224|0]&251;break label$3}if(!HEAP32[$1+76>>2]){break label$3}$3=HEAP32[134170];if(($4|0)==HEAP32[$3+8>>2]&($5|0)==HEAP32[$3+12>>2]){if(dmRig__PlayAnimation_28dmRig__RigInstance__2c_20unsigned_20long_20long_2c_20dmRig__RigPlayback_2c_20float_2c_20float_2c_20float_29(HEAP32[$2+132>>2],HEAP32[$1+96>>2],HEAP32[$1+100>>2],HEAP32[(HEAP32[$1+104>>2]<<2)+586184>>2],HEAPF32[$1+108>>2],HEAPF32[$1+112>>2],HEAPF32[$1+116>>2])){break label$3}$0=HEAP32[$0+16>>2];$1=HEAP32[$0+4>>2];HEAP32[$2+144>>2]=HEAP32[$0>>2];HEAP32[$2+148>>2]=$1;$1=HEAP32[$0+28>>2];HEAP32[$2+168>>2]=HEAP32[$0+24>>2];HEAP32[$2+172>>2]=$1;$1=HEAP32[$0+20>>2];HEAP32[$2+160>>2]=HEAP32[$0+16>>2];HEAP32[$2+164>>2]=$1;$1=HEAP32[$0+12>>2];HEAP32[$2+152>>2]=HEAP32[$0+8>>2];HEAP32[$2+156>>2]=$1;break label$3}$3=HEAP32[134191];if(($4|0)==HEAP32[$3+8>>2]&($5|0)==HEAP32[$3+12>>2]){$0=HEAP32[$2+132>>2];$0=((HEAP8[$0+224|0]&1)<<5)+$0|0;HEAP8[$0+28|0]=HEAPU8[$0+28|0]&254;break label$3}$3=HEAP32[134262];if(($4|0)==HEAP32[$3+8>>2]&($5|0)==HEAP32[$3+12>>2]){$4=HEAP32[$2+960>>2];if(!$4){$4=HEAP32[HEAP32[$2+128>>2]+8>>2]}$5=HEAP32[$1+100>>2];$3=HEAP32[$1+96>>2];HEAP32[$6+16>>2]=HEAP32[$1+112>>2];HEAP32[$6+20>>2]=HEAP32[$1+116>>2];HEAP32[$6+24>>2]=HEAP32[$1+120>>2];HEAP32[$6+28>>2]=HEAP32[$1+124>>2];if((dmGameSystem__SetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20void_20_28__29_28void__2c_20unsigned_20long_20long_2c_20unsigned_20int__2c_20dmGameObject__PropertyVar_20const__29_2c_20void__29($4,$3,$5,dmGameObject__PropertyVar__PropertyVar_28Vectormath__Aos__Vector4_29($6+40|0,$6+16|0),481,$2)|0)!=-1){break label$3}$0=HEAP32[$0+16>>2];$2=dmMessage__GetSocketName_28unsigned_20long_20long_29(HEAP32[$0+32>>2],HEAP32[$0+36>>2]);$4=dmHashReverseSafe64(HEAP32[$0+48>>2],HEAP32[$0+52>>2]);$0=dmHashReverseSafe64(HEAP32[$0+56>>2],HEAP32[$0+60>>2]);HEAP32[$6+12>>2]=dmHashReverseSafe64(HEAP32[$1+96>>2],HEAP32[$1+100>>2]);HEAP32[$6+8>>2]=$0;HEAP32[$6+4>>2]=$4;HEAP32[$6>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,49892,50301,$6);break label$3}$0=HEAP32[134278];if(HEAP32[$0+8>>2]!=($4|0)|HEAP32[$0+12>>2]!=($5|0)){break label$3}$3=HEAP32[$2+944>>2];if(!$3){break label$3}$5=HEAP32[$1+96>>2];$1=HEAP32[$1+100>>2];$0=0;while(1){$4=$2+($0<<5)|0;$7=$4+192|0;if(HEAP32[$7>>2]==($5|0)&HEAP32[$7+4>>2]==($1|0)){$1=$2+176|0;$5=$1+($0<<5)|0;$3=$3+ -1|0;$1=$1+($3<<5)|0;HEAP32[$5>>2]=HEAP32[$1>>2];HEAP32[$5+4>>2]=HEAP32[$1+4>>2];HEAP32[$5+8>>2]=HEAP32[$1+8>>2];HEAP32[$5+12>>2]=HEAP32[$1+12>>2];$5=HEAP32[$1+28>>2];HEAP32[$4+200>>2]=HEAP32[$1+24>>2];HEAP32[$4+204>>2]=$5;$5=HEAP32[$1+20>>2];HEAP32[$4+192>>2]=HEAP32[$1+16>>2];HEAP32[$4+196>>2]=$5;$1=$2+688|0;$0=$1+($0<<4)|0;$1=$1+($3<<4)|0;HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=HEAP32[$1+4>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=HEAP32[$1+12>>2];HEAP32[$2+944>>2]=$3;HEAP8[$2+982|0]=HEAPU8[$2+982|0]|8;break label$3}$0=$0+1|0;if(($3|0)!=($0|0)){continue}break}}global$0=$6+80|0;return 0}}__assert_fail(50664,50554,430,50675);abort()}function VP8ParseQuant($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$1=$0+12|0;$2=VP8GetValue($1,7);if(VP8GetValue($1,1)){$8=VP8GetSignedValue($1,4)}if(VP8GetValue($1,1)){$9=VP8GetSignedValue($1,4)}if(VP8GetValue($1,1)){$10=VP8GetSignedValue($1,4)}if(VP8GetValue($1,1)){$11=VP8GetSignedValue($1,4)}$5=!VP8GetValue($1,1);$4=0;label$5:{if($5){break label$5}$4=VP8GetSignedValue($1,4)}$1=$2;$6=HEAP32[$0+104>>2];if($6){$1=HEAP8[$0+116|0]+(HEAP32[$0+112>>2]?0:$2)|0}$5=$1+$4|0;HEAP32[$0+800>>2]=$5;$7=$1+$11|0;$7=($7|0)<117?$7:117;HEAP32[$0+792>>2]=HEAPU8[(($7|0)>0?$7:0)+174624|0];$7=($1|0)<127?$1:127;HEAP32[$0+780>>2]=HEAPU16[((($7|0)>0?$7:0)<<1)+174752>>1];$7=$1+$8|0;$7=($7|0)<127?$7:127;HEAP32[$0+776>>2]=HEAPU8[(($7|0)>0?$7:0)+174624|0];$5=($5|0)<127?$5:127;HEAP32[$0+796>>2]=HEAPU16[((($5|0)>0?$5:0)<<1)+174752>>1];$5=$1+$9|0;$5=($5|0)<127?$5:127;HEAP32[$0+784>>2]=HEAPU8[(($5|0)>0?$5:0)+174624|0]<<1;$1=$1+$10|0;$1=($1|0)<127?$1:127;$1=Math_imul(HEAPU16[((($1|0)>0?$1:0)<<1)+174752>>1],101581);HEAP32[$0+788>>2]=$1>>>0<524288?8:$1>>>16|0;if(!$6){$1=$0+776|0;$2=HEAP32[$1+4>>2];HEAP32[$0+808>>2]=HEAP32[$1>>2];HEAP32[$0+812>>2]=$2;$2=HEAP32[$1+28>>2];HEAP32[$0+832>>2]=HEAP32[$1+24>>2];HEAP32[$0+836>>2]=$2;$2=HEAP32[$1+20>>2];HEAP32[$0+824>>2]=HEAP32[$1+16>>2];HEAP32[$0+828>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+816>>2]=HEAP32[$1+8>>2];HEAP32[$0+820>>2]=$2;$2=HEAP32[$1+4>>2];HEAP32[$0+840>>2]=HEAP32[$1>>2];HEAP32[$0+844>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+848>>2]=HEAP32[$1+8>>2];HEAP32[$0+852>>2]=$2;$2=HEAP32[$1+20>>2];HEAP32[$0+856>>2]=HEAP32[$1+16>>2];HEAP32[$0+860>>2]=$2;$2=HEAP32[$1+28>>2];HEAP32[$0+864>>2]=HEAP32[$1+24>>2];HEAP32[$0+868>>2]=$2;$2=HEAP32[$1+4>>2];HEAP32[$0+872>>2]=HEAP32[$1>>2];HEAP32[$0+876>>2]=$2;$2=HEAP32[$1+12>>2];HEAP32[$0+880>>2]=HEAP32[$1+8>>2];HEAP32[$0+884>>2]=$2;$2=HEAP32[$1+20>>2];HEAP32[$0+888>>2]=HEAP32[$1+16>>2];HEAP32[$0+892>>2]=$2;$2=HEAP32[$1+28>>2];HEAP32[$0+896>>2]=HEAP32[$1+24>>2];HEAP32[$0+900>>2]=$2;return}$5=HEAP32[$0+112>>2]?0:$2;$1=$5+HEAP8[$0+117|0]|0;$6=$1+$4|0;HEAP32[$0+832>>2]=$6;$5=$5+HEAP8[$0+118|0]|0;$7=$5+$4|0;HEAP32[$0+864>>2]=$7;$3=$1+$11|0;$3=($3|0)<117?$3:117;HEAP32[$0+824>>2]=HEAPU8[(($3|0)>0?$3:0)+174624|0];$3=($1|0)<127?$1:127;HEAP32[$0+812>>2]=HEAPU16[((($3|0)>0?$3:0)<<1)+174752>>1];$3=$1+$8|0;$3=($3|0)<127?$3:127;HEAP32[$0+808>>2]=HEAPU8[(($3|0)>0?$3:0)+174624|0];$3=$5+$11|0;$3=($3|0)<117?$3:117;HEAP32[$0+856>>2]=HEAPU8[(($3|0)>0?$3:0)+174624|0];$3=($5|0)<127?$5:127;HEAP32[$0+844>>2]=HEAPU16[((($3|0)>0?$3:0)<<1)+174752>>1];$3=$5+$8|0;$3=($3|0)<127?$3:127;HEAP32[$0+840>>2]=HEAPU8[(($3|0)>0?$3:0)+174624|0];$6=($6|0)<127?$6:127;HEAP32[$0+828>>2]=HEAPU16[((($6|0)>0?$6:0)<<1)+174752>>1];$6=$1+$9|0;$6=($6|0)<127?$6:127;HEAP32[$0+816>>2]=HEAPU8[(($6|0)>0?$6:0)+174624|0]<<1;$6=($7|0)<127?$7:127;HEAP32[$0+860>>2]=HEAPU16[((($6|0)>0?$6:0)<<1)+174752>>1];$6=$5+$9|0;$6=($6|0)<127?$6:127;HEAP32[$0+848>>2]=HEAPU8[(($6|0)>0?$6:0)+174624|0]<<1;$1=$1+$10|0;$1=($1|0)<127?$1:127;$1=Math_imul(HEAPU16[((($1|0)>0?$1:0)<<1)+174752>>1],101581);HEAP32[$0+820>>2]=$1>>>0<524288?8:$1>>>16|0;$1=$5+$10|0;$1=($1|0)<127?$1:127;$1=Math_imul(HEAPU16[((($1|0)>0?$1:0)<<1)+174752>>1],101581);HEAP32[$0+852>>2]=$1>>>0<524288?8:$1>>>16|0;$1=HEAP8[$0+119|0]+(HEAP32[$0+112>>2]?0:$2)|0;$2=$1+$4|0;HEAP32[$0+896>>2]=$2;$4=$1+$8|0;$4=($4|0)<127?$4:127;HEAP32[$0+872>>2]=HEAPU8[(($4|0)>0?$4:0)+174624|0];$4=($1|0)<127?$1:127;HEAP32[$0+876>>2]=HEAPU16[((($4|0)>0?$4:0)<<1)+174752>>1];$4=$1+$11|0;$4=($4|0)<117?$4:117;HEAP32[$0+888>>2]=HEAPU8[(($4|0)>0?$4:0)+174624|0];$4=$1+$9|0;$4=($4|0)<127?$4:127;HEAP32[$0+880>>2]=HEAPU8[(($4|0)>0?$4:0)+174624|0]<<1;$2=($2|0)<127?$2:127;HEAP32[$0+892>>2]=HEAPU16[((($2|0)>0?$2:0)<<1)+174752>>1];$2=$0;$0=$1+$10|0;$0=($0|0)<127?$0:127;$0=Math_imul(HEAPU16[((($0|0)>0?$0:0)<<1)+174752>>1],101581);HEAP32[$2+884>>2]=$0>>>0<524288?8:$0>>>16|0}function dmRender__NewRenderContext_28dmGraphics__Context__2c_20dmRender__RenderContextParams_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$3=global$0+ -64|0;global$0=$3;$2=operator_20new_28unsigned_20long_29(4048);dmRender__DebugRenderer__DebugRenderer_28_29($2+32|0);$4=$2+3608|0;HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=0;HEAP32[$2+3600>>2]=0;HEAP32[$2+3604>>2]=0;HEAP32[$2+3644>>2]=0;HEAP32[$2+3648>>2]=0;$4=$2+3652|0;HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=0;$4=$2+3660|0;HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=0;$4=$2+3668|0;HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=0;HEAP32[$2+3688>>2]=0;HEAP32[$2+3692>>2]=0;HEAP32[$2+3696>>2]=0;HEAP32[$2+3700>>2]=0;HEAP32[$2+3704>>2]=0;HEAP32[$2+3708>>2]=0;memset($2+3716|0,0,96);dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$1+20>>2],4,$2+3696|0,$2+3704|0,$2+3700|0);HEAP32[$2+4016>>2]=$0;HEAP32[$2+3700>>2]=HEAP32[$2+3696>>2];HEAP32[$2+3812>>2]=HEAP32[$1+4>>2];HEAP32[$2+3908>>2]=1065353216;$0=$2+3900|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$2+3892>>2]=0;HEAP32[$2+3896>>2]=0;HEAP32[$2+3884>>2]=1065353216;HEAP32[$2+3888>>2]=1065353216;HEAP32[$2+3912>>2]=0;HEAP32[$2+3916>>2]=0;$0=$2+3920|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;$0=$2+3876|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$2+3864>>2]=1065353216;HEAP32[$2+3868>>2]=0;HEAP32[$2+3872>>2]=0;HEAP32[$2+3928>>2]=1065353216;$0=$2+3856|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$2+3844>>2]=1065353216;HEAP32[$2+3848>>2]=0;HEAP32[$2+3852>>2]=0;HEAP32[$2+3932>>2]=0;HEAP32[$2+3936>>2]=0;$0=$2+3940|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;$0=$2+3836|0;HEAP32[$0>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$2+3824>>2]=1065353216;HEAP32[$2+3828>>2]=0;HEAP32[$2+3832>>2]=0;HEAP32[$2+4020>>2]=0;HEAP32[$2+3948>>2]=1065353216;Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($3,$2+3888|0,$2+3824|0);HEAP32[$2+3952>>2]=HEAP32[$3>>2];HEAP32[$2+3956>>2]=HEAP32[$3+4>>2];HEAP32[$2+3960>>2]=HEAP32[$3+8>>2];HEAP32[$2+3964>>2]=HEAP32[$3+12>>2];HEAP32[$2+3968>>2]=HEAP32[$3+16>>2];HEAP32[$2+3972>>2]=HEAP32[$3+20>>2];HEAP32[$2+3976>>2]=HEAP32[$3+24>>2];HEAP32[$2+3980>>2]=HEAP32[$3+28>>2];HEAP32[$2+3984>>2]=HEAP32[$3+32>>2];HEAP32[$2+3988>>2]=HEAP32[$3+36>>2];HEAP32[$2+3992>>2]=HEAP32[$3+40>>2];HEAP32[$2+3996>>2]=HEAP32[$3+44>>2];HEAP32[$2+4e3>>2]=HEAP32[$3+48>>2];HEAP32[$2+4004>>2]=HEAP32[$3+52>>2];HEAP32[$2+4008>>2]=HEAP32[$3+56>>2];HEAP32[$2+4012>>2]=HEAP32[$3+60>>2];$0=HEAP32[$1>>2];HEAP32[$2+3684>>2]=$0;dmRender__InitializeRenderScriptContext_28dmRender__RenderScriptContext__2c_20dmScript__Context__2c_20unsigned_20int_29($2+3688|0,$0,HEAP32[$1+40>>2]);$0=dmScript__NewScriptWorld_28dmScript__Context__29(HEAP32[$2+3684>>2]);HEAP32[$2+3568>>2]=0;HEAP32[$2+3712>>2]=$0;$0=HEAP32[$1+8>>2];label$1:{if(!$0){break label$1}$4=HEAP32[$1+28>>2];if(!$4){break label$1}$5=HEAP32[$1+12>>2];if(!$5){break label$1}$6=HEAP32[$1+32>>2];if(!$6){break label$1}dmRender__InitializeDebugRenderer_28dmRender__RenderContext__2c_20unsigned_20int_2c_20void_20const__2c_20unsigned_20int_2c_20void_20const__2c_20unsigned_20int_29($2,HEAP32[$1+44>>2],$0,$4,$5,$6)}HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;dmRender__InitializeTextContext_28dmRender__RenderContext__2c_20unsigned_20int_29($2,HEAP32[$1+36>>2]);HEAP8[$2+4032|0]=HEAPU8[$2+4032|0]&252;label$2:{if(!(HEAP8[$2+3744|0]&1)){dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(255,8,$2+3732|0,$2+3740|0,$2+3736|0);if(dmMessage__NewSocket_28char_20const__2c_20unsigned_20long_20long__29(HEAP32[136523],$2+4024|0)){break label$2}global$0=$3- -64|0;return $2}__assert_fail(101129,101204,444,101275);abort()}__assert_fail(100563,100589,141,100614);abort()}function dmGameSystem__AcquireResources_28dmGraphics__Context__2c_20dmResource__SResourceFactory__2c_20dmGameSystem__MeshResource__2c_20char_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$2=global$0-32|0;global$0=$2;label$1:{label$2:{$5=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[HEAP32[$1>>2]>>2],$1+8|0);if($5){break label$2}$5=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,HEAP32[HEAP32[$1>>2]+4>>2],$1+4|0);if($5){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,HEAP32[HEAP32[$1>>2]>>2]);break label$2}HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;label$4:{$4=HEAP32[$1>>2];$3=HEAP32[$4+12>>2];if(!$3){break label$4}$5=0;label$5:{while(1){if($3>>>0>$6>>>0){$3=$6<<2;$4=HEAP32[$3+HEAP32[$4+8>>2]>>2];label$8:{if(!HEAPU8[$4|0]){break label$8}$3=$2+$3|0;$4=dmResource__Get_28dmResource__SResourceFactory__2c_20char_20const__2c_20void___29($0,$4,$3);if($4){$5=$5?$5:$4;break label$8}$3=dmResource__GetPath_28dmResource__SResourceFactory__2c_20void_20const__2c_20unsigned_20long_20long__29($0,HEAP32[$3>>2],(($6<<3)+$1|0)+48|0);$5=$3?$3:$5}$4=HEAP32[$1>>2];if($6>>>0>6){break label$5}$6=$6+1|0;$3=HEAP32[$4+12>>2];if($6>>>0<$3>>>0){continue}break label$5}break}__assert_fail(57599,57649,25,57638);abort()}if(!$5){break label$4}dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,HEAP32[$4>>2]);dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,HEAP32[HEAP32[$1>>2]+4>>2]);$1=HEAP32[$2>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+4>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+8>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+12>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+16>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+20>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+24>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1)}$1=HEAP32[$2+28>>2];if(!$1){break label$2}dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1);break label$2}$0=HEAP32[$2+4>>2];HEAP32[$1+12>>2]=HEAP32[$2>>2];HEAP32[$1+16>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+20>>2]=HEAP32[$2+8>>2];HEAP32[$1+24>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+36>>2]=HEAP32[$2+24>>2];HEAP32[$1+40>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+28>>2]=HEAP32[$2+16>>2];HEAP32[$1+32>>2]=$0;$0=$1;if(HEAP32[HEAP32[$1+4>>2]+4>>2]){dmGameSystem__BuildVertices_28dmGameSystem__MeshResource__29($1);$4=HEAP32[$1>>2]}HEAP32[$0+136>>2]=dmHashString64(HEAP32[$4+20>>2]);HEAP32[$0+140>>2]=i64toi32_i32$HIGH_BITS;HEAP32[$1+152>>2]=dmHashString64(HEAP32[HEAP32[$1>>2]+24>>2]);HEAP32[$1+156>>2]=i64toi32_i32$HIGH_BITS;$7=HEAP32[$1+4>>2];$4=HEAP32[$7>>2];$8=HEAP32[$4+4>>2];if(!$8){$5=0;break label$2}$5=$1+144|0;$10=$1+160|0;$6=0;label$20:{while(1){$9=Math_imul($6,52);$0=dmHashString64(HEAP32[$9+HEAP32[$4>>2]>>2]);$3=i64toi32_i32$HIGH_BITS;label$22:{label$23:{if(($0|0)==HEAP32[$1+136>>2]&($3|0)==HEAP32[$1+140>>2]){$3=$5;$0=HEAP32[$7>>2];if(HEAPU32[$0+4>>2]>$6>>>0){break label$23}break label$1}if(HEAP32[$1+152>>2]!=($0|0)|HEAP32[$1+156>>2]!=($3|0)){break label$22}$3=$10;$0=HEAP32[$7>>2];if(HEAPU32[$0+4>>2]<=$6>>>0){break label$20}}HEAP32[$3>>2]=HEAP32[(HEAP32[$0>>2]+$9|0)+4>>2]}$6=$6+1|0;if(($8|0)==($6|0)){$5=0;break label$2}$4=HEAP32[$7>>2];if(HEAPU32[$4+4>>2]>$6>>>0){continue}break}break label$1}break label$1}global$0=$2+32|0;return $5}__assert_fail(57599,57611,80,57638);abort()}function mbedtls_sha512_finish_ret($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$2=HEAP32[$0+4>>2];$5=HEAP32[$0>>2];$4=$5&127;$6=$0+80|0;$3=$4+$6|0;HEAP8[$3|0]=128;$3=$3+1|0;label$1:{if($4>>>0<=111){memset($3,0,111-$4|0);break label$1}memset($3,0,$4^127);mbedtls_internal_sha512_process($0,$6);memset($6,0,112);$5=HEAP32[$0>>2];$2=HEAP32[$0+4>>2]}HEAP8[$0+206|0]=($2&31)<<27|$5>>>5;HEAP8[$0+205|0]=($2&8191)<<19|$5>>>13;HEAP8[$0+204|0]=($2&2097151)<<11|$5>>>21;HEAP8[$0+203|0]=($2&536870911)<<3|$5>>>29;HEAP8[$0+202|0]=$2>>>5;HEAP8[$0+201|0]=$2>>>13;HEAP8[$0+200|0]=$2>>>21;HEAP8[$0+207|0]=$5<<3;$3=HEAP32[$0+12>>2];$4=$3;$5=($3&31)<<27;$3=HEAP32[$0+8>>2];HEAP8[$0+198|0]=$5|$3>>>5;HEAP8[$0+197|0]=($4&8191)<<19|$3>>>13;HEAP8[$0+196|0]=($4&2097151)<<11|$3>>>21;HEAP8[$0+195|0]=($4&536870911)<<3|$3>>>29;HEAP8[$0+194|0]=$4>>>5;HEAP8[$0+193|0]=$4>>>13;HEAP8[$0+192|0]=$4>>>21;HEAP8[$0+199|0]=$3<<3|$2>>>29;mbedtls_internal_sha512_process($0,$6);HEAP8[$1|0]=HEAPU8[$0+23|0];HEAP8[$1+1|0]=HEAPU16[$0+22>>1];HEAP8[$1+2|0]=HEAP32[$0+20>>2]>>>8;HEAP8[$1+3|0]=HEAP32[$0+20>>2];HEAP8[$1+4|0]=(HEAP32[$0+20>>2]&16777215)<<8|HEAP32[$0+16>>2]>>>24;HEAP8[$1+5|0]=(HEAP32[$0+20>>2]&65535)<<16|HEAP32[$0+16>>2]>>>16;HEAP8[$1+6|0]=(HEAP32[$0+20>>2]&255)<<24|HEAP32[$0+16>>2]>>>8;HEAP8[$1+7|0]=HEAP32[$0+16>>2];HEAP8[$1+8|0]=HEAPU8[$0+31|0];HEAP8[$1+9|0]=HEAPU16[$0+30>>1];HEAP8[$1+10|0]=HEAP32[$0+28>>2]>>>8;HEAP8[$1+11|0]=HEAP32[$0+28>>2];HEAP8[$1+12|0]=(HEAP32[$0+28>>2]&16777215)<<8|HEAP32[$0+24>>2]>>>24;HEAP8[$1+13|0]=(HEAP32[$0+28>>2]&65535)<<16|HEAP32[$0+24>>2]>>>16;HEAP8[$1+14|0]=(HEAP32[$0+28>>2]&255)<<24|HEAP32[$0+24>>2]>>>8;HEAP8[$1+15|0]=HEAP32[$0+24>>2];HEAP8[$1+16|0]=HEAPU8[$0+39|0];HEAP8[$1+17|0]=HEAPU16[$0+38>>1];HEAP8[$1+18|0]=HEAP32[$0+36>>2]>>>8;HEAP8[$1+19|0]=HEAP32[$0+36>>2];HEAP8[$1+20|0]=(HEAP32[$0+36>>2]&16777215)<<8|HEAP32[$0+32>>2]>>>24;HEAP8[$1+21|0]=(HEAP32[$0+36>>2]&65535)<<16|HEAP32[$0+32>>2]>>>16;HEAP8[$1+22|0]=(HEAP32[$0+36>>2]&255)<<24|HEAP32[$0+32>>2]>>>8;HEAP8[$1+23|0]=HEAP32[$0+32>>2];HEAP8[$1+24|0]=HEAPU8[$0+47|0];HEAP8[$1+25|0]=HEAPU16[$0+46>>1];HEAP8[$1+26|0]=HEAP32[$0+44>>2]>>>8;HEAP8[$1+27|0]=HEAP32[$0+44>>2];HEAP8[$1+28|0]=(HEAP32[$0+44>>2]&16777215)<<8|HEAP32[$0+40>>2]>>>24;HEAP8[$1+29|0]=(HEAP32[$0+44>>2]&65535)<<16|HEAP32[$0+40>>2]>>>16;HEAP8[$1+30|0]=(HEAP32[$0+44>>2]&255)<<24|HEAP32[$0+40>>2]>>>8;HEAP8[$1+31|0]=HEAP32[$0+40>>2];HEAP8[$1+32|0]=HEAPU8[$0+55|0];HEAP8[$1+33|0]=HEAPU16[$0+54>>1];HEAP8[$1+34|0]=HEAP32[$0+52>>2]>>>8;HEAP8[$1+35|0]=HEAP32[$0+52>>2];HEAP8[$1+36|0]=(HEAP32[$0+52>>2]&16777215)<<8|HEAP32[$0+48>>2]>>>24;HEAP8[$1+37|0]=(HEAP32[$0+52>>2]&65535)<<16|HEAP32[$0+48>>2]>>>16;HEAP8[$1+38|0]=(HEAP32[$0+52>>2]&255)<<24|HEAP32[$0+48>>2]>>>8;HEAP8[$1+39|0]=HEAP32[$0+48>>2];HEAP8[$1+40|0]=HEAPU8[$0+63|0];HEAP8[$1+41|0]=HEAPU16[$0+62>>1];HEAP8[$1+42|0]=HEAP32[$0+60>>2]>>>8;HEAP8[$1+43|0]=HEAP32[$0+60>>2];HEAP8[$1+44|0]=(HEAP32[$0+60>>2]&16777215)<<8|HEAP32[$0+56>>2]>>>24;HEAP8[$1+45|0]=(HEAP32[$0+60>>2]&65535)<<16|HEAP32[$0+56>>2]>>>16;HEAP8[$1+46|0]=(HEAP32[$0+60>>2]&255)<<24|HEAP32[$0+56>>2]>>>8;HEAP8[$1+47|0]=HEAP32[$0+56>>2];if(!HEAP32[$0+208>>2]){HEAP8[$1+48|0]=HEAPU8[$0+71|0];HEAP8[$1+49|0]=HEAPU16[$0+70>>1];$2=$0- -64|0;$3=HEAP32[$2+4>>2];HEAP8[$1+50|0]=$3>>>8;HEAP8[$1+51|0]=HEAP32[$0+68>>2];HEAP8[$1+52|0]=(HEAP32[$2+4>>2]&16777215)<<8|HEAP32[$2>>2]>>>24;HEAP8[$1+53|0]=(HEAP32[$2+4>>2]&65535)<<16|HEAP32[$2>>2]>>>16;HEAP8[$1+54|0]=(HEAP32[$2+4>>2]&255)<<24|HEAP32[$2>>2]>>>8;HEAP8[$1+55|0]=HEAP32[$2>>2];HEAP8[$1+56|0]=HEAPU8[$0+79|0];HEAP8[$1+57|0]=HEAPU16[$0+78>>1];HEAP8[$1+58|0]=HEAP32[$0+76>>2]>>>8;HEAP8[$1+59|0]=HEAP32[$0+76>>2];HEAP8[$1+60|0]=(HEAP32[$0+76>>2]&16777215)<<8|HEAP32[$0+72>>2]>>>24;HEAP8[$1+61|0]=(HEAP32[$0+76>>2]&65535)<<16|HEAP32[$0+72>>2]>>>16;HEAP8[$1+62|0]=(HEAP32[$0+76>>2]&255)<<24|HEAP32[$0+72>>2]>>>8;HEAP8[$1+63|0]=HEAP32[$0+72>>2]}return 0}function dmGameSystem__CompMeshRender_28dmGameObject__ComponentsRenderParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$1=global$0-80|0;global$0=$1;$5=HEAP32[$0+4>>2];$6=HEAP32[HEAP32[$0+8>>2]>>2];label$1:{if(HEAP8[585204]&1){break label$1}if(!__cxa_guard_acquire(585204)){break label$1}if(HEAPU8[1130703]){$0=dmProfile__AllocateScope_28char_20const__29(44626)}else{$0=-1}HEAP32[146300]=$0;__cxa_guard_release(585204)}label$3:{if(HEAP8[585212]&1){break label$3}if(!__cxa_guard_acquire(585212)){break label$3}if(HEAPU8[1130703]){$0=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(44631,16)}else{$0=0}HEAP32[146302]=$0;__cxa_guard_release(585212)}$0=HEAP32[146300];label$5:{if(($0|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($1- -64|0,$0,44631,HEAP32[146302]);break label$5}HEAP32[$1+64>>2]=0}label$7:{label$8:{$4=HEAP32[$5+40>>2];$0=HEAP32[$5+36>>2];$2=$4-$0|0;if(!$2){break label$8}if(($0|0)!=($4|0)){$4=$2>>2;$3=$4>>>0>1?$4:1;$2=0;while(1){$0=HEAP32[($2<<2)+$0>>2];label$11:{if((HEAPU8[$0+1002|0]&3)!=3){break label$11}$4=dmGameObject__GetWorldMatrix_28dmGameObject__Instance__29(HEAP32[$0>>2]);if((HEAPU8[HEAP32[$0>>2]+137|0]&2)>>>1){Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($1,$4,$0+16|0);HEAP32[$0+80>>2]=HEAP32[$1>>2];HEAP32[$0+84>>2]=HEAP32[$1+4>>2];HEAP32[$0+88>>2]=HEAP32[$1+8>>2];HEAP32[$0+92>>2]=HEAP32[$1+12>>2];HEAP32[$0+96>>2]=HEAP32[$1+16>>2];HEAP32[$0+100>>2]=HEAP32[$1+20>>2];HEAP32[$0+104>>2]=HEAP32[$1+24>>2];HEAP32[$0+108>>2]=HEAP32[$1+28>>2];HEAP32[$0+112>>2]=HEAP32[$1+32>>2];HEAP32[$0+116>>2]=HEAP32[$1+36>>2];HEAP32[$0+120>>2]=HEAP32[$1+40>>2];HEAP32[$0+124>>2]=HEAP32[$1+44>>2];HEAP32[$0+128>>2]=HEAP32[$1+48>>2];HEAP32[$0+132>>2]=HEAP32[$1+52>>2];HEAP32[$0+136>>2]=HEAP32[$1+56>>2];HEAP32[$0+140>>2]=HEAP32[$1+60>>2];break label$11}dmTransform__MulNoScaleZ_28Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__29($1,$4,$0+16|0);HEAP32[$0+80>>2]=HEAP32[$1>>2];HEAP32[$0+84>>2]=HEAP32[$1+4>>2];HEAP32[$0+88>>2]=HEAP32[$1+8>>2];HEAP32[$0+92>>2]=HEAP32[$1+12>>2];HEAP32[$0+96>>2]=HEAP32[$1+16>>2];HEAP32[$0+100>>2]=HEAP32[$1+20>>2];HEAP32[$0+104>>2]=HEAP32[$1+24>>2];HEAP32[$0+108>>2]=HEAP32[$1+28>>2];HEAP32[$0+112>>2]=HEAP32[$1+32>>2];HEAP32[$0+116>>2]=HEAP32[$1+36>>2];HEAP32[$0+120>>2]=HEAP32[$1+40>>2];HEAP32[$0+124>>2]=HEAP32[$1+44>>2];HEAP32[$0+128>>2]=HEAP32[$1+48>>2];HEAP32[$0+132>>2]=HEAP32[$1+52>>2];HEAP32[$0+136>>2]=HEAP32[$1+56>>2];HEAP32[$0+140>>2]=HEAP32[$1+60>>2]}$2=$2+1|0;if(($3|0)==($2|0)){break label$8}$0=HEAP32[$5+36>>2];if(HEAP32[$5+40>>2]-$0>>2>>>0>$2>>>0){continue}break}}break label$7}if(HEAP32[$1+64>>2]){dmProfile__ProfileScope__EndScope_28_29($1- -64|0)}$3=HEAP32[$5+40>>2]-HEAP32[$5+36>>2]|0;$2=$3>>2;$4=dmRender__RenderListAlloc_28dmRender__RenderContext__2c_20unsigned_20int_29($6,$2);$7=dmRender__RenderListMakeDispatch_28dmRender__RenderContext__2c_20void_20_28__29_28dmRender__RenderListDispatchParams_20const__29_2c_20void__29($6,466,$5);$0=$4;label$14:{if($3){$8=$2>>>0>1?$2:1;$7=$7<<6;$2=0;while(1){$3=HEAP32[$5+36>>2];if(HEAP32[$5+40>>2]-$3>>2>>>0<=$2>>>0){break label$14}$3=HEAP32[$3+($2<<2)>>2];if(HEAP8[$3+1002|0]&1){$9=HEAP32[$3+128>>2];$10=HEAP32[$3+132>>2];$11=HEAP32[$3+136>>2];HEAP32[$0+32>>2]=$3;HEAP32[$0+36>>2]=0;HEAP32[$0+8>>2]=$11;HEAP32[$0>>2]=$9;HEAP32[$0+4>>2]=$10;HEAP32[$0+20>>2]=HEAP32[$3+144>>2];HEAP32[$0+24>>2]=HEAP32[HEAP32[HEAP32[$3+944>>2]+8>>2]+80>>2];HEAP16[$0+40>>1]=$7|HEAPU16[$0+40>>1]&49152|16;$0=$0+48|0}$2=$2+1|0;if(($8|0)!=($2|0)){continue}break}}dmRender__RenderListSubmit_28dmRender__RenderContext__2c_20dmRender__RenderListEntry__2c_20dmRender__RenderListEntry__29($6,$4,$0);global$0=$1+80|0;return 0}}__assert_fail(45474,44749,430,45485);abort()}function bool_20std____2____insertion_sort_incomplete_dmGameObject__ComponentTypeSortPred__2c_20unsigned_20short___28unsigned_20short__2c_20unsigned_20short__2c_20dmGameObject__ComponentTypeSortPred__29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$8=1;label$1:{$3=$1-$0>>1;label$2:{if($3>>>0<=5){label$4:{switch($3-2|0){case 0:$2=HEAP32[$2>>2]+8|0;$1=$1+ -2|0;$3=HEAPU16[$1>>1];$4=HEAPU16[$0>>1];if(HEAPU16[($2+Math_imul($3,96)|0)+92>>1]>=HEAPU16[($2+Math_imul($4,96)|0)+92>>1]){break label$2}HEAP16[$0>>1]=$3;HEAP16[$1>>1]=$4;break label$1;case 1:$4=HEAP32[$2>>2];$5=$4+8|0;$1=$1+ -2|0;$3=HEAPU16[$1>>1];$9=HEAPU16[($5+Math_imul($3,96)|0)+92>>1];$6=HEAPU16[$0+2>>1];$7=HEAPU16[($5+Math_imul($6,96)|0)+92>>1];$2=HEAPU16[$0>>1];$5=$5+Math_imul($2,96)|0;if($7>>>0>=HEAPU16[$5+92>>1]){if($9>>>0>=$7>>>0){break label$2}HEAP16[$0+2>>1]=$3;HEAP16[$1>>1]=$6;$2=$4+8|0;$1=HEAPU16[$0+2>>1];$3=HEAPU16[$0>>1];if(HEAPU16[($2+Math_imul($1,96)|0)+92>>1]>=HEAPU16[($2+Math_imul($3,96)|0)+92>>1]){break label$2}HEAP16[$0+2>>1]=$3;HEAP16[$0>>1]=$1;break label$1}if($9>>>0<$7>>>0){HEAP16[$0>>1]=$3;HEAP16[$1>>1]=$2;break label$1}HEAP16[$0+2>>1]=$2;HEAP16[$0>>1]=$6;$3=HEAPU16[$1>>1];if(HEAPU16[($4+Math_imul($3,96)|0)+100>>1]>=HEAPU16[$5+92>>1]){break label$2}HEAP16[$0+2>>1]=$3;HEAP16[$1>>1]=$2;break label$1;case 2:unsigned_20int_20std____2____sort4_dmGameObject__ComponentTypeSortPred__2c_20unsigned_20short___28unsigned_20short__2c_20unsigned_20short__2c_20unsigned_20short__2c_20unsigned_20short__2c_20dmGameObject__ComponentTypeSortPred__29($0,$0+2|0,$0+4|0,$1+ -2|0,$2);break label$1;case 3:break label$4;default:break label$2}}unsigned_20int_20std____2____sort4_dmGameObject__ComponentTypeSortPred__2c_20unsigned_20short___28unsigned_20short__2c_20unsigned_20short__2c_20unsigned_20short__2c_20unsigned_20short__2c_20dmGameObject__ComponentTypeSortPred__29($0,$0+2|0,$0+4|0,$0+6|0,$2);$4=$1+ -2|0;$5=HEAPU16[$4>>1];$3=HEAP32[$2>>2];$1=$3+8|0;$2=HEAPU16[$0+6>>1];if(HEAPU16[(Math_imul($5,96)+$1|0)+92>>1]>=HEAPU16[($1+Math_imul($2,96)|0)+92>>1]){break label$2}HEAP16[$0+6>>1]=$5;HEAP16[$4>>1]=$2;$2=HEAPU16[$0+6>>1];$4=$1+Math_imul($2,96)|0;$5=HEAPU16[$0+4>>1];if(HEAPU16[$4+92>>1]>=HEAPU16[($1+Math_imul($5,96)|0)+92>>1]){break label$2}HEAP16[$0+4>>1]=$2;HEAP16[$0+6>>1]=$5;$1=HEAPU16[$0+2>>1];if(HEAPU16[$4+92>>1]>=HEAPU16[($3+Math_imul($1,96)|0)+100>>1]){break label$2}HEAP16[$0+4>>1]=$1;HEAP16[$0+2>>1]=$2;$1=HEAPU16[$0>>1];if(HEAPU16[$4+92>>1]>=HEAPU16[($3+Math_imul($1,96)|0)+100>>1]){break label$2}HEAP16[$0+2>>1]=$1;HEAP16[$0>>1]=$2;break label$1}$9=HEAP32[$2>>2];$5=$9+8|0;$3=HEAPU16[$0+4>>1];$2=$5+Math_imul($3,96)|0;$6=$2;$7=HEAPU16[$2+92>>1];$2=HEAPU16[$0+2>>1];$10=HEAPU16[($5+Math_imul($2,96)|0)+92>>1];$4=HEAPU16[$0>>1];$5=$5+Math_imul($4,96)|0;label$10:{if($10>>>0>=HEAPU16[$5+92>>1]){if($7>>>0>=$10>>>0){$2=$3;break label$10}HEAP16[$0+4>>1]=$2;HEAP16[$0+2>>1]=$3;if(HEAPU16[$6+92>>1]>=HEAPU16[$5+92>>1]){break label$10}HEAP16[$0+2>>1]=$4;HEAP16[$0>>1]=$3;break label$10}label$13:{if($7>>>0<$10>>>0){HEAP16[$0+4>>1]=$4;HEAP16[$0>>1]=$3;break label$13}HEAP16[$0+2>>1]=$4;HEAP16[$0>>1]=$2;if(HEAPU16[$6+92>>1]>=HEAPU16[$5+92>>1]){$2=$3;break label$10}HEAP16[$0+4>>1]=$4;HEAP16[$0+2>>1]=$3}$2=$4}$3=$0+6|0;if(($3|0)==($1|0)){break label$2}$8=$0+4|0;$6=0;$7=$9+8|0;while(1){label$17:{$4=$3;$10=HEAPU16[$3>>1];$11=$7+Math_imul($10,96)|0;if(HEAPU16[$11+92>>1]>1]){$5=$4;while(1){label$20:{HEAP16[$5>>1]=$2;$3=$8;if(($3|0)==($0|0)){$3=$0;break label$20}$5=$3;$8=$3+ -2|0;$2=HEAPU16[$8>>1];if(HEAPU16[$11+92>>1]>1]){continue}}break}HEAP16[$3>>1]=$10;$6=$6+1|0;if(($6|0)==8){break label$17}}$3=$4+2|0;if(($3|0)==($1|0)){break label$1}$2=HEAPU16[$4>>1];$8=$4;continue}break}$8=($4+2|0)==($1|0)}return $8}return 1}function b2GridShape__GetEdgeShapesForCell_28unsigned_20int_2c_20b2EdgeShape__2c_20unsigned_20int_2c_20unsigned_20int_29_20const($0,$1,$2,$3){var $4=0,$5=Math_fround(0),$6=0,$7=0,$8=0,$9=0,$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=0,$20=0,$21=0,$22=0,$23=0,$24=Math_fround(0),$25=Math_fround(0),$26=0,$27=0;$11=global$0-256|0;global$0=$11;if(HEAPU16[(HEAP32[HEAP32[$0+40>>2]+8>>2]+(HEAP32[HEAP32[$0+32>>2]+($1<<2)>>2]<<2)|0)+2>>1]<17){$18=b2GridShape__GetCellVertices_28unsigned_20int_2c_20b2Vec2__29_20const($0,$1,$11);if($18){$6=$18+ -1|0;$27=$6>>>0<15?$18:16;$4=2;$14=1;while(1){$19=$14;$14=$4;if($3>>>$20&1){$7=($20<<3)+$11|0;$8=HEAP32[$7+4>>2];$9=Math_imul($21,60)+$2|0;HEAP32[$9+24>>2]=HEAP32[$7>>2];HEAP32[$9+28>>2]=$8;$22=($19<<3)+$11|0;$8=$22;$4=HEAP32[$8+4>>2];$8=HEAP32[$8>>2];HEAP16[$9+56>>1]=0;HEAP32[$9+32>>2]=$8;HEAP32[$9+36>>2]=$4;HEAP8[$9+56|0]=1;$4=($6<<3)+$11|0;label$5:{if($3>>>$6&1){$8=HEAP32[$4+4>>2];HEAP32[$9+40>>2]=HEAP32[$4>>2];HEAP32[$9+44>>2]=$8;break label$5}$23=$9;$24=HEAPF32[$7+4>>2];$15=HEAPF32[$4+4>>2];$25=Math_fround($24-$15);$12=Math_fround($25*$25);$13=HEAPF32[$7>>2];$16=HEAPF32[$4>>2];$10=Math_fround($13-$16);$5=Math_fround($10*$10);$4=$12==($12>$5?$12:$5);$7=(($4?$25>=Math_fround(0)?1:-1:0)+$1|0)+Math_imul(HEAP32[$0+56>>2],$4?0:$10<=Math_fround(0)?1:-1)|0;$6=HEAP32[HEAP32[$0+32>>2]+($7<<2)>>2];label$7:{if(($6|0)==-1){$5=Math_fround($15-$24);$6=(wasm2js_scratch_store_f32(Math_fround($5+$5)),wasm2js_scratch_load_i32(0));$5=Math_fround($16-$13);$4=(wasm2js_scratch_store_f32(Math_fround($5+$5)),wasm2js_scratch_load_i32(0));break label$7}$4=HEAP32[HEAP32[$0+40>>2]+8>>2];$8=b2GridShape__GetCellVertices_28unsigned_20int_2c_20b2Vec2__29_20const($0,$7,$11+128|0);$17=HEAPU16[($4+($6<<2)|0)+2>>1];label$9:{if(!$17){$4=0;break label$9}$10=Math_fround(3.4028234663852886e+38);$6=0;$4=0;while(1){$7=($11+128|0)+($6<<3)|0;$5=Math_fround(HEAPF32[$7>>2]-$13);$12=Math_fround($5*$5);$5=Math_fround(HEAPF32[$7+4>>2]-$24);$5=Math_fround($12+Math_fround($5*$5));$7=$5<$10;$10=$7?$5:$10;$4=$7?$6:$4;$6=$6+1|0;if(($17|0)!=($6|0)){continue}break}}$4=($11+128|0)+((($4+$8|0)+ -1>>>0)%($8>>>0)<<3)|0;$6=HEAP32[$4+4>>2];$4=HEAP32[$4>>2]}HEAP32[$23+40>>2]=$4;HEAP32[$9+44>>2]=$6}HEAP8[$9+57|0]=1;label$12:{if($3>>>$19&1){$4=($14<<3)+$11|0;$8=HEAP32[$4+4>>2];HEAP32[$9+48>>2]=HEAP32[$4>>2];HEAP32[$9+52>>2]=$8;break label$12}$23=$9;$4=($14<<3)+$11|0;$15=HEAPF32[$22+4>>2];$12=Math_fround(HEAPF32[$4+4>>2]-$15);$10=Math_fround($12*$12);$16=HEAPF32[$22>>2];$13=Math_fround(HEAPF32[$4>>2]-$16);$5=Math_fround($13*$13);$4=$10==($10>$5?$10:$5);$7=(($4?$12>=Math_fround(0)?1:-1:0)+$1|0)+Math_imul(HEAP32[$0+56>>2],$4?0:$13<=Math_fround(0)?1:-1)|0;$6=HEAP32[HEAP32[$0+32>>2]+($7<<2)>>2];label$14:{if(($6|0)==-1){$6=(wasm2js_scratch_store_f32(Math_fround($12+$12)),wasm2js_scratch_load_i32(0));$4=(wasm2js_scratch_store_f32(Math_fround($13+$13)),wasm2js_scratch_load_i32(0));break label$14}$4=HEAP32[HEAP32[$0+40>>2]+8>>2];$8=b2GridShape__GetCellVertices_28unsigned_20int_2c_20b2Vec2__29_20const($0,$7,$11+128|0);$17=HEAPU16[($4+($6<<2)|0)+2>>1];label$16:{if(!$17){$4=0;break label$16}$10=Math_fround(3.4028234663852886e+38);$6=0;$4=0;while(1){$7=($11+128|0)+($6<<3)|0;$5=Math_fround(HEAPF32[$7>>2]-$16);$12=Math_fround($5*$5);$5=Math_fround(HEAPF32[$7+4>>2]-$15);$5=Math_fround($12+Math_fround($5*$5));$7=$5<$10;$10=$7?$5:$10;$4=$7?$6:$4;$6=$6+1|0;if(($17|0)!=($6|0)){continue}break}}$4=($11+128|0)+((($4+$8|0)+1>>>0)%($8>>>0)<<3)|0;$6=HEAP32[$4+4>>2];$4=HEAP32[$4>>2]}HEAP32[$23+48>>2]=$4;HEAP32[$9+52>>2]=$6}$21=$21+1|0}$4=($14+1>>>0)%($18>>>0)|0;$6=$20;$20=$19;$26=$26+1|0;if(($26|0)!=($27|0)){continue}break}}global$0=$11+256|0;return $21}__assert_fail(88193,88135,258,88251);abort()}function b2CollidePolygonAndCircle_28b2Manifold__2c_20b2PolygonShape_20const__2c_20b2Transform_20const__2c_20b2CircleShape_20const__2c_20b2Transform_20const__29($0,$1,$2,$3,$4){var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=0,$18=0;HEAP32[$0+68>>2]=0;$5=HEAPF32[$2+12>>2];$6=HEAPF32[$3+24>>2];$8=HEAPF32[$4+8>>2];$12=HEAPF32[$4+12>>2];$11=HEAPF32[$3+28>>2];$7=Math_fround(Math_fround(Math_fround(Math_fround($6*$8)+Math_fround($12*$11))+HEAPF32[$4+4>>2])-HEAPF32[$2+4>>2]);$6=Math_fround(Math_fround(HEAPF32[$4>>2]+Math_fround(Math_fround($12*$6)-Math_fround($8*$11)))-HEAPF32[$2>>2]);$8=HEAPF32[$2+8>>2];$14=Math_fround(Math_fround($5*$7)-Math_fround($6*$8));$15=Math_fround(Math_fround($6*$5)+Math_fround($7*$8));$11=Math_fround(HEAPF32[$1+8>>2]+HEAPF32[$3+8>>2]);$7=Math_fround(-3.4028234663852886e+38);label$1:{$13=HEAP32[$1+416>>2];label$2:{label$3:{if(($13|0)<1){$2=0;break label$3}$2=0;$4=0;while(1){$10=($4<<3)+$1|0;$5=Math_fround(Math_fround(Math_fround($15-HEAPF32[$10+160>>2])*HEAPF32[$10+288>>2])+Math_fround(Math_fround($14-HEAPF32[$10+164>>2])*HEAPF32[$10+292>>2]));if($5>$11){break label$2}$10=$5>$7;$7=$10?$5:$7;$2=$10?$4:$2;$4=$4+1|0;if(($13|0)!=($4|0)){continue}break}}$10=$2<<3;$16=$1+160|0;$4=$10+$16|0;$8=HEAPF32[$4+4>>2];$17=HEAP32[$4+4>>2];$5=HEAPF32[$4>>2];$18=HEAP32[$4>>2];$4=$2+1|0;$4=$16+((($4|0)<($13|0)?$4:0)<<3)|0;$12=HEAPF32[$4+4>>2];$13=HEAP32[$4+4>>2];$6=HEAPF32[$4>>2];$4=HEAP32[$4>>2];if(!!($7>2]=1;HEAP32[$0+68>>2]=1;$1=$1+$10|0;$2=HEAP32[$1+292>>2];$1=HEAP32[$1+288>>2];HEAPF32[$0+60>>2]=Math_fround($8+$12)*Math_fround(.5);HEAPF32[$0+56>>2]=Math_fround($5+$6)*Math_fround(.5);HEAP32[$0+48>>2]=$1;HEAP32[$0+52>>2]=$2;$1=HEAP32[$3+28>>2];$2=HEAP32[$3+24>>2];HEAP32[$0+16>>2]=0;HEAP32[$0>>2]=$2;HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-$7;return}$7=Math_fround($15-$5);$9=Math_fround($14-$8);if(!!(Math_fround(Math_fround($7*Math_fround($6-$5))+Math_fround($9*Math_fround($12-$8)))<=Math_fround(0))){$5=Math_fround(Math_fround($7*$7)+Math_fround($9*$9));if($5>Math_fround($11*$11)){break label$2}HEAP32[$0+64>>2]=1;HEAP32[$0+68>>2]=1;HEAPF32[$0+48>>2]=$7;HEAPF32[$0+52>>2]=$9;$5=Math_fround(Math_sqrt($5));if(!($5>2]=$9*$6;HEAPF32[$0+48>>2]=$7*$6}HEAP32[$0+56>>2]=$18;HEAP32[$0+60>>2]=$17;break label$1}$7=Math_fround($15-$6);$9=Math_fround($14-$12);if(!!(Math_fround(Math_fround($7*Math_fround($5-$6))+Math_fround($9*Math_fround($8-$12)))<=Math_fround(0))){$5=Math_fround(Math_fround($7*$7)+Math_fround($9*$9));if($5>Math_fround($11*$11)){break label$2}HEAP32[$0+64>>2]=1;HEAP32[$0+68>>2]=1;HEAPF32[$0+48>>2]=$7;HEAPF32[$0+52>>2]=$9;$5=Math_fround(Math_sqrt($5));if(!($5>2]=$9*$6;HEAPF32[$0+48>>2]=$7*$6}HEAP32[$0+56>>2]=$4;HEAP32[$0+60>>2]=$13;break label$1}$5=Math_fround(Math_fround($5+$6)*Math_fround(.5));$1=($2<<3)+$1|0;$6=Math_fround(Math_fround($8+$12)*Math_fround(.5));$8=Math_fround(Math_fround(Math_fround($15-$5)*HEAPF32[$1+288>>2])+Math_fround(Math_fround($14-$6)*HEAPF32[$1+292>>2]));if($8>$11){break label$2}HEAP32[$0+64>>2]=1;HEAP32[$0+68>>2]=1;$2=HEAP32[$1+292>>2];$1=HEAP32[$1+288>>2];HEAPF32[$0+60>>2]=$6;HEAPF32[$0+56>>2]=$5;HEAP32[$0+48>>2]=$1;HEAP32[$0+52>>2]=$2;$1=HEAP32[$3+28>>2];$2=HEAP32[$3+24>>2];HEAP32[$0+16>>2]=0;HEAP32[$0>>2]=$2;HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-$8}return}$1=HEAP32[$3+28>>2];$2=HEAP32[$3+24>>2];HEAP32[$0+16>>2]=0;HEAP32[$0>>2]=$2;HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-$5}function dmParticle__ApplyVortex_28dmArray_dmParticle__Particle___2c_20dmParticle__Property__2c_20Vectormath__Aos__Point3_20const__2c_20Vectormath__Aos__Quat_20const__2c_20float_2c_20float_2c_20float_29($0,$1,$2,$3,$4,$5,$6){var $7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0);$10=HEAPF32[$3>>2];$7=HEAPF32[$3+12>>2];$9=HEAPF32[$3+4>>2];$8=HEAPF32[$3+8>>2];$11=Math_fround($5*Math_fround(64));label$1:{if($11=Math_fround(0)){$3=~~$11>>>0;break label$1}$3=0}$17=HEAP32[$0>>2];$18=HEAP32[$0+4>>2]-$17|0;$0=($18|0)/160|0;if($18){$12=Math_fround($7*Math_fround(-0));$13=Math_fround($10*Math_fround(-0));$11=Math_fround(Math_fround($12-$8)-$13);$14=Math_fround($8*Math_fround(-0));$15=Math_fround($9*Math_fround(-0));$16=Math_fround($14+Math_fround($15-$10));$12=Math_fround(Math_fround($12+$13)+$9);$13=Math_fround(Math_fround($15-$7)-$14);$19=Math_fround(Math_fround($10*$11)+Math_fround(Math_fround(Math_fround($8*$16)+Math_fround($7*$12))-Math_fround($9*$13)));$20=Math_fround(Math_fround($8*$13)+Math_fround(Math_fround(Math_fround($7*$11)+Math_fround($9*$16))-Math_fround($10*$12)));$21=Math_fround(Math_fround($9*$12)+Math_fround(Math_fround(Math_fround($7*$13)+Math_fround($10*$16))-Math_fround($8*$11)));$11=Math_fround($8*Math_fround(0));$16=Math_fround($7*Math_fround(0));$12=Math_fround(Math_fround($11+$16)-$10);$14=Math_fround($9*Math_fround(0));$15=Math_fround($10*Math_fround(0));$13=Math_fround($8+Math_fround($14+$15));$14=Math_fround(Math_fround($7+$15)-$14);$15=Math_fround(Math_fround($16+$9)-$11);$11=Math_fround(Math_fround($10*$12)+Math_fround(Math_fround(Math_fround($8*$13)+Math_fround($7*$14))-Math_fround($9*$15)));$16=Math_fround(Math_fround($8*$15)+Math_fround(Math_fround(Math_fround($7*$12)+Math_fround($9*$13))-Math_fround($10*$14)));$10=Math_fround(Math_fround($9*$14)+Math_fround(Math_fround(Math_fround($7*$15)+Math_fround($10*$13))-Math_fround($8*$12)));$3=Math_imul($3>>>0<63?$3:63,12)+$1|0;$12=Math_fround(Math_fround(Math_fround($5-HEAPF32[$3>>2])*HEAPF32[$3+8>>2])+HEAPF32[$3+4>>2]);$5=Math_fround($4*$6);$4=Math_fround(HEAPF32[$1+776>>2]*$4);$13=Math_fround($4*$4);$14=HEAPF32[$1+768>>2];$3=$0>>>0>1?$0:1;$15=HEAPF32[$2+8>>2];$22=HEAPF32[$2+4>>2];$23=HEAPF32[$2>>2];$0=0;while(1){$1=Math_imul($0,160)+$17|0;$7=Math_fround(HEAPF32[$1>>2]-$23);$9=Math_fround(HEAPF32[$1+4>>2]-$22);$6=Math_fround(HEAPF32[$1+8>>2]-$15);$4=Math_fround(Math_fround(Math_fround($10*$7)+Math_fround($16*$9))+Math_fround($11*$6));$6=Math_fround($6-Math_fround($11*$4));$7=Math_fround($7-Math_fround($10*$4));$4=Math_fround($9-Math_fround($16*$4));$9=Math_fround($13-Math_fround(Math_fround($6*$6)+Math_fround(Math_fround($7*$7)+Math_fround($4*$4))))>=Math_fround(0)?Math_fround($12+Math_fround($14*HEAPF32[$1+76>>2])):Math_fround(0);$8=Math_fround(Math_fround($10*$4)-Math_fround($16*$7));$4=Math_fround(Math_fround($16*$6)-Math_fround($11*$4));$6=Math_fround(Math_fround($11*$7)-Math_fround($10*$6));$2=Math_fround(Math_fround($8*$8)+Math_fround(Math_fround($4*$4)+Math_fround($6*$6)))<=Math_fround(0);$7=$2?$19:$8;$8=$2?$21:$4;$6=$2?$20:$6;$4=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround($7*$7)+Math_fround(Math_fround($8*$8)+Math_fround($6*$6))))));HEAPF32[$1+56>>2]=HEAPF32[$1+56>>2]+Math_fround($5*Math_fround($9*Math_fround($7*$4)));HEAPF32[$1+52>>2]=HEAPF32[$1+52>>2]+Math_fround($5*Math_fround($9*Math_fround($6*$4)));HEAPF32[$1+48>>2]=HEAPF32[$1+48>>2]+Math_fround($5*Math_fround($9*Math_fround($8*$4)));$0=$0+1|0;if(($3|0)!=($0|0)){continue}break}}}function dmRig__GetPoseTransform_28dmArray_dmRig__RigBone__20const__2c_20dmArray_dmTransform__Transform__20const__2c_20dmTransform__Transform_2c_20unsigned_20int_29($0,$1,$2,$3,$4){var $5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=0,$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0);$5=global$0-48|0;global$0=$5;$14=HEAP32[$1>>2];if((HEAP32[$1+4>>2]-$14|0)/176>>>0>$4>>>0){label$2:{$14=HEAP32[($14+Math_imul($4,176)|0)+160>>2];label$3:{if(($14|0)==65535){HEAP32[$0>>2]=HEAP32[$3>>2];HEAP32[$0+4>>2]=HEAP32[$3+4>>2];HEAP32[$0+8>>2]=HEAP32[$3+8>>2];HEAP32[$0+12>>2]=HEAP32[$3+12>>2];HEAP32[$0+16>>2]=HEAP32[$3+16>>2];HEAP32[$0+20>>2]=HEAP32[$3+20>>2];HEAP32[$0+24>>2]=HEAP32[$3+24>>2];HEAP32[$0+32>>2]=HEAP32[$3+32>>2];HEAP32[$0+36>>2]=HEAP32[$3+36>>2];HEAP32[$0+40>>2]=HEAP32[$3+40>>2];break label$3}$4=HEAP32[$2>>2];if((HEAP32[$2+4>>2]-$4|0)/48>>>0<=$14>>>0){break label$2}$4=$4+Math_imul($14,48)|0;$25=HEAPF32[$4+16>>2];$26=HEAPF32[$4+20>>2];$27=HEAPF32[$4+24>>2];$28=HEAPF32[$3+20>>2];$29=HEAPF32[$3+24>>2];$6=HEAPF32[$4+8>>2];$10=HEAPF32[$4+4>>2];$11=HEAPF32[$4+12>>2];$12=HEAPF32[$4>>2];$17=HEAPF32[$3+36>>2];$15=HEAPF32[$4+36>>2];$18=HEAPF32[$3+40>>2];$16=HEAPF32[$4+40>>2];$30=HEAPF32[$3+16>>2];$7=HEAPF32[$3+8>>2];$8=HEAPF32[$3+4>>2];$9=HEAPF32[$3+12>>2];$13=HEAPF32[$3>>2];$19=HEAPF32[$4+32>>2];$20=Math_fround($19*HEAPF32[$3+32>>2]);HEAPF32[$3+32>>2]=$20;$18=Math_fround($16*$18);HEAPF32[$3+40>>2]=$18;$17=Math_fround($15*$17);HEAPF32[$3+36>>2]=$17;$21=Math_fround(Math_fround(Math_fround(Math_fround($11*$9)-Math_fround($12*$13))-Math_fround($10*$8))-Math_fround($6*$7));HEAPF32[$3+12>>2]=$21;$22=Math_fround(Math_fround(Math_fround($12*$8)+Math_fround(Math_fround($11*$7)+Math_fround($6*$9)))-Math_fround($10*$13));HEAPF32[$3+8>>2]=$22;$23=Math_fround(Math_fround(Math_fround($6*$13)+Math_fround(Math_fround($11*$8)+Math_fround($10*$9)))-Math_fround($12*$7));HEAPF32[$3+4>>2]=$23;$24=Math_fround(Math_fround(Math_fround($10*$7)+Math_fround(Math_fround($11*$13)+Math_fround($12*$9)))-Math_fround($6*$8));HEAPF32[$3>>2]=$24;$7=Math_fround($30*$19);$8=Math_fround($28*$15);$9=Math_fround($29*$16);$13=Math_fround(Math_fround(Math_fround($6*$7)+Math_fround($11*$8))-Math_fround($12*$9));$15=Math_fround(Math_fround($6*$9)+Math_fround(Math_fround($12*$7)+Math_fround($10*$8)));$16=Math_fround(Math_fround(Math_fround($12*$8)+Math_fround($11*$9))-Math_fround($10*$7));$7=Math_fround(Math_fround(Math_fround($11*$7)+Math_fround($10*$9))-Math_fround($6*$8));$8=Math_fround($27+Math_fround(Math_fround($12*$13)+Math_fround(Math_fround(Math_fround($6*$15)+Math_fround($11*$16))-Math_fround($10*$7))));HEAPF32[$3+24>>2]=$8;$9=Math_fround($26+Math_fround(Math_fround($6*$7)+Math_fround(Math_fround(Math_fround($11*$13)+Math_fround($10*$15))-Math_fround($12*$16))));HEAPF32[$3+20>>2]=$9;$6=Math_fround($25+Math_fround(Math_fround($10*$16)+Math_fround(Math_fround(Math_fround($12*$15)+Math_fround($11*$7))-Math_fround($6*$13))));HEAPF32[$3+16>>2]=$6;HEAPF32[$5+40>>2]=$18;HEAPF32[$5+36>>2]=$17;HEAPF32[$5+24>>2]=$8;HEAPF32[$5+20>>2]=$9;HEAPF32[$5+32>>2]=$20;HEAPF32[$5+16>>2]=$6;HEAPF32[$5+12>>2]=$21;HEAPF32[$5+8>>2]=$22;HEAPF32[$5+4>>2]=$23;HEAPF32[$5>>2]=$24;dmRig__GetPoseTransform_28dmArray_dmRig__RigBone__20const__2c_20dmArray_dmTransform__Transform__20const__2c_20dmTransform__Transform_2c_20unsigned_20int_29($0,$1,$2,$5,$14)}global$0=$5+48|0;return}}__assert_fail(133208,133219,437,133189);abort()}function dmRender__GetOptimalDisplayProfile_28dmRender__DisplayProfiles__2c_20unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20int_2c_20dmArray_unsigned_20long_20long__20const__29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(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=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=0;$6=global$0-304|0;global$0=$6;memset($6+40|0,0,264);dmSys__GetSystemInfo_28dmSys__SystemInfo__29($6+40|0);$10=HEAP32[24559];HEAP32[$6+24>>2]=HEAP32[24558];HEAP32[$6+28>>2]=$10;$10=HEAP32[24557];HEAP32[$6+16>>2]=HEAP32[24556];HEAP32[$6+20>>2]=$10;HEAP32[$6+8>>2]=0;HEAP32[$6+12>>2]=0;HEAP32[$6>>2]=0;HEAP32[$6+4>>2]=0;$19=HEAP32[$0>>2];$0=HEAP32[$0+4>>2];if(($19|0)!=($0|0)){$8=Math_fround($1>>>0);$9=Math_fround($2>>>0);$24=$2?Math_fround($8/$9):Math_fround(0);$25=Math_fround($8*$9);$26=Math_fround($3>>>0);$0=$0-$19>>4;$27=$0>>>0>1?$0:1;while(1){$10=($20<<4)+$19|0;label$3:{if($4){$5=HEAP32[$4>>2];$0=HEAP32[$4+4>>2]-$5|0;$11=$0>>3;label$5:{if(!$0){$0=0;break label$5}$14=HEAP32[$10>>2];$18=HEAP32[$10+4>>2];$0=0;while(1){$13=$5+($0<<3)|0;if(HEAP32[$13>>2]==($14|0)&HEAP32[$13+4>>2]==($18|0)){break label$5}$0=$0+1|0;if($0>>>0<$11>>>0){continue}break}}if(($0|0)==($11|0)){break label$3}}$14=HEAP32[$10+8>>2];if(!$14){break label$3}$18=HEAP32[$10+12>>2];$11=0;if(!$3){while(1){label$10:{label$11:{$5=Math_imul($11,20)+$18|0;$13=HEAP32[$5+12>>2];if(!$13){break label$11}$21=strlen($6+40|0);$22=HEAP32[$5+16>>2];$0=0;while(1){$15=HEAP32[$22+($0<<2)>>2];$16=strlen($15);if($16>>>0<=$21>>>0){if(!strncmp($15,$6+40|0,$16)){break label$11}}$0=$0+1|0;if(($13|0)!=($0|0)){continue}break}break label$10}$8=HEAPF32[$5>>2];$9=HEAPF32[$5+4>>2];$7=Math_fround(Math_fround(1)-Math_fround($25/Math_fround($8*$9)));$23=$7>=Math_fround(0)?$7:Math_fround(-$7);$7=Math_fround(Math_fround(1)-Math_fround($24/Math_fround($8/$9)));$12=+Math_fround($23+($7>=Math_fround(0)?$7:Math_fround(-$7)));if($9=Math_fround(0)){$0=~~$9>>>0}else{$0=0}$12=$12+0;$17=$12;if($8=Math_fround(0)){$5=~~$8>>>0}else{$5=0}$0=($5>>>0<=$0>>>0)<<3;$5=$0|$6+16;if(!($17>3])){break label$10}HEAPF64[$5>>3]=$12;$5=HEAP32[$10+4>>2];$0=$0|$6;HEAP32[$0>>2]=HEAP32[$10>>2];HEAP32[$0+4>>2]=$5}$11=$11+1|0;if(($14|0)!=($11|0)){continue}break label$3}}while(1){label$19:{label$20:{$5=Math_imul($11,20)+$18|0;$13=HEAP32[$5+12>>2];if(!$13){break label$20}$21=strlen($6+40|0);$22=HEAP32[$5+16>>2];$0=0;while(1){$15=HEAP32[$22+($0<<2)>>2];$16=strlen($15);if($16>>>0<=$21>>>0){if(!strncmp($15,$6+40|0,$16)){break label$20}}$0=$0+1|0;if(($13|0)!=($0|0)){continue}break}break label$19}$8=HEAPF32[$5>>2];$9=HEAPF32[$5+4>>2];$7=Math_fround(Math_fround(1)-Math_fround($25/Math_fround($8*$9)));$23=$7>=Math_fround(0)?$7:Math_fround(-$7);$7=Math_fround(Math_fround(1)-Math_fround($24/Math_fround($8/$9)));$12=+Math_fround($23+($7>=Math_fround(0)?$7:Math_fround(-$7)));$7=Math_fround(Math_fround(1)-Math_fround(HEAPF32[$5+8>>2]/$26));$17=+($7>=Math_fround(0)?$7:Math_fround(-$7));if($9=Math_fround(0)){$0=~~$9>>>0}else{$0=0}$12=$12+$17;$17=$12;if($8=Math_fround(0)){$5=~~$8>>>0}else{$5=0}$0=($5>>>0<=$0>>>0)<<3;$5=$0|$6+16;if(!($17>3])){break label$19}HEAPF64[$5>>3]=$12;$5=HEAP32[$10+4>>2];$0=$0|$6;HEAP32[$0>>2]=HEAP32[$10>>2];HEAP32[$0+4>>2]=$5}$11=$11+1|0;if(($14|0)!=($11|0)){continue}break}}$20=$20+1|0;if(($27|0)!=($20|0)){continue}break}}$3=$1>>>0<=$2>>>0;$1=$3<<3|$6;$0=HEAP32[$1+4>>2];$2=HEAP32[$1>>2];$1=$0;if(!($0|$2)){$0=($3^1)<<3|$6;$2=HEAP32[$0>>2];$1=HEAP32[$0+4>>2]}$0=HEAP32[$6+300>>2];if($0){dlfree($0)}global$0=$6+304|0;i64toi32_i32$HIGH_BITS=$1;return $2}function inflate_fast($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$5=HEAP32[$0+12>>2]+ -1|0;$2=HEAP32[$0+16>>2];$18=$5+($2-$1|0)|0;$9=HEAP32[$0+28>>2];$10=HEAP32[$9+48>>2];$13=HEAP32[$9+40>>2];$19=$10+$13|0;$12=HEAP32[$9+52>>2]+ -1|0;$20=-1<>2]^-1;$21=-1<>2]^-1;$14=($2+$5|0)+ -257|0;$8=HEAP32[$0>>2]+ -1|0;$15=($8+HEAP32[$0+4>>2]|0)+ -5|0;$16=HEAP32[$9+80>>2];$17=HEAP32[$9+76>>2];$6=HEAP32[$9+60>>2];$1=HEAP32[$9+56>>2];$22=HEAP32[$9+44>>2];while(1){if($6>>>0<=14){$1=((HEAPU8[$8+1|0]<<$6)+$1|0)+(HEAPU8[$8+2|0]<<$6+8)|0;$6=$6+16|0;$8=$8+2|0}$4=(($1&$21)<<2)+$17|0;$2=HEAPU8[$4+1|0];$6=$6-$2|0;$1=$1>>>$2|0;$7=HEAPU16[$4+2>>1];label$3:{label$4:{label$5:{$3=HEAPU8[$4|0];if(!$3){break label$5}label$6:{label$7:{label$8:{$23=$9;$24=$0;label$9:{label$10:{label$11:{while(1){$4=$3&255;if($3&16){$7=$7&65535;$4=$4&15;label$14:{if(!$4){$2=$8;break label$14}if($6>>>0>=$4>>>0){$2=$8}else{$1=(HEAPU8[$8+1|0]<<$6)+$1|0;$6=$6+8|0;$2=$8+1|0}$6=$6-$4|0;$7=((-1<<$4^-1)&$1)+$7|0;$1=$1>>>$4|0}$3=$1;if($6>>>0<=14){$3=((HEAPU8[$2+1|0]<<$6)+$3|0)+(HEAPU8[$2+2|0]<<$6+8)|0;$6=$6+16|0;$2=$2+2|0}$8=(($3&$20)<<2)+$16|0;$1=HEAPU8[$8+1|0];$6=$6-$1|0;$1=$3>>>$1|0;$4=HEAPU16[$8+2>>1];$3=HEAPU8[$8|0];if($3&16){break label$11}while(1){if(!($3&64)){$3=(((-1<<$3^-1)&$1)+($4&65535)<<2)+$16|0;$8=HEAPU8[$3+1|0];$6=$6-$8|0;$1=$1>>>$8|0;$4=HEAPU16[$3+2>>1];$3=HEAPU8[$3|0];if(!($3&16)){continue}break label$11}break}$8=$2;$2=192814;break label$10}if(!($4&64)){$4=(((-1<<$4^-1)&$1)+($7&65535)<<2)+$17|0;$2=HEAPU8[$4+1|0];$6=$6-$2|0;$1=$1>>>$2|0;$7=HEAPU16[$4+2>>1];$3=HEAPU8[$4|0];if(!$3){break label$5}continue}break}$2=11;if($4&32){break label$9}$2=192836;break label$10}$11=$4&65535;$3=$3&15;label$22:{if($6>>>0>=$3>>>0){$4=$6;$8=$2;break label$22}$1=(HEAPU8[$2+1|0]<<$6)+$1|0;$4=$6+8|0;$8=$2+1|0;if($4>>>0>=$3>>>0){break label$22}$1=(HEAPU8[$2+2|0]<<$4)+$1|0;$4=$6+16|0;$8=$2+2|0}$2=(-1<<$3^-1)&$1;$6=$4-$3|0;$1=$1>>>$3|0;$11=$2+$11|0;$2=$5-$18|0;if($11>>>0<=$2>>>0){break label$7}$2=$11-$2|0;if(!HEAP32[$9+7104>>2]|$2>>>0<=$22>>>0){break label$8}$2=192784}HEAP32[$24+24>>2]=$2;$2=29}HEAP32[$23>>2]=$2;break label$3}label$24:{label$25:{if(!$10){$3=($13-$2|0)+$12|0;break label$25}if($10>>>0<$2>>>0){$3=($19-$2|0)+$12|0;$2=$2-$10|0;$4=$2;if($7>>>0<=$2>>>0){break label$24}while(1){HEAP8[$5+1|0]=HEAPU8[$3+1|0];$5=$5+1|0;$3=$3+1|0;$4=$4+ -1|0;if($4){continue}break}$3=$12;$7=$7-$2|0;$4=$10;if($7>>>0<=$4>>>0){break label$24}while(1){HEAP8[$5+1|0]=HEAPU8[$3+1|0];$5=$5+1|0;$3=$3+1|0;$4=$4+ -1|0;if($4){continue}break}$3=$5-$11|0;$7=$7-$10|0;break label$24}$3=($10-$2|0)+$12|0}$4=$2;if($7>>>0<=$2>>>0){break label$24}while(1){HEAP8[$5+1|0]=HEAPU8[$3+1|0];$5=$5+1|0;$3=$3+1|0;$4=$4+ -1|0;if($4){continue}break}$3=$5-$11|0;$7=$7-$2|0}if($7>>>0>=3){while(1){HEAP8[$5+1|0]=HEAPU8[$3+1|0];HEAP8[$5+2|0]=HEAPU8[$3+2|0];HEAP8[$5+3|0]=HEAPU8[$3+3|0];$5=$5+3|0;$3=$3+3|0;$7=$7+ -3|0;if($7>>>0>2){continue}break}}if(!$7){break label$4}HEAP8[$5+1|0]=HEAPU8[$3+1|0];if(($7|0)!=1){break label$6}$5=$5+1|0;break label$4}$2=$5-$11|0;while(1){$3=$5;$4=$2;HEAP8[$3+1|0]=HEAPU8[$2+1|0];HEAP8[$3+2|0]=HEAPU8[$2+2|0];HEAP8[$3+3|0]=HEAPU8[$2+3|0];$5=$3+3|0;$2=$2+3|0;$7=$7+ -3|0;if($7>>>0>2){continue}break}if(!$7){break label$4}HEAP8[$3+4|0]=HEAPU8[$4+4|0];if(($7|0)==1){$5=$3+4|0;break label$4}HEAP8[$3+5|0]=HEAPU8[$4+5|0];$5=$3+5|0;break label$4}HEAP8[$5+2|0]=HEAPU8[$3+2|0];$5=$5+2|0;break label$4}HEAP8[$5+1|0]=$7;$5=$5+1|0}if($5>>>0>=$14>>>0){break label$3}if($8>>>0<$15>>>0){continue}}break}HEAP32[$0+12>>2]=$5+1;HEAP32[$0+16>>2]=($14-$5|0)+257;$2=$8-($6>>>3|0)|0;HEAP32[$0>>2]=$2+1;HEAP32[$0+4>>2]=($15-$2|0)+5;$0=$6&7;HEAP32[$9+60>>2]=$0;HEAP32[$9+56>>2]=(-1<<$0^-1)&$1}function unsigned_20int_20std____2____sort3_dmProfileRender__CounterSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__CounterSortPred__29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$4=HEAP32[$3>>2];$7=HEAP32[$4+208>>2];$10=HEAP32[$0>>2];$12=HEAP32[$4+200>>2];$9=HEAP32[HEAP32[$4+16>>2]+8>>2];$8=HEAP32[($9+(HEAP32[$1>>2]<<3)|0)+4>>2];$11=HEAP32[$4+204>>2];$4=HEAP32[$12+(($8>>>0)%($11>>>0)<<2)>>2];$5=0;label$1:{if(($4|0)==-1){break label$1}label$2:{while(1){$5=Math_imul($4,12);$6=$5+$7|0;if(($8|0)==HEAP32[$6>>2]){break label$2}$4=HEAP32[($5+$7|0)+8>>2];if(($4|0)!=-1){continue}break}$6=0}$5=$6?$6+4|0:0}$6=HEAP32[($9+($10<<3)|0)+4>>2];$4=HEAP32[$12+(($6>>>0)%($11>>>0)<<2)>>2];if(HEAP32[$7+Math_imul($4,12)>>2]!=($6|0)){while(1){$4=HEAP32[($7+Math_imul($4,12)|0)+8>>2];if(($6|0)!=HEAP32[$7+Math_imul($4,12)>>2]){continue}break}}$10=dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$5>>2],HEAP32[($7+Math_imul($4,12)|0)+4>>2]);$4=HEAP32[$3>>2];$7=HEAP32[$4+208>>2];$9=HEAP32[$1>>2];$13=HEAP32[$4+200>>2];$8=HEAP32[HEAP32[$4+16>>2]+8>>2];$11=HEAP32[($8+(HEAP32[$2>>2]<<3)|0)+4>>2];$12=HEAP32[$4+204>>2];$4=HEAP32[$13+(($11>>>0)%($12>>>0)<<2)>>2];$5=0;label$6:{if(($4|0)==-1){break label$6}label$7:{while(1){$5=Math_imul($4,12);$6=$5+$7|0;if(($11|0)==HEAP32[$6>>2]){break label$7}$4=HEAP32[($5+$7|0)+8>>2];if(($4|0)!=-1){continue}break}$6=0}$5=$6?$6+4|0:0}$6=HEAP32[($8+($9<<3)|0)+4>>2];$4=HEAP32[$13+(($6>>>0)%($12>>>0)<<2)>>2];if(HEAP32[$7+Math_imul($4,12)>>2]!=($6|0)){while(1){$4=HEAP32[($7+Math_imul($4,12)|0)+8>>2];if(($6|0)!=HEAP32[$7+Math_imul($4,12)>>2]){continue}break}}$6=0;$4=dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$5>>2],HEAP32[($7+Math_imul($4,12)|0)+4>>2]);label$11:{label$12:{if(($10|0)>=0){if(($4|0)>-1){break label$11}$5=HEAP32[$1>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$2>>2]=$5;$5=HEAP32[$3>>2];$3=HEAP32[$5+208>>2];$7=HEAP32[$0>>2];$11=HEAP32[$5+200>>2];$10=HEAP32[HEAP32[$5+16>>2]+8>>2];$9=HEAP32[($10+(HEAP32[$1>>2]<<3)|0)+4>>2];$8=HEAP32[$5+204>>2];$4=HEAP32[$11+(($9>>>0)%($8>>>0)<<2)>>2];$2=0;label$14:{if(($4|0)==-1){break label$14}label$15:{while(1){$2=Math_imul($4,12);$6=$2+$3|0;if(($9|0)==HEAP32[$6>>2]){break label$15}$4=HEAP32[($2+$3|0)+8>>2];if(($4|0)!=-1){continue}break}$6=0}$2=$6?$6+4|0:0}$5=HEAP32[($10+($7<<3)|0)+4>>2];$4=HEAP32[$11+(($5>>>0)%($8>>>0)<<2)>>2];if(HEAP32[$3+Math_imul($4,12)>>2]!=($5|0)){while(1){$4=HEAP32[($3+Math_imul($4,12)|0)+8>>2];if(($5|0)!=HEAP32[$3+Math_imul($4,12)>>2]){continue}break}}$6=1;if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$2>>2],HEAP32[($3+Math_imul($4,12)|0)+4>>2])|0)>-1){break label$11}$2=HEAP32[$0>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$1>>2]=$2;break label$12}$5=HEAP32[$0>>2];if(($4|0)<=-1){HEAP32[$0>>2]=HEAP32[$2>>2];HEAP32[$2>>2]=$5;return 1}HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$1>>2]=$5;$4=HEAP32[$3>>2];$3=HEAP32[$4+208>>2];$8=HEAP32[$4+200>>2];$7=HEAP32[HEAP32[$4+16>>2]+8>>2];$10=HEAP32[($7+(HEAP32[$2>>2]<<3)|0)+4>>2];$9=HEAP32[$4+204>>2];$4=HEAP32[$8+(($10>>>0)%($9>>>0)<<2)>>2];$0=0;label$20:{if(($4|0)==-1){break label$20}label$21:{while(1){$0=Math_imul($4,12);$6=$0+$3|0;if(($10|0)==HEAP32[$6>>2]){break label$21}$4=HEAP32[($0+$3|0)+8>>2];if(($4|0)!=-1){continue}break}$6=0}$0=$6?$6+4|0:0}$5=HEAP32[($7+($5<<3)|0)+4>>2];$4=HEAP32[$8+(($5>>>0)%($9>>>0)<<2)>>2];if(HEAP32[$3+Math_imul($4,12)>>2]!=($5|0)){while(1){$4=HEAP32[($3+Math_imul($4,12)|0)+8>>2];if(($5|0)!=HEAP32[$3+Math_imul($4,12)>>2]){continue}break}}$6=1;if((dmStrCaseCmp_28char_20const__2c_20char_20const__29(HEAP32[$0>>2],HEAP32[($3+Math_imul($4,12)|0)+4>>2])|0)>-1){break label$11}$0=HEAP32[$1>>2];HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$2>>2]=$0}$6=2}return $6}function b2PositionSolverManifold__Initialize_28b2ContactPositionConstraint__2c_20b2Transform_20const__2c_20b2Transform_20const__2c_20int_29($0,$1,$2,$3,$4){var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=0;if(HEAP32[$1+84>>2]>0){$21=HEAP32[$1+72>>2];if($21>>>0<=2){label$3:{switch($21-1|0){default:$6=HEAPF32[$3>>2];$5=HEAPF32[$2>>2];$7=HEAPF32[$1>>2];$8=HEAPF32[$3+8>>2];$10=HEAPF32[$3+12>>2];$12=HEAPF32[$1+4>>2];$13=Math_fround(Math_fround(Math_fround($7*$8)+Math_fround($10*$12))+HEAPF32[$3+4>>2]);$14=HEAPF32[$1+24>>2];$15=HEAPF32[$2+8>>2];$11=HEAPF32[$2+12>>2];$16=HEAPF32[$1+28>>2];$17=Math_fround(Math_fround(Math_fround($14*$15)+Math_fround($11*$16))+HEAPF32[$2+4>>2]);$9=Math_fround($13-$17);HEAPF32[$0+4>>2]=$9;$7=Math_fround($6+Math_fround(Math_fround($10*$7)-Math_fround($8*$12)));$8=Math_fround($5+Math_fround(Math_fround($11*$14)-Math_fround($15*$16)));$6=Math_fround($7-$8);HEAPF32[$0>>2]=$6;$5=Math_fround(Math_fround($6*$6)+Math_fround($9*$9));$10=Math_fround(Math_sqrt($5));if(!($10>2]=$10;$5=Math_fround($6*$5);HEAPF32[$0>>2]=$5;$5=Math_fround(Math_fround($6*$5)+Math_fround($9*$10))}HEAPF32[$0+12>>2]=Math_fround($17+$13)*Math_fround(.5);HEAPF32[$0+8>>2]=Math_fround($8+$7)*Math_fround(.5);HEAPF32[$0+16>>2]=Math_fround($5-HEAPF32[$1+76>>2])-HEAPF32[$1+80>>2];return;case 0:$9=HEAPF32[$1+16>>2];$6=HEAPF32[$2+8>>2];$5=HEAPF32[$2+12>>2];$7=HEAPF32[$1+20>>2];$8=Math_fround(Math_fround($9*$6)+Math_fround($5*$7));HEAPF32[$0+4>>2]=$8;$10=Math_fround(Math_fround($5*$9)-Math_fround($6*$7));HEAPF32[$0>>2]=$10;$9=HEAPF32[$1+28>>2];$6=HEAPF32[$2+12>>2];$12=HEAPF32[$1+80>>2];$13=HEAPF32[$1+76>>2];$14=HEAPF32[$2>>2];$15=HEAPF32[$2+4>>2];$5=HEAPF32[$2+8>>2];$7=HEAPF32[$1+24>>2];$11=HEAPF32[$3>>2];$1=($4<<3)+$1|0;$16=HEAPF32[$1>>2];$17=HEAPF32[$3+8>>2];$19=HEAPF32[$3+12>>2];$20=HEAPF32[$1+4>>2];$18=Math_fround(Math_fround(Math_fround($16*$17)+Math_fround($19*$20))+HEAPF32[$3+4>>2]);HEAPF32[$0+12>>2]=$18;$11=Math_fround($11+Math_fround(Math_fround($19*$16)-Math_fround($17*$20)));HEAPF32[$0+8>>2]=$11;HEAPF32[$0+16>>2]=Math_fround(Math_fround(Math_fround($10*Math_fround($11-Math_fround($14+Math_fround(Math_fround($6*$7)-Math_fround($5*$9)))))+Math_fround(Math_fround($18-Math_fround($15+Math_fround(Math_fround($7*$5)+Math_fround($6*$9))))*$8))-$13)-$12;return;case 1:break label$3}}$6=HEAPF32[$1+16>>2];$5=HEAPF32[$3+8>>2];$7=HEAPF32[$3+12>>2];$8=HEAPF32[$1+20>>2];$9=Math_fround(Math_fround($6*$5)+Math_fround($7*$8));HEAPF32[$0+4>>2]=$9;$6=Math_fround(Math_fround($7*$6)-Math_fround($5*$8));HEAPF32[$0>>2]=$6;$5=HEAPF32[$1+28>>2];$7=HEAPF32[$3+12>>2];$4=($4<<3)+$1|0;$8=HEAPF32[$4>>2];$10=HEAPF32[$4+4>>2];$12=HEAPF32[$2+12>>2];$11=HEAPF32[$1+80>>2];$16=HEAPF32[$1+76>>2];$17=HEAPF32[$3>>2];$19=HEAPF32[$3+4>>2];$13=HEAPF32[$3+8>>2];$14=HEAPF32[$1+24>>2];$20=HEAPF32[$2>>2];$18=HEAPF32[$2+4>>2];$15=HEAPF32[$2+8>>2];HEAPF32[$0+4>>2]=-$9;HEAPF32[$0>>2]=-$6;$18=Math_fround($18+Math_fround(Math_fround($8*$15)+Math_fround($12*$10)));HEAPF32[$0+12>>2]=$18;$8=Math_fround($20+Math_fround(Math_fround($12*$8)-Math_fround($15*$10)));HEAPF32[$0+8>>2]=$8;HEAPF32[$0+16>>2]=Math_fround(Math_fround(Math_fround($6*Math_fround($8-Math_fround($17+Math_fround(Math_fround($7*$14)-Math_fround($13*$5)))))+Math_fround(Math_fround($18-Math_fround($19+Math_fround(Math_fround($14*$13)+Math_fround($7*$5))))*$9))-$16)-$11}return}__assert_fail(97002,96787,617,97021);abort()}function dmGameSystem__TileMap_SetTile_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$1=global$0-160|0;global$0=$1;$6=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$2=HEAP32[HEAP32[dmGameSystem__CheckGoInstance_28lua_State__29($0)+80>>2]+8>>2];HEAP32[$1+144>>2]=0;HEAP32[$1+148>>2]=0;HEAP32[$1+136>>2]=0;HEAP32[$1+140>>2]=0;HEAP32[$1+128>>2]=0;HEAP32[$1+132>>2]=0;HEAP32[$1+120>>2]=0;HEAP32[$1+124>>2]=0;$3=1;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$2,74324,$1+156|0,$1+120|0,0);$5=HEAP32[$1+156>>2];$2=dmScript__CheckHashOrString_28lua_State__2c_20int_29($0,2);$4=i64toi32_i32$HIGH_BITS;$7=$4;$8=dmGameSystem__GetLayerIndex_28dmGameSystem__TileGridComponent_20const__2c_20unsigned_20long_20long_29($5,$2,$4);label$1:{if(($8|0)==-1){HEAP32[$1>>2]=dmHashReverseSafe64($2,$7);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,74619,74627,$1);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=1;HEAP32[$2>>2]=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;if(($6+1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$1}__assert_fail(74654,74535,226,74679);abort()}$7=luaL_checkinteger($0,3);$9=luaL_checkinteger($0,4);label$3:{$3=luaL_checkinteger($0,5);if(($3|0)>=0){$4=$3;$2=HEAP32[$5+932>>2];if(!$2){$2=HEAP32[HEAP32[$5+936>>2]>>2]}if(($4|0)<=HEAPU16[HEAP32[$2+64>>2]+28>>1]){break label$3}}HEAP32[$1+16>>2]=$3;$3=luaL_error($0,74695,$1+16|0);break label$1}$2=HEAP32[$5+936>>2];HEAP32[$1+116>>2]=HEAP32[$2+36>>2];HEAP32[$1+112>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+28>>2];HEAP32[$1+104>>2]=HEAP32[$2+32>>2];$2=HEAP32[$5+936>>2];HEAP32[$1+100>>2]=($7+ -1|0)-HEAP32[$2+36>>2];HEAP32[$1+96>>2]=($9+ -1|0)-HEAP32[$2+40>>2];$2=HEAP32[$1+100>>2];label$7:{label$8:{if(($2|0)<0|($2|0)>=HEAP32[$1+108>>2]){break label$8}$2=HEAP32[$1+96>>2];if(($2|0)<0){break label$8}if(($2|0)>2]){break label$7}}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,74619,74753,0);$3=HEAP32[$0+8>>2];HEAP32[$3+8>>2]=1;HEAP32[$3>>2]=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;$3=1;if(($6+1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$1}__assert_fail(74654,74535,262,74679);abort()}$2=lua_toboolean($0,6);$4=lua_toboolean($0,7);$3=$3+ -1|0;$2=($2|0)!=0;$4=($4|0)!=0;dmGameSystem__SetTileGridTile_28dmGameSystem__TileGridComponent__2c_20unsigned_20int_2c_20int_2c_20int_2c_20unsigned_20int_2c_20bool_2c_20bool_29($5,$8,HEAP32[$1+100>>2],HEAP32[$1+96>>2],$3,$2,$4);HEAP32[$1+88>>2]=0;HEAP32[$1+92>>2]=0;HEAP32[$1+80>>2]=0;HEAP32[$1+84>>2]=0;HEAP32[$1+72>>2]=0;HEAP32[$1+76>>2]=0;HEAP32[$1+64>>2]=0;HEAP32[$1+68>>2]=0;if(dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29($0,$1- -64|0)){HEAP32[$1+48>>2]=HEAP32[$1+100>>2];HEAP32[$1+40>>2]=$8;HEAP32[$1+52>>2]=$3;HEAP32[$1+44>>2]=HEAP32[$1+96>>2];HEAP32[$1+60>>2]=$4;HEAP32[$1+56>>2]=$2;$3=HEAP32[133990];$2=HEAP32[$3+8>>2];$4=HEAP32[$3+12>>2];HEAP32[$1+144>>2]=0;HEAP32[$1+148>>2]=0;$3=dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($1- -64|0,$1+120|0,$2,$4,0,$3,$1+40|0,24,0);if($3){HEAP32[$1+32>>2]=HEAP32[HEAP32[133990]+4>>2];HEAP32[$1+36>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,74619,74818,$1+32|0)}$3=1;$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=1;HEAP32[$2>>2]=1;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;if(($6+1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){break label$1}__assert_fail(74654,74535,298,74679);abort()}$3=luaL_error($0,74863,0)}global$0=$1+160|0;return $3|0}function btDefaultCollisionConfiguration___btDefaultCollisionConfiguration_28_29($0){$0=$0|0;var $1=0,$2=0,$3=0;HEAP32[$0>>2]=543224;if(HEAPU8[$0+12|0]){$2=HEAP32[$0+8>>2];label$2:{if(HEAP32[$2+8>>2]){$1=$2;break label$2}$1=$2;$3=$1;label$4:{if(HEAPU8[$1+16|0]){break label$4}$1=HEAP32[$2>>2];if(!$1){$1=$2;$3=$1;break label$4}if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+8>>2];$3=$1}HEAP32[$2+8>>2]=0;HEAP32[$2>>2]=0;if(HEAP32[$3+8>>2]){break label$2}label$7:{if(HEAPU8[$3+16|0]){break label$7}$2=HEAP32[$3>>2];if(!$2){break label$7}if($2){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$2+ -4>>2])}$1=HEAP32[$0+8>>2]}HEAP32[$3+8>>2]=0;HEAP32[$3>>2]=0}if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}}if(HEAPU8[$0+28|0]){$1=HEAP32[HEAP32[$0+24>>2]+16>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+24>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}}if(HEAPU8[$0+20|0]){$1=HEAP32[HEAP32[$0+16>>2]+16>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+16>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}}$1=HEAP32[$0+40>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+40>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+44>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+44>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+48>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+48>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+52>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+52>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+56>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+56>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+60>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+60>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+64>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+64>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+72>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+72>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+76>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+76>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+68>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+68>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+84>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+84>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+80>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+80>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+32>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}$1=HEAP32[$0+36>>2];FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]>>2]]($1)|0;$1=HEAP32[$0+36>>2];if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}return $0|0}function dmGui__CalculateParentNodeTransformAndAlphaCached_28dmGui__Scene__2c_20dmGui__InternalNode__2c_20Vectormath__Aos__Matrix4__2c_20float__2c_20dmGui__SceneTraversalCache__29($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$5=global$0-144|0;global$0=$5;$7=HEAPU16[$4+18>>1];label$1:{if(($7|0)!=HEAPU16[$1+568>>1]){HEAP16[$1+568>>1]=$7;$6=HEAPU16[$4+16>>1];HEAP16[$4+16>>1]=$6+1;HEAP16[$1+566>>1]=$6;$7=0;break label$1}$6=HEAPU16[$1+566>>1];$7=1}label$3:{label$4:{label$5:{$8=HEAP32[$4>>2];if((HEAP32[$4+4>>2]-$8|0)/80>>>0>$6>>>0){$9=HEAPU16[$1+560>>1];if(($9|0)!=65535){$10=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$10|0)/576>>>0<=$9>>>0){break label$3}dmGui__CalculateParentNodeTransformAndAlphaCached_28dmGui__Scene__2c_20dmGui__InternalNode__2c_20Vectormath__Aos__Matrix4__2c_20float__2c_20dmGui__SceneTraversalCache__29($0,Math_imul($9,576)+$10|0,$5+80|0,$5+76|0,$4)}$4=Math_imul($6,80)+$8|0;if(!(!(HEAP8[$0+374|0]&1)|HEAP32[$0+336>>2]==2?!(HEAPU8[$1+414|0]&32):0)){dmGui__UpdateLocalTransform_28dmGui__Scene__2c_20dmGui__InternalNode__29($0,$1);break label$5}if(!$7){break label$5}HEAP32[$2>>2]=HEAP32[$4>>2];$0=Math_imul($6,80)+$8|0;HEAP32[$2+4>>2]=HEAP32[$0+4>>2];HEAP32[$2+8>>2]=HEAP32[$0+8>>2];HEAP32[$2+12>>2]=HEAP32[$0+12>>2];HEAP32[$2+16>>2]=HEAP32[$0+16>>2];HEAP32[$2+20>>2]=HEAP32[$0+20>>2];HEAP32[$2+24>>2]=HEAP32[$0+24>>2];HEAP32[$2+28>>2]=HEAP32[$0+28>>2];HEAP32[$2+32>>2]=HEAP32[$0+32>>2];HEAP32[$2+36>>2]=HEAP32[$0+36>>2];HEAP32[$2+40>>2]=HEAP32[$0+40>>2];HEAP32[$2+44>>2]=HEAP32[$0+44>>2];HEAP32[$2+48>>2]=HEAP32[$0+48>>2];HEAP32[$2+52>>2]=HEAP32[$0+52>>2];HEAP32[$2+56>>2]=HEAP32[$0+56>>2];HEAP32[$2+60>>2]=HEAP32[$0+60>>2];HEAP32[$3>>2]=HEAP32[$0+64>>2];break label$4}break label$3}HEAP32[$2>>2]=HEAP32[$1+320>>2];HEAP32[$2+4>>2]=HEAP32[$1+324>>2];HEAP32[$2+8>>2]=HEAP32[$1+328>>2];HEAP32[$2+12>>2]=HEAP32[$1+332>>2];HEAP32[$2+16>>2]=HEAP32[$1+336>>2];HEAP32[$2+20>>2]=HEAP32[$1+340>>2];HEAP32[$2+24>>2]=HEAP32[$1+344>>2];HEAP32[$2+28>>2]=HEAP32[$1+348>>2];HEAP32[$2+32>>2]=HEAP32[$1+352>>2];HEAP32[$2+36>>2]=HEAP32[$1+356>>2];HEAP32[$2+40>>2]=HEAP32[$1+360>>2];HEAP32[$2+44>>2]=HEAP32[$1+364>>2];HEAP32[$2+48>>2]=HEAP32[$1+368>>2];HEAP32[$2+52>>2]=HEAP32[$1+372>>2];HEAP32[$2+56>>2]=HEAP32[$1+376>>2];HEAP32[$2+60>>2]=HEAP32[$1+380>>2];HEAP32[$3>>2]=HEAP32[$1+60>>2];label$10:{if(HEAPU16[$1+560>>1]==65535){break label$10}Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($5,$5+80|0,$2);HEAP32[$2>>2]=HEAP32[$5>>2];HEAP32[$2+4>>2]=HEAP32[$5+4>>2];HEAP32[$2+8>>2]=HEAP32[$5+8>>2];HEAP32[$2+12>>2]=HEAP32[$5+12>>2];HEAP32[$2+16>>2]=HEAP32[$5+16>>2];HEAP32[$2+20>>2]=HEAP32[$5+20>>2];HEAP32[$2+24>>2]=HEAP32[$5+24>>2];HEAP32[$2+28>>2]=HEAP32[$5+28>>2];HEAP32[$2+32>>2]=HEAP32[$5+32>>2];HEAP32[$2+36>>2]=HEAP32[$5+36>>2];HEAP32[$2+40>>2]=HEAP32[$5+40>>2];HEAP32[$2+44>>2]=HEAP32[$5+44>>2];HEAP32[$2+48>>2]=HEAP32[$5+48>>2];HEAP32[$2+52>>2]=HEAP32[$5+52>>2];HEAP32[$2+56>>2]=HEAP32[$5+56>>2];HEAP32[$2+60>>2]=HEAP32[$5+60>>2];if(!(HEAPU8[$1+414|0]&64)){break label$10}HEAPF32[$3>>2]=HEAPF32[$5+76>>2]*HEAPF32[$3>>2]}HEAP32[$4>>2]=HEAP32[$2>>2];$0=Math_imul($6,80)+$8|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2];HEAP32[$0+8>>2]=HEAP32[$2+8>>2];HEAP32[$0+12>>2]=HEAP32[$2+12>>2];HEAP32[$0+16>>2]=HEAP32[$2+16>>2];HEAP32[$0+20>>2]=HEAP32[$2+20>>2];HEAP32[$0+24>>2]=HEAP32[$2+24>>2];HEAP32[$0+28>>2]=HEAP32[$2+28>>2];HEAP32[$0+32>>2]=HEAP32[$2+32>>2];HEAP32[$0+36>>2]=HEAP32[$2+36>>2];HEAP32[$0+40>>2]=HEAP32[$2+40>>2];HEAP32[$0+44>>2]=HEAP32[$2+44>>2];HEAP32[$0+48>>2]=HEAP32[$2+48>>2];HEAP32[$0+52>>2]=HEAP32[$2+52>>2];HEAP32[$0+56>>2]=HEAP32[$2+56>>2];HEAP32[$0+60>>2]=HEAP32[$2+60>>2];HEAP32[$0+64>>2]=HEAP32[$3>>2]}global$0=$5+144|0;return}__assert_fail(201597,201431,430,201608);abort()}function dmGameSystem__CompLabelGetProperty_28dmGameObject__ComponentGetPropertyParams_20const__2c_20dmGameObject__PropertyDesc__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0;$2=HEAP32[$0+4>>2];$3=HEAP32[$2+16>>2];$4=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$2+20>>2]-$3>>3>>>0>$4>>>0){$5=HEAP32[$2>>2];$4=HEAP32[$3+($4<<3)>>2];if(HEAP32[$2+4>>2]-$5>>10>>>0>$4>>>0){label$3:{$2=HEAP32[$0+16>>2];$3=HEAP32[$0+20>>2];if(!(($2|0)==HEAP32[146190]&($3|0)==HEAP32[146191]|($2|0)==HEAP32[146192]&($3|0)==HEAP32[146193]|($2|0)==HEAP32[146194]&($3|0)==HEAP32[146195])){if(($2|0)!=HEAP32[146196]|($3|0)!=HEAP32[146197]){break label$3}}return dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector3_20const__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$3,($5+($4<<10)|0)- -64|0,584760)|0}label$5:{if(!(($2|0)==HEAP32[146204]&($3|0)==HEAP32[146205]|(($2|0)==HEAP32[146200]&($3|0)==HEAP32[146201]|($2|0)==HEAP32[146202]&($3|0)==HEAP32[146203]))){if(($2|0)!=HEAP32[146206]|($3|0)!=HEAP32[146207]){break label$5}}return dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector3_20const__2c_20dmGameSystem__PropVector3_20const__29($1,$2,$3,($5+($4<<10)|0)+48|0,584800)|0}label$7:{if(!(($2|0)==HEAP32[146210]&($3|0)==HEAP32[146211]|($2|0)==HEAP32[146212]&($3|0)==HEAP32[146213]|(($2|0)==HEAP32[146214]&($3|0)==HEAP32[146215]|($2|0)==HEAP32[146216]&($3|0)==HEAP32[146217]))){if(($2|0)!=HEAP32[146218]|($3|0)!=HEAP32[146219]){break label$7}}return dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$3,($5+($4<<10)|0)+80|0,584840)|0}label$9:{if(!(($2|0)==HEAP32[146222]&($3|0)==HEAP32[146223]|($2|0)==HEAP32[146224]&($3|0)==HEAP32[146225]|(($2|0)==HEAP32[146226]&($3|0)==HEAP32[146227]|($2|0)==HEAP32[146228]&($3|0)==HEAP32[146229]))){if(($2|0)!=HEAP32[146230]|($3|0)!=HEAP32[146231]){break label$9}}return dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$3,($5+($4<<10)|0)+96|0,584888)|0}label$11:{if(!(($2|0)==HEAP32[146234]&($3|0)==HEAP32[146235]|($2|0)==HEAP32[146236]&($3|0)==HEAP32[146237]|(($2|0)==HEAP32[146238]&($3|0)==HEAP32[146239]|($2|0)==HEAP32[146240]&($3|0)==HEAP32[146241]))){if(($2|0)!=HEAP32[146242]|($3|0)!=HEAP32[146243]){break label$11}}return dmGameSystem__GetProperty_28dmGameObject__PropertyDesc__2c_20unsigned_20long_20long_2c_20Vectormath__Aos__Vector4_20const__2c_20dmGameSystem__PropVector4_20const__29($1,$2,$3,($5+($4<<10)|0)+112|0,584936)|0}if(($2|0)==HEAP32[146170]&HEAP32[146171]==($3|0)){$2=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$5+($4<<10)|0;$0=HEAP32[$3+1008>>2];if(!$0){$0=HEAP32[HEAP32[$3+216>>2]+4>>2]}return dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($2,$0,$1)|0}if(($2|0)==HEAP32[146166]&HEAP32[146167]==($3|0)){$2=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$5+($4<<10)|0;$0=HEAP32[$3+1012>>2];if(!$0){$0=HEAP32[HEAP32[$3+216>>2]+8>>2]}return dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29($2,$0,$1)|0}$6=$5+($4<<10)|0;$0=HEAP32[$6+1008>>2];if(!$0){$0=HEAP32[HEAP32[$6+216>>2]+4>>2]}return dmGameSystem__GetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__2c_20bool_2c_20bool_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmRender__Constant___29_2c_20void__29($0,$2,$3,$1,0,463,$5+($4<<10)|0)|0}}__assert_fail(43706,43608,430,43717);abort()}function b2World__Solve_28b2TimeStep_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0;$11=global$0-96|0;global$0=$11;HEAP32[$0+103016>>2]=0;$8=$0+103008|0;HEAP32[$8>>2]=0;HEAP32[$8+4>>2]=0;$15=$0+68|0;$3=b2Island__b2Island_28int_2c_20int_2c_20int_2c_20b2StackAllocator__2c_20b2ContactListener__29($11+40|0,HEAP32[$0+102960>>2],HEAP32[$0+102936>>2],HEAP32[$0+102964>>2],$15,HEAP32[$0+102944>>2]);$2=HEAP32[$0+102952>>2];if($2){while(1){HEAP16[$2+4>>1]=HEAPU16[$2+4>>1]&65534;$2=HEAP32[$2+96>>2];if($2){continue}break}}$2=HEAP32[$0+102932>>2];if($2){while(1){HEAP32[$2+4>>2]=HEAP32[$2+4>>2]&-2;$2=HEAP32[$2+12>>2];if($2){continue}break}}$2=HEAP32[$0+102956>>2];if($2){while(1){HEAP8[$2+60|0]=0;$2=HEAP32[$2+12>>2];if($2){continue}break}}$16=HEAP32[$0+102960>>2];$13=b2StackAllocator__Allocate_28int_29($15,$16<<2);label$7:{label$8:{label$9:{label$10:{label$11:{label$12:{$10=HEAP32[$0+102952>>2];if($10){$18=$0+102968|0;while(1){$4=HEAPU16[$10+4>>1];label$15:{if(!HEAP32[$10>>2]|($4&35)!=34){break label$15}$8=0;HEAP32[$3+36>>2]=0;HEAP32[$3+28>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$13>>2]=$10;$5=1;HEAP16[$10+4>>1]=$4|1;$19=HEAP32[$3+40>>2];$4=0;$12=0;while(1){$5=$5+ -1|0;$6=HEAP32[($5<<2)+$13>>2];$9=HEAPU16[$6+4>>1];if(!($9&32)){break label$12}if(($12|0)>=($19|0)){break label$11}HEAP32[$6+8>>2]=$12;HEAP32[HEAP32[$3+8>>2]+($12<<2)>>2]=$6;$12=$12+1|0;HEAP32[$3+28>>2]=$12;if(!($9&2)){HEAP32[$6+144>>2]=0;HEAP16[$6+4>>1]=$9|2}label$18:{if(!HEAP32[$6>>2]){break label$18}$2=HEAP32[$6+112>>2];if($2){$17=HEAP32[$3+44>>2];while(1){$7=HEAP32[$2+4>>2];$14=HEAP32[$7+4>>2];if(!(($14&7)!=6|HEAPU8[HEAP32[$7+48>>2]+44|0]|HEAPU8[HEAP32[$7+52>>2]+44|0])){if(($4|0)>=($17|0)){break label$10}$9=$4+1|0;HEAP32[$3+36>>2]=$9;HEAP32[HEAP32[$3+12>>2]+($4<<2)>>2]=$7;HEAP32[$7+4>>2]=$14|1;$4=HEAP32[$2>>2];$7=HEAPU16[$4+4>>1];if(!($7&1)){if(($5|0)>=($16|0)){break label$9}HEAP32[($5<<2)+$13>>2]=$4;HEAP16[$4+4>>1]=$7|1;$5=$5+1|0}$4=$9}$2=HEAP32[$2+12>>2];if($2){continue}break}}$2=HEAP32[$6+108>>2];if(!$2){break label$18}$17=HEAP32[$3+48>>2];while(1){$14=HEAP32[$2+4>>2];label$24:{if(HEAPU8[$14+60|0]){break label$24}$6=HEAP32[$2>>2];$7=HEAPU16[$6+4>>1];if(!($7&32)){break label$24}if(($8|0)>=($17|0)){break label$8}$9=$8+1|0;HEAP32[$3+32>>2]=$9;HEAP32[HEAP32[$3+16>>2]+($8<<2)>>2]=$14;HEAP8[HEAP32[$2+4>>2]+60|0]=1;if(!($7&1)){if(($5|0)>=($16|0)){break label$7}HEAP32[($5<<2)+$13>>2]=$6;HEAP16[$6+4>>1]=$7|1;$5=$5+1|0}$8=$9}$2=HEAP32[$2+12>>2];if($2){continue}break}}if(($5|0)>0){continue}break}b2Island__Solve_28b2Profile__2c_20b2TimeStep_20const__2c_20b2Vec2_20const__2c_20bool_29($3,$11+8|0,$1,$18,HEAPU8[$0+102976|0]);HEAPF32[$0+103008>>2]=HEAPF32[$11+20>>2]+HEAPF32[$0+103008>>2];HEAPF32[$0+103012>>2]=HEAPF32[$11+24>>2]+HEAPF32[$0+103012>>2];HEAPF32[$0+103016>>2]=HEAPF32[$11+28>>2]+HEAPF32[$0+103016>>2];$4=HEAP32[$3+28>>2];if(($4|0)<1){break label$15}$9=HEAP32[$3+8>>2];$2=0;while(1){$8=HEAP32[$9+($2<<2)>>2];if(!HEAP32[$8>>2]){HEAP16[$8+4>>1]=HEAPU16[$8+4>>1]&65534}$2=$2+1|0;if(($4|0)!=($2|0)){continue}break}}$10=HEAP32[$10+96>>2];if($10){continue}break}}$1=$0+102872|0;b2StackAllocator__Free_28void__29($15,$13);$2=HEAP32[$0+102952>>2];if($2){while(1){if(!(!(HEAP8[$2+4|0]&1)|!HEAP32[$2>>2])){b2Body__SynchronizeFixtures_28_29($2)}$2=HEAP32[$2+96>>2];if($2){continue}break}}b2ContactManager__FindNewContacts_28_29($1);HEAPF32[$0+103020>>2]=0;b2Island___b2Island_28_29($3);global$0=$11+96|0;return}__assert_fail(97502,97381,446,97524);abort()}__assert_fail(97657,97686,54,97725);abort()}__assert_fail(97729,97686,62,97725);abort()}__assert_fail(97530,97381,496,97524);abort()}__assert_fail(97764,97686,68,97725);abort()}__assert_fail(97530,97381,525,97524);abort()}function btTransformUtil__calculateDiffAxisAngle_28btTransform_20const__2c_20btTransform_20const__2c_20btVector3__2c_20float__29($0,$1,$2,$3){var $4=Math_fround(0),$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0);$5=global$0+ -64|0;global$0=$5;$15=HEAPF32[$1+24>>2];$16=HEAPF32[$1+20>>2];$17=HEAPF32[$1+40>>2];$18=HEAPF32[$1+36>>2];$9=HEAPF32[$0+40>>2];$10=HEAPF32[$0+20>>2];$13=HEAPF32[$0+36>>2];$11=HEAPF32[$0+24>>2];$19=HEAPF32[$1+8>>2];$20=HEAPF32[$1>>2];$21=HEAPF32[$1+4>>2];$22=HEAPF32[$1+16>>2];$23=HEAPF32[$1+32>>2];$6=HEAPF32[$0+8>>2];$7=HEAPF32[$0+4>>2];$14=HEAPF32[$0+32>>2];$12=HEAPF32[$0+16>>2];$8=HEAPF32[$0>>2];HEAP32[$5+60>>2]=0;HEAP32[$5+44>>2]=0;$25=Math_fround(Math_fround($10*$9)-Math_fround($11*$13));$26=Math_fround(Math_fround($11*$14)-Math_fround($9*$12));$27=Math_fround(Math_fround($13*$12)-Math_fround($10*$14));$4=Math_fround(Math_fround(1)/Math_fround(Math_fround(Math_fround($8*$25)+Math_fround($7*$26))+Math_fround($6*$27)));$24=Math_fround(Math_fround(Math_fround($11*$7)-Math_fround($10*$6))*$4);$11=Math_fround(Math_fround(Math_fround($12*$6)-Math_fround($11*$8))*$4);$10=Math_fround(Math_fround(Math_fround($10*$8)-Math_fround($12*$7))*$4);HEAPF32[$5+56>>2]=Math_fround(Math_fround($23*$24)+Math_fround($18*$11))+Math_fround($17*$10);$12=Math_fround(Math_fround(Math_fround($13*$6)-Math_fround($9*$7))*$4);$6=Math_fround(Math_fround(Math_fround($9*$8)-Math_fround($14*$6))*$4);$7=Math_fround(Math_fround(Math_fround($14*$7)-Math_fround($13*$8))*$4);HEAPF32[$5+52>>2]=Math_fround(Math_fround($23*$12)+Math_fround($18*$6))+Math_fround($17*$7);HEAPF32[$5+40>>2]=Math_fround(Math_fround($24*$22)+Math_fround($11*$16))+Math_fround($10*$15);HEAPF32[$5+36>>2]=Math_fround(Math_fround($12*$22)+Math_fround($6*$16))+Math_fround($7*$15);HEAP32[$5+28>>2]=0;$8=Math_fround($25*$4);$9=Math_fround($26*$4);$4=Math_fround($27*$4);HEAPF32[$5+48>>2]=Math_fround(Math_fround($23*$8)+Math_fround($18*$9))+Math_fround($17*$4);HEAPF32[$5+32>>2]=Math_fround(Math_fround($8*$22)+Math_fround($9*$16))+Math_fround($4*$15);HEAPF32[$5+24>>2]=Math_fround($19*$10)+Math_fround(Math_fround($20*$24)+Math_fround($21*$11));HEAPF32[$5+20>>2]=Math_fround($19*$7)+Math_fround(Math_fround($20*$12)+Math_fround($21*$6));HEAPF32[$5+16>>2]=Math_fround($19*$4)+Math_fround(Math_fround($20*$8)+Math_fround($21*$9));btMatrix3x3__getRotation_28btQuaternion__29_20const($5+16|0,$5);$8=HEAPF32[$5>>2];$7=HEAPF32[$5+4>>2];$6=HEAPF32[$5+8>>2];$9=HEAPF32[$5+12>>2];$4=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround(Math_fround(Math_fround(Math_fround($8*$8)+Math_fround($7*$7))+Math_fround($6*$6))+Math_fround($9*$9)))));$6=Math_fround($6*$4);HEAPF32[$5+8>>2]=$6;$7=Math_fround($7*$4);HEAPF32[$5+4>>2]=$7;$8=Math_fround($8*$4);HEAPF32[$5>>2]=$8;$4=Math_fround($9*$4);HEAPF32[$5+12>>2]=$4;$4=acosf(Math_fround(Math_min(Math_fround(Math_max($4,Math_fround(-1))),Math_fround(1))));HEAPF32[$3>>2]=$4+$4;HEAP32[$2+12>>2]=0;HEAPF32[$2+8>>2]=$6;HEAPF32[$2+4>>2]=$7;HEAPF32[$2>>2]=$8;$4=Math_fround(Math_fround(Math_fround($8*$8)+Math_fround($7*$7))+Math_fround($6*$6));label$1:{if(!!($4>2]=0;HEAP32[$2+12>>2]=0;HEAP32[$2>>2]=1065353216;HEAP32[$2+4>>2]=0;break label$1}$4=Math_fround(Math_fround(1)/Math_fround(Math_sqrt($4)));HEAPF32[$2+8>>2]=$6*$4;HEAPF32[$2+4>>2]=$7*$4;HEAPF32[$2>>2]=$8*$4}global$0=$5- -64|0}function b2GearJoint__b2GearJoint_28b2GearJointDef_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=0,$14=Math_fround(0),$15=0,$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0);b2Joint__b2Joint_28b2JointDef_20const__29($0,$1);HEAP32[$0>>2]=545212;$2=HEAP32[$1+20>>2];HEAP32[$0+68>>2]=$2;$15=HEAP32[$1+24>>2];HEAP32[$0+72>>2]=$15;$13=HEAP32[$2+4>>2];HEAP32[$0+76>>2]=$13;$11=HEAP32[$15+4>>2];HEAP32[$0+80>>2]=$11;label$1:{if($13+ -1>>>0<2){if($11+ -1>>>0>=2){break label$1}$3=HEAP32[$2+48>>2];HEAP32[$0+84>>2]=$3;$4=HEAP32[$2+52>>2];HEAP32[$0+48>>2]=$4;label$3:{if(($13|0)==1){$8=HEAPF32[$3+56>>2];$5=HEAPF32[$4+56>>2];$3=HEAP32[$2+72>>2];HEAP32[$0+108>>2]=HEAP32[$2+68>>2];HEAP32[$0+112>>2]=$3;$3=HEAP32[$2+80>>2];HEAP32[$0+92>>2]=HEAP32[$2+76>>2];HEAP32[$0+96>>2]=$3;$6=HEAPF32[$2+116>>2];$3=HEAP32[$2+116>>2];HEAP32[$0+124>>2]=0;HEAP32[$0+128>>2]=0;HEAP32[$0+140>>2]=$3;$8=Math_fround(Math_fround($5-$8)-$6);break label$3}$5=HEAPF32[$3+24>>2];$6=HEAPF32[$3+20>>2];$10=HEAPF32[$4+24>>2];$14=HEAPF32[$4+20>>2];$16=HEAPF32[$4+16>>2];$17=HEAPF32[$3+16>>2];$12=HEAPF32[$4+12>>2];$7=HEAPF32[$3+12>>2];$18=HEAPF32[$2+72>>2];$3=HEAP32[$2+72>>2];$9=HEAPF32[$2+68>>2];HEAP32[$0+108>>2]=HEAP32[$2+68>>2];HEAP32[$0+112>>2]=$3;$19=HEAPF32[$2+80>>2];$4=HEAP32[$2+80>>2];$8=HEAPF32[$2+76>>2];HEAP32[$0+92>>2]=HEAP32[$2+76>>2];HEAP32[$0+96>>2]=$4;HEAP32[$0+140>>2]=HEAP32[$2+100>>2];$20=HEAPF32[$2+88>>2];$13=HEAP32[$2+88>>2];$21=HEAPF32[$2+84>>2];HEAP32[$0+124>>2]=HEAP32[$2+84>>2];HEAP32[$0+128>>2]=$13;$7=Math_fround($12-$7);$12=$19;$7=Math_fround($7+Math_fround(Math_fround($10*$8)-Math_fround($14*$12)));$8=Math_fround(Math_fround($16-$17)+Math_fround(Math_fround($14*$8)+Math_fround($10*$12)));$8=Math_fround(Math_fround(Math_fround(Math_fround(Math_fround($5*$7)+Math_fround($6*$8))-$9)*$21)+Math_fround(Math_fround(Math_fround(Math_fround($5*$8)-Math_fround($6*$7))-$18)*$20))}$3=HEAP32[$15+48>>2];HEAP32[$0+88>>2]=$3;$4=HEAP32[$15+52>>2];HEAP32[$0+52>>2]=$4;label$5:{if(($11|0)==1){$5=HEAPF32[$3+56>>2];$6=HEAPF32[$4+56>>2];$3=HEAP32[$1+24>>2];$4=HEAP32[$3+72>>2];HEAP32[$0+116>>2]=HEAP32[$3+68>>2];HEAP32[$0+120>>2]=$4;$4=HEAP32[$3+80>>2];HEAP32[$0+100>>2]=HEAP32[$3+76>>2];HEAP32[$0+104>>2]=$4;$10=HEAPF32[$3+116>>2];$3=HEAP32[$3+116>>2];HEAP32[$0+132>>2]=0;HEAP32[$0+136>>2]=0;HEAP32[$0+144>>2]=$3;$5=Math_fround(Math_fround($6-$5)-$10);break label$5}$6=HEAPF32[$3+24>>2];$10=HEAPF32[$3+20>>2];$14=HEAPF32[$4+24>>2];$16=HEAPF32[$4+20>>2];$17=HEAPF32[$4+16>>2];$12=HEAPF32[$3+16>>2];$7=HEAPF32[$4+12>>2];$9=HEAPF32[$3+12>>2];$2=HEAP32[$1+24>>2];$18=HEAPF32[$2+72>>2];$3=HEAP32[$2+72>>2];$21=HEAPF32[$2+68>>2];HEAP32[$0+116>>2]=HEAP32[$2+68>>2];HEAP32[$0+120>>2]=$3;$19=HEAPF32[$2+80>>2];$4=HEAP32[$2+80>>2];$5=HEAPF32[$2+76>>2];HEAP32[$0+100>>2]=HEAP32[$2+76>>2];HEAP32[$0+104>>2]=$4;HEAP32[$0+144>>2]=HEAP32[$2+100>>2];$20=HEAPF32[$2+88>>2];$11=HEAP32[$2+88>>2];$22=HEAPF32[$2+84>>2];HEAP32[$0+132>>2]=HEAP32[$2+84>>2];HEAP32[$0+136>>2]=$11;$9=Math_fround($7-$9);$7=$19;$9=Math_fround($9+Math_fround(Math_fround($14*$5)-Math_fround($16*$7)));$5=Math_fround(Math_fround($17-$12)+Math_fround(Math_fround($16*$5)+Math_fround($14*$7)));$5=Math_fround(Math_fround(Math_fround(Math_fround(Math_fround($6*$9)+Math_fround($10*$5))-$21)*$22)+Math_fround(Math_fround(Math_fround(Math_fround($6*$5)-Math_fround($10*$9))-$18)*$20))}$6=HEAPF32[$1+28>>2];HEAP32[$0+156>>2]=0;HEAPF32[$0+152>>2]=$6;HEAPF32[$0+148>>2]=$8+Math_fround($5*$6);return}__assert_fail(89793,89851,53,89902);abort()}__assert_fail(89914,89851,54,89902);abort()}function dmGameSystem__CompSpriteSetProperty_28dmGameObject__ComponentSetPropertyParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=0,$6=0,$7=0,$8=0,$9=0;$3=HEAP32[$0+4>>2];$2=HEAP32[$3+16>>2];$1=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$3+20>>2]-$2>>3>>>0>$1>>>0){$5=HEAP32[$3>>2];$6=HEAP32[$2+($1<<3)>>2];if(HEAP32[$3+4>>2]-$5>>10>>>0>$6>>>0){label$3:{$2=HEAP32[$0+16>>2];$1=HEAP32[$0+20>>2];if(!(($2|0)==HEAP32[146610]&($1|0)==HEAP32[146611]|($2|0)==HEAP32[146612]&($1|0)==HEAP32[146613]|($2|0)==HEAP32[146614]&($1|0)==HEAP32[146615])){if(($2|0)!=HEAP32[146616]|($1|0)!=HEAP32[146617]){break label$3}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector3__2c_20dmGameSystem__PropVector3_20const__29($2,$1,$0+32|0,($5+($6<<10)|0)+48|0,586440)|0}label$5:{if(!(($2|0)==HEAP32[146624]&($1|0)==HEAP32[146625]|(($2|0)==HEAP32[146620]&($1|0)==HEAP32[146621]|($2|0)==HEAP32[146622]&($1|0)==HEAP32[146623]))){if(($2|0)!=HEAP32[146626]|($1|0)!=HEAP32[146627]){break label$5}}return dmGameSystem__SetProperty_28unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20Vectormath__Aos__Vector3__2c_20dmGameSystem__PropVector3_20const__29($2,$1,$0+32|0,($5+($6<<10)|0)- -64|0,586480)|0}label$7:{if(($2|0)==HEAP32[146630]&($1|0)==HEAP32[146631]){$2=-4;if(HEAP32[$0+32>>2]){break label$7}$9=HEAPF64[$0+40>>3];$3=$5+($6<<10)|0;$0=HEAPU16[$3+1010>>1];HEAP16[$3+1010>>1]=$0|16;$4=Math_fround($9);$4=$4>2]=$0&2?Math_fround(Math_fround(1)-$4):$4;return 0}if(($2|0)==HEAP32[146632]&($1|0)==HEAP32[146633]){$2=-4;if(HEAP32[$0+32>>2]){break label$7}HEAPF32[($5+($6<<10)|0)+1004>>2]=HEAPF64[$0+40>>3];return 0}if(($2|0)==HEAP32[146590]&($1|0)==HEAP32[146591]){$1=HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2];$3=$0+32|0;$0=$5+($6<<10)|0;$3=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29($1,$3,HEAP32[146572],HEAP32[146573],$0+980|0);$1=$0;$0=HEAPU16[$0+1010>>1];HEAP16[$1+1010>>1]=($3?$0&256:256)|$0&65279;return $3|0}$8=$5+($6<<10)|0;if(($2|0)==HEAP32[146588]&($1|0)==HEAP32[146589]){$1=$5+($6<<10)|0;$7=$1;$2=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29(HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2],$0+32|0,HEAP32[146582],HEAP32[146583],$1+976|0);$0=HEAPU16[$1+1010>>1];HEAP16[$1+1010>>1]=($2?$0&256:256)|$0&65279;if($2){break label$7}$4=HEAPF32[$1+1e3>>2];$4=$0&2?Math_fround(Math_fround(1)-$4):$4;$2=HEAP32[$1+984>>2];$1=HEAP32[$1+988>>2];label$12:{if(!($0&1)){break label$12}$4=Math_fround($4+$4);if(!($4>Math_fround(1))){break label$12}$4=Math_fround(Math_fround(2)-$4)}$0=$5+($6<<10)|0;dmGameSystem__PlayAnimation_28dmGameSystem__SpriteComponent__2c_20unsigned_20long_20long_2c_20float_2c_20float_29($8,$2,$1,$4,HEAPF32[$0+1004>>2]);$2=HEAP32[$7+976>>2];if(!$2){$2=HEAP32[HEAP32[$0+188>>2]+8>>2]}$0=$3;$7=$0;$1=HEAPU8[$0+96|0];if($1&2){$0=0}else{$0=(HEAP32[HEAP32[$2+64>>2]+72>>2]!=0)<<2}$0=$0|$1;HEAP8[$7+96|0]=$0;HEAP8[$3+96|0]=($1|HEAPU8[HEAP32[$2+64>>2]+72|0]<<1)&2|$0&253;return 0}$5=$5+($6<<10)|0;$3=HEAP32[$5+980>>2];if(!$3){$3=HEAP32[HEAP32[$5+188>>2]+16>>2]}$2=dmGameSystem__SetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20void_20_28__29_28void__2c_20unsigned_20long_20long_2c_20unsigned_20int__2c_20dmGameObject__PropertyVar_20const__29_2c_20void__29($3,$2,$1,$0+32|0,486,$8)}return $2|0}}__assert_fail(52907,52459,430,52059);abort()}function convert_channels_short_interleaved($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=Math_fround(0),$18=0,$19=0;$18=global$0-128|0;global$0=$18;label$1:{if(!(($2|0)>6|($0|0)>2|($0|0)==($2|0))){if(($0|0)==2){if(($5|0)<=0){break label$1}$0=16;while(1){$15=memset($18,0,128);$12=$0+$7|0;$14=($12|0)>($5|0);$0=$14?$5-$7|0:$0;if(!(($2|0)<1|($0|0)<1)){$10=$4+$7|0;$8=0;while(1){$6=(HEAPU8[(Math_imul($2,6)+215200|0)+$8|0]&6)+ -2|0;label$7:{if($6>>>0>4){break label$7}label$8:{switch($6-1|0){case 3:$16=HEAP32[($8<<2)+$3>>2];$6=0;while(1){$9=$6<<3;$13=$9+$15|0;$17=HEAPF32[$16+($6+$10<<2)>>2];HEAPF32[$13>>2]=$17+HEAPF32[$13>>2];$9=$15+($9|4)|0;HEAPF32[$9>>2]=$17+HEAPF32[$9>>2];$6=$6+1|0;if(($6|0)<($0|0)){continue}break}break label$7;case 1:$16=HEAP32[($8<<2)+$3>>2];$6=0;while(1){$9=$15+($6<<3|4)|0;HEAPF32[$9>>2]=HEAPF32[$16+($6+$10<<2)>>2]+HEAPF32[$9>>2];$6=$6+1|0;if(($6|0)<($0|0)){continue}break}break label$7;case 0:case 2:break label$7;default:break label$8}}$16=HEAP32[($8<<2)+$3>>2];$6=0;while(1){$9=$15+($6<<3)|0;HEAPF32[$9>>2]=HEAPF32[$16+($6+$10<<2)>>2]+HEAPF32[$9>>2];$6=$6+1|0;if(($6|0)<($0|0)){continue}break}}$8=$8+1|0;if(($8|0)!=($2|0)){continue}break}}if($0<<1>=1){$8=$7<<1;$10=($14?$5:$12)+$11<<1;$6=0;while(1){$12=(wasm2js_scratch_store_f32(Math_fround(HEAPF32[$15+($6<<2)>>2]+Math_fround(384))),wasm2js_scratch_load_i32(0));$12=($12|0)>1136623616?$12:1136623616;HEAP16[($6+$8<<1)+$1>>1]=($12|0)<1136689151?$12:1136689151;$6=$6+1|0;if(($10|0)!=($6|0)){continue}break}}$11=$11+ -16|0;$7=$7+16|0;if(($7|0)<($5|0)){continue}break}$10=0;$11=0;$6=16;while(1){$8=memset($15,0,128);$14=$6+$11|0;$16=($14|0)>($5|0);$6=$16?$5-$11|0:$6;if(!(($2|0)<1|($6|0)<1)){$12=$4+$11|0;$7=0;while(1){$0=(HEAPU8[(Math_imul($2,6)+215200|0)+$7|0]&6)+ -2|0;label$19:{if($0>>>0>4){break label$19}label$20:{switch($0-1|0){case 1:$9=HEAP32[($7<<2)+$3>>2];$0=0;while(1){$13=$8+($0<<3|4)|0;HEAPF32[$13>>2]=HEAPF32[$9+($0+$12<<2)>>2]+HEAPF32[$13>>2];$0=$0+1|0;if(($0|0)<($6|0)){continue}break}break label$19;default:$9=HEAP32[($7<<2)+$3>>2];$0=0;while(1){$13=$8+($0<<3)|0;HEAPF32[$13>>2]=HEAPF32[$9+($0+$12<<2)>>2]+HEAPF32[$13>>2];$0=$0+1|0;if(($0|0)<($6|0)){continue}break}break label$19;case 0:case 2:break label$19;case 3:break label$20}}$9=HEAP32[($7<<2)+$3>>2];$0=0;while(1){$13=$0<<3;$19=$13+$8|0;$17=HEAPF32[$9+($0+$12<<2)>>2];HEAPF32[$19>>2]=$17+HEAPF32[$19>>2];$13=$8+($13|4)|0;HEAPF32[$13>>2]=$17+HEAPF32[$13>>2];$0=$0+1|0;if(($0|0)<($6|0)){continue}break}}$7=$7+1|0;if(($7|0)!=($2|0)){continue}break}}if($6<<1>=1){$7=$11<<1;$12=($16?$5:$14)+$10<<1;$0=0;while(1){$14=(wasm2js_scratch_store_f32(Math_fround(HEAPF32[$8+($0<<2)>>2]+Math_fround(384))),wasm2js_scratch_load_i32(0));$14=($14|0)>1136623616?$14:1136623616;HEAP16[($0+$7<<1)+$1>>1]=($14|0)<1136689151?$14:1136689151;$0=$0+1|0;if(($12|0)!=($0|0)){continue}break}}$10=$10+ -16|0;$11=$11+16|0;if(($11|0)<($5|0)){continue}break}break label$1}__assert_fail(215242,213438,5194,215253);abort()}if(($5|0)<1){break label$1}$11=($0|0)<($2|0)?$0:$2;if(($11|0)<=0){$2=$0<<1;while(1){if(($0|0)>=1){$7=0;memset($1,0,$2);while(1){$1=$1+2|0;$7=$7+1|0;if(($7|0)!=($0|0)){continue}break}}$6=$6+1|0;if(($6|0)!=($5|0)){continue}break}break label$1}$15=$0-$11<<1;while(1){$8=$4+$6|0;$7=0;while(1){$10=(wasm2js_scratch_store_f32(Math_fround(HEAPF32[HEAP32[($7<<2)+$3>>2]+($8<<2)>>2]+Math_fround(384))),wasm2js_scratch_load_i32(0));$10=($10|0)>1136623616?$10:1136623616;HEAP16[$1>>1]=($10|0)<1136689151?$10:1136689151;$1=$1+2|0;$7=$7+1|0;if(($11|0)!=($7|0)){continue}break}if(($0|0)>($2|0)){memset($1,0,$15);$7=$11;while(1){$1=$1+2|0;$7=$7+1|0;if(($7|0)!=($0|0)){continue}break}}$6=$6+1|0;if(($6|0)!=($5|0)){continue}break}}global$0=$18+128|0}function buffer_meth_receive($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$4=global$0-1056|0;global$0=$4;$13=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;$3=luaL_optlstring($0,3,120274,$4+12|0);timeout_markstart(HEAP32[$1+20>>2]);$2=$4+16|0;HEAP32[$2+4>>2]=0;HEAP32[$2+8>>2]=$0;HEAP32[$2>>2]=$2+12;luaL_addlstring($4+16|0,$3,HEAP32[$4+12>>2]);label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{if(!lua_isnumber($0,2)){$3=luaL_optlstring($0,2,120275,0);if(HEAPU8[$3|0]!=42){break label$6}$3=HEAPU8[$3+1|0]+ -97|0;if($3>>>0>11){break label$6}label$9:{switch($3-1|0){case 10:$14=$1+32|0;$5=HEAP32[$1+28>>2];$2=HEAP32[$1+24>>2];$11=$4+1052|0;while(1){$6=0;$7=0;if($2>>>0>=$5>>>0){$3=HEAP32[$1+16>>2];$7=FUNCTION_TABLE[HEAP32[$3+8>>2]](HEAP32[$3>>2],$14,8192,$4+1052|0,HEAP32[$1+20>>2])|0;HEAP32[$1+24>>2]=0;$5=HEAP32[$4+1052>>2];HEAP32[$1+28>>2]=$5;$2=0}$3=$1;label$13:{$9=$5-$2|0;if($9){$10=($1+$2|0)+32|0;while(1){label$16:{label$17:{$8=$6+$10|0;$5=HEAPU8[$8|0];$2=$5+ -10|0;if($2>>>0>3){break label$17}switch($2-1|0){case 2:break label$16;case 0:case 1:break label$17;default:break label$13}}$2=HEAP32[$4+16>>2];if($2>>>0>=$11>>>0){luaL_prepbuffer($4+16|0);$5=HEAPU8[$8|0];$2=HEAP32[$4+16>>2]}HEAP32[$4+16>>2]=$2+1;HEAP8[$2|0]=$5}$6=$6+1|0;if(($9|0)!=($6|0)){continue}break}$5=HEAP32[$1+28>>2];$2=HEAP32[$1+24>>2]}$2=$2+$9|0;HEAP32[$3+24>>2]=$2;HEAP32[$1+12>>2]=$9+HEAP32[$1+12>>2];if($2>>>0>=$5>>>0){HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;$5=0;$2=0}if(!$7){continue}break label$3}break}$3=$6+1|0;HEAP32[$1+12>>2]=$3+HEAP32[$1+12>>2];$3=$3+HEAP32[$1+24>>2]|0;HEAP32[$1+24>>2]=$3;if($3>>>0>2]){break label$7}HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;break label$7;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break label$6;default:break label$9}}$10=$1+32|0;while(1){if($7){if(($7|0)!=-2){break label$7}$7=-2;if($5){break label$5}break label$3}$7=0;$8=$4+16|0;$6=HEAP32[$1+24>>2];$2=HEAP32[$1+28>>2];if($6>>>0>=$2>>>0){$3=HEAP32[$1+16>>2];$7=FUNCTION_TABLE[HEAP32[$3+8>>2]](HEAP32[$3>>2],$10,8192,$4+1052|0,HEAP32[$1+20>>2])|0;HEAP32[$1+24>>2]=0;$2=HEAP32[$4+1052>>2];HEAP32[$1+28>>2]=$2;$6=0}$2=$2-$6|0;luaL_addlstring($8,($1+$6|0)+32|0,$2);HEAP32[$1+12>>2]=$2+HEAP32[$1+12>>2];$3=$2+HEAP32[$1+24>>2]|0;HEAP32[$1+24>>2]=$3;$5=$2+$5|0;if($3>>>0>2]){continue}HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;continue}}$12=lua_tonumber($0,2);$2=$12>=0;$3=~~$12>>>0;label$25:{if($2&$12<4294967296){break label$25}$3=0}if(!$2){luaL_argerror($0,2,120278)}$2=HEAP32[$4+12>>2];if($2>>>0>=$3>>>0?$2:0){break label$5}$10=$1+32|0;$11=$3-$2|0;$2=0;while(1){if($7){break label$3}$7=0;$9=$4+16|0;$6=HEAP32[$1+24>>2];$5=HEAP32[$1+28>>2];if($6>>>0>=$5>>>0){$3=HEAP32[$1+16>>2];$7=FUNCTION_TABLE[HEAP32[$3+8>>2]](HEAP32[$3>>2],$10,8192,$4+1052|0,HEAP32[$1+20>>2])|0;HEAP32[$1+24>>2]=0;$5=HEAP32[$4+1052>>2];HEAP32[$1+28>>2]=$5;$6=0}$8=$5-$6|0;$3=$11-$2|0;$8=$8>>>0<$3>>>0?$8:$3;luaL_addlstring($9,($1+$6|0)+32|0,$8);HEAP32[$1+12>>2]=$8+HEAP32[$1+12>>2];$3=$8+HEAP32[$1+24>>2]|0;HEAP32[$1+24>>2]=$3;if($3>>>0>=HEAPU32[$1+28>>2]){HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0}$2=$2+$8|0;if($2>>>0<$11>>>0){continue}break}}luaL_pushresult($4+16|0);if(!$7){break label$4}break label$2}luaL_argerror($0,2,120278)}luaL_pushresult($4+16|0)}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;break label$1}luaL_pushresult($4+16|0)}$1=HEAP32[$1+16>>2];lua_pushstring($0,FUNCTION_TABLE[HEAP32[$1+12>>2]](HEAP32[$1>>2],$7)|0);lua_pushvalue($0,-2);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;lua_replace($0,-4)}global$0=$4+1056|0;return(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4)-$13|0}function btBvhTriangleMeshShape__performRaycast_28btTriangleCallback__2c_20btVector3_20const__2c_20btVector3_20const__29__MyNodeOverlapCallback__processNode_28int_2c_20int_29($0,$1,$2){$0=$0|0;$1=$1|0;$2=$2|0;var $3=0,$4=0,$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=0,$10=Math_fround(0),$11=0,$12=0,$13=0,$14=0;$4=global$0-80|0;global$0=$4;$9=HEAP32[$0+4>>2];FUNCTION_TABLE[HEAP32[HEAP32[$9>>2]+16>>2]]($9,$4+28|0,$4+24|0,$4+20|0,$4+16|0,$4+12|0,$4+8|0,$4+4|0,$4,$1);$5=HEAP32[$0+4>>2];$9=$5+12|0;$11=HEAP32[$4+12>>2]+Math_imul(HEAP32[$4+8>>2],$2)|0;$12=HEAP32[$4+16>>2];$13=HEAP32[$4+28>>2];$14=HEAP32[$4+20>>2];label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{if(HEAP32[$4>>2]!=3){$3=Math_imul(HEAP32[$11+8>>2],$12)+$13|0;if($14){break label$7}$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2];$3=$3+8|0;break label$6}$3=Math_imul(HEAPU16[$11+4>>1],$12)+$13|0;label$9:{if($14){$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);$3=$9;break label$9}$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2];$3=$3+8|0}$10=HEAPF32[$3>>2];HEAP32[$4+76>>2]=0;HEAPF32[$4+68>>2]=$8;HEAPF32[$4+72>>2]=$10*$6;HEAPF32[$4+64>>2]=$7;$3=Math_imul(HEAPU16[$11+2>>1],$12)+$13|0;if(!$14){break label$5}$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);$3=$9;break label$4}$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);$3=$9}$10=HEAPF32[$3>>2];HEAP32[$4+76>>2]=0;HEAPF32[$4+68>>2]=$8;HEAPF32[$4+72>>2]=$10*$6;HEAPF32[$4+64>>2]=$7;$3=Math_imul(HEAP32[$11+4>>2],$12)+$13|0;if(!$14){break label$3}$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);$3=$9;break label$2}$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2];$3=$3+8|0}$10=HEAPF32[$3>>2];HEAP32[$4+60>>2]=0;HEAPF32[$4+52>>2]=$8;HEAPF32[$4+56>>2]=$10*$6;HEAPF32[$4+48>>2]=$7;$3=Math_imul(HEAPU16[$11>>1],$12)+$13|0;label$11:{if($14){$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);break label$11}$9=$3+8|0;$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2]}$10=HEAPF32[$9>>2];HEAPF32[$4+32>>2]=$7;$6=Math_fround($10*$6);break label$1}$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2];$3=$3+8|0}$10=HEAPF32[$3>>2];HEAP32[$4+60>>2]=0;HEAPF32[$4+52>>2]=$8;HEAPF32[$4+56>>2]=$10*$6;HEAPF32[$4+48>>2]=$7;$3=Math_imul(HEAP32[$11>>2],$12)+$13|0;label$13:{if($14){$8=Math_fround(HEAPF32[$5+8>>2]*Math_fround(HEAPF64[$3+8>>3]));$7=Math_fround(HEAPF32[$5+4>>2]*Math_fround(HEAPF64[$3>>3]));$6=Math_fround(HEAPF64[$3+16>>3]);break label$13}$9=$3+8|0;$8=Math_fround(HEAPF32[$3+4>>2]*HEAPF32[$5+8>>2]);$7=Math_fround(HEAPF32[$3>>2]*HEAPF32[$5+4>>2]);$6=HEAPF32[$5+12>>2]}$10=HEAPF32[$9>>2];HEAPF32[$4+32>>2]=$7;$6=Math_fround($10*$6)}HEAP32[$4+44>>2]=0;HEAPF32[$4+40>>2]=$6;HEAPF32[$4+36>>2]=$8;$9=HEAP32[$0+8>>2];FUNCTION_TABLE[HEAP32[HEAP32[$9>>2]+8>>2]]($9,$4+32|0,$1,$2);$0=HEAP32[$0+4>>2];FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+24>>2]]($0,$1);global$0=$4+80|0}function mbedtls_mpi_exp_mod($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;$6=global$0-1584|0;global$0=$6;$5=-4;label$1:{if((mbedtls_mpi_cmp_int($3,0)|0)<1){break label$1}$7=HEAP32[HEAP32[$3+8>>2]>>2];if(!($7&1)){break label$1}if((mbedtls_mpi_cmp_int($2,0)|0)<0){break label$1}mpi_montg_init($6+1580|0,$7);$7=$6+1568|0;HEAP32[$7+8>>2]=0;HEAP32[$7>>2]=1;HEAP32[$7+4>>2]=0;$7=$6+1552|0;HEAP32[$7+8>>2]=0;HEAP32[$7>>2]=1;HEAP32[$7+4>>2]=0;HEAP32[$6+8>>2]=0;HEAP32[$6>>2]=1;HEAP32[$6+4>>2]=0;memset($6+16|0,0,1536);$9=6;$7=mbedtls_mpi_bitlen($2);label$2:{if($7>>>0>671){break label$2}$9=5;if($7>>>0>239){break label$2}$9=4;if($7>>>0>79){break label$2}$9=$7>>>0>23?3:1}$7=HEAP32[$3+4>>2]+1|0;$5=mbedtls_mpi_grow($0,$7);label$3:{if($5){break label$3}$12=$6+16|12;$5=mbedtls_mpi_grow($12,$7);if($5){break label$3}$5=mbedtls_mpi_grow($6+1552|0,$7<<1);if($5){break label$3}$15=HEAP32[$1>>2];if(($15|0)==-1){$5=mbedtls_mpi_copy($6,$1);if($5){break label$3}HEAP32[$6>>2]=1;$1=$6}label$5:{label$6:{if(!(HEAP32[$4+8>>2]?$4:0)){$5=mbedtls_mpi_lset($6+1568|0,1);if($5){break label$3}$5=mbedtls_mpi_shift_l($6+1568|0,HEAP32[$3+4>>2]<<6);if($5){break label$3}$5=mbedtls_mpi_mod_mpi($6+1568|0,$6+1568|0,$3);if($5){break label$3}if(!$4){break label$5}$5=$6+1568|0;$7=$4;break label$6}$5=$4;$7=$6+1568|0}$8=HEAP32[$5+4>>2];HEAP32[$7>>2]=HEAP32[$5>>2];HEAP32[$7+4>>2]=$8;HEAP32[$7+8>>2]=HEAP32[$5+8>>2]}label$9:{if((mbedtls_mpi_cmp_mpi($1,$3)|0)>=0){$5=mbedtls_mpi_mod_mpi($12,$1,$3);if(!$5){break label$9}break label$3}$5=mbedtls_mpi_copy($12,$1);if($5){break label$3}}$10=HEAP32[$6+1580>>2];$5=mpi_montmul($12,$6+1568|0,$3,$10,$6+1552|0);if($5){break label$3}$5=mbedtls_mpi_copy($0,$6+1568|0);if($5){break label$3}$5=mpi_montred($0,$3,$10,$6+1552|0);if($5){break label$3}label$11:{if($9>>>0<2){break label$11}$11=$9+ -1|0;$8=1<<$11;$1=($6+16|0)+Math_imul($8,12)|0;$5=mbedtls_mpi_grow($1,HEAP32[$3+4>>2]+1|0);if($5){break label$3}$5=mbedtls_mpi_copy($1,$12);if($5){break label$3}$7=0;while(1){$5=mpi_montmul($1,$1,$3,$10,$6+1552|0);if($5){break label$3}$7=$7+1|0;if(($11|0)!=($7|0)){continue}break}while(1){$1=$8+1|0;if($1>>>$9){break label$11}$7=($6+16|0)+Math_imul($1,12)|0;$5=mbedtls_mpi_grow($7,HEAP32[$3+4>>2]+1|0);if($5){break label$3}$5=mbedtls_mpi_copy($7,($6+16|0)+Math_imul($8,12)|0);if($5){break label$3}$8=$1;$5=mpi_montmul($7,$12,$3,$10,$6+1552|0);if(!$5){continue}break}break label$3}$14=HEAP32[$2+4>>2];$11=0;$1=0;$7=0;while(1){if(!$1){if(!$14){if($13){$7=1<<$9;$1=0;while(1){$5=mpi_montmul($0,$0,$3,$10,$6+1552|0);if($5){break label$3}$11=$11<<1;if($7&$11){$5=mpi_montmul($0,$12,$3,$10,$6+1552|0);if($5){break label$3}}$1=$1+1|0;if(($13|0)!=($1|0)){continue}break}}$5=mpi_montred($0,$3,$10,$6+1552|0);if($5|($15|0)!=-1){break label$3}$5=0;if(!HEAP32[$2+4>>2]|!(HEAP8[HEAP32[$2+8>>2]]&1)){break label$3}HEAP32[$0>>2]=-1;$5=mbedtls_mpi_add_mpi($0,$3,$0);break label$3}$14=$14+ -1|0;$1=32}$5=$7;$7=0;$1=$1+ -1|0;$8=HEAP32[HEAP32[$2+8>>2]+($14<<2)>>2]>>>$1&1;if(!($8|$5)){continue}if(!($8|($5|0)!=1)){$7=1;$5=mpi_montmul($0,$0,$3,$10,$6+1552|0);if(!$5){continue}break label$3}$13=$13+1|0;$11=$8<<$9-$13|$11;$7=2;$8=0;if(($9|0)!=($13|0)){continue}while(1){$5=mpi_montmul($0,$0,$3,$10,$6+1552|0);if($5){break label$3}$8=$8+1|0;if(($8|0)!=($9|0)){continue}break}$5=Math_imul($11,12);$7=1;$11=0;$13=0;$5=mpi_montmul($0,$5+($6+16|0)|0,$3,$10,$6+1552|0);if(!$5){continue}break}}$3=1<<$9+ -1;if(!($3>>>$9)){while(1){mbedtls_mpi_free(($6+16|0)+Math_imul($3,12)|0);$3=$3+1|0;if(!($3>>>$9)){continue}break}}mbedtls_mpi_free($6+16|12);mbedtls_mpi_free($6+1552|0);mbedtls_mpi_free($6);if(HEAP32[$4+8>>2]?$4:0){break label$1}mbedtls_mpi_free($6+1568|0)}global$0=$6+1584|0;return $5}function b2CollideEdgeAndCircle_28b2Manifold__2c_20b2EdgeShape_20const__2c_20b2Transform_20const__2c_20b2CircleShape_20const__2c_20b2Transform_20const__29($0,$1,$2,$3,$4){var $5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=0,$19=0,$20=Math_fround(0),$21=0,$22=0,$23=Math_fround(0);HEAP32[$0+68>>2]=0;$8=Math_fround(HEAPF32[$1+8>>2]+HEAPF32[$3+8>>2]);$18=HEAP32[$1+24>>2];$21=HEAP32[$1+32>>2];$19=HEAP32[$1+28>>2];$22=HEAP32[$1+36>>2];label$1:{$5=HEAPF32[$4+12>>2];$6=HEAPF32[$3+24>>2];$7=HEAPF32[$4+8>>2];$9=HEAPF32[$3+28>>2];$10=Math_fround(Math_fround(HEAPF32[$4>>2]+Math_fround(Math_fround($5*$6)-Math_fround($7*$9)))-HEAPF32[$2>>2]);$11=HEAPF32[$2+12>>2];$6=Math_fround(Math_fround(Math_fround(Math_fround($6*$7)+Math_fround($5*$9))+HEAPF32[$4+4>>2])-HEAPF32[$2+4>>2]);$12=HEAPF32[$2+8>>2];$7=Math_fround(Math_fround($10*$11)+Math_fround($6*$12));$9=HEAPF32[$1+24>>2];$14=Math_fround($7-$9);$13=HEAPF32[$1+32>>2];$5=Math_fround($13-$9);$10=Math_fround(Math_fround($11*$6)-Math_fround($10*$12));$11=HEAPF32[$1+28>>2];$15=Math_fround($10-$11);$12=HEAPF32[$1+36>>2];$6=Math_fround($12-$11);$16=Math_fround(Math_fround($14*$5)+Math_fround($15*$6));label$2:{if(!!($16<=Math_fround(0))){$5=Math_fround(Math_fround($14*$14)+Math_fround($15*$15));if($5>Math_fround($8*$8)|(Math_fround(Math_fround(Math_fround($9-$7)*Math_fround($9-HEAPF32[$1+40>>2]))+Math_fround(Math_fround($11-$10)*Math_fround($11-HEAPF32[$1+44>>2])))>Math_fround(0)?HEAPU8[$1+56|0]:0)){break label$2}HEAP32[$0+64>>2]=0;HEAP32[$0+68>>2]=1;HEAP32[$0+56>>2]=$18;HEAP32[$0+48>>2]=0;HEAP32[$0+52>>2]=0;HEAP32[$0+16>>2]=0;HEAP32[$0+60>>2]=$19;$1=HEAP32[$3+28>>2];HEAP32[$0>>2]=HEAP32[$3+24>>2];HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-Math_fround(Math_sqrt($5));return}$17=Math_fround(Math_fround($5*Math_fround($13-$7))+Math_fround($6*Math_fround($12-$10)));if(!!($17<=Math_fround(0))){$5=Math_fround($7-$13);$6=Math_fround($10-$12);$7=Math_fround(Math_fround($5*$5)+Math_fround($6*$6));if($7>Math_fround($8*$8)|(Math_fround(Math_fround($5*Math_fround(HEAPF32[$1+48>>2]-$13))+Math_fround($6*Math_fround(HEAPF32[$1+52>>2]-$12)))>Math_fround(0)?HEAPU8[$1+57|0]:0)){break label$2}HEAP32[$0+64>>2]=0;HEAP32[$0+68>>2]=1;HEAP32[$0+56>>2]=$21;HEAP32[$0+48>>2]=0;HEAP32[$0+52>>2]=0;HEAP32[$0+16>>2]=1;HEAP32[$0+60>>2]=$22;$1=HEAP32[$3+28>>2];HEAP32[$0>>2]=HEAP32[$3+24>>2];HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-Math_fround(Math_sqrt($7));return}$20=Math_fround(Math_fround($5*$5)+Math_fround($6*$6));if(!($20>Math_fround(0))){break label$1}$23=$7;$7=Math_fround(Math_fround(1)/$20);$9=Math_fround($23-Math_fround($7*Math_fround(Math_fround($17*$9)+Math_fround($16*$13))));$7=Math_fround($10-Math_fround($7*Math_fround(Math_fround($17*$11)+Math_fround($16*$12))));$7=Math_fround(Math_fround($9*$9)+Math_fround($7*$7));if($7>Math_fround($8*$8)){break label$2}HEAP32[$0+64>>2]=1;HEAP32[$0+68>>2]=1;HEAP32[$0+56>>2]=$18;$1=$0;$2=Math_fround(Math_fround($15*$5)-Math_fround($14*$6))>2]=$8;HEAP32[$0+16>>2]=65536;HEAP32[$0+60>>2]=$19;HEAPF32[$0+52>>2]=$5;$1=HEAP32[$3+28>>2];HEAP32[$0>>2]=HEAP32[$3+24>>2];HEAP32[$0+4>>2]=$1;HEAPF32[$0+20>>2]=HEAPF32[$3+8>>2]-Math_fround(Math_sqrt($7))}return}__assert_fail(94394,94405,129,94452);abort()}function dmGameObject__MergePropertyContainers_28dmGameObject__PropertyContainer__2c_20dmGameObject__PropertyContainer__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0,$20=0;$3=global$0-48|0;global$0=$3;HEAP32[$3+40>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;label$1:{$12=HEAP32[$1>>2];if($12){$4=HEAP32[$1+12>>2];while(1){label$4:{label$5:{$16=$2<<2;$13=HEAP32[$16+$4>>2];if($13>>>0<=7){label$7:{switch($13-1|0){case 0:$5=$5+1|0;break label$4;case 1:$7=$7+1|0;break label$4;case 2:$6=$6+1|0;break label$4;case 3:$9=$9+1|0;break label$4;case 4:$10=$10+1|0;break label$4;case 5:$11=$11+1|0;break label$4;case 6:break label$7;default:break label$5}}$8=$8+1|0;$14=(strlen(HEAP32[$1+28>>2]+HEAP32[$16+HEAP32[$1+8>>2]>>2]|0)+$14|0)+1|0;break label$4}break label$1}$15=$15+1|0}$2=$2+1|0;if($2>>>0<$12>>>0){continue}break}HEAP32[$3+40>>2]=$11;HEAP32[$3+16>>2]=$8;HEAP32[$3+20>>2]=$14;HEAP32[$3+36>>2]=$10;HEAP32[$3+32>>2]=$9;HEAP32[$3+28>>2]=$6;HEAP32[$3+24>>2]=$7;HEAP32[$3+12>>2]=$5;HEAP32[$3+8>>2]=$15}$16=HEAP32[$0>>2];if($16){label$15:{if($12){$13=HEAP32[$0+4>>2];$19=HEAP32[$1+4>>2];$4=0;while(1){$2=$13+($4<<3)|0;$17=HEAP32[$2>>2];$20=HEAP32[$2+4>>2];$2=0;label$18:{while(1){$18=($2<<3)+$19|0;if(($17|0)==HEAP32[$18>>2]&($20|0)==HEAP32[$18+4>>2]){break label$18}$2=$2+1|0;if(($12|0)!=($2|0)){continue}break}$2=$4<<2;$17=HEAP32[$2+HEAP32[$0+12>>2]>>2];if($17>>>0>7){break label$1}label$20:{switch($17-1|0){case 0:$5=$5+1|0;break label$18;case 1:$7=$7+1|0;break label$18;case 2:$6=$6+1|0;break label$18;case 3:$9=$9+1|0;break label$18;case 4:$10=$10+1|0;break label$18;case 5:$11=$11+1|0;break label$18;case 6:$8=$8+1|0;$14=(strlen(HEAP32[$0+28>>2]+HEAP32[$2+HEAP32[$0+8>>2]>>2]|0)+$14|0)+1|0;break label$18;default:break label$20}}$15=$15+1|0}$4=$4+1|0;if($4>>>0<$16>>>0){continue}break}break label$15}$4=HEAP32[$0+12>>2];$2=0;while(1){$12=$2<<2;$13=HEAP32[$12+$4>>2];if($13>>>0>7){break label$1}label$29:{label$30:{switch($13-1|0){case 6:$8=$8+1|0;$14=(strlen(HEAP32[$0+28>>2]+HEAP32[$12+HEAP32[$0+8>>2]>>2]|0)+$14|0)+1|0;break label$29;case 5:$11=$11+1|0;break label$29;case 4:$10=$10+1|0;break label$29;case 3:$9=$9+1|0;break label$29;case 2:$6=$6+1|0;break label$29;case 1:$7=$7+1|0;break label$29;case 0:$5=$5+1|0;break label$29;default:break label$30}}$15=$15+1|0}$2=$2+1|0;if($2>>>0<$16>>>0){continue}break}}HEAP32[$3+40>>2]=$11;HEAP32[$3+16>>2]=$8;HEAP32[$3+20>>2]=$14;HEAP32[$3+36>>2]=$10;HEAP32[$3+32>>2]=$9;HEAP32[$3+28>>2]=$6;HEAP32[$3+24>>2]=$7;HEAP32[$3+12>>2]=$5;HEAP32[$3+8>>2]=$15}$6=dmGameObject__CreatePropertyContainerBuilder_28dmGameObject__PropertyContainerParameters_20const__29($3+8|0);$2=0;label$38:{if(!HEAP32[$1>>2]){$5=0;break label$38}while(1){dmGameObject__PushEntry_28dmGameObject__PropertyContainerBuilder__2c_20dmGameObject__PropertyContainer__2c_20unsigned_20int_29($6,$1,$2);$2=$2+1|0;$5=HEAP32[$1>>2];if($2>>>0<$5>>>0){continue}break}}label$41:{$7=HEAP32[$0>>2];if(!$7){break label$41}$4=0;while(1){label$43:{if($5){$2=HEAP32[$0+4>>2]+($4<<3)|0;$9=HEAP32[$2>>2];$10=HEAP32[$2+4>>2];$11=HEAP32[$1+4>>2];$2=0;while(1){$8=$11+($2<<3)|0;if(($9|0)==HEAP32[$8>>2]&($10|0)==HEAP32[$8+4>>2]){break label$43}$2=$2+1|0;if(($5|0)!=($2|0)){continue}break}}dmGameObject__PushEntry_28dmGameObject__PropertyContainerBuilder__2c_20dmGameObject__PropertyContainer__2c_20unsigned_20int_29($6,$0,$4);$7=HEAP32[$0>>2]}$4=$4+1|0;if($4>>>0>=$7>>>0){break label$41}$5=HEAP32[$1>>2];continue}}$0=HEAP32[$6>>2];if($6){dlfree($6)}global$0=$3+48|0;return $0}__assert_fail(17459,17344,384,17639);abort()}function btTriangleRaycastCallback__processTriangle_28btVector3__2c_20int_2c_20int_29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=0,$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0);$7=global$0-32|0;global$0=$7;$15=HEAPF32[$1+24>>2];$25=HEAPF32[$1+40>>2];$16=HEAPF32[$1+36>>2];$10=HEAPF32[$1+20>>2];$11=HEAPF32[$1+8>>2];$17=HEAPF32[$1+16>>2];$13=HEAPF32[$1+4>>2];$18=HEAPF32[$1+32>>2];$14=HEAPF32[$1>>2];HEAP32[$7+28>>2]=0;$5=Math_fround($17-$14);$8=Math_fround($16-$13);$6=Math_fround($10-$13);$12=Math_fround($18-$14);$4=Math_fround(Math_fround($5*$8)-Math_fround($6*$12));HEAPF32[$7+24>>2]=$4;$9=Math_fround($15-$11);$19=Math_fround($9*$12);$12=Math_fround($25-$11);$5=Math_fround($19-Math_fround($5*$12));HEAPF32[$7+20>>2]=$5;$8=Math_fround(Math_fround($6*$12)-Math_fround($9*$8));HEAPF32[$7+16>>2]=$8;$20=HEAPF32[$0+4>>2];$9=HEAPF32[$0+8>>2];$21=HEAPF32[$0+12>>2];$6=Math_fround(Math_fround($11*$4)+Math_fround(Math_fround($14*$8)+Math_fround($13*$5)));$12=Math_fround(Math_fround(Math_fround(Math_fround($8*$20)+Math_fround($5*$9))+Math_fround($4*$21))-$6);$23=HEAPF32[$0+20>>2];$22=HEAPF32[$0+24>>2];$24=HEAPF32[$0+28>>2];$6=Math_fround(Math_fround(Math_fround(Math_fround($8*$23)+Math_fround($5*$22))+Math_fround($4*$24))-$6);label$1:{if(Math_fround($12*$6)>=Math_fround(0)){break label$1}$1=HEAP32[$0+36>>2];if($1&1?!!($12>Math_fround(0)):0){break label$1}$6=Math_fround($12/Math_fround($12-$6));if(!($6>2])){break label$1}$19=$9;$9=Math_fround(Math_fround(1)-$6);$22=Math_fround(Math_fround($22*$6)+Math_fround($19*$9));$10=Math_fround($10-$22);$20=Math_fround(Math_fround($23*$6)+Math_fround($20*$9));$14=Math_fround($14-$20);$13=Math_fround($13-$22);$17=Math_fround($17-$20);$9=Math_fround(Math_fround($24*$6)+Math_fround($21*$9));$15=Math_fround($15-$9);$11=Math_fround($11-$9);$23=Math_fround(Math_fround($4*$4)+Math_fround(Math_fround($8*$8)+Math_fround($5*$5)));$21=Math_fround($23*Math_fround(-9999999747378752e-20));if(!(Math_fround(Math_fround($4*Math_fround(Math_fround($10*$14)-Math_fround($13*$17)))+Math_fround(Math_fround($8*Math_fround(Math_fround($13*$15)-Math_fround($11*$10)))+Math_fround($5*Math_fround(Math_fround($11*$17)-Math_fround($15*$14)))))>=$21)){break label$1}$16=Math_fround($16-$22);$18=Math_fround($18-$20);$24=Math_fround($4*Math_fround(Math_fround($16*$17)-Math_fround($10*$18)));$19=$10;$10=Math_fround($25-$9);if(Math_fround($24+Math_fround(Math_fround($8*Math_fround(Math_fround($19*$10)-Math_fround($15*$16)))+Math_fround($5*Math_fround(Math_fround($15*$18)-Math_fround($10*$17)))))>=$21^1|Math_fround(Math_fround($4*Math_fround(Math_fround($13*$18)-Math_fround($16*$14)))+Math_fround(Math_fround($8*Math_fround(Math_fround($16*$11)-Math_fround($10*$13)))+Math_fround($5*Math_fround(Math_fround($10*$14)-Math_fround($11*$18)))))>=$21^1){break label$1}$19=$4;$4=Math_fround(Math_fround(1)/Math_fround(Math_sqrt($23)));$11=Math_fround($19*$4);HEAPF32[$7+24>>2]=$11;$5=Math_fround($5*$4);HEAPF32[$7+20>>2]=$5;$4=Math_fround($8*$4);HEAPF32[$7+16>>2]=$4;if(!($1&2?0:!($12<=Math_fround(0)))){HEAP32[$7+12>>2]=0;HEAPF32[$7+8>>2]=-$11;HEAPF32[$7+4>>2]=-$5;HEAPF32[$7>>2]=-$4;HEAPF32[$0+40>>2]=FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+12>>2]]($0,$7,$6,$2,$3);break label$1}HEAPF32[$0+40>>2]=FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+12>>2]]($0,$7+16|0,$6,$2,$3)}global$0=$7+32|0}function lua_getinfo($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0;label$1:{label$2:{label$3:{label$4:{label$5:{if(HEAPU8[$1|0]==62){$3=HEAP32[$0+8>>2]+ -16|0;$5=HEAP32[$3>>2];HEAP32[$0+8>>2]=$3;$1=$1+1|0;break label$5}$3=HEAP32[$2+96>>2];if(!$3){break label$4}$6=HEAP32[$0+40>>2]+Math_imul($3,24)|0;$5=HEAP32[HEAP32[$6+4>>2]>>2]}if(!$5){break label$4}$4=HEAPU8[$1|0];if($4){break label$3}$10=1;break label$2}HEAP32[$2+28>>2]=-1;HEAP32[$2+32>>2]=-1;HEAP32[$2+20>>2]=-1;HEAP32[$2+12>>2]=122884;HEAP32[$2+4>>2]=122883;HEAP32[$2+8>>2]=122883;HEAP32[$2+16>>2]=122889;luaO_chunkid($2+36|0,122889,60);$5=0;HEAP32[$2+24>>2]=0;$10=1;$2=1;break label$1}$13=$2+36|0;$11=$6+ -12|0;$14=$6+ -20|0;$12=$6+ -24|0;$15=$2+4|0;$10=1;$3=$1;while(1){$8=$3;label$8:{label$9:{$3=($4<<24>>24)+ -76|0;if($3>>>0>41){break label$9}label$10:{switch($3-1|0){case 6:label$14:{if(HEAPU8[$5+6|0]){HEAP32[$2+28>>2]=-1;$3=122902;HEAP32[$2+16>>2]=122902;$7=122907;$4=-1;break label$14}$3=HEAP32[HEAP32[$5+16>>2]+32>>2]+16|0;HEAP32[$2+16>>2]=$3;$4=HEAP32[HEAP32[$5+16>>2]+60>>2];HEAP32[$2+28>>2]=$4;$7=$4?122914:122909;$4=HEAP32[HEAP32[$5+16>>2]+64>>2]}HEAP32[$2+12>>2]=$7;HEAP32[$2+32>>2]=$4;luaO_chunkid($13,$3,60);break label$8;case 31:$4=-1;label$16:{if(!$6){break label$16}$3=HEAP32[$6+4>>2];if(HEAP32[$3+8>>2]!=6){break label$16}$7=HEAP32[$3>>2];if(HEAPU8[$7+6|0]){break label$16}label$17:{if(HEAP32[$0+20>>2]!=($6|0)){$9=HEAP32[$6+12>>2];break label$17}$9=HEAP32[$0+24>>2];HEAP32[$6+12>>2]=$9;$7=HEAP32[$3>>2]}$3=HEAP32[$7+16>>2];$7=$9-HEAP32[$3+12>>2]|0;if(($7|0)<4){break label$16}$3=HEAP32[$3+20>>2];if(!$3){HEAP32[$2+20>>2]=0;break label$8}$4=HEAP32[$3+(($7>>2)+ -1<<2)>>2]}HEAP32[$2+20>>2]=$4;break label$8;case 40:HEAP32[$2+24>>2]=HEAPU8[$5+7|0];break label$8;case 33:break label$10;case 0:case 1:case 2:case 3:case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 26:case 27:case 28:case 29:case 30:case 32:case 34:case 35:case 36:case 37:case 38:case 39:break label$9;default:break label$8}}label$20:{label$21:{label$22:{if(!$6){break label$22}$3=HEAP32[$6+4>>2];if(HEAP32[$6+20>>2]>0?!(HEAP32[$3+8>>2]!=6|HEAPU8[HEAP32[$3>>2]+6|0]):0){break label$22}$4=HEAP32[$14>>2];if(HEAP32[$4+8>>2]!=6){break label$22}$3=HEAP32[$4>>2];if(HEAPU8[$3+6|0]){break label$22}$7=HEAP32[HEAP32[$3+16>>2]+12>>2];label$24:{if(HEAP32[$0+20>>2]!=($12|0)){$9=HEAP32[$11>>2];break label$24}$9=HEAP32[$0+24>>2];HEAP32[$11>>2]=$9;$3=HEAP32[$4>>2]}$3=HEAP32[($7+($9-HEAP32[HEAP32[$3+16>>2]+12>>2]|0)|0)+ -4>>2];$4=($3&63)+ -28|0;if($4>>>0>5){break label$22}if(1<<$4&35){break label$21}}HEAP32[$2+8>>2]=0;break label$20}$3=getobjname($0,$12,$3>>>6&255,$15);HEAP32[$2+8>>2]=$3;if($3){break label$8}}HEAP32[$2+4>>2]=0;HEAP32[$2+8>>2]=122883;break label$8}$10=0}$3=$8+1|0;$4=HEAPU8[$8+1|0];if($4){continue}break}}$2=0}if(strchr($1,102)){$3=HEAP32[$0+8>>2];$8=$3;if($2){$3=0}else{HEAP32[$3>>2]=$5;$3=6}HEAP32[$8+8>>2]=$3;$8=$0;$3=HEAP32[$0+8>>2];if((HEAP32[$0+28>>2]-$3|0)<=16){luaD_growstack($0,1);$3=HEAP32[$0+8>>2]}HEAP32[$8+8>>2]=$3+16}if(strchr($1,76)){label$32:{if(!(HEAPU8[$5+6|0]?0:!$2)){$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;break label$32}$2=0;$1=luaH_new($0,0,0);$3=HEAP32[$5+16>>2];if(HEAP32[$3+48>>2]>=1){$3=HEAP32[$3+20>>2];while(1){$8=luaH_setnum($0,$1,HEAP32[$3+($2<<2)>>2]);HEAP32[$8+8>>2]=1;HEAP32[$8>>2]=1;$2=$2+1|0;if(($2|0)>2]+48>>2]){continue}break}}$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=5;HEAP32[$2>>2]=$1;$2=HEAP32[$0+8>>2]}$1=$0;if((HEAP32[$0+28>>2]-$2|0)<=16){luaD_growstack($0,1);$2=HEAP32[$0+8>>2]}HEAP32[$1+8>>2]=$2+16}return $10}function dmGameSystem__AcquireResources_28dmResource__SResourceDescriptor__2c_20dmGraphics__Context__2c_20dmGameSystem__ImageDesc__2c_20dmGraphics__Texture__2c_20dmGraphics__Texture___29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$4=global$0-80|0;global$0=$4;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{label$9:{$6=HEAP32[$1>>2];$5=HEAP32[$6+4>>2];if($5){while(1){if($5>>>0<=$7>>>0){break label$9}$8=HEAP32[$6>>2];$5=HEAP32[($8+($7<<6)|0)+16>>2];if($5>>>0>=11){break label$8}$5=HEAP32[($5<<2)+59680>>2];if(FUNCTION_TABLE[HEAP32[147617]]($0,$5)){HEAP32[$4+72>>2]=0;HEAP32[$4+64>>2]=0;HEAP32[$4+68>>2]=0;HEAP8[$4+76|0]=1;HEAP8[$4+43|0]=0;HEAP8[$4+44|0]=0;HEAP8[$4+45|0]=0;HEAP8[$4+46|0]=0;HEAP8[$4+47|0]=0;HEAP8[$4+48|0]=0;HEAP8[$4+49|0]=0;HEAP8[$4+50|0]=0;HEAP32[$4+52>>2]=0;HEAP32[$4+56>>2]=0;HEAP32[$4+32>>2]=1;HEAP32[$4+24>>2]=2;HEAP32[$4+28>>2]=1;HEAP32[$4+16>>2]=3;HEAP32[$4+20>>2]=5;HEAP32[$4+36>>2]=0;HEAP32[$4+40>>2]=0;FUNCTION_TABLE[HEAP32[147550]]($0,$4+16|4,$4+24|0);HEAP32[$4+16>>2]=$5;$9=$8+($7<<6)|0;$10=HEAP32[$9>>2];HEAP16[$4+46>>1]=$10;$11=HEAP32[$9+4>>2];HEAP16[$4+48>>1]=$11;$5=HEAP32[$9+24>>2];if($5>>>0>=33){break label$7}$6=HEAP32[HEAP32[$1>>2]+8>>2]+ -1|0;label$13:{label$14:{if($6>>>0<=1){if($6-1){break label$14}HEAP32[$4+64>>2]=1;break label$13}__assert_fail(59389,59331,250,59372);abort()}HEAP32[$4+64>>2]=0}HEAP16[$4+70>>1]=$11;HEAP16[$4+68>>1]=$10;$6=$8+($7<<6)|0;HEAP16[$4+72>>1]=HEAP32[$6+8>>2];$6=HEAP32[$6+12>>2];HEAP8[$4+76|0]=$5;HEAP16[$4+74>>1]=$6;if(!$2){$2=FUNCTION_TABLE[HEAP32[147618]]($0,$4- -64|0)|0;$5=HEAP32[$9+24>>2]}label$16:{if($5>>>0>1){break label$16}$5=HEAP32[$4+20>>2]+ -3|0;if($5>>>0>2){break label$16}label$19:{switch($5-1|0){case 1:HEAP32[$4+20>>2]=2;break label$16;case 0:break label$16;default:break label$19}}HEAP32[$4+20>>2]=1}$6=FUNCTION_TABLE[HEAP32[147630]]($0)|0;$5=HEAPU16[$4+46>>1];$0=HEAPU16[$4+48>>1];if(!($6>>>0>=$0>>>0?$6>>>0>=$5>>>0:0)){HEAP32[$4+12>>2]=$6;HEAP32[$4+8>>2]=$6;HEAP32[$4+4>>2]=$0;HEAP32[$4>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,59208,59391,$4);HEAP16[$4+48>>1]=1;HEAP32[$4+40>>2]=4;HEAP32[$4+44>>2]=65536;HEAP32[$4+36>>2]=59184;HEAP32[$4+16>>2]=3;FUNCTION_TABLE[HEAP32[147621]]($2,$4+16|0);break label$2}if(HEAPU8[$1+132|0]){break label$6}$0=HEAP32[$9+24>>2];if(($0|0)<1){break label$2}$8=$8+($7<<6)|0;$11=$8;$7=0;while(1){HEAP16[$4+44>>1]=$7;$6=$4;$10=$7<<2;$5=HEAP32[($10+$1|0)+4>>2];if(!$5){if($0>>>0<=$7>>>0){break label$5}$0=HEAP32[$10+HEAP32[$8+20>>2]>>2];if(HEAPU32[$8+40>>2]<=$0>>>0){break label$4}$5=$0+HEAP32[$8+36>>2]|0}HEAP32[$6+36>>2]=$5;if(HEAPU32[$8+32>>2]<=$7>>>0){break label$3}HEAP32[$4+40>>2]=HEAP32[$10+HEAP32[$11+28>>2]>>2];FUNCTION_TABLE[HEAP32[147621]]($2,$4+16|0);$5=HEAPU16[$4+46>>1]>>>1|0;HEAP16[$4+46>>1]=$5;$0=HEAPU16[$4+48>>1]>>>1|0;HEAP16[$4+48>>1]=$0;if(!$5){HEAP16[$4+46>>1]=1}if(!$0){HEAP16[$4+48>>1]=1}$7=$7+1|0;$0=HEAP32[$9+24>>2];if(($7|0)<($0|0)){continue}break}break label$2}$7=$7+1|0;$6=HEAP32[$1>>2];$5=HEAP32[$6+4>>2];if($7>>>0<$5>>>0){continue}break}}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,59208,59479,0);$0=-13;break label$1}__assert_fail(59512,59524,108,59596);abort()}__assert_fail(59389,59331,94,59607);abort()}__assert_fail(59284,59331,243,59372);abort()}HEAP16[$4+48>>1]=1;HEAP32[$4+40>>2]=4;HEAP32[$4+44>>2]=65536;HEAP32[$4+16>>2]=3;HEAP32[$4+36>>2]=59184;FUNCTION_TABLE[HEAP32[147621]]($2,$4+16|0);break label$2}__assert_fail(59512,59524,69,59596);abort()}__assert_fail(59512,59524,85,59596);abort()}__assert_fail(59512,59524,77,59596);abort()}HEAP32[$3>>2]=$2;$0=0}global$0=$4+80|0;return $0}function dmGameObject__PropertyContainerGetPropertyCallback_28dmGameObject__Properties__2c_20unsigned_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar__29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=Math_fround(0);$7=global$0-32|0;global$0=$7;$5=-1;label$1:{if(!$1){break label$1}$8=HEAP32[$1>>2];if(!$8){break label$1}$10=HEAP32[$1+4>>2];while(1){$9=($6<<3)+$10|0;if(HEAP32[$9>>2]!=($2|0)|HEAP32[$9+4>>2]!=($3|0)){$6=$6+1|0;if(($8|0)!=($6|0)){continue}break label$1}break}$2=$6<<2;$3=HEAP32[$2+HEAP32[$1+12>>2]>>2];label$4:{if($3>>>0<=7){$2=HEAP32[$2+HEAP32[$1+8>>2]>>2];label$6:{switch($3-1|0){case 0:$0=HEAP32[$1+16>>2]+($2<<3)|0;$1=HEAP32[$0+4>>2];$0=HEAP32[$0>>2];HEAP32[$4>>2]=1;HEAP32[$4+8>>2]=$0;HEAP32[$4+12>>2]=$1;$5=0;break label$1;case 6:$3=HEAP32[$1+28>>2];$1=$7;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;FUNCTION_TABLE[HEAP32[$0+44>>2]](HEAP32[$0+40>>2],$1);$5=-2;if(dmScript__ResolveURL_28lua_State__2c_20char_20const__2c_20dmMessage__URL__2c_20dmMessage__URL__29(HEAP32[$0+40>>2],$2+$3|0,$4+8|0,$1)){break label$1}HEAP32[$4>>2]=2;$5=0;break label$1;case 1:$0=$2+HEAP32[$1+24>>2]|0;$1=HEAPU8[$0+4|0]|HEAPU8[$0+5|0]<<8|(HEAPU8[$0+6|0]<<16|HEAPU8[$0+7|0]<<24);$2=HEAPU8[$0|0]|HEAPU8[$0+1|0]<<8|(HEAPU8[$0+2|0]<<16|HEAPU8[$0+3|0]<<24);HEAP8[$4+8|0]=$2;HEAP8[$4+9|0]=$2>>>8;HEAP8[$4+10|0]=$2>>>16;HEAP8[$4+11|0]=$2>>>24;HEAP8[$4+12|0]=$1;HEAP8[$4+13|0]=$1>>>8;HEAP8[$4+14|0]=$1>>>16;HEAP8[$4+15|0]=$1>>>24;$1=HEAPU8[$0+28|0]|HEAPU8[$0+29|0]<<8|(HEAPU8[$0+30|0]<<16|HEAPU8[$0+31|0]<<24);$2=HEAPU8[$0+24|0]|HEAPU8[$0+25|0]<<8|(HEAPU8[$0+26|0]<<16|HEAPU8[$0+27|0]<<24);HEAP8[$4+32|0]=$2;HEAP8[$4+33|0]=$2>>>8;HEAP8[$4+34|0]=$2>>>16;HEAP8[$4+35|0]=$2>>>24;HEAP8[$4+36|0]=$1;HEAP8[$4+37|0]=$1>>>8;HEAP8[$4+38|0]=$1>>>16;HEAP8[$4+39|0]=$1>>>24;$1=HEAPU8[$0+20|0]|HEAPU8[$0+21|0]<<8|(HEAPU8[$0+22|0]<<16|HEAPU8[$0+23|0]<<24);$2=HEAPU8[$0+16|0]|HEAPU8[$0+17|0]<<8|(HEAPU8[$0+18|0]<<16|HEAPU8[$0+19|0]<<24);HEAP8[$4+24|0]=$2;HEAP8[$4+25|0]=$2>>>8;HEAP8[$4+26|0]=$2>>>16;HEAP8[$4+27|0]=$2>>>24;HEAP8[$4+28|0]=$1;HEAP8[$4+29|0]=$1>>>8;HEAP8[$4+30|0]=$1>>>16;HEAP8[$4+31|0]=$1>>>24;$1=HEAPU8[$0+12|0]|HEAPU8[$0+13|0]<<8|(HEAPU8[$0+14|0]<<16|HEAPU8[$0+15|0]<<24);$0=HEAPU8[$0+8|0]|HEAPU8[$0+9|0]<<8|(HEAPU8[$0+10|0]<<16|HEAPU8[$0+11|0]<<24);HEAP8[$4+16|0]=$0;HEAP8[$4+17|0]=$0>>>8;HEAP8[$4+18|0]=$0>>>16;HEAP8[$4+19|0]=$0>>>24;HEAP8[$4+20|0]=$1;HEAP8[$4+21|0]=$1>>>8;HEAP8[$4+22|0]=$1>>>16;HEAP8[$4+23|0]=$1>>>24;HEAP32[$4>>2]=2;$5=0;break label$1;case 2:$0=$2<<2;HEAP32[$4+8>>2]=HEAP32[$0+HEAP32[$1+20>>2]>>2];HEAP32[$4+12>>2]=HEAP32[($0+HEAP32[$1+20>>2]|0)+4>>2];$0=HEAP32[($0+HEAP32[$1+20>>2]|0)+8>>2];HEAP32[$4>>2]=3;HEAP32[$4+16>>2]=$0;$5=0;break label$1;case 3:$0=$2<<2;HEAP32[$4+8>>2]=HEAP32[$0+HEAP32[$1+20>>2]>>2];HEAP32[$4+12>>2]=HEAP32[($0+HEAP32[$1+20>>2]|0)+4>>2];HEAP32[$4+16>>2]=HEAP32[($0+HEAP32[$1+20>>2]|0)+8>>2];$0=HEAP32[($0+HEAP32[$1+20>>2]|0)+12>>2];HEAP32[$4>>2]=4;HEAP32[$4+20>>2]=$0;$5=0;break label$1;case 4:$0=$2<<2;HEAP32[$4+8>>2]=HEAP32[$0+HEAP32[$1+20>>2]>>2];HEAP32[$4+12>>2]=HEAP32[($0+HEAP32[$1+20>>2]|0)+4>>2];HEAP32[$4+16>>2]=HEAP32[($0+HEAP32[$1+20>>2]|0)+8>>2];$0=HEAP32[($0+HEAP32[$1+20>>2]|0)+12>>2];HEAP32[$4>>2]=5;HEAP32[$4+20>>2]=$0;$5=0;break label$1;case 5:break label$6;default:break label$4}}$0=HEAPU8[$2+HEAP32[$1+28>>2]|0];HEAP32[$4>>2]=6;$5=0;HEAP8[$4+8|0]=($0|0)!=0;break label$1}__assert_fail(17459,17344,530,17479);abort()}$11=HEAPF32[HEAP32[$1+20>>2]+($2<<2)>>2];$5=0;HEAP32[$4>>2]=0;HEAPF64[$4+8>>3]=$11}global$0=$7+32|0;return $5|0}function b2SeparationFunction__Evaluate_28int_2c_20int_2c_20float_29_20const($0,$1,$2,$3){var $4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0;$4=HEAPF32[$0+48>>2];$5=Math_fround(Math_fround(1)-$3);$6=Math_fround(Math_fround($5*HEAPF32[$0+68>>2])+Math_fround(HEAPF32[$0+72>>2]*$3));$9=cosf($6);$15=HEAPF32[$0+44>>2];$6=sinf($6);$16=HEAPF32[$0+56>>2];$12=HEAPF32[$0- -64>>2];$13=HEAPF32[$0+52>>2];$14=HEAPF32[$0+60>>2];$8=HEAPF32[$0+12>>2];$7=Math_fround(Math_fround($5*HEAPF32[$0+32>>2])+Math_fround(HEAPF32[$0+36>>2]*$3));$10=cosf($7);$11=HEAPF32[$0+8>>2];$7=sinf($7);$17=HEAP32[$0+80>>2];label$1:{if($17>>>0<=2){$16=Math_fround(Math_fround(Math_fround($5*$16)+Math_fround($12*$3))-Math_fround(Math_fround($15*$6)+Math_fround($4*$9)));$4=Math_fround(Math_fround(Math_fround($5*$13)+Math_fround($14*$3))-Math_fround(Math_fround($15*$9)-Math_fround($4*$6)));$15=Math_fround(Math_fround(Math_fround($5*HEAPF32[$0+20>>2])+Math_fround(HEAPF32[$0+28>>2]*$3))-Math_fround(Math_fround($11*$7)+Math_fround($8*$10)));$3=Math_fround(Math_fround(Math_fround($5*HEAPF32[$0+16>>2])+Math_fround(HEAPF32[$0+24>>2]*$3))-Math_fround(Math_fround($11*$10)-Math_fround($8*$7)));label$5:{switch($17-1|0){default:if(($1|0)<0){break label$1}$17=HEAP32[$0>>2];if(($2|0)<0|HEAP32[$17+20>>2]<=($1|0)){break label$1}$18=HEAP32[$0+4>>2];if(HEAP32[$18+20>>2]<=($2|0)){break label$1}$13=$4;$2=HEAP32[$18+16>>2]+($2<<3)|0;$5=HEAPF32[$2>>2];$4=HEAPF32[$2+4>>2];$14=$3;$1=HEAP32[$17+16>>2]+($1<<3)|0;$3=HEAPF32[$1>>2];$8=HEAPF32[$1+4>>2];return Math_fround(Math_fround(HEAPF32[$0+92>>2]*Math_fround(Math_fround($13+Math_fround(Math_fround($9*$5)-Math_fround($6*$4)))-Math_fround($14+Math_fround(Math_fround($10*$3)-Math_fround($7*$8)))))+Math_fround(HEAPF32[$0+96>>2]*Math_fround(Math_fround($16+Math_fround(Math_fround($6*$5)+Math_fround($9*$4)))-Math_fround($15+Math_fround(Math_fround($7*$3)+Math_fround($10*$8))))));case 0:if(($2|0)<0){break label$1}$1=HEAP32[$0+4>>2];if(HEAP32[$1+20>>2]<=($2|0)){break label$1}$5=HEAPF32[$0+92>>2];$8=HEAPF32[$0+96>>2];$13=$4;$1=HEAP32[$1+16>>2]+($2<<3)|0;$4=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$14=$3;$3=HEAPF32[$0+84>>2];$12=HEAPF32[$0+88>>2];return Math_fround(Math_fround(Math_fround(Math_fround($10*$5)-Math_fround($7*$8))*Math_fround(Math_fround($13+Math_fround(Math_fround($9*$4)-Math_fround($6*$11)))-Math_fround($14+Math_fround(Math_fround($10*$3)-Math_fround($7*$12)))))+Math_fround(Math_fround(Math_fround($7*$5)+Math_fround($10*$8))*Math_fround(Math_fround($16+Math_fround(Math_fround($6*$4)+Math_fround($9*$11)))-Math_fround($15+Math_fround(Math_fround($7*$3)+Math_fround($10*$12))))));case 1:break label$5}}label$3:{if(($1|0)<0){break label$3}$2=HEAP32[$0>>2];if(HEAP32[$2+20>>2]<=($1|0)){break label$3}$5=HEAPF32[$0+92>>2];$8=HEAPF32[$0+96>>2];$13=$3;$1=HEAP32[$2+16>>2]+($1<<3)|0;$3=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$14=$4;$4=HEAPF32[$0+84>>2];$12=HEAPF32[$0+88>>2];return Math_fround(Math_fround(Math_fround(Math_fround($9*$5)-Math_fround($6*$8))*Math_fround(Math_fround($13+Math_fround(Math_fround($10*$3)-Math_fround($7*$11)))-Math_fround($14+Math_fround(Math_fround($9*$4)-Math_fround($6*$12)))))+Math_fround(Math_fround(Math_fround($6*$5)+Math_fround($9*$8))*Math_fround(Math_fround($15+Math_fround(Math_fround($7*$3)+Math_fround($10*$11)))-Math_fround($16+Math_fround(Math_fround($6*$4)+Math_fround($9*$12))))))}break label$1}__assert_fail(97328,97149,242,97352);abort()}__assert_fail(97246,97276,103,97318);abort()}function ReverseHashContainer__Enable_28bool_29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{if(HEAPU8[1130132]!=($0|0)){$6=HEAP32[282532];dmMutex__Lock_28dmMutex__Mutex__29($6);HEAP8[1130132]=$0;label$9:{if($0){if(HEAP32[282538]-HEAP32[282536]>>4>>>0<=511){dmHashTable_unsigned_20int_2c_20ReverseHashEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130136,1024,512)}memset(HEAP32[282534],255,HEAP32[282535]<<2);HEAP32[282539]=-1;HEAP32[282540]=0;HEAP32[282537]=HEAP32[282536];if((HEAP32[282546]-HEAP32[282544]|0)/24>>>0<=511){dmHashTable_unsigned_20long_20long_2c_20ReverseHashEntry___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29(1130168,1024,512)}memset(HEAP32[282542],255,HEAP32[282543]<<2);HEAP32[282547]=-1;HEAP32[282548]=0;HEAP32[282545]=HEAP32[282544];if(HEAP8[1130212]&1){break label$7}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(512,8,1130200,1130208,1130204);$0=HEAP32[282550];if(HEAP32[282552]-$0>>3>>>0<=511){break label$6}HEAP32[282551]=$0+4096;$0=HEAP32[282555];if($0>>>0>=513){break label$5}$1=HEAP32[282554];$2=dlmalloc(2048);HEAP32[282554]=$2;$2=memcpy($2,$1,$0<<2);HEAP32[282555]=512;if(($0|0)!=512){while(1){HEAP32[$2+($0<<2)>>2]=$0;$0=$0+1|0;if(($0|0)!=512){continue}break}}dlfree($1);$0=0;HEAP32[282556]=0;$1=HEAP32[282554];label$15:{if(HEAP32[282555]){while(1){HEAP32[$1+($0<<2)>>2]=$0;$0=$0+1|0;$2=HEAP32[282555];if($0>>>0<$2>>>0){continue}break}$0=HEAP32[282556];if($0>>>0<$2>>>0){break label$15}break label$1}if($1){break label$1}__assert_fail(147343,147318,148,147350);abort()}HEAP32[282556]=$0+1;if(!HEAP32[$1+($0<<2)>>2]){break label$9}__assert_fail(147109,147127,92,147148);abort()}$0=HEAP32[282535];if($0){$1=$0;while(1){$0=HEAP32[HEAP32[282534]+($3<<2)>>2];if(($0|0)!=-1){while(1){$0=HEAP32[282536]+($0<<4)|0;dlfree(HEAP32[$0+4>>2]);$0=HEAP32[$0+12>>2];if(($0|0)!=-1){continue}break}$1=HEAP32[282535]}$3=$3+1|0;if($3>>>0<$1>>>0){continue}break}}memset(HEAP32[282534],255,$1<<2);HEAP32[282539]=-1;HEAP32[282540]=0;HEAP32[282537]=HEAP32[282536];$0=HEAP32[282543];if($0){$3=0;$2=$0;while(1){$0=HEAP32[HEAP32[282542]+($3<<2)>>2];if(($0|0)!=-1){while(1){$0=HEAP32[282544]+Math_imul($0,24)|0;dlfree(HEAP32[$0+8>>2]);$0=HEAP32[$0+16>>2];if(($0|0)!=-1){continue}break}$2=HEAP32[282543]}$3=$3+1|0;if($3>>>0<$2>>>0){continue}break}}memset(HEAP32[282542],255,$2<<2);HEAP32[282547]=-1;HEAP32[282548]=0;HEAP32[282545]=HEAP32[282544];$0=HEAP32[282556];if(!$0){break label$9}$5=HEAP32[282554];if(!$5){break label$4}if($0>>>0>HEAPU32[282555]){break label$3}$0=$0+ -1|0;HEAP32[282556]=$0;$3=0;HEAP32[($0<<2)+$5>>2]=0;$1=HEAP32[282551];$0=HEAP32[282550];$2=HEAP32[282556];$4=HEAP32[282555];if($2>>>0<$4>>>0){$8=$1-$0>>3;while(1){$7=HEAP32[($2<<2)+$5>>2];if($8>>>0<=$7>>>0){break label$2}HEAP32[($7<<3)+$0>>2]=0;$2=$2+1|0;if(($4|0)!=($2|0)){continue}break}}if(($0|0)!=($1|0)){while(1){$0=HEAP32[($3<<3)+$0>>2];if($0){dlfree($0);$1=HEAP32[282551]}$3=$3+1|0;$0=HEAP32[282550];if($3>>>0<$1-$0>>3>>>0){continue}break}$4=HEAP32[282555]}$0=0;HEAP32[282556]=0;if(!$4){break label$9}$1=HEAP32[282554];while(1){HEAP32[$1+($0<<2)>>2]=$0;$0=$0+1|0;if($0>>>0>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=HEAP32[$1+4>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=HEAP32[$1+12>>2];HEAP32[$0+16>>2]=HEAP32[$1+16>>2];HEAP32[$0+20>>2]=HEAP32[$1+20>>2];HEAP32[$0+24>>2]=HEAP32[$1+24>>2];HEAP32[$0+28>>2]=HEAP32[$1+28>>2];HEAP32[$0+32>>2]=HEAP32[$1+32>>2];HEAP32[$0+36>>2]=HEAP32[$1+36>>2];HEAP32[$0+40>>2]=HEAP32[$1+40>>2];HEAP32[$0+44>>2]=HEAP32[$1+44>>2];HEAP32[$0+48>>2]=HEAP32[$1+48>>2];HEAP32[$0+52>>2]=HEAP32[$1+52>>2];HEAP32[$0+56>>2]=HEAP32[$1+56>>2];HEAP32[$0+60>>2]=HEAP32[$1+60>>2];HEAP32[$0+64>>2]=HEAP32[$1+64>>2];HEAP32[$0+68>>2]=HEAP32[$1+68>>2];HEAP32[$0+72>>2]=HEAP32[$1+72>>2];HEAP32[$0+76>>2]=HEAP32[$1+76>>2];HEAP32[$0+80>>2]=HEAP32[$1+80>>2];HEAP32[$0+84>>2]=HEAP32[$1+84>>2];HEAP32[$0+88>>2]=HEAP32[$1+88>>2];HEAP32[$0+92>>2]=HEAP32[$1+92>>2];HEAP32[$0+96>>2]=HEAP32[$1+96>>2];HEAP32[$0+100>>2]=HEAP32[$1+100>>2];HEAP32[$0+104>>2]=HEAP32[$1+104>>2];HEAP32[$0+108>>2]=HEAP32[$1+108>>2];HEAP32[$0+112>>2]=HEAP32[$1+112>>2];HEAP32[$0+116>>2]=HEAP32[$1+116>>2];HEAP32[$0+120>>2]=HEAP32[$1+120>>2];HEAP32[$0+124>>2]=HEAP32[$1+124>>2];HEAP32[$0+128>>2]=HEAP32[$1+128>>2];HEAP32[$0+132>>2]=HEAP32[$1+132>>2];HEAP32[$0+136>>2]=HEAP32[$1+136>>2];HEAP32[$0+140>>2]=HEAP32[$1+140>>2];HEAP32[$0+144>>2]=HEAP32[$1+144>>2];HEAP32[$0+148>>2]=HEAP32[$1+148>>2];HEAP32[$0+152>>2]=HEAP32[$1+152>>2];HEAP32[$0+156>>2]=HEAP32[$1+156>>2];HEAP32[$0+160>>2]=HEAP32[$1+160>>2];HEAP32[$0+164>>2]=HEAP32[$1+164>>2];HEAP32[$0+168>>2]=HEAP32[$1+168>>2];HEAP32[$0+172>>2]=HEAP32[$1+172>>2];HEAP32[$0+176>>2]=HEAP32[$1+176>>2];HEAP32[$0+180>>2]=HEAP32[$1+180>>2];HEAP32[$0+184>>2]=HEAP32[$1+184>>2];HEAP32[$0+188>>2]=HEAP32[$1+188>>2];HEAP32[$0+192>>2]=HEAP32[$1+192>>2];HEAP32[$0+196>>2]=HEAP32[$1+196>>2];HEAP32[$0+200>>2]=HEAP32[$1+200>>2];HEAP32[$0+204>>2]=HEAP32[$1+204>>2];HEAP32[$0+208>>2]=HEAP32[$1+208>>2];HEAP32[$0+212>>2]=HEAP32[$1+212>>2];HEAP32[$0+216>>2]=HEAP32[$1+216>>2];HEAP32[$0+220>>2]=HEAP32[$1+220>>2];HEAP32[$0+224>>2]=HEAP32[$1+224>>2];HEAP32[$0+228>>2]=HEAP32[$1+228>>2];HEAP32[$0+232>>2]=HEAP32[$1+232>>2];HEAP32[$0+236>>2]=HEAP32[$1+236>>2];HEAP32[$0+240>>2]=HEAP32[$1+240>>2];HEAP32[$0+244>>2]=HEAP32[$1+244>>2];HEAP32[$0+248>>2]=HEAP32[$1+248>>2];HEAP32[$0+252>>2]=HEAP32[$1+252>>2];HEAP32[$0+256>>2]=HEAP32[$1+256>>2];HEAP32[$0+260>>2]=HEAP32[$1+260>>2];HEAP32[$0+264>>2]=HEAP32[$1+264>>2];HEAP32[$0+268>>2]=HEAP32[$1+268>>2];HEAP32[$0+272>>2]=HEAP32[$1+272>>2];HEAP32[$0+276>>2]=HEAP32[$1+276>>2];HEAP32[$0+280>>2]=HEAP32[$1+280>>2];HEAP32[$0+284>>2]=HEAP32[$1+284>>2];HEAP32[$0+288>>2]=HEAP32[$1+288>>2];HEAP32[$0+292>>2]=HEAP32[$1+292>>2];HEAP32[$0+296>>2]=HEAP32[$1+296>>2];HEAP32[$0+300>>2]=HEAP32[$1+300>>2];HEAP32[$0+304>>2]=HEAP32[$1+304>>2];HEAP32[$0+308>>2]=HEAP32[$1+308>>2];HEAP32[$0+312>>2]=HEAP32[$1+312>>2];HEAP32[$0+316>>2]=HEAP32[$1+316>>2];HEAP32[$0+320>>2]=HEAP32[$1+320>>2];HEAP32[$0+324>>2]=HEAP32[$1+324>>2];HEAP32[$0+328>>2]=HEAP32[$1+328>>2];HEAP32[$0+332>>2]=HEAP32[$1+332>>2];HEAP32[$0+336>>2]=HEAP32[$1+336>>2];HEAP32[$0+340>>2]=HEAP32[$1+340>>2];HEAP32[$0+344>>2]=HEAP32[$1+344>>2];HEAP32[$0+348>>2]=HEAP32[$1+348>>2];HEAP32[$0+352>>2]=HEAP32[$1+352>>2];HEAP32[$0+356>>2]=HEAP32[$1+356>>2];HEAP32[$0+360>>2]=HEAP32[$1+360>>2];HEAP32[$0+364>>2]=HEAP32[$1+364>>2];HEAP32[$0+368>>2]=HEAP32[$1+368>>2];HEAP32[$0+372>>2]=HEAP32[$1+372>>2];HEAP32[$0+376>>2]=HEAP32[$1+376>>2];HEAP32[$0+380>>2]=HEAP32[$1+380>>2];HEAP32[$0+384>>2]=HEAP32[$1+384>>2];HEAP32[$0+388>>2]=HEAP32[$1+388>>2];HEAP32[$0+392>>2]=HEAP32[$1+392>>2];HEAP32[$0+396>>2]=HEAP32[$1+396>>2];memcpy($0+400|0,$1+400|0,144)}function dmGameObject__CreateComponents_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$2=global$0-128|0;global$0=$2;label$1:{if(HEAP8[581748]&1){break label$1}if(!__cxa_guard_acquire(581748)){break label$1}if(HEAPU8[1130703]){$8=dmProfile__AllocateScope_28char_20const__29(11164)}else{$8=-1}HEAP32[145436]=$8;__cxa_guard_release(581748)}label$3:{if(HEAP8[581756]&1){break label$3}if(!__cxa_guard_acquire(581756)){break label$3}if(HEAPU8[1130703]){$8=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(11545,16)}else{$8=0}HEAP32[145438]=$8;__cxa_guard_release(581756)}$5=HEAP32[145436];label$5:{if(($5|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($2+112|0,$5,11545,HEAP32[145438]);break label$5}HEAP32[$2+112>>2]=0}label$7:{label$8:{label$9:{label$10:{label$11:{label$12:{$12=HEAP32[$1+84>>2];$5=HEAP32[$12+4>>2];if($5>>>0<=65535){if(!$5){$3=1;break label$11}$6=$2- -64|0;$8=$6;$9=1;$5=0;break label$12}HEAP32[$2>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,10938,11562,$2);break label$11}while(1){$4=HEAP32[$12>>2]+Math_imul($5,80)|0;$7=HEAP32[$4+16>>2];if(!$7){break label$10}label$16:{if(HEAP8[581764]&1){break label$16}if(!__cxa_guard_acquire(581764)){break label$16}if(HEAPU8[1130703]){$10=dmProfile__AllocateScope_28char_20const__29(11631)}else{$10=-1}HEAP32[145440]=$10;__cxa_guard_release(581764)}$3=HEAP32[145440];label$18:{if(($3|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($2+96|0,$3,HEAP32[$7+4>>2],HEAP32[$7+8>>2]);break label$18}HEAP32[$2+96>>2]=0}$3=0;if(HEAP8[$7+88|0]&1){$3=(($11<<2)+$1|0)+160|0;HEAP32[$3>>2]=0;$11=$11+1|0}if($11>>>0>HEAPU32[$1+156>>2]){break label$9}HEAP32[$6>>2]=0;HEAP32[$6+4>>2]=0;HEAP32[$6+8>>2]=0;HEAP32[$2+16>>2]=$1;HEAP32[$2+32>>2]=HEAP32[$4+32>>2];HEAP32[$2+36>>2]=HEAP32[$4+36>>2];HEAP32[$2+40>>2]=HEAP32[$4+40>>2];HEAP32[$2+48>>2]=HEAP32[$4+48>>2];HEAP32[$2+52>>2]=HEAP32[$4+52>>2];HEAP32[$2+56>>2]=HEAP32[$4+56>>2];$10=HEAP32[$4+60>>2];HEAP16[$2+92>>1]=$5;HEAP32[$2+60>>2]=$10;HEAP32[$2+76>>2]=HEAP32[$4+24>>2];HEAP32[$2+80>>2]=HEAP32[((HEAP32[$4+20>>2]<<2)+$0|0)+12>>2];$10=HEAP32[$7+16>>2];HEAP32[$2+88>>2]=$3;HEAP32[$2+84>>2]=$10;HEAP32[$8+8>>2]=HEAP32[$4+72>>2];$3=HEAP32[$4+68>>2];HEAP32[$6>>2]=HEAP32[$4+64>>2];HEAP32[$6+4>>2]=$3;$3=0;label$21:{if(FUNCTION_TABLE[HEAP32[$7+28>>2]]($2+16|0)){$9=0;break label$21}$3=1;$4=((HEAP32[$4+20>>2]<<2)+$0|0)+1032|0;HEAP32[$4>>2]=HEAP32[$4>>2]+1;$13=$13+1|0}if(HEAP32[$2+96>>2]){dmProfile__ProfileScope__EndScope_28_29($2+96|0)}if($3){$5=$5+1|0;if($5>>>0>2]){continue}}break}$3=1;if($9){break label$11}if(!$13){$3=0;break label$11}$6=0;$5=0;while(1){$3=HEAP32[$12>>2]+Math_imul($6,80)|0;$7=HEAP32[$3+16>>2];if(!$7){break label$8}$11=HEAP32[$7+88>>2]&1;$4=$11+$5|0;if($4>>>0>HEAPU32[$1+156>>2]){break label$7}$9=((HEAP32[$3+20>>2]<<2)+$0|0)+1032|0;HEAP32[$9>>2]=HEAP32[$9>>2]+ -1;HEAP32[$2+16>>2]=HEAP32[$0+8>>2];HEAP32[$2+20>>2]=$1;HEAP32[$2+24>>2]=HEAP32[((HEAP32[$3+20>>2]<<2)+$0|0)+12>>2];$3=0;$9=HEAP32[$7+16>>2];HEAP32[$2+32>>2]=$11?(($5<<2)+$1|0)+160|0:0;HEAP32[$2+28>>2]=$9;FUNCTION_TABLE[HEAP32[$7+32>>2]]($2+16|0)|0;$5=$4;$6=$6+1|0;if(($13|0)!=($6|0)){continue}break}}if(HEAP32[$2+112>>2]){dmProfile__ProfileScope__EndScope_28_29($2+112|0)}global$0=$2+128|0;return $3}__assert_fail(11616,10811,722,11545);abort()}__assert_fail(11658,10811,732,11545);abort()}__assert_fail(11616,10811,764,11545);abort()}__assert_fail(11658,10811,770,11545);abort()}function DebugDrawcallback__processTriangle_28btVector3__2c_20int_2c_20int_29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0);$2=global$0-96|0;global$0=$2;$4=HEAPF32[$0+76>>2];$5=HEAPF32[$0+36>>2];$9=HEAPF32[$0+32>>2];$6=HEAPF32[$0+80>>2];$13=HEAPF32[$0+52>>2];$14=HEAPF32[$0+44>>2];$15=HEAPF32[$0+48>>2];$10=HEAPF32[$0+84>>2];$18=HEAPF32[$0+68>>2];$19=HEAPF32[$0+60>>2];$20=HEAPF32[$0- -64>>2];$21=HEAPF32[$0+28>>2];$11=HEAPF32[$1+8>>2];$7=HEAPF32[$1>>2];$8=HEAPF32[$1+4>>2];HEAP32[$2+92>>2]=0;$16=Math_fround($10+Math_fround(Math_fround(Math_fround($7*$19)+Math_fround($8*$20))+Math_fround($11*$18)));HEAPF32[$2+88>>2]=$16;$17=Math_fround($6+Math_fround(Math_fround(Math_fround($7*$14)+Math_fround($8*$15))+Math_fround($11*$13)));HEAPF32[$2+84>>2]=$17;$11=Math_fround($4+Math_fround(Math_fround(Math_fround($21*$7)+Math_fround($9*$8))+Math_fround($5*$11)));HEAPF32[$2+80>>2]=$11;$7=HEAPF32[$1+20>>2];$8=HEAPF32[$1+24>>2];$12=HEAPF32[$1+16>>2];HEAP32[$2+76>>2]=0;$22=Math_fround($10+Math_fround(Math_fround(Math_fround($19*$12)+Math_fround($20*$7))+Math_fround($18*$8)));HEAPF32[$2+72>>2]=$22;$23=Math_fround($6+Math_fround(Math_fround(Math_fround($14*$12)+Math_fround($15*$7))+Math_fround($13*$8)));HEAPF32[$2+68>>2]=$23;$24=Math_fround($4+Math_fround(Math_fround(Math_fround($21*$12)+Math_fround($9*$7))+Math_fround($5*$8)));HEAPF32[$2+64>>2]=$24;$7=HEAPF32[$1+36>>2];$8=HEAPF32[$1+40>>2];$12=HEAPF32[$1+32>>2];HEAP32[$2+60>>2]=0;$10=Math_fround($10+Math_fround(Math_fround(Math_fround($19*$12)+Math_fround($20*$7))+Math_fround($18*$8)));HEAPF32[$2+56>>2]=$10;$6=Math_fround($6+Math_fround(Math_fround(Math_fround($14*$12)+Math_fround($15*$7))+Math_fround($13*$8)));HEAPF32[$2+52>>2]=$6;$4=Math_fround($4+Math_fround(Math_fround(Math_fround($21*$12)+Math_fround($9*$7))+Math_fround($5*$8)));HEAPF32[$2+48>>2]=$4;HEAP32[$2+44>>2]=0;$13=Math_fround(Math_fround(Math_fround($11+$24)+$4)*Math_fround(.3333333432674408));HEAPF32[$2+32>>2]=$13;$14=Math_fround(Math_fround(Math_fround($17+$23)+$6)*Math_fround(.3333333432674408));HEAPF32[$2+36>>2]=$14;$5=Math_fround(Math_fround(Math_fround($16+$22)+$10)*Math_fround(.3333333432674408));HEAPF32[$2+40>>2]=$5;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=1065353216;HEAP32[$2+20>>2]=1065353216;$1=HEAP32[$0+8>>2];HEAP32[$2+12>>2]=0;$7=$5;$5=Math_fround($24-$11);$9=Math_fround($6-$17);$6=Math_fround($23-$17);$15=Math_fround($4-$11);$4=Math_fround(Math_fround($5*$9)-Math_fround($6*$15));$8=$4;$11=Math_fround($4*$4);$4=$6;$6=Math_fround($10-$16);$10=Math_fround($22-$16);$4=Math_fround(Math_fround($4*$6)-Math_fround($10*$9));$5=Math_fround(Math_fround($10*$15)-Math_fround($5*$6));$9=Math_fround(Math_fround(1)/Math_fround(Math_sqrt(Math_fround($11+Math_fround(Math_fround($4*$4)+Math_fround($5*$5))))));HEAPF32[$2+8>>2]=$7+Math_fround($8*$9);HEAPF32[$2+4>>2]=$14+Math_fround($5*$9);HEAPF32[$2>>2]=$13+Math_fround($4*$9);FUNCTION_TABLE[HEAP32[HEAP32[$1>>2]+8>>2]]($1,$2+32|0,$2,$2+16|0);$3=HEAP32[$0+8>>2];$1=$0+12|0;FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+8>>2]]($3,$2+80|0,$2- -64|0,$1);$3=HEAP32[$0+8>>2];FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+8>>2]]($3,$2- -64|0,$2+48|0,$1);$0=HEAP32[$0+8>>2];FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$2+48|0,$2+80|0,$1);global$0=$2+96|0}function dmScript__Http_Request_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0;$1=global$0+ -64|0;global$0=$1;$7=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;HEAP32[$1+56>>2]=0;HEAP32[$1+60>>2]=0;HEAP32[$1+48>>2]=0;HEAP32[$1+52>>2]=0;HEAP32[$1+40>>2]=0;HEAP32[$1+44>>2]=0;HEAP32[$1+32>>2]=0;HEAP32[$1+36>>2]=0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{if(dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29($0,$1+32|0)){$11=luaL_checklstring($0,1,0);$12=luaL_checklstring($0,2,0);luaL_checktype($0,3,6);lua_pushvalue($0,3);HEAP32[$1+40>>2]=dmScript__RefInInstance_28lua_State__29($0)+2;$8=$1+24|0;$2=$8;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;$9=$1+16|4;dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(4096,1,$1+16|0,$2,$9);label$8:{if(($7|0)<4){break label$8}if(!lua_type($0,4)){break label$8}luaL_checktype($0,4,5);lua_pushvalue($0,4);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;if(lua_next($0,-2)){while(1){$5=lua_tolstring($0,-2,0);$3=lua_tolstring($0,-1,0);$13=HEAP32[$1+16>>2];$10=HEAP32[$1+24>>2];$4=HEAP32[$1+20>>2];$2=$10-$4|0;$6=(strlen($5)+strlen($3)|0)+2|0;if($2>>>0<$6>>>0){if(HEAP8[$1+28|0]&1){break label$5}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(($10-$13|0)+($6>>>0>1024?$6:1024)|0,1,$1+16|0,$8,$9);$4=HEAP32[$1+20>>2];$2=HEAP32[$1+24>>2]-$4|0}$6=$2;$2=strlen($5);if($6>>>0<$2>>>0){break label$2}memcpy($4,$5,$2);$2=$2+HEAP32[$1+20>>2]|0;HEAP32[$1+20>>2]=$2;if(($2|0)==HEAP32[$1+24>>2]){break label$1}HEAP32[$1+20>>2]=$2+1;HEAP8[$2|0]=58;$4=HEAP32[$1+20>>2];$6=HEAP32[$1+24>>2]-$4|0;$2=strlen($3);if($6>>>0<$2>>>0){break label$2}memcpy($4,$3,$2);$2=$2+HEAP32[$1+20>>2]|0;HEAP32[$1+20>>2]=$2;if(($2|0)==HEAP32[$1+24>>2]){break label$1}HEAP32[$1+20>>2]=$2+1;HEAP8[$2|0]=10;lua_settop($0,-2);if(lua_next($0,-2)){continue}break}}lua_settop($0,-2)}$2=HEAP32[$1+20>>2];if(($2|0)==HEAP32[$1+24>>2]){break label$1}HEAP32[$1+20>>2]=$2+1;$4=0;HEAP8[$2|0]=0;$5=0;label$13:{if(($7|0)<5){break label$13}if(lua_type($0,5)){luaL_checktype($0,5,4);$2=luaL_checklstring($0,5,$1+12|0);$5=HEAP32[$1+12>>2];$4=dlmalloc($5);memcpy($4,$2,$5)}if(($7|0)<6){break label$13}if(!lua_type($0,6)){break label$13}luaL_checktype($0,6,5);lua_pushvalue($0,6);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;if(lua_next($0,-2)){while(1){if(!strcmp(lua_tolstring($0,-2,0),111284)){luaL_checknumber($0,-1)}lua_settop($0,-2);if(lua_next($0,-2)){continue}break}}lua_settop($0,-2)}$2=operator_20new_28unsigned_20long_29(32);$3=HEAP32[$1+60>>2];HEAP32[$2+24>>2]=HEAP32[$1+56>>2];HEAP32[$2+28>>2]=$3;$3=HEAP32[$1+52>>2];HEAP32[$2+16>>2]=HEAP32[$1+48>>2];HEAP32[$2+20>>2]=$3;$3=HEAP32[$1+44>>2];HEAP32[$2+8>>2]=HEAP32[$1+40>>2];HEAP32[$2+12>>2]=$3;$3=HEAP32[$1+36>>2];HEAP32[$2>>2]=HEAP32[$1+32>>2];HEAP32[$2+4>>2]=$3;dmScriptHttpRequestAsync($12|0,$11|0,HEAP32[$1+16>>2],$2|0,1462,1463,$4|0,$5|0,HEAP32[148788]);if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($7|0)){break label$4}label$18:{if(HEAP8[$1+28|0]&1){break label$18}$0=HEAP32[$1+16>>2];if(!$0){break label$18}dlfree($0)}$0=0;break label$6}if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($7|0)){break label$3}$0=luaL_error($0,111352,0)}global$0=$1- -64|0;return $0|0}__assert_fail(111512,111587,444,111658);abort()}__assert_fail(111292,111313,171,111339);abort()}__assert_fail(111292,111313,174,111339);abort()}__assert_fail(111670,111587,491,111699);abort()}__assert_fail(111709,111587,484,111733);abort()}function btIDebugDraw__drawBox_28btVector3_20const__2c_20btVector3_20const__2c_20btVector3_20const__29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=0,$5=0,$6=0,$7=0;$4=global$0-32|0;global$0=$4;HEAP32[$4+16>>2]=HEAP32[$1>>2];$6=HEAP32[$1+4>>2];HEAP32[$4+20>>2]=$6;$5=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;$7=HEAP32[$2>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$7;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$6=HEAP32[$2>>2];HEAP32[$4+16>>2]=$6;HEAP32[$4+20>>2]=HEAP32[$1+4>>2];$5=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;HEAP32[$4>>2]=$6;$6=HEAP32[$2+4>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+16>>2]=HEAP32[$2>>2];$6=HEAP32[$2+4>>2];HEAP32[$4+20>>2]=$6;$5=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;$7=HEAP32[$1>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$7;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$6=HEAP32[$1>>2];HEAP32[$4+16>>2]=$6;HEAP32[$4+20>>2]=HEAP32[$2+4>>2];$5=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;HEAP32[$4>>2]=$6;$6=HEAP32[$1+4>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$5=HEAP32[$1>>2];HEAP32[$4+16>>2]=$5;$6=HEAP32[$1+4>>2];HEAP32[$4+20>>2]=$6;$7=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$7;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$5;$5=HEAP32[$2+8>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$5=HEAP32[$2>>2];HEAP32[$4+16>>2]=$5;$6=HEAP32[$1+4>>2];HEAP32[$4+20>>2]=$6;$7=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$7;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$5;$5=HEAP32[$2+8>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$5=HEAP32[$2>>2];HEAP32[$4+16>>2]=$5;$6=HEAP32[$2+4>>2];HEAP32[$4+20>>2]=$6;$7=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$7;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$5;$5=HEAP32[$2+8>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$5=HEAP32[$1>>2];HEAP32[$4+16>>2]=$5;$6=HEAP32[$2+4>>2];HEAP32[$4+20>>2]=$6;$7=HEAP32[$1+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$7;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$5;$5=HEAP32[$2+8>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+16>>2]=HEAP32[$1>>2];$6=HEAP32[$1+4>>2];HEAP32[$4+20>>2]=$6;$5=HEAP32[$2+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;$7=HEAP32[$2>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$7;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$6=HEAP32[$2>>2];HEAP32[$4+16>>2]=$6;HEAP32[$4+20>>2]=HEAP32[$1+4>>2];$5=HEAP32[$2+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;HEAP32[$4>>2]=$6;$6=HEAP32[$2+4>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);HEAP32[$4+16>>2]=HEAP32[$2>>2];$6=HEAP32[$2+4>>2];HEAP32[$4+20>>2]=$6;$5=HEAP32[$2+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$5;$7=HEAP32[$1>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$5;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$7;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);$5=HEAP32[$1>>2];HEAP32[$4+16>>2]=$5;HEAP32[$4+20>>2]=HEAP32[$2+4>>2];$2=HEAP32[$2+8>>2];HEAP32[$4+28>>2]=0;HEAP32[$4+24>>2]=$2;HEAP32[$4>>2]=$5;$1=HEAP32[$1+4>>2];HEAP32[$4+12>>2]=0;HEAP32[$4+8>>2]=$2;HEAP32[$4+4>>2]=$1;FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$4+16|0,$4,$3);global$0=$4+32|0}function dmGameObject__Update_28dmGameObject__CollectionHandle__2c_20dmGameObject__UpdateContext_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$3=global$0+ -64|0;global$0=$3;$0=HEAP32[$0>>2];label$1:{if(HEAP8[581988]&1){break label$1}if(!__cxa_guard_acquire(581988)){break label$1}if(HEAPU8[1130703]){$5=dmProfile__AllocateScope_28char_20const__29(11164)}else{$5=-1}HEAP32[145496]=$5;__cxa_guard_release(581988)}label$3:{if(HEAP8[581996]&1){break label$3}if(!__cxa_guard_acquire(581996)){break label$3}if(HEAPU8[1130703]){$5=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(15678,6)}else{$5=0}HEAP32[145498]=$5;__cxa_guard_release(581996)}$2=HEAP32[145496];label$5:{if(($2|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+48|0,$2,15678,HEAP32[145498]);break label$5}HEAP32[$3+48>>2]=0}label$7:{if(HEAP8[582004]&1){break label$7}if(!__cxa_guard_acquire(582004)){break label$7}if(HEAPU8[1130703]){$5=dmProfile__AllocateCounter_28char_20const__29(15685)}else{$5=-1}HEAP32[145500]=$5;__cxa_guard_release(582004)}label$9:{label$10:{label$11:{label$12:{$2=HEAP32[145500];label$13:{if(($2|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($2,HEAPU16[$0+2078>>1]);break label$13}if(!$0){break label$12}}label$15:{if(HEAP8[$0+4276|0]&1){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,10938,15695,0);break label$15}$2=HEAPU16[$0+4272>>1];if(($2|0)!=32767){while(1){$4=HEAP32[$0+2056>>2];$2=$2&65535;if(HEAP32[$0+2060>>2]-$4>>2>>>0<=$2>>>0){break label$11}$4=HEAP32[$4+($2<<2)>>2];dmGameObject__DoAddToUpdate_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,$4);$2=HEAPU16[$4+150>>1];HEAP16[$4+150>>1]=32767;if(($2|0)!=32767){continue}break}}HEAP32[$0+4272>>2]=2147450879}$5=1;$4=HEAPU8[$0+4276|0]|1;HEAP8[$0+4276|0]=$4;$2=HEAP32[$0+4>>2];$8=HEAP32[$2>>2];if(!$8){break label$9}$10=$0+4224|0;$4=0;while(1){$6=HEAPU16[(($4<<1)+$2|0)+24488>>1];$7=$6<<2;$9=HEAP32[($7+$2|0)+25e3>>2];if(($9|0)!=-1){dmProfile__AddCounterIndex_28unsigned_20int_2c_20unsigned_20int_29($9,HEAP32[($0+$7|0)+1032>>2])}$2=Math_imul($6,96)+$2|0;if(!(!(HEAPU8[$2+96|0]&2)|!(HEAPU8[$0+4276|0]&8))){dmGameObject__UpdateTransforms_28dmGameObject__Collection__29($0)}if(HEAP32[$2+60>>2]){label$23:{if(HEAP8[582012]&1){break label$23}if(!__cxa_guard_acquire(582012)){break label$23}if(HEAPU8[1130703]){$6=dmProfile__AllocateScope_28char_20const__29(11164)}else{$6=-1}HEAP32[145502]=$6;__cxa_guard_release(582012)}$6=HEAP32[145502];label$25:{if(($6|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+32|0,$6,HEAP32[$2+12>>2],HEAP32[$2+16>>2]);break label$25}HEAP32[$3+32>>2]=0}$6=HEAP32[$0+8>>2];HEAP32[$3+20>>2]=$1;HEAP32[$3+16>>2]=$6;HEAP32[$3+24>>2]=HEAP32[($0+$7|0)+12>>2];HEAP32[$3+28>>2]=HEAP32[$2+24>>2];HEAP8[$3+8|0]=0;$2=FUNCTION_TABLE[HEAP32[$2+60>>2]]($3+16|0,$3+8|0)|0;$7=HEAPU8[$0+4276|0];HEAP8[$0+4276|0]=$7&8|HEAPU8[$3+8|0]<<3|$7&247;if(HEAP32[$3+32>>2]){dmProfile__ProfileScope__EndScope_28_29($3+32|0)}$5=!$2&$5}$5=$5&dmGameObject__DispatchMessages_28dmGameObject__Collection__2c_20unsigned_20long_20long__2c_20unsigned_20int_29($0,$10,1);$4=$4+1|0;if(($8|0)==($4|0)){break label$10}$2=HEAP32[$0+4>>2];continue}}__assert_fail(12518,10811,2428,15678);abort()}__assert_fail(16081,13666,430,14890);abort()}$4=HEAPU8[$0+4276|0]}HEAP8[$0+4276|0]=$4&254;if($4&8){dmGameObject__UpdateTransforms_28dmGameObject__Collection__29($0)}if(HEAP32[$3+48>>2]){dmProfile__ProfileScope__EndScope_28_29($3+48|0)}global$0=$3- -64|0;return $5}function Vectormath__Aos__inverse_28Vectormath__Aos__Matrix4_20const__29($0,$1){var $2=Math_fround(0),$3=Math_fround(0),$4=Math_fround(0),$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0);$3=HEAPF32[$1+4>>2];$6=HEAPF32[$1+32>>2];$7=HEAPF32[$1>>2];$10=HEAPF32[$1+36>>2];$20=Math_fround(Math_fround($3*$6)-Math_fround($7*$10));$11=HEAPF32[$1+8>>2];$12=HEAPF32[$1+40>>2];$21=Math_fround(Math_fround($11*$6)-Math_fround($7*$12));$8=HEAPF32[$1+48>>2];$13=HEAPF32[$1+28>>2];$5=Math_fround(Math_fround($3*$12)-Math_fround($11*$10));$14=HEAPF32[$1+24>>2];$15=HEAPF32[$1+12>>2];$16=HEAPF32[$1+44>>2];$22=Math_fround(Math_fround($15*$10)-Math_fround($3*$16));$4=HEAPF32[$1+20>>2];$23=Math_fround(Math_fround($15*$12)-Math_fround($11*$16));$29=Math_fround(Math_fround(Math_fround($13*$5)+Math_fround($14*$22))-Math_fround($4*$23));$17=HEAPF32[$1+56>>2];$18=HEAPF32[$1+52>>2];$24=Math_fround(Math_fround($4*$17)-Math_fround($14*$18));$19=HEAPF32[$1+60>>2];$25=Math_fround(Math_fround($13*$18)-Math_fround($4*$19));$26=Math_fround(Math_fround($13*$17)-Math_fround($14*$19));$30=Math_fround(Math_fround(Math_fround($15*$24)+Math_fround($11*$25))-Math_fround($3*$26));$9=HEAPF32[$1+16>>2];$31=Math_fround(Math_fround(Math_fround($18*$23)-Math_fround($5*$19))-Math_fround($22*$17));$32=Math_fround(Math_fround(Math_fround($10*$26)-Math_fround($16*$24))-Math_fround($12*$25));$2=Math_fround(Math_fround(1)/Math_fround(Math_fround($8*$29)+Math_fround(Math_fround($6*$30)+Math_fround(Math_fround($9*$31)+Math_fround($7*$32)))));HEAPF32[$0+60>>2]=Math_fround(Math_fround(Math_fround($14*$20)-Math_fround($4*$21))-Math_fround($9*$5))*$2;$27=Math_fround(Math_fround($4*$8)-Math_fround($9*$18));$28=Math_fround(Math_fround($14*$8)-Math_fround($9*$17));HEAPF32[$0+56>>2]=Math_fround(Math_fround(Math_fround($11*$27)-Math_fround($3*$28))-Math_fround($7*$24))*$2;HEAPF32[$0+52>>2]=Math_fround(Math_fround($8*$5)+Math_fround(Math_fround($21*$18)-Math_fround($20*$17)))*$2;HEAPF32[$0+48>>2]=Math_fround(Math_fround($6*$24)+Math_fround(Math_fround($10*$28)-Math_fround($12*$27)))*$2;$5=$4;$4=Math_fround(Math_fround($15*$6)-Math_fround($7*$16));HEAPF32[$0+44>>2]=Math_fround(Math_fround(Math_fround($5*$4)-Math_fround($13*$20))-Math_fround($9*$22))*$2;$5=$3;$3=Math_fround(Math_fround($13*$8)-Math_fround($9*$19));HEAPF32[$0+40>>2]=Math_fround(Math_fround(Math_fround($5*$3)-Math_fround($15*$27))-Math_fround($7*$25))*$2;HEAPF32[$0+36>>2]=Math_fround(Math_fround($8*$22)+Math_fround(Math_fround($20*$19)-Math_fround($18*$4)))*$2;HEAPF32[$0+32>>2]=Math_fround(Math_fround($6*$25)+Math_fround(Math_fround($16*$27)-Math_fround($10*$3)))*$2;HEAPF32[$0+28>>2]=Math_fround(Math_fround($9*$23)+Math_fround(Math_fround($13*$21)-Math_fround($14*$4)))*$2;HEAPF32[$0+24>>2]=Math_fround(Math_fround($7*$26)+Math_fround(Math_fround($15*$28)-Math_fround($11*$3)))*$2;HEAPF32[$0+20>>2]=Math_fround(Math_fround(Math_fround($4*$17)-Math_fround($21*$19))-Math_fround($8*$23))*$2;HEAPF32[$0+16>>2]=Math_fround(Math_fround(Math_fround($12*$3)-Math_fround($16*$28))-Math_fround($6*$26))*$2;HEAPF32[$0+12>>2]=$29*$2;HEAPF32[$0+8>>2]=$30*$2;HEAPF32[$0+4>>2]=$31*$2;HEAPF32[$0>>2]=$32*$2}function dmRender__NewFontMap_28dmGraphics__Context__2c_20dmRender__FontMapParams__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$3=global$0+ -64|0;global$0=$3;$2=operator_20new_28unsigned_20long_29(144);HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+40>>2]=0;HEAP32[$2+44>>2]=0;HEAP32[$2+84>>2]=0;HEAP32[$2+88>>2]=0;HEAP32[$2+116>>2]=0;HEAP32[$2+120>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;$5=$2+8|0;$4=$5;HEAP32[$4>>2]=0;HEAP32[$4+4>>2]=0;HEAP32[$2+48>>2]=0;HEAP32[$2+52>>2]=0;HEAP32[$2+92>>2]=0;HEAP32[$2+96>>2]=0;HEAP32[$2+100>>2]=0;HEAP32[$2+124>>2]=0;HEAP32[$2+128>>2]=0;HEAP32[$2+132>>2]=0;HEAP32[$2+136>>2]=0;HEAP16[$2+140>>1]=256;HEAP32[$2+4>>2]=0;HEAP32[$2+28>>2]=-1;$4=HEAP32[$1+4>>2]-HEAP32[$1>>2]>>6;dmHashTable_unsigned_20int_2c_20dmRender__Glyph___SetCapacity_28unsigned_20int_2c_20unsigned_20int_29($5,Math_imul($4,3)>>>1|0,$4);$4=HEAP32[$1>>2];if(($4|0)!=HEAP32[$1+4>>2]){while(1){$4=($6<<6)+$4|0;dmHashTable_unsigned_20int_2c_20dmRender__Glyph___Put_28unsigned_20int_2c_20dmRender__Glyph_20const__29($5,HEAP32[$4>>2],$4);$6=$6+1|0;$4=HEAP32[$1>>2];if($6>>>0>2]-$4>>6>>>0){continue}break}}HEAP32[$2+40>>2]=HEAP32[$1+16>>2];HEAP32[$2+44>>2]=HEAP32[$1+20>>2];HEAP32[$2+48>>2]=HEAP32[$1+24>>2];HEAP32[$2+52>>2]=HEAP32[$1+28>>2];HEAP32[$2+56>>2]=HEAP32[$1+32>>2];HEAP32[$2+60>>2]=HEAP32[$1+36>>2];HEAP32[$2+64>>2]=HEAP32[$1+40>>2];HEAP32[$2+68>>2]=HEAP32[$1+44>>2];HEAP32[$2+72>>2]=HEAP32[$1+48>>2];HEAP32[$2+76>>2]=HEAP32[$1+52>>2];HEAP32[$2+80>>2]=HEAP32[$1+56>>2];HEAP8[$2+141|0]=HEAPU8[$1+89|0];$6=HEAP32[$1+60>>2];HEAP32[$2+84>>2]=$6;$4=HEAP32[$1+64>>2];HEAP32[$2+88>>2]=$4;HEAP32[$2+92>>2]=HEAP32[$1+72>>2];$5=HEAP32[$1+76>>2];HEAP32[$2+128>>2]=$5;$7=HEAP32[$1+80>>2];HEAP32[$2+132>>2]=$7;HEAP32[$2+136>>2]=HEAP32[$1+84>>2];$10=HEAPU8[$1+88|0];$8=($4>>>0)/($7>>>0)|0;HEAP32[$2+120>>2]=$8;$9=($6>>>0)/($5>>>0)|0;HEAP32[$2+116>>2]=$9;HEAP8[$2+140|0]=$10;HEAP32[$2+124>>2]=dlmalloc(Math_imul($5,$7)<<2);label$3:{label$4:{label$5:{label$6:{$7=HEAPU8[$1+68|0]+ -1|0;if($7>>>0>3){break label$6}$5=0;label$7:{switch($7-1|0){case 1:break label$5;case 0:break label$6;case 2:break label$7;default:break label$4}}$5=3;break label$4}$1=0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,98493,98500,0);dmRender__FontMap___FontMap_28_29($2);dlfree($2);break label$3}$5=2}HEAP32[$2+104>>2]=$5;label$8:{if(!HEAP32[$1+92>>2]){FUNCTION_TABLE[HEAP32[147550]]($0,$2+108|0,$2+112|0);label$10:{label$11:{$4=HEAP32[$2+108>>2];$5=$4+ -3|0;if($5>>>0>2){break label$11}$6=1;label$12:{switch($5-1|0){case 0:break label$11;case 1:break label$12;default:break label$10}}$6=2;break label$10}$6=$4}HEAP32[$2+108>>2]=$6;$4=HEAPU16[$1+64>>1];$6=HEAPU16[$1+60>>1];break label$8}HEAP32[$2+108>>2]=2;HEAP32[$2+112>>2]=2}$5=Math_imul($8,$9)<<2;$7=dlmalloc($5);HEAP32[$2+96>>2]=$7;memset($7,0,$5);HEAP8[$3+60|0]=1;HEAP32[$3+48>>2]=0;HEAP32[$3+28>>2]=0;HEAP8[$3+31|0]=0;HEAP8[$3+32|0]=0;HEAP8[$3+33|0]=0;HEAP8[$3+34|0]=0;HEAP16[$3+58>>1]=$4;HEAP16[$3+56>>1]=$6;HEAP16[$3+54>>1]=$4;HEAP16[$3+52>>1]=$6;HEAP32[$3+36>>2]=0;HEAP32[$3+40>>2]=0;HEAP32[$3+12>>2]=1;HEAP32[$3+16>>2]=1;$5=HEAP32[$2+104>>2];HEAP32[$3+4>>2]=2;HEAP32[$3+8>>2]=2;HEAP16[$3+30>>1]=$6;HEAP16[$3+32>>1]=$4;HEAP32[$3>>2]=$5;$5=FUNCTION_TABLE[HEAP32[147618]]($0,$3+48|0)|0;HEAP32[$2>>2]=$5;$0=Math_imul(Math_imul(HEAPU8[$1+68|0],$6&65535),$4&65535);$1=dlmalloc($0);HEAP32[$3+24>>2]=$0;HEAP32[$3+20>>2]=$1;memset($1,0,$0);FUNCTION_TABLE[HEAP32[147620]]($5,$3);dlfree(HEAP32[$3+20>>2]);$1=$2}global$0=$3- -64|0;return $1}function void_20std____2____stable_sort_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0,$10=0,$11=0;label$1:{if($3>>>0<=2){if($3-2){break label$1}$2=HEAP32[$2>>2];$1=$1+ -4|0;$3=HEAP32[$1>>2];$4=$2+($3<<3)|0;$5=HEAP32[$4>>2];$7=HEAP32[$0>>2];$2=$2+($7<<3)|0;$6=HEAP32[$2>>2];$4=HEAP32[$4+4>>2];$2=HEAP32[$2+4>>2];if(($4|0)==($2|0)&$5>>>0>=$6>>>0|$4>>>0>$2>>>0){break label$1}HEAP32[$0>>2]=$3;HEAP32[$1>>2]=$7;return}if(($3|0)<=128){if(($0|0)==($1|0)){break label$1}$3=$0+4|0;if(($3|0)==($1|0)){break label$1}$5=HEAP32[$2>>2];while(1){$7=HEAP32[$3>>2];$4=$0;label$5:{if(($4|0)==($3|0)){break label$5}$6=$5+($7<<3)|0;$4=$3;while(1){$2=$4+ -4|0;$9=HEAP32[$2>>2];$8=$5+($9<<3)|0;$10=HEAP32[$8>>2];$11=HEAP32[$6+4>>2];$8=HEAP32[$8+4>>2];if(($11|0)==($8|0)&HEAPU32[$6>>2]>=$10>>>0|$11>>>0>$8>>>0){break label$5}HEAP32[$4>>2]=$9;$4=$2;if(($4|0)!=($0|0)){continue}break}$4=$0}HEAP32[$4>>2]=$7;$3=$3+4|0;if(($3|0)!=($1|0)){continue}break}break label$1}$7=$3>>>1|0;$9=$7<<2;$6=$9+$0|0;label$7:{if(($3|0)<=($5|0)){void_20std____2____stable_sort_move_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($0,$6,$2,$7,$4);$5=$1;$1=$4+$9|0;void_20std____2____stable_sort_move_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($6,$5,$2,$3-$7|0,$1);$5=($3<<2)+$4|0;$2=HEAP32[$2>>2];$3=$1;while(1){if(($3|0)==($5|0)){if(($1|0)==($4|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$4>>2];$0=$0+4|0;$4=$4+4|0;if(($1|0)!=($4|0)){continue}break}break label$1}$7=HEAP32[$3>>2];$6=$2+($7<<3)|0;$9=HEAP32[$6>>2];$8=HEAP32[$4>>2];$10=$2+($8<<3)|0;$11=HEAP32[$10>>2];$6=HEAP32[$6+4>>2];$10=HEAP32[$10+4>>2];label$12:{if(($6|0)==($10|0)&$9>>>0<$11>>>0|$6>>>0<$10>>>0){HEAP32[$0>>2]=$7;$3=$3+4|0;break label$12}HEAP32[$0>>2]=$8;$4=$4+4|0}$0=$0+4|0;if(($1|0)!=($4|0)){continue}break}break label$7}void_20std____2____stable_sort_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$6,$2,$7,$4,$5);$3=$3-$7|0;void_20std____2____stable_sort_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($6,$1,$2,$3,$4,$5);void_20std____2____inplace_merge_dmRender__RenderListSorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListSorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$6,$1,$2,$7,$3,$4,$5);break label$1}if(($3|0)==($5|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$3>>2];$0=$0+4|0;$3=$3+4|0;if(($5|0)!=($3|0)){continue}break}}}function dmEngine__Delete_28dmEngine__Engine__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0;$4=global$0-32|0;global$0=$4;$1=HEAP32[$0+156>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$0+244>>2],$1)}dmGameObject__PostUpdate_28dmGameObject__Register__29(HEAP32[$0+152>>2]);dmHttpClient__ShutdownConnectionPool_28_29();HEAP32[309376]=0;HEAP8[1237672]=0;HEAP32[309387]=HEAP32[309386];$1=$4+16|0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+4>>2]=HEAP32[$0+244>>2];HEAP32[$1+8>>2]=HEAP32[$0+152>>2];$3=HEAP32[$0+228>>2];label$2:{label$3:{if($3){HEAP32[$1>>2]=$3?HEAP32[$3+120>>2]:0;break label$3}$3=$1;$2=HEAP32[$0+232>>2];$5=0;label$7:{if(!$2){break label$7}$5=HEAP32[$2+120>>2]}HEAP32[$3>>2]=$5;dmGameSystem__FinalizeScriptLibs_28dmGameSystem__ScriptLibContext_20const__29($1);$2=HEAP32[$0+268>>2];if(!$2){break label$2}HEAP32[$1>>2]=HEAP32[$2>>2]}dmGameSystem__FinalizeScriptLibs_28dmGameSystem__ScriptLibContext_20const__29($1)}dmHttpClient__ReopenConnectionPool_28_29();dmGameObject__DeleteRegister_28dmGameObject__Register__29(HEAP32[$0+152>>2]);$1=HEAP32[$0+440>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$0+244>>2],$1)}$1=HEAP32[$0+420>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$0+244>>2],$1)}$1=HEAP32[$0+432>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$0+244>>2],$1)}$1=HEAP32[$0+436>>2];if($1){dmResource__Release_28dmResource__SResourceFactory__2c_20void__29(HEAP32[$0+244>>2],$1)}dmSound__Finalize_28_29();dmInput__DeleteContext_28dmInput__Context__29(HEAP32[$0+428>>2]);dmRender__DeleteRenderContext_28dmRender__RenderContext__2c_20dmScript__Context__29(HEAP32[$0+188>>2]);if(HEAP32[$0+424>>2]){HEAP32[279952]=0;dmGameObject__DestroyPropertyContainerCallback_28unsigned_20long_29(HEAP32[$0+424>>2])}$2=$0+228|0;$1=HEAP32[$0+268>>2];if($1){if($1){dlfree(dmGui__Context___Context_28_29($1))}}$1=HEAP32[$0+228>>2];label$15:{if(!$1){$1=HEAP32[$0+232>>2];if($1){dmScript__Finalize_28dmScript__Context__29($1);dmScript__DeleteContext_28dmScript__Context__29(HEAP32[$0+232>>2])}$1=HEAP32[$0+236>>2];if($1){dmScript__Finalize_28dmScript__Context__29($1);dmScript__DeleteContext_28dmScript__Context__29(HEAP32[$0+236>>2])}$1=HEAP32[$0+240>>2];if(!$1){break label$15}$2=$0+240|0}dmScript__Finalize_28dmScript__Context__29($1);dmScript__DeleteContext_28dmScript__Context__29(HEAP32[$2>>2])}$1=HEAP32[$0+244>>2];if($1){dmResource__DeleteFactory_28dmResource__SResourceFactory__29($1)}$1=HEAP32[$0+184>>2];if($1){FUNCTION_TABLE[HEAP32[147540]]($1);FUNCTION_TABLE[HEAP32[147535]](HEAP32[$0+184>>2])}$1=HEAP32[$0+300>>2];$2=$1;$3=HEAP32[$0+296>>2];if($1|$3){dmMessage__DeleteSocket_28unsigned_20long_20long_29($3,$2)}$1=HEAP32[$0+192>>2];label$22:{if(!$1){break label$22}if(HEAPU8[$0+205|0]){dmPhysics__DeleteContext3D_28dmPhysics__Context3D__29($1);break label$22}dmPhysics__DeleteContext2D_28dmPhysics__Context2D__29($1)}$1=$4+8|0;HEAP32[$1>>2]=0;HEAP32[$1>>2]=HEAP32[$0+4>>2];dmExtension__AppFinalize_28dmExtension__AppParams__29($1);$1=HEAP32[280323];if($1){dlfree(HEAP32[$1>>2]);dlfree(HEAP32[280323])}HEAP32[280323]=0;$1=HEAP32[$0+4>>2];if($1){dmConfigFile__Delete_28dmConfigFile__Config__29($1)}label$26:{if(HEAP8[$0+416|0]&1){break label$26}$1=HEAP32[$0+404>>2];if(!$1){break label$26}dlfree($1)}label$27:{if(HEAP8[$0+260|0]&1){break label$27}$1=HEAP32[$0+248>>2];if(!$1){break label$27}dlfree($1)}label$28:{if(HEAP8[$0+172|0]&1){break label$28}$1=HEAP32[$0+160>>2];if(!$1){break label$28}dlfree($1)}dlfree($0);global$0=$4+32|0}function dmHashClone64($0,$1,$2){var $3=0,$4=0;$3=HEAP32[$1+4>>2];HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=$3;$3=HEAP32[$1+28>>2];HEAP32[$0+24>>2]=HEAP32[$1+24>>2];HEAP32[$0+28>>2]=$3;$3=HEAP32[$1+20>>2];HEAP32[$0+16>>2]=HEAP32[$1+16>>2];HEAP32[$0+20>>2]=$3;$3=HEAP32[$1+12>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+12>>2]=$3;label$1:{if(HEAP8[1130232]&1){break label$1}if(!__cxa_guard_acquire(1130232)){break label$1}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$3=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$3;__cxa_guard_release(1130232)}label$2:{label$3:{if(!(!HEAPU8[1130132]|!HEAP32[$1+24>>2])){if($2){label$6:{if(HEAP8[1130232]&1){break label$6}if(!__cxa_guard_acquire(1130232)){break label$6}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$3=HEAP32[282532];dmMutex__Lock_28dmMutex__Mutex__29($3);label$7:{if(HEAP8[1130232]&1){break label$7}if(!__cxa_guard_acquire(1130232)){break label$7}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}$2=$0;$0=ReverseHashContainer__AllocReverseHashStatesSlot_28_29();HEAP32[$2+24>>2]=$0;label$8:{if(HEAP8[1130232]&1){break label$8}if(!__cxa_guard_acquire(1130232)){break label$8}HEAP32[282538]=0;HEAP32[282539]=0;HEAP32[282546]=0;HEAP32[282547]=0;HEAP32[282534]=0;HEAP32[282535]=0;HEAP32[282542]=0;HEAP32[282543]=0;HEAP32[282550]=0;HEAP32[282551]=0;HEAP32[282540]=0;HEAP32[282541]=0;HEAP32[282536]=0;HEAP32[282537]=0;HEAP32[282544]=0;HEAP32[282545]=0;HEAP32[282548]=0;HEAP32[282549]=0;HEAP32[282552]=0;HEAP32[282553]=0;HEAP32[282554]=0;HEAP32[282555]=0;HEAP32[282556]=0;HEAP32[282539]=-1;HEAP32[282547]=-1;HEAP8[1130228]=HEAPU8[1130228]&254;$2=dmMutex__New_28_29();HEAP8[1130132]=0;HEAP32[282532]=$2;__cxa_guard_release(1130232)}if(!$0){break label$3}$2=HEAP32[282550];$4=HEAP32[282551]-$2>>3;if($4>>>0<=$0>>>0){break label$2}$1=HEAP32[$1+24>>2];if($4>>>0<=$1>>>0){break label$2}$4=$2+($0<<3)|0;$1=$2+($1<<3)|0;$0=HEAPU16[$1+4>>1];$2=dlmalloc($0+16&131056);HEAP32[$4>>2]=$2;HEAP8[memcpy($2,HEAP32[$1>>2],$0)+$0|0]=0;HEAP16[$4+4>>1]=$0;dmMutex__Unlock_28dmMutex__Mutex__29($3);return}HEAP32[$0+24>>2]=0}return}__assert_fail(147415,147127,135,147432);abort()}__assert_fail(147626,147230,430,147637);abort()}function dmGameObject__FindPropertyName_28dmPropertiesDDF__PropertyDeclarations__2c_20unsigned_20long_20long_2c_20char_20const___2c_20dmGameObject__PropertyType__2c_20unsigned_20long_20long___2c_20bool__2c_20unsigned_20int__29($0,$1,$2,$3,$4,$5,$6,$7){var $8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;HEAP8[$6|0]=0;label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{label$9:{label$10:{label$11:{label$12:{$10=HEAP32[$0+52>>2];if($10){$9=HEAP32[$0+48>>2];while(1){$11=$9+($8<<5)|0;if(($1|0)==HEAP32[$11+8>>2]&($2|0)==HEAP32[$11+12>>2]){break label$12}$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}$10=HEAP32[$0+4>>2];if($10){$9=HEAP32[$0>>2];$8=0;while(1){$11=$9+($8<<5)|0;if(($1|0)==HEAP32[$11+8>>2]&($2|0)==HEAP32[$11+12>>2]){break label$11}$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}$10=HEAP32[$0+12>>2];if($10){$9=HEAP32[$0+8>>2];$8=0;while(1){$11=$9+($8<<5)|0;if(($1|0)==HEAP32[$11+8>>2]&($2|0)==HEAP32[$11+12>>2]){break label$10}$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}$10=HEAP32[$0+20>>2];if($10){$9=HEAP32[$0+16>>2];$8=0;while(1){$11=$9+($8<<5)|0;if(($1|0)==HEAP32[$11+8>>2]&($2|0)==HEAP32[$11+12>>2]){break label$9}$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}$11=HEAP32[$0+28>>2];if($11){$10=HEAP32[$0+24>>2];$8=0;while(1){$9=$10+($8<<5)|0;if(($1|0)==HEAP32[$9+8>>2]&($2|0)==HEAP32[$9+12>>2]){break label$8}$8=$8+1|0;if(($11|0)!=($8|0)){continue}break}$9=0;while(1){$8=$10+($9<<5)|0;$12=HEAP32[$8+24>>2];if($12){$14=HEAP32[$8+20>>2];$8=0;while(1){$13=$14+($8<<3)|0;if(($1|0)==HEAP32[$13>>2]&($2|0)==HEAP32[$13+4>>2]){break label$7}$8=$8+1|0;if(($12|0)!=($8|0)){continue}break}}$9=$9+1|0;if(($11|0)!=($9|0)){continue}break}}$11=HEAP32[$0+36>>2];if($11){$10=HEAP32[$0+32>>2];$8=0;while(1){$9=$10+($8<<5)|0;if(($1|0)==HEAP32[$9+8>>2]&($2|0)==HEAP32[$9+12>>2]){break label$6}$8=$8+1|0;if(($11|0)!=($8|0)){continue}break}$9=0;while(1){$8=$10+($9<<5)|0;$12=HEAP32[$8+24>>2];if($12){$14=HEAP32[$8+20>>2];$8=0;while(1){$13=$14+($8<<3)|0;if(($1|0)==HEAP32[$13>>2]&($2|0)==HEAP32[$13+4>>2]){break label$5}$8=$8+1|0;if(($12|0)!=($8|0)){continue}break}}$9=$9+1|0;if(($11|0)!=($9|0)){continue}break}}$8=0;$9=HEAP32[$0+44>>2];if(!$9){break label$2}$0=HEAP32[$0+40>>2];while(1){$10=$0+($8<<5)|0;if(($1|0)==HEAP32[$10+8>>2]&HEAP32[$10+12>>2]==($2|0)){break label$4}$8=$8+1|0;if(($9|0)!=($8|0)){continue}break}$5=0;while(1){label$33:{$8=$0+($5<<5)|0;$10=HEAP32[$8+24>>2];if($10){$11=HEAP32[$8+20>>2];$8=0;while(1){$12=$11+($8<<3)|0;if(($1|0)==HEAP32[$12>>2]&HEAP32[$12+4>>2]==($2|0)){break label$33}$8=$8+1|0;if(($10|0)!=($8|0)){continue}break}}$8=0;$5=$5+1|0;if(($9|0)!=($5|0)){continue}break label$2}break}HEAP32[$3>>2]=HEAP32[$0+($5<<5)>>2];break label$3}$0=$9+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=6;break label$1}$0=$9+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=0;break label$1}$0=$9+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=1;break label$1}$0=$9+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=2;break label$1}$0=$10+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=3;break label$1}HEAP32[$3>>2]=HEAP32[$10+($9<<5)>>2];break label$3}$0=$10+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=4;break label$1}HEAP32[$3>>2]=HEAP32[$10+($9<<5)>>2];break label$3}$0=$0+($8<<5)|0;HEAP32[$3>>2]=HEAP32[$0>>2];HEAP32[$5>>2]=HEAP32[$0+20>>2];HEAP32[$4>>2]=5;break label$1}HEAP32[$7>>2]=$8;HEAP32[$4>>2]=0;$8=1;HEAP8[$6|0]=1}return $8}return 1}function std____2__enable_if__28is_move_constructible_dmParticle__Particle___value_29_20___20_28is_move_assignable_dmParticle__Particle___value_29_2c_20void___type_20std____2__swap_dmParticle__Particle__28dmParticle__Particle__2c_20dmParticle__Particle__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=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;$6=HEAP32[$0+40>>2];$7=HEAP32[$0+44>>2];$8=HEAP32[$0+24>>2];$9=HEAP32[$0+28>>2];$10=HEAP32[$0+56>>2];$11=HEAP32[$0>>2];$12=HEAP32[$0+4>>2];$13=HEAP32[$0+16>>2];$14=HEAP32[$0+20>>2];$15=HEAP32[$0+32>>2];$16=HEAP32[$0+36>>2];$17=HEAP32[$0+48>>2];$18=HEAP32[$0+52>>2];$19=HEAP32[$0+8>>2];$5=HEAP32[$0+76>>2];$2=global$0+ -64|0;$4=$2+44|0;HEAP32[$4>>2]=HEAP32[$0+72>>2];HEAP32[$4+4>>2]=$5;$4=HEAP32[$0+84>>2];HEAP32[$2+52>>2]=HEAP32[$0+80>>2];HEAP32[$2+56>>2]=$4;HEAP32[$2+60>>2]=HEAP32[$0+88>>2];$4=HEAP32[$0+68>>2];HEAP32[$2+36>>2]=HEAP32[$0+64>>2];HEAP32[$2+40>>2]=$4;$4=HEAP32[$0+104>>2];$5=HEAP32[$0+108>>2];$20=HEAP32[$0+120>>2];$21=HEAP32[$0+124>>2];$22=HEAP32[$0+136>>2];$23=HEAP32[$0+96>>2];$24=HEAP32[$0+100>>2];$25=HEAP32[$0+112>>2];$26=HEAP32[$0+116>>2];$27=HEAP32[$0+128>>2];$28=HEAP32[$0+132>>2];$3=HEAP32[$0+156>>2];HEAP32[$2+24>>2]=HEAP32[$0+152>>2];HEAP32[$2+28>>2]=$3;$3=HEAP32[$0+148>>2];HEAP32[$2+16>>2]=HEAP32[$0+144>>2];HEAP32[$2+20>>2]=$3;HEAP32[$0>>2]=HEAP32[$1>>2];HEAP32[$0+4>>2]=HEAP32[$1+4>>2];HEAP32[$0+8>>2]=HEAP32[$1+8>>2];HEAP32[$0+16>>2]=HEAP32[$1+16>>2];HEAP32[$0+20>>2]=HEAP32[$1+20>>2];HEAP32[$0+24>>2]=HEAP32[$1+24>>2];HEAP32[$0+28>>2]=HEAP32[$1+28>>2];HEAP32[$0+32>>2]=HEAP32[$1+32>>2];HEAP32[$0+36>>2]=HEAP32[$1+36>>2];HEAP32[$0+40>>2]=HEAP32[$1+40>>2];HEAP32[$0+44>>2]=HEAP32[$1+44>>2];HEAP32[$0+48>>2]=HEAP32[$1+48>>2];HEAP32[$0+52>>2]=HEAP32[$1+52>>2];HEAP32[$0+56>>2]=HEAP32[$1+56>>2];$3=HEAP32[$1+68>>2];HEAP32[$0+64>>2]=HEAP32[$1+64>>2];HEAP32[$0+68>>2]=$3;$3=HEAP32[$1+76>>2];HEAP32[$0+72>>2]=HEAP32[$1+72>>2];HEAP32[$0+76>>2]=$3;$3=HEAP32[$1+84>>2];HEAP32[$0+80>>2]=HEAP32[$1+80>>2];HEAP32[$0+84>>2]=$3;HEAP32[$0+88>>2]=HEAP32[$1+88>>2];HEAP32[$0+96>>2]=HEAP32[$1+96>>2];HEAP32[$0+100>>2]=HEAP32[$1+100>>2];HEAP32[$0+104>>2]=HEAP32[$1+104>>2];HEAP32[$0+108>>2]=HEAP32[$1+108>>2];HEAP32[$0+112>>2]=HEAP32[$1+112>>2];HEAP32[$0+116>>2]=HEAP32[$1+116>>2];HEAP32[$0+120>>2]=HEAP32[$1+120>>2];HEAP32[$0+124>>2]=HEAP32[$1+124>>2];HEAP32[$0+128>>2]=HEAP32[$1+128>>2];HEAP32[$0+132>>2]=HEAP32[$1+132>>2];HEAP32[$0+136>>2]=HEAP32[$1+136>>2];$3=HEAP32[$1+156>>2];HEAP32[$0+152>>2]=HEAP32[$1+152>>2];HEAP32[$0+156>>2]=$3;$3=HEAP32[$1+148>>2];HEAP32[$0+144>>2]=HEAP32[$1+144>>2];HEAP32[$0+148>>2]=$3;HEAP32[$1+56>>2]=$10;HEAP32[$1+8>>2]=$19;HEAP32[$1+24>>2]=$8;HEAP32[$1+28>>2]=$9;HEAP32[$1+48>>2]=$17;HEAP32[$1+52>>2]=$18;HEAP32[$1+32>>2]=$15;HEAP32[$1+36>>2]=$16;HEAP32[$1+16>>2]=$13;HEAP32[$1+20>>2]=$14;HEAP32[$1>>2]=$11;HEAP32[$1+4>>2]=$12;HEAP32[$1+40>>2]=$6;HEAP32[$1+44>>2]=$7;HEAP32[$1+88>>2]=HEAP32[$2+60>>2];$0=HEAP32[$2+56>>2];HEAP32[$1+80>>2]=HEAP32[$2+52>>2];HEAP32[$1+84>>2]=$0;$0=HEAP32[$2+48>>2];HEAP32[$1+72>>2]=HEAP32[$2+44>>2];HEAP32[$1+76>>2]=$0;$0=HEAP32[$2+40>>2];HEAP32[$1+64>>2]=HEAP32[$2+36>>2];HEAP32[$1+68>>2]=$0;HEAP32[$1+136>>2]=$22;HEAP32[$1+128>>2]=$27;HEAP32[$1+132>>2]=$28;HEAP32[$1+120>>2]=$20;HEAP32[$1+124>>2]=$21;HEAP32[$1+112>>2]=$25;HEAP32[$1+116>>2]=$26;HEAP32[$1+104>>2]=$4;HEAP32[$1+108>>2]=$5;HEAP32[$1+96>>2]=$23;HEAP32[$1+100>>2]=$24;$0=HEAP32[$2+28>>2];HEAP32[$1+152>>2]=HEAP32[$2+24>>2];HEAP32[$1+156>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+144>>2]=HEAP32[$2+16>>2];HEAP32[$1+148>>2]=$0}function dmGameObject__CompScriptOnMessage_28dmGameObject__ComponentOnMessageParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$3=global$0-48|0;global$0=$3;label$1:{if(HEAP8[582076]&1){break label$1}if(!__cxa_guard_acquire(582076)){break label$1}if(HEAPU8[1130703]){$1=dmProfile__AllocateScope_28char_20const__29(16397)}else{$1=-1}HEAP32[145518]=$1;__cxa_guard_release(582076)}label$3:{if(HEAP8[582084]&1){break label$3}if(!__cxa_guard_acquire(582084)){break label$3}if(HEAPU8[1130703]){$1=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(16404,9)}else{$1=0}HEAP32[145520]=$1;__cxa_guard_release(582084)}$1=HEAP32[145518];label$5:{if(($1|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+32|0,$1,16404,HEAP32[145520]);break label$5}HEAP32[$3+32>>2]=0}$5=HEAP32[HEAP32[$0+12>>2]>>2];$1=0;label$7:{$2=HEAP32[HEAP32[$0+16>>2]+40>>2];label$9:{if($2){$6=1;$2=$2+ -2|0;break label$9}$2=HEAP32[HEAP32[$5>>2]+16>>2]}label$8:{if(($2|0)==-2){break label$8}$4=HEAP32[$0+8>>2];$1=0;label$11:{if(!$4){break label$11}$1=HEAP32[$4+120>>2]}$8=HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4;lua_rawgeti($1,-1e4,HEAP32[$5+12>>2]);dmScript__SetInstance_28lua_State__29($1);label$12:{label$13:{if($6){dmScript__ResolveInInstance_28lua_State__2c_20int_29($1,$2);if((lua_type($1,-1)|0)!=6){break label$12}dmScript__UnrefInInstance_28lua_State__2c_20int_29($1,$2);break label$13}lua_rawgeti($1,-1e4,$2)}if((lua_type($1,-1)|0)!=6){break label$7}lua_rawgeti($1,-1e4,HEAP32[$5+12>>2]);$2=HEAP32[$0+16>>2];dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($1,HEAP32[$2+64>>2],HEAP32[$2+68>>2]);$2=HEAP32[$0+16>>2];$4=HEAP32[$2+76>>2];label$15:{if($4){$7=HEAP32[$4+4>>2];dmScript__PushDDF_28lua_State__2c_20dmDDF__Descriptor_20const__2c_20char_20const__2c_20bool_29($1,$4,$2+96|0);break label$15}if(HEAPU8[1130703]){$7=dmHashReverse64(HEAP32[$2+64>>2],HEAP32[$2+68>>2]);$2=HEAP32[$0+16>>2]}$4=HEAP32[$2+80>>2];if($4){dmScript__PushTable_28lua_State__2c_20char_20const__2c_20unsigned_20int_29($1,$2+96|0,$4);break label$15}lua_createtable($1,0,0)}dmScript__PushURL_28lua_State__2c_20dmMessage__URL_20const__29($1,HEAP32[$0+16>>2]);HEAP32[$3+28>>2]=0;$2=dmScript__GetProfilerString_28lua_State__2c_20int_2c_20char_20const__2c_20char_20const__2c_20char_20const__2c_20unsigned_20int__29($1,$6?-5:0,HEAP32[HEAP32[HEAP32[$5>>2]+40>>2]+8>>2],HEAP32[130759],$7,$3+28|0);label$20:{if(HEAP8[582092]&1){break label$20}if(!__cxa_guard_acquire(582092)){break label$20}if(HEAPU8[1130703]){$0=dmProfile__AllocateScope_28char_20const__29(16397)}else{$0=-1}HEAP32[145522]=$0;__cxa_guard_release(582092)}$0=HEAP32[145522];label$22:{if(($0|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($3+8|0,$0,$2,HEAP32[$3+28>>2]);break label$22}HEAP32[$3+8>>2]=0}$0=dmScript__PCall_28lua_State__2c_20int_2c_20int_29($1,4,0);if(HEAP32[$3+8>>2]){dmProfile__ProfileScope__EndScope_28_29($3+8|0)}$2=HEAP32[$1+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$1+8>>2]=$2+16;dmScript__SetInstance_28lua_State__29($1);if(HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4==($8|0)){$1=$0?-1e3:0;break label$8}__assert_fail(16414,16435,330,16596);abort()}lua_settop($1,-2);$0=HEAP32[$1+8>>2];HEAP32[$0+8>>2]=0;HEAP32[$1+8>>2]=$0+16;dmScript__SetInstance_28lua_State__29($1);$1=0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,16283,16502,0)}if(HEAP32[$3+32>>2]){dmProfile__ProfileScope__EndScope_28_29($3+32|0)}global$0=$3+48|0;return $1|0}__assert_fail(16574,16435,287,16596);abort()}function dmGui__NewNode_28dmGui__Scene__2c_20Vectormath__Aos__Point3_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20dmGui__NodeType_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$8=global$0-16|0;global$0=$8;$4=HEAPU16[$0+24>>1];$5=$4;label$1:{label$2:{label$3:{label$4:{$6=HEAPU16[$0+26>>1];label$5:{if(($6|0)==($4|0)){break label$5}$5=HEAP32[$0+20>>2];if(!$5){break label$4}if($6>>>0>=$4>>>0){break label$3}HEAP16[$0+26>>1]=$6+1;$7=HEAP32[$0+32>>2];$5=HEAPU16[$5+($6<<1)>>1];if((HEAP32[$0+36>>2]-$7|0)/576>>>0>$5>>>0){break label$5}if((HEAP32[$0+40>>2]-$7|0)/576>>>0<=$5>>>0){break label$2}HEAP32[$0+36>>2]=($7+Math_imul($5,576)|0)+576}label$6:{if(($4|0)==($5|0)){HEAP32[$8>>2]=$4;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,199311,200121,$8);$0=0;break label$6}$4=HEAP32[$0+32>>2];if((HEAP32[$0+36>>2]-$4|0)/576>>>0<=$5>>>0){break label$1}$6=HEAPU16[$0+368>>1];$4=memset($4+Math_imul($5,576)|0,0,576);$7=HEAP32[$1+8>>2];HEAP32[$4+24>>2]=0;HEAP32[$4+28>>2]=0;$9=HEAP32[$1+4>>2];HEAP32[$4>>2]=HEAP32[$1>>2];HEAP32[$4+4>>2]=$9;HEAP32[$4+16>>2]=0;HEAP32[$4+20>>2]=0;HEAP32[$4+12>>2]=1065353216;HEAP32[$4+8>>2]=$7;HEAP32[$4+104>>2]=0;HEAP32[$4+108>>2]=1065353216;HEAP32[$4+96>>2]=0;HEAP32[$4+100>>2]=0;HEAP32[$4+88>>2]=0;HEAP32[$4+92>>2]=1065353216;HEAP32[$4+80>>2]=0;HEAP32[$4+84>>2]=0;HEAP32[$4+56>>2]=1065353216;HEAP32[$4+60>>2]=1065353216;HEAP32[$4+48>>2]=1065353216;HEAP32[$4+52>>2]=1065353216;HEAP32[$4+40>>2]=1065353216;HEAP32[$4+44>>2]=0;HEAP32[$4+32>>2]=1065353216;HEAP32[$4+36>>2]=1065353216;$1=HEAP32[$2+8>>2];$7=HEAP32[$2>>2];$2=HEAP32[$2+4>>2];HEAP32[$4+112>>2]=0;HEAP32[$4+116>>2]=0;HEAP32[$4+76>>2]=0;HEAP32[$4+128>>2]=0;HEAP32[$4+324>>2]=0;HEAP32[$4+328>>2]=0;HEAP32[$4+320>>2]=1065353216;HEAP32[$4+156>>2]=0;HEAP32[$4+148>>2]=0;HEAP32[$4+152>>2]=0;HEAP32[$4+140>>2]=0;HEAP32[$4+144>>2]=1065353216;HEAP32[$4+132>>2]=1135869952;HEAP32[$4+136>>2]=0;HEAP32[$4+332>>2]=0;HEAP32[$4+336>>2]=0;HEAP32[$4+340>>2]=1065353216;HEAP32[$4+344>>2]=0;HEAP32[$4+348>>2]=0;HEAP32[$4+352>>2]=0;HEAP32[$4+356>>2]=0;HEAP32[$4+360>>2]=1065353216;HEAP32[$4+120>>2]=0;HEAP32[$4+124>>2]=0;HEAP32[$4+64>>2]=$7;HEAP32[$4+68>>2]=$2;HEAP32[$4+72>>2]=$1;HEAP32[$4+372>>2]=0;HEAP32[$4+376>>2]=0;HEAP32[$4+364>>2]=0;HEAP32[$4+368>>2]=0;HEAP32[$4+396>>2]=1065353216;HEAP32[$4+380>>2]=1065353216;HEAP32[$4+384>>2]=1065353216;HEAP32[$4+388>>2]=1065353216;HEAP32[$4+392>>2]=1065353216;HEAP32[$4+404>>2]=32;HEAP32[$4+408>>2]=1;HEAP32[$4+480>>2]=0;HEAP32[$4+484>>2]=0;HEAP32[$4+488>>2]=0;HEAP8[$4+416|0]=0;HEAP32[$4+424>>2]=0;HEAP32[$4+428>>2]=0;HEAP32[$4+432>>2]=0;HEAP32[$4+436>>2]=0;HEAP32[$4+440>>2]=0;HEAP32[$4+444>>2]=0;HEAP32[$4+448>>2]=0;HEAP32[$4+452>>2]=0;HEAP32[$4+456>>2]=0;HEAP32[$4+460>>2]=0;HEAP32[$4+464>>2]=0;HEAP32[$4+468>>2]=0;HEAP32[$4+472>>2]=0;HEAP32[$4+512>>2]=0;HEAP32[$4+516>>2]=0;HEAP32[$4+520>>2]=0;HEAP32[$4+524>>2]=0;HEAP32[$4+412>>2]=$3<<4&240|HEAP32[$4+412>>2]&-536870912|36700160;$1=HEAP32[283394];$2=HEAP32[283395];HEAP32[$4+568>>2]=-1;HEAP16[$4+554>>1]=$5;$3=$6+!$6|0;HEAP16[$4+552>>1]=$3;HEAP32[$4+508>>2]=0;HEAP16[$4+504>>1]=0;HEAP32[$4+496>>2]=$1;HEAP32[$4+500>>2]=$2;HEAP32[$4+556>>2]=-1;HEAP32[$4+560>>2]=-1;HEAP16[$4+564>>1]=-1;$1=$3&65535;HEAP16[$0+368>>1]=($1+1>>>0)%65535;$2=$0;$0=$1<<16|$5;dmGui__MoveNodeAbove_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20int_29($2,$0,0)}global$0=$8+16|0;return $0}__assert_fail(201667,201674,148,201740);abort()}__assert_fail(201744,201674,149,201740);abort()}__assert_fail(202434,201431,457,202453);abort()}__assert_fail(201597,201431,430,201608);abort()}function btDefaultCollisionConfiguration__btDefaultCollisionConfiguration_28btDefaultCollisionConstructionInfo_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0;HEAP32[$0>>2]=543224;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(360);HEAP32[$2+308>>2]=953267991;HEAP8[$2+332|0]=HEAPU8[$2+332|0]&240;HEAP32[$0+32>>2]=$2;$4=HEAP32[$1+28>>2];$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(4);HEAP32[$2>>2]=$4?544676:544716;HEAP32[$0+36>>2]=$2;$3=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(24);$4=HEAP32[$0+32>>2];$2=HEAP32[$0+36>>2];HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=3;HEAP8[$3+4|0]=0;HEAP32[$3+12>>2]=$4;HEAP32[$3+8>>2]=$2;HEAP32[$3>>2]=542816;HEAP32[$0+40>>2]=$3;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543260;HEAP8[$2+4|0]=0;HEAP32[$0+44>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543280;HEAP8[$2+4|0]=0;HEAP32[$0+48>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543300;HEAP8[$2+4|0]=0;HEAP32[$0+52>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543320;HEAP8[$2+4|0]=0;HEAP32[$0+56>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543340;HEAP8[$2+4|0]=0;HEAP32[$0+60>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543360;HEAP8[$2+4|0]=0;HEAP32[$0+64>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543380;HEAP8[$2+4|0]=0;HEAP32[$0+72>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543380;HEAP32[$0+76>>2]=$2;HEAP8[$2+4|0]=1;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(8);HEAP32[$2>>2]=543400;HEAP8[$2+4|0]=0;HEAP32[$0+68>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(16);HEAP32[$2+8>>2]=1;HEAP32[$2+12>>2]=1;HEAP32[$2>>2]=543420;HEAP8[$2+4|0]=0;HEAP32[$0+84>>2]=$2;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(16);HEAP32[$2+8>>2]=1;HEAP32[$2+12>>2]=1;HEAP32[$2>>2]=543420;HEAP32[$0+80>>2]=$2;HEAP8[$2+4|0]=1;$7=HEAP32[$1+20>>2];$2=HEAP32[$1>>2];label$1:{if($2){HEAP32[$0+8>>2]=$2;HEAP8[$0+12|0]=0;break label$1}HEAP8[$0+12|0]=1;$3=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(20);$4=HEAP32[$1+24>>2];HEAP8[$3+16|0]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;HEAP32[$3>>2]=0;HEAP32[$3+4>>2]=0;$2=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($4);HEAP32[$3+4>>2]=$4;HEAP32[$3>>2]=$2;HEAP32[$0+8>>2]=$3}$2=HEAP32[$1+4>>2];label$3:{if($2){HEAP32[$0+16>>2]=$2;HEAP8[$0+20|0]=0;break label$3}HEAP8[$0+20|0]=1;$6=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(20);$2=HEAP32[$1+12>>2];HEAP32[$6+4>>2]=$2;HEAP32[$6>>2]=1140;$4=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(Math_imul($2,1140));HEAP32[$6+12>>2]=$4;HEAP32[$6+16>>2]=$4;$2=HEAP32[$6+4>>2];HEAP32[$6+8>>2]=$2;$5=$2+ -1|0;label$5:{if(!$5){$2=$4;break label$5}$3=HEAP32[$6>>2];while(1){$2=$3+$4|0;HEAP32[$4>>2]=$2;$4=$2;$5=$5+ -1|0;if($5){continue}break}}HEAP32[$2>>2]=0;HEAP32[$0+16>>2]=$6}$2=HEAP32[$1+8>>2];if($2){HEAP32[$0+24>>2]=$2;HEAP8[$0+28|0]=0;return}HEAP8[$0+28|0]=1;$3=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(20);$2=HEAP32[$1+16>>2];HEAP32[$3+4>>2]=$2;$1=($7|0)>80?$7:80;HEAP32[$3>>2]=$1;$4=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(Math_imul($1,$2));HEAP32[$3+12>>2]=$4;HEAP32[$3+16>>2]=$4;$1=HEAP32[$3+4>>2];HEAP32[$3+8>>2]=$1;$5=$1+ -1|0;label$9:{if(!$5){$2=$4;break label$9}$1=HEAP32[$3>>2];while(1){$2=$1+$4|0;HEAP32[$4>>2]=$2;$4=$2;$5=$5+ -1|0;if($5){continue}break}}HEAP32[$2>>2]=0;HEAP32[$0+24>>2]=$3}function void_20b2DynamicTree__RayCast_b2WorldRayCastWrapper__28b2WorldRayCastWrapper__2c_20b2RayCastInput_20const__29_20const($0,$1,$2){var $3=0,$4=Math_fround(0),$5=0,$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=0,$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0);$3=global$0-1072|0;global$0=$3;$7=HEAPF32[$2>>2];$12=Math_fround(HEAPF32[$2+8>>2]-$7);$8=HEAPF32[$2+4>>2];$13=Math_fround(HEAPF32[$2+12>>2]-$8);$4=Math_fround(Math_fround($12*$12)+Math_fround($13*$13));if($4>Math_fround(0)){$15=$12;$16=$13;$4=Math_fround(Math_sqrt($4));if(!($4>2];HEAP32[$3+1064>>2]=256;$17=$3+32|4;HEAP32[$3+32>>2]=$17;$6=HEAP32[$0>>2];HEAP32[$3+1060>>2]=1;HEAP32[$3+36>>2]=$6;$14=Math_fround($7+Math_fround($12*$9));$22=$7<$14?$7:$14;$4=Math_fround($8+Math_fround($13*$9));$23=$8<$4?$8:$4;$24=$7>$14?$7:$14;$25=$8>$4?$8:$4;$26=$15>Math_fround(0)?$15:Math_fround(-$15);$14=$16>2]=$5;$18=HEAP32[($5<<2)+$6>>2];label$5:{if(($18|0)==-1){break label$5}$11=HEAP32[$0+4>>2]+Math_imul($18,36)|0;$19=HEAPF32[$11+8>>2];if(Math_fround($22-$19)>Math_fround(0)){break label$5}$20=HEAPF32[$11+12>>2];if(Math_fround($23-$20)>Math_fround(0)){break label$5}$21=HEAPF32[$11>>2];if(Math_fround($21-$24)>Math_fround(0)){break label$5}$10=HEAPF32[$11+4>>2];if(Math_fround($10-$25)>Math_fround(0)){break label$5}$4=Math_fround(Math_fround($15*Math_fround($8-Math_fround(Math_fround($20+$10)*Math_fround(.5))))-Math_fround($16*Math_fround($7-Math_fround(Math_fround($19+$21)*Math_fround(.5)))));if(Math_fround(($4>Math_fround(0)?$4:Math_fround(-$4))-Math_fround(Math_fround($14*Math_fround(Math_fround($19-$21)*Math_fround(.5)))+Math_fround($26*Math_fround(Math_fround($20-$10)*Math_fround(.5)))))>Math_fround(0)){break label$5}if(HEAP32[$11+24>>2]==-1){$6=HEAP32[$2+4>>2];HEAP32[$3+8>>2]=HEAP32[$2>>2];HEAP32[$3+12>>2]=$6;$5=HEAP32[$2+12>>2];$6=HEAP32[$2+8>>2];HEAPF32[$3+24>>2]=$9;HEAP32[$3+16>>2]=$6;HEAP32[$3+20>>2]=$5;$4=b2WorldRayCastWrapper__RayCastCallback_28b2RayCastInput_20const__2c_20int_29($1,$3+8|0,$18);if($4==Math_fround(0)){break label$4}if(!!($4>Math_fround(0))){$10=Math_fround($8+Math_fround($13*$4));$25=$8>$10?$8:$10;$9=Math_fround($7+Math_fround($12*$4));$24=$7>$9?$7:$9;$23=$8<$10?$8:$10;$22=$7<$9?$7:$9;$9=$4}$5=HEAP32[$3+1060>>2];break label$5}label$8:{if(HEAP32[$3+1064>>2]!=($5|0)){break label$8}HEAP32[$3+1064>>2]=$5<<1;$5=dlmalloc($5<<3);HEAP32[$3+32>>2]=$5;memcpy($5,$6,HEAP32[$3+1060>>2]<<2);if(($6|0)==($17|0)){break label$8}dlfree($6)}$5=HEAP32[$3+32>>2];HEAP32[$5+(HEAP32[$3+1060>>2]<<2)>>2]=HEAP32[$11+24>>2];$6=HEAP32[$3+1060>>2]+1|0;HEAP32[$3+1060>>2]=$6;label$9:{if(($6|0)!=HEAP32[$3+1064>>2]){break label$9}HEAP32[$3+1064>>2]=$6<<1;$6=dlmalloc($6<<3);HEAP32[$3+32>>2]=$6;memcpy($6,$5,HEAP32[$3+1060>>2]<<2);if(($5|0)==($17|0)){break label$9}dlfree($5)}HEAP32[HEAP32[$3+32>>2]+(HEAP32[$3+1060>>2]<<2)>>2]=HEAP32[$11+28>>2];$5=HEAP32[$3+1060>>2]+1|0;HEAP32[$3+1060>>2]=$5}if(($5|0)<1){break label$4}$6=HEAP32[$3+32>>2];continue}break}$0=HEAP32[$3+32>>2];if(($0|0)!=($17|0)){dlfree($0);HEAP32[$3+32>>2]=0}global$0=$3+1072|0;return}__assert_fail(97947,97879,232,97972);abort()}function TransformOne($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$5=global$0+ -64|0;$2=HEAP16[$0+16>>1];$6=HEAP16[$0>>1];$7=$2+$6|0;$3=HEAP16[$0+8>>1];$4=HEAP16[$0+24>>1];$8=((Math_imul($3,20091)>>16)+$3|0)+(Math_imul($4,35468)>>16)|0;HEAP32[$5+12>>2]=$7-$8;$2=$6-$2|0;$3=((Math_imul($3,35468)>>16)-$4|0)-(Math_imul($4,20091)>>16)|0;HEAP32[$5+8>>2]=$2-$3;HEAP32[$5+4>>2]=$2+$3;HEAP32[$5>>2]=$7+$8;$2=HEAP16[$0+18>>1];$6=HEAP16[$0+2>>1];$7=$2+$6|0;$3=HEAP16[$0+10>>1];$4=HEAP16[$0+26>>1];$8=((Math_imul($3,20091)>>16)+$3|0)+(Math_imul($4,35468)>>16)|0;HEAP32[$5+28>>2]=$7-$8;$2=$6-$2|0;$3=((Math_imul($3,35468)>>16)-$4|0)-(Math_imul($4,20091)>>16)|0;HEAP32[$5+24>>2]=$2-$3;HEAP32[$5+20>>2]=$2+$3;$3=$7+$8|0;HEAP32[$5+16>>2]=$3;$6=HEAP16[$0+20>>1];$7=HEAP16[$0+4>>1];$8=$6+$7|0;$4=HEAP16[$0+12>>1];$2=HEAP16[$0+28>>1];$9=((Math_imul($4,20091)>>16)+$4|0)+(Math_imul($2,35468)>>16)|0;HEAP32[$5+44>>2]=$8-$9;$6=$7-$6|0;$4=((Math_imul($4,35468)>>16)-$2|0)-(Math_imul($2,20091)>>16)|0;HEAP32[$5+40>>2]=$6-$4;HEAP32[$5+36>>2]=$4+$6;$2=$8+$9|0;HEAP32[$5+32>>2]=$2;$6=HEAP16[$0+22>>1];$7=HEAP16[$0+6>>1];$8=$6+$7|0;$4=HEAP16[$0+14>>1];$0=HEAP16[$0+30>>1];$9=((Math_imul($4,20091)>>16)+$4|0)+(Math_imul($0,35468)>>16)|0;HEAP32[$5+60>>2]=$8-$9;$6=$7-$6|0;$4=((Math_imul($4,35468)>>16)-$0|0)-(Math_imul($0,20091)>>16)|0;HEAP32[$5+56>>2]=$6-$4;$0=$8+$9|0;HEAP32[$5+48>>2]=$0;$4=$4+$6|0;HEAP32[$5+52>>2]=$4;$6=($3+(Math_imul($3,20091)>>16)|0)+(Math_imul($0,35468)>>16)|0;$7=HEAP32[$5>>2]+4|0;$8=$7+$2|0;$9=HEAPU8[$1|0]+($6+$8>>3)|0;$9=($9|0)>0?$9:0;HEAP8[$1|0]=($9|0)<255?$9:255;$0=((Math_imul($3,35468)>>16)-$0|0)-(Math_imul($0,20091)>>16)|0;$3=$7-$2|0;$2=HEAPU8[$1+1|0]+($0+$3>>3)|0;$2=($2|0)>0?$2:0;HEAP8[$1+1|0]=($2|0)<255?$2:255;$0=HEAPU8[$1+2|0]+($3-$0>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+2|0]=($0|0)<255?$0:255;$0=HEAPU8[$1+3|0]+($8-$6>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+3|0]=($0|0)<255?$0:255;$0=HEAP32[$5+20>>2];$3=((Math_imul($0,20091)>>16)+$0|0)+(Math_imul($4,35468)>>16)|0;$2=HEAP32[$5+4>>2]+4|0;$6=HEAP32[$5+36>>2];$7=$2+$6|0;$8=HEAPU8[$1+32|0]+($3+$7>>3)|0;$8=($8|0)>0?$8:0;HEAP8[$1+32|0]=($8|0)<255?$8:255;$0=((Math_imul($0,35468)>>16)-$4|0)-(Math_imul($4,20091)>>16)|0;$4=$2-$6|0;$2=HEAPU8[$1+33|0]+($0+$4>>3)|0;$2=($2|0)>0?$2:0;HEAP8[$1+33|0]=($2|0)<255?$2:255;$0=HEAPU8[$1+34|0]+($4-$0>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+34|0]=($0|0)<255?$0:255;$0=HEAPU8[$1+35|0]+($7-$3>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+35|0]=($0|0)<255?$0:255;$0=HEAP32[$5+24>>2];$3=HEAP32[$5+56>>2];$4=((Math_imul($0,20091)>>16)+$0|0)+(Math_imul($3,35468)>>16)|0;$2=HEAP32[$5+8>>2]+4|0;$6=HEAP32[$5+40>>2];$7=$2+$6|0;$8=HEAPU8[$1+64|0]+($4+$7>>3)|0;$8=($8|0)>0?$8:0;HEAP8[$1+64|0]=($8|0)<255?$8:255;$0=((Math_imul($0,35468)>>16)-$3|0)-(Math_imul($3,20091)>>16)|0;$3=$2-$6|0;$2=HEAPU8[$1+65|0]+($0+$3>>3)|0;$2=($2|0)>0?$2:0;HEAP8[$1+65|0]=($2|0)<255?$2:255;$0=HEAPU8[$1+66|0]+($3-$0>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+66|0]=($0|0)<255?$0:255;$0=HEAPU8[$1+67|0]+($7-$4>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+67|0]=($0|0)<255?$0:255;$0=HEAP32[$5+28>>2];$3=HEAP32[$5+60>>2];$4=((Math_imul($0,20091)>>16)+$0|0)+(Math_imul($3,35468)>>16)|0;$2=HEAP32[$5+12>>2]+4|0;$5=HEAP32[$5+44>>2];$6=$2+$5|0;$7=HEAPU8[$1+96|0]+($4+$6>>3)|0;$7=($7|0)>0?$7:0;HEAP8[$1+96|0]=($7|0)<255?$7:255;$0=((Math_imul($0,35468)>>16)-$3|0)-(Math_imul($3,20091)>>16)|0;$5=$2-$5|0;$3=HEAPU8[$1+97|0]+($0+$5>>3)|0;$3=($3|0)>0?$3:0;HEAP8[$1+97|0]=($3|0)<255?$3:255;$0=HEAPU8[$1+98|0]+($5-$0>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+98|0]=($0|0)<255?$0:255;$0=HEAPU8[$1+99|0]+($6-$4>>3)|0;$0=($0|0)>0?$0:0;HEAP8[$1+99|0]=($0|0)<255?$0:255}function void_20std____2____stable_sort_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0;label$1:{if($3>>>0<=2){if($3-2){break label$1}$2=HEAP32[HEAP32[$2>>2]+236>>2];$1=$1+ -4|0;$3=HEAP32[$1>>2];$4=HEAP32[$0>>2];if(HEAPU32[($2+($3<<4)|0)+8>>2]<=HEAPU32[($2+($4<<4)|0)+8>>2]){break label$1}HEAP32[$0>>2]=$3;HEAP32[$1>>2]=$4;return}if(($3|0)<=128){if(($0|0)==($1|0)){break label$1}$3=$0+4|0;if(($3|0)==($1|0)){break label$1}$6=HEAP32[$2>>2];while(1){$5=HEAP32[$3>>2];$4=$0;label$5:{if(($4|0)==($3|0)){break label$5}$7=HEAP32[$6+236>>2];$8=$7+($5<<4)|0;$4=$3;while(1){$2=$4+ -4|0;$9=HEAP32[$2>>2];if(HEAPU32[$8+8>>2]<=HEAPU32[($7+($9<<4)|0)+8>>2]){break label$5}HEAP32[$4>>2]=$9;$4=$2;if(($4|0)!=($0|0)){continue}break}$4=$0}HEAP32[$4>>2]=$5;$3=$3+4|0;if(($3|0)!=($1|0)){continue}break}break label$1}$6=$3>>>1|0;$8=$6<<2;$7=$8+$0|0;label$7:{if(($3|0)<=($5|0)){void_20std____2____stable_sort_move_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($0,$7,$2,$6,$4);$5=$1;$1=$4+$8|0;void_20std____2____stable_sort_move_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($7,$5,$2,$3-$6|0,$1);$5=($3<<2)+$4|0;$2=HEAP32[$2>>2];$3=$1;while(1){if(($3|0)==($5|0)){if(($1|0)==($4|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$4>>2];$0=$0+4|0;$4=$4+4|0;if(($1|0)!=($4|0)){continue}break}break label$1}$7=HEAP32[$2+236>>2];$6=HEAP32[$3>>2];$8=HEAP32[$4>>2];label$12:{if(HEAPU32[($7+($6<<4)|0)+8>>2]>HEAPU32[($7+($8<<4)|0)+8>>2]){HEAP32[$0>>2]=$6;$3=$3+4|0;break label$12}HEAP32[$0>>2]=$8;$4=$4+4|0}$0=$0+4|0;if(($1|0)!=($4|0)){continue}break}break label$7}void_20std____2____stable_sort_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$2,$6,$4,$5);$3=$3-$6|0;void_20std____2____stable_sort_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($7,$1,$2,$3,$4,$5);void_20std____2____inplace_merge_dmProfileRender__SampleAggregateSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__SampleAggregateSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$1,$2,$6,$3,$4,$5);break label$1}if(($3|0)==($5|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$3>>2];$0=$0+4|0;$3=$3+4|0;if(($5|0)!=($3|0)){continue}break}}}function dmResource__Release_28dmResource__SResourceFactory__2c_20void__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$7=global$0-48|0;global$0=$7;label$1:{if(HEAP8[582776]&1){break label$1}if(!__cxa_guard_acquire(582776)){break label$1}if(HEAPU8[1130703]){$5=dmProfile__AllocateScope_28char_20const__29(28339)}else{$5=-1}HEAP32[145693]=$5;__cxa_guard_release(582776)}label$3:{if(HEAP8[582784]&1){break label$3}if(!__cxa_guard_acquire(582784)){break label$3}if(HEAPU8[1130703]){$5=dmProfile__GetNameHash_28char_20const__2c_20unsigned_20int_29(28790,7)}else{$5=0}HEAP32[145695]=$5;__cxa_guard_release(582784)}$2=HEAP32[145693];label$5:{if(($2|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($7+32|0,$2,28790,HEAP32[145695]);break label$5}HEAP32[$7+32>>2]=0}$4=HEAP32[$0+4>>2];$2=HEAP32[$4+4>>2];label$7:{label$8:{if(!$2){break label$8}$2=HEAP32[HEAP32[$4>>2]+(($1>>>0)%($2>>>0)<<2)>>2];if(($2|0)==-1){break label$8}$4=HEAP32[$4+8>>2];while(1){$6=$4+Math_imul($2,24)|0;if(HEAP32[$6>>2]==($1|0)){break label$7}$2=HEAP32[$6+16>>2];if(($2|0)!=-1){continue}break}}__assert_fail(28769,27176,1831,28790);abort()}$6=HEAP32[$0>>2];$3=HEAP32[$6+4>>2];label$10:{label$11:{if(!$3){break label$11}$4=$4+Math_imul($2,24)|0;$2=$4;$5=HEAP32[$2+8>>2];$8=HEAP32[$2+12>>2];$2=HEAP32[HEAP32[$6>>2]+(__wasm_i64_urem($5,$8,$3)<<2)>>2];if(($2|0)==-1){break label$11}$6=HEAP32[$6+8>>2];while(1){$3=$6+Math_imul($2,56)|0;if(($5|0)==HEAP32[$3>>2]&($8|0)==HEAP32[$3+4>>2]){break label$10}$2=HEAP32[$3+48>>2];if(($2|0)!=-1){continue}break}}__assert_fail(28720,27176,1834,28790);abort()}$3=$6+Math_imul($2,56)|0;$5=$3;$8=HEAP32[$3+36>>2];label$13:{if($8){$9=$5;$5=$8+ -1|0;HEAP32[$9+36>>2]=$5;label$15:{if($5){break label$15}$2=HEAP32[($6+Math_imul($2,56)|0)+32>>2];label$16:{if(HEAP8[582792]&1){break label$16}if(!__cxa_guard_acquire(582792)){break label$16}if(HEAPU8[1130703]){$5=dmProfile__AllocateScope_28char_20const__29(28798)}else{$5=-1}HEAP32[145697]=$5;__cxa_guard_release(582792)}$6=$3+8|0;$3=HEAP32[145697];label$18:{if(($3|0)!=-1){dmProfile__ProfileScope__StartScope_28unsigned_20int_2c_20char_20const__2c_20unsigned_20int_29($7+16|0,$3,HEAP32[$2+8>>2],HEAP32[$2>>2]);break label$18}HEAP32[$7+16>>2]=0}HEAP32[$7>>2]=$0;$3=HEAP32[$2+12>>2];HEAP32[$7+8>>2]=$6;HEAP32[$7+4>>2]=$3;FUNCTION_TABLE[HEAP32[$2+28>>2]]($7)|0;dmHashTable_unsigned_20long_2c_20unsigned_20long_20long___Erase_28unsigned_20long_29(HEAP32[$0+4>>2],$1);dmHashTable_unsigned_20long_20long_2c_20dmResource__SResourceDescriptor___Erase_28unsigned_20long_20long_29(HEAP32[$0>>2],HEAP32[$4+8>>2],HEAP32[$4+12>>2]);$0=HEAP32[$0+8>>2];if($0){$1=HEAP32[$4+8>>2];$4=HEAP32[$4+12>>2];label$21:{$2=HEAP32[$0+4>>2];label$22:{if(!$2){break label$22}$2=HEAP32[HEAP32[$0>>2]+(__wasm_i64_urem($1,$4,$2)<<2)>>2];if(($2|0)==-1){break label$22}$6=HEAP32[$0+8>>2];while(1){$3=$6+($2<<4)|0;if(($1|0)==HEAP32[$3>>2]&($4|0)==HEAP32[$3+4>>2]){break label$21}$2=HEAP32[$3+12>>2];if(($2|0)!=-1){continue}break}}dmHashTable_unsigned_20long_20long_2c_20char_20const____Erase_28unsigned_20long_20long_29($0,$1,$4);break label$13}dmHashTable_unsigned_20long_20long_2c_20char_20const____Erase_28unsigned_20long_20long_29($0,$1,$4);if(!$6){break label$13}dlfree(HEAP32[($6+($2<<4)|0)+8>>2])}if(!HEAP32[$7+16>>2]){break label$15}dmProfile__ProfileScope__EndScope_28_29($7+16|0)}if(HEAP32[$7+32>>2]){dmProfile__ProfileScope__EndScope_28_29($7+32|0)}global$0=$7+48|0;return}__assert_fail(28723,27176,1835,28790);abort()}__assert_fail(28814,27176,1856,28790);abort()}function dmGameSystem__CompSpriteOnMessage_28dmGameObject__ComponentOnMessageParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$4=global$0-80|0;global$0=$4;$1=HEAP32[$0+4>>2];$2=HEAP32[$1+16>>2];$5=HEAP32[HEAP32[$0+12>>2]>>2];if(HEAP32[$1+20>>2]-$2>>3>>>0>$5>>>0){$3=HEAP32[$1>>2];$2=HEAP32[$2+($5<<3)>>2];if(HEAP32[$1+4>>2]-$3>>10>>>0>$2>>>0){$1=HEAP32[$0+16>>2];$5=HEAP32[$1+64>>2];$7=HEAP32[131295];$8=HEAP32[$1+68>>2];label$3:{if(($5|0)==HEAP32[$7+8>>2]&($8|0)==HEAP32[$7+12>>2]){$0=$3+($2<<10)|0;HEAP16[$0+1010>>1]=HEAPU16[$0+1010>>1]|4;break label$3}$7=HEAP32[131296];if(($5|0)==HEAP32[$7+8>>2]&($8|0)==HEAP32[$7+12>>2]){$0=$3+($2<<10)|0;HEAP16[$0+1010>>1]=HEAPU16[$0+1010>>1]&65531;break label$3}if(!HEAP32[$1+76>>2]){break label$3}$7=$3+($2<<10)|0;$6=HEAP32[134348];if(($5|0)==HEAP32[$6+8>>2]&($8|0)==HEAP32[$6+12>>2]){if(!dmGameSystem__PlayAnimation_28dmGameSystem__SpriteComponent__2c_20unsigned_20long_20long_2c_20float_2c_20float_29($7,HEAP32[$1+96>>2],HEAP32[$1+100>>2],HEAPF32[$1+104>>2],HEAPF32[$1+108>>2])){break label$3}$1=$3+($2<<10)|0;$0=HEAP32[$0+16>>2];$2=HEAP32[$0+4>>2];HEAP32[$1+152>>2]=HEAP32[$0>>2];HEAP32[$1+156>>2]=$2;$3=HEAP32[$0+28>>2];HEAP32[$1+176>>2]=HEAP32[$0+24>>2];HEAP32[$1+180>>2]=$3;$3=HEAP32[$0+20>>2];HEAP32[$1+168>>2]=HEAP32[$0+16>>2];HEAP32[$1+172>>2]=$3;$3=HEAP32[$0+12>>2];HEAP32[$1+160>>2]=HEAP32[$0+8>>2];HEAP32[$1+164>>2]=$3;break label$3}$6=HEAP32[134386];if(($5|0)==HEAP32[$6+8>>2]&($8|0)==HEAP32[$6+12>>2]){$0=$3+($2<<10)|0;HEAP16[$0+1010>>1]=HEAPU16[$0+1010>>1]&65503|(HEAP32[$1+96>>2]!=0)<<5;break label$3}$6=HEAP32[134402];if(($5|0)==HEAP32[$6+8>>2]&($8|0)==HEAP32[$6+12>>2]){$0=$3+($2<<10)|0;HEAP16[$0+1010>>1]=HEAPU16[$0+1010>>1]&65471|(HEAP32[$1+96>>2]!=0)<<6;break label$3}$6=HEAP32[132738];if(($5|0)==HEAP32[$6+8>>2]&($8|0)==HEAP32[$6+12>>2]){$2=$3+($2<<10)|0;$3=HEAP32[$2+980>>2];if(!$3){$3=HEAP32[HEAP32[$2+188>>2]+16>>2]}$2=HEAP32[$1+100>>2];$5=HEAP32[$1+96>>2];HEAP32[$4+16>>2]=HEAP32[$1+112>>2];HEAP32[$4+20>>2]=HEAP32[$1+116>>2];HEAP32[$4+24>>2]=HEAP32[$1+120>>2];HEAP32[$4+28>>2]=HEAP32[$1+124>>2];if((dmGameSystem__SetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20void_20_28__29_28void__2c_20unsigned_20long_20long_2c_20unsigned_20int__2c_20dmGameObject__PropertyVar_20const__29_2c_20void__29($3,$5,$2,dmGameObject__PropertyVar__PropertyVar_28Vectormath__Aos__Vector4_29($4+40|0,$4+16|0),486,$7)|0)!=-1){break label$3}$0=HEAP32[$0+16>>2];$3=dmMessage__GetSocketName_28unsigned_20long_20long_29(HEAP32[$0+32>>2],HEAP32[$0+36>>2]);$2=dmHashReverseSafe64(HEAP32[$0+48>>2],HEAP32[$0+52>>2]);$0=dmHashReverseSafe64(HEAP32[$0+56>>2],HEAP32[$0+60>>2]);HEAP32[$4+12>>2]=dmHashReverseSafe64(HEAP32[$1+96>>2],HEAP32[$1+100>>2]);HEAP32[$4+8>>2]=$0;HEAP32[$4+4>>2]=$2;HEAP32[$4>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,51826,51900,$4);break label$3}$0=HEAP32[132754];if(($5|0)==HEAP32[$0+8>>2]&($8|0)==HEAP32[$0+12>>2]){$0=$3+($2<<10)|0;if(!dmGameSystem__ClearRenderConstant_28dmGameSystem__CompRenderConstants__2c_20unsigned_20long_20long_29($0+192|0,HEAP32[$1+96>>2],HEAP32[$1+100>>2])){break label$3}HEAP16[$0+1010>>1]=HEAPU16[$0+1010>>1]|256;break label$3}$0=HEAP32[132770];if(HEAP32[$0+8>>2]!=($5|0)|HEAP32[$0+12>>2]!=($8|0)){break label$3}$0=$3+($2<<10)|0;HEAP32[$0+48>>2]=HEAP32[$1+96>>2];HEAP32[$0+52>>2]=HEAP32[$1+100>>2];HEAP32[$0+56>>2]=HEAP32[$1+104>>2]}global$0=$4+80|0;return 0}}__assert_fail(52907,52459,430,52059);abort()}function gcm_gen_table($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=0,$18=0,$19=0;$17=global$0-32|0;global$0=$17;$1=$17;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+12>>2]=0;$1=mbedtls_cipher_update($0,$1+16|0,16,$1+16|0,$1+12|0);if(!$1){$2=$17;$8=HEAPU8[$2+31|0];$11=HEAPU8[$2+30|0];$16=HEAPU8[$2+27|0];$14=HEAPU8[$2+26|0];$19=HEAPU8[$2+25|0];$15=HEAPU8[$2+24|0];$10=HEAPU8[$2+29|0];$9=HEAPU8[$2+28|0];$6=HEAPU8[$2+23|0];$7=HEAPU8[$2+22|0];$13=HEAPU8[$2+19|0];$12=HEAPU8[$2+18|0];$5=HEAPU8[$2+17|0];$4=HEAPU8[$2+16|0];$1=HEAPU8[$2+21|0];$3=HEAPU8[$2+20|0];HEAP32[$0+192>>2]=0;HEAP32[$0+196>>2]=0;HEAP32[$0+64>>2]=0;HEAP32[$0+68>>2]=0;$2=$1;$1=$1>>>16|0;$2=$2<<16|$3<<24;$18=$3>>>8|$1;$5=$5<<16|$4<<24;$1=$12<<8|$5|$13;$1=$1|$18|$7>>>24;$4=$1;$18=$7<<8|$2|$6;HEAP32[$0+256>>2]=$18;HEAP32[$0+260>>2]=$1;$2=$10>>>16|0;$1=$9>>>8|0;$9=$10<<16|$9<<24;$7=$1|$2;$13=$19<<16|$15<<24;$1=$14<<8|$13|$16;$12=$11<<8|$9|$8;$1=$1|$7|$11>>>24;$3=$1;HEAP32[$0+128>>2]=$12;HEAP32[$0+132>>2]=$1;$10=($4&1)<<31|$18>>>1;$1=$4>>>1|0;$11=__wasm_i64_mul($8&1,0,0,-520093696)^$10;$1=i64toi32_i32$HIGH_BITS^$1;$13=$1;HEAP32[$0+224>>2]=$11;HEAP32[$0+228>>2]=$1;$4=($3&1)<<31|$12>>>1;$1=$6<<31|$3>>>1;$12=$1;$16=$4;HEAP32[$0+96>>2]=$4;HEAP32[$0+100>>2]=$1;$6=$13;$1=$6>>>1|0;$9=($6&1)<<31|$11>>>1;$14=__wasm_i64_mul($4&1,0,0,-520093696)^$9;$1=i64toi32_i32$HIGH_BITS^$1;$5=$1;HEAP32[$0+208>>2]=$14;HEAP32[$0+212>>2]=$1;$3=$12;$1=$3>>>1|0;$7=($3&1)<<31|$4>>>1;$1=$10<<31|$1;$4=$1;$19=$7;HEAP32[$0+80>>2]=$7;HEAP32[$0+84>>2]=$1;HEAP32[$0+240>>2]=$11^$14;HEAP32[$0+244>>2]=$5^$6;HEAP32[$0+112>>2]=$16^$7;HEAP32[$0+116>>2]=$1^$3;$3=__wasm_i64_mul($7&1,0,0,-520093696);$2=$5;$1=$2>>>1|0;$15=$3^(($2&1)<<31|$14>>>1);$1=$1^i64toi32_i32$HIGH_BITS;$10=$1;HEAP32[$0+200>>2]=$15;HEAP32[$0+204>>2]=$1;$6=$9<<31;$2=$4;$1=$2>>>1|0;$9=($2&1)<<31|$7>>>1;$1=$1|$6;$7=$1;HEAP32[$0+72>>2]=$9;HEAP32[$0+76>>2]=$1;$1=$5^$10;$8=$1;$3=$14^$15;HEAP32[$0+216>>2]=$3;HEAP32[$0+220>>2]=$1;$2=$2^$7;$1=$9^$19;HEAP32[$0+88>>2]=$1;HEAP32[$0+92>>2]=$2;HEAP32[$0+232>>2]=$11^$15;HEAP32[$0+236>>2]=$10^$13;HEAP32[$0+104>>2]=$9^$16;HEAP32[$0+108>>2]=$7^$12;HEAP32[$0+248>>2]=$3^$11;HEAP32[$0+252>>2]=$8^$13;HEAP32[$0+120>>2]=$1^$16;HEAP32[$0+124>>2]=$2^$12;$5=HEAP32[$0+260>>2];$8=HEAP32[$0+256>>2];HEAP32[$0+264>>2]=$8^$15;HEAP32[$0+268>>2]=$5^$10;$4=HEAP32[$0+132>>2];$3=HEAP32[$0+128>>2];HEAP32[$0+136>>2]=$3^$9;HEAP32[$0+140>>2]=$4^$7;$1=HEAP32[$0+212>>2]^$5;HEAP32[$0+272>>2]=HEAP32[$0+208>>2]^$8;HEAP32[$0+276>>2]=$1;$1=HEAP32[$0+84>>2]^$4;HEAP32[$0+144>>2]=HEAP32[$0+80>>2]^$3;HEAP32[$0+148>>2]=$1;$1=HEAP32[$0+220>>2]^$5;HEAP32[$0+280>>2]=HEAP32[$0+216>>2]^$8;HEAP32[$0+284>>2]=$1;$1=HEAP32[$0+92>>2]^$4;HEAP32[$0+152>>2]=HEAP32[$0+88>>2]^$3;HEAP32[$0+156>>2]=$1;$1=HEAP32[$0+228>>2]^$5;HEAP32[$0+288>>2]=HEAP32[$0+224>>2]^$8;HEAP32[$0+292>>2]=$1;$1=HEAP32[$0+100>>2]^$4;HEAP32[$0+160>>2]=HEAP32[$0+96>>2]^$3;HEAP32[$0+164>>2]=$1;$2=HEAP32[$0+104>>2];$6=HEAP32[$0+108>>2];$1=HEAP32[$0+236>>2]^$5;HEAP32[$0+296>>2]=HEAP32[$0+232>>2]^$8;HEAP32[$0+300>>2]=$1;HEAP32[$0+168>>2]=$2^$3;HEAP32[$0+172>>2]=$4^$6;$2=HEAP32[$0+112>>2];$6=HEAP32[$0+116>>2];$1=HEAP32[$0+244>>2]^$5;HEAP32[$0+304>>2]=HEAP32[$0+240>>2]^$8;HEAP32[$0+308>>2]=$1;HEAP32[$0+176>>2]=$2^$3;HEAP32[$0+180>>2]=$4^$6;$2=HEAP32[$0+120>>2];$6=HEAP32[$0+124>>2];$1=HEAP32[$0+252>>2]^$5;HEAP32[$0+312>>2]=HEAP32[$0+248>>2]^$8;HEAP32[$0+316>>2]=$1;HEAP32[$0+184>>2]=$2^$3;HEAP32[$0+188>>2]=$4^$6;$1=0}global$0=$17+32|0;return $1}function dmResourceArchive__ReloadBundledArchiveIndex_28char_20const__2c_20char_20const__2c_20char_20const__2c_20char_20const__2c_20dmResourceArchive__ArchiveIndexContainer___2c_20void___29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$6=global$0-1088|0;global$0=$6;$7=operator_20new_28unsigned_20long_29(16);HEAP32[$7>>2]=0;HEAP32[$7+4>>2]=0;HEAP32[$7+8>>2]=0;HEAP32[$7+12>>2]=0;HEAP32[$6+1084>>2]=0;HEAP32[$6+1080>>2]=0;HEAP32[$6+1076>>2]=0;label$1:{label$2:{$0=dmResource__MountArchiveInternal_28char_20const__2c_20char_20const__2c_20char_20const__2c_20dmResourceArchive__ArchiveIndexContainer___2c_20void___29($0,$1,$3,$6+1080|0,$6+1084|0);if($0){HEAP32[$6+32>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,29980,30013,$6+32|0);break label$2}dmResourceArchive__CacheLiveUpdateEntries_28dmResourceArchive__ArchiveIndexContainer_20const__2c_20dmResourceArchive__ArchiveIndexContainer_20const__2c_20dmResourceArchive__LiveUpdateEntries__29(HEAP32[$4>>2],HEAP32[$6+1080>>2],$7);dmResourceArchive__Delete_28dmResourceArchive__ArchiveIndexContainer___29($4);HEAP32[$5>>2]=HEAP32[$6+1084>>2];dmResourceArchive__NewArchiveIndexFromCopy_28dmResourceArchive__ArchiveIndex___2c_20dmResourceArchive__ArchiveIndexContainer__2c_20unsigned_20int_29($6+1076|0,HEAP32[$6+1080>>2],HEAP32[$7+12>>2]);$11=HEAP32[$7+4>>2];$8=HEAP32[$6+1076>>2];$0=HEAP32[$8+24>>2];$0=$0<<8&16711680|$0<<24|($0>>>8&65280|$0>>>24);label$4:{if(!HEAP32[$7+12>>2]){break label$4}$13=$0+$8|0;while(1){$14=HEAP32[$7+8>>2]+($10<<4)|0;$12=HEAP32[$7>>2]+Math_imul($10,$11)|0;$0=HEAP32[$8+16>>2];$3=$0<<8&16711680|$0<<24|($0>>>8&65280|$0>>>24);$1=($3|0)/2|0;$0=0;while(1){label$7:{if(($3|0)<($0|0)){$5=$1;break label$7}$5=$1;if(($0|0)==($1|0)){break label$7}$5=-1;$1=(($3-$0|0)/2|0)+$0|0;$9=HEAP32[$8+28>>2];$9=memcmp($12,($1<<6)+$13|0,$9<<8&16711680|$9<<24|($9>>>8&65280|$9>>>24));$3=($9|0)>-1?$3:$1;$0=($9|0)>0?$1+1|0:$0;if($9){continue}}break}$0=dmResourceArchive__ShiftAndInsert_28dmResourceArchive__ArchiveIndexContainer__2c_20dmResourceArchive__ArchiveIndex__2c_20unsigned_20char_20const__2c_20unsigned_20int_2c_20int_2c_20dmResourceArchive__LiveUpdateResource_20const__2c_20dmResourceArchive__EntryData_20const__29(HEAP32[$6+1080>>2],$8,$12,$11,$5,0,$14);if(!$0){$10=$10+1|0;if($10>>>0>=HEAPU32[$7+12>>2]){break label$4}continue}break}HEAP32[$6+16>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,29980,30078,$6+16|0);dlfree(HEAP32[$7+8>>2]);dlfree(HEAP32[$7>>2]);break label$2}$0=HEAP32[$6+1080>>2];label$10:{if(HEAPU8[$0+4|0]){break label$10}$1=HEAP32[$0>>2];if(!$1){break label$10}dlfree($1);$0=HEAP32[$6+1080>>2]}HEAP32[$0>>2]=$8;$0=HEAP32[$6+1080>>2];HEAP8[$0+4|0]=1;HEAP32[$4>>2]=$0;dmStrlCpy_28char__2c_20char_20const__2c_20unsigned_20long_29($6+48|0,$2,1024);dmStrlCat_28char__2c_20char_20const__2c_20unsigned_20long_29($6+48|0,30132,1024);$0=fopen($6+48|0,30137);label$11:{if(!$0){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,29980,30140,0);$0=-2;break label$11}$1=HEAP32[$8+16>>2];$1=$1<<8&16711680|$1<<24|($1>>>8&65280|$1>>>24);$1=($1<<6|48)+($1<<4)|0;$2=fwrite($8,1,$1,$0);if(($1|0)!=($2|0)){HEAP32[$6+4>>2]=$1;HEAP32[$6>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,29980,30179,$6);fclose($0);$0=-2;break label$11}fflush($0);fclose($0);$0=0}dlfree(HEAP32[$7+8>>2]);dlfree(HEAP32[$7>>2]);dlfree($7);break label$1}dlfree($7);$0=-2}global$0=$6+1088|0;return $0}function dmGameSystem__CompCollectionProxyUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=Math_fround(0),$7=0,$8=0,$9=0,$10=Math_fround(0),$11=0;$3=global$0+ -64|0;global$0=$3;$7=HEAP32[$0+8>>2];$1=HEAP32[$7>>2];if(($1|0)!=HEAP32[$7+4>>2]){$8=$3+56|0;while(1){$1=($9<<7)+$1|0;label$3:{if(!(HEAPU8[$1+58|0]&16)){break label$3}$2=HEAP32[$1+60>>2];label$4:{if(!$2){break label$4}$4=HEAP32[HEAP32[$0+12>>2]>>2];HEAP32[$3+36>>2]=$1;HEAP32[$3+32>>2]=$4;$2=dmResource__UpdatePreloader_28dmResource__ResourcePreloader__2c_20bool_20_28__29_28dmResource__PreloaderCompleteCallbackParams_20const__29_2c_20dmResource__PreloaderCompleteCallbackParams__2c_20unsigned_20int_29($2,442,$3+32|0,1e4);if(($2|0)==-17){break label$4}dmResource__DeletePreloader_28dmResource__ResourcePreloader__29(HEAP32[$1+60>>2]);label$5:{if($2){break label$5}if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29(HEAP32[$1+64>>2],HEAP32[$1+68>>2])){break label$5}$2=dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($1+96|0,$1- -64|0,dmHashString64(36220),i64toi32_i32$HIGH_BITS,0,0,0,0,0);if(!$2){break label$5}HEAP32[$3+16>>2]=$2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,36233,36241,$3+16|0)}HEAP32[$1+60>>2]=0}$5=HEAP32[$1+36>>2];label$6:{if(!$5){break label$6}$2=HEAP32[$1+56>>2];$4=$2>>>18&1;if(($4|0)!=($2>>>17&1)){$2=$2&-131073|$4<<17;HEAP32[$1+56>>2]=$2}if($2&131072){$2=HEAP32[$1+44>>2];label$9:{if($2>>>0>1){break label$9}$4=HEAP32[$0+4>>2];$10=HEAPF32[$4>>2];$6=Math_fround($10*HEAPF32[$1+48>>2]);if($2-1){HEAPF32[$3+32>>2]=$6;HEAP32[$1+52>>2]=0;break label$9}$6=Math_fround($6+HEAPF32[$1+52>>2]);HEAPF32[$1+52>>2]=$6;if(!!($6>=$10)){HEAPF32[$3+32>>2]=$10;HEAPF32[$1+52>>2]=$6-HEAPF32[$4>>2];break label$9}HEAP32[$3+32>>2]=0}$11=dmGameObject__Update_28dmGameObject__CollectionHandle__2c_20dmGameObject__UpdateContext_20const__29($5,$3+32|0)?$11:-1e3;break label$6}HEAP32[$1+52>>2]=0}$2=HEAP32[$1+56>>2];if(!($2&524288)){break label$3}HEAP32[$1+56>>2]=$2&-524289;if(!dmMessage__IsSocketValid_28unsigned_20long_20long_29(HEAP32[$1>>2],HEAP32[$1+4>>2])){break label$3}HEAP32[$8>>2]=0;HEAP32[$8+4>>2]=0;HEAP32[$3+48>>2]=0;HEAP32[$3+52>>2]=0;HEAP32[$3+40>>2]=0;HEAP32[$3+44>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+36>>2]=0;$2=0;$4=0;$5=HEAP32[HEAP32[HEAP32[$1+40>>2]+80>>2]+8>>2];label$12:{if(!$5){break label$12}$5=HEAP32[$5>>2];if(!$5){break label$12}$2=HEAP32[$5+4224>>2];$4=HEAP32[$5+4228>>2]}HEAP32[$3+32>>2]=$2;HEAP32[$3+36>>2]=$4;$2=HEAP32[$1+40>>2];$4=HEAP32[$2+100>>2];HEAP32[$3+48>>2]=HEAP32[$2+96>>2];HEAP32[$3+52>>2]=$4;dmGameObject__GetComponentId_28dmGameObject__Instance__2c_20unsigned_20short_2c_20unsigned_20long_20long__29(HEAP32[$1+40>>2],HEAPU16[$1+56>>1],$8);$1=dmMessage__Post_28dmMessage__URL_20const__2c_20dmMessage__URL_20const__2c_20unsigned_20long_20long_2c_20unsigned_20long_2c_20unsigned_20long_2c_20void_20const__2c_20unsigned_20int_2c_20void_20_28__29_28dmMessage__Message__29_29($3+32|0,$1,dmHashString64(36378),i64toi32_i32$HIGH_BITS,0,0,0,0,0);if(!$1){break label$3}HEAP32[$3>>2]=$1;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,36233,36393,$3)}$9=$9+1|0;$1=HEAP32[$7>>2];if($9>>>0>2]-$1>>7>>>0){continue}break}}global$0=$3- -64|0;return $11|0}function btConvexInternalShape__getAabbSlow_28btTransform_20const__2c_20btVector3__2c_20btVector3__29_20const($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=0,$5=Math_fround(0),$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=0,$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=0,$24=0;$4=global$0-80|0;global$0=$4;$22=Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+44>>2]]($0));while(1){HEAP32[$4+72>>2]=0;HEAP32[$4+76>>2]=0;HEAP32[$4+64>>2]=0;HEAP32[$4+68>>2]=0;$17=$18<<2;$23=$17+($4- -64|0)|0;HEAP32[$23>>2]=1065353216;$8=HEAPF32[$1+32>>2];$9=HEAPF32[$1>>2];$10=HEAPF32[$1+16>>2];$11=HEAPF32[$1+36>>2];$12=HEAPF32[$1+4>>2];$13=HEAPF32[$1+20>>2];$5=HEAPF32[$1+40>>2];$6=HEAPF32[$1+8>>2];$7=HEAPF32[$1+24>>2];HEAP32[$4+44>>2]=0;$14=$6;$6=HEAPF32[$4+64>>2];$15=$7;$7=HEAPF32[$4+68>>2];$16=$5;$5=HEAPF32[$4+72>>2];HEAPF32[$4+40>>2]=Math_fround(Math_fround($14*$6)+Math_fround($15*$7))+Math_fround($16*$5);HEAPF32[$4+36>>2]=Math_fround(Math_fround($6*$12)+Math_fround($7*$13))+Math_fround($5*$11);HEAPF32[$4+32>>2]=Math_fround(Math_fround($9*$6)+Math_fround($10*$7))+Math_fround($8*$5);FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+60>>2]]($4+48|0,$0,$4+32|0);$8=HEAPF32[$1+48>>2];$9=HEAPF32[$1+8>>2];$10=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$12=HEAPF32[$1+52>>2];$13=HEAPF32[$1+24>>2];$16=HEAPF32[$1+16>>2];$19=HEAPF32[$1+20>>2];$6=HEAPF32[$1+56>>2];$5=HEAPF32[$1+40>>2];$7=HEAPF32[$1+32>>2];$20=HEAPF32[$1+36>>2];HEAP32[$4+44>>2]=0;$14=$6;$6=HEAPF32[$4+48>>2];$21=Math_fround($7*$6);$7=HEAPF32[$4+52>>2];$15=$5;$5=HEAPF32[$4+56>>2];HEAPF32[$4+40>>2]=$14+Math_fround(Math_fround($21+Math_fround($20*$7))+Math_fround($15*$5));HEAPF32[$4+36>>2]=$12+Math_fround(Math_fround(Math_fround($6*$16)+Math_fround($7*$19))+Math_fround($5*$13));HEAPF32[$4+32>>2]=$8+Math_fround(Math_fround(Math_fround($10*$6)+Math_fround($11*$7))+Math_fround($9*$5));$24=($4+32|0)+$17|0;HEAPF32[$3+$17>>2]=$22+HEAPF32[$24>>2];HEAP32[$23>>2]=-1082130432;$8=HEAPF32[$1+32>>2];$9=HEAPF32[$1>>2];$10=HEAPF32[$1+16>>2];$11=HEAPF32[$1+36>>2];$12=HEAPF32[$1+4>>2];$13=HEAPF32[$1+20>>2];$5=HEAPF32[$1+40>>2];$6=HEAPF32[$1+8>>2];$7=HEAPF32[$1+24>>2];HEAP32[$4+12>>2]=0;$14=$6;$6=HEAPF32[$4+64>>2];$15=$7;$7=HEAPF32[$4+68>>2];$16=$5;$5=HEAPF32[$4+72>>2];HEAPF32[$4+8>>2]=Math_fround(Math_fround($14*$6)+Math_fround($15*$7))+Math_fround($16*$5);HEAPF32[$4+4>>2]=Math_fround(Math_fround($6*$12)+Math_fround($7*$13))+Math_fround($5*$11);HEAPF32[$4>>2]=Math_fround(Math_fround($9*$6)+Math_fround($10*$7))+Math_fround($8*$5);FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+60>>2]]($4+16|0,$0,$4);$8=HEAPF32[$1+48>>2];$9=HEAPF32[$1+8>>2];$10=HEAPF32[$1>>2];$11=HEAPF32[$1+4>>2];$12=HEAPF32[$1+52>>2];$13=HEAPF32[$1+24>>2];$16=HEAPF32[$1+16>>2];$19=HEAPF32[$1+20>>2];$6=HEAPF32[$1+56>>2];$5=HEAPF32[$1+40>>2];$7=HEAPF32[$1+32>>2];$20=HEAPF32[$1+36>>2];HEAP32[$4+44>>2]=0;$14=$6;$6=HEAPF32[$4+16>>2];$21=Math_fround($7*$6);$7=HEAPF32[$4+20>>2];$15=$5;$5=HEAPF32[$4+24>>2];HEAPF32[$4+40>>2]=$14+Math_fround(Math_fround($21+Math_fround($20*$7))+Math_fround($15*$5));HEAPF32[$4+36>>2]=$12+Math_fround(Math_fround(Math_fround($6*$16)+Math_fround($7*$19))+Math_fround($5*$13));HEAPF32[$4+32>>2]=$8+Math_fround(Math_fround(Math_fround($10*$6)+Math_fround($11*$7))+Math_fround($9*$5));HEAPF32[$2+$17>>2]=HEAPF32[$24>>2]-$22;$18=$18+1|0;if(($18|0)!=3){continue}break}global$0=$4+80|0}function x509_crt_parse_der_core($0,$1,$2){var $3=0,$4=0,$5=0;$3=global$0+ -64|0;global$0=$3;HEAP32[$3+48>>2]=0;HEAP32[$3+32>>2]=0;HEAP32[$3+16>>2]=0;HEAP32[$3+40>>2]=0;HEAP32[$3+44>>2]=0;HEAP32[$3+24>>2]=0;HEAP32[$3+28>>2]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;$4=-10240;label$1:{if(!$0|!$1){break label$1}HEAP32[$3+56>>2]=$1;HEAP32[$3+60>>2]=$2;if(mbedtls_asn1_get_tag($3+56|0,$1+$2|0,$3+60|0,48)){mbedtls_x509_crt_free($0);$4=-8576;break label$1}$5=HEAP32[$3+60>>2];$2=($5+HEAP32[$3+56>>2]|0)-$1|0;HEAP32[$0+8>>2]=$2;$4=dlcalloc(1,$2);HEAP32[$3+56>>2]=$4;HEAP32[$0+12>>2]=$4;if(!$4){$4=-10368;break label$1}$1=memcpy($4,$1,$2);HEAP32[$0>>2]=1;$4=$1+($2-$5|0)|0;HEAP32[$3+56>>2]=$4;HEAP32[$0+24>>2]=$4;$5=$1+$2|0;$1=mbedtls_asn1_get_tag($3+56|0,$5,$3+60|0,48);if($1){mbedtls_x509_crt_free($0);$4=$1+ -8576|0;break label$1}$2=HEAP32[$3+56>>2]+HEAP32[$3+60>>2]|0;HEAP32[$0+20>>2]=$2-HEAP32[$0+24>>2];label$5:{$4=x509_get_version($3+56|0,$2,$0+28|0);label$6:{if($4){break label$6}$4=mbedtls_x509_get_serial($3+56|0,$2,$0+32|0);if($4){break label$6}$1=$0+44|0;$4=mbedtls_x509_get_alg($3+56|0,$2,$1,$3+40|0);if(!$4){break label$5}}mbedtls_x509_crt_free($0);break label$1}$4=HEAP32[$0+28>>2];if($4>>>0>=3){mbedtls_x509_crt_free($0);$4=-9600;break label$1}HEAP32[$0+28>>2]=$4+1;$4=mbedtls_x509_get_sig_alg($1,$3+40|0,$0+328|0,$0+332|0,$0+336|0);if($4){mbedtls_x509_crt_free($0);break label$1}HEAP32[$0- -64>>2]=HEAP32[$3+56>>2];$1=mbedtls_asn1_get_tag($3+56|0,$2,$3+60|0,48);if($1){mbedtls_x509_crt_free($0);$4=$1+ -8576|0;break label$1}$4=mbedtls_x509_get_name($3+56|0,HEAP32[$3+56>>2]+HEAP32[$3+60>>2]|0,$0+80|0);if($4){mbedtls_x509_crt_free($0);break label$1}HEAP32[$0+60>>2]=HEAP32[$3+56>>2]-HEAP32[$0+64>>2];$4=x509_get_dates($3+56|0,$2,$0+144|0,$0+168|0);if($4){mbedtls_x509_crt_free($0);break label$1}HEAP32[$0+76>>2]=HEAP32[$3+56>>2];$1=mbedtls_asn1_get_tag($3+56|0,$2,$3+60|0,48);if($1){mbedtls_x509_crt_free($0);$4=$1+ -8576|0;break label$1}label$13:{$1=HEAP32[$3+60>>2];if(!$1){break label$13}$4=mbedtls_x509_get_name($3+56|0,$1+HEAP32[$3+56>>2]|0,$0+112|0);if(!$4){break label$13}mbedtls_x509_crt_free($0);break label$1}$1=HEAP32[$3+56>>2];HEAP32[$0+200>>2]=$1;HEAP32[$0+72>>2]=$1-HEAP32[$0+76>>2];$4=mbedtls_pk_parse_subpubkey($3+56|0,$2,$0+204|0);if($4){mbedtls_x509_crt_free($0);break label$1}HEAP32[$0+196>>2]=HEAP32[$3+56>>2]-HEAP32[$0+200>>2];label$15:{$1=HEAP32[$0+28>>2];if(($1&-2)==2){$4=x509_get_uid($3+56|0,$2,$0+212|0,1);if($4){break label$15}$1=HEAP32[$0+28>>2]}label$16:{if(($1&-2)!=2){break label$16}$4=x509_get_uid($3+56|0,$2,$0+224|0,2);if($4){mbedtls_x509_crt_free($0);break label$1}if(HEAP32[$0+28>>2]!=3){break label$16}$4=x509_get_crt_ext($3+56|0,$2,$0);if(!$4){break label$16}mbedtls_x509_crt_free($0);break label$1}label$20:{if(($2|0)!=HEAP32[$3+56>>2]){break label$20}$4=mbedtls_x509_get_alg($3+56|0,$5,$3+8|0,$3+24|0);if($4){mbedtls_x509_crt_free($0);break label$1}label$22:{$1=HEAP32[$0+48>>2];label$23:{if(($1|0)!=HEAP32[$3+12>>2]){break label$23}if(memcmp(HEAP32[$0+52>>2],HEAP32[$3+16>>2],$1)){break label$23}$1=HEAP32[$3+44>>2];if(($1|0)!=HEAP32[$3+28>>2]){break label$23}if(!$1){break label$22}if(!memcmp(HEAP32[$3+48>>2],HEAP32[$3+32>>2],$1)){break label$22}}mbedtls_x509_crt_free($0);$4=-9856;break label$1}$4=mbedtls_x509_get_sig($3+56|0,$5,$0+316|0);if($4){mbedtls_x509_crt_free($0);break label$1}if(($5|0)!=HEAP32[$3+56>>2]){break label$20}$4=0;break label$1}mbedtls_x509_crt_free($0);$4=-8678;break label$1}mbedtls_x509_crt_free($0)}global$0=$3- -64|0;return $4}function bool_20std____2____insertion_sort_incomplete_bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_2c_20dmSocket__IfAddr___28dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$6=global$0-160|0;global$0=$6;$8=1;$4=($1-$0|0)/160|0;label$1:{if($4>>>0<=5){label$3:{switch($4-2|0){case 0:$1=$1+ -160|0;if(!FUNCTION_TABLE[HEAP32[$2>>2]]($1,$0)){break label$1}$2=memcpy($6,$0,160);memcpy($0,$1,158);memcpy($1,$2,158);break label$1;case 1:$4=$0+160|0;$5=FUNCTION_TABLE[HEAP32[$2>>2]]($4,$0)|0;$1=$1+ -160|0;$3=FUNCTION_TABLE[HEAP32[$2>>2]]($1,$4)|0;if(!$5){if(!$3){break label$1}$3=memcpy($6,$4,160);$4=memcpy($4,$1,158);memcpy($1,$3,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($4,$0)){break label$1}$1=memcpy($3,$0,160);memcpy($0,$4,158);memcpy($4,$1,158);break label$1}if($3){$2=memcpy($6,$0,160);memcpy($0,$1,158);memcpy($1,$2,158);break label$1}$3=memcpy($6,$0,160);memcpy($0,$4,158);$0=memcpy($4,$3,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($1,$0)){break label$1}$2=memcpy($3,$0,160);memcpy($0,$1,158);memcpy($1,$2,158);break label$1;case 2:unsigned_20int_20std____2____sort4_bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_2c_20dmSocket__IfAddr___28dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_29($0,$0+160|0,$0+320|0,$1+ -160|0,$2);break label$1;case 3:break label$3;default:break label$1}}$4=$0+160|0;$3=$0+320|0;$5=$0+480|0;unsigned_20int_20std____2____sort4_bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_2c_20dmSocket__IfAddr___28dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20dmSocket__IfAddr__2c_20bool_20_28___29_28dmSocket__IfAddr_20const__2c_20dmSocket__IfAddr_20const__29_29($0,$4,$3,$5,$2);$7=$1+ -160|0;if(!FUNCTION_TABLE[HEAP32[$2>>2]]($7,$5)){break label$1}$9=memcpy($6,$5,160);$1=memcpy($5,$7,158);memcpy($7,$9,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($1,$3)){break label$1}$5=memcpy($9,$3,160);$3=memcpy($3,$1,158);memcpy($1,$5,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($3,$4)){break label$1}$5=memcpy($5,$4,160);$1=memcpy($4,$3,158);memcpy($3,$5,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($1,$0)){break label$1}$2=memcpy($5,$0,160);memcpy($0,$1,158);memcpy($1,$2,158);break label$1}$3=$0+160|0;$7=FUNCTION_TABLE[HEAP32[$2>>2]]($3,$0)|0;$4=$0+320|0;$5=FUNCTION_TABLE[HEAP32[$2>>2]]($4,$3)|0;label$9:{if(!$7){if(!$5){break label$9}$5=memcpy($6,$3,160);$3=memcpy($3,$4,158);memcpy($4,$5,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($3,$0)){break label$9}$5=memcpy($5,$0,160);memcpy($0,$3,158);memcpy($3,$5,158);break label$9}if($5){$3=memcpy($6,$0,160);memcpy($0,$4,158);memcpy($4,$3,158);break label$9}$5=memcpy($6,$0,160);memcpy($0,$3,158);$3=memcpy($3,$5,158);if(!FUNCTION_TABLE[HEAP32[$2>>2]]($4,$3)){break label$9}$5=memcpy($5,$3,160);memcpy($3,$4,158);memcpy($4,$5,158)}$3=$0+480|0;if(($3|0)==($1|0)){break label$1}$7=0;label$12:{while(1){if(FUNCTION_TABLE[HEAP32[$2>>2]]($3,$4)){$9=memcpy($6,$3,160);$8=$3;while(1){label$16:{$5=$4;memcpy($8,$4,158);if(($0|0)==($4|0)){break label$16}$8=$5;$4=$5+ -160|0;if(FUNCTION_TABLE[HEAP32[$2>>2]]($9,$4)){continue}}break}memcpy($5,$9,158);$7=$7+1|0;if(($7|0)==8){break label$12}}$4=$3;$3=$3+160|0;if(($3|0)!=($1|0)){continue}break}$8=1;break label$1}$8=($3+160|0)==($1|0)}global$0=$6+160|0;return $8}function dmObjectPool_dmGameSystem__LabelComponent___Free_28unsigned_20int_2c_20bool_29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;label$1:{label$2:{label$3:{label$4:{$7=HEAP32[$0+16>>2];if(HEAP32[$0+20>>2]-$7>>3>>>0>$1>>>0){$2=HEAP32[$0+36>>2];$3=HEAP32[$0>>2];$4=HEAP32[$0+4>>2]-$3>>10;$5=$4+ -1|0;if(HEAP32[$0+40>>2]-$2>>2>>>0<=$5>>>0){break label$1}$6=($1<<3)+$7|0;$8=HEAP32[$6>>2];if($8>>>0>=$4>>>0){break label$4}$2=HEAP32[$2+($5<<2)>>2];memset($3+($8<<10)|0,0,1024);$3=HEAP32[$0+16>>2];if(HEAP32[$0+20>>2]-$3>>3>>>0<=$2>>>0){break label$1}HEAP32[$3+($2<<3)>>2]=HEAP32[$6>>2];$3=HEAP32[$0+36>>2];$4=HEAP32[$6>>2];if(HEAP32[$0+40>>2]-$3>>2>>>0<=$4>>>0){break label$1}HEAP32[$3+($4<<2)>>2]=$2;$3=HEAP32[$0+4>>2];$2=HEAP32[$0>>2];$4=HEAP32[$6>>2];if($3-$2>>10>>>0<=$4>>>0){break label$3}$2=$2+($4<<10)|0;$3=$3+ -1024|0;HEAP32[$2>>2]=HEAP32[$3>>2];HEAP32[$2+16>>2]=HEAP32[$3+16>>2];HEAP32[$2+20>>2]=HEAP32[$3+20>>2];HEAP32[$2+24>>2]=HEAP32[$3+24>>2];HEAP32[$2+32>>2]=HEAP32[$3+32>>2];HEAP32[$2+36>>2]=HEAP32[$3+36>>2];HEAP32[$2+40>>2]=HEAP32[$3+40>>2];HEAP32[$2+44>>2]=HEAP32[$3+44>>2];HEAP32[$2+48>>2]=HEAP32[$3+48>>2];HEAP32[$2+52>>2]=HEAP32[$3+52>>2];HEAP32[$2+56>>2]=HEAP32[$3+56>>2];HEAP32[$2+64>>2]=HEAP32[$3+64>>2];HEAP32[$2+68>>2]=HEAP32[$3+68>>2];HEAP32[$2+72>>2]=HEAP32[$3+72>>2];HEAP32[$2+80>>2]=HEAP32[$3+80>>2];HEAP32[$2+84>>2]=HEAP32[$3+84>>2];HEAP32[$2+88>>2]=HEAP32[$3+88>>2];HEAP32[$2+92>>2]=HEAP32[$3+92>>2];HEAP32[$2+96>>2]=HEAP32[$3+96>>2];HEAP32[$2+100>>2]=HEAP32[$3+100>>2];HEAP32[$2+104>>2]=HEAP32[$3+104>>2];HEAP32[$2+108>>2]=HEAP32[$3+108>>2];HEAP32[$2+112>>2]=HEAP32[$3+112>>2];HEAP32[$2+116>>2]=HEAP32[$3+116>>2];HEAP32[$2+120>>2]=HEAP32[$3+120>>2];HEAP32[$2+124>>2]=HEAP32[$3+124>>2];HEAP32[$2+128>>2]=HEAP32[$3+128>>2];HEAP32[$2+132>>2]=HEAP32[$3+132>>2];HEAP32[$2+136>>2]=HEAP32[$3+136>>2];HEAP32[$2+140>>2]=HEAP32[$3+140>>2];HEAP32[$2+144>>2]=HEAP32[$3+144>>2];HEAP32[$2+148>>2]=HEAP32[$3+148>>2];HEAP32[$2+152>>2]=HEAP32[$3+152>>2];HEAP32[$2+156>>2]=HEAP32[$3+156>>2];HEAP32[$2+160>>2]=HEAP32[$3+160>>2];HEAP32[$2+164>>2]=HEAP32[$3+164>>2];HEAP32[$2+168>>2]=HEAP32[$3+168>>2];HEAP32[$2+172>>2]=HEAP32[$3+172>>2];HEAP32[$2+176>>2]=HEAP32[$3+176>>2];HEAP32[$2+180>>2]=HEAP32[$3+180>>2];HEAP32[$2+184>>2]=HEAP32[$3+184>>2];HEAP32[$2+188>>2]=HEAP32[$3+188>>2];$4=HEAP32[$3+196>>2];HEAP32[$2+192>>2]=HEAP32[$3+192>>2];HEAP32[$2+196>>2]=$4;$4=HEAP32[$3+204>>2];HEAP32[$2+200>>2]=HEAP32[$3+200>>2];HEAP32[$2+204>>2]=$4;$4=HEAP32[$3+212>>2];HEAP32[$2+208>>2]=HEAP32[$3+208>>2];HEAP32[$2+212>>2]=$4;HEAP32[$2+216>>2]=HEAP32[$3+216>>2];dmGameSystem__CompRenderConstants__operator__28dmGameSystem__CompRenderConstants_20const__29($2+224|0,$3+224|0);$4=HEAPU8[$3+1019|0]|HEAPU8[$3+1020|0]<<8|(HEAPU8[$3+1021|0]<<16|HEAPU8[$3+1022|0]<<24);$5=HEAPU8[$3+1015|0]|HEAPU8[$3+1016|0]<<8|(HEAPU8[$3+1017|0]<<16|HEAPU8[$3+1018|0]<<24);HEAP8[$2+1015|0]=$5;HEAP8[$2+1016|0]=$5>>>8;HEAP8[$2+1017|0]=$5>>>16;HEAP8[$2+1018|0]=$5>>>24;HEAP8[$2+1019|0]=$4;HEAP8[$2+1020|0]=$4>>>8;HEAP8[$2+1021|0]=$4>>>16;HEAP8[$2+1022|0]=$4>>>24;$4=HEAP32[$3+1012>>2];HEAP32[$2+1008>>2]=HEAP32[$3+1008>>2];HEAP32[$2+1012>>2]=$4;$2=HEAP32[$0+4>>2]+ -1024|0;HEAP32[$0+4>>2]=$2;if($2>>>0>2]){break label$2}HEAP32[(($1<<3)+$7|0)+4>>2]=HEAP32[$0+32>>2];HEAP32[$0+32>>2]=$6-HEAP32[$0+16>>2]>>3;return}break label$1}__assert_fail(43728,43454,131,43749);abort()}__assert_fail(43754,43608,464,43769);abort()}__assert_fail(43779,43608,467,43769);abort()}__assert_fail(43706,43608,430,43717);abort()}function dmProfileRender__GotoRecordedFrame_28dmProfileRender__RenderProfile__2c_20int_29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$5=global$0-16|0;global$0=$5;label$1:{label$2:{label$4:{$2=HEAP32[$0+20>>2];$3=HEAP32[$0+24>>2]-$2|0;label$5:{if(!$3){dmProfileRender__ResetStructure_28dmProfileRender__RenderProfile__29($0);break label$5}$3=$3>>2;$7=($3|0)>($1|0)?($1|0)>0?$1:0:$3+ -1|0;if($3>>>0<=$7>>>0){break label$4}$3=HEAP32[$2+($7<<2)>>2];$9=$3+8|0;if(($9|0)==HEAP32[$0+16>>2]){break label$5}$1=0;HEAP32[$0+84>>2]=0;if(HEAP32[$0+80>>2]){$2=HEAP32[$0+76>>2];while(1){HEAP32[$2+($1<<2)>>2]=$1;$1=$1+1|0;if($1>>>0>2]){continue}break}}$1=0;HEAP32[$0+136>>2]=0;if(HEAP32[$0+132>>2]){$2=HEAP32[$0+128>>2];while(1){HEAP32[$2+($1<<2)>>2]=$1;$1=$1+1|0;if($1>>>0>2]){continue}break}}$1=0;HEAP32[$0+188>>2]=0;if(HEAP32[$0+184>>2]){$2=HEAP32[$0+180>>2];while(1){HEAP32[$2+($1<<2)>>2]=$1;$1=$1+1|0;if($1>>>0>2]){continue}break}}memset(HEAP32[$0+44>>2],255,HEAP32[$0+48>>2]<<2);$1=$0- -64|0;HEAP32[$1>>2]=-1;HEAP32[$1+4>>2]=0;HEAP32[$0+56>>2]=HEAP32[$0+52>>2];if(HEAP32[$3+36>>2]){$6=$0+44|0;$1=0;while(1){$4=HEAP32[$0+76>>2];if(!$4){break label$2}$2=HEAP32[$0+84>>2];if($2>>>0>=HEAPU32[$0+80>>2]){break label$1}HEAP32[$0+84>>2]=$2+1;$2=HEAP32[$4+($2<<2)>>2];HEAP32[$5+12>>2]=$2;$4=HEAP32[$3+8>>2]+Math_imul($2,12)|0;dmHashTable_unsigned_20int_2c_20char_20const____Put_28unsigned_20int_2c_20char_20const__20const__29($6,HEAP32[$4+8>>2],$5+12|0);HEAP32[HEAP32[$0+92>>2]+($1<<2)>>2]=HEAP32[$5+12>>2];$8=HEAP32[$0+252>>2];$2=HEAP32[$0+232>>2]+($1<<4)|0;HEAP32[$2>>2]=HEAP32[$0+248>>2];HEAP32[$2+4>>2]=$8;HEAP32[$2+8>>2]=HEAP32[$4>>2];$1=$1+1|0;if($1>>>0>2]){continue}break}}memset(HEAP32[$0+96>>2],255,HEAP32[$0+100>>2]<<2);HEAP32[$0+116>>2]=-1;HEAP32[$0+120>>2]=0;HEAP32[$0+108>>2]=HEAP32[$0+104>>2];if(HEAP32[$3+40>>2]){$4=$0+96|0;$1=0;while(1){$6=HEAP32[$0+128>>2];if(!$6){break label$2}$2=HEAP32[$0+136>>2];if($2>>>0>=HEAPU32[$0+132>>2]){break label$1}HEAP32[$0+136>>2]=$2+1;$2=HEAP32[$6+($2<<2)>>2];HEAP32[$5+8>>2]=$2;$6=HEAP32[$3+12>>2]+Math_imul($2,20)|0;$2=HEAP32[$6+12>>2];dmHashTable_unsigned_20int_2c_20char_20const____Put_28unsigned_20int_2c_20char_20const__20const__29($4,$2^(HEAP32[$6+8>>2]+($2<<6)+($2>>>2)|0)+ -1640531527,$5+8|0);HEAP32[HEAP32[$0+144>>2]+($1<<2)>>2]=HEAP32[$5+8>>2];$8=HEAP32[$0+252>>2];$2=HEAP32[$0+236>>2]+($1<<4)|0;HEAP32[$2>>2]=HEAP32[$0+248>>2];HEAP32[$2+4>>2]=$8;HEAP32[$2+8>>2]=HEAP32[$6>>2];$1=$1+1|0;if($1>>>0>2]){continue}break}}memset(HEAP32[$0+148>>2],255,HEAP32[$0+152>>2]<<2);HEAP32[$0+168>>2]=-1;HEAP32[$0+172>>2]=0;HEAP32[$0+160>>2]=HEAP32[$0+156>>2];if(HEAP32[$3+44>>2]){$6=$0+148|0;$1=0;while(1){$4=HEAP32[$0+180>>2];if(!$4){break label$2}$2=HEAP32[$0+188>>2];if($2>>>0>=HEAPU32[$0+184>>2]){break label$1}HEAP32[$0+188>>2]=$2+1;$2=HEAP32[$4+($2<<2)>>2];HEAP32[$5+4>>2]=$2;dmHashTable_unsigned_20int_2c_20char_20const____Put_28unsigned_20int_2c_20char_20const__20const__29($6,HEAP32[(HEAP32[$3+16>>2]+($2<<3)|0)+4>>2],$5+4|0);HEAP32[HEAP32[$0+196>>2]+($1<<2)>>2]=HEAP32[$5+4>>2];$4=HEAP32[$0+252>>2];$2=HEAP32[$0+240>>2]+($1<<3)|0;HEAP32[$2>>2]=HEAP32[$0+248>>2];HEAP32[$2+4>>2]=$4;$1=$1+1|0;if($1>>>0>2]){continue}break}}$1=HEAP32[$3+48>>2];HEAP32[$0+264>>2]=$7;HEAP32[$0+256>>2]=$1;HEAP32[$0+16>>2]=$9}global$0=$5+16|0;return}__assert_fail(8889,8900,430,8971);abort()}__assert_fail(8487,8494,148,8560);abort()}__assert_fail(8564,8494,149,8560);abort()}function dmGameObject__DoSetBoneTransforms_28dmGameObject__CollectionHandle__2c_20dmTransform__Transform__2c_20unsigned_20short_2c_20dmTransform__Transform__2c_20unsigned_20int_29($0,$1,$2,$3,$4){var $5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=0,$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0);label$1:{if(!(!$4|($2|0)==32767)){$17=HEAP32[$0>>2];while(1){$5=HEAP32[$17+2056>>2];$2=$2&65535;if(HEAP32[$17+2060>>2]-$5>>2>>>0<=$2>>>0){break label$1}label$4:{$5=HEAP32[$5+($2<<2)>>2];if(!(HEAPU8[$5+137|0]&4)){break label$4}$2=Math_imul($16,48)+$3|0;$11=HEAPF32[$2>>2];HEAP32[$5>>2]=HEAP32[$2>>2];$12=HEAPF32[$2+4>>2];HEAP32[$5+4>>2]=HEAP32[$2+4>>2];$13=HEAPF32[$2+8>>2];HEAP32[$5+8>>2]=HEAP32[$2+8>>2];$6=HEAPF32[$2+12>>2];HEAP32[$5+12>>2]=HEAP32[$2+12>>2];$19=HEAPF32[$2+16>>2];HEAP32[$5+16>>2]=HEAP32[$2+16>>2];$20=HEAPF32[$2+20>>2];HEAP32[$5+20>>2]=HEAP32[$2+20>>2];$21=HEAPF32[$2+24>>2];HEAP32[$5+24>>2]=HEAP32[$2+24>>2];$22=HEAPF32[$2+32>>2];HEAP32[$5+32>>2]=HEAP32[$2+32>>2];$23=HEAPF32[$2+36>>2];HEAP32[$5+36>>2]=HEAP32[$2+36>>2];$24=HEAPF32[$2+40>>2];HEAP32[$5+40>>2]=HEAP32[$2+40>>2];$2=$16+1|0;if(!($16|!$1)){$25=HEAPF32[$1+16>>2];$26=HEAPF32[$1+20>>2];$27=HEAPF32[$1+24>>2];$7=HEAPF32[$1+8>>2];$8=HEAPF32[$1+4>>2];$9=HEAPF32[$1+12>>2];$10=HEAPF32[$1>>2];$14=HEAPF32[$1+32>>2];$15=HEAPF32[$1+36>>2];$18=HEAPF32[$1+40>>2];HEAPF32[$5+40>>2]=$18*$24;HEAPF32[$5+36>>2]=$15*$23;HEAPF32[$5+32>>2]=$14*$22;HEAPF32[$5+12>>2]=Math_fround(Math_fround(Math_fround($9*$6)-Math_fround($10*$11))-Math_fround($8*$12))-Math_fround($7*$13);HEAPF32[$5+8>>2]=Math_fround(Math_fround($10*$12)+Math_fround(Math_fround($9*$13)+Math_fround($7*$6)))-Math_fround($8*$11);HEAPF32[$5+4>>2]=Math_fround(Math_fround($7*$11)+Math_fround(Math_fround($9*$12)+Math_fround($8*$6)))-Math_fround($10*$13);HEAPF32[$5>>2]=Math_fround(Math_fround($8*$13)+Math_fround(Math_fround($9*$11)+Math_fround($10*$6)))-Math_fround($7*$12);$6=Math_fround($14*$19);$11=Math_fround($15*$20);$12=Math_fround($18*$21);$13=Math_fround(Math_fround(Math_fround($7*$6)+Math_fround($9*$11))-Math_fround($10*$12));$14=Math_fround(Math_fround($7*$12)+Math_fround(Math_fround($10*$6)+Math_fround($8*$11)));$15=Math_fround(Math_fround(Math_fround($10*$11)+Math_fround($9*$12))-Math_fround($8*$6));$6=Math_fround(Math_fround(Math_fround($9*$6)+Math_fround($8*$12))-Math_fround($7*$11));HEAPF32[$5+24>>2]=$27+Math_fround(Math_fround($10*$13)+Math_fround(Math_fround(Math_fround($7*$14)+Math_fround($9*$15))-Math_fround($8*$6)));HEAPF32[$5+20>>2]=$26+Math_fround(Math_fround($7*$6)+Math_fround(Math_fround(Math_fround($9*$13)+Math_fround($8*$14))-Math_fround($10*$15)));HEAPF32[$5+16>>2]=$25+Math_fround(Math_fround($8*$15)+Math_fround(Math_fround(Math_fround($10*$14)+Math_fround($9*$6))-Math_fround($7*$13)))}if($2>>>0<$4>>>0){$2=dmGameObject__DoSetBoneTransforms_28dmGameObject__CollectionHandle__2c_20dmTransform__Transform__2c_20unsigned_20short_2c_20dmTransform__Transform__2c_20unsigned_20int_29($0,0,HEAPU16[$5+154>>1]&32767,Math_imul($2,48)+$3|0,$4-$2|0)+$2|0}$16=$2;if(($2|0)!=($4|0)){break label$4}return $4}$2=HEAP32[$5+152>>2]&32767;if(($2|0)!=32767){continue}break}}return $16}__assert_fail(16081,13666,430,14890);abort()}function subexpr($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$6=global$0-32|0;global$0=$6;$3=1;$5=HEAP32[$0+52>>2];$4=HEAPU16[$5+52>>1]+1|0;HEAP16[$5+52>>1]=$4;if(($4&65535)>>>0>=201){luaX_lexerror($0,124061,0)}label$2:{label$3:{label$4:{label$5:{label$6:{label$7:{label$8:{label$9:{label$10:{label$11:{$4=HEAP32[$0+16>>2];$5=$4+ -263|0;if($5>>>0>23){$3=$4+ -35|0;if($3>>>0>10){if(($4|0)!=123){break label$11}constructor($0,$1);break label$2}label$14:{switch($3-1|0){case 9:$3=0;break label$3;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break label$11;default:break label$14}}$3=2;break label$3}label$16:{switch($5-1|0){case 1:break label$10;case 0:case 2:case 3:case 4:case 7:case 8:case 9:case 10:case 12:case 13:case 14:case 16:case 17:case 18:case 19:case 21:break label$11;case 20:break label$16;case 6:break label$3;case 22:break label$5;case 5:break label$6;case 11:break label$7;case 15:break label$9;default:break label$8}}HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=0;HEAP32[$1>>2]=5;$3=HEAP32[$0+28>>2];HEAP32[$1+8>>2]=HEAP32[$0+24>>2];HEAP32[$1+12>>2]=$3;break label$4}primaryexp($0,$1);break label$2}luaX_next($0);body($0,$1,0,HEAP32[$0+4>>2]);break label$2}$5=HEAP32[$0+48>>2];$3=HEAP32[$5>>2];$4=HEAPU8[$3+74|0];if(!$4){luaX_syntaxerror($0,124126);$3=HEAP32[$5>>2];$4=HEAPU8[$3+74|0]}HEAP8[$3+74|0]=$4&251;$3=luaK_codeABC($5,37,0,1,0);HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=$3;HEAP32[$1>>2]=14;break label$4}HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=0;HEAP32[$1>>2]=3;break label$4}HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=0;HEAP32[$1>>2]=2;break label$4}HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=0;HEAP32[$1>>2]=1;break label$4}$3=luaK_stringK(HEAP32[$0+48>>2],HEAP32[$0+24>>2]);HEAP32[$1+16>>2]=-1;HEAP32[$1+20>>2]=-1;HEAP32[$1+8>>2]=$3;HEAP32[$1>>2]=4}luaX_next($0);break label$2}luaX_next($0);subexpr($0,$1,8);luaK_prefix(HEAP32[$0+48>>2],$3,$1)}$4=15;$3=HEAP32[$0+16>>2];$5=$3+ -37|0;label$18:{label$19:{if($5>>>0>57){$3=$3+ -257|0;if($3>>>0>26){break label$18}label$21:{switch($3-1|0){case 20:$3=6;break label$19;case 25:$3=7;break label$19;case 22:$3=8;break label$19;case 24:$3=10;break label$19;case 23:$3=12;break label$19;default:$3=13;break label$19;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 14:case 15:case 16:case 17:case 18:case 19:case 21:break label$18;case 13:break label$21}}$3=14;break label$19}$3=0;label$28:{switch($5-1|0){case 24:$3=11;break label$19;case 22:$3=9;break label$19;case 56:$3=5;break label$19;default:$3=4;break label$19;case 9:$3=3;break label$19;case 4:$3=2;break label$19;case 0:case 1:case 2:case 3:case 6:case 8:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 23:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break label$18;case 5:break label$19;case 7:break label$28}}$3=1}while(1){$4=$3<<1;if(HEAPU8[$4+124096|0]<=$2>>>0){$4=$3;break label$18}luaX_next($0);luaK_infix(HEAP32[$0+48>>2],$3,$1);$5=subexpr($0,$6+8|0,HEAPU8[($4+124096|0)+1|0]);luaK_posfix(HEAP32[$0+48>>2],$3,$1,$6+8|0);$4=15;$3=$5;if(($3|0)!=15){continue}break}}$0=HEAP32[$0+52>>2];HEAP16[$0+52>>1]=HEAPU16[$0+52>>1]+ -1;global$0=$6+32|0;return $4}function init_blocksize($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0,$15=0,$16=0,$17=Math_fround(0);$9=$2<<1&-4;$10=$9+HEAP32[$0+8>>2]|0;HEAP32[$0+8>>2]=$10;$8=(($1<<2)+$0|0)+1084|0;$7=HEAP32[$0+96>>2];label$1:{if($7){$5=HEAP32[$0+104>>2];$3=$5+$9|0;$6=0;if(($3|0)>HEAP32[$0+108>>2]){break label$1}HEAP32[$0+104>>2]=$3;$6=$5+$7|0;break label$1}$6=0;if(!$9){break label$1}$6=dlmalloc($9)}HEAP32[$8>>2]=$6;$13=$9+$10|0;HEAP32[$0+8>>2]=$13;$10=(($1<<2)+$0|0)+1092|0;$8=HEAP32[$0+96>>2];label$3:{if($8){$7=HEAP32[$0+104>>2];$3=$7+$9|0;$5=0;if(($3|0)>HEAP32[$0+108>>2]){break label$3}HEAP32[$0+104>>2]=$3;$5=$7+$8|0;break label$3}$5=0;if(!$9){break label$3}$5=dlmalloc($9)}HEAP32[$10>>2]=$5;$7=$2&-4;$16=$7+$13|0;HEAP32[$0+8>>2]=$16;$13=(($1<<2)+$0|0)+1100|0;$10=HEAP32[$0+96>>2];label$5:{if($10){$8=HEAP32[$0+104>>2];$7=$8+$7|0;$3=0;if(($7|0)>HEAP32[$0+108>>2]){break label$5}HEAP32[$0+104>>2]=$7;$3=$8+$10|0;break label$5}$3=0;if(!$7){break label$5}$3=dlmalloc($7)}HEAP32[$13>>2]=$3;if(!($5?!(!$6|!$3):0)){HEAP32[$0+116>>2]=3;return 0}$14=$2>>3;label$9:{if(($2|0)<4){break label$9}$7=$2>>2;$13=($7|0)>1?$7:1;$15=+($2|0);while(1){$10=$4<<2;$11=+($12<<2)*3.141592653589793/$15;HEAPF32[$6+$10>>2]=cos($11);$8=$4|1;$7=$8<<2;HEAPF32[$6+$7>>2]=-Math_fround(sin($11));$11=+($8|0)*3.141592653589793/$15*.5;HEAPF32[$5+$10>>2]=Math_fround(cos($11))*Math_fround(.5);HEAPF32[$5+$7>>2]=Math_fround(sin($11))*Math_fround(.5);$4=$4+2|0;$12=$12+1|0;if(($13|0)!=($12|0)){continue}break}if(($2|0)<8){break label$9}$6=($14|0)>1?$14:1;$4=0;$12=0;while(1){$5=$4|1;$11=+($5<<1)*3.141592653589793/$15;HEAPF32[$3+($4<<2)>>2]=cos($11);HEAPF32[$3+($5<<2)>>2]=-Math_fround(sin($11));$4=$4+2|0;$12=$12+1|0;if(($6|0)!=($12|0)){continue}break}}$8=$9+$16|0;HEAP32[$0+8>>2]=$8;label$12:{label$13:{label$14:{label$15:{label$16:{label$17:{label$18:{$4=(($1<<2)+$0|0)+1108|0;$6=HEAP32[$0+96>>2];label$19:{if($6){$5=HEAP32[$0+104>>2];$3=$5+$9|0;if(($3|0)>HEAP32[$0+108>>2]){break label$18}HEAP32[$0+104>>2]=$3;$3=$5+$6|0;break label$19}if(!$9){break label$18}$3=dlmalloc($9)}HEAP32[$4>>2]=$3;if(!$3){break label$12}if(($2|0)>=2){$6=$2>>1;$5=($6|0)>1?$6:1;$11=+($6|0);$4=0;while(1){$6=$3+($4<<2)|0;$17=Math_fround(sin((+($4|0)+.5)/$11*.5*3.141592653589793));HEAPF32[$6>>2]=sin(+Math_fround($17*$17)*1.5707963267948966);$4=$4+1|0;if(($5|0)!=($4|0)){continue}break}}$3=($14<<1)+3&-4;HEAP32[$0+8>>2]=$3+$8;$4=(($1<<2)+$0|0)+1116|0;$6=HEAP32[$0+96>>2];label$23:{if($6){$5=HEAP32[$0+104>>2];$3=$5+$3|0;if(($3|0)>HEAP32[$0+108>>2]){break label$17}HEAP32[$0+104>>2]=$3;$1=$5+$6|0;break label$23}if(!$3){break label$17}$1=dlmalloc($3)}HEAP32[$4>>2]=$1;if(!$1){break label$13}label$25:{if($2>>>0<=16383){if($2>>>0<16){break label$25}$4=$2>>>0<512?5:10;break label$16}if($2>>>0<=16777215){$4=$2>>>0<524288?15:20;break label$16}$4=25;if($2>>>0<536870912){break label$16}$4=30;if(($2|0)>-1){break label$16}return 1}if(($2|0)<=7){break label$14}$5=HEAP8[$2+213536|0];break label$15}HEAP32[(($1<<2)+$0|0)+1108>>2]=0;break label$12}HEAP32[(($1<<2)+$0|0)+1116>>2]=0;break label$13}$5=HEAP8[($2>>>$4|0)+213536|0]+$4|0}$0=$2>>>3|0;$3=$0>>>0>1?$0:1;$2=36-$5|0;$4=0;while(1){$0=$4<<1;$5=$0+$1|0;$0=$4>>>1&357913941|$0&-1431655766;$0=$0>>>2&590558003|$0<<2&-858993460;$0=$0>>>4&235867919|$0<<4&-252645136;HEAP16[$5>>1]=__wasm_rotl_i32($0>>>8&16646399|$0<<8&-16711936,16)>>>$2<<2;$4=$4+1|0;if(($3|0)!=($4|0)){continue}break}}return 1}HEAP32[$0+116>>2]=3;return 0}HEAP32[$0+116>>2]=3;return 0}function dmGameSystem__CompCollectionFactoryUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$5=global$0-16|0;global$0=$5;label$1:{$6=HEAP32[$0+8>>2];$1=HEAP32[$6>>2];if(($1|0)!=HEAP32[$6+4>>2]){while(1){$2=Math_imul($7,24)+$1|0;label$4:{if((HEAPU8[$2+20|0]&3)!=3){break label$4}$1=0;$4=HEAP32[$0>>2];label$5:{if(!$4){break label$5}$4=HEAP32[$4>>2];if(!$4){break label$5}$1=HEAP32[$4>>2]}$4=HEAP32[$2+4>>2];label$6:{if(!$4){$3=0;break label$6}HEAP32[$5+12>>2]=$2;HEAP32[$5+8>>2]=$1;$3=dmResource__UpdatePreloader_28dmResource__ResourcePreloader__2c_20bool_20_28__29_28dmResource__PreloaderCompleteCallbackParams_20const__29_2c_20dmResource__PreloaderCompleteCallbackParams__2c_20unsigned_20int_29($4,441,$5+8|0,1e4);if(($3|0)==-17){break label$4}}HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$4=HEAP32[HEAP32[$0+12>>2]>>2];$1=0;label$8:{if(!$4){break label$8}$1=HEAP32[$4+120>>2]}$4=HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4;lua_rawgeti($1,-1e4,HEAP32[$2+8>>2]);lua_rawgeti($1,-1e4,HEAP32[$2+12>>2]);lua_pushvalue($1,-1);dmScript__SetInstance_28lua_State__29($1);if(!dmScript__IsValidInstance_28lua_State__29($1)){lua_settop($1,-3);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,35079,35617,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)==HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$4}__assert_fail(35711,35732,301,35786);abort()}if(HEAP32[$2+8>>2]==-2){lua_settop($1,-3);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,35079,35799,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)==HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$4}__assert_fail(35711,35732,309,35786);abort()}lua_rawgeti($1,-1e4,HEAP32[$2+16>>2]);$8=HEAP32[$1+8>>2];HEAP32[$8+8>>2]=1;HEAP32[$8>>2]=(!$3|0)!=0;HEAP32[$1+8>>2]=HEAP32[$1+8>>2]+16;dmScript__PCall_28lua_State__2c_20int_2c_20int_29($1,3,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)!=HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$1}}$7=$7+1|0;$1=HEAP32[$6>>2];if($7>>>0<(HEAP32[$6+4>>2]-$1|0)/24>>>0){continue}break}}global$0=$5+16|0;return 0}__assert_fail(35711,35732,317,35786);abort()}function b2World__DrawDebugData_28_29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=Math_fround(0);$1=global$0-48|0;global$0=$1;label$1:{$2=HEAP32[$0+102984>>2];label$2:{if(!$2){break label$2}$6=HEAP32[$2+4>>2];label$3:{if(!($6&1)){break label$3}$3=HEAP32[$0+102952>>2];if(!$3){break label$3}while(1){$2=HEAP32[$3+100>>2];if($2){$5=$3+12|0;while(1){$4=HEAPU16[$3+4>>1];label$7:{if(!($4&32)){HEAP32[$1+8>>2]=1050253722;HEAP32[$1>>2]=1056964608;HEAP32[$1+4>>2]=1056964608;break label$7}$7=HEAP32[$3>>2];if(!$7){HEAP32[$1+8>>2]=1056964608;HEAP32[$1>>2]=1056964608;HEAP32[$1+4>>2]=1063675494;break label$7}if(!($4&2)){HEAP32[$1+8>>2]=1058642330;HEAP32[$1>>2]=1058642330;HEAP32[$1+4>>2]=1058642330;break label$7}if(($7|0)==1){HEAP32[$1+8>>2]=1063675494;HEAP32[$1>>2]=1056964608;HEAP32[$1+4>>2]=1056964608;break label$7}HEAP32[$1+8>>2]=1060320051;HEAP32[$1>>2]=1063675494;HEAP32[$1+4>>2]=1060320051}b2World__DrawShape_28b2Fixture__2c_20b2Transform_20const__2c_20b2Color_20const__29($0,$2,$5,$1);$2=HEAP32[$2+4>>2];if($2){continue}break}}$3=HEAP32[$3+96>>2];if($3){continue}break}}label$12:{if(!($6&2)){break label$12}$2=HEAP32[$0+102956>>2];if(!$2){break label$12}while(1){b2World__DrawJoint_28b2Joint__29($0,$2);$2=HEAP32[$2+12>>2];if($2){continue}break}}label$14:{if(!($6&8)){break label$14}HEAP32[$1+40>>2]=1063675494;HEAP32[$1+32>>2]=1050253722;HEAP32[$1+36>>2]=1063675494;$3=HEAP32[$0+102932>>2];if(!$3){break label$14}while(1){label$16:{if((HEAP32[$3+4>>2]&6)!=6){break label$16}$2=HEAP32[$3+48>>2];$4=HEAP32[$2+8>>2]+12|0;$10=HEAPF32[HEAP32[$2+12>>2]+8>>2];$2=HEAP32[$3+52>>2];b2WorldManifold__Initialize_28b2Manifold_20const__2c_20b2Transform_20const__2c_20float_2c_20b2Transform_20const__2c_20float_29($1,$3- -64|0,$4,$10,HEAP32[$2+8>>2]+12|0,HEAPF32[HEAP32[$2+12>>2]+8>>2]);$2=0;$5=HEAP32[$3+132>>2];if(($5|0)<=0){break label$16}while(1){$4=HEAP32[$0+102984>>2];FUNCTION_TABLE[HEAP32[HEAP32[$4>>2]+32>>2]]($4,(($2<<3)+$1|0)+8|0,$1,$1+32|0);$2=$2+1|0;if(($5|0)!=($2|0)){continue}break}}$3=HEAP32[$3+12>>2];if($3){continue}break}}label$18:{if(!($6&4)){break label$18}HEAP32[$1+40>>2]=1063675494;HEAP32[$1+32>>2]=1063675494;HEAP32[$1+36>>2]=1050253722;$5=HEAP32[$0+102952>>2];if(!$5){break label$18}while(1){label$20:{if(!(HEAPU8[$5+4|0]&32)){break label$20}$2=HEAP32[$5+100>>2];if(!$2){break label$20}while(1){if(HEAP32[$2+28>>2]>=1){$3=0;while(1){$4=HEAP32[(HEAP32[$2+24>>2]+Math_imul($3,28)|0)+24>>2];if(($4|0)<0|HEAP32[$0+102884>>2]<=($4|0)){break label$1}$4=HEAP32[$0+102876>>2]+Math_imul($4,36)|0;$7=HEAP32[$4+4>>2];$8=HEAP32[$4+8>>2];$9=HEAP32[$4>>2];$4=HEAP32[$4+12>>2];HEAP32[$1+28>>2]=$4;HEAP32[$1+24>>2]=$9;HEAP32[$1+20>>2]=$4;HEAP32[$1+16>>2]=$8;HEAP32[$1+12>>2]=$7;HEAP32[$1+8>>2]=$8;HEAP32[$1+4>>2]=$7;HEAP32[$1>>2]=$9;$4=HEAP32[$0+102984>>2];FUNCTION_TABLE[HEAP32[HEAP32[$4>>2]+8>>2]]($4,$1,4,$1+32|0);$3=$3+1|0;if(($3|0)>2]){continue}break}}$2=HEAP32[$2+4>>2];if($2){continue}break}}$5=HEAP32[$5+96>>2];if($5){continue}break}}if(!($6&16)){break label$2}$2=HEAP32[$0+102952>>2];if(!$2){break label$2}while(1){$3=HEAP32[$2+24>>2];HEAP32[$1+8>>2]=HEAP32[$2+20>>2];HEAP32[$1+12>>2]=$3;$3=HEAP32[$2+16>>2];HEAP32[$1>>2]=HEAP32[$2+12>>2];HEAP32[$1+4>>2]=$3;$3=HEAP32[$2+48>>2];HEAP32[$1>>2]=HEAP32[$2+44>>2];HEAP32[$1+4>>2]=$3;$3=HEAP32[$0+102984>>2];FUNCTION_TABLE[HEAP32[HEAP32[$3>>2]+28>>2]]($3,$1);$2=HEAP32[$2+96>>2];if($2){continue}break}}global$0=$1+48|0;return}__assert_fail(97838,97879,166,97924);abort()}function dmGameSystem__CompMeshCreate_28dmGameObject__ComponentCreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=0,$6=Math_fround(0),$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=0,$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0);$2=global$0-80|0;global$0=$2;$3=HEAP32[$0+64>>2];$1=$3+36|0;label$1:{$8=HEAP32[$3+44>>2];label$2:{if(($8|0)==HEAP32[$3+40>>2]){HEAP32[$2>>2]=$8-HEAP32[$1>>2]>>2;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,44464,44472,$2);$0=-1e3;break label$2}$8=dmObjectPool_dmGameSystem__MeshComponent____Alloc_28_29($1);$1=operator_20new_28unsigned_20long_29(1008);dmGameSystem__CompRenderConstants__CompRenderConstants_28_29($1+160|0);$1=memset($1,0,1008);$5=HEAP32[$3+52>>2];if(HEAP32[$3+56>>2]-$5>>3>>>0<=$8>>>0){break label$1}$12=HEAP32[$3+40>>2];$3=HEAP32[$3+36>>2];$5=HEAP32[$5+($8<<3)>>2];if($12-$3>>2>>>0<=$5>>>0){break label$1}HEAP32[$3+($5<<2)>>2]=$1;HEAP32[$1>>2]=HEAP32[$0>>2];$10=HEAPF32[$0+36>>2];$6=HEAPF32[$0+44>>2];$13=HEAPF32[$0+40>>2];$3=HEAP32[$0+24>>2];$4=HEAPF32[$0+32>>2];$5=HEAP32[$0+20>>2];$12=HEAP32[$0+16>>2];HEAP32[$1+28>>2]=0;HEAP32[$1+44>>2]=0;HEAP32[$1+60>>2]=0;HEAP32[$1+64>>2]=$12;HEAP32[$1+68>>2]=$5;HEAP32[$1+76>>2]=1065353216;HEAP32[$1+72>>2]=$3;$14=Math_fround($10+$10);$9=Math_fround($4*$14);$11=Math_fround($13+$13);$7=Math_fround($6*$11);HEAPF32[$1+20>>2]=$9+$7;$15=Math_fround($4*$11);$16=Math_fround($14*$6);HEAPF32[$1+24>>2]=$15-$16;HEAPF32[$1+32>>2]=$9-$7;$9=Math_fround($10*$11);$7=$6;$6=Math_fround($4+$4);$7=Math_fround($7*$6);HEAPF32[$1+40>>2]=$9+$7;HEAPF32[$1+48>>2]=$15+$16;HEAPF32[$1+52>>2]=$9-$7;$4=Math_fround(Math_fround(1)-Math_fround($4*$6));$6=Math_fround($13*$11);HEAPF32[$1+36>>2]=$4-$6;$7=$4;$4=Math_fround($10*$14);HEAPF32[$1+56>>2]=$7-$4;HEAPF32[$1+16>>2]=Math_fround(Math_fround(1)-$4)-$6;HEAP32[$1+944>>2]=HEAP32[$0+60>>2];HEAP16[$1+1e3>>1]=HEAPU16[$0+76>>1];HEAP32[$1+84>>2]=0;HEAP32[$1+88>>2]=0;HEAP32[$1+80>>2]=1065353216;HEAP32[$1+92>>2]=0;HEAP32[$1+96>>2]=0;HEAP32[$1+104>>2]=0;HEAP32[$1+108>>2]=0;HEAP32[$1+100>>2]=1065353216;HEAP32[$1+112>>2]=0;HEAP32[$1+116>>2]=0;HEAP32[$1+124>>2]=0;HEAP32[$1+128>>2]=0;HEAP32[$1+120>>2]=1065353216;HEAP32[$1+132>>2]=0;HEAP32[$1+136>>2]=0;HEAP32[$1+140>>2]=1065353216;HEAP8[$1+1002|0]=HEAPU8[$1+1002|0]|1;$3=$1+16|0;$5=dmGameObject__GetWorldMatrix_28dmGameObject__Instance__29(HEAP32[$1>>2]);label$4:{if((HEAPU8[HEAP32[$1>>2]+137|0]&2)>>>1){Vectormath__Aos__Matrix4__operator__28Vectormath__Aos__Matrix4_20const__29_20const($2+16|0,$5,$3);break label$4}dmTransform__MulNoScaleZ_28Vectormath__Aos__Matrix4_20const__2c_20Vectormath__Aos__Matrix4_20const__29($2+16|0,$5,$3)}HEAP32[$1+80>>2]=HEAP32[$2+16>>2];HEAP32[$1+84>>2]=HEAP32[$2+20>>2];HEAP32[$1+88>>2]=HEAP32[$2+24>>2];HEAP32[$1+92>>2]=HEAP32[$2+28>>2];HEAP32[$1+96>>2]=HEAP32[$2+32>>2];HEAP32[$1+100>>2]=HEAP32[$2+36>>2];HEAP32[$1+104>>2]=HEAP32[$2+40>>2];HEAP32[$1+108>>2]=HEAP32[$2+44>>2];HEAP32[$1+112>>2]=HEAP32[$2+48>>2];HEAP32[$1+116>>2]=HEAP32[$2+52>>2];HEAP32[$1+120>>2]=HEAP32[$2+56>>2];HEAP32[$1+124>>2]=HEAP32[$2+60>>2];HEAP32[$1+128>>2]=HEAP32[$2+64>>2];HEAP32[$1+132>>2]=HEAP32[$2+68>>2];HEAP32[$1+136>>2]=HEAP32[$2+72>>2];HEAP32[$1+140>>2]=HEAP32[$2+76>>2];dmGameSystem__ReHash_28dmGameSystem__MeshComponent__29($1);HEAP32[HEAP32[$0+72>>2]>>2]=$8;$0=0}global$0=$2+80|0;return $0|0}__assert_fail(45474,44749,430,45485);abort()}function dmGameSystem__CompFactoryUpdate_28dmGameObject__ComponentsUpdateParams_20const__2c_20dmGameObject__ComponentsUpdateResult__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$5=global$0-16|0;global$0=$5;label$1:{$6=HEAP32[$0+8>>2];$1=HEAP32[$6>>2];if(($1|0)!=HEAP32[$6+4>>2]){while(1){$2=Math_imul($7,24)+$1|0;label$4:{if((HEAPU8[$2+20|0]&3)!=3){break label$4}$1=0;$4=HEAP32[$0>>2];label$5:{if(!$4){break label$5}$4=HEAP32[$4>>2];if(!$4){break label$5}$1=HEAP32[$4>>2]}$4=HEAP32[$2+4>>2];label$6:{if(!$4){$3=0;break label$6}HEAP32[$5+12>>2]=$2;HEAP32[$5+8>>2]=$1;$3=dmResource__UpdatePreloader_28dmResource__ResourcePreloader__2c_20bool_20_28__29_28dmResource__PreloaderCompleteCallbackParams_20const__29_2c_20dmResource__PreloaderCompleteCallbackParams__2c_20unsigned_20int_29($4,451,$5+8|0,1e4);if(($3|0)==-17){break label$4}}HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$4=HEAP32[HEAP32[$0+12>>2]>>2];$1=0;label$8:{if(!$4){break label$8}$1=HEAP32[$4+120>>2]}$4=HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4;lua_rawgeti($1,-1e4,HEAP32[$2+8>>2]);lua_rawgeti($1,-1e4,HEAP32[$2+12>>2]);lua_pushvalue($1,-1);dmScript__SetInstance_28lua_State__29($1);if(!dmScript__IsValidInstance_28lua_State__29($1)){lua_settop($1,-3);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,39275,39573,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)==HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$4}__assert_fail(39657,39678,326,39721);abort()}if(HEAP32[$2+8>>2]==-2){lua_settop($1,-3);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,39275,39734,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)==HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$4}__assert_fail(39657,39678,334,39721);abort()}lua_rawgeti($1,-1e4,HEAP32[$2+16>>2]);$8=HEAP32[$1+8>>2];HEAP32[$8+8>>2]=1;HEAP32[$8>>2]=(!$3|0)!=0;HEAP32[$1+8>>2]=HEAP32[$1+8>>2]+16;dmScript__PCall_28lua_State__2c_20int_2c_20int_29($1,3,0);HEAP8[$2+20|0]=HEAPU8[$2+20|0]&254;$3=HEAP32[$2+8>>2];if(($3|0)!=-2){dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,$3);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+12>>2]);dmScript__Unref_28lua_State__2c_20int_2c_20int_29($1,-1e4,HEAP32[$2+16>>2]);HEAP32[$2+8>>2]=-2;HEAP32[$2+12>>2]=-2;HEAP32[$2+16>>2]=-2}$3=HEAP32[$2+4>>2];if($3){dmResource__DeletePreloader_28dmResource__ResourcePreloader__29($3);HEAP32[$2+4>>2]=0}if(($4|0)!=HEAP32[$1+8>>2]-HEAP32[$1+12>>2]>>4){break label$1}}$7=$7+1|0;$1=HEAP32[$6>>2];if($7>>>0<(HEAP32[$6+4>>2]-$1|0)/24>>>0){continue}break}}global$0=$5+16|0;return 0}__assert_fail(39657,39678,342,39721);abort()}function void_20std____2____stable_sort_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0;label$1:{if($3>>>0<=2){if($3-2){break label$1}$2=HEAP32[$2>>2];$1=$1+ -4|0;$3=HEAP32[$1>>2];$4=HEAP32[$0>>2];if(HEAPU32[($2+Math_imul($3,48)|0)+24>>2]>=HEAPU32[($2+Math_imul($4,48)|0)+24>>2]){break label$1}HEAP32[$0>>2]=$3;HEAP32[$1>>2]=$4;return}if(($3|0)<=128){if(($0|0)==($1|0)){break label$1}$3=$0+4|0;if(($3|0)==($1|0)){break label$1}$5=HEAP32[$2>>2];while(1){$6=HEAP32[$3>>2];$4=$0;label$5:{if(($4|0)==($3|0)){break label$5}$7=$5+Math_imul($6,48)|0;$4=$3;while(1){$2=$4+ -4|0;$8=HEAP32[$2>>2];if(HEAPU32[$7+24>>2]>=HEAPU32[($5+Math_imul($8,48)|0)+24>>2]){break label$5}HEAP32[$4>>2]=$8;$4=$2;if(($4|0)!=($0|0)){continue}break}$4=$0}HEAP32[$4>>2]=$6;$3=$3+4|0;if(($3|0)!=($1|0)){continue}break}break label$1}$6=$3>>>1|0;$8=$6<<2;$7=$8+$0|0;label$7:{if(($3|0)<=($5|0)){void_20std____2____stable_sort_move_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($0,$7,$2,$6,$4);$5=$1;$1=$4+$8|0;void_20std____2____stable_sort_move_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($7,$5,$2,$3-$6|0,$1);$5=($3<<2)+$4|0;$2=HEAP32[$2>>2];$3=$1;while(1){if(($3|0)==($5|0)){if(($1|0)==($4|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$4>>2];$0=$0+4|0;$4=$4+4|0;if(($1|0)!=($4|0)){continue}break}break label$1}$6=HEAP32[$3>>2];$7=HEAP32[$4>>2];label$12:{if(HEAPU32[($2+Math_imul($6,48)|0)+24>>2]>2]){HEAP32[$0>>2]=$6;$3=$3+4|0;break label$12}HEAP32[$0>>2]=$7;$4=$4+4|0}$0=$0+4|0;if(($1|0)!=($4|0)){continue}break}break label$7}void_20std____2____stable_sort_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$2,$6,$4,$5);$3=$3-$6|0;void_20std____2____stable_sort_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($7,$1,$2,$3,$4,$5);void_20std____2____inplace_merge_dmRender__RenderListEntrySorter__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmRender__RenderListEntrySorter__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$1,$2,$6,$3,$4,$5);break label$1}if(($3|0)==($5|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$3>>2];$0=$0+4|0;$3=$3+4|0;if(($5|0)!=($3|0)){continue}break}}}function dmGameSystem__CompSpineModelGetProperty_28dmGameObject__ComponentGetPropertyParams_20const__2c_20dmGameObject__PropertyDesc__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=Math_fround(0),$8=0,$9=0;$2=global$0-48|0;global$0=$2;$3=HEAP32[$0+4>>2];$4=HEAP32[$3+16>>2];$5=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$3+20>>2]-$4>>3>>>0>$5>>>0){$6=HEAP32[$3+4>>2];$3=HEAP32[$3>>2];$4=HEAP32[$4+($5<<3)>>2];if($6-$3>>2>>>0>$4>>>0){$3=HEAP32[$3+($4<<2)>>2];$4=HEAP32[$0+16>>2];$5=HEAP32[$0+20>>2];label$3:{if(($4|0)==HEAP32[146538]&($5|0)==HEAP32[146539]){$0=HEAP32[$3+132>>2];$3=HEAP32[$0+204>>2];HEAP32[$2+16>>2]=HEAP32[$0+200>>2];HEAP32[$2+20>>2]=$3;HEAP32[$2+8>>2]=1;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$3}if(($4|0)==HEAP32[146540]&($5|0)==HEAP32[146541]){$0=HEAP32[$3+132>>2];$0=((HEAP8[$0+224|0]&1)<<5)+$0|0;$3=HEAP32[$0+12>>2];HEAP32[$2+16>>2]=HEAP32[$0+8>>2];HEAP32[$2+20>>2]=$3;HEAP32[$2+8>>2]=1;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$3}if(($4|0)==HEAP32[146542]&($5|0)==HEAP32[146543]){$0=$2+8|0;$7=dmRig__GetCursor_28dmRig__RigInstance__2c_20bool_29(HEAP32[$3+132>>2]);HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$7;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$3}if(($4|0)==HEAP32[146544]&($5|0)==HEAP32[146545]){$0=$2+8|0;$7=dmRig__GetPlaybackRate_28dmRig__RigInstance__29(HEAP32[$3+132>>2]);HEAP32[$0>>2]=0;HEAPF64[$0+8>>3]=$7;$3=HEAP32[$2+44>>2];$0=$1- -64|0;HEAP32[$0>>2]=HEAP32[$2+40>>2];HEAP32[$0+4>>2]=$3;$0=HEAP32[$2+36>>2];HEAP32[$1+56>>2]=HEAP32[$2+32>>2];HEAP32[$1+60>>2]=$0;$0=HEAP32[$2+28>>2];HEAP32[$1+48>>2]=HEAP32[$2+24>>2];HEAP32[$1+52>>2]=$0;$0=HEAP32[$2+20>>2];HEAP32[$1+40>>2]=HEAP32[$2+16>>2];HEAP32[$1+44>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1+32>>2]=HEAP32[$2+8>>2];HEAP32[$1+36>>2]=$0;$0=0;break label$3}$8=HEAP32[146518];$9=HEAP32[146519];$6=HEAP32[$3+960>>2];if(!$6){$6=HEAP32[HEAP32[$3+128>>2]+8>>2]}if(($4|0)==($8|0)&($5|0)==($9|0)){$0=dmGameSystem__GetResourceProperty_28dmResource__SResourceFactory__2c_20void__2c_20dmGameObject__PropertyDesc__29(HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2],$6,$1);break label$3}$0=dmGameSystem__GetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__2c_20bool_2c_20bool_20_28__29_28void__2c_20unsigned_20long_20long_2c_20dmRender__Constant___29_2c_20void__29($6,$4,$5,$1,1,482,$3)}global$0=$2+48|0;return $0|0}}__assert_fail(50664,50554,430,50675);abort()}function chacha20_block($0,$1){var $2=0,$3=0,$4=0;$2=global$0+ -64|0;global$0=$2;$3=HEAP32[$0+60>>2];HEAP32[$2+56>>2]=HEAP32[$0+56>>2];HEAP32[$2+60>>2]=$3;$3=HEAP32[$0+52>>2];HEAP32[$2+48>>2]=HEAP32[$0+48>>2];HEAP32[$2+52>>2]=$3;$3=HEAP32[$0+44>>2];HEAP32[$2+40>>2]=HEAP32[$0+40>>2];HEAP32[$2+44>>2]=$3;$3=HEAP32[$0+36>>2];HEAP32[$2+32>>2]=HEAP32[$0+32>>2];HEAP32[$2+36>>2]=$3;$3=HEAP32[$0+28>>2];HEAP32[$2+24>>2]=HEAP32[$0+24>>2];HEAP32[$2+28>>2]=$3;$3=HEAP32[$0+20>>2];HEAP32[$2+16>>2]=HEAP32[$0+16>>2];HEAP32[$2+20>>2]=$3;$3=HEAP32[$0+4>>2];HEAP32[$2>>2]=HEAP32[$0>>2];HEAP32[$2+4>>2]=$3;$3=HEAP32[$0+12>>2];HEAP32[$2+8>>2]=HEAP32[$0+8>>2];HEAP32[$2+12>>2]=$3;chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);chacha20_inner_block($2);$3=HEAP32[$2>>2]+HEAP32[$0>>2]|0;HEAP32[$2>>2]=$3;$4=HEAP32[$2+4>>2]+HEAP32[$0+4>>2]|0;HEAP32[$2+4>>2]=$4;HEAP32[$2+8>>2]=HEAP32[$2+8>>2]+HEAP32[$0+8>>2];HEAP32[$2+12>>2]=HEAP32[$2+12>>2]+HEAP32[$0+12>>2];HEAP32[$2+16>>2]=HEAP32[$2+16>>2]+HEAP32[$0+16>>2];HEAP32[$2+20>>2]=HEAP32[$2+20>>2]+HEAP32[$0+20>>2];HEAP32[$2+24>>2]=HEAP32[$2+24>>2]+HEAP32[$0+24>>2];HEAP32[$2+28>>2]=HEAP32[$2+28>>2]+HEAP32[$0+28>>2];HEAP32[$2+32>>2]=HEAP32[$2+32>>2]+HEAP32[$0+32>>2];HEAP32[$2+36>>2]=HEAP32[$2+36>>2]+HEAP32[$0+36>>2];HEAP32[$2+40>>2]=HEAP32[$2+40>>2]+HEAP32[$0+40>>2];HEAP32[$2+44>>2]=HEAP32[$2+44>>2]+HEAP32[$0+44>>2];HEAP32[$2+48>>2]=HEAP32[$2+48>>2]+HEAP32[$0+48>>2];HEAP32[$2+52>>2]=HEAP32[$2+52>>2]+HEAP32[$0+52>>2];HEAP32[$2+56>>2]=HEAP32[$2+56>>2]+HEAP32[$0+56>>2];HEAP32[$2+60>>2]=HEAP32[$2+60>>2]+HEAP32[$0+60>>2];HEAP8[$1+7|0]=$4>>>24;HEAP8[$1+6|0]=$4>>>16;HEAP8[$1+5|0]=$4>>>8;HEAP8[$1+4|0]=$4;HEAP8[$1+3|0]=$3>>>24;HEAP8[$1+2|0]=$3>>>16;HEAP8[$1+1|0]=$3>>>8;HEAP8[$1|0]=$3;$0=HEAP32[$2+8>>2];HEAP8[$1+8|0]=$0;HEAP8[$1+9|0]=$0>>>8;HEAP8[$1+10|0]=$0>>>16;HEAP8[$1+11|0]=$0>>>24;$0=HEAP32[$2+12>>2];HEAP8[$1+12|0]=$0;HEAP8[$1+13|0]=$0>>>8;HEAP8[$1+14|0]=$0>>>16;HEAP8[$1+15|0]=$0>>>24;$0=HEAP32[$2+16>>2];HEAP8[$1+16|0]=$0;HEAP8[$1+17|0]=$0>>>8;HEAP8[$1+18|0]=$0>>>16;HEAP8[$1+19|0]=$0>>>24;$0=HEAP32[$2+20>>2];HEAP8[$1+20|0]=$0;HEAP8[$1+21|0]=$0>>>8;HEAP8[$1+22|0]=$0>>>16;HEAP8[$1+23|0]=$0>>>24;$0=HEAP32[$2+24>>2];HEAP8[$1+24|0]=$0;HEAP8[$1+25|0]=$0>>>8;HEAP8[$1+26|0]=$0>>>16;HEAP8[$1+27|0]=$0>>>24;$0=HEAP32[$2+28>>2];HEAP8[$1+28|0]=$0;HEAP8[$1+29|0]=$0>>>8;HEAP8[$1+30|0]=$0>>>16;HEAP8[$1+31|0]=$0>>>24;$0=HEAP32[$2+32>>2];HEAP8[$1+32|0]=$0;HEAP8[$1+33|0]=$0>>>8;HEAP8[$1+34|0]=$0>>>16;HEAP8[$1+35|0]=$0>>>24;$0=HEAP32[$2+36>>2];HEAP8[$1+36|0]=$0;HEAP8[$1+37|0]=$0>>>8;HEAP8[$1+38|0]=$0>>>16;HEAP8[$1+39|0]=$0>>>24;$0=HEAP32[$2+40>>2];HEAP8[$1+40|0]=$0;HEAP8[$1+41|0]=$0>>>8;HEAP8[$1+42|0]=$0>>>16;HEAP8[$1+43|0]=$0>>>24;$0=HEAP32[$2+44>>2];HEAP8[$1+44|0]=$0;HEAP8[$1+45|0]=$0>>>8;HEAP8[$1+46|0]=$0>>>16;HEAP8[$1+47|0]=$0>>>24;$0=HEAP32[$2+48>>2];HEAP8[$1+48|0]=$0;HEAP8[$1+49|0]=$0>>>8;HEAP8[$1+50|0]=$0>>>16;HEAP8[$1+51|0]=$0>>>24;$0=HEAP32[$2+52>>2];HEAP8[$1+52|0]=$0;HEAP8[$1+53|0]=$0>>>8;HEAP8[$1+54|0]=$0>>>16;HEAP8[$1+55|0]=$0>>>24;$0=HEAP32[$2+56>>2];HEAP8[$1+56|0]=$0;HEAP8[$1+57|0]=$0>>>8;HEAP8[$1+58|0]=$0>>>16;HEAP8[$1+59|0]=$0>>>24;$0=HEAP32[$2+60>>2];HEAP8[$1+60|0]=$0;HEAP8[$1+61|0]=$0>>>8;HEAP8[$1+62|0]=$0>>>16;HEAP8[$1+63|0]=$0>>>24;FUNCTION_TABLE[HEAP32[139546]]($2,0,64)|0;global$0=$2- -64|0}function btCompoundCollisionAlgorithm__calculateTimeOfImpact_28btCollisionObject__2c_20btCollisionObject__2c_20btDispatcherInfo_20const__2c_20btManifoldResult__29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=0,$6=Math_fround(0),$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=Math_fround(0),$11=Math_fround(0),$12=Math_fround(0),$13=Math_fround(0),$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=0,$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=Math_fround(0),$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=Math_fround(0),$28=Math_fround(0),$29=0,$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=0,$34=0,$35=0,$36=0,$37=0,$38=0;$29=HEAP32[$0+12>>2];if(($29|0)<1){return Math_fround(Math_fround(1))}$5=HEAPU8[$0+28|0];$33=$5?$1:$2;$1=$5?$2:$1;$34=HEAP32[$1- -64>>2];$30=HEAPF32[$1+60>>2];$31=HEAPF32[$1+56>>2];$32=HEAPF32[$1+52>>2];$35=HEAP32[$1+48>>2];$7=HEAPF32[$1+44>>2];$8=HEAPF32[$1+40>>2];$9=HEAPF32[$1+36>>2];$36=HEAP32[$1+32>>2];$10=HEAPF32[$1+28>>2];$11=HEAPF32[$1+24>>2];$12=HEAPF32[$1+20>>2];$37=HEAP32[$1+16>>2];$13=HEAPF32[$1+12>>2];$14=HEAPF32[$1+8>>2];$15=HEAPF32[$1+4>>2];$38=HEAP32[$1+192>>2];$16=Math_fround(1);$5=0;while(1){$2=HEAP32[$38+24>>2]+Math_imul($5,80)|0;$17=HEAP32[$2+64>>2];$6=HEAPF32[$2+56>>2];$18=HEAPF32[$2+52>>2];$19=HEAPF32[$2+48>>2];$20=HEAPF32[$2+36>>2];$21=HEAPF32[$2+20>>2];$22=HEAPF32[$2+4>>2];$23=HEAPF32[$2+40>>2];$24=HEAPF32[$2+24>>2];$25=HEAPF32[$2+8>>2];$26=HEAPF32[$2+32>>2];$27=HEAPF32[$2>>2];$28=HEAPF32[$2+16>>2];HEAP32[$1+64>>2]=0;HEAP32[$1+48>>2]=0;HEAP32[$1+32>>2]=0;HEAP32[$1+16>>2]=0;HEAPF32[$1+36>>2]=Math_fround(Math_fround($9*$27)+Math_fround($8*$28))+Math_fround($7*$26);HEAPF32[$1+20>>2]=Math_fround(Math_fround($12*$27)+Math_fround($11*$28))+Math_fround($10*$26);HEAPF32[$1+4>>2]=Math_fround(Math_fround($15*$27)+Math_fround($14*$28))+Math_fround($13*$26);HEAPF32[$1+44>>2]=Math_fround(Math_fround($9*$25)+Math_fround($8*$24))+Math_fround($7*$23);HEAPF32[$1+40>>2]=Math_fround(Math_fround($9*$22)+Math_fround($8*$21))+Math_fround($7*$20);HEAPF32[$1+28>>2]=Math_fround(Math_fround($12*$25)+Math_fround($11*$24))+Math_fround($10*$23);HEAPF32[$1+24>>2]=Math_fround(Math_fround($12*$22)+Math_fround($11*$21))+Math_fround($10*$20);HEAPF32[$1+12>>2]=Math_fround(Math_fround($15*$25)+Math_fround($14*$24))+Math_fround($13*$23);HEAPF32[$1+8>>2]=Math_fround(Math_fround($15*$22)+Math_fround($14*$21))+Math_fround($13*$20);HEAPF32[$1+60>>2]=$30+Math_fround(Math_fround(Math_fround($9*$19)+Math_fround($8*$18))+Math_fround($7*$6));HEAPF32[$1+56>>2]=$31+Math_fround(Math_fround(Math_fround($12*$19)+Math_fround($11*$18))+Math_fround($10*$6));HEAPF32[$1+52>>2]=$32+Math_fround(Math_fround(Math_fround($15*$19)+Math_fround($14*$18))+Math_fround($13*$6));$2=HEAP32[$1+192>>2];HEAP32[$1+192>>2]=$17;$17=HEAP32[HEAP32[$0+20>>2]+($5<<2)>>2];$6=Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$17>>2]+12>>2]]($17,$1,$33,$3,$4));HEAP32[$1+64>>2]=$34;HEAPF32[$1+60>>2]=$30;HEAPF32[$1+56>>2]=$31;HEAPF32[$1+52>>2]=$32;HEAP32[$1+48>>2]=$35;HEAPF32[$1+44>>2]=$7;HEAPF32[$1+40>>2]=$8;HEAPF32[$1+36>>2]=$9;HEAP32[$1+32>>2]=$36;HEAPF32[$1+28>>2]=$10;HEAPF32[$1+24>>2]=$11;HEAPF32[$1+20>>2]=$12;HEAP32[$1+16>>2]=$37;HEAPF32[$1+12>>2]=$13;HEAPF32[$1+8>>2]=$14;HEAPF32[$1+4>>2]=$15;HEAP32[$1+192>>2]=$2;$16=$6<$16?$6:$16;$5=$5+1|0;if(($29|0)!=($5|0)){continue}break}return Math_fround($16)}function dmHttpCache__End_28dmHttpCache__Cache__2c_20dmHttpCache__CacheCreator__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0;$3=global$0-1248|0;global$0=$3;$9=HEAP32[$0+48>>2];dmMutex__Lock_28dmMutex__Mutex__29($9);label$1:{label$2:{$2=HEAP32[$1+4>>2];label$3:{label$4:{label$5:{label$6:{if(!(!$2|!HEAP32[$1>>2])){$10=HEAP32[$1+40>>2];$11=HEAP32[$1+44>>2];fclose($2);HEAP32[$1+4>>2]=0;$2=HEAP32[$0+20>>2];label$8:{label$9:{if(!$2){break label$9}$12=$0+16|0;$7=HEAP32[$1+48>>2];$8=HEAP32[$1+52>>2];$2=HEAP32[HEAP32[$12>>2]+(__wasm_i64_urem($7,$8,$2)<<2)>>2];if(($2|0)==-1){break label$9}$5=HEAP32[$0+24>>2];while(1){$4=$5+Math_imul($2,136)|0;if(($7|0)==HEAP32[$4>>2]&($8|0)==HEAP32[$4+4>>2]){break label$8}$2=HEAP32[$4+128>>2];if(($2|0)!=-1){continue}break}}__assert_fail(148580,148511,573,148576);abort()}if(HEAP8[$1+58|0]&1){break label$4}dmHttpCache__ContentFilePath_28dmHttpCache__Cache__2c_20unsigned_20long_20long_2c_20char__2c_20int_29(HEAP32[$0>>2],$10,$11,$3+224|0);label$11:{if(!stat($3+224|0,$3+136|0)){if(!dmSys__Unlink_28char_20const__29($3+224|0)){break label$11}HEAP32[$3+16>>2]=$3+224;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,147820,148586,$3+16|0);$2=HEAP32[$1+4>>2];if($2){fclose($2)}break label$4}$4=strrchr($3+224|0,47);$6=HEAPU8[$4|0];HEAP8[$4|0]=0;label$14:{if(!stat($3+224|0,$3+48|0)){break label$14}if(!dmSys__Mkdir_28char_20const__2c_20unsigned_20int_29($3+224|0)){break label$14}HEAP32[$3+32>>2]=$3+224;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,147820,148618,$3+32|0);$2=HEAP32[$1+4>>2];if($2){fclose($2)}break label$4}HEAP8[$4|0]=$6}$4=$5+Math_imul($2,136)|0;$6=HEAPU16[$4+120>>1];if(!($6&256)){break label$6}if(($10|0)!=HEAP32[$4+80>>2]|($11|0)!=HEAP32[$4+84>>2]){break label$5}HEAP16[$4+120>>1]=$6&65279;$2=$5+Math_imul($2,136)|0;HEAP32[$2+104>>2]=dmHashFinal64($1+8|0);HEAP32[$2+108>>2]=i64toi32_i32$HIGH_BITS;if(rename(HEAP32[$1>>2],$3+224|0)){$2=strerror(HEAP32[310273]);$5=HEAP32[$1>>2];HEAP32[$3+12>>2]=HEAP32[310273];HEAP32[$3+8>>2]=$2;HEAP32[$3>>2]=$5;HEAP32[$3+4>>2]=$3+224;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,147820,148719,$3);$2=HEAP32[$1+4>>2];if($2){fclose($2)}break label$4}$2=HEAP32[$1+4>>2];if($2){fclose($2)}$2=HEAP32[$1>>2];if($2){dmSys__Unlink_28char_20const__29($2);dlfree(HEAP32[$1>>2])}$5=HEAP32[$0+52>>2];if(!$5){break label$2}$2=HEAPU16[$0+58>>1];if(!$2|$2>>>0>HEAPU16[$0+56>>1]){break label$1}$4=HEAPU16[$1+56>>1];$2=$2+ -1|0;HEAP16[$0+58>>1]=$2;HEAP16[$5+(($2&65535)<<1)>>1]=$4;HEAP16[$1+56>>1]=65535;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP8[$0+88|0]=1;break label$3}__assert_fail(148460,148511,565,148576);abort()}__assert_fail(148650,148511,619,148576);abort()}__assert_fail(148669,148511,620,148576);abort()}$2=HEAP32[$1>>2];if($2){dmSys__Unlink_28char_20const__29($2);dlfree(HEAP32[$1>>2])}$5=HEAP32[$0+52>>2];if(!$5){break label$2}$2=HEAPU16[$0+58>>1];if(!$2|$2>>>0>HEAPU16[$0+56>>1]){break label$1}$4=HEAPU16[$1+56>>1];$6=$0;$0=$2+ -1|0;HEAP16[$6+58>>1]=$0;HEAP16[$5+(($0&65535)<<1)>>1]=$4;HEAP16[$1+56>>1]=65535;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;dmHashTable_unsigned_20long_20long_2c_20dmHttpCache__Entry___Erase_28unsigned_20long_20long_29($12,$7,$8)}dmMutex__Unlock_28dmMutex__Mutex__29($9);global$0=$3+1248|0;return}__assert_fail(149415,149152,137,149446);abort()}__assert_fail(149451,149152,138,149446);abort()}function dmGameSystem__CompModelSetProperty_28dmGameObject__ComponentSetPropertyParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0;$5=global$0-48|0;global$0=$5;$1=HEAP32[$0+4>>2];$2=HEAP32[$1+16>>2];label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{$3=HEAP32[HEAP32[$0+24>>2]>>2];if(HEAP32[$1+20>>2]-$2>>3>>>0>$3>>>0){$4=HEAP32[$1+4>>2];$1=HEAP32[$1>>2];$2=HEAP32[$2+($3<<3)>>2];if($4-$1>>2>>>0<=$2>>>0){break label$1}$2=HEAP32[$1+($2<<2)>>2];$3=HEAP32[$0+16>>2];$4=HEAP32[$0+20>>2];if(($3|0)==HEAP32[146366]&($4|0)==HEAP32[146367]){$1=-4;if(HEAP32[$0+32>>2]!=1){break label$2}$1=0;if((dmRig__SetMesh_28dmRig__RigInstance__2c_20unsigned_20long_20long_29(HEAP32[$2+132>>2],HEAP32[$0+40>>2],HEAP32[$0+44>>2])|0)!=1){break label$2}HEAP32[$5>>2]=dmHashReverseSafe64(HEAP32[$0+40>>2],HEAP32[$0+44>>2]);dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,46247,$5);$1=-8;break label$2}if(($3|0)==HEAP32[146370]&($4|0)==HEAP32[146371]){$1=-4;if(HEAP32[$0+32>>2]){break label$2}$1=0;if((dmRig__SetCursor_28dmRig__RigInstance__2c_20float_2c_20bool_29(HEAP32[$2+132>>2],Math_fround(HEAPF64[$0+40>>3]))|0)!=1){break label$2}HEAPF64[$5+16>>3]=HEAPF64[$0+40>>3];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,46286,$5+16|0);$1=-8;break label$2}if(($3|0)==HEAP32[146372]&($4|0)==HEAP32[146373]){$1=-4;if(HEAP32[$0+32>>2]){break label$2}$1=0;if((dmRig__SetPlaybackRate_28dmRig__RigInstance__2c_20float_29(HEAP32[$2+132>>2],Math_fround(HEAPF64[$0+40>>3]))|0)!=1){break label$2}HEAPF64[$5+32>>3]=HEAPF64[$0+40>>3];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,45822,46324,$5+32|0);$1=-8;break label$2}if(HEAP32[146344]==($3|0)&HEAP32[146345]==($4|0)){break label$6}$1=0;if(HEAP32[146348]==($3|0)&HEAP32[146349]==($4|0)){break label$3}$1=1;if(HEAP32[146350]==($3|0)&HEAP32[146351]==($4|0)){break label$3}$1=2;if(HEAP32[146352]==($3|0)&HEAP32[146353]==($4|0)){break label$3}$1=3;if(HEAP32[146354]==($3|0)&HEAP32[146355]==($4|0)){break label$3}$1=4;if(HEAP32[146356]==($3|0)&HEAP32[146357]==($4|0)){break label$3}$1=5;if(HEAP32[146358]==($3|0)&HEAP32[146359]==($4|0)){break label$3}$1=6;if(HEAP32[146360]==($3|0)&HEAP32[146361]==($4|0)){break label$3}$1=7;if(HEAP32[146362]==($3|0)&HEAP32[146363]==($4|0)){break label$3}$1=HEAP32[$2+992>>2];if(!$1){break label$5}break label$4}break label$1}$1=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29(HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2],$0+32|0,HEAP32[146326],HEAP32[146327],$2+992|0);$0=HEAPU8[$2+1014|0];HEAP8[$2+1014|0]=($1?$0&8:8)|$0&247;break label$2}$1=HEAP32[HEAP32[$2+128>>2]+8>>2]}$1=dmGameSystem__SetMaterialConstant_28dmRender__Material__2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__2c_20void_20_28__29_28void__2c_20unsigned_20long_20long_2c_20unsigned_20int__2c_20dmGameObject__PropertyVar_20const__29_2c_20void__29($1,$3,$4,$0+32|0,473,$2);break label$2}$1=dmGameSystem__SetResourceProperty_28dmResource__SResourceFactory__2c_20dmGameObject__PropertyVar_20const__2c_20unsigned_20long_20long_2c_20void___29(HEAP32[HEAP32[HEAP32[$0+8>>2]+80>>2]>>2],$0+32|0,HEAP32[146334],HEAP32[146335],($2+($1<<2)|0)+960|0);$0=HEAPU8[$2+1014|0];HEAP8[$2+1014|0]=($1?$0&8:8)|$0&247}global$0=$5+48|0;return $1|0}__assert_fail(46554,46388,430,46565);abort()}function void_20std____2____stable_sort_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$1,$2,$3,$4,$5){var $6=0,$7=0,$8=0,$9=0;label$1:{if($3>>>0<=2){if($3-2){break label$1}$2=HEAP32[HEAP32[$2>>2]+232>>2];$1=$1+ -4|0;$3=HEAP32[$1>>2];$4=HEAP32[$0>>2];if(HEAPU32[($2+($3<<4)|0)+8>>2]<=HEAPU32[($2+($4<<4)|0)+8>>2]){break label$1}HEAP32[$0>>2]=$3;HEAP32[$1>>2]=$4;return}if(($3|0)<=128){if(($0|0)==($1|0)){break label$1}$3=$0+4|0;if(($3|0)==($1|0)){break label$1}$6=HEAP32[$2>>2];while(1){$5=HEAP32[$3>>2];$4=$0;label$5:{if(($4|0)==($3|0)){break label$5}$7=HEAP32[$6+232>>2];$8=$7+($5<<4)|0;$4=$3;while(1){$2=$4+ -4|0;$9=HEAP32[$2>>2];if(HEAPU32[$8+8>>2]<=HEAPU32[($7+($9<<4)|0)+8>>2]){break label$5}HEAP32[$4>>2]=$9;$4=$2;if(($4|0)!=($0|0)){continue}break}$4=$0}HEAP32[$4>>2]=$5;$3=$3+4|0;if(($3|0)!=($1|0)){continue}break}break label$1}$6=$3>>>1|0;$8=$6<<2;$7=$8+$0|0;label$7:{if(($3|0)<=($5|0)){void_20std____2____stable_sort_move_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($0,$7,$2,$6,$4);$5=$1;$1=$4+$8|0;void_20std____2____stable_sort_move_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__29($7,$5,$2,$3-$6|0,$1);$5=($3<<2)+$4|0;$2=HEAP32[$2>>2];$3=$1;while(1){if(($3|0)==($5|0)){if(($1|0)==($4|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$4>>2];$0=$0+4|0;$4=$4+4|0;if(($1|0)!=($4|0)){continue}break}break label$1}$7=HEAP32[$2+232>>2];$6=HEAP32[$3>>2];$8=HEAP32[$4>>2];label$12:{if(HEAPU32[($7+($6<<4)|0)+8>>2]>HEAPU32[($7+($8<<4)|0)+8>>2]){HEAP32[$0>>2]=$6;$3=$3+4|0;break label$12}HEAP32[$0>>2]=$8;$4=$4+4|0}$0=$0+4|0;if(($1|0)!=($4|0)){continue}break}break label$7}void_20std____2____stable_sort_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$2,$6,$4,$5);$3=$3-$6|0;void_20std____2____stable_sort_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($7,$1,$2,$3,$4,$5);void_20std____2____inplace_merge_dmProfileRender__ScopeSortPred__2c_20unsigned_20int___28unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__2c_20dmProfileRender__ScopeSortPred__2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____difference_type_2c_20std____2__iterator_traits_unsigned_20int____value_type__2c_20long_29($0,$7,$1,$2,$6,$3,$4,$5);break label$1}if(($3|0)==($5|0)){break label$1}while(1){HEAP32[$0>>2]=HEAP32[$3>>2];$0=$0+4|0;$3=$3+4|0;if(($5|0)!=($3|0)){continue}break}}}function b2ContactSolver__SolveTOIPositionConstraints_28int_2c_20int_29($0,$1,$2){var $3=0,$4=0,$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=0,$9=Math_fround(0),$10=0,$11=Math_fround(0),$12=Math_fround(0),$13=0,$14=Math_fround(0),$15=Math_fround(0),$16=Math_fround(0),$17=Math_fround(0),$18=Math_fround(0),$19=Math_fround(0),$20=Math_fround(0),$21=Math_fround(0),$22=Math_fround(0),$23=0,$24=Math_fround(0),$25=Math_fround(0),$26=Math_fround(0),$27=0,$28=Math_fround(0),$29=Math_fround(0),$30=Math_fround(0),$31=Math_fround(0),$32=Math_fround(0),$33=Math_fround(0),$34=Math_fround(0),$35=Math_fround(0),$36=Math_fround(0);$3=global$0+ -64|0;global$0=$3;if(HEAP32[$0+48>>2]>=1){while(1){$6=HEAP32[$0+36>>2]+Math_imul($23,88)|0;$27=HEAP32[$6+84>>2];$28=HEAPF32[$6+56>>2];$29=HEAPF32[$6+48>>2];$13=HEAP32[$6+36>>2];$30=HEAPF32[$6+60>>2];$31=HEAPF32[$6+52>>2];$10=HEAP32[$6+32>>2];label$4:{if(($10|0)!=($1|0)){$24=Math_fround(0);$14=Math_fround(0);if(($2|0)!=($10|0)){break label$4}}$24=HEAPF32[$6+64>>2];$14=HEAPF32[$6+40>>2]}$4=HEAP32[$0+24>>2];$13=Math_imul($13,12);$8=$4+$13|0;$15=HEAPF32[$8+8>>2];$16=HEAPF32[$8+4>>2];$17=HEAPF32[$8>>2];$10=Math_imul($10,12);$8=$10+$4|0;$18=HEAPF32[$8+8>>2];$19=HEAPF32[$8+4>>2];$20=HEAPF32[$8>>2];if(($27|0)>=1){$32=HEAPF32[$6+68>>2];$25=HEAPF32[$6+44>>2];$35=Math_fround($14+$25);$4=0;while(1){$5=cosf($18);HEAPF32[$3+60>>2]=$5;$7=sinf($18);HEAPF32[$3+56>>2]=$7;$11=cosf($15);HEAPF32[$3+44>>2]=$11;$12=sinf($15);HEAPF32[$3+40>>2]=$12;HEAPF32[$3+52>>2]=$19-Math_fround(Math_fround($29*$7)+Math_fround($31*$5));HEAPF32[$3+48>>2]=$20-Math_fround(Math_fround($29*$5)-Math_fround($31*$7));HEAPF32[$3+36>>2]=$16-Math_fround(Math_fround($28*$12)+Math_fround($30*$11));HEAPF32[$3+32>>2]=$17-Math_fround(Math_fround($28*$11)-Math_fround($30*$12));b2PositionSolverManifold__Initialize_28b2ContactPositionConstraint__2c_20b2Transform_20const__2c_20b2Transform_20const__2c_20int_29($3+8|0,$6,$3+48|0,$3+32|0,$4);$5=Math_fround(0);$7=HEAPF32[$3+24>>2];$8=$26<$7;$11=HEAPF32[$3+12>>2];$21=HEAPF32[$3+16>>2];$33=Math_fround($21-$17);$12=HEAPF32[$3+8>>2];$22=HEAPF32[$3+20>>2];$34=Math_fround($22-$16);$9=Math_fround(Math_fround($11*$33)-Math_fround($12*$34));$36=Math_fround($9*Math_fround($32*$9));$21=Math_fround($21-$20);$22=Math_fround($22-$19);$9=Math_fround(Math_fround($11*$21)-Math_fround($12*$22));$9=Math_fround($36+Math_fround($35+Math_fround($9*Math_fround($24*$9))));if(!!($9>Math_fround(0))){$5=Math_fround(Math_fround($7+Math_fround(.004999999888241291))*Math_fround(.75));$5=Math_fround(Math_fround(-Math_fround(Math_max($5>2]}$4=$4+$10|0;HEAPF32[$4+4>>2]=$19;HEAPF32[$4>>2]=$20;$4=HEAP32[$0+24>>2];HEAPF32[($4+$10|0)+8>>2]=$18;$4=$4+$13|0;HEAPF32[$4+4>>2]=$16;HEAPF32[$4>>2]=$17;HEAPF32[($13+HEAP32[$0+24>>2]|0)+8>>2]=$15;$23=$23+1|0;if(($23|0)>2]){continue}break}}global$0=$3- -64|0;return $26>=Math_fround(-.007499999832361937)}function void_20std____2____insertion_sort_3_bool_20_28___29_28dmRender__Tag_20const__2c_20dmRender__Tag_20const__29_2c_20dmRender__Tag___28dmRender__Tag__2c_20dmRender__Tag__2c_20bool_20_28___29_28dmRender__Tag_20const__2c_20dmRender__Tag_20const__29_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0;$5=global$0-16|0;global$0=$5;$3=$0+16|0;$7=FUNCTION_TABLE[HEAP32[$2>>2]]($3,$0)|0;$6=$0+32|0;$4=FUNCTION_TABLE[HEAP32[$2>>2]]($6,$3)|0;label$1:{if(!$7){if(!$4){break label$1}$4=HEAP32[$3+12>>2];HEAP32[$5+8>>2]=HEAP32[$3+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$3+4>>2];HEAP32[$5>>2]=HEAP32[$3>>2];HEAP32[$5+4>>2]=$4;$4=$6+8|0;$7=HEAP32[$4+4>>2];HEAP32[$3+8>>2]=HEAP32[$4>>2];HEAP32[$3+12>>2]=$7;$4=HEAP32[$6+4>>2];HEAP32[$3>>2]=HEAP32[$6>>2];HEAP32[$3+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$6+8>>2]=HEAP32[$5+8>>2];HEAP32[$6+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$6>>2]=HEAP32[$5>>2];HEAP32[$6+4>>2]=$4;if(!FUNCTION_TABLE[HEAP32[$2>>2]]($3,$0)){break label$1}$4=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$3+12>>2];HEAP32[$0+8>>2]=HEAP32[$3+8>>2];HEAP32[$0+12>>2]=$4;$4=HEAP32[$3+4>>2];HEAP32[$0>>2]=HEAP32[$3>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$3+8>>2]=HEAP32[$5+8>>2];HEAP32[$3+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$3>>2]=HEAP32[$5>>2];HEAP32[$3+4>>2]=$4;break label$1}if($4){$3=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$3;$3=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$3;$3=$6+8|0;$4=HEAP32[$3+4>>2];HEAP32[$0+8>>2]=HEAP32[$3>>2];HEAP32[$0+12>>2]=$4;$3=HEAP32[$6+4>>2];HEAP32[$0>>2]=HEAP32[$6>>2];HEAP32[$0+4>>2]=$3;$3=HEAP32[$5+12>>2];HEAP32[$6+8>>2]=HEAP32[$5+8>>2];HEAP32[$6+12>>2]=$3;$3=HEAP32[$5+4>>2];HEAP32[$6>>2]=HEAP32[$5>>2];HEAP32[$6+4>>2]=$3;break label$1}$4=HEAP32[$0+12>>2];HEAP32[$5+8>>2]=HEAP32[$0+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$0+4>>2];HEAP32[$5>>2]=HEAP32[$0>>2];HEAP32[$5+4>>2]=$4;$4=HEAP32[$3+12>>2];HEAP32[$0+8>>2]=HEAP32[$3+8>>2];HEAP32[$0+12>>2]=$4;$4=HEAP32[$3+4>>2];HEAP32[$0>>2]=HEAP32[$3>>2];HEAP32[$0+4>>2]=$4;$4=HEAP32[$5+12>>2];HEAP32[$3+8>>2]=HEAP32[$5+8>>2];HEAP32[$3+12>>2]=$4;$4=HEAP32[$5+4>>2];HEAP32[$3>>2]=HEAP32[$5>>2];HEAP32[$3+4>>2]=$4;if(!FUNCTION_TABLE[HEAP32[$2>>2]]($6,$3)){break label$1}$4=HEAP32[$3+12>>2];HEAP32[$5+8>>2]=HEAP32[$3+8>>2];HEAP32[$5+12>>2]=$4;$4=HEAP32[$3+4>>2];HEAP32[$5>>2]=HEAP32[$3>>2];HEAP32[$5+4>>2]=$4;$4=$6+8|0;$7=HEAP32[$4+4>>2];HEAP32[$3+8>>2]=HEAP32[$4>>2];HEAP32[$3+12>>2]=$7;$4=HEAP32[$6+4>>2];HEAP32[$3>>2]=HEAP32[$6>>2];HEAP32[$3+4>>2]=$4;$3=HEAP32[$5+12>>2];HEAP32[$6+8>>2]=HEAP32[$5+8>>2];HEAP32[$6+12>>2]=$3;$3=HEAP32[$5+4>>2];HEAP32[$6>>2]=HEAP32[$5>>2];HEAP32[$6+4>>2]=$3}$3=$0+48|0;if(($3|0)!=($1|0)){while(1){$4=$3;if(FUNCTION_TABLE[HEAP32[$2>>2]]($3,$6)){$7=$4;$3=HEAP32[$4+12>>2];HEAP32[$5+8>>2]=HEAP32[$4+8>>2];HEAP32[$5+12>>2]=$3;$3=HEAP32[$4+4>>2];HEAP32[$5>>2]=HEAP32[$4>>2];HEAP32[$5+4>>2]=$3;while(1){label$8:{$3=$6;$6=HEAP32[$3+4>>2];HEAP32[$7>>2]=HEAP32[$3>>2];HEAP32[$7+4>>2]=$6;$6=HEAP32[$3+12>>2];HEAP32[$7+8>>2]=HEAP32[$3+8>>2];HEAP32[$7+12>>2]=$6;if(($0|0)==($3|0)){$3=$0;break label$8}$7=$3;$6=$3+ -16|0;if(FUNCTION_TABLE[HEAP32[$2>>2]]($5,$6)){continue}}break}$6=HEAP32[$5+4>>2];HEAP32[$3>>2]=HEAP32[$5>>2];HEAP32[$3+4>>2]=$6;$6=HEAP32[$5+12>>2];HEAP32[$3+8>>2]=HEAP32[$5+8>>2];HEAP32[$3+12>>2]=$6}$6=$4;$3=$4+16|0;if(($3|0)!=($1|0)){continue}break}}global$0=$5+16|0}function __rem_pio2($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;$5=global$0-48|0;global$0=$5;wasm2js_scratch_store_f64(+$0);$3=wasm2js_scratch_load_i32(1)|0;$8=wasm2js_scratch_load_i32(0)|0;label$1:{label$2:{$4=$3;$3=$4;$6=$4&2147483647;label$3:{if($6>>>0<=1074752122){if(($3&1048575)==598523){break label$3}if($6>>>0<=1073928572){if(($4|0)>0?1:($4|0)>=0?$8>>>0<0?0:1:0){$0=$0+ -1.5707963267341256;$2=$0+ -6.077100506506192e-11;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+ -6.077100506506192e-11;$3=1;break label$1}$0=$0+1.5707963267341256;$2=$0+6.077100506506192e-11;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+6.077100506506192e-11;$3=-1;break label$1}if(($4|0)>0?1:($4|0)>=0?$8>>>0<0?0:1:0){$0=$0+ -3.1415926534682512;$2=$0+ -1.2154201013012384e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+ -1.2154201013012384e-10;$3=2;break label$1}$0=$0+3.1415926534682512;$2=$0+1.2154201013012384e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+1.2154201013012384e-10;$3=-2;break label$1}if($6>>>0<=1075594811){if($6>>>0<=1075183036){if(($6|0)==1074977148){break label$3}if(($4|0)>0?1:($4|0)>=0?$8>>>0<0?0:1:0){$0=$0+ -4.712388980202377;$2=$0+ -1.8231301519518578e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+ -1.8231301519518578e-10;$3=3;break label$1}$0=$0+4.712388980202377;$2=$0+1.8231301519518578e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+1.8231301519518578e-10;$3=-3;break label$1}if(($6|0)==1075388923){break label$3}if(($4|0)>0?1:($4|0)>=0?$8>>>0<0?0:1:0){$0=$0+ -6.2831853069365025;$2=$0+ -2.430840202602477e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+ -2.430840202602477e-10;$3=4;break label$1}$0=$0+6.2831853069365025;$2=$0+2.430840202602477e-10;HEAPF64[$1>>3]=$2;HEAPF64[$1+8>>3]=$0-$2+2.430840202602477e-10;$3=-4;break label$1}if($6>>>0>1094263290){break label$2}}$9=$0*.6366197723675814+6755399441055744+ -6755399441055744;$2=$0+$9*-1.5707963267341256;$7=$9*6.077100506506192e-11;$0=$2-$7;HEAPF64[$1>>3]=$0;$4=$6>>>20|0;wasm2js_scratch_store_f64(+$0);$3=wasm2js_scratch_load_i32(1)|0;wasm2js_scratch_load_i32(0)|0;$8=($4-($3>>>20&2047)|0)<17;if(Math_abs($9)<2147483648){$3=~~$9}else{$3=-2147483648}label$14:{if($8){break label$14}$7=$2;$0=$9*6.077100506303966e-11;$2=$2-$0;$7=$9*2.0222662487959506e-21-($7-$2-$0);$0=$2-$7;HEAPF64[$1>>3]=$0;$10=$4;wasm2js_scratch_store_f64(+$0);$4=wasm2js_scratch_load_i32(1)|0;wasm2js_scratch_load_i32(0)|0;if(($10-($4>>>20&2047)|0)<50){break label$14}$7=$2;$0=$9*2.0222662487111665e-21;$2=$2-$0;$7=$9*8.4784276603689e-32-($7-$2-$0);$0=$2-$7;HEAPF64[$1>>3]=$0}HEAPF64[$1+8>>3]=$2-$0-$7;break label$1}if($6>>>0>=2146435072){$0=$0-$0;HEAPF64[$1>>3]=$0;HEAPF64[$1+8>>3]=$0;$3=0;break label$1}$3=$4&1048575|1096810496;wasm2js_scratch_store_i32(0,$8|0);wasm2js_scratch_store_i32(1,$3|0);$0=+wasm2js_scratch_load_f64();$3=0;while(1){$10=$3;$11=($5+16|0)+($3<<3)|0;if(Math_abs($0)<2147483648){$3=~~$0}else{$3=-2147483648}$2=+($3|0);HEAPF64[$11>>3]=$2;$0=($0-$2)*16777216;$3=1;if(!$10){continue}break}HEAPF64[$5+32>>3]=$0;label$20:{if($0!=0){$3=2;break label$20}$10=1;while(1){$3=$10;$10=$3+ -1|0;if(HEAPF64[($5+16|0)+($3<<3)>>3]==0){continue}break}}$3=__rem_pio2_large($5+16|0,$5,($6>>>20|0)+ -1046|0,$3+1|0,1);$0=HEAPF64[$5>>3];if(($4|0)<-1?1:($4|0)<=-1?$8>>>0>4294967295?0:1:0){HEAPF64[$1>>3]=-$0;HEAPF64[$1+8>>3]=-HEAPF64[$5+8>>3];$3=0-$3|0;break label$1}HEAPF64[$1>>3]=$0;$4=HEAP32[$5+12>>2];HEAP32[$1+8>>2]=HEAP32[$5+8>>2];HEAP32[$1+12>>2]=$4}global$0=$5+48|0;return $3}function dmGameSystem__CompModelNewWorld_28dmGameObject__ComponentNewWorldParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$3=global$0-96|0;global$0=$3;$6=HEAP32[$0>>2];$4=HEAP32[$6>>2];$1=memset(operator_20new_28unsigned_20long_29(112),0,112);HEAP32[$1+52>>2]=0;HEAP32[$1+56>>2]=0;HEAP32[$1+32>>2]=-1;HEAP32[$1+60>>2]=0;HEAP32[$1+64>>2]=0;HEAP32[$1+80>>2]=0;HEAP32[$1+84>>2]=0;HEAP32[$1+88>>2]=0;HEAP32[$1+92>>2]=0;HEAP32[$3+88>>2]=$1+96;HEAP32[$3+92>>2]=HEAP32[$6+8>>2];label$1:{$5=dmRig__NewContext_28dmRig__NewContextParams_20const__29($3+88|0);label$2:{if($5){HEAP32[$3>>2]=$5;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(5,45822,45830,$3);$5=-1e3;break label$2}dmObjectPool_dmGameSystem__ModelComponent____SetCapacity_28unsigned_20int_29($1,HEAP32[$6+8>>2]);if(HEAP8[$1+64|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29(HEAP32[$6+8>>2],736,$1+52|0,$1+60|0,$1+56|0);HEAP32[$3+72>>2]=HEAP32[131842];$2=HEAP32[131841];$5=$3- -64|0;HEAP32[$5>>2]=HEAP32[131840];HEAP32[$5+4>>2]=$2;$5=HEAP32[131839];HEAP32[$3+56>>2]=HEAP32[131838];HEAP32[$3+60>>2]=$5;$5=HEAP32[131837];HEAP32[$3+48>>2]=HEAP32[131836];HEAP32[$3+52>>2]=$5;$5=HEAP32[131835];HEAP32[$3+40>>2]=HEAP32[131834];HEAP32[$3+44>>2]=$5;$5=HEAP32[131833];HEAP32[$3+32>>2]=HEAP32[131832];HEAP32[$3+36>>2]=$5;$5=HEAP32[131831];HEAP32[$3+24>>2]=HEAP32[131830];HEAP32[$3+28>>2]=$5;$5=HEAP32[131829];HEAP32[$3+16>>2]=HEAP32[131828];HEAP32[$3+20>>2]=$5;$4=HEAP32[$4+4016>>2];HEAP32[$1+68>>2]=FUNCTION_TABLE[HEAP32[147570]]($4,$3+16|0,3);HEAP32[$1+100>>2]=FUNCTION_TABLE[HEAP32[147561]]($4);HEAP32[$1+72>>2]=operator_20new_28unsigned_20long_29(64);$2=operator_20new_28unsigned_20long_29(260);HEAP32[$2>>2]=16;$5=0;HEAP32[$1+76>>2]=memset($2+4|0,0,256);$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+4>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+8>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+12>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+16>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+20>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+24>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+28>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+32>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+36>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+40>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+44>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+48>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+52>>2]=$2;$2=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+56>>2]=$2;$4=FUNCTION_TABLE[HEAP32[147555]]($4,0,0,1)|0;HEAP32[HEAP32[$1+72>>2]+60>>2]=$4;HEAP32[HEAP32[$0+12>>2]>>2]=$1;dmResource__RegisterResourceReloadedCallback_28dmResource__SResourceFactory__2c_20void_20_28__29_28dmResource__ResourceReloadedParams_20const__29_2c_20void__29(HEAP32[$6+4>>2],469,$1)}global$0=$3+96|0;return $5|0}__assert_fail(46467,46388,444,46542);abort()}function dmGameObject__Script_Set_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$1=global$0-272|0;global$0=$1;dmScript__GetInstance_28lua_State__29($0);$2=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[145531],21457);lua_settop($0,-2);$3=HEAP32[$2+4>>2];HEAP32[$1+264>>2]=0;HEAP32[$1+268>>2]=0;HEAP32[$1+256>>2]=0;HEAP32[$1+260>>2]=0;HEAP32[$1+248>>2]=0;HEAP32[$1+252>>2]=0;HEAP32[$1+240>>2]=0;HEAP32[$1+244>>2]=0;dmScript__GetURL_28lua_State__2c_20dmMessage__URL__29($0,$1+240|0);HEAP32[$1+232>>2]=0;HEAP32[$1+236>>2]=0;HEAP32[$1+224>>2]=0;HEAP32[$1+228>>2]=0;HEAP32[$1+216>>2]=0;HEAP32[$1+220>>2]=0;HEAP32[$1+208>>2]=0;HEAP32[$1+212>>2]=0;dmScript__ResolveURL_28lua_State__2c_20int_2c_20dmMessage__URL__2c_20dmMessage__URL__29($0,1,$1+208|0,$1+240|0);$2=HEAP32[HEAP32[HEAP32[$2+4>>2]+80>>2]+8>>2];label$2:{if(!$2){break label$2}$2=HEAP32[$2>>2];if(!$2){break label$2}$4=HEAP32[$2+4224>>2];$5=HEAP32[$2+4228>>2]}if(($4|0)!=HEAP32[$1+208>>2]|($5|0)!=HEAP32[$1+212>>2]){luaL_error($0,18682,0)}label$4:{if(lua_isstring($0,2)){$4=dmHashString64(lua_tolstring($0,2,0));$5=i64toi32_i32$HIGH_BITS;break label$4}$4=dmScript__CheckHash_28lua_State__2c_20int_29($0,2);$5=i64toi32_i32$HIGH_BITS}$2=$1+168|0;HEAP32[$2>>2]=0;HEAP32[$2+4>>2]=0;HEAP32[$2+32>>2]=0;HEAP32[$2+36>>2]=0;HEAP32[$2+24>>2]=0;HEAP32[$2+28>>2]=0;HEAP32[$2+16>>2]=0;HEAP32[$2+20>>2]=0;HEAP32[$2+8>>2]=0;HEAP32[$2+12>>2]=0;$6=dmGameObject__GetInstanceFromIdentifier_28dmGameObject__CollectionHandle__2c_20unsigned_20long_20long_29(HEAP32[HEAP32[$3+80>>2]+8>>2],HEAP32[$1+224>>2],HEAP32[$1+228>>2]);label$6:{if(!$6){HEAP32[$1>>2]=dmHashReverseSafe64(HEAP32[$1+224>>2],HEAP32[$1+228>>2]);$3=luaL_error($0,18743,$1);break label$6}$3=dmGameObject__LuaToVar_28lua_State__2c_20int_2c_20dmGameObject__PropertyVar__29($0,3,$2);if(!$3){$3=dmGameObject__SetProperty_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyVar_20const__29($6,HEAP32[$1+232>>2],HEAP32[$1+236>>2],$4,$5,$2)}label$9:{$2=$3+9|0;if($2>>>0>9){break label$9}label$10:{switch($2-1|0){case 7:label$15:{if(!lua_type($0,1)){$3=18785;break label$15}lua_pushlstring($0,18789,0);lua_pushvalue($0,1);lua_concat($0,2);$3=lua_tolstring($0,-1,0);lua_settop($0,-2)}HEAP32[$1+36>>2]=dmHashReverseSafe64($4,$5);HEAP32[$1+32>>2]=$3;$3=luaL_error($0,18555,$1+32|0);break label$6;case 4:case 5:$3=dmGameObject__PropertyDesc__PropertyDesc_28_29($1+88|0);dmGameObject__GetProperty_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20dmGameObject__PropertyDesc__29($6,HEAP32[$1+232>>2],HEAP32[$1+236>>2],$4,$5,$3);$5=dmHashReverseSafe64($4,$5);$6=lua_tolstring($0,1,0);$2=$1;$3=HEAP32[$3+32>>2];$4=21541;label$17:{if($3>>>0>6){break label$17}$4=HEAP32[($3<<2)+523388>>2]}HEAP32[$2+56>>2]=$4;HEAP32[$1+52>>2]=$6;HEAP32[$1+48>>2]=$5;$3=luaL_error($0,18790,$1+48|0);break label$6;case 3:$2=dmHashReverseSafe64(HEAP32[$1+232>>2],HEAP32[$1+236>>2]);HEAP32[$1+68>>2]=lua_tolstring($0,1,0);HEAP32[$1+64>>2]=$2;$3=luaL_error($0,18599,$1- -64|0);break label$6;case 0:$3=luaL_error($0,18829,0);break label$6;case 8:break label$6;case 1:case 2:case 6:break label$9;default:break label$10}}HEAP32[$1+80>>2]=dmHashReverseSafe64($4,$5);$3=luaL_error($0,18876,$1+80|0);break label$6}HEAP32[$1+16>>2]=$3;$3=luaL_error($0,18924,$1+16|0)}global$0=$1+272|0;return $3|0}function VP8ParseProba($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0,$13=0,$14=0;$14=$1+904|0;label$1:{while(1){$12=0;while(1){$5=0;while(1){$6=HEAP32[$0+4>>2];$3=HEAP32[$0+8>>2];label$5:{if(($3|0)>-1){break label$5}$2=HEAP32[$0+12>>2];if(!$2){break label$1}if($2>>>0>2]){$4=HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24);HEAP32[$0+12>>2]=$2+3;$3=$3+24|0;HEAP32[$0+8>>2]=$3;HEAP32[$0>>2]=HEAP32[$0>>2]<<24|($4>>>8&65280|($4<<8&16711680|$4<<24))>>>8;break label$5}VP8LoadFinalBytes($0);$3=HEAP32[$0+8>>2]}$10=0;$4=$0;$7=HEAP32[$0>>2];$9=Math_imul($12,33);$8=Math_imul($13,264);$2=Math_imul($6,HEAPU8[($9+($8+171488|0)|0)+$5|0])>>>8|0;if($7>>>$3>>>0>$2>>>0){$10=1;$2=$2+1|0;HEAP32[$0>>2]=$7-($2<<$3);$2=$6-$2|0}if($2>>>0<=126){HEAP32[$0+8>>2]=$3-HEAPU8[$2+183088|0];$2=HEAPU8[$2+183216|0]}HEAP32[$4+4>>2]=$2;label$11:{if($10){$2=VP8GetValue($0,8);break label$11}$2=HEAPU8[(($8+172544|0)+$9|0)+$5|0]}$10=($1+$8|0)+$9|0;HEAP8[($10+$5|0)+907|0]=$2;$5=$5+1|0;if(($5|0)!=11){continue}break}$5=0;while(1){$7=HEAP32[$0+4>>2];$3=HEAP32[$0+8>>2];label$14:{if(($3|0)>-1){break label$14}$2=HEAP32[$0+12>>2];if(!$2){break label$1}if($2>>>0>=HEAPU32[$0+20>>2]){VP8LoadFinalBytes($0);$3=HEAP32[$0+8>>2];break label$14}$4=HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24);HEAP32[$0+12>>2]=$2+3;$3=$3+24|0;HEAP32[$0+8>>2]=$3;HEAP32[$0>>2]=HEAP32[$0>>2]<<24|($4>>>8&65280|($4<<8&16711680|$4<<24))>>>8}$6=0;$4=$0;$11=HEAP32[$0>>2];$2=Math_imul($7,HEAPU8[(($8+$9|0)+$5|0)+171499|0])>>>8|0;if($11>>>$3>>>0>$2>>>0){$6=1;$2=$2+1|0;HEAP32[$0>>2]=$11-($2<<$3);$2=$7-$2|0}if($2>>>0<=126){HEAP32[$0+8>>2]=$3-HEAPU8[$2+183088|0];$2=HEAPU8[$2+183216|0]}HEAP32[$4+4>>2]=$2;$2=$5+$10|0;label$20:{if($6){$4=VP8GetValue($0,8);break label$20}$4=HEAPU8[(($8+$9|0)+$5|0)+172555|0]}HEAP8[$2+918|0]=$4;$5=$5+1|0;if(($5|0)!=11){continue}break}$5=0;while(1){$7=HEAP32[$0+4>>2];$3=HEAP32[$0+8>>2];label$23:{if(($3|0)>-1){break label$23}$2=HEAP32[$0+12>>2];if(!$2){break label$1}if($2>>>0>=HEAPU32[$0+20>>2]){VP8LoadFinalBytes($0);$3=HEAP32[$0+8>>2];break label$23}$4=HEAPU8[$2|0]|HEAPU8[$2+1|0]<<8|(HEAPU8[$2+2|0]<<16|HEAPU8[$2+3|0]<<24);HEAP32[$0+12>>2]=$2+3;$3=$3+24|0;HEAP32[$0+8>>2]=$3;HEAP32[$0>>2]=HEAP32[$0>>2]<<24|($4>>>8&65280|($4<<8&16711680|$4<<24))>>>8}$6=0;$4=$0;$11=HEAP32[$0>>2];$2=Math_imul($7,HEAPU8[(($8+$9|0)+$5|0)+171510|0])>>>8|0;if($11>>>$3>>>0>$2>>>0){$6=1;$2=$2+1|0;HEAP32[$0>>2]=$11-($2<<$3);$2=$7-$2|0}if($2>>>0<=126){HEAP32[$0+8>>2]=$3-HEAPU8[$2+183088|0];$2=HEAPU8[$2+183216|0]}HEAP32[$4+4>>2]=$2;$2=$5+$10|0;label$29:{if($6){$4=VP8GetValue($0,8);break label$29}$4=HEAPU8[(($8+$9|0)+$5|0)+172566|0]}HEAP8[$2+929|0]=$4;$5=$5+1|0;if(($5|0)!=11){continue}break}$12=$12+1|0;if(($12|0)!=8){continue}break}$2=Math_imul($13,68)+$14|0;$3=$8+$14|0;$5=$3+3|0;HEAP32[$2+1124>>2]=$5;HEAP32[$2+1120>>2]=$3+234;$4=$3+201|0;HEAP32[$2+1116>>2]=$4;HEAP32[$2+1112>>2]=$4;HEAP32[$2+1108>>2]=$4;HEAP32[$2+1104>>2]=$4;HEAP32[$2+1100>>2]=$4;HEAP32[$2+1096>>2]=$4;HEAP32[$2+1092>>2]=$4;HEAP32[$2+1088>>2]=$4;HEAP32[$2+1084>>2]=$3+168;HEAP32[$2+1080>>2]=$3+135;HEAP32[$2+1076>>2]=$4;HEAP32[$2+1072>>2]=$3+102;HEAP32[$2+1068>>2]=$3+69;HEAP32[$2+1064>>2]=$3+36;HEAP32[$2+1060>>2]=$5;$13=$13+1|0;if(($13|0)!=4){continue}break}$2=VP8GetValue($0,1);HEAP32[$1+2236>>2]=$2;if($2){HEAP8[$1+2240|0]=VP8GetValue($0,8)}return}__assert_fail(174530,174561,59,174603);abort()} @@ -482,7 +482,7 @@ function dmPhysics__AllHitsRayResultCallback___AllHitsRayResultCallback_28_29($0 -function dmGui__StopNodeParticlefx_28dmGui__Scene__2c_20unsigned_20int_29($0,$1){var $2=0,$3=0,$4=0;label$1:{label$2:{label$3:{label$4:{label$5:{$2=HEAP32[$0+32>>2];$3=$1&65535;if((HEAP32[$0+36>>2]-$2|0)/576>>>0>$3>>>0){if(HEAPU16[($2+Math_imul($3,576)|0)+552>>1]!=($1>>>16|0)){break label$5}$3=$2+Math_imul($3,576)|0;if(HEAPU16[$3+554>>1]!=($1&65535)){break label$4}$2=-10;if((HEAP32[$3+412>>2]&240)!=80){break label$2}$3=HEAP32[$0+248>>2];$2=HEAP32[$0+252>>2]-$3|0;if(!$2){break label$3}$2=($2|0)/12|0;$4=$2>>>0>1?$2:1;$2=0;while(1){$3=Math_imul($2,12)+$3|0;if(HEAP32[$3+8>>2]==($1|0)){dmParticle__StopInstance_28dmParticle__Context__2c_20unsigned_20int_29(HEAP32[$0+212>>2],HEAP32[$3>>2])}$2=$2+1|0;if(($4|0)==($2|0)){break label$3}$3=HEAP32[$0+248>>2];if((HEAP32[$0+252>>2]-$3|0)/12>>>0>$2>>>0){continue}break}break label$1}break label$1}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}$2=0}return $2}__assert_fail(201597,201431,430,201608);abort()}function dmBuffer__GetStream_28unsigned_20int_2c_20unsigned_20long_20long_2c_20void___2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0,$9=0,$10=0,$11=0;$8=3;label$1:{label$2:{if(!$0){break label$2}$7=HEAP32[HEAP32[HEAP32[280323]>>2]+(($0&65535)<<2)>>2];if(!$7|HEAPU16[$7+16>>1]!=($0>>>16|0)){break label$2}$8=6;$10=HEAPU8[$7+18|0];if(!$10){break label$2}$9=HEAP32[$7+4>>2];$0=0;while(1){$11=($0<<4)+$9|0;if(($1|0)!=HEAP32[$11>>2]|HEAP32[$11+4>>2]!=($2|0)){$0=$0+1|0;if(($10|0)!=($0|0)){continue}break label$2}break}$8=1;$2=HEAP32[$7>>2];$1=HEAP32[$7+12>>2];if(memcmp($2+Math_imul($1,HEAP32[$7+8>>2])|0,135280,16)){break label$2}HEAP32[$3>>2]=$2+HEAP32[(($0<<4)+$9|0)+8>>2];if($4){HEAP32[$4>>2]=$1}if($5){HEAP32[$5>>2]=HEAPU8[(($0<<4)+$9|0)+13|0]}$8=0;if(!$6){break label$2}$0=HEAP8[(($0<<4)+$9|0)+12|0];if($0>>>0>=9){break label$1}HEAP32[$6>>2]=HEAPU32[$7+8>>2]/HEAPU32[($0<<2)+135400>>2]}return $8}__assert_fail(134643,134609,190,134670);abort()}function dmGui__LuaDoNewNode_28lua_State__2c_20dmGui__Scene__2c_20Vectormath__Aos__Point3_2c_20Vectormath__Aos__Vector3_2c_20dmGui__NodeType_2c_20char_20const__2c_20void__29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0,$9=0;$7=global$0-32|0;global$0=$7;$8=1;$9=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($7+16|0,$0,1);$2=dmGui__NewNode_28dmGui__Scene__2c_20Vectormath__Aos__Point3_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20dmGui__NodeType_29($1,$2,$3,$4);label$1:{if(!$2){HEAP32[$7>>2]=(HEAP32[$1+40>>2]-HEAP32[$1+32>>2]|0)/576;$8=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($9,207681,$7);break label$1}HEAP32[dmGui__GetNode_28dmGui__Scene__2c_20unsigned_20int_29($1,$2)+488>>2]=$6;dmGui__SetNodeText_28dmGui__Scene__2c_20unsigned_20int_2c_20char_20const__29($1,$2,$5);$3=lua_newuserdata($0,8);HEAP32[$3+4>>2]=$2;HEAP32[$3>>2]=$1;lua_getfield($0,-1e4,202497);lua_setmetatable($0,-2)}dmScript__LuaStackCheck___LuaStackCheck_28_29($9);global$0=$7+32|0;return $8}function mbedtls_ssl_get_key_exchange_md_tls1_2($0,$1,$2,$3,$4,$5){var $6=0,$7=0;$6=global$0-16|0;global$0=$6;$7=$2;$2=$5+ -3|0;label$1:{if($2>>>0<=5){$2=HEAP32[($2<<2)+558476>>2];break label$1}$2=0}$5=$2;if($5){$5=HEAP32[$5+8>>2]}else{$5=0}HEAP32[$7>>2]=$5&255;HEAP32[$6>>2]=0;HEAP32[$6+4>>2]=0;HEAP32[$6+8>>2]=0;label$5:{label$6:{label$7:{$5=mbedtls_md_setup($6,$2,0);label$8:{if($5){break label$8}$2=-20736;label$9:{if(!$6){break label$9}$5=HEAP32[$6>>2];if(!$5){break label$9}$2=FUNCTION_TABLE[HEAP32[$5+16>>2]](HEAP32[$6+4>>2])|0}$5=$2;if($5){break label$8}$5=mbedtls_md_update($6,HEAP32[$0+68>>2]+1128|0,64);if($5){break label$8}$5=mbedtls_md_update($6,$3,$4);if(!$5){break label$7}}mbedtls_md_free($6);break label$6}$2=-20736;label$10:{if(!$6){break label$10}$3=HEAP32[$6>>2];if(!$3){break label$10}$2=FUNCTION_TABLE[HEAP32[$3+24>>2]](HEAP32[$6+4>>2],$1)|0}$5=$2;mbedtls_md_free($6);if($5){break label$6}$5=0;break label$5}mbedtls_ssl_send_alert_message($0,2,80)}global$0=$6+16|0;return $5}function mbedtls_poly1305_starts($0,$1){HEAP32[$0>>2]=HEAPU8[$1+3|0]<<24&251658240|(HEAPU8[$1|0]|HEAPU8[$1+1|0]<<8|HEAPU8[$1+2|0]<<16);HEAP32[$0+4>>2]=(HEAPU8[$1+4|0]|HEAPU8[$1+5|0]<<8|(HEAPU8[$1+6|0]<<16|HEAPU8[$1+7|0]<<24))&268435452;HEAP32[$0+8>>2]=(HEAPU8[$1+8|0]|HEAPU8[$1+9|0]<<8|(HEAPU8[$1+10|0]<<16|HEAPU8[$1+11|0]<<24))&268435452;HEAP32[$0+12>>2]=(HEAPU8[$1+12|0]|HEAPU8[$1+13|0]<<8|(HEAPU8[$1+14|0]<<16|HEAPU8[$1+15|0]<<24))&268435452;HEAP32[$0+16>>2]=HEAPU8[$1+16|0]|HEAPU8[$1+17|0]<<8|(HEAPU8[$1+18|0]<<16|HEAPU8[$1+19|0]<<24);HEAP32[$0+20>>2]=HEAPU8[$1+20|0]|HEAPU8[$1+21|0]<<8|(HEAPU8[$1+22|0]<<16|HEAPU8[$1+23|0]<<24);HEAP32[$0+24>>2]=HEAPU8[$1+24|0]|HEAPU8[$1+25|0]<<8|(HEAPU8[$1+26|0]<<16|HEAPU8[$1+27|0]<<24);$1=HEAPU8[$1+28|0]|HEAPU8[$1+29|0]<<8|(HEAPU8[$1+30|0]<<16|HEAPU8[$1+31|0]<<24);HEAP32[$0+32>>2]=0;HEAP32[$0+36>>2]=0;HEAP32[$0+28>>2]=$1;HEAP32[$0+40>>2]=0;HEAP32[$0+44>>2]=0;HEAP32[$0+48>>2]=0;FUNCTION_TABLE[HEAP32[139546]]($0+52|0,0,16)|0;HEAP32[$0+68>>2]=0;return 0}function luaK_dischargevars($0,$1){var $2=0,$3=0;label$1:{$2=HEAP32[$1>>2]+ -6|0;label$2:{if($2>>>0>8){break label$2}label$3:{switch($2-1|0){default:HEAP32[$1>>2]=12;return;case 0:$0=luaK_code($0,HEAP32[$1+8>>2]<<23|4,HEAP32[HEAP32[$0+12>>2]+8>>2]);break label$1;case 1:$0=luaK_code($0,HEAP32[$1+8>>2]<<14|5,HEAP32[HEAP32[$0+12>>2]+8>>2]);break label$1;case 2:$2=HEAP32[$1+12>>2];if(!($2&256|($2|0)>2]=HEAP32[$0+36>>2]+ -1}$3=$0;$2=HEAP32[$1+8>>2];if(!($2&256|($2|0)>2]=HEAP32[$0+36>>2]+ -1;$2=HEAP32[$1+8>>2]}$0=luaK_code($3,$2<<23|HEAP32[$1+12>>2]<<14|6,HEAP32[HEAP32[$0+12>>2]+8>>2]);break label$1;case 6:HEAP32[$1>>2]=12;HEAP32[$1+8>>2]=HEAP32[HEAP32[HEAP32[$0>>2]+12>>2]+(HEAP32[$1+8>>2]<<2)>>2]>>>6&255;return;case 3:case 4:case 5:break label$2;case 7:break label$3}}$0=HEAP32[HEAP32[$0>>2]+12>>2]+(HEAP32[$1+8>>2]<<2)|0;HEAP32[$0>>2]=HEAP32[$0>>2]&8388607|16777216;HEAP32[$1>>2]=11}return}HEAP32[$1>>2]=11;HEAP32[$1+8>>2]=$0}function dmObjectPool_dmGameSystem__SpineModelComponent____SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>2>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(51475,51001,60,50625);abort()}__assert_fail(50637,50554,457,50656);abort()}__assert_fail(50479,50554,444,50625);abort()}function dmGameSystem__NewTexture_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20int_2c_20dmImage__Type_2c_20void_20const__2c_20void__29($0,$1,$2,$3,$4,$5){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;var $6=0;$0=global$0+ -64|0;global$0=$0;$5=HEAP32[HEAP32[$5>>2]+4016>>2];HEAP8[$0+60|0]=1;HEAP32[$0+48>>2]=0;HEAP8[$0+31|0]=0;HEAP8[$0+32|0]=0;HEAP8[$0+33|0]=0;HEAP8[$0+34|0]=0;HEAP32[$0+28>>2]=0;HEAP16[$0+58>>1]=$2;HEAP16[$0+56>>1]=$1;HEAP16[$0+54>>1]=$2;HEAP16[$0+52>>1]=$1;HEAP32[$0+36>>2]=0;HEAP32[$0+40>>2]=0;HEAP32[$0+16>>2]=1;HEAP32[$0+20>>2]=$4;HEAP32[$0+8>>2]=2;HEAP32[$0+12>>2]=1;HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=2;HEAP16[$0+32>>1]=$2;HEAP16[$0+30>>1]=$1;$4=$0;if($3>>>0<=2){$6=HEAP32[($3<<2)+153144>>2]}else{$6=0}HEAP32[$4+24>>2]=Math_imul($6,Math_imul($1,$2));if($3>>>0>=3){__assert_fail(42315,41335,1703,42321);abort()}HEAP32[$0>>2]=HEAP32[($3<<2)+42712>>2];$1=FUNCTION_TABLE[HEAP32[147618]]($5,$0+48|0)|0;FUNCTION_TABLE[HEAP32[147620]]($1,$0);global$0=$0- -64|0;return $1|0}function ssl_handshake_init($0){var $1=0,$2=0,$3=0;$1=HEAP32[$0+84>>2];if($1){mbedtls_ssl_transform_free($1)}$1=HEAP32[$0+64>>2];if($1){mbedtls_ssl_session_free($1)}if(HEAP32[$0+68>>2]){mbedtls_ssl_handshake_free($0)}$3=HEAP32[$0+84>>2];if(!$3){$3=dlcalloc(1,212);HEAP32[$0+84>>2]=$3}$2=HEAP32[$0+64>>2];if(!$2){$2=dlcalloc(1,128);HEAP32[$0+64>>2]=$2}label$6:{label$7:{label$8:{$1=HEAP32[$0+68>>2];if($1){break label$8}$1=dlcalloc(1,2280);HEAP32[$0+68>>2]=$1;if($1){break label$8}$1=0;break label$7}if(!$3){break label$7}if($2){break label$6}}dlfree($1);dlfree(HEAP32[$0+84>>2]);dlfree(HEAP32[$0+64>>2]);HEAP32[$0+84>>2]=0;HEAP32[$0+64>>2]=0;HEAP32[$0+68>>2]=0;return-32512}mbedtls_des_init($2);mbedtls_ssl_transform_init(HEAP32[$0+84>>2]);ssl_handshake_params_init(HEAP32[$0+68>>2]);$1=HEAP32[$0>>2];if(HEAPU8[$1+184|0]&2){$2=HEAP32[$0+68>>2];HEAP32[$2+512>>2]=HEAP32[$0+76>>2];HEAP8[$2+492|0]=HEAPU8[$1+184|0]<<1&2;$1=HEAP32[$0+92>>2];if($1){FUNCTION_TABLE[$1](HEAP32[$0+88>>2],0,0)}}return 0}function dmObjectPool_dmGameSystem__SpriteComponent___SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>10>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,1024,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(52720,52753,60,52820);abort()}__assert_fail(52440,52459,457,52530);abort()}__assert_fail(52832,52459,444,52820);abort()}function btConvexHullShape__batchedUnitVectorGetSupportingVertexWithoutMargin_28btVector3_20const__2c_20btVector3__2c_20int_29_20const($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=0,$5=0,$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0);if(($3|0)>0){while(1){HEAP32[(($4<<4)+$2|0)+12>>2]=-581039253;$4=$4+1|0;if(($4|0)!=($3|0)){continue}break}}if(!(HEAP32[$0+92>>2]<1|($3|0)<1)){while(1){$4=HEAP32[$0+100>>2]+($6<<4)|0;$7=Math_fround(HEAPF32[$4+8>>2]*HEAPF32[$0+20>>2]);$8=Math_fround(HEAPF32[$4+4>>2]*HEAPF32[$0+16>>2]);$9=Math_fround(HEAPF32[$4>>2]*HEAPF32[$0+12>>2]);$4=0;while(1){$10=$4<<4;$5=$10+$1|0;$11=Math_fround(Math_fround(Math_fround($9*HEAPF32[$5>>2])+Math_fround($8*HEAPF32[$5+4>>2]))+Math_fround($7*HEAPF32[$5+8>>2]));$5=$2+$10|0;if(!!($11>HEAPF32[$5+12>>2])){HEAPF32[$5+8>>2]=$7;HEAPF32[$5+4>>2]=$8;HEAPF32[$5>>2]=$9;HEAPF32[$5+12>>2]=$11}$4=$4+1|0;if(($4|0)!=($3|0)){continue}break}$6=$6+1|0;if(($6|0)>2]){continue}break}}}function dmObjectPool_dmGameSystem__LabelComponent___SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>10>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,1024,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(43421,43454,60,43521);abort()}__assert_fail(43679,43608,457,43698);abort()}__assert_fail(43533,43608,444,43521);abort()}function _GLOBAL__sub_I_physics_ddf_cpp(){HEAP32[133549]=HEAP32[145614];HEAP32[145614]=534168;HEAP32[133585]=HEAP32[145614];HEAP32[145614]=534312;HEAP32[133605]=HEAP32[145614];HEAP32[145614]=534392;HEAP32[133671]=HEAP32[145614];HEAP32[145614]=534656;HEAP32[133693]=HEAP32[145614];HEAP32[145614]=534744;HEAP32[133729]=HEAP32[145614];HEAP32[145614]=534888;HEAP32[133805]=HEAP32[145614];HEAP32[145614]=535192;HEAP32[133841]=HEAP32[145614];HEAP32[145614]=535336;HEAP32[133871]=HEAP32[145614];HEAP32[145614]=535456;HEAP32[133913]=HEAP32[145614];HEAP32[145614]=535624;HEAP32[133929]=HEAP32[145614];HEAP32[145614]=535688;HEAP32[147426]=1;HEAP32[147424]=-1505215520;HEAP32[147425]=-1547365408;HEAP32[147423]=77941;HEAP32[147422]=1;HEAP32[147429]=0;HEAP8[589712]=0;HEAP32[147427]=HEAP32[147420];HEAP32[147429]=HEAP32[145614];HEAP32[145614]=589688;HEAP32[133949]=HEAP32[145614];HEAP32[145614]=535768;HEAP32[133989]=HEAP32[145614];HEAP32[145614]=535928;HEAP32[134009]=HEAP32[145614];HEAP32[145614]=536008}function ssl_write_encrypted_pms($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$4=-27136;$6=HEAP32[$0+20>>2];$7=(($6|0)!=0)<<1;$8=$7+$1|0;label$1:{if($8>>>0>16384){break label$1}$4=HEAP32[$0>>2];$3=(HEAP32[$0+68>>2]+$3|0)+1192|0;mbedtls_ssl_write_version(HEAPU8[$4+180|0],HEAPU8[$4+181|0],HEAP32[$4+184>>2]>>>1&1,$3);$4=HEAP32[$0>>2];$4=FUNCTION_TABLE[HEAP32[$4+24>>2]](HEAP32[$4+28>>2],$3+2|0,46)|0;if($4){break label$1}HEAP32[HEAP32[$0+68>>2]+1124>>2]=48;$5=HEAP32[HEAP32[$0+64>>2]+96>>2];if(!$5){return-27648}$4=0;$5=$5+204|0;label$4:{if(!$5){break label$4}$9=HEAP32[$5>>2];if(!$9){break label$4}$4=FUNCTION_TABLE[HEAP32[$9+12>>2]](1)|0}if(!$4){return-27904}$4=$3;$3=HEAP32[$0>>2];$4=mbedtls_pk_encrypt($5,$4,HEAP32[HEAP32[$0+68>>2]+1124>>2],(HEAP32[$0+204>>2]+$1|0)+$7|0,$2,16384-$8|0,HEAP32[$3+24>>2],HEAP32[$3+28>>2]);if($4|!$6){break label$1}HEAP8[HEAP32[$0+204>>2]+$1|0]=HEAP32[$2>>2]>>>8;HEAP8[(HEAP32[$0+204>>2]+$1|0)+1|0]=HEAP32[$2>>2];HEAP32[$2>>2]=HEAP32[$2>>2]+2;$4=0}return $4}function dmLiveUpdate__VerifyManifestSignature_28dmResource__Manifest__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0;$1=global$0;$2=$1;$3=HEAP32[HEAP32[$0+8>>2]+12>>2];$4=HEAP32[($3<<2)+26336>>2]>>>3|0;$1=$1-($4+15&-16)|0;global$0=$1;$5=$3;$3=HEAP32[$0+4>>2];dmLiveUpdate__CreateManifestHash_28dmLiveUpdateDDF__HashAlgorithm_2c_20unsigned_20char_20const__2c_20unsigned_20long_2c_20unsigned_20char__29($5,HEAP32[$3>>2],HEAP32[$3+4>>2],$1);label$1:{label$2:{$0=dmResource__VerifyManifestHash_28dmResource__SResourceFactory__2c_20dmResource__Manifest__2c_20unsigned_20char_20const__2c_20unsigned_20int_29(HEAP32[309385],$0,$1,$4);$1=$0+20|0;if($1>>>0>20){break label$2}label$3:{switch($1-1|0){case 0:global$0=$2;return-4;default:global$0=$2;return-6;case 4:global$0=$2;return-7;case 19:break label$1;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:break label$2;case 18:break label$3}}global$0=$2;return-8}$0=-3}global$0=$2;return $0}function VP8ProcessRow($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;label$1:{if(HEAP32[$0+2308>>2]<1){break label$1}$2=HEAP32[$0+2300>>2];if(($2|0)>2]){break label$1}$3=($2|0)<=HEAP32[$0+308>>2]}$2=$0+160|0;label$2:{if(!HEAP32[$0+148>>2]){HEAP32[$0+168>>2]=$3;HEAP32[$0+164>>2]=HEAP32[$0+2300>>2];ReconstructRow($0,$2);$5=FinishRow($0,$1);break label$2}$4=$0+124|0;$6=FUNCTION_TABLE[HEAP32[144631]]($4)|0;if(HEAP32[$0+128>>2]==1){if(!($6&1)){break label$2}memcpy($0+180|0,$1,108);HEAP32[$0+168>>2]=$3;HEAP32[$0+160>>2]=HEAP32[$0+152>>2];HEAP32[$0+164>>2]=HEAP32[$0+2300>>2];label$5:{if(HEAP32[$0+148>>2]==2){$1=HEAP32[$0+2304>>2];HEAP32[$0+2304>>2]=HEAP32[$0+176>>2];HEAP32[$0+176>>2]=$1;break label$5}ReconstructRow($0,$2)}if($3){$1=HEAP32[$0+2260>>2];HEAP32[$0+2260>>2]=HEAP32[$0+172>>2];HEAP32[$0+172>>2]=$1}FUNCTION_TABLE[HEAP32[144632]]($4);$1=HEAP32[$0+152>>2]+1|0;HEAP32[$0+152>>2]=($1|0)==HEAP32[$0+156>>2]?0:$1;return 1}__assert_fail(175120,175020,527,175142);abort()}return $5}function PhysicsDebugRender__DrawLines_28Vectormath__Aos__Point3__2c_20unsigned_20int_2c_20Vectormath__Aos__Vector4_2c_20void__29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$4=global$0+ -64|0;global$0=$4;$7=$1>>>1|0;if($7){$1=0;while(1){$6=$1<<5;$5=$6+$0|0;HEAP32[$4+48>>2]=HEAP32[$5>>2];HEAP32[$4+52>>2]=HEAP32[$5+4>>2];HEAP32[$4+56>>2]=HEAP32[$5+8>>2];$5=($6|16)+$0|0;HEAP32[$4+32>>2]=HEAP32[$5>>2];HEAP32[$4+36>>2]=HEAP32[$5+4>>2];HEAP32[$4+40>>2]=HEAP32[$5+8>>2];$5=HEAP32[$2>>2];HEAP32[$4+16>>2]=$5;$6=HEAP32[$2+4>>2];HEAP32[$4+20>>2]=$6;$8=HEAP32[$2+8>>2];HEAP32[$4+24>>2]=$8;$9=HEAP32[$2+12>>2];HEAP32[$4+12>>2]=$9;HEAP32[$4+8>>2]=$8;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$5;HEAP32[$4+28>>2]=$9;dmRender__Line3D_28dmRender__RenderContext__2c_20Vectormath__Aos__Point3_2c_20Vectormath__Aos__Point3_2c_20Vectormath__Aos__Vector4_2c_20Vectormath__Aos__Vector4_29($3,$4+48|0,$4+32|0,$4+16|0,$4);$1=$1+1|0;if(($7|0)!=($1|0)){continue}break}}global$0=$4- -64|0}function __shgetc($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$1=HEAP32[$0+116>>2];$2=$1;label$1:{$5=HEAP32[$0+112>>2];label$2:{if($1|$5){$1=HEAP32[$0+124>>2];if(($1|0)>($2|0)?1:($1|0)>=($2|0)?HEAPU32[$0+120>>2]<$5>>>0?0:1:0){break label$2}}$5=__uflow($0);if(($5|0)>-1){break label$1}}HEAP32[$0+104>>2]=0;return-1}$1=HEAP32[$0+8>>2];$2=HEAP32[$0+116>>2];$3=$2;label$4:{label$5:{$4=HEAP32[$0+112>>2];if(!($2|$4)){break label$5}$2=(HEAP32[$0+124>>2]^-1)+$3|0;$3=HEAP32[$0+120>>2]^-1;$4=$3+$4|0;if($4>>>0<$3>>>0){$2=$2+1|0}$3=$4;$4=HEAP32[$0+4>>2];$6=$1-$4|0;$7=$3>>>0<$6>>>0?0:1;$6=$6>>31;if(($2|0)>($6|0)?1:($2|0)>=($6|0)?$7:0){break label$5}HEAP32[$0+104>>2]=$3+$4;break label$4}HEAP32[$0+104>>2]=$1}label$6:{if(!$1){$0=HEAP32[$0+4>>2];break label$6}$4=HEAP32[$0+124>>2];$2=$0;$3=HEAP32[$0+120>>2];$0=HEAP32[$0+4>>2];$1=($1-$0|0)+1|0;$6=$1;$3=$3+$1|0;$1=($1>>31)+$4|0;HEAP32[$2+120>>2]=$3;HEAP32[$2+124>>2]=$3>>>0<$6>>>0?$1+1|0:$1}$0=$0+ -1|0;if(HEAPU8[$0|0]!=($5|0)){HEAP8[$0|0]=$5}return $5}function dmScript__InitializeVmath_28lua_State__29($0){var $1=0;$1=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;HEAP32[279892]=dmScript__RegisterUserType_28lua_State__2c_20char_20const__2c_20luaL_Reg_20const__2c_20luaL_Reg_20const__29($0,117486,117496,549520);HEAP32[279888]=dmScript__RegisterUserType_28lua_State__2c_20char_20const__2c_20luaL_Reg_20const__2c_20luaL_Reg_20const__29($0,117504,117512,549568);HEAP32[279889]=dmScript__RegisterUserType_28lua_State__2c_20char_20const__2c_20luaL_Reg_20const__2c_20luaL_Reg_20const__29($0,117520,117528,549664);HEAP32[279890]=dmScript__RegisterUserType_28lua_State__2c_20char_20const__2c_20luaL_Reg_20const__2c_20luaL_Reg_20const__29($0,117536,117544,549760);HEAP32[279891]=dmScript__RegisterUserType_28lua_State__2c_20char_20const__2c_20luaL_Reg_20const__2c_20luaL_Reg_20const__29($0,117552,117560,549824);luaL_register($0,117568,549888);lua_settop($0,-2);if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($1|0)){__assert_fail(117574,117595,2333,117619);abort()}}function dmObjectPool_dmGameSystem__SoundComponent___SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>4>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,16,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(49372,49405,60,49227);abort()}__assert_fail(49239,49156,457,49258);abort()}__assert_fail(49081,49156,444,49227);abort()}function dmObjectPool_dmGameSystem__ModelComponent____SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>2>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(47133,46851,60,46542);abort()}__assert_fail(46369,46388,457,46459);abort()}__assert_fail(46467,46388,444,46542);abort()}function dmGui__LuaNewPieNode_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$2=global$0-32|0;global$0=$2;$1=dmScript__ToVector4_28lua_State__2c_20int_29($0,1);label$1:{if($1){$3=$1+8|0;$4=$1+4|0;break label$1}$1=dmScript__CheckVector3_28lua_State__2c_20int_29($0,1);$3=$1+8|0;$4=$1+4|0}$5=HEAP32[$1>>2];$4=HEAP32[$4>>2];$3=HEAP32[$3>>2];$1=dmScript__CheckVector3_28lua_State__2c_20int_29($0,2);$6=HEAP32[$1+4>>2];$7=HEAP32[$1>>2];$1=HEAP32[$1+8>>2];dmScript__GetInstance_28lua_State__29($0);$8=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[283639],205559);lua_settop($0,-2);HEAP32[$2+24>>2]=$3;HEAP32[$2+20>>2]=$4;HEAP32[$2+16>>2]=$5;HEAP32[$2+8>>2]=$1;HEAP32[$2>>2]=$7;HEAP32[$2+4>>2]=$6;$0=dmGui__LuaDoNewNode_28lua_State__2c_20dmGui__Scene__2c_20Vectormath__Aos__Point3_2c_20Vectormath__Aos__Vector3_2c_20dmGui__NodeType_2c_20char_20const__2c_20void__29($0,$8,$2+16|0,$2,2,0,0);global$0=$2+32|0;return $0|0}function dmGui__LuaNewBoxNode_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$2=global$0-32|0;global$0=$2;$1=dmScript__ToVector4_28lua_State__2c_20int_29($0,1);label$1:{if($1){$3=$1+8|0;$4=$1+4|0;break label$1}$1=dmScript__CheckVector3_28lua_State__2c_20int_29($0,1);$3=$1+8|0;$4=$1+4|0}$5=HEAP32[$1>>2];$4=HEAP32[$4>>2];$3=HEAP32[$3>>2];$1=dmScript__CheckVector3_28lua_State__2c_20int_29($0,2);$6=HEAP32[$1+4>>2];$7=HEAP32[$1>>2];$1=HEAP32[$1+8>>2];dmScript__GetInstance_28lua_State__29($0);$8=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[283639],205559);lua_settop($0,-2);HEAP32[$2+24>>2]=$3;HEAP32[$2+20>>2]=$4;HEAP32[$2+16>>2]=$5;HEAP32[$2+8>>2]=$1;HEAP32[$2>>2]=$7;HEAP32[$2+4>>2]=$6;$0=dmGui__LuaDoNewNode_28lua_State__2c_20dmGui__Scene__2c_20Vectormath__Aos__Point3_2c_20Vectormath__Aos__Vector3_2c_20dmGui__NodeType_2c_20char_20const__2c_20void__29($0,$8,$2+16|0,$2,0,0,0);global$0=$2+32|0;return $0|0}function dmGameObject__SetIdentifier_28dmGameObject__CollectionHandle__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0;$5=global$0-16|0;global$0=$5;$4=HEAP32[$0>>2];HEAP32[$5+12>>2]=$1;$6=$4+4164|0;$0=HEAP32[$4+4168>>2];label$1:{label$2:{if(!$0){break label$2}$0=HEAP32[HEAP32[$6>>2]+(__wasm_i64_urem($2,$3,$0)<<2)>>2];if(($0|0)==-1){break label$2}$7=HEAP32[$4+4172>>2];while(1){$0=($0<<4)+$7|0;if(HEAP32[$0>>2]==($2|0)&HEAP32[$0+4>>2]==($3|0)){$0=-3;break label$1}$0=HEAP32[$0+12>>2];if(($0|0)!=-1){continue}break}}$0=-4;if(HEAP32[$1+96>>2]!=HEAP32[145390]|HEAP32[$1+100>>2]!=HEAP32[145391]){break label$1}HEAP32[$1+96>>2]=$2;HEAP32[$1+100>>2]=$3;dmHashTable_unsigned_20long_20long_2c_20dmGameObject__Collection____Put_28unsigned_20long_20long_2c_20dmGameObject__Collection__20const__29($6,$2,$3,$5+12|0);$0=0;if(HEAPU32[$4+4188>>2]<=HEAPU16[$4+2078>>1]){break label$1}__assert_fail(11455,10811,919,11746);abort()}global$0=$5+16|0;return $0}function dmObjectPool_dmRig__RigInstance____SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>2>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(133724,133425,60,133365);abort()}__assert_fail(133377,133219,457,133396);abort()}__assert_fail(133290,133219,444,133365);abort()}function dmObjectPool_dmGameSystem__MeshComponent____SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>2>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(45287,45320,60,45387);abort()}__assert_fail(44730,44749,457,44820);abort()}__assert_fail(45399,44749,444,45387);abort()}function mbedtls_ecp_point_read_binary($0,$1,$2,$3){var $4=0,$5=0,$6=0;if(!$3){return-20352}$5=mbedtls_mpi_size($0+4|0);$4=-20096;if(HEAP32[$0+48>>2]){$6=HEAP32[$0+60>>2]?1:2}else{$6=0}label$2:{if(($6|0)==2){if(($3|0)!=($5|0)){return-20352}$4=mbedtls_mpi_read_binary_le($1,$2,$3);if($4){break label$2}mbedtls_mpi_free($1+12|0);if(HEAP32[$0>>2]==9){$4=mbedtls_mpi_set_bit($1,($3<<3)+ -1|0,0);if($4){break label$2}}$4=mbedtls_mpi_lset($1+24|0,1);if($4){break label$2}$4=0}if(HEAP32[$0+48>>2]){$0=HEAP32[$0+60>>2]?1:2}else{$0=0}if(($0|0)!=1){break label$2}$4=-20096;$0=HEAPU8[$2|0];if($0>>>0>4){break label$2}label$8:{switch($0-1|0){default:$4=-20352;if(($3|0)!=1){break label$2}return mbedtls_ecp_set_zero($1);case 0:case 1:case 2:break label$2;case 3:break label$8}}$4=-20352;if(($5<<1|1)!=($3|0)){break label$2}$0=$2+1|0;$4=mbedtls_mpi_read_binary($1,$0,$5);if($4){break label$2}$4=mbedtls_mpi_read_binary($1+12|0,$0+$5|0,$5);if($4){break label$2}$4=mbedtls_mpi_lset($1+24|0,1)}return $4}function dmGameObject__MoveAllUp_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,$1){var $2=0,$3=0,$4=0,$5=0;label$1:{label$2:{$1=$1>>>16&32767;if(($1|0)!=32767){$3=HEAP32[$0+2060>>2];$2=HEAP32[$0+2056>>2];while(1){if($3-$2>>2>>>0<=$1>>>0){break label$1}$4=$1<<2;$2=HEAP32[$4+$2>>2];dmGameObject__MoveAllUp_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,HEAP32[$2+152>>2]);$3=HEAP32[$2+140>>2];$5=HEAP32[$2+136>>2];if(!($5&255)){break label$2}dmGameObject__EraseSwapLevelIndex_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,$5,$3);$3=HEAP32[$2+136>>2]+ -1|0;HEAP8[$2+136|0]=$3;dmGameObject__InsertInstanceInLevelIndex_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,$2);$3=HEAP32[$0+2060>>2];$2=HEAP32[$0+2056>>2];if($3-$2>>2>>>0<=$1>>>0){break label$1}$1=HEAP32[HEAP32[$2+$4>>2]+152>>2]&32767;if(($1|0)!=32767){continue}break}}return}__assert_fail(15368,10811,1490,15939);abort()}__assert_fail(16081,13666,430,14890);abort()}function internal_memalign($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$2=16;$3=$0>>>0>16?$0:16;label$1:{if(!($3+ -1&$3)){$0=$3;break label$1}while(1){$0=$2;$2=$0<<1;if($0>>>0<$3>>>0){continue}break}}if(-64-$0>>>0<=$1>>>0){HEAP32[310273]=48;return 0}$3=$1>>>0<11?16:$1+11&-8;$2=dlmalloc(($3+$0|0)+12|0);if(!$2){return 0}$1=$2+ -8|0;label$6:{if(!($2&$0+ -1)){$0=$1;break label$6}$5=$2+ -4|0;$6=HEAP32[$5>>2];$2=(($0+$2|0)+ -1&0-$0)+ -8|0;$0=$2-$1>>>0>15?$2:$0+$2|0;$2=$0-$1|0;$4=($6&-8)-$2|0;if(!($6&3)){$1=HEAP32[$1>>2];HEAP32[$0+4>>2]=$4;HEAP32[$0>>2]=$1+$2;break label$6}HEAP32[$0+4>>2]=$4|HEAP32[$0+4>>2]&1|2;$4=$0+$4|0;HEAP32[$4+4>>2]=HEAP32[$4+4>>2]|1;HEAP32[$5>>2]=$2|HEAP32[$5>>2]&1|2;HEAP32[$0+4>>2]=HEAP32[$0+4>>2]|1;dispose_chunk($1,$2)}$1=HEAP32[$0+4>>2];label$9:{if(!($1&3)){break label$9}$2=$1&-8;if($2>>>0<=$3+16>>>0){break label$9}HEAP32[$0+4>>2]=$3|$1&1|2;$1=$0+$3|0;$3=$2-$3|0;HEAP32[$1+4>>2]=$3|3;$2=$0+$2|0;HEAP32[$2+4>>2]=HEAP32[$2+4>>2]|1;dispose_chunk($1,$3)}return $0+8|0}function btHashedOverlappingPairCache__btHashedOverlappingPairCache_28_29($0){var $1=0,$2=0,$3=0,$4=0,$5=0;HEAP8[$0+28|0]=0;HEAP32[$0+24>>2]=0;HEAP32[$0+72>>2]=0;HEAP8[$0+20|0]=1;HEAP32[$0+16>>2]=0;HEAP8[$0+48|0]=1;HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=0;HEAP32[$0+44>>2]=0;HEAP8[$0+68|0]=1;HEAP32[$0+36>>2]=0;HEAP32[$0+40>>2]=0;HEAP32[$0- -64>>2]=0;HEAP32[$0+56>>2]=0;HEAP32[$0+60>>2]=0;HEAP32[$0>>2]=542216;$4=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(32);$5=HEAP32[$0+8>>2];if(($5|0)>=1){while(1){$2=$3<<4;$1=$2+$4|0;$2=$2+HEAP32[$0+16>>2]|0;HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=HEAP32[$2+4>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=HEAP32[$2+12>>2];$3=$3+1|0;if(($5|0)!=($3|0)){continue}break}}$1=HEAP32[$0+16>>2];if($1){if(HEAPU8[$0+20|0]){if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}}HEAP32[$0+16>>2]=0}HEAP32[$0+16>>2]=$4;HEAP8[$0+20|0]=1;HEAP32[$0+12>>2]=2;btHashedOverlappingPairCache__growTables_28_29($0)}function btCompoundShape__recalculateLocalAabb_28_29($0){$0=$0|0;var $1=Math_fround(0),$2=0,$3=0,$4=0,$5=0;$2=global$0-32|0;global$0=$2;HEAP32[$0+48>>2]=-581039253;HEAP32[$0+52>>2]=-581039253;HEAP32[$0+32>>2]=1566444395;HEAP32[$0+36>>2]=1566444395;HEAP32[$0+56>>2]=-581039253;HEAP32[$0+60>>2]=0;HEAP32[$0+40>>2]=1566444395;HEAP32[$0+44>>2]=0;if(HEAP32[$0+16>>2]>=1){while(1){$4=HEAP32[$0+24>>2]+Math_imul($3,80)|0;$5=HEAP32[$4+64>>2];FUNCTION_TABLE[HEAP32[HEAP32[$5>>2]+8>>2]]($5,$4,$2+16|0,$2);$1=HEAPF32[$2+16>>2];if(!!(HEAPF32[$0+32>>2]>$1)){HEAPF32[$0+32>>2]=$1}$1=HEAPF32[$2>>2];if(!!(HEAPF32[$0+48>>2]<$1)){HEAPF32[$0+48>>2]=$1}$1=HEAPF32[$2+20>>2];if(!!(HEAPF32[$0+36>>2]>$1)){HEAPF32[$0+36>>2]=$1}$1=HEAPF32[$2+4>>2];if(!!(HEAPF32[$0+52>>2]<$1)){HEAPF32[$0+52>>2]=$1}$1=HEAPF32[$2+24>>2];if(!!(HEAPF32[$0+40>>2]>$1)){HEAPF32[$0+40>>2]=$1}$1=HEAPF32[$2+8>>2];if(!!(HEAPF32[$0+56>>2]<$1)){HEAPF32[$0+56>>2]=$1}$3=$3+1|0;if(($3|0)>2]){continue}break}}global$0=$2+32|0}function mbedtls_ssl_handle_message_type($0){var $1=0,$2=0;$2=HEAP32[$0+128>>2];label$1:{if(($2|0)==22){$1=mbedtls_ssl_prepare_handshake_record($0);if($1){break label$1}$2=HEAP32[$0+128>>2]}$1=$2+ -20|0;label$2:{if($1>>>0<=1){if($1-1){$1=-29184;if(HEAP32[$0+132>>2]!=1|HEAPU8[HEAP32[$0+120>>2]]!=1){break label$1}$1=0;if(!(HEAPU8[HEAP32[$0>>2]+184|0]&2)){break label$1}$1=HEAP32[$0+4>>2]+ -10|0;if($1-1|0?$1>>>0<=2:0){break label$2}return HEAP32[$0+68>>2]?-25728:-26368}$1=-29184;if(HEAP32[$0+132>>2]!=2){break label$1}$0=HEAP32[$0+120>>2];$2=HEAPU8[$0|0]+ -1|0;if($2>>>0<=1){$1=-30592;if(!($2-1)){break label$1}$0=HEAPU8[$0+1|0];return $0?($0|0)==100?0:-26240:-30848}return-26240}$1=0;if(!(HEAPU8[HEAP32[$0>>2]+184|0]&2)){break label$1}if(($2|0)!=23){break label$2}$2=HEAP32[$0+4>>2];if(($2|0)==16){break label$2}$1=-26240;if(($2|0)!=2|HEAP32[$0+8>>2]!=1){break label$1}}$1=0;if(!HEAP32[$0+68>>2]|HEAP32[$0+4>>2]!=16){break label$1}ssl_handshake_wrapup_free_hs_transform($0)}return $1}function reallymarkobject($0,$1){var $2=0,$3=0;$2=HEAPU8[$1+5|0];label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{while(1){label$8:{$2=$2&252;HEAP8[$1+5|0]=$2;$3=HEAPU8[$1+4|0];if(($3|0)!=7){$2=$3+ -5|0;if($2>>>0>5){break label$1}switch($2-1|0){case 1:break label$1;case 3:break label$3;case 2:break label$4;case 0:break label$6;case 4:break label$8;default:break label$5}}HEAP8[$1+5|0]=$2|4;$2=HEAP32[$1+8>>2];if(!(!$2|!(HEAPU8[$2+5|0]&3))){reallymarkobject($0,$2)}$1=HEAP32[$1+12>>2];$2=HEAPU8[$1+5|0];if($2&3){continue}break label$1}break}$2=HEAP32[$1+8>>2];label$11:{if(HEAP32[$2+8>>2]<4){break label$11}$3=HEAP32[$2>>2];if(!(HEAPU8[$3+5|0]&3)){break label$11}reallymarkobject($0,$3);$2=HEAP32[$1+8>>2]}if(($1+16|0)!=($2|0)){break label$1}HEAP8[$1+5|0]=HEAPU8[$1+5|0]|4;return}HEAP32[$1+8>>2]=HEAP32[$0+36>>2];break label$2}HEAP32[$1+24>>2]=HEAP32[$0+36>>2];break label$2}HEAP32[$1+108>>2]=HEAP32[$0+36>>2];break label$2}HEAP32[$1+68>>2]=HEAP32[$0+36>>2]}HEAP32[$0+36>>2]=$1}}function dmGameObject__RegisterComponentType_28dmGameObject__Register__2c_20dmGameObject__ComponentType_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$6=global$0-16|0;global$0=$6;$2=HEAP32[$0>>2];$4=-1;label$1:{if(($2|0)==255){break label$1}if($2){$3=HEAP32[$1>>2];while(1){$4=-2;if(($3|0)==HEAP32[(Math_imul($5,96)+$0|0)+8>>2]){break label$1}$5=$5+1|0;if(($2|0)!=($5|0)){continue}break}}if(!(HEAP32[$1+44>>2]|!HEAP32[$1+52>>2])){HEAP32[$6>>2]=HEAP32[$1+4>>2];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,10938,11192,$6);$4=-7;break label$1}$3=Math_imul($2,96);$2=$0+8|0;memcpy($3+$2|0,$1,94);$5=dmHashString64(HEAP32[$1+4>>2]);$3=HEAP32[$0>>2];$2=$2+Math_imul($3,96)|0;HEAP32[$2+8>>2]=$5;HEAP32[$2+12>>2]=i64toi32_i32$HIGH_BITS;HEAP16[(($3<<1)+$0|0)+24488>>1]=$3;$1=dmProfile__AllocateCounter_28char_20const__29(HEAP32[$1+4>>2]);HEAP32[((HEAP32[$0>>2]<<2)+$0|0)+25e3>>2]=$1;HEAP32[$0>>2]=HEAP32[$0>>2]+1;$4=0}$3=$4;global$0=$6+16|0;return $3}function b2ChainShape__GetChildEdge_28b2EdgeShape__2c_20int_29_20const($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;if(!(($2|0)<0|(HEAP32[$0+28>>2]+ -1|0)<=($2|0))){$5=1;HEAP32[$1+4>>2]=1;HEAP32[$1+8>>2]=HEAP32[$0+8>>2];$4=$2<<3;$3=$4+HEAP32[$0+24>>2]|0;$6=HEAP32[$3+4>>2];HEAP32[$1+24>>2]=HEAP32[$3>>2];HEAP32[$1+28>>2]=$6;$3=HEAP32[$0+24>>2]+$4|0;$6=HEAP32[$3+12>>2];HEAP32[$1+32>>2]=HEAP32[$3+8>>2];HEAP32[$1+36>>2]=$6;label$2:{if(($2|0)>=1){$4=(HEAP32[$0+24>>2]+$4|0)+ -8|0;$3=HEAP32[$4+4>>2];HEAP32[$1+40>>2]=HEAP32[$4>>2];HEAP32[$1+44>>2]=$3;break label$2}$5=HEAP32[$0+36>>2];HEAP32[$1+40>>2]=HEAP32[$0+32>>2];HEAP32[$1+44>>2]=$5;$5=HEAPU8[$0+48|0]}HEAP8[$1+56|0]=$5;if((HEAP32[$0+28>>2]+ -2|0)>($2|0)){$0=HEAP32[$0+24>>2]+($2<<3)|0;$2=HEAP32[$0+20>>2];HEAP32[$1+48>>2]=HEAP32[$0+16>>2];HEAP32[$1+52>>2]=$2;HEAP8[$1+57|0]=1;return}$2=HEAP32[$0+44>>2];HEAP32[$1+48>>2]=HEAP32[$0+40>>2];HEAP32[$1+52>>2]=$2;HEAP8[$1+57|0]=HEAPU8[$0+49|0];return}__assert_fail(94347,94294,89,94381);abort()}function x509_crt_find_parent_in($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0;label$1:{if(!$1){$5=0;$6=0;break label$1}$8=($5-$6|0)+1|0;$6=0;if(!$4){$5=0;while(1){label$5:{if(x509_crt_check_parent($0,$1,0)){break label$5}$4=HEAP32[$1+288>>2];if($4>>>0<$8>>>0?($4|0)>=1:0){break label$5}$4=!x509_crt_check_signature($0,$1);label$6:{if(mbedtls_x509_time_is_past($1+168|0)){break label$6}if(mbedtls_x509_time_is_future($1+144|0)){break label$6}$5=$1;$6=$4;break label$1}$6=$5?$6:$4;$5=$5?$5:$1}$1=HEAP32[$1+340>>2];if($1){continue}break}break label$1}$5=0;while(1){label$8:{if(x509_crt_check_parent($0,$1,$4)){break label$8}$7=HEAP32[$1+288>>2];if($7>>>0<$8>>>0?($7|0)>=1:0){break label$8}$7=x509_crt_check_signature($0,$1);if($7){break label$8}label$9:{if(mbedtls_x509_time_is_past($1+168|0)){break label$9}if(mbedtls_x509_time_is_future($1+144|0)){break label$9}$6=1;$5=$1;break label$1}$6=$5?$6:!$7;$5=$5?$5:$1}$1=HEAP32[$1+340>>2];if($1){continue}break}}HEAP32[$2>>2]=$5;HEAP32[$3>>2]=$6}function dmParticle__ReHashEmitter_28dmParticle__Emitter__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$1=global$0-48|0;global$0=$1;label$1:{label$2:{$4=$0+192|0;if(HEAP32[$4>>2]){$3=$0+200|0;if(HEAP32[$3>>2]){break label$2}}HEAP8[$0+280|0]=HEAPU8[$0+280|0]|16;break label$1}HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+40>>2]=0;HEAP32[$1+32>>2]=0;HEAP32[$1+36>>2]=0;dmHashUpdateBuffer32($1+24|0,$3,4);dmHashUpdateBuffer32($1+24|0,$0+196|0,4);$3=HEAP32[$0+208>>2];if($3){$6=HEAP32[$0+204>>2];while(1){$5=($2<<5)+$6|0;dmHashUpdateBuffer32($1+24|0,$5,8);dmHashUpdateBuffer32($1+24|0,$5+16|0,16);$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}HEAP32[$1+16>>2]=HEAP32[$1+40>>2];$2=HEAP32[$1+36>>2];HEAP32[$1+8>>2]=HEAP32[$1+32>>2];HEAP32[$1+12>>2]=$2;$2=HEAP32[$1+28>>2];HEAP32[$1>>2]=HEAP32[$1+24>>2];HEAP32[$1+4>>2]=$2;HEAP32[$0+224>>2]=dmHashFinal32($1);dmHashUpdateBuffer32($1+24|0,$4,4);HEAP32[$0+220>>2]=dmHashFinal32($1+24|0);HEAP8[$0+280|0]=HEAPU8[$0+280|0]&239}global$0=$1+48|0}function dmGui__LuaSetSpineScene_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$1=global$0-16|0;global$0=$1;$3=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;dmScript__GetInstance_28lua_State__29($0);$2=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[283639],205559);lua_settop($0,-2);dmGui__LuaCheckNode_28lua_State__2c_20int_2c_20unsigned_20int__29($0,1,$1+12|0);label$1:{if(dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($2,HEAP32[$1+12>>2])){break label$1}if(dmGui__SetNodeSpineScene_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_29($2,HEAP32[$1+12>>2],dmScript__CheckHashOrString_28lua_State__2c_20int_29($0,2),i64toi32_i32$HIGH_BITS,0,0,0,0,0)){$4=luaL_error($0,203149,0);break label$1}if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4==($3|0)){break label$1}__assert_fail(202574,202532,3879,203188);abort()}global$0=$1+16|0;return $4|0}function ssl_parse_hello_verify_request($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$4=global$0-16|0;global$0=$4;$1=HEAP32[$0>>2];$2=HEAP32[$0+120>>2]+(HEAPU8[$1+184|0]&2?12:4)|0;mbedtls_ssl_read_version($4+12|0,$4+8|0,HEAP32[$1+184>>2]>>>1&1,$2);label$1:{label$2:{$1=HEAP32[$4+12>>2];label$3:{if(($1|0)<3){break label$3}$5=HEAP32[$4+8>>2];if(($5|0)<2){break label$3}$3=$1;$1=HEAP32[$0>>2];if(($3|0)>HEAPU8[$1+180|0]){break label$3}if(($5|0)<=HEAPU8[$1+181|0]){break label$2}}mbedtls_ssl_send_alert_message($0,2,70);$3=-28288;break label$1}$6=$2+3|0;$1=HEAPU8[$2+2|0];if(((HEAP32[$0+120>>2]+HEAP32[$0+132>>2]|0)-$6|0)<($1|0)){mbedtls_ssl_send_alert_message($0,2,50);$3=-31104;break label$1}dlfree(HEAP32[HEAP32[$0+68>>2]+480>>2]);$5=dlcalloc(1,$1);$2=HEAP32[$0+68>>2];HEAP32[$2+480>>2]=$5;$3=-32512;if(!$5){break label$1}memcpy($5,$6,$1);HEAP8[$2+484|0]=$1;HEAP32[$0+4>>2]=1;mbedtls_ssl_reset_checksum($0);mbedtls_ssl_recv_flight_completed($0);$3=0}$2=$3;global$0=$4+16|0;return $2}function dmRender__RenderScript_SetStencilMask_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$2=global$0-32|0;global$0=$2;$1=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;dmScript__GetInstance_28lua_State__29($0);$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[148682],105260);lua_settop($0,-2);if(($1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){$1=$2+8|0;$6=$1;$4=luaL_checknumber($0,1);label$2:{if($4<4294967296&$4>=0){$5=~~$4>>>0;break label$2}$5=0}HEAP32[$6+4>>2]=$5;HEAP32[$1>>2]=13;$1=HEAP32[$3+4>>2];label$4:{if(($1|0)!=HEAP32[$3+8>>2]){HEAP32[$3+4>>2]=$1+20;HEAP32[$1+16>>2]=HEAP32[$2+24>>2];$0=HEAP32[$2+20>>2];HEAP32[$1+8>>2]=HEAP32[$2+16>>2];HEAP32[$1+12>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1>>2]=HEAP32[$2+8>>2];HEAP32[$1+4>>2]=$0;$0=0;break label$4}HEAP32[$2>>2]=(HEAP32[$3+8>>2]-HEAP32[$3>>2]|0)/20;$0=luaL_error($0,101887,$2)}global$0=$2+32|0;return $0|0}__assert_fail(101841,101738,227,105233);abort()}function dmRender__RenderScript_DisableTexture_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$2=global$0-32|0;global$0=$2;$1=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;dmScript__GetInstance_28lua_State__29($0);$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[148682],105260);lua_settop($0,-2);if(($1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){$1=$2+8|0;$6=$1;$4=luaL_checknumber($0,1);label$2:{if($4<4294967296&$4>=0){$5=~~$4>>>0;break label$2}$5=0}HEAP32[$6+4>>2]=$5;HEAP32[$1>>2]=3;$1=HEAP32[$3+4>>2];label$4:{if(($1|0)!=HEAP32[$3+8>>2]){HEAP32[$3+4>>2]=$1+20;HEAP32[$1+16>>2]=HEAP32[$2+24>>2];$0=HEAP32[$2+20>>2];HEAP32[$1+8>>2]=HEAP32[$2+16>>2];HEAP32[$1+12>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1>>2]=HEAP32[$2+8>>2];HEAP32[$1+4>>2]=$0;$0=0;break label$4}HEAP32[$2>>2]=(HEAP32[$3+8>>2]-HEAP32[$3>>2]|0)/20;$0=luaL_error($0,101887,$2)}global$0=$2+32|0;return $0|0}__assert_fail(101841,101738,227,105233);abort()}function mbedtls_mpi_mul_mpi($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$4=global$0-32|0;global$0=$4;HEAP32[$4+24>>2]=0;HEAP32[$4+16>>2]=1;HEAP32[$4+20>>2]=0;HEAP32[$4+8>>2]=0;HEAP32[$4>>2]=1;HEAP32[$4+4>>2]=0;label$1:{if(($0|0)==($1|0)){$3=mbedtls_mpi_copy($4+16|0,$0);if($3){break label$1}$1=$4+16|0}if(($0|0)==($2|0)){$3=mbedtls_mpi_copy($4,$0);if($3){break label$1}$2=$4}$5=HEAP32[$1+4>>2];while(1){$6=$5;if($5){$5=$6+ -1|0;if(!HEAP32[HEAP32[$1+8>>2]+($5<<2)>>2]){continue}}break}$3=HEAP32[$2+4>>2];while(1){$5=$3;if($5){$3=$5+ -1|0;if(!HEAP32[HEAP32[$2+8>>2]+($3<<2)>>2]){continue}}break}$3=mbedtls_mpi_grow($0,$5+$6|0);if($3){break label$1}$3=mbedtls_mpi_lset($0,0);if($3){break label$1}if($5){while(1){$3=(HEAP32[$0+8>>2]+($5<<2)|0)+ -4|0;$5=$5+ -1|0;mpi_mul_hlp($6,HEAP32[$1+8>>2],$3,HEAP32[HEAP32[$2+8>>2]+($5<<2)>>2]);if($5){continue}break}}HEAP32[$0>>2]=Math_imul(HEAP32[$2>>2],HEAP32[$1>>2]);$3=0}mbedtls_mpi_free($4);mbedtls_mpi_free($4+16|0);global$0=$4+32|0;return $3}function dmMessage__HasMessages_28unsigned_20long_20long_29($0,$1){var $2=0,$3=0,$4=0,$5=0;if(!($0|$1)){return 0}$3=HEAP32[282570];while(1){if(HEAP32[$3+32>>2]){continue}break}label$3:{$2=HEAP32[$3+4>>2];label$4:{if(!$2){break label$4}$2=HEAP32[HEAP32[$3>>2]+(__wasm_i64_urem($0,$1,$2)<<2)>>2];if(($2|0)==-1){break label$4}$5=HEAP32[$3+8>>2];while(1){$4=$5+($2<<6)|0;if(($0|0)==HEAP32[$4>>2]&HEAP32[$4+4>>2]==($1|0)){break label$3}$2=HEAP32[$4+56>>2];if(($2|0)!=-1){continue}break}}HEAP32[$3+32>>2]=0;return 0}$0=$5+($2<<6)|0;$2=HEAP32[$0+8>>2];if($2){$1=$0+8|0;HEAP32[$1>>2]=$2+1;HEAP32[$3+32>>2]=0;$3=HEAP32[$0+36>>2];dmMutex__Lock_28dmMutex__Mutex__29($3);$2=HEAP32[$0+24>>2];dmMutex__Unlock_28dmMutex__Mutex__29($3);$0=HEAP32[282570];while(1){if(HEAP32[$0+32>>2]){continue}break}$3=HEAP32[$1>>2]+ -1|0;HEAP32[$1>>2]=$3;HEAP32[$0+32>>2]=0;if(!$3){dmMessage__DisposeSocket_28dmMessage__MessageSocket__29($1)}return($2|0)!=0}__assert_fail(154113,154132,259,154156);abort()}function dmGameObject__LuaAnimationStopped_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29($0,$1,$2,$3,$4,$5,$6,$7){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;var $8=0,$9=0,$10=0;$7=global$0-48|0;global$0=$7;if(!(!dmScript__IsCallbackValid_28dmScript__LuaCallbackInfo__29($6)|!$5)){$5=HEAP32[HEAP32[$0+80>>2]+8>>2];label$2:{if(!$5){break label$2}$5=HEAP32[$5>>2];if(!$5){break label$2}$8=HEAP32[$5+4224>>2];$9=HEAP32[$5+4228>>2]}$5=HEAP32[$0+96>>2];$10=HEAP32[$0+100>>2];$0=$7;HEAP32[$0+40>>2]=$3;HEAP32[$0+44>>2]=$4;HEAP32[$0+32>>2]=$1;HEAP32[$0+36>>2]=$2;HEAP32[$0+24>>2]=$5;HEAP32[$0+28>>2]=$10;HEAP32[$0+16>>2]=0;HEAP32[$0+20>>2]=0;HEAP32[$0+8>>2]=$8;HEAP32[$0+12>>2]=$9;dmScript__InvokeCallback_28dmScript__LuaCallbackInfo__2c_20void_20_28__29_28lua_State__2c_20void__29_2c_20void__29($6,115,$0+8|0)}dmScript__DestroyCallback_28dmScript__LuaCallbackInfo__29($6);global$0=$7+48|0}function _GLOBAL__sub_I_sys_ddf_cpp(){HEAP32[137949]=HEAP32[145614];HEAP32[145614]=551768;HEAP32[279916]=1;HEAP32[279914]=-990112893;HEAP32[279915]=-1808347863;HEAP32[279913]=122498;HEAP32[279912]=1;HEAP32[279919]=0;HEAP8[1119672]=0;HEAP32[279917]=HEAP32[279910];HEAP32[279919]=HEAP32[145614];HEAP32[145614]=1119648;HEAP32[279926]=1;HEAP32[279924]=-646628091;HEAP32[279925]=-486267828;HEAP32[279923]=122513;HEAP32[279922]=1;HEAP32[279929]=0;HEAP8[1119712]=0;HEAP32[279927]=HEAP32[279921];HEAP32[279929]=HEAP32[145614];HEAP32[145614]=1119688;HEAP32[137983]=HEAP32[145614];HEAP32[145614]=551904;HEAP32[279938]=1;HEAP32[279936]=-588138364;HEAP32[279937]=-388737994;HEAP32[279935]=122574;HEAP32[279934]=1;HEAP32[279941]=0;HEAP8[1119760]=0;HEAP32[279939]=HEAP32[279932];HEAP32[279941]=HEAP32[145614];HEAP32[145614]=1119736;HEAP32[138025]=HEAP32[145614];HEAP32[145614]=552072;HEAP32[138045]=HEAP32[145614];HEAP32[145614]=552152;HEAP32[138061]=HEAP32[145614];HEAP32[145614]=552216}function _GLOBAL__sub_I_rig_ddf_cpp(){HEAP32[139031]=HEAP32[145614];HEAP32[145614]=556096;HEAP32[139073]=HEAP32[145614];HEAP32[145614]=556264;HEAP32[139099]=HEAP32[145614];HEAP32[145614]=556368;HEAP32[139127]=HEAP32[145614];HEAP32[145614]=556480;HEAP32[139151]=HEAP32[145614];HEAP32[145614]=556576;HEAP32[139179]=HEAP32[145614];HEAP32[145614]=556688;HEAP32[139207]=HEAP32[145614];HEAP32[145614]=556800;HEAP32[139225]=HEAP32[145614];HEAP32[145614]=556872;HEAP32[139271]=HEAP32[145614];HEAP32[145614]=557056;HEAP32[139289]=HEAP32[145614];HEAP32[145614]=557128;HEAP32[139305]=HEAP32[145614];HEAP32[145614]=557192;HEAP32[139321]=HEAP32[145614];HEAP32[145614]=557256;HEAP32[139347]=HEAP32[145614];HEAP32[145614]=557360;HEAP32[139415]=HEAP32[145614];HEAP32[145614]=557632;HEAP32[139443]=HEAP32[145614];HEAP32[145614]=557744;HEAP32[139461]=HEAP32[145614];HEAP32[145614]=557816;HEAP32[139497]=HEAP32[145614];HEAP32[145614]=557960;HEAP32[139527]=HEAP32[145614];HEAP32[145614]=558080}function dmDDF__DoResolvePointers_28dmDDF__Descriptor_20const__2c_20void__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$6=HEAPU8[$0+24|0];if($6){while(1){$3=HEAP32[$0+20>>2]+Math_imul($7,20)|0;$4=HEAP32[$3+4>>2];$5=($4>>>22&63)+ -9|0;label$3:{if($5>>>0>3){break label$3}$2=HEAP32[$3+12>>2]+$1|0;label$4:{switch($5-1|0){case 1:dmDDF__DoResolvePointers_28dmDDF__Descriptor_20const__2c_20void__29(HEAP32[$3+8>>2],$2);$6=HEAPU8[$0+24|0];break label$3;default:if(($4&-268435456)==805306368){$3=HEAP32[$2>>2]+$1|0;HEAP32[$2>>2]=$3;$4=HEAP32[$2+4>>2];if(!$4){break label$3}$5=HEAP32[$0+16>>2];$2=0;while(1){$8=HEAP32[$3>>2];HEAP32[$3>>2]=$8>>>0<$5>>>0?0:$8+$1|0;$3=$3+4|0;$2=$2+1|0;if(($4|0)!=($2|0)){continue}break}break label$3}$3=$2;$2=HEAP32[$2>>2];HEAP32[$3>>2]=$2>>>0>2]?0:$2+$1|0;break label$3;case 0:break label$3;case 2:break label$4}}$3=$2;$2=HEAP32[$2>>2];HEAP32[$3>>2]=$2>>>0>2]?0:$2+$1|0}$7=$7+1|0;if($7>>>0<$6>>>0){continue}break}}}function dmGameSystem__ResRenderScriptRecreate_28dmResource__ResourceRecreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$1=global$0-16|0;global$0=$1;$3=HEAP32[$0+4>>2];$4=HEAP32[HEAP32[$0+32>>2]+8>>2];HEAP32[$1+12>>2]=0;$2=-13;if(!dmDDF__LoadMessage_28void_20const__2c_20unsigned_20int_2c_20dmDDF__Descriptor_20const__2c_20void___29(HEAP32[$0+20>>2],HEAP32[$0+24>>2],HEAP32[131334],$1+12|0)){label$2:{label$3:{if(!dmGameObject__RegisterSubModules_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29(HEAP32[$0>>2],HEAP32[$3+3684>>2],HEAP32[$1+12>>2])){break label$3}if(!dmRender__LoadRenderScript_28lua_State__2c_20dmLuaDDF__LuaSource__2c_20dmRender__RenderScript__29(HEAP32[$3+3688>>2],HEAP32[$1+12>>2],$4)){break label$3}$2=HEAP32[$0+32>>2];$3=HEAP32[$0+24>>2];$0=HEAP32[$1+12>>2];HEAP32[$2+16>>2]=$3-HEAP32[$0+4>>2];$2=0;break label$2}$0=HEAP32[$1+12>>2];$2=-13}dmDDF__FreeMessage_28void__29($0)}global$0=$1+16|0;return $2|0}function btDbvtBroadphase__btDbvtBroadphase_28btOverlappingPairCache__29($0,$1){HEAP32[$0>>2]=542044;HEAP32[$0+20>>2]=0;HEAP32[$0+12>>2]=-1;HEAP32[$0+16>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=0;HEAP32[$0+36>>2]=0;HEAP8[$0+40|0]=1;HEAP32[$0+28>>2]=0;HEAP32[$0+32>>2]=0;HEAP32[$0+60>>2]=0;HEAP32[$0+52>>2]=-1;HEAP32[$0+56>>2]=0;HEAP32[$0+44>>2]=0;HEAP32[$0+48>>2]=0;HEAP32[$0+76>>2]=0;HEAP8[$0+80|0]=1;HEAP32[$0+68>>2]=0;HEAP32[$0+72>>2]=0;HEAP8[$0+153|0]=256;HEAP8[$0+154|0]=1;HEAP8[$0+152|0]=!$1;HEAP32[$0+124>>2]=0;HEAP32[$0+100>>2]=0;HEAP32[$0+104>>2]=0;HEAP32[$0+136>>2]=0;HEAP32[$0+128>>2]=0;HEAP32[$0+132>>2]=0;HEAP32[$0+116>>2]=10;HEAP32[$0+120>>2]=1;HEAP32[$0+108>>2]=1;HEAP32[$0+112>>2]=0;if(!$1){$1=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(76);btHashedOverlappingPairCache__btHashedOverlappingPairCache_28_29($1)}HEAP32[$0+148>>2]=0;HEAP32[$0+96>>2]=$1;HEAP32[$0+140>>2]=0;HEAP32[$0+144>>2]=0;HEAP32[$0+84>>2]=0;HEAP32[$0+88>>2]=0;HEAP32[$0+92>>2]=0}function dmDDF__Message__ReadField_28dmDDF__LoadContext__2c_20dmDDF__WireType_2c_20dmDDF__FieldDescriptor_20const__2c_20dmDDF__InputBuffer__29($0,$1,$2,$3,$4){var $5=0;label$1:{$5=(HEAP32[$3+4>>2]>>>22&63)+ -9|0;if($5>>>0>3){break label$1}label$2:{switch($5-1|0){case 1:return dmDDF__Message__ReadMessageField_28dmDDF__LoadContext__2c_20dmDDF__WireType_2c_20dmDDF__FieldDescriptor_20const__2c_20dmDDF__InputBuffer__29($0,$1,$2,$3,$4);default:return dmDDF__Message__ReadStringField_28dmDDF__LoadContext__2c_20dmDDF__WireType_2c_20dmDDF__FieldDescriptor_20const__2c_20dmDDF__InputBuffer__29($0,$1,$2,$3,$4);case 0:break label$1;case 2:break label$2}}return dmDDF__Message__ReadBytesField_28dmDDF__LoadContext__2c_20dmDDF__WireType_2c_20dmDDF__FieldDescriptor_20const__2c_20dmDDF__InputBuffer__29($0,$1,$2,$3,$4)}return dmDDF__Message__ReadScalarField_28dmDDF__LoadContext__2c_20dmDDF__WireType_2c_20dmDDF__FieldDescriptor_20const__2c_20dmDDF__InputBuffer__29($0,$2,$3,$4)}function dmLiveUpdate__VerifyManifest_28dmResource__Manifest__29($0){var $1=0,$2=0;$1=-5;label$1:{if(!dmLiveUpdate__VerifyManifestSupportedEngineVersion_28dmResource__Manifest__29($0)){break label$1}$1=dmLiveUpdate__VerifyManifestSignature_28dmResource__Manifest__29($0);if($1){break label$1}$2=HEAP32[HEAP32[309385]+5140>>2];if(!dmMutex__TryLock_28dmMutex__Mutex__29($2)){while(1){dmTime__Sleep_28unsigned_20int_29(100);if(!dmMutex__TryLock_28dmMutex__Mutex__29($2)){continue}break}}$1=dmResource__VerifyResourcesBundled_28dmResource__SResourceFactory__2c_20dmResource__Manifest__29(HEAP32[309385],$0);dmMutex__Unlock_28dmMutex__Mutex__29($2);label$4:{$0=$1+20|0;if($0>>>0>20){break label$4}label$5:{switch($0-1|0){case 0:return-4;default:return-6;case 4:return-7;case 19:break label$1;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:break label$4;case 18:break label$5}}return-8}$1=-3}return $1}function dmGui__SetNodeParticlefx_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0;$4=HEAP32[$0+32>>2];$5=$1&65535;label$1:{label$2:{if((HEAP32[$0+36>>2]-$4|0)/576>>>0>$5>>>0){if(HEAPU16[(Math_imul($5,576)+$4|0)+552>>1]!=($1>>>16|0)){break label$2}$6=Math_imul($5,576)+$4|0;if(HEAPU16[$6+554>>1]!=($1&65535)){break label$1}$7=-10;label$4:{if((HEAP32[$6+412>>2]&240)!=80){break label$4}$7=-5;$1=HEAP32[$0+220>>2];if(!$1){break label$4}$1=HEAP32[HEAP32[$0+216>>2]+(__wasm_i64_urem($2,$3,$1)<<2)>>2];if(($1|0)==-1){break label$4}$6=HEAP32[$0+224>>2];while(1){$0=$6+($1<<4)|0;if(($2|0)!=HEAP32[$0>>2]|HEAP32[$0+4>>2]!=($3|0)){$1=HEAP32[$0+12>>2];if(($1|0)!=-1){continue}break label$4}break}$0=Math_imul($5,576)+$4|0;HEAP32[$0+528>>2]=$2;HEAP32[$0+532>>2]=$3;$7=0}return $7}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}function b2WorldRayCastWrapper__RayCastCallback_28b2RayCastInput_20const__2c_20int_29($0,$1,$2){var $3=0,$4=0,$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0);$3=global$0-32|0;global$0=$3;label$1:{if(($2|0)<0){break label$1}$4=HEAP32[$0>>2];if(HEAP32[$4+12>>2]<=($2|0)){break label$1}$4=HEAP32[(HEAP32[$4+4>>2]+Math_imul($2,36)|0)+16>>2];$2=HEAP32[$4+16>>2];$6=HEAP32[$2+12>>2];$4=HEAP32[$4+20>>2];label$2:{if(FUNCTION_TABLE[HEAP32[HEAP32[$6>>2]+20>>2]]($6,$3+16|0,$1,HEAP32[$2+8>>2]+12|0,$4)){$8=HEAPF32[$1>>2];$9=HEAPF32[$1+8>>2];$5=HEAPF32[$3+24>>2];$7=Math_fround(Math_fround(1)-$5);HEAPF32[$3+12>>2]=Math_fround($7*HEAPF32[$1+4>>2])+Math_fround($5*HEAPF32[$1+12>>2]);HEAPF32[$3+8>>2]=Math_fround($7*$8)+Math_fround($5*$9);$0=HEAP32[$0+4>>2];$5=Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$2,$4,$3+8|0,$3+16|0,$5));break label$2}$5=HEAPF32[$1+16>>2]}global$0=$3+32|0;return $5}__assert_fail(97838,97879,160,97935);abort()}function dmGui__SetDirtyLocalRecursive_28dmGui__Scene__2c_20unsigned_20int_29($0,$1){var $2=0,$3=0;label$1:{label$2:{label$3:{$2=HEAP32[$0+32>>2];$3=$1&65535;if((HEAP32[$0+36>>2]-$2|0)/576>>>0>$3>>>0){if(HEAPU16[($2+Math_imul($3,576)|0)+552>>1]!=($1>>>16|0)){break label$3}$2=$2+Math_imul($3,576)|0;if(HEAPU16[$2+554>>1]!=($1&65535)){break label$2}HEAP32[$2+412>>2]=HEAP32[$2+412>>2]|2097152;$1=HEAPU16[$2+562>>1];if(($1|0)!=65535){while(1){$2=HEAP32[$0+32>>2];$1=$1&65535;if((HEAP32[$0+36>>2]-$2|0)/576>>>0<=$1>>>0){break label$1}$1=$2+Math_imul($1,576)|0;HEAP32[$1+412>>2]=HEAP32[$1+412>>2]|2097152;if(HEAPU16[$1+562>>1]!=65535){dmGui__SetDirtyLocalRecursive_28dmGui__Scene__2c_20unsigned_20int_29($0,HEAPU16[$1+554>>1]|HEAPU16[$1+552>>1]<<16)}$1=HEAPU16[$1+558>>1];if(($1|0)!=65535){continue}break}}return}break label$1}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}__assert_fail(201597,201431,430,201608);abort()}function b2FrictionJoint__Dump_28_29($0){$0=$0|0;var $1=0,$2=Math_fround(0),$3=0,$4=0;$1=global$0-128|0;global$0=$1;$3=HEAP32[HEAP32[$0+52>>2]+8>>2];$4=HEAP32[HEAP32[$0+48>>2]+8>>2];b2Log_28char_20const__2c_20____29(90201,0);HEAP32[$1+112>>2]=$4;b2Log_28char_20const__2c_20____29(90227,$1+112|0);HEAP32[$1+96>>2]=$3;b2Log_28char_20const__2c_20____29(90253,$1+96|0);HEAP32[$1+80>>2]=HEAPU8[$0+61|0];b2Log_28char_20const__2c_20____29(90279,$1+80|0);$2=HEAPF32[$0+68>>2];HEAPF64[$1+72>>3]=HEAPF32[$0+72>>2];HEAPF64[$1+64>>3]=$2;b2Log_28char_20const__2c_20____29(90314,$1- -64|0);$2=HEAPF32[$0+76>>2];HEAPF64[$1+56>>3]=HEAPF32[$0+80>>2];HEAPF64[$1+48>>3]=$2;b2Log_28char_20const__2c_20____29(90356,$1+48|0);HEAPF64[$1+32>>3]=HEAPF32[$0+96>>2];b2Log_28char_20const__2c_20____29(90398,$1+32|0);HEAPF64[$1+16>>3]=HEAPF32[$0+100>>2];b2Log_28char_20const__2c_20____29(90424,$1+16|0);HEAP32[$1>>2]=HEAP32[$0+56>>2];b2Log_28char_20const__2c_20____29(90451,$1);global$0=$1+128|0}function luaK_exp2RK($0,$1){var $2=0,$3=0,$4=0;$2=global$0-32|0;global$0=$2;label$1:{if(HEAP32[$1+16>>2]!=HEAP32[$1+20>>2]){luaK_exp2anyreg($0,$1);break label$1}luaK_dischargevars($0,$1)}label$3:{label$4:{$3=HEAP32[$1>>2];$4=$3+ -1|0;if($4>>>0>4){break label$4}if($4-3){if(HEAP32[$0+40>>2]>255){break label$4}label$6:{label$7:{$4=$3+ -1|0;if($4>>>0>4){break label$7}label$8:{switch($4-1|0){default:HEAP32[$2+8>>2]=0;$3=HEAP32[$0+4>>2];HEAP32[$2+24>>2]=5;HEAP32[$2+16>>2]=$3;$0=addk($0,$2+16|0,$2);break label$6;case 0:case 1:case 2:break label$7;case 3:break label$8}}$3=HEAP32[$1+12>>2];$4=HEAP32[$1+8>>2];HEAP32[$2+24>>2]=3;HEAP32[$2+16>>2]=$4;HEAP32[$2+20>>2]=$3;$0=addk($0,$2+16|0,$2+16|0);break label$6}HEAP32[$2+24>>2]=1;HEAP32[$2+16>>2]=($3|0)==2;$0=addk($0,$2+16|0,$2+16|0)}HEAP32[$1>>2]=4;HEAP32[$1+8>>2]=$0;$0=$0|256;break label$3}$3=HEAP32[$1+8>>2];if(($3|0)>255){break label$4}$0=$3|256;break label$3}$0=luaK_exp2anyreg($0,$1)}global$0=$2+32|0;return $0}function ecp_use_curve448($0){var $1=0,$2=0,$3=0;$3=global$0-16|0;global$0=$3;HEAP32[$3+8>>2]=0;HEAP32[$3>>2]=1;HEAP32[$3+4>>2]=0;label$1:{label$2:{$1=mbedtls_mpi_read_string($0+16|0,142088);if($1){break label$2}$2=$0+4|0;$1=mbedtls_mpi_lset($2,1);if($1){break label$2}$1=mbedtls_mpi_shift_l($2,224);if($1){break label$2}$1=mbedtls_mpi_sub_int($2,$2,1);if($1){break label$2}$1=mbedtls_mpi_shift_l($2,224);if($1){break label$2}$1=mbedtls_mpi_sub_int($2,$2,1);if($1){break label$2}HEAP32[$0+88>>2]=mbedtls_mpi_bitlen($2);$1=mbedtls_mpi_lset($0+40|0,5);if($1){break label$2}$1=mbedtls_mpi_lset($0- -64|0,1);if($1){break label$2}mbedtls_mpi_free($0+52|0);$2=$0+76|0;$1=mbedtls_mpi_set_bit($2,446,1);if($1){break label$2}$1=mbedtls_mpi_read_string($3,142093);if($1){break label$2}$1=mbedtls_mpi_sub_mpi($2,$2,$3);if($1){break label$2}HEAP32[$0+92>>2]=447;mbedtls_mpi_free($3);$1=0;break label$1}mbedtls_mpi_free($3);mbedtls_ecp_group_free($0)}global$0=$3+16|0;return $1}function dmConnectionPool__Reopen_28dmConnectionPool__ConnectionPool__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0;$4=HEAP32[$0+28>>2];dmMutex__Lock_28dmMutex__Mutex__29($4);$2=HEAP32[$0+8>>2];$1=HEAP32[$0+12>>2]-$2|0;label$1:{if(!$1){break label$1}$5=$1>>6;while(1){$1=($3<<6)+$2|0;if(HEAP32[$1+48>>2]==1){dmSocket__Delete_28int_29(HEAP32[$1+44>>2]);dmSSLSocket__Delete_28dmSSLSocket__SSLSocket__29(HEAP32[$1+40>>2]);HEAP32[$1+56>>2]=0;HEAP32[$1+60>>2]=0;HEAP32[$1+48>>2]=0;HEAP32[$1+52>>2]=0;HEAP32[$1+32>>2]=0;HEAP32[$1+36>>2]=0;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+40>>2]=0;HEAP32[$1+44>>2]=-1;HEAP32[$1+48>>2]=0}$3=$3+1|0;if(($5|0)==($3|0)){break label$1}$2=HEAP32[$0+8>>2];if(HEAP32[$0+12>>2]-$2>>6>>>0>$3>>>0){continue}break}__assert_fail(136627,136344,430,136638);abort()}HEAP8[$0+32|0]=HEAPU8[$0+32|0]|1;dmMutex__Unlock_28dmMutex__Mutex__29($4)}function btRigidBody__addConstraintRef_28btTypedConstraint__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$2=HEAP32[$0+480>>2];label$1:{label$2:{if(($2|0)<1){break label$2}$4=HEAP32[$0+488>>2];while(1){if(HEAP32[$4+($3<<2)>>2]!=($1|0)){$3=$3+1|0;if(($3|0)!=($2|0)){continue}break label$2}break}if(($2|0)!=($3|0)){break label$1}}label$5:{if(HEAP32[$0+484>>2]!=($2|0)){break label$5}$4=$2?$2<<1:1;if(($2|0)>=($4|0)){break label$5}if($4){$5=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($4<<2);$2=HEAP32[$0+480>>2]}if(($2|0)>=1){$3=0;while(1){$6=$3<<2;HEAP32[$6+$5>>2]=HEAP32[HEAP32[$0+488>>2]+$6>>2];$3=$3+1|0;if(($3|0)!=($2|0)){continue}break}}$3=HEAP32[$0+488>>2];if($3){if(HEAPU8[$0+492|0]){if($3){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$3+ -4>>2])}$2=HEAP32[$0+480>>2]}HEAP32[$0+488>>2]=0}HEAP32[$0+488>>2]=$5;HEAP32[$0+484>>2]=$4;HEAP8[$0+492|0]=1}HEAP32[HEAP32[$0+488>>2]+($2<<2)>>2]=$1;HEAP32[$0+480>>2]=$2+1}HEAP32[$0+252>>2]=1}function opt_ip6_setmembership($0,$1,$2){var $3=0,$4=0;$3=global$0-32|0;global$0=$3;HEAP32[$3+24>>2]=0;HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;if((lua_type($0,3)|0)!=5){auxiliar_typeerror($0,HEAP32[138101])}lua_pushstring($0,120801);lua_gettable($0,3);if(!lua_isstring($0,-1)){luaL_argerror($0,3,120811)}if(!inet_pton(10,lua_tolstring($0,-1,0),$3+8|0)){luaL_argerror($0,3,120845)}lua_pushstring($0,120876);lua_gettable($0,3);label$4:{if(!lua_type($0,-1)){break label$4}if(lua_isnumber($0,-1)){$4=lua_tonumber($0,-1);if($4<4294967296&$4>=0){HEAP32[$3+24>>2]=~~$4>>>0;break label$4}HEAP32[$3+24>>2]=0;break label$4}luaL_argerror($0,-1,120951)}label$7:{if((setsockopt(HEAP32[$1>>2],41,$2,$3+8|0,20)|0)<=-1){$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;lua_pushstring($0,120985);$0=2;break label$7}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=1;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;$0=1}global$0=$3+32|0;return $0}function dmWebsocket__WebsocketInitialize_28dmExtension__Params__29($0){$0=$0|0;var $1=0,$2=0,$3=0;$2=global$0-16|0;global$0=$2;label$1:{if(HEAP8[580868]&1){$0=HEAP32[$0+4>>2];$3=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;luaL_register($0,1331,225408);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,1497);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=1;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,1513);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=2;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,1532);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,1546);lua_settop($0,-2);if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($3|0)){break label$1}HEAP32[$2>>2]=1331;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,1149,1473,$2)}global$0=$2+16|0;return 0}__assert_fail(1558,1579,328,1614);abort()}function dmGameSystem__CompCameraCreate_28dmGameObject__ComponentCreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$4=global$0-16|0;global$0=$4;$3=HEAP32[$0+64>>2];$1=HEAP32[$3+4>>2];label$1:{label$2:{if(($1|0)!=HEAP32[$3+8>>2]){$5=HEAP32[$0>>2];$2=HEAP32[HEAP32[$0+60>>2]>>2];$6=HEAP32[$2>>2];$7=HEAP32[$2+4>>2];$8=HEAP32[$2+12>>2];$9=HEAP32[$2+8>>2];$10=HEAP32[$2+16>>2];$2=HEAPU16[$0+76>>1];HEAP32[$3+4>>2]=$1+28;HEAP16[$1+26>>1]=$2;$2=0;HEAP8[$1+24|0]=($10|0)!=0;HEAP32[$1+16>>2]=$9;HEAP32[$1+20>>2]=$8;HEAP32[$1+8>>2]=$6;HEAP32[$1+12>>2]=$7;HEAP32[$1+4>>2]=$3;HEAP32[$1>>2]=$5;$1=HEAP32[$3>>2];$3=HEAP32[$3+4>>2]-$1|0;if(!$3){break label$1}HEAP32[HEAP32[$0+72>>2]>>2]=($1+Math_imul(($3|0)/28|0,28)|0)+ -28;break label$2}HEAP32[$4>>2]=64;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,34296,34304,$4);$2=-1e3}global$0=$4+16|0;return $2|0}__assert_fail(34765,34653,430,34776);abort()}function dmGameSystem__CollectionFactoryComp_Unload_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$1=global$0+ -64|0;global$0=$1;$2=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($1+48|0,$0,0);$3=HEAP32[HEAP32[dmGameSystem__CheckGoInstance_28lua_State__29($0)+80>>2]+8>>2];HEAP32[$1+32>>2]=0;HEAP32[$1+36>>2]=0;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$3,62745,$1+44|0,$1+8|0,0);if(!dmGameSystem__CompCollectionFactoryUnload_28dmGameObject__CollectionHandle__2c_20dmGameSystem__CollectionFactoryComponent__29($3,HEAP32[$1+44>>2])){$4=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($2,62967,0)}dmScript__LuaStackCheck___LuaStackCheck_28_29($2);global$0=$1- -64|0;return $4|0}function b2TestOverlap_28b2Shape_20const__2c_20int_2c_20b2Shape_20const__2c_20int_2c_20b2Transform_20const__2c_20b2Transform_20const__29($0,$1,$2,$3,$4,$5){var $6=0;$6=global$0-144|0;global$0=$6;HEAP32[$6+100>>2]=0;HEAP32[$6+92>>2]=0;HEAP32[$6+96>>2]=0;HEAP32[$6+72>>2]=0;HEAP32[$6+64>>2]=0;HEAP32[$6+68>>2]=0;b2DistanceProxy__Set_28b2Shape_20const__2c_20int_29($6+48|0,$0,$1);b2DistanceProxy__Set_28b2Shape_20const__2c_20int_29($6+76|0,$2,$3);$0=HEAP32[$4+12>>2];HEAP32[$6+112>>2]=HEAP32[$4+8>>2];HEAP32[$6+116>>2]=$0;$0=HEAP32[$4+4>>2];HEAP32[$6+104>>2]=HEAP32[$4>>2];HEAP32[$6+108>>2]=$0;$0=HEAP32[$5+12>>2];HEAP32[$6+128>>2]=HEAP32[$5+8>>2];HEAP32[$6+132>>2]=$0;$0=HEAP32[$5+4>>2];HEAP32[$6+120>>2]=HEAP32[$5>>2];HEAP32[$6+124>>2]=$0;HEAP8[$6+136|0]=1;HEAP16[$6+36>>1]=0;b2Distance_28b2DistanceOutput__2c_20b2SimplexCache__2c_20b2DistanceInput_20const__29($6+8|0,$6+32|0,$6+48|0);global$0=$6+144|0;return HEAPF32[$6+24>>2]>2];label$4:{if(!$4){break label$4}$4=HEAP32[HEAP32[$0+264>>2]+(__wasm_i64_urem($2,$3,$4)<<2)>>2];if(($4|0)==-1){break label$4}$7=HEAP32[$0+272>>2];while(1){$6=($4<<4)+$7|0;if(($2|0)!=HEAP32[$6>>2]|HEAP32[$6+4>>2]!=($3|0)){$4=HEAP32[$6+12>>2];if(($4|0)!=-1){continue}break label$4}break}$6=HEAP32[$0+36>>2];$0=HEAP32[$0+32>>2];$5=$1&65535;if(($6-$0|0)/576>>>0<=$5>>>0){break label$3}if(HEAPU16[($0+Math_imul($5,576)|0)+552>>1]!=($1>>>16|0)){break label$2}$0=$0+Math_imul($5,576)|0;if(HEAPU16[$0+554>>1]!=($1&65535)){break label$1}HEAP32[$0+496>>2]=$2;HEAP32[$0+500>>2]=$3;HEAP16[$0+504>>1]=HEAPU16[(($4<<4)+$7|0)+8>>1];$5=0}return $5}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}function dmGui__SetNodeFont_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0;$5=-5;label$1:{label$2:{label$3:{$4=HEAP32[$0+84>>2];label$4:{if(!$4){break label$4}$4=HEAP32[HEAP32[$0+80>>2]+(__wasm_i64_urem($2,$3,$4)<<2)>>2];if(($4|0)==-1){break label$4}$7=HEAP32[$0+88>>2];while(1){$6=($4<<4)+$7|0;if(($2|0)!=HEAP32[$6>>2]|HEAP32[$6+4>>2]!=($3|0)){$4=HEAP32[$6+12>>2];if(($4|0)!=-1){continue}break label$4}break}$6=HEAP32[$0+36>>2];$0=HEAP32[$0+32>>2];$5=$1&65535;if(($6-$0|0)/576>>>0<=$5>>>0){break label$3}if(HEAPU16[($0+Math_imul($5,576)|0)+552>>1]!=($1>>>16|0)){break label$2}$0=$0+Math_imul($5,576)|0;if(HEAPU16[$0+554>>1]!=($1&65535)){break label$1}HEAP32[$0+480>>2]=$2;HEAP32[$0+484>>2]=$3;HEAP32[$0+488>>2]=HEAP32[(($4<<4)+$7|0)+8>>2];$5=0}return $5}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}function dmConfigFile__GetFloat_28dmConfigFile__Config__2c_20char_20const__2c_20float_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$3=global$0-16|0;global$0=$3;$6=dmHashString64($1);$7=i64toi32_i32$HIGH_BITS;$1=HEAP32[$0+4>>2];$4=HEAP32[$0>>2];label$1:{if(($1|0)==($4|0)){break label$1}$1=$1-$4>>4;$8=$1>>>0>1?$1:1;$1=0;while(1){label$3:{$5=$4+($1<<4)|0;if(($6|0)==HEAP32[$5>>2]&HEAP32[$5+4>>2]==($7|0)){$5=HEAP32[$0+20>>2];$0=HEAP32[$0+16>>2];$1=HEAP32[($4+($1<<4)|0)+8>>2];if($5-$0>>>0>$1>>>0){break label$3}__assert_fail(135894,135766,430,135905);abort()}$1=$1+1|0;if(($8|0)!=($1|0)){continue}break label$1}break}if(!$0){break label$1}$0=$0+$1|0;$1=strlen($0);HEAP32[$3+12>>2]=0;$9=strtod($0,$3+12|0);$4=$0+$1|0;$1=HEAP32[$3+12>>2];if(!(($4|0)!=($1|0)|($0|0)==($1|0))){$2=Math_fround($9);break label$1}HEAP32[$3>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,135436,135623,$3)}global$0=$3+16|0;return $2}function mbedtls_ssl_free($0){var $1=0,wasm2js_i32$0=0,wasm2js_i32$1=0,wasm2js_i32$2=0,wasm2js_i32$3=0;if($0){$1=HEAP32[$0+184>>2];if($1){FUNCTION_TABLE[HEAP32[139546]]($1,0,16749)|0;dlfree(HEAP32[$0+184>>2])}$1=HEAP32[$0+100>>2];if($1){FUNCTION_TABLE[HEAP32[139546]]($1,0,16749)|0;dlfree(HEAP32[$0+100>>2])}$1=HEAP32[$0+80>>2];if($1){mbedtls_ssl_transform_free($1);dlfree(HEAP32[$0+80>>2])}if(HEAP32[$0+68>>2]){mbedtls_ssl_handshake_free($0);mbedtls_ssl_transform_free(HEAP32[$0+84>>2]);mbedtls_ssl_session_free(HEAP32[$0+64>>2]);dlfree(HEAP32[$0+68>>2]);dlfree(HEAP32[$0+84>>2]);dlfree(HEAP32[$0+64>>2])}$1=HEAP32[$0+60>>2];if($1){mbedtls_ssl_session_free($1);dlfree(HEAP32[$0+60>>2])}$1=HEAP32[$0+236>>2];if($1){wasm2js_i32$1=$1,wasm2js_i32$2=0,wasm2js_i32$3=strlen($1),wasm2js_i32$0=HEAP32[139546],FUNCTION_TABLE[wasm2js_i32$0](wasm2js_i32$1|0,wasm2js_i32$2|0,wasm2js_i32$3|0)|0;dlfree(HEAP32[$0+236>>2])}FUNCTION_TABLE[HEAP32[139546]]($0,0,280)|0}}function inet_meth_getpeername($0,$1,$2){var $3=0,$4=0;$3=global$0-208|0;global$0=$3;HEAP32[$3+76>>2]=128;label$1:{if((getpeername(HEAP32[$1>>2],$3+80|0,$3+76|0)|0)<=-1){$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;lua_pushstring($0,socket_strerror(HEAP32[310273]));$0=2;break label$1}$1=getnameinfo($3+80|0,HEAP32[$3+76>>2],$3+16|0,46,$3+10|0,6,3)|0;if($1){$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;lua_pushstring($0,gai_strerror($1|0)|0);$0=2;break label$1}lua_pushstring($0,$3+16|0);$1=strtol($3+10|0,0);$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=3;HEAPF64[$4>>3]=$1|0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;label$4:{label$5:{$1=$2+ -2|0;if($1>>>0>8){break label$5}label$6:{switch($1-1|0){default:lua_pushlstring($0,120313,4);break label$4;case 0:case 1:case 2:case 3:case 4:case 5:case 6:break label$5;case 7:break label$6}}lua_pushlstring($0,120318,5);break label$4}lua_pushlstring($0,120352,13)}$0=3}global$0=$3+208|0;return $0}function dmScript__GetStringFromHashOrString_28lua_State__2c_20int_2c_20char__2c_20unsigned_20int_29($0,$1,$2){var $3=0,$4=0;$3=global$0-48|0;global$0=$3;label$1:{if((lua_type($0,$1)|0)==4){HEAP32[$3+44>>2]=0;$4=lua_tolstring($0,$1,$3+44|0);$0=HEAP32[$3+44>>2];$1=$0>>>0<128;HEAP8[memcpy($2,$4,$1?$0:128)+($1?$0:127)|0]=0;break label$1}if(dmScript__ToUserType_28lua_State__2c_20int_2c_20unsigned_20int_29($0,$1,HEAP32[148786])){$0=lua_touserdata($0,$1);$1=dmHashReverse64(HEAP32[$0>>2],HEAP32[$0+4>>2]);if($1){HEAP32[$3+32>>2]=$1;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($2,128,110324,$3+32|0);break label$1}$1=HEAP32[$0+4>>2];HEAP32[$3+16>>2]=HEAP32[$0>>2];HEAP32[$3+20>>2]=$1;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($2,128,110327,$3+16|0);break label$1}HEAP32[$3>>2]=110332;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($2,128,110324,$3)}global$0=$3+48|0;return $2}function dmEngineService__HttpResourceRequestCallback_28void__2c_20dmWebServer__Request__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0;$2=global$0-16|0;global$0=$2;HEAP16[$2+14>>1]=4;label$1:{label$2:{$3=dmWebServer__Send_28dmWebServer__Request__2c_20void_20const__2c_20unsigned_20int_29($1,$2+14|0,2);if(!$3){$3=dmWebServer__Send_28dmWebServer__Request__2c_20void_20const__2c_20unsigned_20int_29($1,7251,HEAPU16[$2+14>>1]);if(!$3){break label$2}}HEAP32[$2>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,5691,7256,$2);break label$1}dmWebServer__SendAttribute_28dmWebServer__Request__2c_20char_20const__2c_20char_20const__29($1,7315,7343);dmWebServer__SendAttribute_28dmWebServer__Request__2c_20char_20const__2c_20char_20const__29($1,7228,7242);dmResource__IterateResources_28dmResource__SResourceFactory__2c_20bool_20_28__29_28dmResource__IteratorResource_20const__2c_20void__29_2c_20void__29($0,$1)}global$0=$2+16|0}function socket_connect($0,$1,$2,$3){var $4=0,$5=0,$6=0;$5=global$0-16|0;global$0=$5;$4=HEAP32[$0>>2];label$1:{if(($4|0)==-1){$4=-2;break label$1}if(!connect($4,$1,$2)){$4=0;break label$1}while(1){$4=HEAP32[310273];HEAP32[$5+4>>2]=$4;if(($4|0)!=27){if(($4|0)!=26?($4|0)!=6:0){break label$1}$4=-1;if(HEAPF64[$3>>3]==0){break label$1}$1=HEAP32[$0>>2];HEAP32[$5+12>>2]=5;HEAP32[$5+8>>2]=$1;label$6:{label$7:{while(1){$2=$5+8|0;$6=timeout_getretry($3)*1e3;label$9:{if(Math_abs($6)<2147483648){$1=~~$6;break label$9}$1=-2147483648}$1=poll($2,($1|0)>-1?$1:-1);if(($1|0)!=-1){if($1){if(HEAPU8[$5+14|0]&9){break label$7}$4=0}HEAP32[$5+4>>2]=$4;break label$1}if(HEAP32[310273]==27){continue}break}$4=HEAP32[310273];HEAP32[$5+4>>2]=$4;if(($4|0)!=-2){break label$1}break label$6}HEAP32[$5+4>>2]=-2}$4=0;if(!recv(HEAP32[$0>>2],$5+4|0,0)){break label$1}$4=HEAP32[310273];break label$1}if(connect(HEAP32[$0>>2],$1,$2)){continue}break}$4=0}global$0=$5+16|0;return $4}function socket_accept($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0;$7=global$0-16|0;global$0=$7;label$1:{if(HEAP32[$0>>2]==-1){$5=-2;break label$1}while(1){$5=accept(HEAP32[$0>>2],$2,$3);HEAP32[$1>>2]=$5;if(($5|0)!=-1){$5=0;break label$1}$5=HEAP32[310273];$6=$5+ -6|0;if($6>>>0>21){break label$1}label$5:{switch($6-1|0){case 0:case 1:case 2:case 3:case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:break label$1;case 20:continue;default:break label$5}}$5=HEAP32[$0>>2];HEAP32[$7+12>>2]=1;HEAP32[$7+8>>2]=$5;label$6:{if(HEAPF64[$4>>3]==0){break label$6}label$7:{while(1){$5=$7+8|0;$8=timeout_getretry($4)*1e3;label$9:{if(Math_abs($8)<2147483648){$6=~~$8;break label$9}$6=-2147483648}$6=poll($5,($6|0)>-1?$6:-1);if(($6|0)!=-1){$5=0;if($6){break label$7}break label$6}if(HEAP32[310273]==27){continue}break}$5=HEAP32[310273]}if(!$5){continue}break label$1}break}$5=-1}global$0=$7+16|0;return $5}function modf($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0;wasm2js_scratch_store_f64(+$0);$2=wasm2js_scratch_load_i32(1)|0;$6=wasm2js_scratch_load_i32(0)|0;$7=$2;$3=$2>>>20&2047;$2=$3+ -1023|0;folding_inner0:{label$1:{if($3>>>0>=1075){HEAPF64[$1>>3]=$0;if(($2|0)==1024?$7&1048575|$6:0){break label$1}break folding_inner0}if($3>>>0<=1022){HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=$7&-2147483648;return $0}$3=$7;$5=$6;$4=$2&31;if(32<=($2&63)>>>0){$3=$5<<$4;$5=0}else{$3=(1<<$4)-1&$5>>>32-$4|$3<<$4;$5=$5<<$4}if(!($5|$3&1048575)){HEAPF64[$1>>3]=$0;break folding_inner0}$4=$2&31;$5=$1;if(32<=($2&63)>>>0){$3=-1;$2=-1048576>>$4}else{$3=-1048576>>$4;$2=((1<<$4)-1&-1048576)<<32-$4}$2=$2&$6;HEAP32[$5>>2]=$2;$6=$1;$1=$3&$7;HEAP32[$6+4>>2]=$1;wasm2js_scratch_store_i32(0,$2|0);wasm2js_scratch_store_i32(1,$1|0);$0=$0- +wasm2js_scratch_load_f64()}return $0}$1=$7&-2147483648;wasm2js_scratch_store_i32(0,0);wasm2js_scratch_store_i32(1,$1|0);return+wasm2js_scratch_load_f64()}function ecp_randomize_jac($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0;$4=global$0-32|0;global$0=$4;$7=$0+4|0;$8=HEAP32[$0+88>>2]+7>>>3|0;HEAP32[$4+24>>2]=0;HEAP32[$4+16>>2]=1;HEAP32[$4+20>>2]=0;HEAP32[$4+8>>2]=0;HEAP32[$4>>2]=1;HEAP32[$4+4>>2]=0;label$1:{label$2:{while(1){$5=mbedtls_mpi_fill_random($4+16|0,$8,$2,$3);if($5){break label$2}while(1){if((mbedtls_mpi_cmp_mpi($4+16|0,$7)|0)>=0){$5=mbedtls_mpi_shift_r($4+16|0,1);if(!$5){continue}break label$2}break}if(($6|0)==11){$5=-19712;break label$1}$6=$6+1|0;if((mbedtls_mpi_cmp_int($4+16|0,1)|0)<1){continue}break}$2=$1+24|0;$5=mbedtls_mpi_mul_mod($0,$2,$2,$4+16|0);if($5){break label$2}$5=mbedtls_mpi_mul_mod($0,$4,$4+16|0,$4+16|0);if($5){break label$2}$5=mbedtls_mpi_mul_mod($0,$1,$1,$4);if($5){break label$2}$5=mbedtls_mpi_mul_mod($0,$4,$4,$4+16|0);if($5){break label$2}$2=$0;$0=$1+12|0;$5=mbedtls_mpi_mul_mod($2,$0,$0,$4)}mbedtls_mpi_free($4+16|0);mbedtls_mpi_free($4)}global$0=$4+32|0;return $5}function sweeplist($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$3=HEAP32[$1>>2];label$1:{if(!$3){break label$1}$5=HEAP32[$0+16>>2];$6=HEAPU8[$5+20|0]^3;while(1){if(!$2){break label$1}if(HEAPU8[$3+4|0]==8){sweeplist($0,$3+104|0,-3)}$4=HEAPU8[$3+5|0];label$4:{if(($4^3)&$6){HEAP8[$3+5|0]=HEAPU8[$5+20|0]&3|$4&248;$1=$3;break label$4}HEAP32[$1>>2]=HEAP32[$3>>2];if(HEAP32[$5+28>>2]==($3|0)){HEAP32[$5+28>>2]=HEAP32[$3>>2]}$4=HEAPU8[$3+4|0]+ -4|0;if($4>>>0>6){break label$4}label$7:{switch($4-1|0){case 4:luaF_freeproto($0,$3);break label$4;case 1:luaF_freeclosure($0,$3);break label$4;case 5:luaF_freeupval($0,$3);break label$4;case 0:luaH_free($0,$3);break label$4;case 3:luaE_freethread($0,$3);break label$4;default:$4=HEAP32[$0+16>>2];HEAP32[$4+4>>2]=HEAP32[$4+4>>2]+ -1;luaM_realloc_($0,$3,HEAP32[$3+12>>2]+17|0,0);break label$4;case 2:break label$7}}luaM_realloc_($0,$3,HEAP32[$3+16>>2]+32|0,0)}$2=$2+ -1|0;$3=HEAP32[$1>>2];if($3){continue}break}}return $1}function dmZlib__InflateBuffer_28void_20const__2c_20unsigned_20int_2c_20void__2c_20bool_20_28__29_28void__2c_20void_20const__2c_20unsigned_20int_29_29($0,$1,$2){var $3=0,$4=0,$5=0;$3=global$0-16448|0;global$0=$3;HEAP32[$3+16432>>2]=0;HEAP32[$3+16424>>2]=0;HEAP32[$3+16428>>2]=0;HEAP32[$3+16392>>2]=0;HEAP32[$3+16396>>2]=0;label$1:{label$2:{$4=inflateInit2_($3+16392|0);$5=$4+6|0;if($5>>>0<=8){if(($5|0)!=6){break label$1}HEAP32[$3+16392>>2]=$0;HEAP32[$3+16396>>2]=$1;while(1){HEAP32[$3+16408>>2]=16384;HEAP32[$3+16404>>2]=$3;$0=inflate($3+16392|0);if(($0|0)==-2){break label$2}if(!(($0|0)!=2?($0|0)>=0:0)){inflateEnd($3+16392|0);$4=-3;break label$1}if(!FUNCTION_TABLE[1576]($2,$3,16384-HEAP32[$3+16408>>2]|0)){inflateEnd($3+16392|0);$4=-1;break label$1}if(!HEAP32[$3+16408>>2]){continue}break}$4=($0|0)==1?0:-3;inflateEnd($3+16392|0);break label$1}$4=-1e3;break label$1}__assert_fail(171031,171053,65,171074);abort()}global$0=$3+16448|0;return $4}function dmGui__Context___Context_28_29($0){var $1=0;label$1:{if(HEAP8[$0+192|0]&1){break label$1}$1=HEAP32[$0+180>>2];if(!$1){break label$1}dlfree($1)}label$2:{if(HEAP8[$0+164|0]&1){break label$2}$1=HEAP32[$0+152>>2];if(!$1){break label$2}dlfree($1)}label$3:{if(HEAP8[$0+148|0]&1){break label$3}$1=HEAP32[$0+136>>2];if(!$1){break label$3}dlfree($1)}label$4:{if(HEAP8[$0+132|0]&1){break label$4}$1=HEAP32[$0+120>>2];if(!$1){break label$4}dlfree($1)}label$5:{if(HEAP8[$0+116|0]&1){break label$5}$1=HEAP32[$0+104>>2];if(!$1){break label$5}dlfree($1)}label$6:{if(HEAP8[$0+100|0]&1){break label$6}$1=HEAP32[$0+88>>2];if(!$1){break label$6}dlfree($1)}label$7:{if(HEAP8[$0+84|0]&1){break label$7}$1=HEAP32[$0+72>>2];if(!$1){break label$7}dlfree($1)}label$8:{if(HEAP8[$0+68|0]&1){break label$8}$1=HEAP32[$0+56>>2];if(!$1){break label$8}dlfree($1)}label$9:{if(HEAP8[$0+52|0]&1){break label$9}$1=HEAP32[$0+40>>2];if(!$1){break label$9}dlfree($1)}return $0}function __vfprintf_internal($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0;$5=global$0-208|0;global$0=$5;HEAP32[$5+204>>2]=$2;$2=0;memset($5+160|0,0,40);HEAP32[$5+200>>2]=HEAP32[$5+204>>2];label$1:{if((printf_core(0,$1,$5+200|0,$5+80|0,$5+160|0,$3,$4)|0)<0){$1=-1;break label$1}$2=HEAP32[$0+76>>2]>=0?1:$2;$6=HEAP32[$0>>2];if(HEAP8[$0+74|0]<=0){HEAP32[$0>>2]=$6&-33}$7=$6&32;label$5:{if(HEAP32[$0+48>>2]){$1=printf_core($0,$1,$5+200|0,$5+80|0,$5+160|0,$3,$4);break label$5}HEAP32[$0+48>>2]=80;HEAP32[$0+16>>2]=$5+80;HEAP32[$0+28>>2]=$5;HEAP32[$0+20>>2]=$5;$6=HEAP32[$0+44>>2];HEAP32[$0+44>>2]=$5;$3=printf_core($0,$1,$5+200|0,$5+80|0,$5+160|0,$3,$4);$1=$3;if(!$6){break label$5}FUNCTION_TABLE[HEAP32[$0+36>>2]]($0,0,0)|0;HEAP32[$0+48>>2]=0;HEAP32[$0+44>>2]=$6;HEAP32[$0+28>>2]=0;HEAP32[$0+16>>2]=0;$1=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=0;$1=$1?$3:-1}$3=$0;$0=HEAP32[$0>>2];HEAP32[$3>>2]=$0|$7;$1=$0&32?-1:$1;if(!$2){break label$1}}global$0=$5+208|0;return $1}function dmSocket__SetMulticastIf_28int_2c_20dmSocket__Address_29($0,$1){var $2=0,$3=0;$2=global$0-16|0;global$0=$2;label$1:{label$2:{label$3:{label$4:{label$5:{if(dmSocket__IsSocketIPv4_28int_29($0)){HEAP32[$2>>2]=0;if(HEAP32[$1>>2]!=1){break label$4}HEAP32[$2>>2]=HEAP32[$1+16>>2];$1=setsockopt($0,0,32,$2,4);break label$5}if(!dmSocket__IsSocketIPv6_28int_29($0)){break label$2}if(HEAP32[$1>>2]!=2){break label$3}$3=HEAP32[$1+16>>2];HEAP32[$2+8>>2]=HEAP32[$1+12>>2];HEAP32[$2+12>>2]=$3;$3=HEAP32[$1+8>>2];HEAP32[$2>>2]=HEAP32[$1+4>>2];HEAP32[$2+4>>2]=$3;$1=setsockopt($0,0,32,$2,16)}$0=0;if(!$1){break label$1}$0=dmSocket__NativeToResult_28char_20const__2c_20int_2c_20int_29(155407,356,HEAP32[310273]);break label$1}__assert_fail(155374,155407,129,155430);abort()}__assert_fail(155435,155407,135,155468);abort()}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,155327,155805,0);$0=-2}global$0=$2+16|0;return $0}function stb_vorbis_open_memory($0,$1,$2){var $3=0,$4=0;$3=global$0-1552|0;global$0=$3;label$1:{if($0){memset($3+8|0,0,1532);HEAP32[$3+1536>>2]=0;HEAP32[$3+1444>>2]=-1;HEAP32[$3+148>>2]=0;HEAP32[$3+120>>2]=0;HEAP32[$3+124>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+40>>2]=$0;HEAP32[$3+28>>2]=0;HEAP8[$3+56|0]=0;HEAP32[$3+44>>2]=$0;HEAP32[$3+52>>2]=$1;HEAP32[$3+48>>2]=$0+$1;label$3:{if(!start_decoder($3+8|0)){break label$3}HEAP32[$3+16>>2]=HEAP32[$3+16>>2]+1532;$0=HEAP32[$3+104>>2];label$4:{if($0){$1=HEAP32[$3+112>>2];$4=$1+1532|0;if(($4|0)>HEAP32[$3+116>>2]){break label$3}HEAP32[$3+112>>2]=$4;$0=$0+$1|0;break label$4}$0=dlmalloc(1532)}if(!$0){break label$3}$1=memcpy($0,$3+8|0,1532);if(!vorbis_decode_packet($1,$3+1548|0,$3+1540|0,$3+1544|0)){break label$1}vorbis_finish_frame($1,HEAP32[$3+1548>>2],HEAP32[$3+1540>>2],HEAP32[$3+1544>>2]);break label$1}if($2){HEAP32[$2>>2]=HEAP32[$3+124>>2]}vorbis_deinit($3+8|0)}$0=0}global$0=$3+1552|0;return $0}function lua_objlen($0,$1){var $2=0,$3=0;label$1:{if(($1|0)>=1){$1=(HEAP32[$0+12>>2]+($1<<4)|0)+ -16|0;$2=$1>>>0>2]?$1:123176;break label$1}$2=HEAP32[$0+8>>2]+($1<<4)|0;if(($1|0)>=-9999){break label$1}$2=$1+10002|0;if($2>>>0<=2){label$5:{switch($2-1|0){case 1:$2=HEAP32[$0+16>>2]+96|0;break label$1;case 0:$1=HEAP32[HEAP32[HEAP32[HEAP32[$0+20>>2]+4>>2]>>2]+12>>2];HEAP32[$0+96>>2]=5;HEAP32[$0+88>>2]=$1;$2=$0+88|0;break label$1;default:break label$5}}$2=$0+72|0;break label$1}$2=HEAP32[HEAP32[HEAP32[$0+20>>2]+4>>2]>>2];$2=(-10002-$1|0)>HEAPU8[$2+7|0]?123176:($2+(0-$1<<4)|0)+ -160024|0}$1=$2;$2=0;$3=HEAP32[$1+8>>2]+ -3|0;label$8:{if($3>>>0>4){break label$8}label$9:{switch($3-1|0){case 0:return HEAP32[HEAP32[$1>>2]+12>>2];case 3:return HEAP32[HEAP32[$1>>2]+16>>2];case 1:return luaH_getn(HEAP32[$1>>2]);case 2:break label$8;default:break label$9}}if(!luaV_tostring($0,$1)){break label$8}$2=HEAP32[HEAP32[$1>>2]+12>>2]}return $2}function mbedtls_asn1_get_len($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$3=-96;$4=HEAP32[$0>>2];$5=$1-$4|0;label$1:{if(($5|0)<1){break label$1}$6=HEAPU8[$4|0];label$2:{if(!($6&128)){$3=$4+1|0;HEAP32[$0>>2]=$3;$0=$2;$2=HEAPU8[$4|0];HEAP32[$0>>2]=$2;break label$2}$6=($6&127)+ -1|0;if($6>>>0>3){return-100}label$5:{label$6:{switch($6-1|0){default:if(($5|0)<2){break label$1}$3=$2;$2=HEAPU8[$4+1|0];HEAP32[$3>>2]=$2;$3=$4+2|0;break label$5;case 0:if(($5|0)<3){break label$1}$3=$2;$2=HEAPU8[$4+2|0]|HEAPU8[$4+1|0]<<8;HEAP32[$3>>2]=$2;$3=$4+3|0;break label$5;case 1:if(($5|0)<4){break label$1}$3=$2;$2=HEAPU8[$4+3|0]|(HEAPU8[$4+2|0]<<8|HEAPU8[$4+1|0]<<16);HEAP32[$3>>2]=$2;$3=$4+4|0;break label$5;case 2:break label$6}}if(($5|0)<5){break label$1}$3=$2;$2=HEAPU8[$4+1|0]|HEAPU8[$4+2|0]<<8|(HEAPU8[$4+3|0]<<16|HEAPU8[$4+4|0]<<24);$2=$2<<24|$2<<8&16711680|($2>>>8&65280|$2>>>24);HEAP32[$3>>2]=$2;$3=$4+5|0}HEAP32[$0>>2]=$3}$3=$2>>>0>$1-$3>>>0?-96:0}return $3}function btDiscreteDynamicsWorld__addConstraint_28btTypedConstraint__2c_20bool_29($0,$1,$2){$0=$0|0;$1=$1|0;$2=$2|0;var $3=0,$4=0,$5=0,$6=0,$7=0;$3=HEAP32[$0+184>>2];label$1:{if(($3|0)!=HEAP32[$0+188>>2]){break label$1}$5=$3?$3<<1:1;if(($3|0)>=($5|0)){break label$1}if($5){$6=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($5<<2);$3=HEAP32[$0+184>>2]}if(($3|0)>=1){while(1){$7=$4<<2;HEAP32[$7+$6>>2]=HEAP32[HEAP32[$0+192>>2]+$7>>2];$4=$4+1|0;if(($4|0)!=($3|0)){continue}break}}$4=HEAP32[$0+192>>2];if($4){if(HEAPU8[$0+196|0]){if($4){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$4+ -4>>2])}$3=HEAP32[$0+184>>2]}HEAP32[$0+192>>2]=0}HEAP32[$0+192>>2]=$6;HEAP32[$0+188>>2]=$5;HEAP8[$0+196|0]=1}HEAP32[HEAP32[$0+192>>2]+($3<<2)>>2]=$1;HEAP32[$0+184>>2]=$3+1;if($2){btRigidBody__addConstraintRef_28btTypedConstraint__29(HEAP32[$1+20>>2],$1);btRigidBody__addConstraintRef_28btTypedConstraint__29(HEAP32[$1+24>>2],$1)}}function dmScript__URL_index_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$3=global$0-16|0;global$0=$3;$1=lua_touserdata($0,1);label$1:{label$2:{label$3:{$2=luaL_checklstring($0,2,0);if(!strcmp(113388,$2)){$2=HEAP32[$1+4>>2];$4=$2;$1=HEAP32[$1>>2];if(!($2|$1)){break label$3}dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,$1,$4);$0=1;break label$1}if(!strcmp(113395,$2)){$2=HEAP32[$1+20>>2];$4=$2;$1=HEAP32[$1+16>>2];if(!($2|$1)){break label$3}dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,$1,$4);$0=1;break label$1}if(strcmp(113400,$2)){break label$2}$2=HEAP32[$1+28>>2];$4=$2;$1=HEAP32[$1+24>>2];if(!($2|$1)){break label$3}dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,$1,$4);$0=1;break label$1}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;$0=1;break label$1}HEAP32[$3+4>>2]=112770;HEAP32[$3>>2]=112766;$0=luaL_error($0,113409,$3)}global$0=$3+16|0;return $0|0}function dmSSDP__HeaderCallback_28void__2c_20char_20const__2c_20char_20const__29($0,$1,$2){$0=$0|0;$1=$1|0;$2=$2|0;var $3=0,$4=0,$5=0;$3=global$0-80|0;global$0=$3;HEAP8[$3+79|0]=0;while(1){label$2:{$5=HEAP8[$1+$4|0];$5=$5+ -97>>>0<26?$5&95:$5;HEAP8[($3+16|0)+$4|0]=$5;if(!($5&255)){break label$2}$4=$4+1|0;if(($4|0)!=64){continue}}break}label$3:{if(!memcmp($3+16|0,159165,14)){$1=strstr($2,159179);if(!$1){break label$3}HEAP32[$0+4>>2]=atoi($1+8|0);break label$3}if(!memcmp($3+16|0,157966,3)){HEAP32[$0+48>>2]=dmHashString64($2);HEAP32[$0+52>>2]=i64toi32_i32$HIGH_BITS;break label$3}if(HEAP32[$3+16>>2]!=5461070){break label$3}HEAP32[$0+56>>2]=dmHashString64($2);HEAP32[$0+60>>2]=i64toi32_i32$HIGH_BITS}$1=dmHashString64($3+16|0);$4=i64toi32_i32$HIGH_BITS;HEAP32[$3+12>>2]=__strdup($2);dmHashTable_unsigned_20long_20long_2c_20char_20const____Put_28unsigned_20long_20long_2c_20char_20const__20const__29($0+12|0,$1,$4,$3+12|0);global$0=$3+80|0}function dmConfigFile__GetInt_28dmConfigFile__Config__2c_20char_20const__2c_20int_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$4=global$0-16|0;global$0=$4;$6=dmHashString64($1);$7=i64toi32_i32$HIGH_BITS;$1=HEAP32[$0+4>>2];$3=HEAP32[$0>>2];label$1:{label$2:{if(($1|0)==($3|0)){break label$2}$1=$1-$3>>4;$8=$1>>>0>1?$1:1;$1=0;while(1){label$4:{$5=$3+($1<<4)|0;if(($6|0)==HEAP32[$5>>2]&HEAP32[$5+4>>2]==($7|0)){$5=HEAP32[$0+20>>2];$0=HEAP32[$0+16>>2];$1=HEAP32[($3+($1<<4)|0)+8>>2];if($5-$0>>>0>$1>>>0){break label$4}__assert_fail(135894,135766,430,135905);abort()}$1=$1+1|0;if(($8|0)!=($1|0)){continue}break label$2}break}if(!$0){break label$2}$0=$0+$1|0;$3=strlen($0);HEAP32[$4+12>>2]=0;$1=strtol($0,$4+12|0);$5=$0+$3|0;$3=HEAP32[$4+12>>2];if(($0|0)!=($3|0)?($5|0)==($3|0):0){break label$1}HEAP32[$4>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,135436,135593,$4)}$1=$2}global$0=$4+16|0;return $1}function lua_insert($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;label$1:{if(($1|0)>=1){$1=(HEAP32[$0+12>>2]+($1<<4)|0)+ -16|0;$2=$1>>>0>2]?$1:123176;break label$1}$2=HEAP32[$0+8>>2]+($1<<4)|0;if(($1|0)>=-9999){break label$1}$2=$1+10002|0;if($2>>>0<=2){label$5:{switch($2-1|0){case 1:$2=HEAP32[$0+16>>2]+96|0;break label$1;case 0:$1=HEAP32[HEAP32[HEAP32[HEAP32[$0+20>>2]+4>>2]>>2]+12>>2];HEAP32[$0+96>>2]=5;HEAP32[$0+88>>2]=$1;$2=$0+88|0;break label$1;default:break label$5}}$2=$0+72|0;break label$1}$2=HEAP32[HEAP32[HEAP32[$0+20>>2]+4>>2]>>2];$2=(-10002-$1|0)>HEAPU8[$2+7|0]?123176:($2+(0-$1<<4)|0)+ -160024|0}$4=$2;$5=$2;$1=HEAP32[$0+8>>2];if($1>>>0>$2>>>0){while(1){$3=$1+ -16|0;$6=HEAP32[$3+4>>2];HEAP32[$1>>2]=HEAP32[$3>>2];HEAP32[$1+4>>2]=$6;HEAP32[$1+8>>2]=HEAP32[$3+8>>2];$1=$3;if($1>>>0>$2>>>0){continue}break}$1=HEAP32[$0+8>>2]}$0=HEAP32[$1+4>>2];HEAP32[$5>>2]=HEAP32[$1>>2];HEAP32[$4+4>>2]=$0;HEAP32[$2+8>>2]=HEAP32[$1+8>>2]}function dmGui__GetNodeFlipbookAnimUV_28dmGui__Scene__2c_20unsigned_20int_29($0,$1){var $2=0,$3=0,$4=0,$5=Math_fround(0);$2=HEAP32[$0+36>>2];$0=HEAP32[$0+32>>2];$3=$1&65535;label$1:{label$2:{if(($2-$0|0)/576>>>0>$3>>>0){if(HEAPU16[($0+Math_imul($3,576)|0)+552>>1]!=($1>>>16|0)){break label$2}$2=$0+Math_imul($3,576)|0;if(HEAPU16[$2+554>>1]!=($1&65535)){break label$1}$1=0;label$4:{if(HEAP32[$2+436>>2]!=2){break label$4}$0=$0+Math_imul($3,576)|0;$4=HEAP32[$0+452>>2];if(!$4){break label$4}$2=HEAP32[$0+440>>2];$3=$2&8191;$2=($2>>>13&8191)-$3|0;$5=Math_fround(HEAPF32[$0+472>>2]*Math_fround($2|0));label$5:{if(Math_fround(Math_abs($5))($0|0)?$0:$2+ -1|0)+$3|0;if(($0|0)<0){break label$4}$1=$4+($0<<5)|0}return $1}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}function dmGameSystem__EmitterStateChangedCallback_28unsigned_20int_2c_20unsigned_20long_20long_2c_20dmParticle__EmitterState_2c_20void__29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=0,$6=0,$7=0;$5=global$0-32|0;global$0=$5;$6=HEAP32[$4+8>>2];label$1:{if($6){$7=HEAP32[$4>>2];$4=HEAP32[$4+4>>2];if(!dmScript__IsCallbackValid_28dmScript__LuaCallbackInfo__29($6)){break label$1}HEAP32[$5+24>>2]=$3;HEAP32[$5+16>>2]=$1;HEAP32[$5+20>>2]=$2;HEAP32[$5+8>>2]=$7;HEAP32[$5+12>>2]=$4;if(!dmScript__InvokeCallback_28dmScript__LuaCallbackInfo__2c_20void_20_28__29_28lua_State__2c_20void__29_2c_20void__29($6,544,$5+8|0)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,66475,66483,0)}if($0|$3){break label$1}dmScript__DestroyCallback_28dmScript__LuaCallbackInfo__29($6);break label$1}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,66475,66556,0)}global$0=$5+32|0}function EmitRescaledYUV($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$3=HEAP32[$0+16>>2];$2=HEAP32[HEAP32[$1>>2]>>2];label$1:{if($2+ -7>>>0>3?!(1<<$2&4154?$2>>>0<=12:0):0){break label$1}$2=HEAP32[$0+104>>2];if(!$2){break label$1}WebPMultRows(HEAP32[$0+20>>2],HEAP32[$0+32>>2],$2,HEAP32[$0>>2],HEAP32[$0+12>>2],$3,0)}if(($3|0)<1){return 0}$4=$1+24|0;$5=$3+1>>1;$6=HEAP32[$0+32>>2];$2=HEAP32[$0+20>>2];while(1){$7=WebPRescalerImport($4,$3,$2,$6);$2=Math_imul($7,$6)+$2|0;$8=WebPRescalerExport($4)+$8|0;$3=$3-$7|0;if(($3|0)>0){continue}break}$4=$1+108|0;$3=HEAP32[$0+24>>2];$6=HEAP32[$0+36>>2];$2=$5;while(1){$7=WebPRescalerImport($4,$2,$3,$6);WebPRescalerExport($4);$3=Math_imul($6,$7)+$3|0;$2=$2-$7|0;if(($2|0)>0){continue}break}$1=$1+192|0;$3=HEAP32[$0+28>>2];$0=HEAP32[$0+36>>2];while(1){$2=WebPRescalerImport($1,$5,$3,$0);WebPRescalerExport($1);$3=Math_imul($0,$2)+$3|0;$5=$5-$2|0;if(($5|0)>0){continue}break}return $8|0}function __fdopen($0,$1){var $2=0,$3=0;$3=global$0-32|0;global$0=$3;label$1:{label$2:{label$3:{if(!strchr(216216,HEAP8[$1|0])){HEAP32[310273]=28;break label$3}$2=dlmalloc(1176);if($2){break label$2}}$2=0;break label$1}memset($2,0,144);if(!strchr($1,43)){HEAP32[$2>>2]=HEAPU8[$1|0]==114?8:4}label$6:{if(HEAPU8[$1|0]!=97){$1=HEAP32[$2>>2];break label$6}$1=__syscall221($0|0,3,0)|0;if(!($1&1024)){HEAP32[$3+16>>2]=$1|1024;__syscall221($0|0,4,$3+16|0)|0}$1=HEAP32[$2>>2]|128;HEAP32[$2>>2]=$1}HEAP8[$2+75|0]=255;HEAP32[$2+48>>2]=1024;HEAP32[$2+60>>2]=$0;HEAP32[$2+44>>2]=$2+152;label$9:{if($1&8){break label$9}HEAP32[$3>>2]=$3+24;if(__syscall54($0|0,21523,$3|0)){break label$9}HEAP8[$2+75|0]=10}HEAP32[$2+40>>2]=2378;HEAP32[$2+36>>2]=2380;HEAP32[$2+32>>2]=2377;HEAP32[$2+12>>2]=2376;if(!HEAP32[310305]){HEAP32[$2+76>>2]=-1}HEAP32[$2+56>>2]=HEAP32[310262];$0=HEAP32[310262];if($0){HEAP32[$0+52>>2]=$2}HEAP32[310262]=$2}global$0=$3+32|0;return $2}function __extenddftf2($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0;$6=global$0-16|0;global$0=$6;wasm2js_scratch_store_f64(+$1);$3=wasm2js_scratch_load_i32(1)|0;$7=wasm2js_scratch_load_i32(0)|0;$9=$3&-2147483648;$4=$3&2147483647;$2=$4;$4=$2+ -1048576|0;$5=$7;$10=$5;if($5>>>0<0){$4=$4+1|0}label$1:{if(($4|0)==2145386495&$10>>>0<=4294967295|$4>>>0<2145386495){$8=$5<<28;$3=($2&15)<<28|$5>>>4;$2=($2>>>4|0)+1006632960|0;$2=$3>>>0<0?$2+1|0:$2;break label$1}if(($2|0)==2146435072&$5>>>0>=0|$2>>>0>2146435072){$8=$7<<28;$4=$3>>>4|0;$3=($3&15)<<28|$7>>>4;$2=$4|2147418112;break label$1}if(!($2|$5)){$3=0;$2=0;break label$1}$4=$2;$2=($2|0)==1&$5>>>0<0|$2>>>0<1?Math_clz32($7)+32|0:Math_clz32($2);__ashlti3($6,$5,$4,0,0,$2+49|0);$11=HEAP32[$6>>2];$8=HEAP32[$6+4>>2];$3=HEAP32[$6+8>>2];$2=HEAP32[$6+12>>2]^65536|15372-$2<<16}HEAP32[$0>>2]=$11;HEAP32[$0+4>>2]=$8;HEAP32[$0+8>>2]=$3|$12;HEAP32[$0+12>>2]=$2|$9;global$0=$6+16|0}function dmGameSystem__CollectionFactoryComp_GetStatus_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$1=global$0+ -64|0;global$0=$1;$4=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($1+48|0,$0,1);$2=HEAP32[HEAP32[dmGameSystem__CheckGoInstance_28lua_State__29($0)+80>>2]+8>>2];HEAP32[$1+32>>2]=0;HEAP32[$1+36>>2]=0;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$2,62745,$1+44|0,$1+8|0,0);$2=HEAP32[$1+44>>2];if(HEAP8[$2+20|0]&1){$2=1}else{$2=HEAP32[$2>>2];$2=(HEAP32[$2+8>>2]!=HEAP32[$2+4>>2])<<1}$3=HEAP32[$0+8>>2];HEAP32[$3+8>>2]=3;HEAPF64[$3>>3]=$2|0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;dmScript__LuaStackCheck___LuaStackCheck_28_29($4);global$0=$1- -64|0;return 1}function dmGui__LuaGetFlipbookPlaybackRate_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=Math_fround(0);$1=global$0-32|0;global$0=$1;$3=1;$4=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($1+16|0,$0,1);dmScript__GetInstance_28lua_State__29($0);$2=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[283639],205559);lua_settop($0,-2);dmGui__LuaCheckNode_28lua_State__2c_20int_2c_20unsigned_20int__29($0,1,$1+12|0);label$1:{if(dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($2,HEAP32[$1+12>>2])){$3=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($4,209075,0);break label$1}$5=dmGui__GetNodeFlipbookPlaybackRate_28dmGui__Scene__2c_20unsigned_20int_29($2,HEAP32[$1+12>>2]);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=3;HEAPF64[$2>>3]=$5;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16}dmScript__LuaStackCheck___LuaStackCheck_28_29($4);global$0=$1+32|0;return $3|0}function dmGameSystem__ResRenderScriptCreate_28dmResource__ResourceCreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$1=global$0-16|0;global$0=$1;HEAP32[$1+12>>2]=0;$3=-13;label$1:{if(dmDDF__LoadMessage_28void_20const__2c_20unsigned_20int_2c_20dmDDF__Descriptor_20const__2c_20void___29(HEAP32[$0+12>>2],HEAP32[$0+16>>2],HEAP32[131334],$1+12|0)){break label$1}$2=HEAP32[$0+4>>2];if(!dmGameObject__RegisterSubModules_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29(HEAP32[$0>>2],HEAP32[$2+3684>>2],HEAP32[$1+12>>2])){dmDDF__FreeMessage_28void__29(HEAP32[$1+12>>2]);break label$1}$2=dmRender__NewRenderScript_28dmRender__RenderContext__2c_20dmLuaDDF__LuaSource__29($2,HEAP32[$1+12>>2]);$4=HEAP32[$1+12>>2];HEAP32[HEAP32[$0+24>>2]+16>>2]=HEAP32[$0+16>>2]-HEAP32[$4+4>>2];dmDDF__FreeMessage_28void__29($4);if(!$2){break label$1}HEAP32[HEAP32[$0+24>>2]+8>>2]=$2;$3=0}global$0=$1+16|0;return $3|0}function dmGameSystem__ResDisplayProfilesRecreate_28dmResource__ResourceRecreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$2=global$0-32|0;global$0=$2;$4=HEAP32[HEAP32[$0+32>>2]+8>>2];$5=dmRender__NewDisplayProfiles_28_29();$6=HEAP32[$0+16>>2];$1=dmDDF__LoadMessage_28void_20const__2c_20unsigned_20int_2c_20dmDDF__Descriptor_20const__2c_20void___29(HEAP32[$0+20>>2],HEAP32[$0+24>>2],HEAP32[137290],$2+28|0);$3=-13;label$1:{if($1){break label$1}$1=$2+8|0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1>>2]=HEAP32[$2+28>>2];HEAP32[$1+8>>2]=dmHashString64($6);HEAP32[$1+12>>2]=i64toi32_i32$HIGH_BITS;dmRender__SetDisplayProfiles_28dmRender__DisplayProfiles__2c_20dmRender__DisplayProfilesParams__29($5,$1);dmDDF__FreeMessage_28void__29(HEAP32[$2+28>>2]);if($4){dmRender__DeleteDisplayProfiles_28dmRender__DisplayProfiles__29($4)}HEAP32[HEAP32[$0+32>>2]+8>>2]=$5;$3=0}$1=$3;global$0=$2+32|0;return $1|0}function dmGameObject__Script_SetScale_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=0,$6=0,$7=0,$8=0;$2=global$0-16|0;global$0=$2;$3=dmGameObject__ResolveInstance_28lua_State__2c_20int_29($0,2);$1=dmScript__ToVector3_28lua_State__2c_20int_29($0,1);label$1:{label$2:{if($1){$6=HEAP32[$1>>2];label$4:{label$5:{if(HEAPF32[$1>>2]<=Math_fround(0)){break label$5}$7=HEAP32[$1+4>>2];if(HEAPF32[$1+4>>2]<=Math_fround(0)){break label$5}$8=HEAP32[$1+8>>2];if(!(HEAPF32[$1+8>>2]<=Math_fround(0))){break label$4}}$0=luaL_error($0,18957,0);break label$1}HEAP32[$2+8>>2]=$8;HEAP32[$2+4>>2]=$7;HEAP32[$2>>2]=$6;$0=HEAP32[$2+4>>2];$1=HEAP32[$2>>2];HEAP32[$3+40>>2]=HEAP32[$2+8>>2];HEAP32[$3+32>>2]=$1;HEAP32[$3+36>>2]=$0;break label$2}$5=luaL_checknumber($0,1);if(!!($5<=0)){$0=luaL_error($0,19039,0);break label$1}$4=Math_fround($5);HEAPF32[$3+32>>2]=$4;HEAPF32[$3+40>>2]=$4;HEAPF32[$3+36>>2]=$4}$0=0}global$0=$2+16|0;return $0|0}function void_20btAlignedObjectArray_btElement___quickSortInternal_btUnionFindElementSortPredicate__28btUnionFindElementSortPredicate_2c_20int_2c_20int_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;while(1){$9=$1;$5=HEAP32[$0+12>>2];$10=HEAP32[$5+(($1+$2|0)/2<<3)>>2];$6=$1;$3=$2;while(1){$1=$6;$6=$1+1|0;$4=($1<<3)+$5|0;if(HEAP32[$4>>2]<($10|0)){continue}$7=$3;while(1){$3=$7;$7=$3+ -1|0;$11=$3<<3;$8=$11+$5|0;if(HEAP32[$8>>2]>($10|0)){continue}break}if(($1|0)<=($3|0)){$1=HEAP32[$4>>2];$3=HEAP32[$4+4>>2];$5=HEAP32[$8+4>>2];HEAP32[$4>>2]=HEAP32[$8>>2];HEAP32[$4+4>>2]=$5;$4=HEAP32[$0+12>>2]+$11|0;HEAP32[$4>>2]=$1;HEAP32[$4+4>>2]=$3;$3=$7;$1=$6}if(($1|0)<=($3|0)){$5=HEAP32[$0+12>>2];$6=$1;continue}break}if(($3|0)>($9|0)){void_20btAlignedObjectArray_btElement___quickSortInternal_btUnionFindElementSortPredicate__28btUnionFindElementSortPredicate_2c_20int_2c_20int_29($0,$9,$3)}if(($1|0)<($2|0)){continue}break}} +function dmGui__StopNodeParticlefx_28dmGui__Scene__2c_20unsigned_20int_29($0,$1){var $2=0,$3=0,$4=0;label$1:{label$2:{label$3:{label$4:{label$5:{$2=HEAP32[$0+32>>2];$3=$1&65535;if((HEAP32[$0+36>>2]-$2|0)/576>>>0>$3>>>0){if(HEAPU16[($2+Math_imul($3,576)|0)+552>>1]!=($1>>>16|0)){break label$5}$3=$2+Math_imul($3,576)|0;if(HEAPU16[$3+554>>1]!=($1&65535)){break label$4}$2=-10;if((HEAP32[$3+412>>2]&240)!=80){break label$2}$3=HEAP32[$0+248>>2];$2=HEAP32[$0+252>>2]-$3|0;if(!$2){break label$3}$2=($2|0)/12|0;$4=$2>>>0>1?$2:1;$2=0;while(1){$3=Math_imul($2,12)+$3|0;if(HEAP32[$3+8>>2]==($1|0)){dmParticle__StopInstance_28dmParticle__Context__2c_20unsigned_20int_29(HEAP32[$0+212>>2],HEAP32[$3>>2])}$2=$2+1|0;if(($4|0)==($2|0)){break label$3}$3=HEAP32[$0+248>>2];if((HEAP32[$0+252>>2]-$3|0)/12>>>0>$2>>>0){continue}break}break label$1}break label$1}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}$2=0}return $2}__assert_fail(201597,201431,430,201608);abort()}function dmBuffer__GetStream_28unsigned_20int_2c_20unsigned_20long_20long_2c_20void___2c_20unsigned_20int__2c_20unsigned_20int__2c_20unsigned_20int__29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0,$9=0,$10=0,$11=0;$8=3;label$1:{label$2:{if(!$0){break label$2}$7=HEAP32[HEAP32[HEAP32[280323]>>2]+(($0&65535)<<2)>>2];if(!$7|HEAPU16[$7+16>>1]!=($0>>>16|0)){break label$2}$8=6;$10=HEAPU8[$7+18|0];if(!$10){break label$2}$9=HEAP32[$7+4>>2];$0=0;while(1){$11=($0<<4)+$9|0;if(($1|0)!=HEAP32[$11>>2]|HEAP32[$11+4>>2]!=($2|0)){$0=$0+1|0;if(($10|0)!=($0|0)){continue}break label$2}break}$8=1;$2=HEAP32[$7>>2];$1=HEAP32[$7+12>>2];if(memcmp($2+Math_imul($1,HEAP32[$7+8>>2])|0,135280,16)){break label$2}HEAP32[$3>>2]=$2+HEAP32[(($0<<4)+$9|0)+8>>2];if($4){HEAP32[$4>>2]=$1}if($5){HEAP32[$5>>2]=HEAPU8[(($0<<4)+$9|0)+13|0]}$8=0;if(!$6){break label$2}$0=HEAP8[(($0<<4)+$9|0)+12|0];if($0>>>0>=9){break label$1}HEAP32[$6>>2]=HEAPU32[$7+8>>2]/HEAPU32[($0<<2)+135400>>2]}return $8}__assert_fail(134643,134609,190,134670);abort()}function dmGui__LuaDoNewNode_28lua_State__2c_20dmGui__Scene__2c_20Vectormath__Aos__Point3_2c_20Vectormath__Aos__Vector3_2c_20dmGui__NodeType_2c_20char_20const__2c_20void__29($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0,$9=0;$7=global$0-32|0;global$0=$7;$8=1;$9=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($7+16|0,$0,1);$2=dmGui__NewNode_28dmGui__Scene__2c_20Vectormath__Aos__Point3_20const__2c_20Vectormath__Aos__Vector3_20const__2c_20dmGui__NodeType_29($1,$2,$3,$4);label$1:{if(!$2){HEAP32[$7>>2]=(HEAP32[$1+40>>2]-HEAP32[$1+32>>2]|0)/576;$8=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($9,207681,$7);break label$1}HEAP32[dmGui__GetNode_28dmGui__Scene__2c_20unsigned_20int_29($1,$2)+488>>2]=$6;dmGui__SetNodeText_28dmGui__Scene__2c_20unsigned_20int_2c_20char_20const__29($1,$2,$5);$3=lua_newuserdata($0,8);HEAP32[$3+4>>2]=$2;HEAP32[$3>>2]=$1;lua_getfield($0,-1e4,202497);lua_setmetatable($0,-2)}dmScript__LuaStackCheck___LuaStackCheck_28_29($9);global$0=$7+32|0;return $8}function mbedtls_ssl_get_key_exchange_md_tls1_2($0,$1,$2,$3,$4,$5){var $6=0,$7=0;$6=global$0-16|0;global$0=$6;$7=$2;$2=$5+ -3|0;label$1:{if($2>>>0<=5){$2=HEAP32[($2<<2)+558476>>2];break label$1}$2=0}$5=$2;if($5){$5=HEAP32[$5+8>>2]}else{$5=0}HEAP32[$7>>2]=$5&255;HEAP32[$6>>2]=0;HEAP32[$6+4>>2]=0;HEAP32[$6+8>>2]=0;label$5:{label$6:{label$7:{$5=mbedtls_md_setup($6,$2,0);label$8:{if($5){break label$8}$2=-20736;label$9:{if(!$6){break label$9}$5=HEAP32[$6>>2];if(!$5){break label$9}$2=FUNCTION_TABLE[HEAP32[$5+16>>2]](HEAP32[$6+4>>2])|0}$5=$2;if($5){break label$8}$5=mbedtls_md_update($6,HEAP32[$0+68>>2]+1128|0,64);if($5){break label$8}$5=mbedtls_md_update($6,$3,$4);if(!$5){break label$7}}mbedtls_md_free($6);break label$6}$2=-20736;label$10:{if(!$6){break label$10}$3=HEAP32[$6>>2];if(!$3){break label$10}$2=FUNCTION_TABLE[HEAP32[$3+24>>2]](HEAP32[$6+4>>2],$1)|0}$5=$2;mbedtls_md_free($6);if($5){break label$6}$5=0;break label$5}mbedtls_ssl_send_alert_message($0,2,80)}global$0=$6+16|0;return $5}function mbedtls_poly1305_starts($0,$1){HEAP32[$0>>2]=HEAPU8[$1+3|0]<<24&251658240|(HEAPU8[$1|0]|HEAPU8[$1+1|0]<<8|HEAPU8[$1+2|0]<<16);HEAP32[$0+4>>2]=(HEAPU8[$1+4|0]|HEAPU8[$1+5|0]<<8|(HEAPU8[$1+6|0]<<16|HEAPU8[$1+7|0]<<24))&268435452;HEAP32[$0+8>>2]=(HEAPU8[$1+8|0]|HEAPU8[$1+9|0]<<8|(HEAPU8[$1+10|0]<<16|HEAPU8[$1+11|0]<<24))&268435452;HEAP32[$0+12>>2]=(HEAPU8[$1+12|0]|HEAPU8[$1+13|0]<<8|(HEAPU8[$1+14|0]<<16|HEAPU8[$1+15|0]<<24))&268435452;HEAP32[$0+16>>2]=HEAPU8[$1+16|0]|HEAPU8[$1+17|0]<<8|(HEAPU8[$1+18|0]<<16|HEAPU8[$1+19|0]<<24);HEAP32[$0+20>>2]=HEAPU8[$1+20|0]|HEAPU8[$1+21|0]<<8|(HEAPU8[$1+22|0]<<16|HEAPU8[$1+23|0]<<24);HEAP32[$0+24>>2]=HEAPU8[$1+24|0]|HEAPU8[$1+25|0]<<8|(HEAPU8[$1+26|0]<<16|HEAPU8[$1+27|0]<<24);$1=HEAPU8[$1+28|0]|HEAPU8[$1+29|0]<<8|(HEAPU8[$1+30|0]<<16|HEAPU8[$1+31|0]<<24);HEAP32[$0+32>>2]=0;HEAP32[$0+36>>2]=0;HEAP32[$0+28>>2]=$1;HEAP32[$0+40>>2]=0;HEAP32[$0+44>>2]=0;HEAP32[$0+48>>2]=0;FUNCTION_TABLE[HEAP32[139546]]($0+52|0,0,16)|0;HEAP32[$0+68>>2]=0;return 0}function luaK_dischargevars($0,$1){var $2=0,$3=0;label$1:{$2=HEAP32[$1>>2]+ -6|0;label$2:{if($2>>>0>8){break label$2}label$3:{switch($2-1|0){default:HEAP32[$1>>2]=12;return;case 0:$0=luaK_code($0,HEAP32[$1+8>>2]<<23|4,HEAP32[HEAP32[$0+12>>2]+8>>2]);break label$1;case 1:$0=luaK_code($0,HEAP32[$1+8>>2]<<14|5,HEAP32[HEAP32[$0+12>>2]+8>>2]);break label$1;case 2:$2=HEAP32[$1+12>>2];if(!($2&256|($2|0)>2]=HEAP32[$0+36>>2]+ -1}$3=$0;$2=HEAP32[$1+8>>2];if(!($2&256|($2|0)>2]=HEAP32[$0+36>>2]+ -1;$2=HEAP32[$1+8>>2]}$0=luaK_code($3,$2<<23|HEAP32[$1+12>>2]<<14|6,HEAP32[HEAP32[$0+12>>2]+8>>2]);break label$1;case 6:HEAP32[$1>>2]=12;HEAP32[$1+8>>2]=HEAP32[HEAP32[HEAP32[$0>>2]+12>>2]+(HEAP32[$1+8>>2]<<2)>>2]>>>6&255;return;case 3:case 4:case 5:break label$2;case 7:break label$3}}$0=HEAP32[HEAP32[$0>>2]+12>>2]+(HEAP32[$1+8>>2]<<2)|0;HEAP32[$0>>2]=HEAP32[$0>>2]&8388607|16777216;HEAP32[$1>>2]=11}return}HEAP32[$1>>2]=11;HEAP32[$1+8>>2]=$0}function dmObjectPool_dmGameSystem__SpineModelComponent____SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>2>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(51475,51001,60,50625);abort()}__assert_fail(50637,50554,457,50656);abort()}__assert_fail(50479,50554,444,50625);abort()}function dmGameSystem__NewTexture_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20int_2c_20dmImage__Type_2c_20void_20const__2c_20void__29($0,$1,$2,$3,$4,$5){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;var $6=0;$0=global$0+ -64|0;global$0=$0;$5=HEAP32[HEAP32[$5>>2]+4016>>2];HEAP8[$0+60|0]=1;HEAP32[$0+48>>2]=0;HEAP8[$0+31|0]=0;HEAP8[$0+32|0]=0;HEAP8[$0+33|0]=0;HEAP8[$0+34|0]=0;HEAP32[$0+28>>2]=0;HEAP16[$0+58>>1]=$2;HEAP16[$0+56>>1]=$1;HEAP16[$0+54>>1]=$2;HEAP16[$0+52>>1]=$1;HEAP32[$0+36>>2]=0;HEAP32[$0+40>>2]=0;HEAP32[$0+16>>2]=1;HEAP32[$0+20>>2]=$4;HEAP32[$0+8>>2]=2;HEAP32[$0+12>>2]=1;HEAP32[$0>>2]=3;HEAP32[$0+4>>2]=2;HEAP16[$0+32>>1]=$2;HEAP16[$0+30>>1]=$1;$4=$0;if($3>>>0<=2){$6=HEAP32[($3<<2)+153144>>2]}else{$6=0}HEAP32[$4+24>>2]=Math_imul($6,Math_imul($1,$2));if($3>>>0>=3){__assert_fail(42315,41335,1703,42321);abort()}HEAP32[$0>>2]=HEAP32[($3<<2)+42712>>2];$1=FUNCTION_TABLE[HEAP32[147618]]($5,$0+48|0)|0;FUNCTION_TABLE[HEAP32[147620]]($1,$0);global$0=$0- -64|0;return $1|0}function ssl_handshake_init($0){var $1=0,$2=0,$3=0;$1=HEAP32[$0+84>>2];if($1){mbedtls_ssl_transform_free($1)}$1=HEAP32[$0+64>>2];if($1){mbedtls_ssl_session_free($1)}if(HEAP32[$0+68>>2]){mbedtls_ssl_handshake_free($0)}$3=HEAP32[$0+84>>2];if(!$3){$3=dlcalloc(1,212);HEAP32[$0+84>>2]=$3}$2=HEAP32[$0+64>>2];if(!$2){$2=dlcalloc(1,128);HEAP32[$0+64>>2]=$2}label$6:{label$7:{label$8:{$1=HEAP32[$0+68>>2];if($1){break label$8}$1=dlcalloc(1,2280);HEAP32[$0+68>>2]=$1;if($1){break label$8}$1=0;break label$7}if(!$3){break label$7}if($2){break label$6}}dlfree($1);dlfree(HEAP32[$0+84>>2]);dlfree(HEAP32[$0+64>>2]);HEAP32[$0+84>>2]=0;HEAP32[$0+64>>2]=0;HEAP32[$0+68>>2]=0;return-32512}mbedtls_des_init($2);mbedtls_ssl_transform_init(HEAP32[$0+84>>2]);ssl_handshake_params_init(HEAP32[$0+68>>2]);$1=HEAP32[$0>>2];if(HEAPU8[$1+184|0]&2){$2=HEAP32[$0+68>>2];HEAP32[$2+512>>2]=HEAP32[$0+76>>2];HEAP8[$2+492|0]=HEAPU8[$1+184|0]<<1&2;$1=HEAP32[$0+92>>2];if($1){FUNCTION_TABLE[$1](HEAP32[$0+88>>2],0,0)}}return 0}function dmObjectPool_dmGameSystem__SpriteComponent___SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>10>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,1024,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(52720,52753,60,52820);abort()}__assert_fail(52440,52459,457,52530);abort()}__assert_fail(52832,52459,444,52820);abort()}function btConvexHullShape__batchedUnitVectorGetSupportingVertexWithoutMargin_28btVector3_20const__2c_20btVector3__2c_20int_29_20const($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=0,$5=0,$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0),$10=0,$11=Math_fround(0);if(($3|0)>0){while(1){HEAP32[(($4<<4)+$2|0)+12>>2]=-581039253;$4=$4+1|0;if(($4|0)!=($3|0)){continue}break}}if(!(HEAP32[$0+92>>2]<1|($3|0)<1)){while(1){$4=HEAP32[$0+100>>2]+($6<<4)|0;$7=Math_fround(HEAPF32[$4+8>>2]*HEAPF32[$0+20>>2]);$8=Math_fround(HEAPF32[$4+4>>2]*HEAPF32[$0+16>>2]);$9=Math_fround(HEAPF32[$4>>2]*HEAPF32[$0+12>>2]);$4=0;while(1){$10=$4<<4;$5=$10+$1|0;$11=Math_fround(Math_fround(Math_fround($9*HEAPF32[$5>>2])+Math_fround($8*HEAPF32[$5+4>>2]))+Math_fround($7*HEAPF32[$5+8>>2]));$5=$2+$10|0;if(!!($11>HEAPF32[$5+12>>2])){HEAPF32[$5+8>>2]=$7;HEAPF32[$5+4>>2]=$8;HEAPF32[$5>>2]=$9;HEAPF32[$5+12>>2]=$11}$4=$4+1|0;if(($4|0)!=($3|0)){continue}break}$6=$6+1|0;if(($6|0)>2]){continue}break}}}function dmObjectPool_dmGameSystem__LabelComponent___SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>10>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,1024,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(43421,43454,60,43521);abort()}__assert_fail(43679,43608,457,43698);abort()}__assert_fail(43533,43608,444,43521);abort()}function _GLOBAL__sub_I_physics_ddf_cpp(){HEAP32[133549]=HEAP32[145614];HEAP32[145614]=534168;HEAP32[133585]=HEAP32[145614];HEAP32[145614]=534312;HEAP32[133605]=HEAP32[145614];HEAP32[145614]=534392;HEAP32[133671]=HEAP32[145614];HEAP32[145614]=534656;HEAP32[133693]=HEAP32[145614];HEAP32[145614]=534744;HEAP32[133729]=HEAP32[145614];HEAP32[145614]=534888;HEAP32[133805]=HEAP32[145614];HEAP32[145614]=535192;HEAP32[133841]=HEAP32[145614];HEAP32[145614]=535336;HEAP32[133871]=HEAP32[145614];HEAP32[145614]=535456;HEAP32[133913]=HEAP32[145614];HEAP32[145614]=535624;HEAP32[133929]=HEAP32[145614];HEAP32[145614]=535688;HEAP32[147426]=1;HEAP32[147424]=-1505215520;HEAP32[147425]=-1547365408;HEAP32[147423]=77941;HEAP32[147422]=1;HEAP32[147429]=0;HEAP8[589712]=0;HEAP32[147427]=HEAP32[147420];HEAP32[147429]=HEAP32[145614];HEAP32[145614]=589688;HEAP32[133949]=HEAP32[145614];HEAP32[145614]=535768;HEAP32[133989]=HEAP32[145614];HEAP32[145614]=535928;HEAP32[134009]=HEAP32[145614];HEAP32[145614]=536008}function ssl_write_encrypted_pms($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$4=-27136;$6=HEAP32[$0+20>>2];$7=(($6|0)!=0)<<1;$8=$7+$1|0;label$1:{if($8>>>0>16384){break label$1}$4=HEAP32[$0>>2];$3=(HEAP32[$0+68>>2]+$3|0)+1192|0;mbedtls_ssl_write_version(HEAPU8[$4+180|0],HEAPU8[$4+181|0],HEAP32[$4+184>>2]>>>1&1,$3);$4=HEAP32[$0>>2];$4=FUNCTION_TABLE[HEAP32[$4+24>>2]](HEAP32[$4+28>>2],$3+2|0,46)|0;if($4){break label$1}HEAP32[HEAP32[$0+68>>2]+1124>>2]=48;$5=HEAP32[HEAP32[$0+64>>2]+96>>2];if(!$5){return-27648}$4=0;$5=$5+204|0;label$4:{if(!$5){break label$4}$9=HEAP32[$5>>2];if(!$9){break label$4}$4=FUNCTION_TABLE[HEAP32[$9+12>>2]](1)|0}if(!$4){return-27904}$4=$3;$3=HEAP32[$0>>2];$4=mbedtls_pk_encrypt($5,$4,HEAP32[HEAP32[$0+68>>2]+1124>>2],(HEAP32[$0+204>>2]+$1|0)+$7|0,$2,16384-$8|0,HEAP32[$3+24>>2],HEAP32[$3+28>>2]);if($4|!$6){break label$1}HEAP8[HEAP32[$0+204>>2]+$1|0]=HEAP32[$2>>2]>>>8;HEAP8[(HEAP32[$0+204>>2]+$1|0)+1|0]=HEAP32[$2>>2];HEAP32[$2>>2]=HEAP32[$2>>2]+2;$4=0}return $4}function dmLiveUpdate__VerifyManifestSignature_28dmResource__Manifest__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0;$1=global$0;$2=$1;$3=HEAP32[HEAP32[$0+8>>2]+12>>2];$4=HEAP32[($3<<2)+26336>>2]>>>3|0;$1=$1-($4+15&-16)|0;global$0=$1;$5=$3;$3=HEAP32[$0+4>>2];dmLiveUpdate__CreateManifestHash_28dmLiveUpdateDDF__HashAlgorithm_2c_20unsigned_20char_20const__2c_20unsigned_20long_2c_20unsigned_20char__29($5,HEAP32[$3>>2],HEAP32[$3+4>>2],$1);label$1:{label$2:{$0=dmResource__VerifyManifestHash_28dmResource__SResourceFactory__2c_20dmResource__Manifest__2c_20unsigned_20char_20const__2c_20unsigned_20int_29(HEAP32[309385],$0,$1,$4);$1=$0+20|0;if($1>>>0>20){break label$2}label$3:{switch($1-1|0){case 0:global$0=$2;return-4;default:global$0=$2;return-6;case 4:global$0=$2;return-7;case 19:break label$1;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:break label$2;case 18:break label$3}}global$0=$2;return-8}$0=-3}global$0=$2;return $0}function VP8ProcessRow($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;label$1:{if(HEAP32[$0+2308>>2]<1){break label$1}$2=HEAP32[$0+2300>>2];if(($2|0)>2]){break label$1}$3=($2|0)<=HEAP32[$0+308>>2]}$2=$0+160|0;label$2:{if(!HEAP32[$0+148>>2]){HEAP32[$0+168>>2]=$3;HEAP32[$0+164>>2]=HEAP32[$0+2300>>2];ReconstructRow($0,$2);$5=FinishRow($0,$1);break label$2}$4=$0+124|0;$6=FUNCTION_TABLE[HEAP32[144631]]($4)|0;if(HEAP32[$0+128>>2]==1){if(!($6&1)){break label$2}memcpy($0+180|0,$1,108);HEAP32[$0+168>>2]=$3;HEAP32[$0+160>>2]=HEAP32[$0+152>>2];HEAP32[$0+164>>2]=HEAP32[$0+2300>>2];label$5:{if(HEAP32[$0+148>>2]==2){$1=HEAP32[$0+2304>>2];HEAP32[$0+2304>>2]=HEAP32[$0+176>>2];HEAP32[$0+176>>2]=$1;break label$5}ReconstructRow($0,$2)}if($3){$1=HEAP32[$0+2260>>2];HEAP32[$0+2260>>2]=HEAP32[$0+172>>2];HEAP32[$0+172>>2]=$1}FUNCTION_TABLE[HEAP32[144632]]($4);$1=HEAP32[$0+152>>2]+1|0;HEAP32[$0+152>>2]=($1|0)==HEAP32[$0+156>>2]?0:$1;return 1}__assert_fail(175120,175020,527,175142);abort()}return $5}function PhysicsDebugRender__DrawLines_28Vectormath__Aos__Point3__2c_20unsigned_20int_2c_20Vectormath__Aos__Vector4_2c_20void__29($0,$1,$2,$3){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;var $4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$4=global$0+ -64|0;global$0=$4;$7=$1>>>1|0;if($7){$1=0;while(1){$6=$1<<5;$5=$6+$0|0;HEAP32[$4+48>>2]=HEAP32[$5>>2];HEAP32[$4+52>>2]=HEAP32[$5+4>>2];HEAP32[$4+56>>2]=HEAP32[$5+8>>2];$5=($6|16)+$0|0;HEAP32[$4+32>>2]=HEAP32[$5>>2];HEAP32[$4+36>>2]=HEAP32[$5+4>>2];HEAP32[$4+40>>2]=HEAP32[$5+8>>2];$5=HEAP32[$2>>2];HEAP32[$4+16>>2]=$5;$6=HEAP32[$2+4>>2];HEAP32[$4+20>>2]=$6;$8=HEAP32[$2+8>>2];HEAP32[$4+24>>2]=$8;$9=HEAP32[$2+12>>2];HEAP32[$4+12>>2]=$9;HEAP32[$4+8>>2]=$8;HEAP32[$4+4>>2]=$6;HEAP32[$4>>2]=$5;HEAP32[$4+28>>2]=$9;dmRender__Line3D_28dmRender__RenderContext__2c_20Vectormath__Aos__Point3_2c_20Vectormath__Aos__Point3_2c_20Vectormath__Aos__Vector4_2c_20Vectormath__Aos__Vector4_29($3,$4+48|0,$4+32|0,$4+16|0,$4);$1=$1+1|0;if(($7|0)!=($1|0)){continue}break}}global$0=$4- -64|0}function __shgetc($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0;$1=HEAP32[$0+116>>2];$2=$1;label$1:{$5=HEAP32[$0+112>>2];label$2:{if($1|$5){$1=HEAP32[$0+124>>2];if(($1|0)>($2|0)?1:($1|0)>=($2|0)?HEAPU32[$0+120>>2]<$5>>>0?0:1:0){break label$2}}$5=__uflow($0);if(($5|0)>-1){break label$1}}HEAP32[$0+104>>2]=0;return-1}$1=HEAP32[$0+8>>2];$2=HEAP32[$0+116>>2];$3=$2;label$4:{label$5:{$4=HEAP32[$0+112>>2];if(!($2|$4)){break label$5}$2=(HEAP32[$0+124>>2]^-1)+$3|0;$3=HEAP32[$0+120>>2]^-1;$4=$3+$4|0;if($4>>>0<$3>>>0){$2=$2+1|0}$3=$4;$4=HEAP32[$0+4>>2];$6=$1-$4|0;$7=$3>>>0<$6>>>0?0:1;$6=$6>>31;if(($2|0)>($6|0)?1:($2|0)>=($6|0)?$7:0){break label$5}HEAP32[$0+104>>2]=$3+$4;break label$4}HEAP32[$0+104>>2]=$1}label$6:{if(!$1){$0=HEAP32[$0+4>>2];break label$6}$4=HEAP32[$0+124>>2];$2=$0;$3=HEAP32[$0+120>>2];$0=HEAP32[$0+4>>2];$1=($1-$0|0)+1|0;$6=$1;$3=$3+$1|0;$1=($1>>31)+$4|0;HEAP32[$2+120>>2]=$3;HEAP32[$2+124>>2]=$3>>>0<$6>>>0?$1+1|0:$1}$0=$0+ -1|0;if(HEAPU8[$0|0]!=($5|0)){HEAP8[$0|0]=$5}return $5}function dmScript__InitializeVmath_28lua_State__29($0){var $1=0;$1=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;HEAP32[279892]=dmScript__RegisterUserType_28lua_State__2c_20char_20const__2c_20luaL_Reg_20const__2c_20luaL_Reg_20const__29($0,117486,117496,549520);HEAP32[279888]=dmScript__RegisterUserType_28lua_State__2c_20char_20const__2c_20luaL_Reg_20const__2c_20luaL_Reg_20const__29($0,117504,117512,549568);HEAP32[279889]=dmScript__RegisterUserType_28lua_State__2c_20char_20const__2c_20luaL_Reg_20const__2c_20luaL_Reg_20const__29($0,117520,117528,549664);HEAP32[279890]=dmScript__RegisterUserType_28lua_State__2c_20char_20const__2c_20luaL_Reg_20const__2c_20luaL_Reg_20const__29($0,117536,117544,549760);HEAP32[279891]=dmScript__RegisterUserType_28lua_State__2c_20char_20const__2c_20luaL_Reg_20const__2c_20luaL_Reg_20const__29($0,117552,117560,549824);luaL_register($0,117568,549888);lua_settop($0,-2);if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($1|0)){__assert_fail(117574,117595,2333,117619);abort()}}function dmObjectPool_dmGameSystem__SoundComponent___SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>4>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,16,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(49372,49405,60,49227);abort()}__assert_fail(49239,49156,457,49258);abort()}__assert_fail(49081,49156,444,49227);abort()}function dmObjectPool_dmGameSystem__ModelComponent____SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>2>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(47133,46851,60,46542);abort()}__assert_fail(46369,46388,457,46459);abort()}__assert_fail(46467,46388,444,46542);abort()}function dmGui__LuaNewPieNode_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$2=global$0-32|0;global$0=$2;$1=dmScript__ToVector4_28lua_State__2c_20int_29($0,1);label$1:{if($1){$3=$1+8|0;$4=$1+4|0;break label$1}$1=dmScript__CheckVector3_28lua_State__2c_20int_29($0,1);$3=$1+8|0;$4=$1+4|0}$5=HEAP32[$1>>2];$4=HEAP32[$4>>2];$3=HEAP32[$3>>2];$1=dmScript__CheckVector3_28lua_State__2c_20int_29($0,2);$6=HEAP32[$1+4>>2];$7=HEAP32[$1>>2];$1=HEAP32[$1+8>>2];dmScript__GetInstance_28lua_State__29($0);$8=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[283639],205559);lua_settop($0,-2);HEAP32[$2+24>>2]=$3;HEAP32[$2+20>>2]=$4;HEAP32[$2+16>>2]=$5;HEAP32[$2+8>>2]=$1;HEAP32[$2>>2]=$7;HEAP32[$2+4>>2]=$6;$0=dmGui__LuaDoNewNode_28lua_State__2c_20dmGui__Scene__2c_20Vectormath__Aos__Point3_2c_20Vectormath__Aos__Vector3_2c_20dmGui__NodeType_2c_20char_20const__2c_20void__29($0,$8,$2+16|0,$2,2,0,0);global$0=$2+32|0;return $0|0}function dmGui__LuaNewBoxNode_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$2=global$0-32|0;global$0=$2;$1=dmScript__ToVector4_28lua_State__2c_20int_29($0,1);label$1:{if($1){$3=$1+8|0;$4=$1+4|0;break label$1}$1=dmScript__CheckVector3_28lua_State__2c_20int_29($0,1);$3=$1+8|0;$4=$1+4|0}$5=HEAP32[$1>>2];$4=HEAP32[$4>>2];$3=HEAP32[$3>>2];$1=dmScript__CheckVector3_28lua_State__2c_20int_29($0,2);$6=HEAP32[$1+4>>2];$7=HEAP32[$1>>2];$1=HEAP32[$1+8>>2];dmScript__GetInstance_28lua_State__29($0);$8=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[283639],205559);lua_settop($0,-2);HEAP32[$2+24>>2]=$3;HEAP32[$2+20>>2]=$4;HEAP32[$2+16>>2]=$5;HEAP32[$2+8>>2]=$1;HEAP32[$2>>2]=$7;HEAP32[$2+4>>2]=$6;$0=dmGui__LuaDoNewNode_28lua_State__2c_20dmGui__Scene__2c_20Vectormath__Aos__Point3_2c_20Vectormath__Aos__Vector3_2c_20dmGui__NodeType_2c_20char_20const__2c_20void__29($0,$8,$2+16|0,$2,0,0,0);global$0=$2+32|0;return $0|0}function dmGameObject__SetIdentifier_28dmGameObject__CollectionHandle__2c_20dmGameObject__Instance__2c_20unsigned_20long_20long_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0;$5=global$0-16|0;global$0=$5;$4=HEAP32[$0>>2];HEAP32[$5+12>>2]=$1;$6=$4+4164|0;$0=HEAP32[$4+4168>>2];label$1:{label$2:{if(!$0){break label$2}$0=HEAP32[HEAP32[$6>>2]+(__wasm_i64_urem($2,$3,$0)<<2)>>2];if(($0|0)==-1){break label$2}$7=HEAP32[$4+4172>>2];while(1){$0=($0<<4)+$7|0;if(HEAP32[$0>>2]==($2|0)&HEAP32[$0+4>>2]==($3|0)){$0=-3;break label$1}$0=HEAP32[$0+12>>2];if(($0|0)!=-1){continue}break}}$0=-4;if(HEAP32[$1+96>>2]!=HEAP32[145390]|HEAP32[$1+100>>2]!=HEAP32[145391]){break label$1}HEAP32[$1+96>>2]=$2;HEAP32[$1+100>>2]=$3;dmHashTable_unsigned_20long_20long_2c_20dmGameObject__Collection____Put_28unsigned_20long_20long_2c_20dmGameObject__Collection__20const__29($6,$2,$3,$5+12|0);$0=0;if(HEAPU32[$4+4188>>2]<=HEAPU16[$4+2078>>1]){break label$1}__assert_fail(11455,10811,919,11746);abort()}global$0=$5+16|0;return $0}function dmObjectPool_dmRig__RigInstance____SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>2>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(133724,133425,60,133365);abort()}__assert_fail(133377,133219,457,133396);abort()}__assert_fail(133290,133219,444,133365);abort()}function dmObjectPool_dmGameSystem__MeshComponent____SetCapacity_28unsigned_20int_29($0,$1){var $2=0;label$1:{label$2:{if(HEAP32[$0+8>>2]-HEAP32[$0>>2]>>2>>>0<=$1>>>0){if(HEAP8[$0+28|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,8,$0+16|0,$0+24|0,$0+20|0);if(HEAP8[$0+12|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0,$0+8|0,$0+4|0);if(HEAP8[$0+48|0]&1){break label$1}dmArrayUtil__SetCapacity_28unsigned_20int_2c_20unsigned_20int_2c_20unsigned_20long__2c_20unsigned_20long__2c_20unsigned_20long__29($1,4,$0+36|0,$0+44|0,$0+40|0);$2=HEAP32[$0+36>>2];if(HEAP32[$0+44>>2]-$2>>2>>>0<$1>>>0){break label$2}HEAP32[$0+40>>2]=($1<<2)+$2;return}__assert_fail(45287,45320,60,45387);abort()}__assert_fail(44730,44749,457,44820);abort()}__assert_fail(45399,44749,444,45387);abort()}function mbedtls_ecp_point_read_binary($0,$1,$2,$3){var $4=0,$5=0,$6=0;if(!$3){return-20352}$5=mbedtls_mpi_size($0+4|0);$4=-20096;if(HEAP32[$0+48>>2]){$6=HEAP32[$0+60>>2]?1:2}else{$6=0}label$2:{if(($6|0)==2){if(($3|0)!=($5|0)){return-20352}$4=mbedtls_mpi_read_binary_le($1,$2,$3);if($4){break label$2}mbedtls_mpi_free($1+12|0);if(HEAP32[$0>>2]==9){$4=mbedtls_mpi_set_bit($1,($3<<3)+ -1|0,0);if($4){break label$2}}$4=mbedtls_mpi_lset($1+24|0,1);if($4){break label$2}$4=0}if(HEAP32[$0+48>>2]){$0=HEAP32[$0+60>>2]?1:2}else{$0=0}if(($0|0)!=1){break label$2}$4=-20096;$0=HEAPU8[$2|0];if($0>>>0>4){break label$2}label$8:{switch($0-1|0){default:$4=-20352;if(($3|0)!=1){break label$2}return mbedtls_ecp_set_zero($1);case 0:case 1:case 2:break label$2;case 3:break label$8}}$4=-20352;if(($5<<1|1)!=($3|0)){break label$2}$0=$2+1|0;$4=mbedtls_mpi_read_binary($1,$0,$5);if($4){break label$2}$4=mbedtls_mpi_read_binary($1+12|0,$0+$5|0,$5);if($4){break label$2}$4=mbedtls_mpi_lset($1+24|0,1)}return $4}function dmGameObject__MoveAllUp_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,$1){var $2=0,$3=0,$4=0,$5=0;label$1:{label$2:{$1=$1>>>16&32767;if(($1|0)!=32767){$3=HEAP32[$0+2060>>2];$2=HEAP32[$0+2056>>2];while(1){if($3-$2>>2>>>0<=$1>>>0){break label$1}$4=$1<<2;$2=HEAP32[$4+$2>>2];dmGameObject__MoveAllUp_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,HEAP32[$2+152>>2]);$3=HEAP32[$2+140>>2];$5=HEAP32[$2+136>>2];if(!($5&255)){break label$2}dmGameObject__EraseSwapLevelIndex_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,$5,$3);$3=HEAP32[$2+136>>2]+ -1|0;HEAP8[$2+136|0]=$3;dmGameObject__InsertInstanceInLevelIndex_28dmGameObject__Collection__2c_20dmGameObject__Instance__29($0,$2);$3=HEAP32[$0+2060>>2];$2=HEAP32[$0+2056>>2];if($3-$2>>2>>>0<=$1>>>0){break label$1}$1=HEAP32[HEAP32[$2+$4>>2]+152>>2]&32767;if(($1|0)!=32767){continue}break}}return}__assert_fail(15368,10811,1490,15939);abort()}__assert_fail(16081,13666,430,14890);abort()}function internal_memalign($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$2=16;$3=$0>>>0>16?$0:16;label$1:{if(!($3+ -1&$3)){$0=$3;break label$1}while(1){$0=$2;$2=$0<<1;if($0>>>0<$3>>>0){continue}break}}if(-64-$0>>>0<=$1>>>0){HEAP32[310273]=48;return 0}$3=$1>>>0<11?16:$1+11&-8;$2=dlmalloc(($3+$0|0)+12|0);if(!$2){return 0}$1=$2+ -8|0;label$6:{if(!($2&$0+ -1)){$0=$1;break label$6}$5=$2+ -4|0;$6=HEAP32[$5>>2];$2=(($0+$2|0)+ -1&0-$0)+ -8|0;$0=$2-$1>>>0>15?$2:$0+$2|0;$2=$0-$1|0;$4=($6&-8)-$2|0;if(!($6&3)){$1=HEAP32[$1>>2];HEAP32[$0+4>>2]=$4;HEAP32[$0>>2]=$1+$2;break label$6}HEAP32[$0+4>>2]=$4|HEAP32[$0+4>>2]&1|2;$4=$0+$4|0;HEAP32[$4+4>>2]=HEAP32[$4+4>>2]|1;HEAP32[$5>>2]=$2|HEAP32[$5>>2]&1|2;HEAP32[$0+4>>2]=HEAP32[$0+4>>2]|1;dispose_chunk($1,$2)}$1=HEAP32[$0+4>>2];label$9:{if(!($1&3)){break label$9}$2=$1&-8;if($2>>>0<=$3+16>>>0){break label$9}HEAP32[$0+4>>2]=$3|$1&1|2;$1=$0+$3|0;$3=$2-$3|0;HEAP32[$1+4>>2]=$3|3;$2=$0+$2|0;HEAP32[$2+4>>2]=HEAP32[$2+4>>2]|1;dispose_chunk($1,$3)}return $0+8|0}function btHashedOverlappingPairCache__btHashedOverlappingPairCache_28_29($0){var $1=0,$2=0,$3=0,$4=0,$5=0;HEAP8[$0+28|0]=0;HEAP32[$0+24>>2]=0;HEAP32[$0+72>>2]=0;HEAP8[$0+20|0]=1;HEAP32[$0+16>>2]=0;HEAP8[$0+48|0]=1;HEAP32[$0+8>>2]=0;HEAP32[$0+12>>2]=0;HEAP32[$0+44>>2]=0;HEAP8[$0+68|0]=1;HEAP32[$0+36>>2]=0;HEAP32[$0+40>>2]=0;HEAP32[$0- -64>>2]=0;HEAP32[$0+56>>2]=0;HEAP32[$0+60>>2]=0;HEAP32[$0>>2]=542216;$4=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(32);$5=HEAP32[$0+8>>2];if(($5|0)>=1){while(1){$2=$3<<4;$1=$2+$4|0;$2=$2+HEAP32[$0+16>>2]|0;HEAP32[$1>>2]=HEAP32[$2>>2];HEAP32[$1+4>>2]=HEAP32[$2+4>>2];HEAP32[$1+8>>2]=HEAP32[$2+8>>2];HEAP32[$1+12>>2]=HEAP32[$2+12>>2];$3=$3+1|0;if(($5|0)!=($3|0)){continue}break}}$1=HEAP32[$0+16>>2];if($1){if(HEAPU8[$0+20|0]){if($1){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$1+ -4>>2])}}HEAP32[$0+16>>2]=0}HEAP32[$0+16>>2]=$4;HEAP8[$0+20|0]=1;HEAP32[$0+12>>2]=2;btHashedOverlappingPairCache__growTables_28_29($0)}function btCompoundShape__recalculateLocalAabb_28_29($0){$0=$0|0;var $1=Math_fround(0),$2=0,$3=0,$4=0,$5=0;$2=global$0-32|0;global$0=$2;HEAP32[$0+48>>2]=-581039253;HEAP32[$0+52>>2]=-581039253;HEAP32[$0+32>>2]=1566444395;HEAP32[$0+36>>2]=1566444395;HEAP32[$0+56>>2]=-581039253;HEAP32[$0+60>>2]=0;HEAP32[$0+40>>2]=1566444395;HEAP32[$0+44>>2]=0;if(HEAP32[$0+16>>2]>=1){while(1){$4=HEAP32[$0+24>>2]+Math_imul($3,80)|0;$5=HEAP32[$4+64>>2];FUNCTION_TABLE[HEAP32[HEAP32[$5>>2]+8>>2]]($5,$4,$2+16|0,$2);$1=HEAPF32[$2+16>>2];if(!!(HEAPF32[$0+32>>2]>$1)){HEAPF32[$0+32>>2]=$1}$1=HEAPF32[$2>>2];if(!!(HEAPF32[$0+48>>2]<$1)){HEAPF32[$0+48>>2]=$1}$1=HEAPF32[$2+20>>2];if(!!(HEAPF32[$0+36>>2]>$1)){HEAPF32[$0+36>>2]=$1}$1=HEAPF32[$2+4>>2];if(!!(HEAPF32[$0+52>>2]<$1)){HEAPF32[$0+52>>2]=$1}$1=HEAPF32[$2+24>>2];if(!!(HEAPF32[$0+40>>2]>$1)){HEAPF32[$0+40>>2]=$1}$1=HEAPF32[$2+8>>2];if(!!(HEAPF32[$0+56>>2]<$1)){HEAPF32[$0+56>>2]=$1}$3=$3+1|0;if(($3|0)>2]){continue}break}}global$0=$2+32|0}function mbedtls_ssl_handle_message_type($0){var $1=0,$2=0;$2=HEAP32[$0+128>>2];label$1:{if(($2|0)==22){$1=mbedtls_ssl_prepare_handshake_record($0);if($1){break label$1}$2=HEAP32[$0+128>>2]}$1=$2+ -20|0;label$2:{if($1>>>0<=1){if($1-1){$1=-29184;if(HEAP32[$0+132>>2]!=1|HEAPU8[HEAP32[$0+120>>2]]!=1){break label$1}$1=0;if(!(HEAPU8[HEAP32[$0>>2]+184|0]&2)){break label$1}$1=HEAP32[$0+4>>2]+ -10|0;if($1-1|0?$1>>>0<=2:0){break label$2}return HEAP32[$0+68>>2]?-25728:-26368}$1=-29184;if(HEAP32[$0+132>>2]!=2){break label$1}$0=HEAP32[$0+120>>2];$2=HEAPU8[$0|0]+ -1|0;if($2>>>0<=1){$1=-30592;if(!($2-1)){break label$1}$0=HEAPU8[$0+1|0];return $0?($0|0)==100?0:-26240:-30848}return-26240}$1=0;if(!(HEAPU8[HEAP32[$0>>2]+184|0]&2)){break label$1}if(($2|0)!=23){break label$2}$2=HEAP32[$0+4>>2];if(($2|0)==16){break label$2}$1=-26240;if(($2|0)!=2|HEAP32[$0+8>>2]!=1){break label$1}}$1=0;if(!HEAP32[$0+68>>2]|HEAP32[$0+4>>2]!=16){break label$1}ssl_handshake_wrapup_free_hs_transform($0)}return $1}function reallymarkobject($0,$1){var $2=0,$3=0;$2=HEAPU8[$1+5|0];label$1:{label$2:{label$3:{label$4:{label$5:{label$6:{while(1){label$8:{$2=$2&252;HEAP8[$1+5|0]=$2;$3=HEAPU8[$1+4|0];if(($3|0)!=7){$2=$3+ -5|0;if($2>>>0>5){break label$1}switch($2-1|0){case 1:break label$1;case 3:break label$3;case 2:break label$4;case 0:break label$6;case 4:break label$8;default:break label$5}}HEAP8[$1+5|0]=$2|4;$2=HEAP32[$1+8>>2];if(!(!$2|!(HEAPU8[$2+5|0]&3))){reallymarkobject($0,$2)}$1=HEAP32[$1+12>>2];$2=HEAPU8[$1+5|0];if($2&3){continue}break label$1}break}$2=HEAP32[$1+8>>2];label$11:{if(HEAP32[$2+8>>2]<4){break label$11}$3=HEAP32[$2>>2];if(!(HEAPU8[$3+5|0]&3)){break label$11}reallymarkobject($0,$3);$2=HEAP32[$1+8>>2]}if(($1+16|0)!=($2|0)){break label$1}HEAP8[$1+5|0]=HEAPU8[$1+5|0]|4;return}HEAP32[$1+8>>2]=HEAP32[$0+36>>2];break label$2}HEAP32[$1+24>>2]=HEAP32[$0+36>>2];break label$2}HEAP32[$1+108>>2]=HEAP32[$0+36>>2];break label$2}HEAP32[$1+68>>2]=HEAP32[$0+36>>2]}HEAP32[$0+36>>2]=$1}}function dmGameObject__RegisterComponentType_28dmGameObject__Register__2c_20dmGameObject__ComponentType_20const__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$6=global$0-16|0;global$0=$6;$2=HEAP32[$0>>2];$4=-1;label$1:{if(($2|0)==255){break label$1}if($2){$3=HEAP32[$1>>2];while(1){$4=-2;if(($3|0)==HEAP32[(Math_imul($5,96)+$0|0)+8>>2]){break label$1}$5=$5+1|0;if(($2|0)!=($5|0)){continue}break}}if(!(HEAP32[$1+44>>2]|!HEAP32[$1+52>>2])){HEAP32[$6>>2]=HEAP32[$1+4>>2];dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,10938,11192,$6);$4=-7;break label$1}$3=Math_imul($2,96);$2=$0+8|0;memcpy($3+$2|0,$1,94);$5=dmHashString64(HEAP32[$1+4>>2]);$3=HEAP32[$0>>2];$2=$2+Math_imul($3,96)|0;HEAP32[$2+8>>2]=$5;HEAP32[$2+12>>2]=i64toi32_i32$HIGH_BITS;HEAP16[(($3<<1)+$0|0)+24488>>1]=$3;$1=dmProfile__AllocateCounter_28char_20const__29(HEAP32[$1+4>>2]);HEAP32[((HEAP32[$0>>2]<<2)+$0|0)+25e3>>2]=$1;HEAP32[$0>>2]=HEAP32[$0>>2]+1;$4=0}$3=$4;global$0=$6+16|0;return $3}function b2ChainShape__GetChildEdge_28b2EdgeShape__2c_20int_29_20const($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;if(!(($2|0)<0|(HEAP32[$0+28>>2]+ -1|0)<=($2|0))){$5=1;HEAP32[$1+4>>2]=1;HEAP32[$1+8>>2]=HEAP32[$0+8>>2];$4=$2<<3;$3=$4+HEAP32[$0+24>>2]|0;$6=HEAP32[$3+4>>2];HEAP32[$1+24>>2]=HEAP32[$3>>2];HEAP32[$1+28>>2]=$6;$3=HEAP32[$0+24>>2]+$4|0;$6=HEAP32[$3+12>>2];HEAP32[$1+32>>2]=HEAP32[$3+8>>2];HEAP32[$1+36>>2]=$6;label$2:{if(($2|0)>=1){$4=(HEAP32[$0+24>>2]+$4|0)+ -8|0;$3=HEAP32[$4+4>>2];HEAP32[$1+40>>2]=HEAP32[$4>>2];HEAP32[$1+44>>2]=$3;break label$2}$5=HEAP32[$0+36>>2];HEAP32[$1+40>>2]=HEAP32[$0+32>>2];HEAP32[$1+44>>2]=$5;$5=HEAPU8[$0+48|0]}HEAP8[$1+56|0]=$5;if((HEAP32[$0+28>>2]+ -2|0)>($2|0)){$0=HEAP32[$0+24>>2]+($2<<3)|0;$2=HEAP32[$0+20>>2];HEAP32[$1+48>>2]=HEAP32[$0+16>>2];HEAP32[$1+52>>2]=$2;HEAP8[$1+57|0]=1;return}$2=HEAP32[$0+44>>2];HEAP32[$1+48>>2]=HEAP32[$0+40>>2];HEAP32[$1+52>>2]=$2;HEAP8[$1+57|0]=HEAPU8[$0+49|0];return}__assert_fail(94347,94294,89,94381);abort()}function x509_crt_find_parent_in($0,$1,$2,$3,$4,$5,$6){var $7=0,$8=0;label$1:{if(!$1){$5=0;$6=0;break label$1}$8=($5-$6|0)+1|0;$6=0;if(!$4){$5=0;while(1){label$5:{if(x509_crt_check_parent($0,$1,0)){break label$5}$4=HEAP32[$1+288>>2];if($4>>>0<$8>>>0?($4|0)>=1:0){break label$5}$4=!x509_crt_check_signature($0,$1);label$6:{if(mbedtls_x509_time_is_past($1+168|0)){break label$6}if(mbedtls_x509_time_is_future($1+144|0)){break label$6}$5=$1;$6=$4;break label$1}$6=$5?$6:$4;$5=$5?$5:$1}$1=HEAP32[$1+340>>2];if($1){continue}break}break label$1}$5=0;while(1){label$8:{if(x509_crt_check_parent($0,$1,$4)){break label$8}$7=HEAP32[$1+288>>2];if($7>>>0<$8>>>0?($7|0)>=1:0){break label$8}$7=x509_crt_check_signature($0,$1);if($7){break label$8}label$9:{if(mbedtls_x509_time_is_past($1+168|0)){break label$9}if(mbedtls_x509_time_is_future($1+144|0)){break label$9}$6=1;$5=$1;break label$1}$6=$5?$6:!$7;$5=$5?$5:$1}$1=HEAP32[$1+340>>2];if($1){continue}break}}HEAP32[$2>>2]=$5;HEAP32[$3>>2]=$6}function dmParticle__ReHashEmitter_28dmParticle__Emitter__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$1=global$0-48|0;global$0=$1;label$1:{label$2:{$4=$0+192|0;if(HEAP32[$4>>2]){$3=$0+200|0;if(HEAP32[$3>>2]){break label$2}}HEAP8[$0+280|0]=HEAPU8[$0+280|0]|16;break label$1}HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+40>>2]=0;HEAP32[$1+32>>2]=0;HEAP32[$1+36>>2]=0;dmHashUpdateBuffer32($1+24|0,$3,4);dmHashUpdateBuffer32($1+24|0,$0+196|0,4);$3=HEAP32[$0+208>>2];if($3){$6=HEAP32[$0+204>>2];while(1){$5=($2<<5)+$6|0;dmHashUpdateBuffer32($1+24|0,$5,8);dmHashUpdateBuffer32($1+24|0,$5+16|0,16);$2=$2+1|0;if(($3|0)!=($2|0)){continue}break}}HEAP32[$1+16>>2]=HEAP32[$1+40>>2];$2=HEAP32[$1+36>>2];HEAP32[$1+8>>2]=HEAP32[$1+32>>2];HEAP32[$1+12>>2]=$2;$2=HEAP32[$1+28>>2];HEAP32[$1>>2]=HEAP32[$1+24>>2];HEAP32[$1+4>>2]=$2;HEAP32[$0+224>>2]=dmHashFinal32($1);dmHashUpdateBuffer32($1+24|0,$4,4);HEAP32[$0+220>>2]=dmHashFinal32($1+24|0);HEAP8[$0+280|0]=HEAPU8[$0+280|0]&239}global$0=$1+48|0}function dmGui__LuaSetSpineScene_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$1=global$0-16|0;global$0=$1;$3=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;dmScript__GetInstance_28lua_State__29($0);$2=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[283639],205559);lua_settop($0,-2);dmGui__LuaCheckNode_28lua_State__2c_20int_2c_20unsigned_20int__29($0,1,$1+12|0);label$1:{if(dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($2,HEAP32[$1+12>>2])){break label$1}if(dmGui__SetNodeSpineScene_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_29($2,HEAP32[$1+12>>2],dmScript__CheckHashOrString_28lua_State__2c_20int_29($0,2),i64toi32_i32$HIGH_BITS,0,0,0,0,0)){$4=luaL_error($0,203149,0);break label$1}if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4==($3|0)){break label$1}__assert_fail(202574,202532,3879,203188);abort()}global$0=$1+16|0;return $4|0}function ssl_parse_hello_verify_request($0){var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$4=global$0-16|0;global$0=$4;$1=HEAP32[$0>>2];$2=HEAP32[$0+120>>2]+(HEAPU8[$1+184|0]&2?12:4)|0;mbedtls_ssl_read_version($4+12|0,$4+8|0,HEAP32[$1+184>>2]>>>1&1,$2);label$1:{label$2:{$1=HEAP32[$4+12>>2];label$3:{if(($1|0)<3){break label$3}$5=HEAP32[$4+8>>2];if(($5|0)<2){break label$3}$3=$1;$1=HEAP32[$0>>2];if(($3|0)>HEAPU8[$1+180|0]){break label$3}if(($5|0)<=HEAPU8[$1+181|0]){break label$2}}mbedtls_ssl_send_alert_message($0,2,70);$3=-28288;break label$1}$6=$2+3|0;$1=HEAPU8[$2+2|0];if(((HEAP32[$0+120>>2]+HEAP32[$0+132>>2]|0)-$6|0)<($1|0)){mbedtls_ssl_send_alert_message($0,2,50);$3=-31104;break label$1}dlfree(HEAP32[HEAP32[$0+68>>2]+480>>2]);$5=dlcalloc(1,$1);$2=HEAP32[$0+68>>2];HEAP32[$2+480>>2]=$5;$3=-32512;if(!$5){break label$1}memcpy($5,$6,$1);HEAP8[$2+484|0]=$1;HEAP32[$0+4>>2]=1;mbedtls_ssl_reset_checksum($0);mbedtls_ssl_recv_flight_completed($0);$3=0}$2=$3;global$0=$4+16|0;return $2}function dmRender__RenderScript_SetStencilMask_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$2=global$0-32|0;global$0=$2;$1=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;dmScript__GetInstance_28lua_State__29($0);$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[148682],105260);lua_settop($0,-2);if(($1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){$1=$2+8|0;$6=$1;$4=luaL_checknumber($0,1);label$2:{if($4<4294967296&$4>=0){$5=~~$4>>>0;break label$2}$5=0}HEAP32[$6+4>>2]=$5;HEAP32[$1>>2]=13;$1=HEAP32[$3+4>>2];label$4:{if(($1|0)!=HEAP32[$3+8>>2]){HEAP32[$3+4>>2]=$1+20;HEAP32[$1+16>>2]=HEAP32[$2+24>>2];$0=HEAP32[$2+20>>2];HEAP32[$1+8>>2]=HEAP32[$2+16>>2];HEAP32[$1+12>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1>>2]=HEAP32[$2+8>>2];HEAP32[$1+4>>2]=$0;$0=0;break label$4}HEAP32[$2>>2]=(HEAP32[$3+8>>2]-HEAP32[$3>>2]|0)/20;$0=luaL_error($0,101887,$2)}global$0=$2+32|0;return $0|0}__assert_fail(101841,101738,227,105233);abort()}function dmRender__RenderScript_DisableTexture_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$2=global$0-32|0;global$0=$2;$1=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;dmScript__GetInstance_28lua_State__29($0);$3=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[148682],105260);lua_settop($0,-2);if(($1|0)==HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4){$1=$2+8|0;$6=$1;$4=luaL_checknumber($0,1);label$2:{if($4<4294967296&$4>=0){$5=~~$4>>>0;break label$2}$5=0}HEAP32[$6+4>>2]=$5;HEAP32[$1>>2]=3;$1=HEAP32[$3+4>>2];label$4:{if(($1|0)!=HEAP32[$3+8>>2]){HEAP32[$3+4>>2]=$1+20;HEAP32[$1+16>>2]=HEAP32[$2+24>>2];$0=HEAP32[$2+20>>2];HEAP32[$1+8>>2]=HEAP32[$2+16>>2];HEAP32[$1+12>>2]=$0;$0=HEAP32[$2+12>>2];HEAP32[$1>>2]=HEAP32[$2+8>>2];HEAP32[$1+4>>2]=$0;$0=0;break label$4}HEAP32[$2>>2]=(HEAP32[$3+8>>2]-HEAP32[$3>>2]|0)/20;$0=luaL_error($0,101887,$2)}global$0=$2+32|0;return $0|0}__assert_fail(101841,101738,227,105233);abort()}function mbedtls_mpi_mul_mpi($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$4=global$0-32|0;global$0=$4;HEAP32[$4+24>>2]=0;HEAP32[$4+16>>2]=1;HEAP32[$4+20>>2]=0;HEAP32[$4+8>>2]=0;HEAP32[$4>>2]=1;HEAP32[$4+4>>2]=0;label$1:{if(($0|0)==($1|0)){$3=mbedtls_mpi_copy($4+16|0,$0);if($3){break label$1}$1=$4+16|0}if(($0|0)==($2|0)){$3=mbedtls_mpi_copy($4,$0);if($3){break label$1}$2=$4}$5=HEAP32[$1+4>>2];while(1){$6=$5;if($5){$5=$6+ -1|0;if(!HEAP32[HEAP32[$1+8>>2]+($5<<2)>>2]){continue}}break}$3=HEAP32[$2+4>>2];while(1){$5=$3;if($5){$3=$5+ -1|0;if(!HEAP32[HEAP32[$2+8>>2]+($3<<2)>>2]){continue}}break}$3=mbedtls_mpi_grow($0,$5+$6|0);if($3){break label$1}$3=mbedtls_mpi_lset($0,0);if($3){break label$1}if($5){while(1){$3=(HEAP32[$0+8>>2]+($5<<2)|0)+ -4|0;$5=$5+ -1|0;mpi_mul_hlp($6,HEAP32[$1+8>>2],$3,HEAP32[HEAP32[$2+8>>2]+($5<<2)>>2]);if($5){continue}break}}HEAP32[$0>>2]=Math_imul(HEAP32[$2>>2],HEAP32[$1>>2]);$3=0}mbedtls_mpi_free($4);mbedtls_mpi_free($4+16|0);global$0=$4+32|0;return $3}function dmMessage__HasMessages_28unsigned_20long_20long_29($0,$1){var $2=0,$3=0,$4=0,$5=0;if(!($0|$1)){return 0}$3=HEAP32[282570];while(1){if(HEAP32[$3+32>>2]){continue}break}label$3:{$2=HEAP32[$3+4>>2];label$4:{if(!$2){break label$4}$2=HEAP32[HEAP32[$3>>2]+(__wasm_i64_urem($0,$1,$2)<<2)>>2];if(($2|0)==-1){break label$4}$5=HEAP32[$3+8>>2];while(1){$4=$5+($2<<6)|0;if(($0|0)==HEAP32[$4>>2]&HEAP32[$4+4>>2]==($1|0)){break label$3}$2=HEAP32[$4+56>>2];if(($2|0)!=-1){continue}break}}HEAP32[$3+32>>2]=0;return 0}$0=$5+($2<<6)|0;$2=HEAP32[$0+8>>2];if($2){$1=$0+8|0;HEAP32[$1>>2]=$2+1;HEAP32[$3+32>>2]=0;$3=HEAP32[$0+36>>2];dmMutex__Lock_28dmMutex__Mutex__29($3);$2=HEAP32[$0+24>>2];dmMutex__Unlock_28dmMutex__Mutex__29($3);$0=HEAP32[282570];while(1){if(HEAP32[$0+32>>2]){continue}break}$3=HEAP32[$1>>2]+ -1|0;HEAP32[$1>>2]=$3;HEAP32[$0+32>>2]=0;if(!$3){dmMessage__DisposeSocket_28dmMessage__MessageSocket__29($1)}return($2|0)!=0}__assert_fail(154113,154132,259,154156);abort()}function dmGameObject__LuaAnimationStopped_28dmGameObject__Instance__2c_20unsigned_20long_20long_2c_20unsigned_20long_20long_2c_20bool_2c_20void__2c_20void__29($0,$1,$2,$3,$4,$5,$6,$7){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;$5=$5|0;$6=$6|0;$7=$7|0;var $8=0,$9=0,$10=0;$7=global$0-48|0;global$0=$7;if(!(!dmScript__IsCallbackValid_28dmScript__LuaCallbackInfo__29($6)|!$5)){$5=HEAP32[HEAP32[$0+80>>2]+8>>2];label$2:{if(!$5){break label$2}$5=HEAP32[$5>>2];if(!$5){break label$2}$8=HEAP32[$5+4224>>2];$9=HEAP32[$5+4228>>2]}$5=HEAP32[$0+96>>2];$10=HEAP32[$0+100>>2];$0=$7;HEAP32[$0+40>>2]=$3;HEAP32[$0+44>>2]=$4;HEAP32[$0+32>>2]=$1;HEAP32[$0+36>>2]=$2;HEAP32[$0+24>>2]=$5;HEAP32[$0+28>>2]=$10;HEAP32[$0+16>>2]=0;HEAP32[$0+20>>2]=0;HEAP32[$0+8>>2]=$8;HEAP32[$0+12>>2]=$9;dmScript__InvokeCallback_28dmScript__LuaCallbackInfo__2c_20void_20_28__29_28lua_State__2c_20void__29_2c_20void__29($6,115,$0+8|0)}dmScript__DestroyCallback_28dmScript__LuaCallbackInfo__29($6);global$0=$7+48|0}function _GLOBAL__sub_I_sys_ddf_cpp(){HEAP32[137949]=HEAP32[145614];HEAP32[145614]=551768;HEAP32[279916]=1;HEAP32[279914]=-990112893;HEAP32[279915]=-1808347863;HEAP32[279913]=122498;HEAP32[279912]=1;HEAP32[279919]=0;HEAP8[1119672]=0;HEAP32[279917]=HEAP32[279910];HEAP32[279919]=HEAP32[145614];HEAP32[145614]=1119648;HEAP32[279926]=1;HEAP32[279924]=-646628091;HEAP32[279925]=-486267828;HEAP32[279923]=122513;HEAP32[279922]=1;HEAP32[279929]=0;HEAP8[1119712]=0;HEAP32[279927]=HEAP32[279921];HEAP32[279929]=HEAP32[145614];HEAP32[145614]=1119688;HEAP32[137983]=HEAP32[145614];HEAP32[145614]=551904;HEAP32[279938]=1;HEAP32[279936]=-588138364;HEAP32[279937]=-388737994;HEAP32[279935]=122574;HEAP32[279934]=1;HEAP32[279941]=0;HEAP8[1119760]=0;HEAP32[279939]=HEAP32[279932];HEAP32[279941]=HEAP32[145614];HEAP32[145614]=1119736;HEAP32[138025]=HEAP32[145614];HEAP32[145614]=552072;HEAP32[138045]=HEAP32[145614];HEAP32[145614]=552152;HEAP32[138061]=HEAP32[145614];HEAP32[145614]=552216}function _GLOBAL__sub_I_rig_ddf_cpp(){HEAP32[139031]=HEAP32[145614];HEAP32[145614]=556096;HEAP32[139073]=HEAP32[145614];HEAP32[145614]=556264;HEAP32[139099]=HEAP32[145614];HEAP32[145614]=556368;HEAP32[139127]=HEAP32[145614];HEAP32[145614]=556480;HEAP32[139151]=HEAP32[145614];HEAP32[145614]=556576;HEAP32[139179]=HEAP32[145614];HEAP32[145614]=556688;HEAP32[139207]=HEAP32[145614];HEAP32[145614]=556800;HEAP32[139225]=HEAP32[145614];HEAP32[145614]=556872;HEAP32[139271]=HEAP32[145614];HEAP32[145614]=557056;HEAP32[139289]=HEAP32[145614];HEAP32[145614]=557128;HEAP32[139305]=HEAP32[145614];HEAP32[145614]=557192;HEAP32[139321]=HEAP32[145614];HEAP32[145614]=557256;HEAP32[139347]=HEAP32[145614];HEAP32[145614]=557360;HEAP32[139415]=HEAP32[145614];HEAP32[145614]=557632;HEAP32[139443]=HEAP32[145614];HEAP32[145614]=557744;HEAP32[139461]=HEAP32[145614];HEAP32[145614]=557816;HEAP32[139497]=HEAP32[145614];HEAP32[145614]=557960;HEAP32[139527]=HEAP32[145614];HEAP32[145614]=558080}function dmDDF__DoResolvePointers_28dmDDF__Descriptor_20const__2c_20void__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$6=HEAPU8[$0+24|0];if($6){while(1){$3=HEAP32[$0+20>>2]+Math_imul($7,20)|0;$4=HEAP32[$3+4>>2];$5=($4>>>22&63)+ -9|0;label$3:{if($5>>>0>3){break label$3}$2=HEAP32[$3+12>>2]+$1|0;label$4:{switch($5-1|0){case 1:dmDDF__DoResolvePointers_28dmDDF__Descriptor_20const__2c_20void__29(HEAP32[$3+8>>2],$2);$6=HEAPU8[$0+24|0];break label$3;default:if(($4&-268435456)==805306368){$3=HEAP32[$2>>2]+$1|0;HEAP32[$2>>2]=$3;$4=HEAP32[$2+4>>2];if(!$4){break label$3}$5=HEAP32[$0+16>>2];$2=0;while(1){$8=HEAP32[$3>>2];HEAP32[$3>>2]=$8>>>0<$5>>>0?0:$8+$1|0;$3=$3+4|0;$2=$2+1|0;if(($4|0)!=($2|0)){continue}break}break label$3}$3=$2;$2=HEAP32[$2>>2];HEAP32[$3>>2]=$2>>>0>2]?0:$2+$1|0;break label$3;case 0:break label$3;case 2:break label$4}}$3=$2;$2=HEAP32[$2>>2];HEAP32[$3>>2]=$2>>>0>2]?0:$2+$1|0}$7=$7+1|0;if($7>>>0<$6>>>0){continue}break}}}function dmGameSystem__ResRenderScriptRecreate_28dmResource__ResourceRecreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$1=global$0-16|0;global$0=$1;$3=HEAP32[$0+4>>2];$4=HEAP32[HEAP32[$0+32>>2]+8>>2];HEAP32[$1+12>>2]=0;$2=-13;if(!dmDDF__LoadMessage_28void_20const__2c_20unsigned_20int_2c_20dmDDF__Descriptor_20const__2c_20void___29(HEAP32[$0+20>>2],HEAP32[$0+24>>2],HEAP32[131334],$1+12|0)){label$2:{label$3:{if(!dmGameObject__RegisterSubModules_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29(HEAP32[$0>>2],HEAP32[$3+3684>>2],HEAP32[$1+12>>2])){break label$3}if(!dmRender__LoadRenderScript_28lua_State__2c_20dmLuaDDF__LuaSource__2c_20dmRender__RenderScript__29(HEAP32[$3+3688>>2],HEAP32[$1+12>>2],$4)){break label$3}$2=HEAP32[$0+32>>2];$3=HEAP32[$0+24>>2];$0=HEAP32[$1+12>>2];HEAP32[$2+16>>2]=$3-HEAP32[$0+4>>2];$2=0;break label$2}$0=HEAP32[$1+12>>2];$2=-13}dmDDF__FreeMessage_28void__29($0)}global$0=$1+16|0;return $2|0}function btDbvtBroadphase__btDbvtBroadphase_28btOverlappingPairCache__29($0,$1){HEAP32[$0>>2]=542044;HEAP32[$0+20>>2]=0;HEAP32[$0+12>>2]=-1;HEAP32[$0+16>>2]=0;HEAP32[$0+4>>2]=0;HEAP32[$0+8>>2]=0;HEAP32[$0+36>>2]=0;HEAP8[$0+40|0]=1;HEAP32[$0+28>>2]=0;HEAP32[$0+32>>2]=0;HEAP32[$0+60>>2]=0;HEAP32[$0+52>>2]=-1;HEAP32[$0+56>>2]=0;HEAP32[$0+44>>2]=0;HEAP32[$0+48>>2]=0;HEAP32[$0+76>>2]=0;HEAP8[$0+80|0]=1;HEAP32[$0+68>>2]=0;HEAP32[$0+72>>2]=0;HEAP8[$0+153|0]=256;HEAP8[$0+154|0]=1;HEAP8[$0+152|0]=!$1;HEAP32[$0+124>>2]=0;HEAP32[$0+100>>2]=0;HEAP32[$0+104>>2]=0;HEAP32[$0+136>>2]=0;HEAP32[$0+128>>2]=0;HEAP32[$0+132>>2]=0;HEAP32[$0+116>>2]=10;HEAP32[$0+120>>2]=1;HEAP32[$0+108>>2]=1;HEAP32[$0+112>>2]=0;if(!$1){$1=btAlignedAllocInternal_28unsigned_20long_2c_20int_29(76);btHashedOverlappingPairCache__btHashedOverlappingPairCache_28_29($1)}HEAP32[$0+148>>2]=0;HEAP32[$0+96>>2]=$1;HEAP32[$0+140>>2]=0;HEAP32[$0+144>>2]=0;HEAP32[$0+84>>2]=0;HEAP32[$0+88>>2]=0;HEAP32[$0+92>>2]=0}function dmDDF__Message__ReadField_28dmDDF__LoadContext__2c_20dmDDF__WireType_2c_20dmDDF__FieldDescriptor_20const__2c_20dmDDF__InputBuffer__29($0,$1,$2,$3,$4){var $5=0;label$1:{$5=(HEAP32[$3+4>>2]>>>22&63)+ -9|0;if($5>>>0>3){break label$1}label$2:{switch($5-1|0){case 1:return dmDDF__Message__ReadMessageField_28dmDDF__LoadContext__2c_20dmDDF__WireType_2c_20dmDDF__FieldDescriptor_20const__2c_20dmDDF__InputBuffer__29($0,$1,$2,$3,$4);default:return dmDDF__Message__ReadStringField_28dmDDF__LoadContext__2c_20dmDDF__WireType_2c_20dmDDF__FieldDescriptor_20const__2c_20dmDDF__InputBuffer__29($0,$1,$2,$3,$4);case 0:break label$1;case 2:break label$2}}return dmDDF__Message__ReadBytesField_28dmDDF__LoadContext__2c_20dmDDF__WireType_2c_20dmDDF__FieldDescriptor_20const__2c_20dmDDF__InputBuffer__29($0,$1,$2,$3,$4)}return dmDDF__Message__ReadScalarField_28dmDDF__LoadContext__2c_20dmDDF__WireType_2c_20dmDDF__FieldDescriptor_20const__2c_20dmDDF__InputBuffer__29($0,$2,$3,$4)}function dmLiveUpdate__VerifyManifest_28dmResource__Manifest__29($0){var $1=0,$2=0;$1=-5;label$1:{if(!dmLiveUpdate__VerifyManifestSupportedEngineVersion_28dmResource__Manifest__29($0)){break label$1}$1=dmLiveUpdate__VerifyManifestSignature_28dmResource__Manifest__29($0);if($1){break label$1}$2=HEAP32[HEAP32[309385]+5140>>2];if(!dmMutex__TryLock_28dmMutex__Mutex__29($2)){while(1){dmTime__Sleep_28unsigned_20int_29(100);if(!dmMutex__TryLock_28dmMutex__Mutex__29($2)){continue}break}}$1=dmResource__VerifyResourcesBundled_28dmResource__SResourceFactory__2c_20dmResource__Manifest__29(HEAP32[309385],$0);dmMutex__Unlock_28dmMutex__Mutex__29($2);label$4:{$0=$1+20|0;if($0>>>0>20){break label$4}label$5:{switch($0-1|0){case 0:return-4;default:return-6;case 4:return-7;case 19:break label$1;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:break label$4;case 18:break label$5}}return-8}$1=-3}return $1}function dmGui__SetNodeParticlefx_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0;$4=HEAP32[$0+32>>2];$5=$1&65535;label$1:{label$2:{if((HEAP32[$0+36>>2]-$4|0)/576>>>0>$5>>>0){if(HEAPU16[(Math_imul($5,576)+$4|0)+552>>1]!=($1>>>16|0)){break label$2}$6=Math_imul($5,576)+$4|0;if(HEAPU16[$6+554>>1]!=($1&65535)){break label$1}$7=-10;label$4:{if((HEAP32[$6+412>>2]&240)!=80){break label$4}$7=-5;$1=HEAP32[$0+220>>2];if(!$1){break label$4}$1=HEAP32[HEAP32[$0+216>>2]+(__wasm_i64_urem($2,$3,$1)<<2)>>2];if(($1|0)==-1){break label$4}$6=HEAP32[$0+224>>2];while(1){$0=$6+($1<<4)|0;if(($2|0)!=HEAP32[$0>>2]|HEAP32[$0+4>>2]!=($3|0)){$1=HEAP32[$0+12>>2];if(($1|0)!=-1){continue}break label$4}break}$0=Math_imul($5,576)+$4|0;HEAP32[$0+528>>2]=$2;HEAP32[$0+532>>2]=$3;$7=0}return $7}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}function b2WorldRayCastWrapper__RayCastCallback_28b2RayCastInput_20const__2c_20int_29($0,$1,$2){var $3=0,$4=0,$5=Math_fround(0),$6=0,$7=Math_fround(0),$8=Math_fround(0),$9=Math_fround(0);$3=global$0-32|0;global$0=$3;label$1:{if(($2|0)<0){break label$1}$4=HEAP32[$0>>2];if(HEAP32[$4+12>>2]<=($2|0)){break label$1}$4=HEAP32[(HEAP32[$4+4>>2]+Math_imul($2,36)|0)+16>>2];$2=HEAP32[$4+16>>2];$6=HEAP32[$2+12>>2];$4=HEAP32[$4+20>>2];label$2:{if(FUNCTION_TABLE[HEAP32[HEAP32[$6>>2]+20>>2]]($6,$3+16|0,$1,HEAP32[$2+8>>2]+12|0,$4)){$8=HEAPF32[$1>>2];$9=HEAPF32[$1+8>>2];$5=HEAPF32[$3+24>>2];$7=Math_fround(Math_fround(1)-$5);HEAPF32[$3+12>>2]=Math_fround($7*HEAPF32[$1+4>>2])+Math_fround($5*HEAPF32[$1+12>>2]);HEAPF32[$3+8>>2]=Math_fround($7*$8)+Math_fround($5*$9);$0=HEAP32[$0+4>>2];$5=Math_fround(FUNCTION_TABLE[HEAP32[HEAP32[$0>>2]+8>>2]]($0,$2,$4,$3+8|0,$3+16|0,$5));break label$2}$5=HEAPF32[$1+16>>2]}global$0=$3+32|0;return $5}__assert_fail(97838,97879,160,97935);abort()}function dmGui__SetDirtyLocalRecursive_28dmGui__Scene__2c_20unsigned_20int_29($0,$1){var $2=0,$3=0;label$1:{label$2:{label$3:{$2=HEAP32[$0+32>>2];$3=$1&65535;if((HEAP32[$0+36>>2]-$2|0)/576>>>0>$3>>>0){if(HEAPU16[($2+Math_imul($3,576)|0)+552>>1]!=($1>>>16|0)){break label$3}$2=$2+Math_imul($3,576)|0;if(HEAPU16[$2+554>>1]!=($1&65535)){break label$2}HEAP32[$2+412>>2]=HEAP32[$2+412>>2]|2097152;$1=HEAPU16[$2+562>>1];if(($1|0)!=65535){while(1){$2=HEAP32[$0+32>>2];$1=$1&65535;if((HEAP32[$0+36>>2]-$2|0)/576>>>0<=$1>>>0){break label$1}$1=$2+Math_imul($1,576)|0;HEAP32[$1+412>>2]=HEAP32[$1+412>>2]|2097152;if(HEAPU16[$1+562>>1]!=65535){dmGui__SetDirtyLocalRecursive_28dmGui__Scene__2c_20unsigned_20int_29($0,HEAPU16[$1+554>>1]|HEAPU16[$1+552>>1]<<16)}$1=HEAPU16[$1+558>>1];if(($1|0)!=65535){continue}break}}return}break label$1}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}__assert_fail(201597,201431,430,201608);abort()}function b2FrictionJoint__Dump_28_29($0){$0=$0|0;var $1=0,$2=Math_fround(0),$3=0,$4=0;$1=global$0-128|0;global$0=$1;$3=HEAP32[HEAP32[$0+52>>2]+8>>2];$4=HEAP32[HEAP32[$0+48>>2]+8>>2];b2Log_28char_20const__2c_20____29(90201,0);HEAP32[$1+112>>2]=$4;b2Log_28char_20const__2c_20____29(90227,$1+112|0);HEAP32[$1+96>>2]=$3;b2Log_28char_20const__2c_20____29(90253,$1+96|0);HEAP32[$1+80>>2]=HEAPU8[$0+61|0];b2Log_28char_20const__2c_20____29(90279,$1+80|0);$2=HEAPF32[$0+68>>2];HEAPF64[$1+72>>3]=HEAPF32[$0+72>>2];HEAPF64[$1+64>>3]=$2;b2Log_28char_20const__2c_20____29(90314,$1- -64|0);$2=HEAPF32[$0+76>>2];HEAPF64[$1+56>>3]=HEAPF32[$0+80>>2];HEAPF64[$1+48>>3]=$2;b2Log_28char_20const__2c_20____29(90356,$1+48|0);HEAPF64[$1+32>>3]=HEAPF32[$0+96>>2];b2Log_28char_20const__2c_20____29(90398,$1+32|0);HEAPF64[$1+16>>3]=HEAPF32[$0+100>>2];b2Log_28char_20const__2c_20____29(90424,$1+16|0);HEAP32[$1>>2]=HEAP32[$0+56>>2];b2Log_28char_20const__2c_20____29(90451,$1);global$0=$1+128|0}function luaK_exp2RK($0,$1){var $2=0,$3=0,$4=0;$2=global$0-32|0;global$0=$2;label$1:{if(HEAP32[$1+16>>2]!=HEAP32[$1+20>>2]){luaK_exp2anyreg($0,$1);break label$1}luaK_dischargevars($0,$1)}label$3:{label$4:{$3=HEAP32[$1>>2];$4=$3+ -1|0;if($4>>>0>4){break label$4}if($4-3){if(HEAP32[$0+40>>2]>255){break label$4}label$6:{label$7:{$4=$3+ -1|0;if($4>>>0>4){break label$7}label$8:{switch($4-1|0){default:HEAP32[$2+8>>2]=0;$3=HEAP32[$0+4>>2];HEAP32[$2+24>>2]=5;HEAP32[$2+16>>2]=$3;$0=addk($0,$2+16|0,$2);break label$6;case 0:case 1:case 2:break label$7;case 3:break label$8}}$3=HEAP32[$1+12>>2];$4=HEAP32[$1+8>>2];HEAP32[$2+24>>2]=3;HEAP32[$2+16>>2]=$4;HEAP32[$2+20>>2]=$3;$0=addk($0,$2+16|0,$2+16|0);break label$6}HEAP32[$2+24>>2]=1;HEAP32[$2+16>>2]=($3|0)==2;$0=addk($0,$2+16|0,$2+16|0)}HEAP32[$1>>2]=4;HEAP32[$1+8>>2]=$0;$0=$0|256;break label$3}$3=HEAP32[$1+8>>2];if(($3|0)>255){break label$4}$0=$3|256;break label$3}$0=luaK_exp2anyreg($0,$1)}global$0=$2+32|0;return $0}function ecp_use_curve448($0){var $1=0,$2=0,$3=0;$3=global$0-16|0;global$0=$3;HEAP32[$3+8>>2]=0;HEAP32[$3>>2]=1;HEAP32[$3+4>>2]=0;label$1:{label$2:{$1=mbedtls_mpi_read_string($0+16|0,142088);if($1){break label$2}$2=$0+4|0;$1=mbedtls_mpi_lset($2,1);if($1){break label$2}$1=mbedtls_mpi_shift_l($2,224);if($1){break label$2}$1=mbedtls_mpi_sub_int($2,$2,1);if($1){break label$2}$1=mbedtls_mpi_shift_l($2,224);if($1){break label$2}$1=mbedtls_mpi_sub_int($2,$2,1);if($1){break label$2}HEAP32[$0+88>>2]=mbedtls_mpi_bitlen($2);$1=mbedtls_mpi_lset($0+40|0,5);if($1){break label$2}$1=mbedtls_mpi_lset($0- -64|0,1);if($1){break label$2}mbedtls_mpi_free($0+52|0);$2=$0+76|0;$1=mbedtls_mpi_set_bit($2,446,1);if($1){break label$2}$1=mbedtls_mpi_read_string($3,142093);if($1){break label$2}$1=mbedtls_mpi_sub_mpi($2,$2,$3);if($1){break label$2}HEAP32[$0+92>>2]=447;mbedtls_mpi_free($3);$1=0;break label$1}mbedtls_mpi_free($3);mbedtls_ecp_group_free($0)}global$0=$3+16|0;return $1}function dmConnectionPool__Reopen_28dmConnectionPool__ConnectionPool__29($0){var $1=0,$2=0,$3=0,$4=0,$5=0;$4=HEAP32[$0+28>>2];dmMutex__Lock_28dmMutex__Mutex__29($4);$2=HEAP32[$0+8>>2];$1=HEAP32[$0+12>>2]-$2|0;label$1:{if(!$1){break label$1}$5=$1>>6;while(1){$1=($3<<6)+$2|0;if(HEAP32[$1+48>>2]==1){dmSocket__Delete_28int_29(HEAP32[$1+44>>2]);dmSSLSocket__Delete_28dmSSLSocket__SSLSocket__29(HEAP32[$1+40>>2]);HEAP32[$1+56>>2]=0;HEAP32[$1+60>>2]=0;HEAP32[$1+48>>2]=0;HEAP32[$1+52>>2]=0;HEAP32[$1+32>>2]=0;HEAP32[$1+36>>2]=0;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=0;HEAP32[$1+40>>2]=0;HEAP32[$1+44>>2]=-1;HEAP32[$1+48>>2]=0}$3=$3+1|0;if(($5|0)==($3|0)){break label$1}$2=HEAP32[$0+8>>2];if(HEAP32[$0+12>>2]-$2>>6>>>0>$3>>>0){continue}break}__assert_fail(136627,136344,430,136638);abort()}HEAP8[$0+32|0]=HEAPU8[$0+32|0]|1;dmMutex__Unlock_28dmMutex__Mutex__29($4)}function btRigidBody__addConstraintRef_28btTypedConstraint__29($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;$2=HEAP32[$0+480>>2];label$1:{label$2:{if(($2|0)<1){break label$2}$4=HEAP32[$0+488>>2];while(1){if(HEAP32[$4+($3<<2)>>2]!=($1|0)){$3=$3+1|0;if(($3|0)!=($2|0)){continue}break label$2}break}if(($2|0)!=($3|0)){break label$1}}label$5:{if(HEAP32[$0+484>>2]!=($2|0)){break label$5}$4=$2?$2<<1:1;if(($2|0)>=($4|0)){break label$5}if($4){$5=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($4<<2);$2=HEAP32[$0+480>>2]}if(($2|0)>=1){$3=0;while(1){$6=$3<<2;HEAP32[$6+$5>>2]=HEAP32[HEAP32[$0+488>>2]+$6>>2];$3=$3+1|0;if(($3|0)!=($2|0)){continue}break}}$3=HEAP32[$0+488>>2];if($3){if(HEAPU8[$0+492|0]){if($3){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$3+ -4>>2])}$2=HEAP32[$0+480>>2]}HEAP32[$0+488>>2]=0}HEAP32[$0+488>>2]=$5;HEAP32[$0+484>>2]=$4;HEAP8[$0+492|0]=1}HEAP32[HEAP32[$0+488>>2]+($2<<2)>>2]=$1;HEAP32[$0+480>>2]=$2+1}HEAP32[$0+252>>2]=1}function opt_ip6_setmembership($0,$1,$2){var $3=0,$4=0;$3=global$0-32|0;global$0=$3;HEAP32[$3+24>>2]=0;HEAP32[$3+16>>2]=0;HEAP32[$3+20>>2]=0;HEAP32[$3+8>>2]=0;HEAP32[$3+12>>2]=0;if((lua_type($0,3)|0)!=5){auxiliar_typeerror($0,HEAP32[138101])}lua_pushstring($0,120801);lua_gettable($0,3);if(!lua_isstring($0,-1)){luaL_argerror($0,3,120811)}if(!inet_pton(10,lua_tolstring($0,-1,0),$3+8|0)){luaL_argerror($0,3,120845)}lua_pushstring($0,120876);lua_gettable($0,3);label$4:{if(!lua_type($0,-1)){break label$4}if(lua_isnumber($0,-1)){$4=lua_tonumber($0,-1);if($4<4294967296&$4>=0){HEAP32[$3+24>>2]=~~$4>>>0;break label$4}HEAP32[$3+24>>2]=0;break label$4}luaL_argerror($0,-1,120951)}label$7:{if((setsockopt(HEAP32[$1>>2],41,$2,$3+8|0,20)|0)<=-1){$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;lua_pushstring($0,120985);$0=2;break label$7}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=1;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;$0=1}global$0=$3+32|0;return $0}function dmWebsocket__WebsocketInitialize_28dmExtension__Params__29($0){$0=$0|0;var $1=0,$2=0,$3=0;$2=global$0-16|0;global$0=$2;label$1:{if(HEAP8[580868]&1){$0=HEAP32[$0+4>>2];$3=HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4;luaL_register($0,1331,225408);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,1497);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=1;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,1513);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=2;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,1532);$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=3;HEAPF64[$1>>3]=3;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;lua_setfield($0,-2,1546);lua_settop($0,-2);if(HEAP32[$0+8>>2]-HEAP32[$0+12>>2]>>4!=($3|0)){break label$1}HEAP32[$2>>2]=1331;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(2,1149,1473,$2)}global$0=$2+16|0;return 0}__assert_fail(1558,1579,329,1614);abort()}function dmGameSystem__CompCameraCreate_28dmGameObject__ComponentCreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0;$4=global$0-16|0;global$0=$4;$3=HEAP32[$0+64>>2];$1=HEAP32[$3+4>>2];label$1:{label$2:{if(($1|0)!=HEAP32[$3+8>>2]){$5=HEAP32[$0>>2];$2=HEAP32[HEAP32[$0+60>>2]>>2];$6=HEAP32[$2>>2];$7=HEAP32[$2+4>>2];$8=HEAP32[$2+12>>2];$9=HEAP32[$2+8>>2];$10=HEAP32[$2+16>>2];$2=HEAPU16[$0+76>>1];HEAP32[$3+4>>2]=$1+28;HEAP16[$1+26>>1]=$2;$2=0;HEAP8[$1+24|0]=($10|0)!=0;HEAP32[$1+16>>2]=$9;HEAP32[$1+20>>2]=$8;HEAP32[$1+8>>2]=$6;HEAP32[$1+12>>2]=$7;HEAP32[$1+4>>2]=$3;HEAP32[$1>>2]=$5;$1=HEAP32[$3>>2];$3=HEAP32[$3+4>>2]-$1|0;if(!$3){break label$1}HEAP32[HEAP32[$0+72>>2]>>2]=($1+Math_imul(($3|0)/28|0,28)|0)+ -28;break label$2}HEAP32[$4>>2]=64;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,34296,34304,$4);$2=-1e3}global$0=$4+16|0;return $2|0}__assert_fail(34765,34653,430,34776);abort()}function dmGameSystem__CollectionFactoryComp_Unload_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$1=global$0+ -64|0;global$0=$1;$2=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($1+48|0,$0,0);$3=HEAP32[HEAP32[dmGameSystem__CheckGoInstance_28lua_State__29($0)+80>>2]+8>>2];HEAP32[$1+32>>2]=0;HEAP32[$1+36>>2]=0;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$3,62745,$1+44|0,$1+8|0,0);if(!dmGameSystem__CompCollectionFactoryUnload_28dmGameObject__CollectionHandle__2c_20dmGameSystem__CollectionFactoryComponent__29($3,HEAP32[$1+44>>2])){$4=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($2,62967,0)}dmScript__LuaStackCheck___LuaStackCheck_28_29($2);global$0=$1- -64|0;return $4|0}function b2TestOverlap_28b2Shape_20const__2c_20int_2c_20b2Shape_20const__2c_20int_2c_20b2Transform_20const__2c_20b2Transform_20const__29($0,$1,$2,$3,$4,$5){var $6=0;$6=global$0-144|0;global$0=$6;HEAP32[$6+100>>2]=0;HEAP32[$6+92>>2]=0;HEAP32[$6+96>>2]=0;HEAP32[$6+72>>2]=0;HEAP32[$6+64>>2]=0;HEAP32[$6+68>>2]=0;b2DistanceProxy__Set_28b2Shape_20const__2c_20int_29($6+48|0,$0,$1);b2DistanceProxy__Set_28b2Shape_20const__2c_20int_29($6+76|0,$2,$3);$0=HEAP32[$4+12>>2];HEAP32[$6+112>>2]=HEAP32[$4+8>>2];HEAP32[$6+116>>2]=$0;$0=HEAP32[$4+4>>2];HEAP32[$6+104>>2]=HEAP32[$4>>2];HEAP32[$6+108>>2]=$0;$0=HEAP32[$5+12>>2];HEAP32[$6+128>>2]=HEAP32[$5+8>>2];HEAP32[$6+132>>2]=$0;$0=HEAP32[$5+4>>2];HEAP32[$6+120>>2]=HEAP32[$5>>2];HEAP32[$6+124>>2]=$0;HEAP8[$6+136|0]=1;HEAP16[$6+36>>1]=0;b2Distance_28b2DistanceOutput__2c_20b2SimplexCache__2c_20b2DistanceInput_20const__29($6+8|0,$6+32|0,$6+48|0);global$0=$6+144|0;return HEAPF32[$6+24>>2]>2];label$4:{if(!$4){break label$4}$4=HEAP32[HEAP32[$0+264>>2]+(__wasm_i64_urem($2,$3,$4)<<2)>>2];if(($4|0)==-1){break label$4}$7=HEAP32[$0+272>>2];while(1){$6=($4<<4)+$7|0;if(($2|0)!=HEAP32[$6>>2]|HEAP32[$6+4>>2]!=($3|0)){$4=HEAP32[$6+12>>2];if(($4|0)!=-1){continue}break label$4}break}$6=HEAP32[$0+36>>2];$0=HEAP32[$0+32>>2];$5=$1&65535;if(($6-$0|0)/576>>>0<=$5>>>0){break label$3}if(HEAPU16[($0+Math_imul($5,576)|0)+552>>1]!=($1>>>16|0)){break label$2}$0=$0+Math_imul($5,576)|0;if(HEAPU16[$0+554>>1]!=($1&65535)){break label$1}HEAP32[$0+496>>2]=$2;HEAP32[$0+500>>2]=$3;HEAP16[$0+504>>1]=HEAPU16[(($4<<4)+$7|0)+8>>1];$5=0}return $5}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}function dmGui__SetNodeFont_28dmGui__Scene__2c_20unsigned_20int_2c_20unsigned_20long_20long_29($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0;$5=-5;label$1:{label$2:{label$3:{$4=HEAP32[$0+84>>2];label$4:{if(!$4){break label$4}$4=HEAP32[HEAP32[$0+80>>2]+(__wasm_i64_urem($2,$3,$4)<<2)>>2];if(($4|0)==-1){break label$4}$7=HEAP32[$0+88>>2];while(1){$6=($4<<4)+$7|0;if(($2|0)!=HEAP32[$6>>2]|HEAP32[$6+4>>2]!=($3|0)){$4=HEAP32[$6+12>>2];if(($4|0)!=-1){continue}break label$4}break}$6=HEAP32[$0+36>>2];$0=HEAP32[$0+32>>2];$5=$1&65535;if(($6-$0|0)/576>>>0<=$5>>>0){break label$3}if(HEAPU16[($0+Math_imul($5,576)|0)+552>>1]!=($1>>>16|0)){break label$2}$0=$0+Math_imul($5,576)|0;if(HEAPU16[$0+554>>1]!=($1&65535)){break label$1}HEAP32[$0+480>>2]=$2;HEAP32[$0+484>>2]=$3;HEAP32[$0+488>>2]=HEAP32[(($4<<4)+$7|0)+8>>2];$5=0}return $5}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}function dmConfigFile__GetFloat_28dmConfigFile__Config__2c_20char_20const__2c_20float_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0;$3=global$0-16|0;global$0=$3;$6=dmHashString64($1);$7=i64toi32_i32$HIGH_BITS;$1=HEAP32[$0+4>>2];$4=HEAP32[$0>>2];label$1:{if(($1|0)==($4|0)){break label$1}$1=$1-$4>>4;$8=$1>>>0>1?$1:1;$1=0;while(1){label$3:{$5=$4+($1<<4)|0;if(($6|0)==HEAP32[$5>>2]&HEAP32[$5+4>>2]==($7|0)){$5=HEAP32[$0+20>>2];$0=HEAP32[$0+16>>2];$1=HEAP32[($4+($1<<4)|0)+8>>2];if($5-$0>>>0>$1>>>0){break label$3}__assert_fail(135894,135766,430,135905);abort()}$1=$1+1|0;if(($8|0)!=($1|0)){continue}break label$1}break}if(!$0){break label$1}$0=$0+$1|0;$1=strlen($0);HEAP32[$3+12>>2]=0;$9=strtod($0,$3+12|0);$4=$0+$1|0;$1=HEAP32[$3+12>>2];if(!(($4|0)!=($1|0)|($0|0)==($1|0))){$2=Math_fround($9);break label$1}HEAP32[$3>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,135436,135623,$3)}global$0=$3+16|0;return $2}function mbedtls_ssl_free($0){var $1=0,wasm2js_i32$0=0,wasm2js_i32$1=0,wasm2js_i32$2=0,wasm2js_i32$3=0;if($0){$1=HEAP32[$0+184>>2];if($1){FUNCTION_TABLE[HEAP32[139546]]($1,0,16749)|0;dlfree(HEAP32[$0+184>>2])}$1=HEAP32[$0+100>>2];if($1){FUNCTION_TABLE[HEAP32[139546]]($1,0,16749)|0;dlfree(HEAP32[$0+100>>2])}$1=HEAP32[$0+80>>2];if($1){mbedtls_ssl_transform_free($1);dlfree(HEAP32[$0+80>>2])}if(HEAP32[$0+68>>2]){mbedtls_ssl_handshake_free($0);mbedtls_ssl_transform_free(HEAP32[$0+84>>2]);mbedtls_ssl_session_free(HEAP32[$0+64>>2]);dlfree(HEAP32[$0+68>>2]);dlfree(HEAP32[$0+84>>2]);dlfree(HEAP32[$0+64>>2])}$1=HEAP32[$0+60>>2];if($1){mbedtls_ssl_session_free($1);dlfree(HEAP32[$0+60>>2])}$1=HEAP32[$0+236>>2];if($1){wasm2js_i32$1=$1,wasm2js_i32$2=0,wasm2js_i32$3=strlen($1),wasm2js_i32$0=HEAP32[139546],FUNCTION_TABLE[wasm2js_i32$0](wasm2js_i32$1|0,wasm2js_i32$2|0,wasm2js_i32$3|0)|0;dlfree(HEAP32[$0+236>>2])}FUNCTION_TABLE[HEAP32[139546]]($0,0,280)|0}}function inet_meth_getpeername($0,$1,$2){var $3=0,$4=0;$3=global$0-208|0;global$0=$3;HEAP32[$3+76>>2]=128;label$1:{if((getpeername(HEAP32[$1>>2],$3+80|0,$3+76|0)|0)<=-1){$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;lua_pushstring($0,socket_strerror(HEAP32[310273]));$0=2;break label$1}$1=getnameinfo($3+80|0,HEAP32[$3+76>>2],$3+16|0,46,$3+10|0,6,3)|0;if($1){$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=0;HEAP32[$0+8>>2]=$2+16;lua_pushstring($0,gai_strerror($1|0)|0);$0=2;break label$1}lua_pushstring($0,$3+16|0);$1=strtol($3+10|0,0);$4=HEAP32[$0+8>>2];HEAP32[$4+8>>2]=3;HEAPF64[$4>>3]=$1|0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;label$4:{label$5:{$1=$2+ -2|0;if($1>>>0>8){break label$5}label$6:{switch($1-1|0){default:lua_pushlstring($0,120313,4);break label$4;case 0:case 1:case 2:case 3:case 4:case 5:case 6:break label$5;case 7:break label$6}}lua_pushlstring($0,120318,5);break label$4}lua_pushlstring($0,120352,13)}$0=3}global$0=$3+208|0;return $0}function dmScript__GetStringFromHashOrString_28lua_State__2c_20int_2c_20char__2c_20unsigned_20int_29($0,$1,$2){var $3=0,$4=0;$3=global$0-48|0;global$0=$3;label$1:{if((lua_type($0,$1)|0)==4){HEAP32[$3+44>>2]=0;$4=lua_tolstring($0,$1,$3+44|0);$0=HEAP32[$3+44>>2];$1=$0>>>0<128;HEAP8[memcpy($2,$4,$1?$0:128)+($1?$0:127)|0]=0;break label$1}if(dmScript__ToUserType_28lua_State__2c_20int_2c_20unsigned_20int_29($0,$1,HEAP32[148786])){$0=lua_touserdata($0,$1);$1=dmHashReverse64(HEAP32[$0>>2],HEAP32[$0+4>>2]);if($1){HEAP32[$3+32>>2]=$1;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($2,128,110324,$3+32|0);break label$1}$1=HEAP32[$0+4>>2];HEAP32[$3+16>>2]=HEAP32[$0>>2];HEAP32[$3+20>>2]=$1;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($2,128,110327,$3+16|0);break label$1}HEAP32[$3>>2]=110332;dmSnPrintf_28char__2c_20unsigned_20long_2c_20char_20const__2c_20____29($2,128,110324,$3)}global$0=$3+48|0;return $2}function dmEngineService__HttpResourceRequestCallback_28void__2c_20dmWebServer__Request__29($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0;$2=global$0-16|0;global$0=$2;HEAP16[$2+14>>1]=4;label$1:{label$2:{$3=dmWebServer__Send_28dmWebServer__Request__2c_20void_20const__2c_20unsigned_20int_29($1,$2+14|0,2);if(!$3){$3=dmWebServer__Send_28dmWebServer__Request__2c_20void_20const__2c_20unsigned_20int_29($1,7251,HEAPU16[$2+14>>1]);if(!$3){break label$2}}HEAP32[$2>>2]=$3;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,5691,7256,$2);break label$1}dmWebServer__SendAttribute_28dmWebServer__Request__2c_20char_20const__2c_20char_20const__29($1,7315,7343);dmWebServer__SendAttribute_28dmWebServer__Request__2c_20char_20const__2c_20char_20const__29($1,7228,7242);dmResource__IterateResources_28dmResource__SResourceFactory__2c_20bool_20_28__29_28dmResource__IteratorResource_20const__2c_20void__29_2c_20void__29($0,$1)}global$0=$2+16|0}function socket_connect($0,$1,$2,$3){var $4=0,$5=0,$6=0;$5=global$0-16|0;global$0=$5;$4=HEAP32[$0>>2];label$1:{if(($4|0)==-1){$4=-2;break label$1}if(!connect($4,$1,$2)){$4=0;break label$1}while(1){$4=HEAP32[310273];HEAP32[$5+4>>2]=$4;if(($4|0)!=27){if(($4|0)!=26?($4|0)!=6:0){break label$1}$4=-1;if(HEAPF64[$3>>3]==0){break label$1}$1=HEAP32[$0>>2];HEAP32[$5+12>>2]=5;HEAP32[$5+8>>2]=$1;label$6:{label$7:{while(1){$2=$5+8|0;$6=timeout_getretry($3)*1e3;label$9:{if(Math_abs($6)<2147483648){$1=~~$6;break label$9}$1=-2147483648}$1=poll($2,($1|0)>-1?$1:-1);if(($1|0)!=-1){if($1){if(HEAPU8[$5+14|0]&9){break label$7}$4=0}HEAP32[$5+4>>2]=$4;break label$1}if(HEAP32[310273]==27){continue}break}$4=HEAP32[310273];HEAP32[$5+4>>2]=$4;if(($4|0)!=-2){break label$1}break label$6}HEAP32[$5+4>>2]=-2}$4=0;if(!recv(HEAP32[$0>>2],$5+4|0,0)){break label$1}$4=HEAP32[310273];break label$1}if(connect(HEAP32[$0>>2],$1,$2)){continue}break}$4=0}global$0=$5+16|0;return $4}function socket_accept($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0,$8=0;$7=global$0-16|0;global$0=$7;label$1:{if(HEAP32[$0>>2]==-1){$5=-2;break label$1}while(1){$5=accept(HEAP32[$0>>2],$2,$3);HEAP32[$1>>2]=$5;if(($5|0)!=-1){$5=0;break label$1}$5=HEAP32[310273];$6=$5+ -6|0;if($6>>>0>21){break label$1}label$5:{switch($6-1|0){case 0:case 1:case 2:case 3:case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:break label$1;case 20:continue;default:break label$5}}$5=HEAP32[$0>>2];HEAP32[$7+12>>2]=1;HEAP32[$7+8>>2]=$5;label$6:{if(HEAPF64[$4>>3]==0){break label$6}label$7:{while(1){$5=$7+8|0;$8=timeout_getretry($4)*1e3;label$9:{if(Math_abs($8)<2147483648){$6=~~$8;break label$9}$6=-2147483648}$6=poll($5,($6|0)>-1?$6:-1);if(($6|0)!=-1){$5=0;if($6){break label$7}break label$6}if(HEAP32[310273]==27){continue}break}$5=HEAP32[310273]}if(!$5){continue}break label$1}break}$5=-1}global$0=$7+16|0;return $5}function modf($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0;wasm2js_scratch_store_f64(+$0);$2=wasm2js_scratch_load_i32(1)|0;$6=wasm2js_scratch_load_i32(0)|0;$7=$2;$3=$2>>>20&2047;$2=$3+ -1023|0;folding_inner0:{label$1:{if($3>>>0>=1075){HEAPF64[$1>>3]=$0;if(($2|0)==1024?$7&1048575|$6:0){break label$1}break folding_inner0}if($3>>>0<=1022){HEAP32[$1>>2]=0;HEAP32[$1+4>>2]=$7&-2147483648;return $0}$3=$7;$5=$6;$4=$2&31;if(32<=($2&63)>>>0){$3=$5<<$4;$5=0}else{$3=(1<<$4)-1&$5>>>32-$4|$3<<$4;$5=$5<<$4}if(!($5|$3&1048575)){HEAPF64[$1>>3]=$0;break folding_inner0}$4=$2&31;$5=$1;if(32<=($2&63)>>>0){$3=-1;$2=-1048576>>$4}else{$3=-1048576>>$4;$2=((1<<$4)-1&-1048576)<<32-$4}$2=$2&$6;HEAP32[$5>>2]=$2;$6=$1;$1=$3&$7;HEAP32[$6+4>>2]=$1;wasm2js_scratch_store_i32(0,$2|0);wasm2js_scratch_store_i32(1,$1|0);$0=$0- +wasm2js_scratch_load_f64()}return $0}$1=$7&-2147483648;wasm2js_scratch_store_i32(0,0);wasm2js_scratch_store_i32(1,$1|0);return+wasm2js_scratch_load_f64()}function ecp_randomize_jac($0,$1,$2,$3){var $4=0,$5=0,$6=0,$7=0,$8=0;$4=global$0-32|0;global$0=$4;$7=$0+4|0;$8=HEAP32[$0+88>>2]+7>>>3|0;HEAP32[$4+24>>2]=0;HEAP32[$4+16>>2]=1;HEAP32[$4+20>>2]=0;HEAP32[$4+8>>2]=0;HEAP32[$4>>2]=1;HEAP32[$4+4>>2]=0;label$1:{label$2:{while(1){$5=mbedtls_mpi_fill_random($4+16|0,$8,$2,$3);if($5){break label$2}while(1){if((mbedtls_mpi_cmp_mpi($4+16|0,$7)|0)>=0){$5=mbedtls_mpi_shift_r($4+16|0,1);if(!$5){continue}break label$2}break}if(($6|0)==11){$5=-19712;break label$1}$6=$6+1|0;if((mbedtls_mpi_cmp_int($4+16|0,1)|0)<1){continue}break}$2=$1+24|0;$5=mbedtls_mpi_mul_mod($0,$2,$2,$4+16|0);if($5){break label$2}$5=mbedtls_mpi_mul_mod($0,$4,$4+16|0,$4+16|0);if($5){break label$2}$5=mbedtls_mpi_mul_mod($0,$1,$1,$4);if($5){break label$2}$5=mbedtls_mpi_mul_mod($0,$4,$4,$4+16|0);if($5){break label$2}$2=$0;$0=$1+12|0;$5=mbedtls_mpi_mul_mod($2,$0,$0,$4)}mbedtls_mpi_free($4+16|0);mbedtls_mpi_free($4)}global$0=$4+32|0;return $5}function sweeplist($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$3=HEAP32[$1>>2];label$1:{if(!$3){break label$1}$5=HEAP32[$0+16>>2];$6=HEAPU8[$5+20|0]^3;while(1){if(!$2){break label$1}if(HEAPU8[$3+4|0]==8){sweeplist($0,$3+104|0,-3)}$4=HEAPU8[$3+5|0];label$4:{if(($4^3)&$6){HEAP8[$3+5|0]=HEAPU8[$5+20|0]&3|$4&248;$1=$3;break label$4}HEAP32[$1>>2]=HEAP32[$3>>2];if(HEAP32[$5+28>>2]==($3|0)){HEAP32[$5+28>>2]=HEAP32[$3>>2]}$4=HEAPU8[$3+4|0]+ -4|0;if($4>>>0>6){break label$4}label$7:{switch($4-1|0){case 4:luaF_freeproto($0,$3);break label$4;case 1:luaF_freeclosure($0,$3);break label$4;case 5:luaF_freeupval($0,$3);break label$4;case 0:luaH_free($0,$3);break label$4;case 3:luaE_freethread($0,$3);break label$4;default:$4=HEAP32[$0+16>>2];HEAP32[$4+4>>2]=HEAP32[$4+4>>2]+ -1;luaM_realloc_($0,$3,HEAP32[$3+12>>2]+17|0,0);break label$4;case 2:break label$7}}luaM_realloc_($0,$3,HEAP32[$3+16>>2]+32|0,0)}$2=$2+ -1|0;$3=HEAP32[$1>>2];if($3){continue}break}}return $1}function dmZlib__InflateBuffer_28void_20const__2c_20unsigned_20int_2c_20void__2c_20bool_20_28__29_28void__2c_20void_20const__2c_20unsigned_20int_29_29($0,$1,$2){var $3=0,$4=0,$5=0;$3=global$0-16448|0;global$0=$3;HEAP32[$3+16432>>2]=0;HEAP32[$3+16424>>2]=0;HEAP32[$3+16428>>2]=0;HEAP32[$3+16392>>2]=0;HEAP32[$3+16396>>2]=0;label$1:{label$2:{$4=inflateInit2_($3+16392|0);$5=$4+6|0;if($5>>>0<=8){if(($5|0)!=6){break label$1}HEAP32[$3+16392>>2]=$0;HEAP32[$3+16396>>2]=$1;while(1){HEAP32[$3+16408>>2]=16384;HEAP32[$3+16404>>2]=$3;$0=inflate($3+16392|0);if(($0|0)==-2){break label$2}if(!(($0|0)!=2?($0|0)>=0:0)){inflateEnd($3+16392|0);$4=-3;break label$1}if(!FUNCTION_TABLE[1576]($2,$3,16384-HEAP32[$3+16408>>2]|0)){inflateEnd($3+16392|0);$4=-1;break label$1}if(!HEAP32[$3+16408>>2]){continue}break}$4=($0|0)==1?0:-3;inflateEnd($3+16392|0);break label$1}$4=-1e3;break label$1}__assert_fail(171031,171053,65,171074);abort()}global$0=$3+16448|0;return $4}function dmGui__Context___Context_28_29($0){var $1=0;label$1:{if(HEAP8[$0+192|0]&1){break label$1}$1=HEAP32[$0+180>>2];if(!$1){break label$1}dlfree($1)}label$2:{if(HEAP8[$0+164|0]&1){break label$2}$1=HEAP32[$0+152>>2];if(!$1){break label$2}dlfree($1)}label$3:{if(HEAP8[$0+148|0]&1){break label$3}$1=HEAP32[$0+136>>2];if(!$1){break label$3}dlfree($1)}label$4:{if(HEAP8[$0+132|0]&1){break label$4}$1=HEAP32[$0+120>>2];if(!$1){break label$4}dlfree($1)}label$5:{if(HEAP8[$0+116|0]&1){break label$5}$1=HEAP32[$0+104>>2];if(!$1){break label$5}dlfree($1)}label$6:{if(HEAP8[$0+100|0]&1){break label$6}$1=HEAP32[$0+88>>2];if(!$1){break label$6}dlfree($1)}label$7:{if(HEAP8[$0+84|0]&1){break label$7}$1=HEAP32[$0+72>>2];if(!$1){break label$7}dlfree($1)}label$8:{if(HEAP8[$0+68|0]&1){break label$8}$1=HEAP32[$0+56>>2];if(!$1){break label$8}dlfree($1)}label$9:{if(HEAP8[$0+52|0]&1){break label$9}$1=HEAP32[$0+40>>2];if(!$1){break label$9}dlfree($1)}return $0}function __vfprintf_internal($0,$1,$2,$3,$4){var $5=0,$6=0,$7=0;$5=global$0-208|0;global$0=$5;HEAP32[$5+204>>2]=$2;$2=0;memset($5+160|0,0,40);HEAP32[$5+200>>2]=HEAP32[$5+204>>2];label$1:{if((printf_core(0,$1,$5+200|0,$5+80|0,$5+160|0,$3,$4)|0)<0){$1=-1;break label$1}$2=HEAP32[$0+76>>2]>=0?1:$2;$6=HEAP32[$0>>2];if(HEAP8[$0+74|0]<=0){HEAP32[$0>>2]=$6&-33}$7=$6&32;label$5:{if(HEAP32[$0+48>>2]){$1=printf_core($0,$1,$5+200|0,$5+80|0,$5+160|0,$3,$4);break label$5}HEAP32[$0+48>>2]=80;HEAP32[$0+16>>2]=$5+80;HEAP32[$0+28>>2]=$5;HEAP32[$0+20>>2]=$5;$6=HEAP32[$0+44>>2];HEAP32[$0+44>>2]=$5;$3=printf_core($0,$1,$5+200|0,$5+80|0,$5+160|0,$3,$4);$1=$3;if(!$6){break label$5}FUNCTION_TABLE[HEAP32[$0+36>>2]]($0,0,0)|0;HEAP32[$0+48>>2]=0;HEAP32[$0+44>>2]=$6;HEAP32[$0+28>>2]=0;HEAP32[$0+16>>2]=0;$1=HEAP32[$0+20>>2];HEAP32[$0+20>>2]=0;$1=$1?$3:-1}$3=$0;$0=HEAP32[$0>>2];HEAP32[$3>>2]=$0|$7;$1=$0&32?-1:$1;if(!$2){break label$1}}global$0=$5+208|0;return $1}function dmSocket__SetMulticastIf_28int_2c_20dmSocket__Address_29($0,$1){var $2=0,$3=0;$2=global$0-16|0;global$0=$2;label$1:{label$2:{label$3:{label$4:{label$5:{if(dmSocket__IsSocketIPv4_28int_29($0)){HEAP32[$2>>2]=0;if(HEAP32[$1>>2]!=1){break label$4}HEAP32[$2>>2]=HEAP32[$1+16>>2];$1=setsockopt($0,0,32,$2,4);break label$5}if(!dmSocket__IsSocketIPv6_28int_29($0)){break label$2}if(HEAP32[$1>>2]!=2){break label$3}$3=HEAP32[$1+16>>2];HEAP32[$2+8>>2]=HEAP32[$1+12>>2];HEAP32[$2+12>>2]=$3;$3=HEAP32[$1+8>>2];HEAP32[$2>>2]=HEAP32[$1+4>>2];HEAP32[$2+4>>2]=$3;$1=setsockopt($0,0,32,$2,16)}$0=0;if(!$1){break label$1}$0=dmSocket__NativeToResult_28char_20const__2c_20int_2c_20int_29(155407,356,HEAP32[310273]);break label$1}__assert_fail(155374,155407,129,155430);abort()}__assert_fail(155435,155407,135,155468);abort()}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,155327,155805,0);$0=-2}global$0=$2+16|0;return $0}function stb_vorbis_open_memory($0,$1,$2){var $3=0,$4=0;$3=global$0-1552|0;global$0=$3;label$1:{if($0){memset($3+8|0,0,1532);HEAP32[$3+1536>>2]=0;HEAP32[$3+1444>>2]=-1;HEAP32[$3+148>>2]=0;HEAP32[$3+120>>2]=0;HEAP32[$3+124>>2]=0;HEAP32[$3+36>>2]=0;HEAP32[$3+40>>2]=$0;HEAP32[$3+28>>2]=0;HEAP8[$3+56|0]=0;HEAP32[$3+44>>2]=$0;HEAP32[$3+52>>2]=$1;HEAP32[$3+48>>2]=$0+$1;label$3:{if(!start_decoder($3+8|0)){break label$3}HEAP32[$3+16>>2]=HEAP32[$3+16>>2]+1532;$0=HEAP32[$3+104>>2];label$4:{if($0){$1=HEAP32[$3+112>>2];$4=$1+1532|0;if(($4|0)>HEAP32[$3+116>>2]){break label$3}HEAP32[$3+112>>2]=$4;$0=$0+$1|0;break label$4}$0=dlmalloc(1532)}if(!$0){break label$3}$1=memcpy($0,$3+8|0,1532);if(!vorbis_decode_packet($1,$3+1548|0,$3+1540|0,$3+1544|0)){break label$1}vorbis_finish_frame($1,HEAP32[$3+1548>>2],HEAP32[$3+1540>>2],HEAP32[$3+1544>>2]);break label$1}if($2){HEAP32[$2>>2]=HEAP32[$3+124>>2]}vorbis_deinit($3+8|0)}$0=0}global$0=$3+1552|0;return $0}function lua_objlen($0,$1){var $2=0,$3=0;label$1:{if(($1|0)>=1){$1=(HEAP32[$0+12>>2]+($1<<4)|0)+ -16|0;$2=$1>>>0>2]?$1:123176;break label$1}$2=HEAP32[$0+8>>2]+($1<<4)|0;if(($1|0)>=-9999){break label$1}$2=$1+10002|0;if($2>>>0<=2){label$5:{switch($2-1|0){case 1:$2=HEAP32[$0+16>>2]+96|0;break label$1;case 0:$1=HEAP32[HEAP32[HEAP32[HEAP32[$0+20>>2]+4>>2]>>2]+12>>2];HEAP32[$0+96>>2]=5;HEAP32[$0+88>>2]=$1;$2=$0+88|0;break label$1;default:break label$5}}$2=$0+72|0;break label$1}$2=HEAP32[HEAP32[HEAP32[$0+20>>2]+4>>2]>>2];$2=(-10002-$1|0)>HEAPU8[$2+7|0]?123176:($2+(0-$1<<4)|0)+ -160024|0}$1=$2;$2=0;$3=HEAP32[$1+8>>2]+ -3|0;label$8:{if($3>>>0>4){break label$8}label$9:{switch($3-1|0){case 0:return HEAP32[HEAP32[$1>>2]+12>>2];case 3:return HEAP32[HEAP32[$1>>2]+16>>2];case 1:return luaH_getn(HEAP32[$1>>2]);case 2:break label$8;default:break label$9}}if(!luaV_tostring($0,$1)){break label$8}$2=HEAP32[HEAP32[$1>>2]+12>>2]}return $2}function mbedtls_asn1_get_len($0,$1,$2){var $3=0,$4=0,$5=0,$6=0;$3=-96;$4=HEAP32[$0>>2];$5=$1-$4|0;label$1:{if(($5|0)<1){break label$1}$6=HEAPU8[$4|0];label$2:{if(!($6&128)){$3=$4+1|0;HEAP32[$0>>2]=$3;$0=$2;$2=HEAPU8[$4|0];HEAP32[$0>>2]=$2;break label$2}$6=($6&127)+ -1|0;if($6>>>0>3){return-100}label$5:{label$6:{switch($6-1|0){default:if(($5|0)<2){break label$1}$3=$2;$2=HEAPU8[$4+1|0];HEAP32[$3>>2]=$2;$3=$4+2|0;break label$5;case 0:if(($5|0)<3){break label$1}$3=$2;$2=HEAPU8[$4+2|0]|HEAPU8[$4+1|0]<<8;HEAP32[$3>>2]=$2;$3=$4+3|0;break label$5;case 1:if(($5|0)<4){break label$1}$3=$2;$2=HEAPU8[$4+3|0]|(HEAPU8[$4+2|0]<<8|HEAPU8[$4+1|0]<<16);HEAP32[$3>>2]=$2;$3=$4+4|0;break label$5;case 2:break label$6}}if(($5|0)<5){break label$1}$3=$2;$2=HEAPU8[$4+1|0]|HEAPU8[$4+2|0]<<8|(HEAPU8[$4+3|0]<<16|HEAPU8[$4+4|0]<<24);$2=$2<<24|$2<<8&16711680|($2>>>8&65280|$2>>>24);HEAP32[$3>>2]=$2;$3=$4+5|0}HEAP32[$0>>2]=$3}$3=$2>>>0>$1-$3>>>0?-96:0}return $3}function btDiscreteDynamicsWorld__addConstraint_28btTypedConstraint__2c_20bool_29($0,$1,$2){$0=$0|0;$1=$1|0;$2=$2|0;var $3=0,$4=0,$5=0,$6=0,$7=0;$3=HEAP32[$0+184>>2];label$1:{if(($3|0)!=HEAP32[$0+188>>2]){break label$1}$5=$3?$3<<1:1;if(($3|0)>=($5|0)){break label$1}if($5){$6=btAlignedAllocInternal_28unsigned_20long_2c_20int_29($5<<2);$3=HEAP32[$0+184>>2]}if(($3|0)>=1){while(1){$7=$4<<2;HEAP32[$7+$6>>2]=HEAP32[HEAP32[$0+192>>2]+$7>>2];$4=$4+1|0;if(($4|0)!=($3|0)){continue}break}}$4=HEAP32[$0+192>>2];if($4){if(HEAPU8[$0+196|0]){if($4){HEAP32[148256]=HEAP32[148256]+1;FUNCTION_TABLE[HEAP32[136208]](HEAP32[$4+ -4>>2])}$3=HEAP32[$0+184>>2]}HEAP32[$0+192>>2]=0}HEAP32[$0+192>>2]=$6;HEAP32[$0+188>>2]=$5;HEAP8[$0+196|0]=1}HEAP32[HEAP32[$0+192>>2]+($3<<2)>>2]=$1;HEAP32[$0+184>>2]=$3+1;if($2){btRigidBody__addConstraintRef_28btTypedConstraint__29(HEAP32[$1+20>>2],$1);btRigidBody__addConstraintRef_28btTypedConstraint__29(HEAP32[$1+24>>2],$1)}}function dmScript__URL_index_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$3=global$0-16|0;global$0=$3;$1=lua_touserdata($0,1);label$1:{label$2:{label$3:{$2=luaL_checklstring($0,2,0);if(!strcmp(113388,$2)){$2=HEAP32[$1+4>>2];$4=$2;$1=HEAP32[$1>>2];if(!($2|$1)){break label$3}dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,$1,$4);$0=1;break label$1}if(!strcmp(113395,$2)){$2=HEAP32[$1+20>>2];$4=$2;$1=HEAP32[$1+16>>2];if(!($2|$1)){break label$3}dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,$1,$4);$0=1;break label$1}if(strcmp(113400,$2)){break label$2}$2=HEAP32[$1+28>>2];$4=$2;$1=HEAP32[$1+24>>2];if(!($2|$1)){break label$3}dmScript__PushHash_28lua_State__2c_20unsigned_20long_20long_29($0,$1,$4);$0=1;break label$1}$1=HEAP32[$0+8>>2];HEAP32[$1+8>>2]=0;HEAP32[$0+8>>2]=$1+16;$0=1;break label$1}HEAP32[$3+4>>2]=112770;HEAP32[$3>>2]=112766;$0=luaL_error($0,113409,$3)}global$0=$3+16|0;return $0|0}function dmSSDP__HeaderCallback_28void__2c_20char_20const__2c_20char_20const__29($0,$1,$2){$0=$0|0;$1=$1|0;$2=$2|0;var $3=0,$4=0,$5=0;$3=global$0-80|0;global$0=$3;HEAP8[$3+79|0]=0;while(1){label$2:{$5=HEAP8[$1+$4|0];$5=$5+ -97>>>0<26?$5&95:$5;HEAP8[($3+16|0)+$4|0]=$5;if(!($5&255)){break label$2}$4=$4+1|0;if(($4|0)!=64){continue}}break}label$3:{if(!memcmp($3+16|0,159165,14)){$1=strstr($2,159179);if(!$1){break label$3}HEAP32[$0+4>>2]=atoi($1+8|0);break label$3}if(!memcmp($3+16|0,157966,3)){HEAP32[$0+48>>2]=dmHashString64($2);HEAP32[$0+52>>2]=i64toi32_i32$HIGH_BITS;break label$3}if(HEAP32[$3+16>>2]!=5461070){break label$3}HEAP32[$0+56>>2]=dmHashString64($2);HEAP32[$0+60>>2]=i64toi32_i32$HIGH_BITS}$1=dmHashString64($3+16|0);$4=i64toi32_i32$HIGH_BITS;HEAP32[$3+12>>2]=__strdup($2);dmHashTable_unsigned_20long_20long_2c_20char_20const____Put_28unsigned_20long_20long_2c_20char_20const__20const__29($0+12|0,$1,$4,$3+12|0);global$0=$3+80|0}function dmConfigFile__GetInt_28dmConfigFile__Config__2c_20char_20const__2c_20int_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$4=global$0-16|0;global$0=$4;$6=dmHashString64($1);$7=i64toi32_i32$HIGH_BITS;$1=HEAP32[$0+4>>2];$3=HEAP32[$0>>2];label$1:{label$2:{if(($1|0)==($3|0)){break label$2}$1=$1-$3>>4;$8=$1>>>0>1?$1:1;$1=0;while(1){label$4:{$5=$3+($1<<4)|0;if(($6|0)==HEAP32[$5>>2]&HEAP32[$5+4>>2]==($7|0)){$5=HEAP32[$0+20>>2];$0=HEAP32[$0+16>>2];$1=HEAP32[($3+($1<<4)|0)+8>>2];if($5-$0>>>0>$1>>>0){break label$4}__assert_fail(135894,135766,430,135905);abort()}$1=$1+1|0;if(($8|0)!=($1|0)){continue}break label$2}break}if(!$0){break label$2}$0=$0+$1|0;$3=strlen($0);HEAP32[$4+12>>2]=0;$1=strtol($0,$4+12|0);$5=$0+$3|0;$3=HEAP32[$4+12>>2];if(($0|0)!=($3|0)?($5|0)==($3|0):0){break label$1}HEAP32[$4>>2]=$0;dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(3,135436,135593,$4)}$1=$2}global$0=$4+16|0;return $1}function lua_insert($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0;label$1:{if(($1|0)>=1){$1=(HEAP32[$0+12>>2]+($1<<4)|0)+ -16|0;$2=$1>>>0>2]?$1:123176;break label$1}$2=HEAP32[$0+8>>2]+($1<<4)|0;if(($1|0)>=-9999){break label$1}$2=$1+10002|0;if($2>>>0<=2){label$5:{switch($2-1|0){case 1:$2=HEAP32[$0+16>>2]+96|0;break label$1;case 0:$1=HEAP32[HEAP32[HEAP32[HEAP32[$0+20>>2]+4>>2]>>2]+12>>2];HEAP32[$0+96>>2]=5;HEAP32[$0+88>>2]=$1;$2=$0+88|0;break label$1;default:break label$5}}$2=$0+72|0;break label$1}$2=HEAP32[HEAP32[HEAP32[$0+20>>2]+4>>2]>>2];$2=(-10002-$1|0)>HEAPU8[$2+7|0]?123176:($2+(0-$1<<4)|0)+ -160024|0}$4=$2;$5=$2;$1=HEAP32[$0+8>>2];if($1>>>0>$2>>>0){while(1){$3=$1+ -16|0;$6=HEAP32[$3+4>>2];HEAP32[$1>>2]=HEAP32[$3>>2];HEAP32[$1+4>>2]=$6;HEAP32[$1+8>>2]=HEAP32[$3+8>>2];$1=$3;if($1>>>0>$2>>>0){continue}break}$1=HEAP32[$0+8>>2]}$0=HEAP32[$1+4>>2];HEAP32[$5>>2]=HEAP32[$1>>2];HEAP32[$4+4>>2]=$0;HEAP32[$2+8>>2]=HEAP32[$1+8>>2]}function dmGui__GetNodeFlipbookAnimUV_28dmGui__Scene__2c_20unsigned_20int_29($0,$1){var $2=0,$3=0,$4=0,$5=Math_fround(0);$2=HEAP32[$0+36>>2];$0=HEAP32[$0+32>>2];$3=$1&65535;label$1:{label$2:{if(($2-$0|0)/576>>>0>$3>>>0){if(HEAPU16[($0+Math_imul($3,576)|0)+552>>1]!=($1>>>16|0)){break label$2}$2=$0+Math_imul($3,576)|0;if(HEAPU16[$2+554>>1]!=($1&65535)){break label$1}$1=0;label$4:{if(HEAP32[$2+436>>2]!=2){break label$4}$0=$0+Math_imul($3,576)|0;$4=HEAP32[$0+452>>2];if(!$4){break label$4}$2=HEAP32[$0+440>>2];$3=$2&8191;$2=($2>>>13&8191)-$3|0;$5=Math_fround(HEAPF32[$0+472>>2]*Math_fround($2|0));label$5:{if(Math_fround(Math_abs($5))($0|0)?$0:$2+ -1|0)+$3|0;if(($0|0)<0){break label$4}$1=$4+($0<<5)|0}return $1}__assert_fail(201597,201431,430,201608);abort()}__assert_fail(199196,199220,200,199235);abort()}__assert_fail(199243,199220,201,199235);abort()}function dmGameSystem__EmitterStateChangedCallback_28unsigned_20int_2c_20unsigned_20long_20long_2c_20dmParticle__EmitterState_2c_20void__29($0,$1,$2,$3,$4){$0=$0|0;$1=$1|0;$2=$2|0;$3=$3|0;$4=$4|0;var $5=0,$6=0,$7=0;$5=global$0-32|0;global$0=$5;$6=HEAP32[$4+8>>2];label$1:{if($6){$7=HEAP32[$4>>2];$4=HEAP32[$4+4>>2];if(!dmScript__IsCallbackValid_28dmScript__LuaCallbackInfo__29($6)){break label$1}HEAP32[$5+24>>2]=$3;HEAP32[$5+16>>2]=$1;HEAP32[$5+20>>2]=$2;HEAP32[$5+8>>2]=$7;HEAP32[$5+12>>2]=$4;if(!dmScript__InvokeCallback_28dmScript__LuaCallbackInfo__2c_20void_20_28__29_28lua_State__2c_20void__29_2c_20void__29($6,544,$5+8|0)){dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,66475,66483,0)}if($0|$3){break label$1}dmScript__DestroyCallback_28dmScript__LuaCallbackInfo__29($6);break label$1}dmLogInternal_28dmLogSeverity_2c_20char_20const__2c_20char_20const__2c_20____29(4,66475,66556,0)}global$0=$5+32|0}function EmitRescaledYUV($0,$1){$0=$0|0;$1=$1|0;var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0;$3=HEAP32[$0+16>>2];$2=HEAP32[HEAP32[$1>>2]>>2];label$1:{if($2+ -7>>>0>3?!(1<<$2&4154?$2>>>0<=12:0):0){break label$1}$2=HEAP32[$0+104>>2];if(!$2){break label$1}WebPMultRows(HEAP32[$0+20>>2],HEAP32[$0+32>>2],$2,HEAP32[$0>>2],HEAP32[$0+12>>2],$3,0)}if(($3|0)<1){return 0}$4=$1+24|0;$5=$3+1>>1;$6=HEAP32[$0+32>>2];$2=HEAP32[$0+20>>2];while(1){$7=WebPRescalerImport($4,$3,$2,$6);$2=Math_imul($7,$6)+$2|0;$8=WebPRescalerExport($4)+$8|0;$3=$3-$7|0;if(($3|0)>0){continue}break}$4=$1+108|0;$3=HEAP32[$0+24>>2];$6=HEAP32[$0+36>>2];$2=$5;while(1){$7=WebPRescalerImport($4,$2,$3,$6);WebPRescalerExport($4);$3=Math_imul($6,$7)+$3|0;$2=$2-$7|0;if(($2|0)>0){continue}break}$1=$1+192|0;$3=HEAP32[$0+28>>2];$0=HEAP32[$0+36>>2];while(1){$2=WebPRescalerImport($1,$5,$3,$0);WebPRescalerExport($1);$3=Math_imul($0,$2)+$3|0;$5=$5-$2|0;if(($5|0)>0){continue}break}return $8|0}function __fdopen($0,$1){var $2=0,$3=0;$3=global$0-32|0;global$0=$3;label$1:{label$2:{label$3:{if(!strchr(216216,HEAP8[$1|0])){HEAP32[310273]=28;break label$3}$2=dlmalloc(1176);if($2){break label$2}}$2=0;break label$1}memset($2,0,144);if(!strchr($1,43)){HEAP32[$2>>2]=HEAPU8[$1|0]==114?8:4}label$6:{if(HEAPU8[$1|0]!=97){$1=HEAP32[$2>>2];break label$6}$1=__syscall221($0|0,3,0)|0;if(!($1&1024)){HEAP32[$3+16>>2]=$1|1024;__syscall221($0|0,4,$3+16|0)|0}$1=HEAP32[$2>>2]|128;HEAP32[$2>>2]=$1}HEAP8[$2+75|0]=255;HEAP32[$2+48>>2]=1024;HEAP32[$2+60>>2]=$0;HEAP32[$2+44>>2]=$2+152;label$9:{if($1&8){break label$9}HEAP32[$3>>2]=$3+24;if(__syscall54($0|0,21523,$3|0)){break label$9}HEAP8[$2+75|0]=10}HEAP32[$2+40>>2]=2378;HEAP32[$2+36>>2]=2380;HEAP32[$2+32>>2]=2377;HEAP32[$2+12>>2]=2376;if(!HEAP32[310305]){HEAP32[$2+76>>2]=-1}HEAP32[$2+56>>2]=HEAP32[310262];$0=HEAP32[310262];if($0){HEAP32[$0+52>>2]=$2}HEAP32[310262]=$2}global$0=$3+32|0;return $2}function __extenddftf2($0,$1){var $2=0,$3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0,$12=0;$6=global$0-16|0;global$0=$6;wasm2js_scratch_store_f64(+$1);$3=wasm2js_scratch_load_i32(1)|0;$7=wasm2js_scratch_load_i32(0)|0;$9=$3&-2147483648;$4=$3&2147483647;$2=$4;$4=$2+ -1048576|0;$5=$7;$10=$5;if($5>>>0<0){$4=$4+1|0}label$1:{if(($4|0)==2145386495&$10>>>0<=4294967295|$4>>>0<2145386495){$8=$5<<28;$3=($2&15)<<28|$5>>>4;$2=($2>>>4|0)+1006632960|0;$2=$3>>>0<0?$2+1|0:$2;break label$1}if(($2|0)==2146435072&$5>>>0>=0|$2>>>0>2146435072){$8=$7<<28;$4=$3>>>4|0;$3=($3&15)<<28|$7>>>4;$2=$4|2147418112;break label$1}if(!($2|$5)){$3=0;$2=0;break label$1}$4=$2;$2=($2|0)==1&$5>>>0<0|$2>>>0<1?Math_clz32($7)+32|0:Math_clz32($2);__ashlti3($6,$5,$4,0,0,$2+49|0);$11=HEAP32[$6>>2];$8=HEAP32[$6+4>>2];$3=HEAP32[$6+8>>2];$2=HEAP32[$6+12>>2]^65536|15372-$2<<16}HEAP32[$0>>2]=$11;HEAP32[$0+4>>2]=$8;HEAP32[$0+8>>2]=$3|$12;HEAP32[$0+12>>2]=$2|$9;global$0=$6+16|0}function dmGameSystem__CollectionFactoryComp_GetStatus_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$1=global$0+ -64|0;global$0=$1;$4=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($1+48|0,$0,1);$2=HEAP32[HEAP32[dmGameSystem__CheckGoInstance_28lua_State__29($0)+80>>2]+8>>2];HEAP32[$1+32>>2]=0;HEAP32[$1+36>>2]=0;HEAP32[$1+24>>2]=0;HEAP32[$1+28>>2]=0;HEAP32[$1+16>>2]=0;HEAP32[$1+20>>2]=0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;dmGameObject__GetComponentUserDataFromLua_28lua_State__2c_20int_2c_20dmGameObject__CollectionHandle__2c_20char_20const__2c_20unsigned_20long__2c_20dmMessage__URL__2c_20void___29($0,1,$2,62745,$1+44|0,$1+8|0,0);$2=HEAP32[$1+44>>2];if(HEAP8[$2+20|0]&1){$2=1}else{$2=HEAP32[$2>>2];$2=(HEAP32[$2+8>>2]!=HEAP32[$2+4>>2])<<1}$3=HEAP32[$0+8>>2];HEAP32[$3+8>>2]=3;HEAPF64[$3>>3]=$2|0;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16;dmScript__LuaStackCheck___LuaStackCheck_28_29($4);global$0=$1- -64|0;return 1}function dmGui__LuaGetFlipbookPlaybackRate_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=Math_fround(0);$1=global$0-32|0;global$0=$1;$3=1;$4=dmScript__LuaStackCheck__LuaStackCheck_28lua_State__2c_20int_29($1+16|0,$0,1);dmScript__GetInstance_28lua_State__29($0);$2=dmScript__CheckUserType_28lua_State__2c_20int_2c_20unsigned_20int_2c_20char_20const__29($0,-1,HEAP32[283639],205559);lua_settop($0,-2);dmGui__LuaCheckNode_28lua_State__2c_20int_2c_20unsigned_20int__29($0,1,$1+12|0);label$1:{if(dmGui__GetNodeIsBone_28dmGui__Scene__2c_20unsigned_20int_29($2,HEAP32[$1+12>>2])){$3=dmScript__LuaStackCheck__Error_28char_20const__2c_20____29($4,209075,0);break label$1}$5=dmGui__GetNodeFlipbookPlaybackRate_28dmGui__Scene__2c_20unsigned_20int_29($2,HEAP32[$1+12>>2]);$2=HEAP32[$0+8>>2];HEAP32[$2+8>>2]=3;HEAPF64[$2>>3]=$5;HEAP32[$0+8>>2]=HEAP32[$0+8>>2]+16}dmScript__LuaStackCheck___LuaStackCheck_28_29($4);global$0=$1+32|0;return $3|0}function dmGameSystem__ResRenderScriptCreate_28dmResource__ResourceCreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0;$1=global$0-16|0;global$0=$1;HEAP32[$1+12>>2]=0;$3=-13;label$1:{if(dmDDF__LoadMessage_28void_20const__2c_20unsigned_20int_2c_20dmDDF__Descriptor_20const__2c_20void___29(HEAP32[$0+12>>2],HEAP32[$0+16>>2],HEAP32[131334],$1+12|0)){break label$1}$2=HEAP32[$0+4>>2];if(!dmGameObject__RegisterSubModules_28dmResource__SResourceFactory__2c_20dmScript__Context__2c_20dmLuaDDF__LuaModule__29(HEAP32[$0>>2],HEAP32[$2+3684>>2],HEAP32[$1+12>>2])){dmDDF__FreeMessage_28void__29(HEAP32[$1+12>>2]);break label$1}$2=dmRender__NewRenderScript_28dmRender__RenderContext__2c_20dmLuaDDF__LuaSource__29($2,HEAP32[$1+12>>2]);$4=HEAP32[$1+12>>2];HEAP32[HEAP32[$0+24>>2]+16>>2]=HEAP32[$0+16>>2]-HEAP32[$4+4>>2];dmDDF__FreeMessage_28void__29($4);if(!$2){break label$1}HEAP32[HEAP32[$0+24>>2]+8>>2]=$2;$3=0}global$0=$1+16|0;return $3|0}function dmGameSystem__ResDisplayProfilesRecreate_28dmResource__ResourceRecreateParams_20const__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=0,$5=0,$6=0;$2=global$0-32|0;global$0=$2;$4=HEAP32[HEAP32[$0+32>>2]+8>>2];$5=dmRender__NewDisplayProfiles_28_29();$6=HEAP32[$0+16>>2];$1=dmDDF__LoadMessage_28void_20const__2c_20unsigned_20int_2c_20dmDDF__Descriptor_20const__2c_20void___29(HEAP32[$0+20>>2],HEAP32[$0+24>>2],HEAP32[137290],$2+28|0);$3=-13;label$1:{if($1){break label$1}$1=$2+8|0;HEAP32[$1+8>>2]=0;HEAP32[$1+12>>2]=0;HEAP32[$1>>2]=0;HEAP32[$1>>2]=HEAP32[$2+28>>2];HEAP32[$1+8>>2]=dmHashString64($6);HEAP32[$1+12>>2]=i64toi32_i32$HIGH_BITS;dmRender__SetDisplayProfiles_28dmRender__DisplayProfiles__2c_20dmRender__DisplayProfilesParams__29($5,$1);dmDDF__FreeMessage_28void__29(HEAP32[$2+28>>2]);if($4){dmRender__DeleteDisplayProfiles_28dmRender__DisplayProfiles__29($4)}HEAP32[HEAP32[$0+32>>2]+8>>2]=$5;$3=0}$1=$3;global$0=$2+32|0;return $1|0}function dmGameObject__Script_SetScale_28lua_State__29($0){$0=$0|0;var $1=0,$2=0,$3=0,$4=Math_fround(0),$5=0,$6=0,$7=0,$8=0;$2=global$0-16|0;global$0=$2;$3=dmGameObject__ResolveInstance_28lua_State__2c_20int_29($0,2);$1=dmScript__ToVector3_28lua_State__2c_20int_29($0,1);label$1:{label$2:{if($1){$6=HEAP32[$1>>2];label$4:{label$5:{if(HEAPF32[$1>>2]<=Math_fround(0)){break label$5}$7=HEAP32[$1+4>>2];if(HEAPF32[$1+4>>2]<=Math_fround(0)){break label$5}$8=HEAP32[$1+8>>2];if(!(HEAPF32[$1+8>>2]<=Math_fround(0))){break label$4}}$0=luaL_error($0,18957,0);break label$1}HEAP32[$2+8>>2]=$8;HEAP32[$2+4>>2]=$7;HEAP32[$2>>2]=$6;$0=HEAP32[$2+4>>2];$1=HEAP32[$2>>2];HEAP32[$3+40>>2]=HEAP32[$2+8>>2];HEAP32[$3+32>>2]=$1;HEAP32[$3+36>>2]=$0;break label$2}$5=luaL_checknumber($0,1);if(!!($5<=0)){$0=luaL_error($0,19039,0);break label$1}$4=Math_fround($5);HEAPF32[$3+32>>2]=$4;HEAPF32[$3+40>>2]=$4;HEAPF32[$3+36>>2]=$4}$0=0}global$0=$2+16|0;return $0|0}function void_20btAlignedObjectArray_btElement___quickSortInternal_btUnionFindElementSortPredicate__28btUnionFindElementSortPredicate_2c_20int_2c_20int_29($0,$1,$2){var $3=0,$4=0,$5=0,$6=0,$7=0,$8=0,$9=0,$10=0,$11=0;while(1){$9=$1;$5=HEAP32[$0+12>>2];$10=HEAP32[$5+(($1+$2|0)/2<<3)>>2];$6=$1;$3=$2;while(1){$1=$6;$6=$1+1|0;$4=($1<<3)+$5|0;if(HEAP32[$4>>2]<($10|0)){continue}$7=$3;while(1){$3=$7;$7=$3+ -1|0;$11=$3<<3;$8=$11+$5|0;if(HEAP32[$8>>2]>($10|0)){continue}break}if(($1|0)<=($3|0)){$1=HEAP32[$4>>2];$3=HEAP32[$4+4>>2];$5=HEAP32[$8+4>>2];HEAP32[$4>>2]=HEAP32[$8>>2];HEAP32[$4+4>>2]=$5;$4=HEAP32[$0+12>>2]+$11|0;HEAP32[$4>>2]=$1;HEAP32[$4+4>>2]=$3;$3=$7;$1=$6}if(($1|0)<=($3|0)){$5=HEAP32[$0+12>>2];$6=$1;continue}break}if(($3|0)>($9|0)){void_20btAlignedObjectArray_btElement___quickSortInternal_btUnionFindElementSortPredicate__28btUnionFindElementSortPredicate_2c_20int_2c_20int_29($0,$9,$3)}if(($1|0)<($2|0)){continue}break}}