Lines Matching refs:Ev
1 bytes=sock.recv_queue[0].data.length}SAFE_HEAP_STORE(arg|0,bytes|0,4,0)|0;return 0;default:return ERRNO_CODES.EINVAL}}),close:(function(sock){if(sock.server){try{sock.server.close()}catch(e){}sock.server=null}var peers=Object.keys(sock.peers);for(var i=0;i<peers.length;i++){var peer=sock.peers[peers[i]];try{peer.socket.close()}catch(e){}SOCKFS.websocket_sock_ops.removePeer(sock,peer)}return 0}),bind:(function(sock,addr,port){if(typeof sock.saddr!=="undefined"||typeof sock.sport!=="undefined"){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}sock.saddr=addr;sock.sport=port||_mkport();if(sock.type===2){if(sock.server){sock.server.close();sock.server=null}try{sock.sock_ops.listen(sock,0)}catch(e){if(!(e instanceof FS.ErrnoError))throw e;if(e.errno!==ERRNO_CODES.EOPNOTSUPP)throw e}}}),connect:(function(sock,addr,port){if(sock.server){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}if(typeof sock.daddr!=="undefined"&&typeof sock.dport!=="undefined"){var dest=SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport);if(dest){if(dest.socket.readyState===dest.socket.CONNECTING){throw new FS.ErrnoError(ERRNO_CODES.EALREADY)}else{throw new FS.ErrnoError(ERRNO_CODES.EISCONN)}}}var peer=SOCKFS.websocket_sock_ops.createPeer(sock,addr,port);sock.daddr=peer.addr;sock.dport=peer.port;throw new FS.ErrnoError(ERRNO_CODES.EINPROGRESS)}),listen:(function(sock,backlog){if(!ENVIRONMENT_IS_NODE){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}if(sock.server){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var WebSocketServer=require("ws").Server;var host=sock.saddr;sock.server=new WebSocketServer({host:host,port:sock.sport});Module["websocket"].emit("listen",sock.stream.fd);sock.server.on("connection",(function(ws){if(sock.type===1){var newsock=SOCKFS.createSocket(sock.family,sock.type,sock.protocol);var peer=SOCKFS.websocket_sock_ops.createPeer(newsock,ws);newsock.daddr=peer.addr;newsock.dport=peer.port;sock.pending.push(newsock);Module["websocket"].emit("connection",newsock.stream.fd)}else{SOCKFS.websocket_sock_ops.createPeer(sock,ws);Module["websocket"].emit("connection",sock.stream.fd)}}));sock.server.on("closed",(function(){Module["websocket"].emit("close",sock.stream.fd);sock.server=null}));sock.server.on("error",(function(error){sock.error=ERRNO_CODES.EHOSTUNREACH;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"EHOSTUNREACH: Host is unreachable"])}))}),accept:(function(listensock){if(!listensock.server){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var newsock=listensock.pending.shift();newsock.stream.flags=listensock.stream.flags;return newsock}),getname:(function(sock,peer){var addr,port;if(peer){if(sock.daddr===undefined||sock.dport===undefined){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}addr=sock.daddr;port=sock.dport}else{addr=sock.saddr||0;port=sock.sport||0}return{addr:addr,port:port}}),sendmsg:(function(sock,buffer,offset,length,addr,port){if(sock.type===2){if(addr===undefined||port===undefined){addr=sock.daddr;port=sock.dport}if(addr===undefined||port===undefined){throw new FS.ErrnoError(ERRNO_CODES.EDESTADDRREQ)}}else{addr=sock.daddr;port=sock.dport}var dest=SOCKFS.websocket_sock_ops.getPeer(sock,addr,port);if(sock.type===1){if(!dest||dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}else if(dest.socket.readyState===dest.socket.CONNECTING){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}var data;if(buffer instanceof Array||buffer instanceof ArrayBuffer){data=buffer.slice(offset,offset+length)}else{data=buffer.buffer.slice(buffer.byteOffset+offset,buffer.byteOffset+offset+length)}if(sock.type===2){if(!dest||dest.socket.readyState!==dest.socket.OPEN){if(!dest||dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){dest=SOCKFS.websocket_sock_ops.createPeer(sock,addr,port)}dest.dgram_send_queue.push(data);return length}}try{dest.socket.send(data);return length}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}}),recvmsg:(function(sock,length){if(sock.type===1&&sock.server){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}var queued=sock.recv_queue.shift();if(!queued){if(sock.type===1){var dest=SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport);if(!dest){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}else if(dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){return null}else{throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}else{throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}var queuedLength=queued.data.byteLength||queued.data.length;var queuedOffset=queued.data.byteOffset||0;var queuedBuffer=queued.data.buffer||queued.data;var bytesRead=Math.min(length,queuedLength);var res={buffer:new Uint8Array(queuedBuffer,queuedOffset,bytesRead),addr:queued.addr,port:queued.port};if(sock.type===1&&bytesRead<queuedLength){var bytesRemaining=queuedLength-bytesRead;queued.data=new Uint8Array(queuedBuffer,queuedOffset+bytesRead,bytesRemaining);sock.recv_queue.unshift(queued)}return res})}};function _send(fd,buf,len,flags){var sock=SOCKFS.getSocket(fd);if(!sock){___setErrNo(ERRNO_CODES.EBADF);return-1}return _write(fd,buf,len)}function _pwrite(fildes,buf,nbyte,offset){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.write(stream,slab,buf,nbyte,offset)}catch(e){FS.handleFSError(e);return-1}}function _write(fildes,buf,nbyte){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.write(stream,slab,buf,nbyte)}catch(e){FS.handleFSError(e);return-1}}var _SItoD=true;function _chmod(path,mode,dontResolveLastLink){path=typeof path!=="string"?Pointer_stringify(path):path;try{FS.chmod(path,mode);return 0}catch(e){FS.handleFSError(e);return-1}}function _fchmod(fildes,mode){try{FS.fchmod(fildes,mode);return 0}catch(e){FS.handleFSError(e);return-1}}function _emscripten_set_main_loop_timing(mode,value){Browser.mainLoop.timingMode=mode;Browser.mainLoop.timingValue=value;if(!Browser.mainLoop.func){console.error("emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.");return 1}if(mode==0){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler(){setTimeout(Browser.mainLoop.runner,value)};Browser.mainLoop.method="timeout"}else if(mode==1){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler(){Browser.requestAnimationFrame(Browser.mainLoop.runner)};Browser.mainLoop.method="rAF"}return 0}function _emscripten_set_main_loop(func,fps,simulateInfiniteLoop,arg,noSetTiming){Module["noExitRuntime"]=true;assert(!Browser.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.");Browser.mainLoop.func=func;Browser.mainLoop.arg=arg;var thisMainLoopId=Browser.mainLoop.currentlyRunningMainloop;Browser.mainLoop.runner=function Browser_mainLoop_runner(){if(ABORT)return;if(Browser.mainLoop.queue.length>0){var start=Date.now();var blocker=Browser.mainLoop.queue.shift();blocker.func(blocker.arg);if(Browser.mainLoop.remainingBlockers){var remaining=Browser.mainLoop.remainingBlockers;var next=remaining%1==0?remaining-1:Math.floor(remaining);if(blocker.counted){Browser.mainLoop.remainingBlockers=next}else{next=next+.5;Browser.mainLoop.remainingBlockers=(8*remaining+next)/9}}console.log('main loop blocker "'+blocker.name+'" took '+(Date.now()-start)+" ms");Browser.mainLoop.updateStatus();setTimeout(Browser.mainLoop.runner,0);return}if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop)return;Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0;if(Browser.mainLoop.timingMode==1&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0){Browser.mainLoop.scheduler();return}if(Browser.mainLoop.method==="timeout"&&Module.ctx){Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!");Browser.mainLoop.method=""}Browser.mainLoop.runIter((function(){if(typeof arg!=="undefined"){Runtime.dynCall("vi",func,[arg])}else{Runtime.dynCall("v",func)}}));if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop)return;if(typeof SDL==="object"&&SDL.audio&&SDL.audio.queueNewAudioData)SDL.audio.queueNewAudioData();Browser.mainLoop.scheduler()};if(!noSetTiming){if(fps&&fps>0)_emscripten_set_main_loop_timing(0,1e3/fps);else _emscripten_set_main_loop_timing(1,1);Browser.mainLoop.scheduler()}if(simulateInfiniteLoop){throw"SimulateInfiniteLoop"}}var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:(function(){Browser.mainLoop.scheduler=null;Browser.mainLoop.currentlyRunningMainloop++}),resume:(function(){Browser.mainLoop.currentlyRunningMainloop++;var timingMode=Browser.mainLoop.timingMode;var timingValue=Browser.mainLoop.timingValue;var func=Browser.mainLoop.func;Browser.mainLoop.func=null;_emscripten_set_main_loop(func,0,false,Browser.mainLoop.arg,true);_emscripten_set_main_loop_timing(timingMode,timingValue);Browser.mainLoop.scheduler()}),updateStatus:(function(){if(Module["setStatus"]){var message=Module["statusMessage"]||"Please wait...";var remaining=Browser.mainLoop.remainingBlockers;var expected=Browser.mainLoop.expectedBlockers;if(remaining){if(remaining<expected){Module["setStatus"](message+" ("+(expected-remaining)+"/"+expected+")")}else{Module["setStatus"](message)}}else{Module["setStatus"]("")}}}),runIter:(function(func){if(ABORT)return;if(Module["preMainLoop"]){var preRet=Module["preMainLoop"]();if(preRet===false){return}}try{func()}catch(e){if(e instanceof ExitStatus){return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}if(Module["postMainLoop"])Module["postMainLoop"]()})},isFullScreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:(function(){if(!Module["preloadPlugins"])Module["preloadPlugins"]=[];if(Browser.initted)return;Browser.initted=true;try{new Blob;Browser.hasBlobConstructor=true}catch(e){Browser.hasBlobConstructor=false;console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Browser.BlobBuilder=typeof MozBlobBuilder!="undefined"?MozBlobBuilder:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:!Browser.hasBlobConstructor?console.log("warning: no BlobBuilder"):null;Browser.URLObject=typeof window!="undefined"?window.URL?window.URL:window.webkitURL:undefined;if(!Module.noImageDecoding&&typeof Browser.URLObject==="undefined"){console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");Module.noImageDecoding=true}var imagePlugin={};imagePlugin["canHandle"]=function imagePlugin_canHandle(name){return!Module.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(name)};imagePlugin["handle"]=function imagePlugin_handle(byteArray,name,onload,onerror){var b=null;if(Browser.hasBlobConstructor){try{b=new Blob([byteArray],{type:Browser.getMimetype(name)});if(b.size!==byteArray.length){b=new Blob([(new Uint8Array(byteArray)).buffer],{type:Browser.getMimetype(name)})}}catch(e){Runtime.warnOnce("Blob constructor present but fails: "+e+"; falling back to blob builder")}}if(!b){var bb=new Browser.BlobBuilder;bb.append((new Uint8Array(byteArray)).buffer);b=bb.getBlob()}var url=Browser.URLObject.createObjectURL(b);assert(typeof url=="string","createObjectURL must return a url as a string");var img=new Image;img.onload=function img_onload(){assert(img.complete,"Image "+name+" could not be decoded");var canvas=document.createElement("canvas");canvas.width=img.width;canvas.height=img.height;var ctx=canvas.getContext("2d");ctx.drawImage(img,0,0);Module["preloadedImages"][name]=canvas;Browser.URLObject.revokeObjectURL(url);if(onload)onload(byteArray)};img.onerror=function img_onerror(event){console.log("Image "+url+" could not be decoded");if(onerror)onerror()};img.src=url};Module["preloadPlugins"].push(imagePlugin);var audioPlugin={};audioPlugin["canHandle"]=function audioPlugin_canHandle(name){return!Module.noAudioDecoding&&name.substr(-4)in{".ogg":1,".wav":1,".mp3":1}};audioPlugin["handle"]=function audioPlugin_handle(byteArray,name,onload,onerror){var done=false;function finish(audio){if(done)return;done=true;Module["preloadedAudios"][name]=audio;if(onload)onload(byteArray)}function fail(){if(done)return;done=true;Module["preloadedAudios"][name]=new Audio;if(onerror)onerror()}if(Browser.hasBlobConstructor){try{var b=new Blob([byteArray],{type:Browser.getMimetype(name)})}catch(e){return fail()}var url=Browser.URLObject.createObjectURL(b);assert(typeof url=="string","createObjectURL must return a url as a string");var audio=new Audio;audio.addEventListener("canplaythrough",(function(){finish(audio)}),false);audio.onerror=function audio_onerror(event){if(done)return;console.log("warning: browser could not fully decode audio "+name+", trying slower base64 approach");function encode64(data){var BASE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var PAD="=";var ret="";var leftchar=0;var leftbits=0;for(var i=0;i<data.length;i++){leftchar=leftchar<<8|data[i];leftbits+=8;while(leftbits>=6){var curr=leftchar>>leftbits-6&63;leftbits-=6;ret+=BASE[curr]}}if(leftbits==2){ret+=BASE[(leftchar&3)<<4];ret+=PAD+PAD}else if(leftbits==4){ret+=BASE[(leftchar&15)<<2];ret+=PAD}return ret}audio.src="data:audio/x-"+name.substr(-3)+";base64,"+encode64(byteArray);finish(audio)};audio.src=url;Browser.safeSetTimeout((function(){finish(audio)}),1e4)}else{return fail()}};Module["preloadPlugins"].push(audioPlugin);var canvas=Module["canvas"];function pointerLockChange(){Browser.pointerLock=document["pointerLockElement"]===canvas||document["mozPointerLockElement"]===canvas||document["webkitPointerLockElement"]===canvas||document["msPointerLockElement"]===canvas}if(canvas){canvas.requestPointerLock=canvas["requestPointerLock"]||canvas["mozRequestPointerLock"]||canvas["webkitRequestPointerLock"]||canvas["msRequestPointerLock"]||(function(){});canvas.exitPointerLock=document["exitPointerLock"]||document["mozExitPointerLock"]||document["webkitExitPointerLock"]||document["msExitPointerLock"]||(function(){});canvas.exitPointerLock=canvas.exitPointerLock.bind(document);document.addEventListener("pointerlockchange",pointerLockChange,false);document.addEventListener("mozpointerlockchange",pointerLockChange,false);document.addEventListener("webkitpointerlockchange",pointerLockChange,false);document.addEventListener("mspointerlockchange",pointerLockChange,false);if(Module["elementPointerLock"]){canvas.addEventListener("click",(function(ev){if(!Browser.pointerLock&&canvas.requestPointerLock){canvas.requestPointerLock();ev
6 ev(a,m,r,da(K|0,4,0,0)|0|0,u,t,c,-1,g);d:do if(!B){s=da(C|0,4,0,0)|0|0;s=da(((s|0)==0?a:s)+528|0,4,0,0)|0|0;do if(s){s=da(s|0,4,0,0)|0|0;if((s|0)==(da(u+28|0,4,0,0)|0|0)?(da(u+25>>0|0,1,0,0)|0|0)==7:0)break d;if((s|0)!=(da(u+32|0,4,0,0)|0|0))break;if((da(u+26>>0|0,1,0,0)|0|0)==7)break d}while(0);ev
9 ;ea(A+4|0,0|0,4,0);ea(A+8|0,0|0,4,0);ea(A+12|0,0|0,4,0);ea(D|0,+(5.e+98),8,1);d=E;ea(d|0,25|0,4,0);ea(d+4|0,0|0,4,0);d=da(aa|0,4,0,0)|0|0;q=F;while(1){q=da(q|0,4,0,0)|0|0;if((da(q|0,4,0,0)|0|0)==(d|0))break;else q=q+24|0}t=da(q+8|0,4,0,0)|0|0;q=qc[(fa(da((da(t|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,127|0)|0)&127](t,W)|0;do if((q|0)==7)ea((da(aa|0,4,0,0)|0|0)+65>>0|0,1|0,1,0);else if(q){d=da(t+8|0,4,0,0)|0|0;if(d){ea(ga|0,d|0,4,0);sh(aa,10344,ga);break}if((q|0)!=516){q=q&255;if(q>>>0>26|(q|0)==2)q=16328;else q=da(15488+(q<<2)|0,4,0,0)|0|0}else q=16344;ea(ga|0,q|0,4,0);sh(aa,10344,ga)}while(0);q=t+8|0;Vc(da(q|0,4,0,0)|0|0);ea(q|0,0|0,4,0);q=da(W|0,4,0,0)|0|0;if((q|0)>0){d=0;do{if((da((da(U|0,4,0,0)|0|0)+(d*12|0)+5>>0|0,1,0,0)|0|0)==0?(da((da(V|0,4,0,0)|0|0)+(d<<3)|0,4,0,0)|0|0)>0:0){ea(ga|0,da(X|0,4,0,0)|0|0,4,0);sh(aa,34096,ga);q=da(W|0,4,0,0)|0|0}d=d+1|0}while((d|0)<(q|0))}d=da(G|0,4,0,0)|0|0;if(d)break;t=da(U|0,4,0,0)|0|0;o=ca;ea(o|0,b|0,4,0);ea(o+4|0,c|0,4,0);c:do if(H){q=0;do{ea((da(Q|0,4,0,0)|0|0)+(q<<2)|0,0|0,4,0);q=q+1|0}while((q|0)!=(z|0));ea(I|0,0|0,2,0);if(H){f=b;e=c;d=0;o=0;q=-1;while(1){h=da(y+(o<<3)|0,4,0,0)|0|0;l=h+-1|0;do if((h|0)>0){m=da(t+8|0,4,0,0)|0|0;if((h|0)>(z|0)|(m|0)<0){ia=65;break b}if((m|0)>=(da(_|0,4,0,0)|0|0)){ia=65;break b}g=(da(Q|0,4,0,0)|0|0)+(l<<2)|0;if(da(g|0,4,0,0)|0){ia=65;break b}n=da(Y|0,4,0,0)|0|0;ka=n+(m*48|0)+32|0;f=f|(da(ka|0,4,0,0)|0);e=e|(da(ka+4|0,4,0,0)|0);ka=ca;ea(ka|0,f|0,4,0);ea(ka+4|0,e|0,4,0);ea(g|0,n+(m*48|0)|0,4,0);q=(l|0)>(q|0)?l:q;do if((h|0)<17){if(!(da(y+(o<<3)+4>>0|0,1,0,0)|0))break;d=(d&65535|1<<l)&65535;ea(I|0,d|0,2,0)}while(0);if(!((da(n+(m*48|0)+18|0,2,0,0)|0)&1))break;if(!(da(y+(o<<3)+4>>0|0,1,0,0)|0))break c;ea(B|0,0|0,4,0)}while(0);o=o+1|0;if((o|0)>=(z|0)){ia=73;break}else t=t+12|0}}else{q=-1;ia=73}}else{ea(I|0,0|0,2,0);q=-1;ia=73}while(0);if((ia|0)==73){ia=0;ea(w|0,q+1|0,2,0);ea(J|0,da(A|0,4,0,0)|0|0,4,0);ea(x>>0|0,da(R|0,4,0,0)|0|0,1,0);ea(R|0,0|0,4,0);ea(K|0,da(S|0,4,0,0)|0|0,4,0);if(!(da(B|0,4,0,0)|0))q=0;else q=(da(T|0,4,0,0)|0)&255;ea(L>>0|0,q|0,1,0);ea(v|0,0|0,2,0);r=+(+da(D|0,8,1,0));ea(k|0,+r,8,1);q=da(k|0,4,0,0)|0|0;d=da(k+4|0,4,0,0)|0|0;do if(!(r<=1.0))if(!(r<=2.0e9)){q=lw(q|0,d|0,52)|0;q=iw(q|0,C|0,64514,0)|0;q=(q<<16>>16)*10&65535;break}else{q=es(~~r>>>0,+N(r)>=1.0?(r>0.0?~~+$(+M(r/4294967296.0),4294967295.0)>>>0:~~+Z((r-+(~~r>>>0))/4294967296.0)>>>0):0)|0;break}else q=0;while(0);ea(O|0,q|0,2,0);o=E;ea(P|0,es(da(o|0,4,0,0)|0|0,da(o+4|0,4,0,0)|0|0)|0|0,2,0);Ev(a,ca)|0;if(da(x>>0|0,1,0,0)|0){Vc(da(K|0,4,0,0)|0|0);ea(x>>0|0,0|0,1,0)}}q=u+1|0;if((q|0)>=4){d=0;break}else t=p}if((ia|0)==65){ea(ga|0,da(X|0,4,0,0)|0|0,4,0);sh(aa,34064,ga);d=1}if(da(R|0,4,0,0)|0)Vc(da(S|0,4,0,0)|0|0);lg(ha,W)}while(0);i=ja;return d|0}function Gu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+64|0;if((i|0)>=(j|0))ba();k=Y;h=Y+56|0;g=Y+52|0;ea(g|0,-1|0,2,0);V=da(a+12|0,4,0,0)|0|0;W=da(a|0,4,0,0)|0|0;D=da(W+4|0,4,0,0)|0|0;E=da(V+16>>0|0,1,0,1)|0|0;Q=D+(E*72|0)+8|0;f=D+(E*72|0)+24|0;F=da(f|0,4,0,0)|0|0;R=da(a+4|0,4,0,0)|0|0;S=D+(E*72|0)+76|0;d=da(S|0,4,0,0)|0|0;do if(!d){if((da(F+44>>0|0,1,0,0)|0)&32){k=da(F+8|0,4,0,0)|0|0;break}d=k+0|0;e=d+52|0;do{ea(d|0,0|0,4,0);d=d+4|0}while((d|0)<(e|0));ea(k+46|0,1|0,2,0);ea(k+48|0,1|0,2,0);ea(k+4|0,g|0,4,0);ea(k+8|0,h|0,4,0);ea(k+50>>0|0,5|0,1,0);ea(k+12|0,F|0,4,0);ea(k+44|0,da(F+42|0,2,0,0)|0|0|0,2,0);ea(h|0,da(F+28|0,2,0,0)|0|0|0,2,0);ea(h+2|0,0|0,2,0);if(!((da(D+(E*72|0)+45>>0|0,1,0,0)|0)&1))ea(k+20|0,da((da(f|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,4,0)}else k=d;while(0);h=da(F+28|0,2,0,0)|0|0;if(h<<16>>16<11)y=0;else{y=h<<16>>16;y=((es(y,((y|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((da(a+16|0,4,0,0)|0|0)==0?((da(W+34|0,2,0,0)|0)&128)==0:0)?((da((da(da(W|0,4,0,0)|0|0,4,0,0)|0|0)+24|0,4,0,0)|0)&1048576|0)!=0:0)?(da(S|0,4,0,0)|0|0)==0:0)?(l=da(D+(E*72|0)+45>>0|0,1,0,0)|0|0,(l&5)==0):0)?(B=F+44|0,(l&10|(da(B>>0|0,1,0,0)|0)&32)<<24>>24==0):0)?(z=da(R+20|0,4,0,0)|0|0,P=da(R+12|0,4,0,0)|0|0,A=z+(P*48|0)|0,(P|0)>0):0){s=V+8|0;t=V+24|0;u=V+42|0;v=V+28|0;w=V+40|0;x=V+48|0;o=(y&65535)+(h&65535)|0;e=o+4&65535;m=V+18|0;n=F+12|0;o=o+28&65535;p=V+22|0;q=V+20|0;r=V+36|0;f=z;do{l=f+32|0;h=l;g=s;if((((da(g|0,4,0,0)|0)&(da(h|0,4,0,0)|0)|0)==0?((da(g+4|0,4,0,0)|0)&(da(h+4|0,4,0,0)|0)|0)==0:0)?(Lu(f,Q,0,0)|0)!=0:0){ea(t|0,1|0,2,0);ea(u|0,0|0,2,0);ea(v|0,0|0,4,0);ea(w|0,1|0,2,0);ea(da(x|0,4,0,0)|0|0,f|0,4,0);ea(m|0,e|0,2,0);if((da(n|0,4,0,0)|0|0)==0?((da(B>>0|0,1,0,0)|0)&2)==0:0)ea(m|0,o|0,2,0);ea(p|0,43|0,2,0);ea(q|0,Fv(y,43)|0|0,2,0);ea(r|0,16384|0,4,0);O=l;d=da(O+4|0,4,0,0)|0|c;P=V;ea(P|0,da(O|0,4,0,0)|0|b|0,4,0);ea(P+4|0,d|0,4,0);d=Ev(a,V)|0}else d=0;f=f+48|0}while((d|0)==0&f>>>0<A>>>0)}else d=0;P=V+36|0;a:do if((d|0)==0&(k|0)!=0){G=V+24|0;H=V+42|0;I=V+40|0;J=V+17|0;K=V+18|0;L=V+22|0;M=V+28|0;N=D+(E*72|0)+48|0;O=V+20|0;u=D+(E*72|0)+64|0;A=F+42|0;D=F+44|0;p=W+34|0;q=R+12|0;s=R+20|0;t=1;while(1){l=da(k+36|0,4,0,0)|0|0;d=da(N|0,4,0,0)|0|0;b:do if(l){h=da(q|0,4,0,0)|0|0;if((h|0)>0){f=0;e=da(s|0,4,0,0)|0|0;while(1){g=da(e|0,4,0,0)|0|0;if(Gv(g,l,d)|0){if(!((da(g+4|0,4,0,0)|0)&1)){X=32;break b}if((da(g+36|0,2,0,0)|0|0)==(d|0)){X=32;break b}}f=f+1|0;if((f|0)>=(h|0)){d=0;break}else e=e+48|0}}else d=0}else X=32;while(0);if((X|0)==32){X=0;E=da(da(k+8|0,4,0,0)|0|0,2,0,0)|0|0;ea(G|0,0|0,2,0);ea(H|0,0|0,2,0);ea(I|0,0|0,2,0);ea(J>>0|0,0|0,1,0);ea(K|0,0|0,2,0);F=V;ea(F|0,b|0,4,0);ea(F+4|0,c|0,4,0);ea(L|0,E|0,2,0);ea(M|0,k|0,4,0);F=k+51|0;l=da(F>>0|0,1,0,0)|0|0;c:do if(((l&4)==0?(T=da((da(a|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,(T|0)!=0):0)?(U=da(T|0,4,0,0)|0|0,(U|0)>0):0){B=da(T+4|0,4,0,0)|0|0;o=k+46|0;n=k+4|0;m=0;while(1){r=da(B+(m*20|0)|0,4,0,0)|0|0;d:do if(!r)r=0;else while(1){y=da(r+4|0,4,0,0)|0|0;if(!(y&4096))break d;if(!(y&262144))r=r+12|0;else r=da((da(r+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;r=da(r|0,4,0,0)|0|0;if(!r){r=0;break}}while(0);if((da(r>>0|0,1,0,0)|0|0)!=-102){B=0;break c}if((da(r+28|0,4,0,0)|0|0)==(d|0)){x=da(r+32|0,2,0,0)|0|0;if(x<<16>>16<0){B=1;break c}y=da(o|0,2,0,0)|0|0;if(y<<16>>16){w=da(n|0,4,0,0)|0|0;y=y&65535;z=0;do{if(x<<16>>16==(da(w+(z<<1)|0,2,0,0)|0|0)){B=1;break c}z=z+1|0}while((z|0)<(y|0))}}m=m+1|0;if((m|0)>=(U|0)){B=0;break}}}else B=0;while(0);do if((da(k+40|0,4,0,0)|0|0)<1){ea(P|0,256|0,4,0);ea(J>>0|0,((B|0)!=0?t&255:0)|0,1,0);ea(O|0,(E&65535)+16|0,2,0);Hv(R,V,E);d=EvEv(a,V)|0;ea(L|0,E|0,2,0);if(d)break a}while(0);d=Iv(a,Q,k,0)|0;if(da(S|0,4,0,0)|0)break a}k=da(k+20|0,4,0,0)|0|0;if(!((d|0)==0&(k|0)!=0))break;else t=t+1|0}}while(0);i=Y;return d|0}function Hu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;W=i;i=i+608|0;if((i|0)>=(j|0))ba();U=W+168|0;S=W+576|0;T=W+112|0;Q=W+56|0;R=W;d=da(a|0,4,0,0)|0|0;N=da(a+4|0,4,0,0)|0|0;h=da(N+20|0,4,0,0)|0|0;g=da(N+12|0,4,0,0)|0|0;P=h+(g*48|0)|0;M=da(a+12|0,4,0,0)|0|0;e=T+0|0;f=e+56|0;do{ea(e|0,0|0,4,0);e=e+4|0}while((e|0)<(f|0));f=da(d+4|0,4,0,0)|0|0;e=da(M+16>>0|0,1,0,1)|0|0;L=da(f+(e*72|0)+48|0,4,0,0)|0|0;a:do if((g|0)>0){v=M+8|0;w=S+8|0;x=S+16|0;y=M+40|0;z=M+48|0;A=M+36|0;B=M+18|0;C=M+17|0;D=M+24|0;E=M+20|0;F=M+22|0;G=U+4|0;H=U+8|0;I=U+12|0;J=U+20|0;K=S+4|0;r=f+(e*72|0)+24|0;s=R+8|0;t=T+8|0;u=Q+8|0;while(1){b:do if(((da(h+18|0,2,0,0)|0)&256)!=0?(O=da(h+12|0,4,0,0)|0|0,g=O+408|0,f=v,!(((da(f|0,4,0,0)|0)&(da(g|0,4,0,0)|0)|0)==0?((da(f+4|0,4,0,0)|0)&(da(g+4|0,4,0,0)|0)|0)==0:0)):0){g=O+20|0;q=(da(g|0,4,0,0)|0|0)+((da(O+12|0,4,0,0)|0|0)*48|0)|0;ea(S+0|0,da(a+0|0,4,0,0)|0|0,4,0);ea(S+4|0,da(a+4|0,4,0,0)|0|0,4,0);ea(S+8|0,da(a+8|0,4,0,0)|0|0,4,0);ea(S+12|0,da(a+12|0,4,0,0)|0|0,4,0);ea(w|0,0|0,4,0);ea(x|0,Q|0,4,0);g=da(g|0,4,0,0)|0|0;c:do if(g>>>0<q>>>0){e=1;d=0;d:while(1){if(!((da(g+18|0,2,0,0)|0)&512))if((da(g+8|0,4,0,0)|0|0)==(L|0)){ea(U|0,da(N|0,4,0,0)|0|0,4,0);ea(G|0,N|0,4,0);ea(H>>0|0,72|0,1,0);ea(I|0,1|0,4,0);ea(J|0,g|0,4,0);f=U;V=10}else f=e;else{f=da(g+12|0,4,0,0)|0|0;V=10}do if((V|0)==10){V=0;ea(K|0,f|0,4,0);ea(Q|0,0|0,2,0);if(!((da((da(r|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&16))d=Gu(S,b,c)|0;else d=Fu(S,b,c)|0;if(!d)d=Hu(S,b,c)|0;f=da(Q|0,2,0,0)|0|0;if(!(f<<16>>16))break d;if(e){ea(T|0,f|0,2,0);jw(t|0,u|0,(f&65535)<<4|0)|0;f=0;break}o=da(T|0,2,0,0)|0|0;ea(R|0,o|0,2,0);p=o&65535;jw(s|0,t|0,p<<4|0)|0;ea(T|0,0|0,2,0);if(!(o<<16>>16))f=0;else{o=0;do{if(!(f<<16>>16))f=0;else{k=R+(o<<4)+8|0;e=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0;l=da(R+(o<<4)+16|0,2,0,0)|0|0;m=da(R+(o<<4)+18|0,2,0,0)|0|0;n=0;do{X=Q+(n<<4)+8|0;Y=da(X|0,4,0,0)|0|e;X=da(X+4|0,4,0,0)|0|k;f=Fv(l,da(Q+(n<<4)+16|0,2,0,0)|0|0)|0;Jv(T,Y,X,f,Fv(m,da(Q+(n<<4)+18|0,2,0,0)|0|0)|0);n=n+1|0;f=da(Q|0,2,0,0)|0|0}while((n|0)<(f&65535|0))}o=o+1|0}while((o|0)<(p|0));f=0}}while(0);g=g+48|0;if(g>>>0>=q>>>0)break c;else e=f}ea(T|0,0|0,2,0)}else d=0;while(0);ea(y|0,1|0,2,0);ea(da(z|0,4,0,0)|0|0,h|0,4,0);ea(A|0,8192|0,4,0);ea(B|0,0|0,2,0);ea(C>>0|0,0|0,1,0);ea(D+0|0,0|0,4,0);ea(D+4|0,0|0,4,0);ea(D+8|0,0|0,4,0);if(d)break a;g=da(T|0,2,0,1)|0|0;f=0;while(1){if((f|0)>=(g|0))break b;ea(E|0,(da(T+(f<<4)+16|0,2,0,1)|0|0)+1|0,2,0);ea(F|0,da(T+(f<<4)+18|0,2,0,0)|0|0|0,2,0);n=T+(f<<4)+8|0;d=da(n+4|0,4,0,0)|0|0;o=M;ea(o|0,da(n|0,4,0,0)|0|0,4,0);ea(o+4|0,d|0,4,0);d=Ev{a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+208|0;if((i|0)>=(j|0))ba();h=n+152|0;f=n+104|0;g=n+56|0;k=n+8|0;l=n;ea(l|0,0|0,4,0);m=k+0|0;o=(da(b+12|0,4,0,0)|0|0)+0|0;p=m+48|0;do{ea(m|0,da(o|0,4,0,0)|0|0,4,0);m=m+4|0;o=o+4|0}while((m|0)<(p|0));ea(h>>0|0,72|0,1,0);ea(h+12|0,f|0,4,0);ea(h+16|0,g|0,4,0);ea(f>>0|0,83|0,1,0);ea(f+12|0,k|0,4,0);b=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;ea(f+16|0,da(b|0,4,0,0)|0|0,4,0);ea(g>>0|0,81|0,1,0);ea(g+12|0,k|0,4,0);ea(g+16|0,da(b+20|0,4,0,0)|0|0,4,0);b=_t(a,k,l)|0;ea(k+38>>0|0,da(k>>0|0,1,0,0)|0|0|0,1,0);ea(k>>0|0,-97|0,1,0);ea(k+28|0,b|0,4,0);b=k+4|0;ea(b|0,(da(b|0,4,0,0)|0)&-4097|0,4,0);if(!d)ft(a,h,c,e);else Yu(a,h,c,e);Zr(a,da(l|0,4,0,0)|0|0);i=n;return}function _u(a){a=a|0;var b=0,c=0;c=i;i=i+16|0;if((i|0)>=(j|0))ba();b=c;ea(b|0,0|0,4,0);if(((da(a+4|0,4,0,0)|0)&1|0)==0?(Ls(a,b)|0)!=0:0)a=(da(b|0,4,0,0)|0|0)!=0&1;else a=0;i=c;return a|0}function $u(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!((a|0)==0|(b|0)==0)){d=da(b|0,4,0,0)|0|0;if((d|0)>0){b=da(b+4|0,4,0,0)|0|0;c=0;while(1){if((vv(a,da(b+(c*20|0)+4|0,4,0,0)|0|0)|0)>-1){b=1;break a}c=c+1|0;if((c|0)>=(d|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function av(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;j=da(b+20|0,4,0,0)|0|0;a:do if((j|0)>0){k=da(a+38|0,2,0,0)|0|0;l=k<<16>>16>0;m=a+4|0;i=a+36|0;f=(d|0)!=0;g=0;while(1){d=da(b+(g<<3)+40|0,4,0,0)|0|0;if(l){a=(d|0)==0;h=0;do{if(!((da(c+(h<<2)|0,4,0,0)|0|0)<=-1?!((h|0)==(da(i|0,2,0,0)|0|0)&f):0))n=7;do if((n|0)==7){n=0;e=da(m|0,4,0,0)|0|0;if(a)if(!((da(e+(h*24|0)+23>>0|0,1,0,0)|0)&1))break;else{a=1;break a}else if(!(cd(da(e+(h*24|0)|0,4,0,0)|0|0,d)|0)){a=1;break a}else break}while(0);h=h+1|0}while((h|0)<(k<<16>>16|0))}g=g+1|0;if((g|0)>=(j|0)){a=0;break}}}else a=0;while(0);return a|0}function bv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+48|0;if((i|0)>=(j|0))ba();k=t;o=t+8|0;s=da(a+408|0,4,0,0)|0|0;s=(s|0)==0?a:s;h=s+528|0;e=da(h|0,4,0,0)|0|0;a:do if(!e)g=5;else while(1){if((da(e|0,4,0,0)|0|0)==(b|0)?(da(e+12|0,4,0,0)|0|0)==(d|0):0)break a;e=da(e+4|0,4,0,0)|0|0;if(!e){g=5;break}}while(0);do if((g|0)==5){q=da(a|0,4,0,0)|0|0;e=lh(q,24,0)|0;if(e){g=e+0|0;f=g+24|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(f|0));ea(e+4|0,da(h|0,4,0,0)|0|0,4,0);ea(h|0,e|0,4,0);p=lh(q,28,0)|0;if(!p){ea(e+8|0,0|0,4,0);e=0;break}g=p+0|0;f=g+24|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(f|0));ea(e+8|0,p|0,4,0);l=(da(s+8|0,4,0,0)|0|0)+192|0;ea(p+24|0,da(l|0,4,0,0)|0|0,4,0);ea(l|0,p|0,4,0);ea(e|0,b|0,4,0);ea(e+12|0,d|0,4,0);l=e+16|0;ea(l|0,-1|0,4,0);m=e+20|0;ea(m|0,-1|0,4,0);n=lh(q,536,0)|0;if(n){ew(n|0,0,536)|0;ea(o+0|0,0|0,4,0);ea(o+4|0,0|0,4,0);ea(o+8|0,0|0,4,0);ea(o+12|0,0|0,4,0);ea(o+16|0,0|0,4,0);ea(o+20|0,0|0,4,0);ea(o+24|0,0|0,4,0);ea(o+28|0,0|0,4,0);ea(o|0,n|0,4,0);ea(n|0,q|0,4,0);ea(n+412|0,c|0,4,0);ea(n+408|0,s|0,4,0);ea(n+492|0,da(b|0,4,0,0)|0|0,4,0);ea(n+436>>0|0,da(b+8>>0|0,1,0,0)|0|0|0,1,0);ea(n+424|0,da(a+424|0,4,0,0)|0|0,4,0);c=Nq(n)|0;if(c){ea(k|0,da(b|0,4,0,0)|0|0,4,0);wh(c,-1,th(q,34152,k)|0,-1);g=da(b+12|0,4,0,0)|0|0;if(!g)h=0;else{f=Lr(q,g,0,0)|0;if((ks(o,f)|0)==0?(da(q+65>>0|0,1,0,0)|0|0)==0:0){g=ws(c)|0;ft(n,f,g,16)}else g=0;Fk(q,f);h=g}Ov(n,da(b+28|0,4,0,0)|0|0,d);if(h){g=da(c+24|0,4,0,0)|0|0;f=~h;if((h|0)<0?(r=da(g+112|0,4,0,0)|0|0,(r|0)!=0):0)ea(r+(f<<2)|0,da(c+32|0,4,0,0)|0|0,4,0);ea(g+88|0,(da(c+32|0,4,0,0)|0|0)+-1|0,4,0)}vh(c,24,0,0,0)|0;f=a+64|0;g=da(n+4|0,4,0,0)|0|0;if(!(da(f|0,4,0,0)|0)){ea(a+4|0,g|0,4,0);ea(f|0,da(n+64|0,4,0,0)|0|0,4,0)}else lg(da(n|0,4,0,0)|0|0,g);if(!(da(q+65>>0|0,1,0,0)|0)){k=c+4|0;o=da(k|0,4,0,0)|0|0;In(c,s+392|0);ea(p+4|0,da(c+32|0,4,0,0)|0|0,4,0);ea(k|0,0|0,4,0);ea(p|0,o|0,4,0)}ea(p+8|0,da(n+72|0,4,0,0)|0|0,4,0);ea(p+12|0,da(n+68|0,4,0,0)|0|0,4,0);ea(p+16|0,da(n+80|0,4,0,0)|0|0,4,0);ea(p+20|0,b|0,4,0);ea(l|0,da(n+428|0,4,0,0)|0|0,4,0);ea(m|0,da(n+432|0,4,0,0)|0|0,4,0);Ol(c)}Bh(n);lg(q,n)}else e=0}else e=0}while(0);i=t;return e|0}function cv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0;g=Nq(a)|0;c=bv(a,b,c,e)|0;if(c){if(!(da(b|0,4,0,0)|0))e=0;else e=((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0|0)>>>18&1^1)&255;a=a+72|0;b=(da(a|0,4,0,0)|0|0)+1|0;ea(a|0,b|0,4,0);vh(g,131,d,f,b)|0;wh(g,-1,da(c+8|0,4,0,0)|0|0,-18);c=da(g+4|0,4,0,0)|0|0;if(c)ea(c+(((da(g+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,e|0,1,0)}return}function dv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;e=da(a|0,4,0,0)|0|0;g=da((da(e+16|0,4,0,0)|0|0)+(d<<4)|0,4,0,0)|0|0;f=jc[(fa(da(e+284|0,4,0,0)|0|0,7|0)|0)&7](da(e+288|0,4,0,0)|0|0,20,b,c,g,da(a+492|0,4,0,0)|0|0)|0;if((f|0)==1){if((d|0)!=0?1:(da(e+20|0,4,0,0)|0|0)>2){ea(h|0,g|0,4,0);ea(h+4|0,b|0,4,0);ea(h+8|0,c|0,4,0);sh(a,27688,h)}else{ea(h|0,b|0,4,0);ea(h+4|0,c|0,4,0);sh(a,27728,h)}ea(a+12|0,23|0,4,0)}else if(!((f|0)==0|(f|0)==2)){sh(a,25232,h);ea(a+12|0,1|0,4,0)}i=k;return f|0}function ev
14 function Dv(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=a+20|0;n=a+14|0;b=da(n>>0|0,1,0,0)|0|0;s=a+13|0;c=da(s>>0|0,1,0,0)|0|0;a:do if((b&255)>(c&255))b=0;else{u=a+4|0;v=a+16|0;o=a+8|0;p=a+12|0;q=a+24|0;r=a+28|0;e=b&255;f=da(u|0,4,0,0)|0|0;d=da(w|0,4,0,0)|0|0;b:while(1){m=da(a+(e+-2<<2)+24|0,4,0,0)|0|0;l=da(a+(e+-1<<2)+24|0,4,0,0)|0|0;if(f){while(1){k=f+12|0;if((d|0)<(da(k|0,4,0,0)|0|0)){c=d;b=(da(f+20|0,4,0,0)|0|0)+(d*48|0)|0;while(1){do if((da(b+8|0,4,0,0)|0|0)==(m|0)?(da(b+12|0,4,0,0)|0|0)==(l|0):0){if((da(n>>0|0,1,0,1)|0|0)>=3?((da((da(b|0,4,0,0)|0|0)+4|0,4,0,0)|0)&1|0)!=0:0)break;j=b+18|0;d=da(j|0,2,0,0)|0|0;if((d&1024)!=0?(t=da(s>>0|0,1,0,0)|0|0,(t&255)<22):0){e=da((da(b|0,4,0,0)|0|0)+16|0,4,0,0)|0|0;c:do if(!e)e=0;else while(1){g=da(e+4|0,4,0,0)|0|0;if(!(g&4096))break c;if(!(g&262144))e=e+12|0;else e=da((da(e+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;e=da(e|0,4,0,0)|0|0;if(!e){e=0;break}}while(0);d:do if(!(t<<24>>24)){i=0;g=0}else{h=da(e+28|0,4,0,0)|0|0;i=e+32|0;g=0;while(1){if((da(a+(g<<2)+24|0,4,0,0)|0|0)==(h|0)?(da(a+((g|1)<<2)+24|0,4,0,0)|0|0)==(da(i|0,2,0,0)|0|0):0){i=t;break d}g=g+2|0;if((g|0)>=(t&255|0)){i=t;break}}}while(0);if((g|0)==(i&255|0)){ea(a+(g<<2)+24|0,da(e+28|0,4,0,0)|0|0,4,0);ea(a+((g|1)<<2)+24|0,da(e+32|0,2,0,0)|0|0,4,0);ea(s>>0|0,(da(s>>0|0,1,0,1)|0|0)+2|0,1,0)}}e=d&65535;if(e&(da(v|0,4,0,0)|0)){if((da(o|0,4,0,0)|0|0)!=0&(e&128|0)==0){h=da(da(f|0,4,0,0)|0|0,4,0,0)|0|0;g=da(b|0,4,0,0)|0|0;e=da(p>>0|0,1,0,0)|0|0;d=(mv(g)|0)<<24>>24;if((d|0)==66){if(e<<24>>24!=66)break}else if((d|0)!=65?e<<24>>24<=66:0)break;d=Nu(h,da(g+12|0,4,0,0)|0|0,da(g+16|0,4,0,0)|0|0)|0;if(!d)d=da((da(h|0,4,0,0)|0|0)+8|0,4,0,0)|0|0;if(cd(da(d|0,4,0,0)|0|0,da(o|0,4,0,0)|0|0)|0)break;d=da(j|0,2,0,0)|0|0}if(!(d&2))break b;d=da((da(b|0,4,0,0)|0|0)+16|0,4,0,0)|0|0;if((da(d>>0|0,1,0,0)|0|0)!=-102)break b;if((da(d+28|0,4,0,0)|0|0)!=(da(q|0,4,0,0)|0|0))break b;if((da(d+32|0,2,0,0)|0|0)!=(da(r|0,4,0,0)|0|0))break b}}while(0);c=c+1|0;if((c|0)>=(da(k|0,4,0,0)|0|0))break;else b=b+48|0}c=da(u|0,4,0,0)|0|0}else c=f;f=da(c+4|0,4,0,0)|0|0;ea(u|0,f|0,4,0);if(!f)break;else d=0}b=da(n>>0|0,1,0,0)|0|0;c=da(s>>0|0,1,0,0)|0|0}f=da(a|0,4,0,0)|0|0;ea(u|0,f|0,4,0);d=(b&255)+2|0;b=d&255;ea(n>>0|0,b|0,1,0);if((b&255)>(c&255)){b=0;break a}else{e=d&255;d=0}}ea(w|0,c+1|0,4,0)}while(0);return b|0}function Ev(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=da(a|0,4,0,0)|0|0;h=da(da(c|0,4,0,0)|0|0,4,0,0)|0|0;a=da(a+16|0,4,0,0)|0|0;a:do if(!a){c=c+16|0;e=da(c|0,4,0,0)|0|0;g=b+36|0;if(((da(g|0,4,0,0)|0)&512|0)!=0&(e|0)!=0){a=b+20|0;f=b+22|0;d=da(b+16>>0|0,1,0,0)|0|0;do{do if((da(e+16>>0|0,1,0,0)|0|0)==d<<24>>24?((da(e+36|0,4,0,0)|0)&512|0)!=0:0){if(Sv(e,b)|0){ea(a|0,da(e+20|0,2,0,0)|0|0|0,2,0);ea(f|0,(da(e+22|0,2,0,1)|0|0)+65535|0,2,0);break}if(Sv(b,e)|0){ea(a|0,da(e+20|0,2,0,0)|0|0|0,2,0);ea(f|0,(da(e+22|0,2,0,1)|0|0)+1|0,2,0)}}while(0);e=da(e+52|0,4,0,0)|0|0}while((e|0)!=0)}a=Tv(c,b)|0;if(a){c=da(a|0,4,0,0)|0|0;b:do if(c){a=c+52|0;if(da(a|0,4,0,0)|0)do{a=Tv(a,b)|0;if(!a)break b;d=da(a|0,4,0,0)|0|0;if(!d)break b;ea(a|0,da(d+52|0,4,0,0)|0|0,4,0);Iu(h,d);lg(h,d)}while((da(a|0,4,0,0)|0|0)!=0)}else{c=lh(h,72,0)|0;ea(a|0,c|0,4,0);if(!c){a=7;break a}ea(c+48|0,c+56|0,4,0);ea(c+40|0,0|0,2,0);ea(c+44|0,3|0,2,0);ea(c+36|0,0|0,4,0);ea(c+52|0,0|0,4,0)}while(0);Kv(h,c);do if(!(Mu(h,c,da(b+40|0,2,0,1)|0|0)|0)){d=c+0|0;a=b+0|0;e=d+44|0;do{ea(d|0,da(a|0,4,0,0)|0|0,4,0);d=d+4|0;a=a+4|0}while((d|0)<(e|0));jw(da(c+48|0,4,0,0)|0|0,da(b+48|0,4,0,0)|0|0,(da(c+40|0,2,0,1)|0)<<2|0)|0;a=da(g|0,4,0,0)|0|0;if(a&1024){ea(b+28>>0|0,0|0,1,0);break}if(a&16384)ea(b+28|0,0|0,4,0)}else{a=c+24|0;ea(a+0|0,0|0,4,0);ea(a+4|0,0|0,4,0);ea(a+8|0,0|0,4,0)}while(0);if((((da(c+36|0,4,0,0)|0)&1024|0)==0?(i=c+28|0,j=da(i|0,4,0,0)|0|0,(j|0)!=0):0)?(da(j+40|0,4,0,0)|0|0)==0:0){ea(i|0,0|0,4,0);a=0}else a=0}else a=0}else{c=b;Jv(a,da(c|0,4,0,0)|0|0,da(c+4|0,4,0,0)|0|0,da(b+20|0,2,0,0)|0|0,da(b+22|0,2,0,0)|0|0);a=0}while(0);return a|0}function Fv(a,b){a=a|0;b=b|0;var c=0,d=0;c=a<<16>>16;d=b<<16>>16;do if(a<<16>>16<b<<16>>16)if((d|0)<=(c+49|0))if((d|0)>(c+31|0)){a=d+1&65535;break}else{a=(da(34032+(d-c)>>0|0,1,0,1)|0|0)+d&65535;break}else a=b;else if((c|0)<=(d+49|0))if((c|0)>(d+31|0)){a=c+1&65535;break}else{a=(da(34032+(c-d)>>0|0,1,0,1)|0|0)+c&65535;break}while(0);return a|0}function Gv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;do if(!(Bu(a,b,c)|0))d=1;else{d=da(b>>0|0,1,0,0)|0|0;if(d<<24>>24==77)e=6;else if(d<<24>>24==71){if(Gv(a,da(b+12|0,4,0,0)|0|0,c)|0){d=1;break}if(Gv(a,da(b+16|0,4,0,0)|0|0,c)|0){d=1;break}if(d<<24>>24==77)e=6}if(((e|0)==6?(Bu(da(a+12|0,4,0,0)|0|0,da(b+12|0,4,0,0)|0|0,c)|0)==0:0)?(d=da(a>>0|0,1,0,0)|0|0,!(d<<24>>24==73|d<<24>>24==76)):0){d=1;break}d=0}while(0);return d|0}function Hv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();r=s;p=b;q=b+8|0;d=q;o=~(da(d|0,4,0,0)|0|(da(p|0,4,0,0)|0));p=~(da(d+4|0,4,0,0)|0|(da(p+4|0,4,0,0)|0));d=da(a+12|0,4,0,0)|0|0;m=a+20|0;a:do if((d|0)>0){n=b+40|0;a=b+22|0;l=b+48|0;b=0;k=da(m|0,4,0,0)|0|0;while(1){if((da(k+20|0,2,0,0)|0)&2)break a;f=k+40|0;e=da(f|0,4,0,0)|0|0;f=da(f+4|0,4,0,0)|0|0;g=q;b:do if((((da(g|0,4,0,0)|0)&e|0)!=0?1:((da(g+4|0,4,0,0)|0)&f|0)!=0)&((e&o|0)==0&(f&p|0)==0)){e=da(n|0,2,0,0)|0|0;c:do if(e<<16>>16){h=da(l|0,4,0,0)|0|0;f=e&65535;while(1){e=f;f=f+-1|0;g=da(h+(f<<2)|0,4,0,0)|0|0;if(g){if((g|0)==(k|0))break;g=da(g+4|0,4,0,0)|0|0;if((g|0)>-1?((da(m|0,4,0,0)|0|0)+(g*48|0)|0)==(k|0):0)break}if((f|0)<=0)break c}if((e|0)>=1)break b}while(0);e=da(k+16|0,2,0,0)|0|0;if(e<<16>>16<1){ea(a|0,(da(a|0,2,0,1)|0|0)+(e&65535)|0,2,0);break}ea(a|0,(da(a|0,2,0,0)|0|0)+-1<<16>>16|0,2,0);if((da(k+18|0,2,0,0)|0)&2){g=(Ls(da((da(k|0,4,0,0)|0|0)+16|0,4,0,0)|0|0,r)|0)!=0;h=da(r|0,4,0,0)|0|0;h=g&(h|0)>-2&(h|0)<2?10:20;ea(r|0,h|0,4,0);b=(b<<16>>16|0)<(h|0)?h&65535:b}}while(0);d=d+-1|0;if((d|0)<=0)break;else k=k+48|0}}else{a=b+22|0;b=0}while(0);b=(c<<16>>16)-(b<<16>>16)|0;if((da(a|0,2,0,0)|0|0)>(b|0))ea(a|0,b|0,2,0);i=s;return}function Iv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;aa=i;i=i+112|0;if((i|0)>=(j|0))ba();L=aa;P=da(da(da(a|0,4,0,0)|0|0,4,0,0)|0|0,4,0,0)|0|0;_=da(a+12|0,4,0,0)|0|0;if(!(da(P+65>>0|0,1,0,0)|0)){$=_+36|0;if(!((da($|0,4,0,0)|0)&32))if((da(c+40|0,4,0,0)|0|0)<1)e=63;else e=((da(b+36>>0|0,1,0,0)|0)&8)<<4^191;else e=24;Q=c+51|0;Y=_+24|0;f=da((da(c+4|0,4,0,0)|0|0)+((da(Y|0,2,0,1)|0)<<1)|0,2,0,0)|0|0;H=f<<16>>16;I=a+4|0;e=Cv(L,da(I|0,4,0,0)|0|0,da(b+40|0,4,0,0)|0|0,H,((da(Q>>0|0,1,0,0)|0)&4)==0?e:e&131,c)|0;R=da(Y|0,2,0,0)|0|0;S=_+42|0;N=da(S|0,2,0,0)|0|0;T=_+40|0;O=da(T|0,2,0,0)|0|0;U=da($|0,4,0,0)|0|0;K=_;J=da(K|0,4,0,0)|0|0;K=da(K+4|0,4,0,0)|0|0;V=_+22|0;W=da(V|0,2,0,0)|0|0;ea(_+18|0,0|0,2,0);X=c+8|0;x=da(da(X|0,4,0,0)|0|0,2,0,0)|0|0;if(x<<16>>16<11)w=0;else{w=x<<16>>16;w=((es(w,((w|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!e)e=0;else{y=f<<16>>16<0;z=b+16|0;A=_+8|0;B=(O&65535)+1|0;C=_+48|0;D=d<<16>>16==0;E=c+46|0;q=f<<16>>16>-1;r=c+50|0;s=c+44|0;t=_+20|0;u=d<<16>>16;v=c+48|0;g=0;p=e;l=0;while(1){f=da(p+18|0,2,0,0)|0|0;m=f&65535;if(f<<16>>16==128)if(!y?(da((da((da(z|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(H*24|0)+20>>0|0,1,0,0)|0|0)==0:0)M=12;else{f=l;e=0}else M=12;if((M|0)==12){M=0;k=p+32|0;e=k;h=A;if((((da(h|0,4,0,0)|0)&(da(e|0,4,0,0)|0)|0)==0?((da(h+4|0,4,0,0)|0)&(da(e+4|0,4,0,0)|0)|0)==0:0)?(F=p+20|0,!(((da(F|0,2,0,0)|0)&256)!=0&f<<16>>16==16)):0){ea($|0,U|0,4,0);ea(Y|0,R|0,2,0);ea(T|0,O|0,2,0);if(Mu(P,_,B)|0){e=0;break a}f=da(T|0,2,0,0)|0|0;h=f+1<<16>>16;ea(T|0,h|0,2,0);ea((da(C|0,4,0,0)|0|0)+((f&65535)<<2)|0,p|0,4,0);f=k;k=A;o=(da(f+4|0,4,0,0)|0|K)&~(da(k+4|0,4,0,0)|0);n=_;ea(n|0,(da(f|0,4,0,0)|0|J)&~(da(k|0,4,0,0)|0)|0,4,0);ea(n+4|0,o|0,4,0);b:do if(!(m&1)){if(m&2){e=da($|0,4,0,0)|0|0;f=e|1;ea($|0,f|0,4,0);do if(!y){if(!D){n=0;o=g;break b}if((da(Y|0,2,0,1)|0|0)!=((da(E|0,2,0,1)|0|0)+-1|0)){n=0;o=g;break b}if(!q)break;if(da(r>>0|0,1,0,0)|0)break;f=e|65537;ea($|0,f|0,4,0);n=0;o=g;break b}while(0);f=e|4097;ea($|0,f|0,4,0);n=0;o=g;break}if(m&128){f=da($|0,4,0,0)|0|8;ea($|0,f|0,4,0);n=0;o=g;break}e=da($|0,4,0,0)|0|0;if(!(m&36)){f=e|18;ea($|0,f|0,4,0);if(!(e&32)){n=0;o=0;l=p;break}n=0;o=da((da(C|0,4,0,0)|0|0)+((h&65535)+-2<<2)|0,4,0,0)|0|0;l=p;break}f=e|34;ea($|0,f|0,4,0);if(!((da(F|0,2,0,0)|0)&256)){n=0;o=p;l=0}else{e=p+48|0;if(Mu(P,_,(h&65535)+1|0)|0){e=0;break a}f=da(T|0,2,0,0)|0|0;ea(T|0,f+1<<16>>16|0,2,0);ea((da(C|0,4,0,0)|0|0)+((f&65535)<<2)|0,e|0,4,0);f=da($|0,4,0,0)|0|16;ea($|0,f|0,4,0);n=0;o=p;l=e}}else{e=da(p|0,4,0,0)|0|0;f=da($|0,4,0,0)|0|4;ea($|0,f|0,4,0);if(!((da(e+4|0,4,0,0)|0)&2048)){e=da(e+20|0,4,0,0)|0|0;if((e|0)!=0?(G=da(e|0,4,0,0)|0|0,(G|0)!=0):0){n=(es(G,((G|0)<0)<<31>>31)|0)<<16>>16;o=g}else{n=0;o=g}}else{n=46;o=g}}while(0);do if(!(f&2)){e=(da(Y|0,2,0,0)|0|0)+1<<16>>16;ea(Y|0,e|0,2,0);e=e&65535;g=da(p+16|0,2,0,0)|0|0;if(g<<16>>16<1&q){k=(g&65535)-n+(da(V|0,2,0,1)|0|0)&65535;ea(V|0,k|0,2,0);break}g=da(X|0,4,0,0)|0|0;g=(da(V|0,2,0,1)|0|0)+((da(g+(e<<1)|0,2,0,1)|0|0)-(da(g+(e+-1<<1)|0,2,0,1)|0|0))|0;e=g&65535;ea(V|0,e|0,2,0);if(!(m&128))k=e;else{k=g+10&65535;ea(V|0,k|0,2,0)}}else{e=da(V|0,2,0,0)|0|0;k=e<<16>>16;do if(o){g=da(o+16|0,2,0,0)|0|0;if(g<<16>>16<1){e=(g&65535)+(e&65535)&65535;break}else{e=(e&65535)+65516&65535;break}}while(0);do if(l){g=da(l+16|0,2,0,0)|0|0;if(g<<16>>16<1){e=(g&65535)+(e&65535)&65535;break}else{e=(e&65535)+65516&65535;break}}while(0);g=(o|0)!=0;do if(g?(da(o+16|0,2,0,0)|0|0)>0&(l|0)!=0:0){if((da(l+16|0,2,0,0)|0|0)<=0)break;e=(e&65535)+65516&65535}while(0);k=(((l|0)!=0)<<31>>31)+(g<<31>>31)+k|0;p=e<<16>>16<10?10:e<<16>>16;k=((p|0)<(k|0)?p:k)&65535;ea(V|0,k|0,2,0)}while(0);h=k&65535;g=Fv(w,h+1+(((da(s|0,2,0,0)|0|0)*15|0)/(da((da(z|0,4,0,0)|0|0)+42|0,2,0,0)|0|0)|0)&65535)|0;if(!(f&320))g=Fv(g,h+16&65535)|0;f=n+u|0;ea(t|0,(g&65535)+f|0,2,0);ea(V|0,h+f|0,2,0);Hv(da(I|0,4,0,0)|0|0,_,x);e=Ev