mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-06 08:08:28 +08:00
12 lines
104 KiB
JavaScript
12 lines
104 KiB
JavaScript
!function(e){var i={};function o(n){if(i[n])return i[n].exports;var d=i[n]={i:n,l:!1,exports:{}};return e[n].call(d.exports,d,d.exports,o),d.l=!0,d.exports}o.m=e,o.c=i,o.d=function(e,i,n){o.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,i){if(1&i&&(e=o(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var d in e)o.d(n,d,function(i){return e[i]}.bind(null,d));return n},o.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(i,"a",i),i},o.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},o.p="",o(o.s="4WG+")}({"4WG+":function(e,i,o){"use strict";o.r(i);var n=o("GGSb"),d=o.n(n);const v=new DataView(new ArrayBuffer(4));var t,_;!function(e){e[e.Int=0]="Int",e[e.Float=1]="Float",e[e.InvalidNumber=2]="InvalidNumber",e[e.Register=3]="Register",e[e.Label=4]="Label",e[e.CodeSection=5]="CodeSection",e[e.DataSection=6]="DataSection",e[e.StringSection=7]="StringSection",e[e.InvalidSection=8]="InvalidSection",e[e.String=9]="String",e[e.UnterminatedString=10]="UnterminatedString",e[e.Ident=11]="Ident",e[e.InvalidIdent=12]="InvalidIdent",e[e.ArgSeperator=13]="ArgSeperator"}(t||(t={}));class w{constructor(){this.index=0,this._mark=0}get col(){return this.index+1}tokenize_line(e){this.line=e,this.index=0,this._mark=0;const i=[];for(;this.has_next();){const e=this.peek();let o;/\s/.test(e)?this.skip():(/[-\d]/.test(e)?o=this.tokenize_number_or_label():","===e?(o={type:t.ArgSeperator,col:this.col,len:1},this.skip()):o="."===e?this.tokenize_section():'"'===e?this.tokenize_string():"r"===e?this.tokenize_register_or_ident():this.tokenize_ident(),i.push(o))}return i}has_next(){return this.index<this.line.length}next(){return this.line.charAt(this.index++)}peek(){return this.line.charAt(this.index)}peek_prev(){return this.line.charAt(this.index-1)}skip(){this.index++}back(){this.index--}mark(){this._mark=this.index}marked_len(){return this.index-this._mark}slice(){return this.line.slice(this._mark,this.index)}tokenize_number_or_label(){this.mark();const e=this.col;this.skip();let i,o=!1,n=!1,d=!1;for(;this.has_next();){const e=this.peek();if(/\d/.test(e))this.skip();else if("."===e){if(n||d)break;n=!0,this.skip()}else if("x"===e&&1===this.marked_len()&&"0"===this.peek_prev()){if(n||d)break;d=!0,this.skip()}else{if(!/[a-fA-F]/.test(e)){":"!==e||n||d||(o=!0);break}if(!d)break;this.skip()}}return i=n?parseFloat(this.slice()):d?parseInt(this.slice(),16):parseInt(this.slice(),10),o&&this.skip(),{type:isNaN(i)?t.InvalidNumber:o?t.Label:n?t.Float:t.Int,col:e,len:this.marked_len(),value:i}}tokenize_register_or_ident(){const e=this.col;this.skip(),this.mark();let i=!1;for(;this.has_next();){const e=this.peek();if(!/\d/.test(e))break;i=!0,this.skip()}if(i){const i=parseInt(this.slice(),10);return{type:t.Register,col:e,len:this.marked_len()+1,value:i}}return this.back(),this.tokenize_ident()}tokenize_section(){const e=this.col;for(this.mark();this.has_next()&&!/\s/.test(this.peek());)this.skip();switch(this.slice()){case".code":return{type:t.CodeSection,col:e,len:5};case".data":return{type:t.DataSection,col:e,len:5};case".string":return{type:t.StringSection,col:e,len:7};default:return{type:t.InvalidSection,col:e,len:this.marked_len()}}}tokenize_string(){const e=this.col;this.mark(),this.skip();let i,o=!1,n=!1;e:for(;this.has_next();)switch(this.next()){case"\\":o=!0;break;case'"':if(!o){n=!0;break e}o=!1;break;default:o=!1}return i=n?JSON.parse(this.slice()):JSON.parse(this.slice()+'"'),{type:n?t.String:t.UnterminatedString,col:e,len:this.marked_len(),value:i}}tokenize_ident(){const e=this.col;for(this.mark();this.has_next()&&!/[\s,]/.test(this.peek());)this.skip();const i=this.slice(),o=/^[a-z][a-z0-9_=<>!]*$/.test(i)?t.Ident:t.InvalidIdent;return o===t.Ident?{type:o,col:e,len:this.marked_len(),value:i}:{type:o,col:e,len:this.marked_len()}}}!function(e){e[e.Any=0]="Any",e[e.Byte=1]="Byte",e[e.Word=2]="Word",e[e.DWord=3]="DWord",e[e.Float=4]="Float",e[e.Label=5]="Label",e[e.ILabel=6]="ILabel",e[e.DLabel=7]="DLabel",e[e.SLabel=8]="SLabel",e[e.String=9]="String",e[e.ILabelVar=10]="ILabelVar",e[e.RegRef=11]="RegRef",e[e.RegTupRef=12]="RegTupRef",e[e.RegRefVar=13]="RegRefVar",e[e.Pointer=14]="Pointer"}(_||(_={}));const s={kind:_.Any},r={kind:_.Byte},a={kind:_.Word},u={kind:_.DWord},N={kind:_.Float},l={kind:_.Label},p={kind:_.ILabel},R={kind:_.DLabel},g={kind:_.SLabel},f={kind:_.String},k={kind:_.ILabelVar},c={kind:_.RegRef},T={kind:_.RegRefVar},E={kind:_.Pointer};Math.pow(2,31),Math.pow(2,31),Math.pow(2,32);var W,O;!function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(W||(W={}));class h{constructor(e,i,o){this.type=e,this.doc=i,this.access=o}}!function(e){e[e.Push=0]="Push",e[e.Pop=1]="Pop"}(O||(O={}));const U=[],F=new Map;class A{constructor(e,i,o,n,d){this.code=e,this.mnemonic=i,this.doc=o,this.size=this.code<256?1:2,this.params=n,this.stack=d}}A.NOP=U[0]=new A(0,"nop","No operation, does nothing.",[],void 0),A.RET=U[1]=new A(1,"ret","Returns control to caller.",[],void 0),A.SYNC=U[2]=new A(2,"sync","Yields control for the rest of the current frame. Execution will continue the following frame.",[],void 0),A.EXIT=U[3]=new A(3,"exit",void 0,[new h(u,void 0,void 0)],O.Pop),A.THREAD=U[4]=new A(4,"thread","Starts a new thread. Thread execution will start at the given label.\nOften used to check a register every frame. Make sure to yield control with sync when looping.",[new h(p,void 0,void 0)],void 0),A.VA_START=U[5]=new A(5,"va_start","Initializes a variable argument list.\nMake sure to call va_end after va_start and va_call.",[],void 0),A.VA_END=U[6]=new A(6,"va_end","Restores the registers overwritten by arg_push* instructions.\nCalled after va_call.",[],void 0),A.VA_CALL=U[7]=new A(7,"va_call","Calls the variable argument function at the given label.\nCalled after initializing the argument list with va_start and pushing arguments onto the stack with arg_push* instructions. Make sure to call va_end afterwards.",[new h(p,void 0,void 0)],void 0),A.LET=U[8]=new A(8,"let","Sets the first register's value to second one's value.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.LETI=U[9]=new A(9,"leti","Sets a register to the given value.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.LETB=U[10]=new A(10,"letb","Sets a register to the given value.",[new h({kind:_.RegTupRef,register_tuples:[new h(r,void 0,W.Write)]},void 0,void 0),new h(r,void 0,void 0)],void 0),A.LETW=U[11]=new A(11,"letw","Sets a register to the given value.",[new h({kind:_.RegTupRef,register_tuples:[new h(a,void 0,W.Write)]},void 0,void 0),new h(a,void 0,void 0)],void 0),A.LETA=U[12]=new A(12,"leta","Sets the first register to the memory address of the second register. Not used by Sega.",[new h({kind:_.RegTupRef,register_tuples:[new h(E,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.LETO=U[13]=new A(13,"leto","Sets a register to the memory address of the given label. Not used by Sega.",[new h({kind:_.RegTupRef,register_tuples:[new h(E,void 0,W.Write)]},void 0,void 0),new h(l,void 0,void 0)],void 0),A.UNKNOWN_0E=U[14]=new A(14,"unknown_0e",void 0,[],void 0),A.UNKNOWN_0F=U[15]=new A(15,"unknown_0f",void 0,[],void 0),A.SET=U[16]=new A(16,"set","Sets a register to 1.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.CLEAR=U[17]=new A(17,"clear","Sets a register to 0.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.REV=U[18]=new A(18,"rev","Sets a register to 1 if its current value is 0, otherwise sets it to 0.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.ReadWrite)]},void 0,void 0)],void 0),A.GSET=U[19]=new A(19,"gset",void 0,[new h(a,void 0,void 0)],void 0),A.GCLEAR=U[20]=new A(20,"gclear",void 0,[new h(a,void 0,void 0)],void 0),A.GREV=U[21]=new A(21,"grev",void 0,[new h(a,void 0,void 0)],void 0),A.GLET=U[22]=new A(22,"glet",void 0,[new h(a,void 0,void 0)],void 0),A.GGET=U[23]=new A(23,"gget","Sets a register to value of the given flag.",[new h(a,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(a,void 0,W.Write)]},void 0,void 0)],void 0),A.ADD=U[24]=new A(24,"add",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.ADDI=U[25]=new A(25,"addi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.SUB=U[26]=new A(26,"sub",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.SUBI=U[27]=new A(27,"subi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.MUL=U[28]=new A(28,"mul",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.MULI=U[29]=new A(29,"muli",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.DIV=U[30]=new A(30,"div",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.DIVI=U[31]=new A(31,"divi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.AND=U[32]=new A(32,"and",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.ANDI=U[33]=new A(33,"andi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.OR=U[34]=new A(34,"or",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.ORI=U[35]=new A(35,"ori",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.XOR=U[36]=new A(36,"xor",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.XORI=U[37]=new A(37,"xori",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.MOD=U[38]=new A(38,"mod",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.MODI=U[39]=new A(39,"modi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.JMP=U[40]=new A(40,"jmp",void 0,[new h(p,void 0,void 0)],void 0),A.CALL=U[41]=new A(41,"call",void 0,[new h(p,void 0,void 0)],void 0),A.JMP_ON=U[42]=new A(42,"jmp_on",void 0,[new h(p,void 0,void 0),new h(T,void 0,W.Read)],void 0),A.JMP_OFF=U[43]=new A(43,"jmp_off",void 0,[new h(p,void 0,void 0),new h(T,void 0,W.Read)],void 0),A.JMP_E=U[44]=new A(44,"jmp_=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_E=U[45]=new A(45,"jmpi_=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMP_NE=U[46]=new A(46,"jmp_!=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_NE=U[47]=new A(47,"jmpi_!=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMP_G=U[48]=new A(48,"ujmp_>",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMPI_G=U[49]=new A(49,"ujmpi_>",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMP_G=U[50]=new A(50,"jmp_>",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_G=U[51]=new A(51,"jmpi_>",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMP_L=U[52]=new A(52,"ujmp_<",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMPI_L=U[53]=new A(53,"ujmpi_<",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMP_L=U[54]=new A(54,"jmp_<",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_L=U[55]=new A(55,"jmpi_<",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMP_GE=U[56]=new A(56,"ujmp_>=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMPI_GE=U[57]=new A(57,"ujmpi_>=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMP_GE=U[58]=new A(58,"jmp_>=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_GE=U[59]=new A(59,"jmpi_>=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMP_LE=U[60]=new A(60,"ujmp_<=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMPI_LE=U[61]=new A(61,"ujmpi_<=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMP_LE=U[62]=new A(62,"jmp_<=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_LE=U[63]=new A(63,"jmpi_<=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.SWITCH_JMP=U[64]=new A(64,"switch_jmp",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(k,void 0,void 0)],void 0),A.SWITCH_CALL=U[65]=new A(65,"switch_call",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(k,void 0,void 0)],void 0),A.STACK_PUSH=U[66]=new A(66,"stack_push",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.STACK_POP=U[67]=new A(67,"stack_pop",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.STACK_PUSHM=U[68]=new A(68,"stack_pushm","Pushes the values of an arbitrary amount of registers onto the stack.",[new h(c,void 0,W.Read),new h(u,void 0,void 0)],void 0),A.STACK_POPM=U[69]=new A(69,"stack_popm","Pops an arbitrary amount of values from the stack and writes them to registers.",[new h(c,void 0,W.Write),new h(u,void 0,void 0)],void 0),A.UNKNOWN_46=U[70]=new A(70,"unknown_46",void 0,[],void 0),A.UNKNOWN_47=U[71]=new A(71,"unknown_47",void 0,[],void 0),A.ARG_PUSHR=U[72]=new A(72,"arg_pushr","Pushes the value of the given register onto the stack.",[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],O.Push),A.ARG_PUSHL=U[73]=new A(73,"arg_pushl","Pushes the given value onto the stack.",[new h(u,void 0,void 0)],O.Push),A.ARG_PUSHB=U[74]=new A(74,"arg_pushb","Pushes the given value onto the stack.",[new h(r,void 0,void 0)],O.Push),A.ARG_PUSHW=U[75]=new A(75,"arg_pushw","Pushes the given value onto the stack.",[new h(a,void 0,void 0)],O.Push),A.ARG_PUSHA=U[76]=new A(76,"arg_pusha","Pushes the memory address of the given register onto the stack. Not used by Sega.",[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],O.Push),A.ARG_PUSHO=U[77]=new A(77,"arg_pusho","Pushes the memory address of the given label onto the stack. Not used by Sega.",[new h(l,void 0,void 0)],O.Push),A.ARG_PUSHS=U[78]=new A(78,"arg_pushs","Pushes the given value onto the stack.",[new h(f,void 0,void 0)],O.Push),A.UNKNOWN_4F=U[79]=new A(79,"unknown_4f",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.MESSAGE=U[80]=new A(80,"message",void 0,[new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.LIST=U[81]=new A(81,"list","Used to display a list of items and retrieve the item selected by the player.\nList items should be seperated by newlines. The selected item's index will be written to the given register.",[new h({kind:_.RegTupRef,register_tuples:[new h(r,void 0,W.Write)]},void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.FADEIN=U[82]=new A(82,"fadein",void 0,[],void 0),A.FADEOUT=U[83]=new A(83,"fadeout",void 0,[],void 0),A.SE=U[84]=new A(84,"se",void 0,[new h(u,void 0,void 0)],O.Pop),A.BGM=U[85]=new A(85,"bgm",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_56=U[86]=new A(86,"unknown_56",void 0,[],void 0),A.UNKNOWN_57=U[87]=new A(87,"unknown_57",void 0,[],void 0),A.ENABLE=U[88]=new A(88,"enable",void 0,[new h(u,void 0,void 0)],O.Pop),A.DISABLE=U[89]=new A(89,"disable",void 0,[new h(u,void 0,void 0)],O.Pop),A.WINDOW_MSG=U[90]=new A(90,"window_msg",void 0,[new h(f,void 0,void 0)],O.Pop),A.ADD_MSG=U[91]=new A(91,"add_msg",void 0,[new h(f,void 0,void 0)],O.Pop),A.MESEND=U[92]=new A(92,"mesend",void 0,[],void 0),A.GETTIME=U[93]=new A(93,"gettime",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.WINEND=U[94]=new A(94,"winend",void 0,[],void 0),A.UNKNOWN_5F=U[95]=new A(95,"unknown_5f",void 0,[],void 0),A.NPC_CRT_V3=U[96]=new A(96,"npc_crt_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_STOP=U[97]=new A(97,"npc_stop",void 0,[new h(u,void 0,void 0)],O.Pop),A.NPC_PLAY=U[98]=new A(98,"npc_play",void 0,[new h(u,void 0,void 0)],O.Pop),A.NPC_KILL=U[99]=new A(99,"npc_kill",void 0,[new h(u,void 0,void 0)],O.Pop),A.NPC_NONT=U[100]=new A(100,"npc_nont",void 0,[],void 0),A.NPC_TALK=U[101]=new A(101,"npc_talk",void 0,[],void 0),A.NPC_CRP_V3=U[102]=new A(102,"npc_crp_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read),new h(s,void 0,W.Read),new h(s,void 0,W.Read),new h(p,void 0,W.Read),new h(s,void 0,W.Read),new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_67=U[103]=new A(103,"unknown_67",void 0,[],void 0),A.CREATE_PIPE=U[104]=new A(104,"create_pipe",void 0,[new h(u,void 0,void 0)],O.Pop),A.P_HPSTAT_V3=U[105]=new A(105,"p_hpstat_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.P_DEAD_V3=U[106]=new A(106,"p_dead_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,"Player slot.",void 0)],O.Pop),A.P_DISABLEWARP=U[107]=new A(107,"p_disablewarp",void 0,[],void 0),A.P_ENABLEWARP=U[108]=new A(108,"p_enablewarp",void 0,[],void 0),A.P_MOVE_V3=U[109]=new A(109,"p_move_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.P_LOOK=U[110]=new A(110,"p_look",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_6F=U[111]=new A(111,"unknown_6f",void 0,[],void 0),A.P_ACTION_DISABLE=U[112]=new A(112,"p_action_disable",void 0,[],void 0),A.P_ACTION_ENABLE=U[113]=new A(113,"p_action_enable",void 0,[],void 0),A.DISABLE_MOVEMENT1=U[114]=new A(114,"disable_movement1",void 0,[new h(u,void 0,void 0)],O.Pop),A.ENABLE_MOVEMENT1=U[115]=new A(115,"enable_movement1",void 0,[new h(u,void 0,void 0)],O.Pop),A.P_NONCOL=U[116]=new A(116,"p_noncol",void 0,[],void 0),A.P_COL=U[117]=new A(117,"p_col",void 0,[],void 0),A.P_SETPOS=U[118]=new A(118,"p_setpos","Sets a player's position.",[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"X coordinate.",W.Read),new h(u,"Y coordinate.",W.Read),new h(u,"Z coordinate.",W.Read),new h(u,"Y-axis rotation.",W.Read)]},void 0,void 0)],O.Pop),A.P_RETURN_GUILD=U[119]=new A(119,"p_return_guild",void 0,[],void 0),A.P_TALK_GUILD=U[120]=new A(120,"p_talk_guild",void 0,[new h(u,void 0,void 0)],O.Pop),A.NPC_TALK_PL_V3=U[121]=new A(121,"npc_talk_pl_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_TALK_KILL=U[122]=new A(122,"npc_talk_kill",void 0,[new h(u,void 0,void 0)],O.Pop),A.NPC_CRTPK_V3=U[123]=new A(123,"npc_crtpk_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_CRPPK_V3=U[124]=new A(124,"npc_crppk_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_CRPTALK_V3=U[125]=new A(125,"npc_crptalk_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.P_LOOK_AT_V1=U[126]=new A(126,"p_look_at_v1",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.NPC_CRP_ID_V3=U[127]=new A(127,"npc_crp_id_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.CAM_QUAKE=U[128]=new A(128,"cam_quake",void 0,[],void 0),A.CAM_ADJ=U[129]=new A(129,"cam_adj",void 0,[],void 0),A.CAM_ZMIN=U[130]=new A(130,"cam_zmin",void 0,[],void 0),A.CAM_ZMOUT=U[131]=new A(131,"cam_zmout",void 0,[],void 0),A.CAM_PAN_V3=U[132]=new A(132,"cam_pan_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.GAME_LEV_SUPER=U[133]=new A(133,"game_lev_super",void 0,[],void 0),A.GAME_LEV_RESET=U[134]=new A(134,"game_lev_reset",void 0,[],void 0),A.POS_PIPE_V3=U[135]=new A(135,"pos_pipe_v3","Create a telepipe at a specific position for the given player slot that takes players back to Pioneer 2 or the Lab.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"X coordinate.",W.Read),new h(u,"Y coordinate.",W.Read),new h(u,"Z coordinate.",W.Read),new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.IF_ZONE_CLEAR=U[136]=new A(136,"if_zone_clear",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.CHK_ENE_NUM=U[137]=new A(137,"chk_ene_num","Retrieves the amount of enemies killed during the quest.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNHIDE_OBJ=U[138]=new A(138,"unhide_obj",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNHIDE_ENE=U[139]=new A(139,"unhide_ene",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.AT_COORDS_CALL=U[140]=new A(140,"at_coords_call",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(p,void 0,W.Read)]},void 0,void 0)],void 0),A.AT_COORDS_TALK=U[141]=new A(141,"at_coords_talk",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(p,void 0,W.Read)]},void 0,void 0)],void 0),A.COL_NPCIN=U[142]=new A(142,"col_npcin",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(p,void 0,W.Read)]},void 0,void 0)],void 0),A.COL_NPCINR=U[143]=new A(143,"col_npcinr",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.SWITCH_ON=U[144]=new A(144,"switch_on",void 0,[new h(u,void 0,void 0)],O.Pop),A.SWITCH_OFF=U[145]=new A(145,"switch_off",void 0,[new h(u,void 0,void 0)],O.Pop),A.PLAYBGM_EPI=U[146]=new A(146,"playbgm_epi",void 0,[new h(u,void 0,void 0)],O.Pop),A.SET_MAINWARP=U[147]=new A(147,"set_mainwarp",void 0,[new h(u,void 0,void 0)],O.Pop),A.SET_OBJ_PARAM=U[148]=new A(148,"set_obj_param","Creates a targetable object.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"X coordinate.",W.Read),new h(u,"Y coordinate.",W.Read),new h(u,"Z coordinate.",W.Read),new h(u,"Collision radius.",W.Read),new h(p,"Function label.",W.Read),new h(u,"Vertical position of the cursor.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},"Object handle.",void 0)],void 0),A.SET_FLOOR_HANDLER=U[149]=new A(149,"set_floor_handler",void 0,[new h(u,"Floor number.",void 0),new h(p,"Handler function label.",void 0)],O.Pop),A.CLR_FLOOR_HANDLER=U[150]=new A(150,"clr_floor_handler",void 0,[new h(u,"Floor number.",void 0)],O.Pop),A.COL_PLINAW=U[151]=new A(151,"col_plinaw",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.HUD_HIDE=U[152]=new A(152,"hud_hide",void 0,[],void 0),A.HUD_SHOW=U[153]=new A(153,"hud_show",void 0,[],void 0),A.CINE_ENABLE=U[154]=new A(154,"cine_enable",void 0,[],void 0),A.CINE_DISABLE=U[155]=new A(155,"cine_disable",void 0,[],void 0),A.UNKNOWN_9C=U[156]=new A(156,"unknown_9c",void 0,[],void 0),A.UNKNOWN_9D=U[157]=new A(157,"unknown_9d",void 0,[],void 0),A.UNKNOWN_9E=U[158]=new A(158,"unknown_9e",void 0,[],void 0),A.UNKNOWN_9F=U[159]=new A(159,"unknown_9f",void 0,[],void 0),A.UNKNOWN_A0=U[160]=new A(160,"unknown_a0",void 0,[],void 0),A.SET_QT_FAILURE=U[161]=new A(161,"set_qt_failure",void 0,[new h(p,void 0,void 0)],void 0),A.SET_QT_SUCCESS=U[162]=new A(162,"set_qt_success",void 0,[new h(p,void 0,void 0)],void 0),A.CLR_QT_FAILURE=U[163]=new A(163,"clr_qt_failure",void 0,[],void 0),A.CLR_QT_SUCCESS=U[164]=new A(164,"clr_qt_success",void 0,[],void 0),A.SET_QT_CANCEL=U[165]=new A(165,"set_qt_cancel",void 0,[new h(p,void 0,void 0)],void 0),A.CLR_QT_CANCEL=U[166]=new A(166,"clr_qt_cancel",void 0,[],void 0),A.UNKNOWN_A7=U[167]=new A(167,"unknown_a7",void 0,[],void 0),A.PL_WALK_V3=U[168]=new A(168,"pl_walk_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_A9=U[169]=new A(169,"unknown_a9",void 0,[],void 0),A.UNKNOWN_AA=U[170]=new A(170,"unknown_aa",void 0,[],void 0),A.UNKNOWN_AB=U[171]=new A(171,"unknown_ab",void 0,[],void 0),A.UNKNOWN_AC=U[172]=new A(172,"unknown_ac",void 0,[],void 0),A.UNKNOWN_AD=U[173]=new A(173,"unknown_ad",void 0,[],void 0),A.UNKNOWN_AE=U[174]=new A(174,"unknown_ae",void 0,[],void 0),A.UNKNOWN_AF=U[175]=new A(175,"unknown_af",void 0,[],void 0),A.PL_ADD_MESETA=U[176]=new A(176,"pl_add_meseta",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.THREAD_STG=U[177]=new A(177,"thread_stg",void 0,[new h(p,void 0,void 0)],void 0),A.DEL_OBJ_PARAM=U[178]=new A(178,"del_obj_param",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},"Object handle.",void 0)],void 0),A.ITEM_CREATE=U[179]=new A(179,"item_create",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.ITEM_CREATE2=U[180]=new A(180,"item_create2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.ITEM_DELETE=U[181]=new A(181,"item_delete",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.ITEM_DELETE2=U[182]=new A(182,"item_delete2","Deletes an item from the player's inventory.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.ITEM_CHECK=U[183]=new A(183,"item_check",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.SETEVT=U[184]=new A(184,"setevt",void 0,[new h(u,void 0,void 0)],O.Pop),A.GET_DIFFLVL=U[185]=new A(185,"get_difflvl","Sets the given register to the current difficulty. 0 For normal, 1 for hard and 2 for both very hard and ultimate.\nUse get_difficulty_level2 if you want to differentiate between very hard and ultimate.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.SET_QT_EXIT=U[186]=new A(186,"set_qt_exit",void 0,[new h(p,void 0,void 0)],void 0),A.CLR_QT_EXIT=U[187]=new A(187,"clr_qt_exit",void 0,[],void 0),A.UNKNOWN_BC=U[188]=new A(188,"unknown_bc",void 0,[],void 0),A.UNKNOWN_BD=U[189]=new A(189,"unknown_bd",void 0,[],void 0),A.UNKNOWN_BE=U[190]=new A(190,"unknown_be",void 0,[],void 0),A.UNKNOWN_BF=U[191]=new A(191,"unknown_bf",void 0,[],void 0),A.PARTICLE_V3=U[192]=new A(192,"particle_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_TEXT=U[193]=new A(193,"npc_text",void 0,[new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.NPC_CHKWARP=U[194]=new A(194,"npc_chkwarp",void 0,[],void 0),A.PL_PKOFF=U[195]=new A(195,"pl_pkoff",void 0,[],void 0),A.MAP_DESIGNATE=U[196]=new A(196,"map_designate",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.MASTERKEY_ON=U[197]=new A(197,"masterkey_on",void 0,[],void 0),A.MASTERKEY_OFF=U[198]=new A(198,"masterkey_off",void 0,[],void 0),A.WINDOW_TIME=U[199]=new A(199,"window_time",void 0,[],void 0),A.WINEND_TIME=U[200]=new A(200,"winend_time",void 0,[],void 0),A.WINSET_TIME=U[201]=new A(201,"winset_time",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GETMTIME=U[202]=new A(202,"getmtime",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.SET_QUEST_BOARD_HANDLER=U[203]=new A(203,"set_quest_board_handler",void 0,[new h(u,void 0,void 0),new h(p,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.CLEAR_QUEST_BOARD_HANDLER=U[204]=new A(204,"clear_quest_board_handler",void 0,[new h(u,void 0,void 0)],O.Pop),A.PARTICLE_ID_V3=U[205]=new A(205,"particle_id_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_CRPTALK_ID_V3=U[206]=new A(206,"npc_crptalk_id_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_LANG_CLEAN=U[207]=new A(207,"npc_lang_clean",void 0,[],void 0),A.PL_PKON=U[208]=new A(208,"pl_pkon",void 0,[],void 0),A.PL_CHK_ITEM2=U[209]=new A(209,"pl_chk_item2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.ENABLE_MAINMENU=U[210]=new A(210,"enable_mainmenu",void 0,[],void 0),A.DISABLE_MAINMENU=U[211]=new A(211,"disable_mainmenu",void 0,[],void 0),A.START_BATTLEBGM=U[212]=new A(212,"start_battlebgm",void 0,[],void 0),A.END_BATTLEBGM=U[213]=new A(213,"end_battlebgm",void 0,[],void 0),A.DISP_MSG_QB=U[214]=new A(214,"disp_msg_qb",void 0,[new h(f,void 0,void 0)],O.Pop),A.CLOSE_MSG_QB=U[215]=new A(215,"close_msg_qb",void 0,[],void 0),A.SET_EVENTFLAG_V3=U[216]=new A(216,"set_eventflag_v3",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.SYNC_LETI=U[217]=new A(217,"sync_leti",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.SET_RETURNHUNTER=U[218]=new A(218,"set_returnhunter",void 0,[],void 0),A.SET_RETURNCITY=U[219]=new A(219,"set_returncity",void 0,[],void 0),A.LOAD_PVR=U[220]=new A(220,"load_pvr",void 0,[],void 0),A.LOAD_MIDI=U[221]=new A(221,"load_midi",void 0,[],void 0),A.UNKNOWN_DE=U[222]=new A(222,"unknown_de",void 0,[],void 0),A.NPC_PARAM_V3=U[223]=new A(223,"npc_param_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.PAD_DRAGON=U[224]=new A(224,"pad_dragon",void 0,[],void 0),A.CLEAR_MAINWARP=U[225]=new A(225,"clear_mainwarp",void 0,[new h(u,void 0,void 0)],O.Pop),A.PCAM_PARAM_V3=U[226]=new A(226,"pcam_param_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.START_SETEVT_V3=U[227]=new A(227,"start_setevt_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.WARP_ON=U[228]=new A(228,"warp_on",void 0,[],void 0),A.WARP_OFF=U[229]=new A(229,"warp_off",void 0,[],void 0),A.GET_SLOTNUMBER=U[230]=new A(230,"get_slotnumber",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_SERVERNUMBER=U[231]=new A(231,"get_servernumber",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.SET_EVENTFLAG2=U[232]=new A(232,"set_eventflag2",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],O.Pop),A.RES=U[233]=new A(233,"res",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_EA=U[234]=new A(234,"unknown_ea",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.ENABLE_BGMCTRL=U[235]=new A(235,"enable_bgmctrl",void 0,[new h(u,void 0,void 0)],O.Pop),A.SW_SEND=U[236]=new A(236,"sw_send",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.CREATE_BGMCTRL=U[237]=new A(237,"create_bgmctrl",void 0,[],void 0),A.PL_ADD_MESETA2=U[238]=new A(238,"pl_add_meseta2",void 0,[new h(u,void 0,void 0)],O.Pop),A.SYNC_REGISTER=U[239]=new A(239,"sync_register",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.SEND_REGWORK=U[240]=new A(240,"send_regwork",void 0,[],void 0),A.LETI_FIXED_CAMERA_V3=U[241]=new A(241,"leti_fixed_camera_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.DEFAULT_CAMERA_POS1=U[242]=new A(242,"default_camera_pos1",void 0,[],void 0),A.UNKNOWN_F3=U[243]=new A(243,"unknown_f3",void 0,[],void 0),A.UNKNOWN_F4=U[244]=new A(244,"unknown_f4",void 0,[],void 0),A.UNKNOWN_F5=U[245]=new A(245,"unknown_f5",void 0,[],void 0),A.UNKNOWN_F6=U[246]=new A(246,"unknown_f6",void 0,[],void 0),A.UNKNOWN_F7=U[247]=new A(247,"unknown_f7",void 0,[],void 0),A.UNKNOWN_F8=U[248]=new A(248,"unknown_f8",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F9=U[249]=new A(249,"unknown_f9",void 0,[],void 0),A.GET_GC_NUMBER=U[250]=new A(250,"get_gc_number",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_FB=U[251]=new A(251,"unknown_fb",void 0,[new h(a,void 0,void 0)],void 0),A.UNKNOWN_FC=U[252]=new A(252,"unknown_fc",void 0,[],void 0),A.UNKNOWN_FD=U[253]=new A(253,"unknown_fd",void 0,[],void 0),A.UNKNOWN_FE=U[254]=new A(254,"unknown_fe",void 0,[],void 0),A.UNKNOWN_FF=U[255]=new A(255,"unknown_ff",void 0,[],void 0),A.UNKNOWN_F800=U[63488]=new A(63488,"unknown_f800",void 0,[],void 0),A.SET_CHAT_CALLBACK=U[63489]=new A(63489,"set_chat_callback",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.UNKNOWN_F802=U[63490]=new A(63490,"unknown_f802",void 0,[],void 0),A.UNKNOWN_F803=U[63491]=new A(63491,"unknown_f803",void 0,[],void 0),A.UNKNOWN_F804=U[63492]=new A(63492,"unknown_f804",void 0,[],void 0),A.UNKNOWN_F805=U[63493]=new A(63493,"unknown_f805",void 0,[],void 0),A.UNKNOWN_F806=U[63494]=new A(63494,"unknown_f806",void 0,[],void 0),A.UNKNOWN_F807=U[63495]=new A(63495,"unknown_f807",void 0,[],void 0),A.GET_DIFFICULTY_LEVEL2=U[63496]=new A(63496,"get_difficulty_level2","Sets the given register to the current difficulty. 0 For normal, 1 for hard, 2 for very hard and 3 for ultimate.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_NUMBER_OF_PLAYER1=U[63497]=new A(63497,"get_number_of_player1","Set the given register to the current number of players. Either 1, 2, 3 or 4.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_COORD_OF_PLAYER=U[63498]=new A(63498,"get_coord_of_player","Retrieves a player's position.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"X coordinate.",W.Write),new h(u,"Y coordinate.",W.Write),new h(u,"Z coordinate.",W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.ENABLE_MAP=U[63499]=new A(63499,"enable_map",void 0,[],void 0),A.DISABLE_MAP=U[63500]=new A(63500,"disable_map",void 0,[],void 0),A.MAP_DESIGNATE_EX=U[63501]=new A(63501,"map_designate_ex",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F80E=U[63502]=new A(63502,"unknown_f80e",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F80F=U[63503]=new A(63503,"unknown_f80f",void 0,[new h(u,void 0,void 0)],O.Pop),A.BA_INITIAL_FLOOR=U[63504]=new A(63504,"ba_initial_floor",void 0,[new h(u,void 0,void 0)],O.Pop),A.SET_BA_RULES=U[63505]=new A(63505,"set_ba_rules",void 0,[],void 0),A.UNKNOWN_F812=U[63506]=new A(63506,"unknown_f812",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F813=U[63507]=new A(63507,"unknown_f813",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F814=U[63508]=new A(63508,"unknown_f814",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F815=U[63509]=new A(63509,"unknown_f815",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F816=U[63510]=new A(63510,"unknown_f816",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F817=U[63511]=new A(63511,"unknown_f817",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F818=U[63512]=new A(63512,"unknown_f818",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F819=U[63513]=new A(63513,"unknown_f819",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F81A=U[63514]=new A(63514,"unknown_f81a",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F81B=U[63515]=new A(63515,"unknown_f81b",void 0,[new h(u,void 0,void 0)],O.Pop),A.BA_DISP_MSG=U[63516]=new A(63516,"ba_disp_msg",void 0,[new h(f,void 0,void 0)],O.Pop),A.DEATH_LVL_UP=U[63517]=new A(63517,"death_lvl_up",void 0,[new h(u,void 0,void 0)],O.Pop),A.DEATH_TECH_LVL_UP=U[63518]=new A(63518,"death_tech_lvl_up",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F81F=U[63519]=new A(63519,"unknown_f81f",void 0,[],void 0),A.CMODE_STAGE=U[63520]=new A(63520,"cmode_stage",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F821=U[63521]=new A(63521,"unknown_f821",void 0,[],void 0),A.UNKNOWN_F822=U[63522]=new A(63522,"unknown_f822",void 0,[],void 0),A.UNKNOWN_F823=U[63523]=new A(63523,"unknown_f823",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F824=U[63524]=new A(63524,"unknown_f824",void 0,[new h(u,void 0,void 0)],O.Pop),A.EXP_MULTIPLICATION=U[63525]=new A(63525,"exp_multiplication",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.EXP_DIVISION=U[63526]=new A(63526,"exp_division",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_USER_IS_DEAD=U[63527]=new A(63527,"get_user_is_dead",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GO_FLOOR=U[63528]=new A(63528,"go_floor","Sends a player to the given floor.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Floor ID.",W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F829=U[63529]=new A(63529,"unknown_f829",void 0,[],void 0),A.UNKNOWN_F82A=U[63530]=new A(63530,"unknown_f82a",void 0,[],void 0),A.UNLOCK_DOOR2=U[63531]=new A(63531,"unlock_door2",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.LOCK_DOOR2=U[63532]=new A(63532,"lock_door2",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.IF_SWITCH_NOT_PRESSED=U[63533]=new A(63533,"if_switch_not_pressed",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.IF_SWITCH_PRESSED=U[63534]=new A(63534,"if_switch_pressed",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Floor ID.",W.Read),new h(u,"Switch ID.",W.Read),new h(u,"Will be set to 1 if the switch is pressed, 0 otherwise.",W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F82F=U[63535]=new A(63535,"unknown_f82f",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.CONTROL_DRAGON=U[63536]=new A(63536,"control_dragon",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.RELEASE_DRAGON=U[63537]=new A(63537,"release_dragon",void 0,[],void 0),A.UNKNOWN_F832=U[63538]=new A(63538,"unknown_f832",void 0,[],void 0),A.UNKNOWN_F833=U[63539]=new A(63539,"unknown_f833",void 0,[],void 0),A.UNKNOWN_F834=U[63540]=new A(63540,"unknown_f834",void 0,[],void 0),A.UNKNOWN_F835=U[63541]=new A(63541,"unknown_f835",void 0,[],void 0),A.UNKNOWN_F836=U[63542]=new A(63542,"unknown_f836",void 0,[],void 0),A.UNKNOWN_F837=U[63543]=new A(63543,"unknown_f837",void 0,[],void 0),A.SHRINK=U[63544]=new A(63544,"shrink",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.UNSHRINK=U[63545]=new A(63545,"unshrink",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F83A=U[63546]=new A(63546,"unknown_f83a",void 0,[],void 0),A.UNKNOWN_F83B=U[63547]=new A(63547,"unknown_f83b",void 0,[],void 0),A.DISPLAY_CLOCK2=U[63548]=new A(63548,"display_clock2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F83D=U[63549]=new A(63549,"unknown_f83d",void 0,[new h(u,void 0,void 0)],O.Pop),A.DELETE_AREA_TITLE=U[63550]=new A(63550,"delete_area_title",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F83F=U[63551]=new A(63551,"unknown_f83f",void 0,[],void 0),A.LOAD_NPC_DATA=U[63552]=new A(63552,"load_npc_data",void 0,[],void 0),A.GET_NPC_DATA=U[63553]=new A(63553,"get_npc_data",void 0,[new h(R,void 0,void 0)],void 0),A.UNKNOWN_F842=U[63554]=new A(63554,"unknown_f842",void 0,[],void 0),A.UNKNOWN_F843=U[63555]=new A(63555,"unknown_f843",void 0,[],void 0),A.UNKNOWN_F844=U[63556]=new A(63556,"unknown_f844",void 0,[],void 0),A.UNKNOWN_F845=U[63557]=new A(63557,"unknown_f845",void 0,[],void 0),A.UNKNOWN_F846=U[63558]=new A(63558,"unknown_f846",void 0,[],void 0),A.UNKNOWN_F847=U[63559]=new A(63559,"unknown_f847",void 0,[],void 0),A.GIVE_DAMAGE_SCORE=U[63560]=new A(63560,"give_damage_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.TAKE_DAMAGE_SCORE=U[63561]=new A(63561,"take_damage_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNK_SCORE_F84A=U[63562]=new A(63562,"unk_score_f84a",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNK_SCORE_F84B=U[63563]=new A(63563,"unk_score_f84b",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.KILL_SCORE=U[63564]=new A(63564,"kill_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.DEATH_SCORE=U[63565]=new A(63565,"death_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNK_SCORE_F84E=U[63566]=new A(63566,"unk_score_f84e",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.ENEMY_DEATH_SCORE=U[63567]=new A(63567,"enemy_death_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.MESETA_SCORE=U[63568]=new A(63568,"meseta_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F851=U[63569]=new A(63569,"unknown_f851",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F852=U[63570]=new A(63570,"unknown_f852",void 0,[new h(u,void 0,void 0)],O.Pop),A.REVERSE_WARPS=U[63571]=new A(63571,"reverse_warps",void 0,[],void 0),A.UNREVERSE_WARPS=U[63572]=new A(63572,"unreverse_warps",void 0,[],void 0),A.SET_ULT_MAP=U[63573]=new A(63573,"set_ult_map",void 0,[],void 0),A.UNSET_ULT_MAP=U[63574]=new A(63574,"unset_ult_map",void 0,[],void 0),A.SET_AREA_TITLE=U[63575]=new A(63575,"set_area_title",void 0,[new h(f,void 0,void 0)],O.Pop),A.UNKNOWN_F858=U[63576]=new A(63576,"unknown_f858",void 0,[],void 0),A.UNKNOWN_F859=U[63577]=new A(63577,"unknown_f859",void 0,[],void 0),A.EQUIP_ITEM=U[63578]=new A(63578,"equip_item",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNEQUIP_ITEM=U[63579]=new A(63579,"unequip_item",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F85C=U[63580]=new A(63580,"unknown_f85c",void 0,[],void 0),A.UNKNOWN_F85D=U[63581]=new A(63581,"unknown_f85d",void 0,[],void 0),A.UNKNOWN_F85E=U[63582]=new A(63582,"unknown_f85e",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F85F=U[63583]=new A(63583,"unknown_f85f",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F860=U[63584]=new A(63584,"unknown_f860",void 0,[],void 0),A.UNKNOWN_F861=U[63585]=new A(63585,"unknown_f861",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F862=U[63586]=new A(63586,"unknown_f862",void 0,[],void 0),A.UNKNOWN_F863=U[63587]=new A(63587,"unknown_f863",void 0,[],void 0),A.CMODE_RANK=U[63588]=new A(63588,"cmode_rank",void 0,[new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.AWARD_ITEM_NAME=U[63589]=new A(63589,"award_item_name",void 0,[],void 0),A.AWARD_ITEM_SELECT=U[63590]=new A(63590,"award_item_select",void 0,[],void 0),A.AWARD_ITEM_GIVE_TO=U[63591]=new A(63591,"award_item_give_to",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F868=U[63592]=new A(63592,"unknown_f868",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F869=U[63593]=new A(63593,"unknown_f869",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.ITEM_CREATE_CMODE=U[63594]=new A(63594,"item_create_cmode",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F86B=U[63595]=new A(63595,"unknown_f86b",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.AWARD_ITEM_OK=U[63596]=new A(63596,"award_item_ok",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F86D=U[63597]=new A(63597,"unknown_f86d",void 0,[],void 0),A.UNKNOWN_F86E=U[63598]=new A(63598,"unknown_f86e",void 0,[],void 0),A.BA_SET_LIVES=U[63599]=new A(63599,"ba_set_lives",void 0,[new h(u,void 0,void 0)],O.Pop),A.BA_SET_TECH_LVL=U[63600]=new A(63600,"ba_set_tech_lvl",void 0,[new h(u,void 0,void 0)],O.Pop),A.BA_SET_LVL=U[63601]=new A(63601,"ba_set_lvl",void 0,[new h(u,void 0,void 0)],O.Pop),A.BA_SET_TIME_LIMIT=U[63602]=new A(63602,"ba_set_time_limit",void 0,[new h(u,void 0,void 0)],O.Pop),A.BOSS_IS_DEAD=U[63603]=new A(63603,"boss_is_dead",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F874=U[63604]=new A(63604,"unknown_f874",void 0,[],void 0),A.UNKNOWN_F875=U[63605]=new A(63605,"unknown_f875",void 0,[],void 0),A.UNKNOWN_F876=U[63606]=new A(63606,"unknown_f876",void 0,[],void 0),A.ENABLE_TECHS=U[63607]=new A(63607,"enable_techs","Enables technique use for the given player.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.DISABLE_TECHS=U[63608]=new A(63608,"disable_techs","Disables technique use for the given player.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.GET_GENDER=U[63609]=new A(63609,"get_gender","Retrieves the player's gender. 0 If male, 1 if female.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player gender.",W.Write)]},void 0,void 0)],void 0),A.GET_CHARA_CLASS=U[63610]=new A(63610,"get_chara_class","Retrieves the player's race and character class.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player race. 0 If human, 1 if newman, 2 if cast.",W.Write),new h(u,"Player class. 0 If hunter, 1 if ranger, 2 if force.",W.Write)]},void 0,void 0)],void 0),A.TAKE_SLOT_MESETA=U[63611]=new A(63611,"take_slot_meseta","Takes an amount of meseta from a player's inventory.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read),new h(u,"Amount of meseta to take.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Will be set to 1 if the meseta was taken, 0 otherwise.",W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F87C=U[63612]=new A(63612,"unknown_f87c",void 0,[],void 0),A.UNKNOWN_F87D=U[63613]=new A(63613,"unknown_f87d",void 0,[],void 0),A.UNKNOWN_F87E=U[63614]=new A(63614,"unknown_f87e",void 0,[],void 0),A.READ_GUILDCARD_FLAG=U[63615]=new A(63615,"read_guildcard_flag",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F880=U[63616]=new A(63616,"unknown_f880",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_PL_NAME=U[63617]=new A(63617,"get_pl_name","Sets the value of <pl_name> to the given player's name.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F882=U[63618]=new A(63618,"unknown_f882",void 0,[],void 0),A.UNKNOWN_F883=U[63619]=new A(63619,"unknown_f883",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F884=U[63620]=new A(63620,"unknown_f884",void 0,[],void 0),A.UNKNOWN_F885=U[63621]=new A(63621,"unknown_f885",void 0,[],void 0),A.UNKNOWN_F886=U[63622]=new A(63622,"unknown_f886",void 0,[],void 0),A.UNKNOWN_F887=U[63623]=new A(63623,"unknown_f887",void 0,[],void 0),A.UNKNOWN_F888=U[63624]=new A(63624,"unknown_f888",void 0,[],void 0),A.UNKNOWN_F889=U[63625]=new A(63625,"unknown_f889",void 0,[],void 0),A.GET_PLAYER_STATUS=U[63626]=new A(63626,"get_player_status",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.SEND_MAIL=U[63627]=new A(63627,"send_mail",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.ONLINE_CHECK=U[63628]=new A(63628,"online_check",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.CHL_SET_TIMERECORD=U[63629]=new A(63629,"chl_set_timerecord",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.CHL_GET_TIMERECORD=U[63630]=new A(63630,"chl_get_timerecord",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F88F=U[63631]=new A(63631,"unknown_f88f",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F890=U[63632]=new A(63632,"unknown_f890",void 0,[],void 0),A.LOAD_ENEMY_DATA=U[63633]=new A(63633,"load_enemy_data",void 0,[new h(u,void 0,void 0)],O.Pop),A.GET_PHYSICAL_DATA=U[63634]=new A(63634,"get_physical_data",void 0,[new h(a,void 0,void 0)],void 0),A.GET_ATTACK_DATA=U[63635]=new A(63635,"get_attack_data",void 0,[new h(a,void 0,void 0)],void 0),A.GET_RESIST_DATA=U[63636]=new A(63636,"get_resist_data",void 0,[new h(a,void 0,void 0)],void 0),A.GET_MOVEMENT_DATA=U[63637]=new A(63637,"get_movement_data",void 0,[new h(a,void 0,void 0)],void 0),A.UNKNOWN_F896=U[63638]=new A(63638,"unknown_f896",void 0,[],void 0),A.UNKNOWN_F897=U[63639]=new A(63639,"unknown_f897",void 0,[],void 0),A.SHIFT_LEFT=U[63640]=new A(63640,"shift_left",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.SHIFT_RIGHT=U[63641]=new A(63641,"shift_right",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.GET_RANDOM=U[63642]=new A(63642,"get_random",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.RESET_MAP=U[63643]=new A(63643,"reset_map","Sets all registers to 0 and resets the quest.",[],void 0),A.DISP_CHL_RETRY_MENU=U[63644]=new A(63644,"disp_chl_retry_menu",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.CHL_REVERSER=U[63645]=new A(63645,"chl_reverser",void 0,[],void 0),A.UNKNOWN_F89E=U[63646]=new A(63646,"unknown_f89e",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F89F=U[63647]=new A(63647,"unknown_f89f",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F8A0=U[63648]=new A(63648,"unknown_f8a0",void 0,[],void 0),A.UNKNOWN_F8A1=U[63649]=new A(63649,"unknown_f8a1",void 0,[],void 0),A.UNKNOWN_F8A2=U[63650]=new A(63650,"unknown_f8a2",void 0,[],void 0),A.UNKNOWN_F8A3=U[63651]=new A(63651,"unknown_f8a3",void 0,[],void 0),A.UNKNOWN_F8A4=U[63652]=new A(63652,"unknown_f8a4",void 0,[],void 0),A.UNKNOWN_F8A5=U[63653]=new A(63653,"unknown_f8a5",void 0,[],void 0),A.UNKNOWN_F8A6=U[63654]=new A(63654,"unknown_f8a6",void 0,[],void 0),A.UNKNOWN_F8A7=U[63655]=new A(63655,"unknown_f8a7",void 0,[],void 0),A.UNKNOWN_F8A8=U[63656]=new A(63656,"unknown_f8a8",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F8A9=U[63657]=new A(63657,"unknown_f8a9",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F8AA=U[63658]=new A(63658,"unknown_f8aa",void 0,[],void 0),A.UNKNOWN_F8AB=U[63659]=new A(63659,"unknown_f8ab",void 0,[],void 0),A.UNKNOWN_F8AC=U[63660]=new A(63660,"unknown_f8ac",void 0,[],void 0),A.GET_NUMBER_OF_PLAYER2=U[63661]=new A(63661,"get_number_of_player2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F8AE=U[63662]=new A(63662,"unknown_f8ae",void 0,[],void 0),A.UNKNOWN_F8AF=U[63663]=new A(63663,"unknown_f8af",void 0,[],void 0),A.UNKNOWN_F8B0=U[63664]=new A(63664,"unknown_f8b0",void 0,[],void 0),A.UNKNOWN_F8B1=U[63665]=new A(63665,"unknown_f8b1",void 0,[],void 0),A.UNKNOWN_F8B2=U[63666]=new A(63666,"unknown_f8b2",void 0,[],void 0),A.UNKNOWN_F8B3=U[63667]=new A(63667,"unknown_f8b3",void 0,[],void 0),A.UNKNOWN_F8B4=U[63668]=new A(63668,"unknown_f8b4",void 0,[],void 0),A.UNKNOWN_F8B5=U[63669]=new A(63669,"unknown_f8b5",void 0,[],void 0),A.UNKNOWN_F8B6=U[63670]=new A(63670,"unknown_f8b6",void 0,[],void 0),A.UNKNOWN_F8B7=U[63671]=new A(63671,"unknown_f8b7",void 0,[],void 0),A.UNKNOWN_F8B8=U[63672]=new A(63672,"unknown_f8b8",void 0,[],void 0),A.CHL_RECOVERY=U[63673]=new A(63673,"chl_recovery",void 0,[],void 0),A.UNKNOWN_F8BA=U[63674]=new A(63674,"unknown_f8ba",void 0,[],void 0),A.UNKNOWN_F8BB=U[63675]=new A(63675,"unknown_f8bb",void 0,[],void 0),A.SET_EPISODE=U[63676]=new A(63676,"set_episode",void 0,[new h(u,void 0,void 0)],void 0),A.UNKNOWN_F8BD=U[63677]=new A(63677,"unknown_f8bd",void 0,[],void 0),A.UNKNOWN_F8BE=U[63678]=new A(63678,"unknown_f8be",void 0,[],void 0),A.UNKNOWN_F8BF=U[63679]=new A(63679,"unknown_f8bf",void 0,[],void 0),A.FILE_DL_REQ=U[63680]=new A(63680,"file_dl_req",void 0,[new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.GET_DL_STATUS=U[63681]=new A(63681,"get_dl_status",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GBA_UNKNOWN4=U[63682]=new A(63682,"gba_unknown4",void 0,[],void 0),A.GET_GBA_STATE=U[63683]=new A(63683,"get_gba_state",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F8C4=U[63684]=new A(63684,"unknown_f8c4",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F8C5=U[63685]=new A(63685,"unknown_f8c5",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.QEXIT=U[63686]=new A(63686,"qexit",void 0,[],void 0),A.USE_ANIMATION=U[63687]=new A(63687,"use_animation",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Animation ID.",W.Read),new h(u,"Animation duration in number of frames.",W.Read)]},void 0,void 0)],void 0),A.STOP_ANIMATION=U[63688]=new A(63688,"stop_animation",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.RUN_TO_COORD=U[63689]=new A(63689,"run_to_coord",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_INVINCIBLE=U[63690]=new A(63690,"set_slot_invincible",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8CB=U[63691]=new A(63691,"unknown_f8cb",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_POISON=U[63692]=new A(63692,"set_slot_poison",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_PARALYZE=U[63693]=new A(63693,"set_slot_paralyze",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_SHOCK=U[63694]=new A(63694,"set_slot_shock",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_FREEZE=U[63695]=new A(63695,"set_slot_freeze",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_SLOW=U[63696]=new A(63696,"set_slot_slow",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_CONFUSE=U[63697]=new A(63697,"set_slot_confuse",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_SHIFTA=U[63698]=new A(63698,"set_slot_shifta",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_DEBAND=U[63699]=new A(63699,"set_slot_deband",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_JELLEN=U[63700]=new A(63700,"set_slot_jellen",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_ZALURE=U[63701]=new A(63701,"set_slot_zalure",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.FLETI_FIXED_CAMERA=U[63702]=new A(63702,"fleti_fixed_camera",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],O.Pop),A.FLETI_LOCKED_CAMERA=U[63703]=new A(63703,"fleti_locked_camera",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],O.Pop),A.DEFAULT_CAMERA_POS2=U[63704]=new A(63704,"default_camera_pos2",void 0,[],void 0),A.SET_MOTION_BLUR=U[63705]=new A(63705,"set_motion_blur",void 0,[],void 0),A.SET_SCREEN_BW=U[63706]=new A(63706,"set_screen_bw",void 0,[],void 0),A.UNKNOWN_F8DB=U[63707]=new A(63707,"unknown_f8db",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(a,void 0,void 0)],O.Pop),A.NPC_ACTION_STRING=U[63708]=new A(63708,"npc_action_string",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(g,void 0,void 0)],void 0),A.GET_PAD_COND=U[63709]=new A(63709,"get_pad_cond",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_BUTTON_COND=U[63710]=new A(63710,"get_button_cond",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.FREEZE_ENEMIES=U[63711]=new A(63711,"freeze_enemies",void 0,[],void 0),A.UNFREEZE_ENEMIES=U[63712]=new A(63712,"unfreeze_enemies",void 0,[],void 0),A.FREEZE_EVERYTHING=U[63713]=new A(63713,"freeze_everything",void 0,[],void 0),A.UNFREEZE_EVERYTHING=U[63714]=new A(63714,"unfreeze_everything",void 0,[],void 0),A.RESTORE_HP=U[63715]=new A(63715,"restore_hp",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.RESTORE_TP=U[63716]=new A(63716,"restore_tp",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.CLOSE_CHAT_BUBBLE=U[63717]=new A(63717,"close_chat_bubble",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.MOVE_COORDS_OBJECT=U[63718]=new A(63718,"move_coords_object",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.AT_COORDS_CALL_EX=U[63719]=new A(63719,"at_coords_call_ex",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8E8=U[63720]=new A(63720,"unknown_f8e8",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8E9=U[63721]=new A(63721,"unknown_f8e9",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8EA=U[63722]=new A(63722,"unknown_f8ea",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8EB=U[63723]=new A(63723,"unknown_f8eb",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8EC=U[63724]=new A(63724,"unknown_f8ec",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.ANIMATION_CHECK=U[63725]=new A(63725,"animation_check",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.CALL_IMAGE_DATA=U[63726]=new A(63726,"call_image_data",void 0,[new h(u,void 0,void 0),new h(a,void 0,void 0)],O.Pop),A.UNKNOWN_F8EF=U[63727]=new A(63727,"unknown_f8ef",void 0,[],void 0),A.TURN_OFF_BGM_P2=U[63728]=new A(63728,"turn_off_bgm_p2",void 0,[],void 0),A.TURN_ON_BGM_P2=U[63729]=new A(63729,"turn_on_bgm_p2",void 0,[],void 0),A.LOAD_UNK_DATA=U[63730]=new A(63730,"load_unk_data",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(R,void 0,void 0)],O.Pop),A.PARTICLE2=U[63731]=new A(63731,"particle2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(N,void 0,void 0)],O.Pop),A.UNKNOWN_F8F4=U[63732]=new A(63732,"unknown_f8f4",void 0,[],void 0),A.UNKNOWN_F8F5=U[63733]=new A(63733,"unknown_f8f5",void 0,[],void 0),A.UNKNOWN_F8F6=U[63734]=new A(63734,"unknown_f8f6",void 0,[],void 0),A.UNKNOWN_F8F7=U[63735]=new A(63735,"unknown_f8f7",void 0,[],void 0),A.UNKNOWN_F8F8=U[63736]=new A(63736,"unknown_f8f8",void 0,[],void 0),A.UNKNOWN_F8F9=U[63737]=new A(63737,"unknown_f8f9",void 0,[],void 0),A.UNKNOWN_F8FA=U[63738]=new A(63738,"unknown_f8fa",void 0,[],void 0),A.UNKNOWN_F8FB=U[63739]=new A(63739,"unknown_f8fb",void 0,[],void 0),A.UNKNOWN_F8FC=U[63740]=new A(63740,"unknown_f8fc",void 0,[],void 0),A.UNKNOWN_F8FD=U[63741]=new A(63741,"unknown_f8fd",void 0,[],void 0),A.UNKNOWN_F8FE=U[63742]=new A(63742,"unknown_f8fe",void 0,[],void 0),A.UNKNOWN_F8FF=U[63743]=new A(63743,"unknown_f8ff",void 0,[],void 0),A.UNKNOWN_F900=U[63744]=new A(63744,"unknown_f900",void 0,[],void 0),A.DEC2FLOAT=U[63745]=new A(63745,"dec2float",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.FLOAT2DEC=U[63746]=new A(63746,"float2dec",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Read)]},void 0,void 0)],void 0),A.FLET=U[63747]=new A(63747,"flet",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Read)]},void 0,void 0)],void 0),A.FLETI=U[63748]=new A(63748,"fleti",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h(N,void 0,void 0)],void 0),A.UNKNOWN_F905=U[63749]=new A(63749,"unknown_f905",void 0,[],void 0),A.UNKNOWN_F906=U[63750]=new A(63750,"unknown_f906",void 0,[],void 0),A.UNKNOWN_F907=U[63751]=new A(63751,"unknown_f907",void 0,[],void 0),A.FADD=U[63752]=new A(63752,"fadd",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Read)]},void 0,void 0)],void 0),A.FADDI=U[63753]=new A(63753,"faddi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h(N,void 0,void 0)],void 0),A.FSUB=U[63754]=new A(63754,"fsub",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Read)]},void 0,void 0)],void 0),A.FSUBI=U[63755]=new A(63755,"fsubi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h(N,void 0,void 0)],void 0),A.FMUL=U[63756]=new A(63756,"fmul",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Read)]},void 0,void 0)],void 0),A.FMULI=U[63757]=new A(63757,"fmuli",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h(N,void 0,void 0)],void 0),A.FDIV=U[63758]=new A(63758,"fdiv",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Read)]},void 0,void 0)],void 0),A.FDIVI=U[63759]=new A(63759,"fdivi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(N,void 0,W.Write)]},void 0,void 0),new h(N,void 0,void 0)],void 0),A.GET_UNKNOWN_COUNT=U[63760]=new A(63760,"get_unknown_count",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.GET_STACKABLE_ITEM_COUNT=U[63761]=new A(63761,"get_stackable_item_count",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.FREEZE_AND_HIDE_EQUIP=U[63762]=new A(63762,"freeze_and_hide_equip",void 0,[],void 0),A.THAW_AND_SHOW_EQUIP=U[63763]=new A(63763,"thaw_and_show_equip",void 0,[],void 0),A.SET_PALETTEX_CALLBACK=U[63764]=new A(63764,"set_palettex_callback",void 0,[new h(u,"Player slot.",void 0),new h(p,void 0,void 0)],O.Pop),A.ACTIVATE_PALETTEX=U[63765]=new A(63765,"activate_palettex",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.ENABLE_PALETTEX=U[63766]=new A(63766,"enable_palettex",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.RESTORE_PALETTEX=U[63767]=new A(63767,"restore_palettex",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.DISABLE_PALETTEX=U[63768]=new A(63768,"disable_palettex",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.GET_PALETTEX_ACTIVATED=U[63769]=new A(63769,"get_palettex_activated",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.GET_UNKNOWN_PALETTEX_STATUS=U[63770]=new A(63770,"get_unknown_palettex_status",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.DISABLE_MOVEMENT2=U[63771]=new A(63771,"disable_movement2",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.ENABLE_MOVEMENT2=U[63772]=new A(63772,"enable_movement2",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.GET_TIME_PLAYED=U[63773]=new A(63773,"get_time_played",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_GUILDCARD_TOTAL=U[63774]=new A(63774,"get_guildcard_total",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_SLOT_MESETA=U[63775]=new A(63775,"get_slot_meseta",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_PLAYER_LEVEL=U[63776]=new A(63776,"get_player_level",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.GET_SECTION_ID=U[63777]=new A(63777,"get_section_id",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.GET_PLAYER_HP=U[63778]=new A(63778,"get_player_hp",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Maximum HP.",W.Write),new h(u,"Current HP.",W.Write),new h(u,"Maximum TP.",W.Write),new h(u,"Current TP.",W.Write)]},void 0,void 0)],O.Pop),A.GET_FLOOR_NUMBER=U[63779]=new A(63779,"get_floor_number",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.GET_COORD_PLAYER_DETECT=U[63780]=new A(63780,"get_coord_player_detect",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.READ_GLOBAL_FLAG=U[63781]=new A(63781,"read_global_flag",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.WRITE_GLOBAL_FLAG=U[63782]=new A(63782,"write_global_flag",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F927=U[63783]=new A(63783,"unknown_f927",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.FLOOR_PLAYER_DETECT=U[63784]=new A(63784,"floor_player_detect",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write),new h(u,void 0,W.Write),new h(u,void 0,W.Write),new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.READ_DISK_FILE=U[63785]=new A(63785,"read_disk_file",void 0,[new h(f,void 0,void 0)],O.Pop),A.OPEN_PACK_SELECT=U[63786]=new A(63786,"open_pack_select",void 0,[],void 0),A.ITEM_SELECT=U[63787]=new A(63787,"item_select",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_ITEM_ID=U[63788]=new A(63788,"get_item_id",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.COLOR_CHANGE=U[63789]=new A(63789,"color_change",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.SEND_STATISTIC=U[63790]=new A(63790,"send_statistic",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F92F=U[63791]=new A(63791,"unknown_f92f",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.CHAT_BOX=U[63792]=new A(63792,"chat_box",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.CHAT_BUBBLE=U[63793]=new A(63793,"chat_bubble",void 0,[new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.UNKNOWN_F932=U[63794]=new A(63794,"unknown_f932",void 0,[],void 0),A.UNKNOWN_F933=U[63795]=new A(63795,"unknown_f933",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.SCROLL_TEXT=U[63796]=new A(63796,"scroll_text",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(N,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.GBA_UNKNOWN1=U[63797]=new A(63797,"gba_unknown1",void 0,[],void 0),A.GBA_UNKNOWN2=U[63798]=new A(63798,"gba_unknown2",void 0,[],void 0),A.GBA_UNKNOWN3=U[63799]=new A(63799,"gba_unknown3",void 0,[],void 0),A.ADD_DAMAGE_TO=U[63800]=new A(63800,"add_damage_to",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.ITEM_DELETE3=U[63801]=new A(63801,"item_delete3",void 0,[new h(u,void 0,void 0)],O.Pop),A.GET_ITEM_INFO=U[63802]=new A(63802,"get_item_info",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],O.Pop),A.ITEM_PACKING1=U[63803]=new A(63803,"item_packing1",void 0,[new h(u,void 0,void 0)],O.Pop),A.ITEM_PACKING2=U[63804]=new A(63804,"item_packing2",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.GET_LANG_SETTING=U[63805]=new A(63805,"get_lang_setting",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],O.Pop),A.PREPARE_STATISTIC=U[63806]=new A(63806,"prepare_statistic",void 0,[new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.KEYWORD_DETECT=U[63807]=new A(63807,"keyword_detect",void 0,[],void 0),A.KEYWORD=U[63808]=new A(63808,"keyword",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,"Player slot.",void 0),new h(f,void 0,void 0)],O.Pop),A.GET_GUILDCARD_NUM=U[63809]=new A(63809,"get_guildcard_num",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.UNKNOWN_F942=U[63810]=new A(63810,"unknown_f942",void 0,[],void 0),A.UNKNOWN_F943=U[63811]=new A(63811,"unknown_f943",void 0,[],void 0),A.GET_WRAP_STATUS=U[63812]=new A(63812,"get_wrap_status",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.INITIAL_FLOOR=U[63813]=new A(63813,"initial_floor",void 0,[new h(u,void 0,void 0)],O.Pop),A.SIN=U[63814]=new A(63814,"sin",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.COS=U[63815]=new A(63815,"cos",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F948=U[63816]=new A(63816,"unknown_f948",void 0,[],void 0),A.UNKNOWN_F949=U[63817]=new A(63817,"unknown_f949",void 0,[],void 0),A.BOSS_IS_DEAD2=U[63818]=new A(63818,"boss_is_dead2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F94B=U[63819]=new A(63819,"unknown_f94b",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F94C=U[63820]=new A(63820,"unknown_f94c",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.IS_THERE_CARDBATTLE=U[63821]=new A(63821,"is_there_cardbattle",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F94E=U[63822]=new A(63822,"unknown_f94e",void 0,[],void 0),A.UNKNOWN_F94F=U[63823]=new A(63823,"unknown_f94f",void 0,[],void 0),A.BB_P2_MENU=U[63824]=new A(63824,"bb_p2_menu",void 0,[new h(u,void 0,void 0)],O.Pop),A.BB_MAP_DESIGNATE=U[63825]=new A(63825,"bb_map_designate",void 0,[new h(r,void 0,void 0),new h(a,void 0,void 0),new h(r,void 0,void 0),new h(r,void 0,void 0)],void 0),A.BB_GET_NUMBER_IN_PACK=U[63826]=new A(63826,"bb_get_number_in_pack",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.BB_SWAP_ITEM=U[63827]=new A(63827,"bb_swap_item",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.BB_CHECK_WRAP=U[63828]=new A(63828,"bb_check_wrap",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.BB_EXCHANGE_PD_ITEM=U[63829]=new A(63829,"bb_exchange_pd_item",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.BB_EXCHANGE_PD_SRANK=U[63830]=new A(63830,"bb_exchange_pd_srank",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.BB_EXCHANGE_PD_SPECIAL=U[63831]=new A(63831,"bb_exchange_pd_special",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.BB_EXCHANGE_PD_PERCENT=U[63832]=new A(63832,"bb_exchange_pd_percent",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.UNKNOWN_F959=U[63833]=new A(63833,"unknown_f959",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F95A=U[63834]=new A(63834,"unknown_f95a",void 0,[],void 0),A.UNKNOWN_F95B=U[63835]=new A(63835,"unknown_f95b",void 0,[],void 0),A.BB_EXCHANGE_SLT=U[63836]=new A(63836,"bb_exchange_slt",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.BB_EXCHANGE_PC=U[63837]=new A(63837,"bb_exchange_pc",void 0,[],void 0),A.BB_BOX_CREATE_BP=U[63838]=new A(63838,"bb_box_create_bp",void 0,[new h(u,void 0,void 0),new h(N,void 0,void 0),new h(N,void 0,void 0)],O.Pop),A.BB_EXCHANGE_PT=U[63839]=new A(63839,"bb_exchange_pt",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.UNKNOWN_F960=U[63840]=new A(63840,"unknown_f960",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F961=U[63841]=new A(63841,"unknown_f961",void 0,[],void 0),A.UNKNOWN_F962=U[63842]=new A(63842,"unknown_f962",void 0,[],void 0),A.UNKNOWN_F963=U[63843]=new A(63843,"unknown_f963",void 0,[],void 0),A.UNKNOWN_F964=U[63844]=new A(63844,"unknown_f964",void 0,[],void 0),A.UNKNOWN_F965=U[63845]=new A(63845,"unknown_f965",void 0,[],void 0),A.UNKNOWN_F966=U[63846]=new A(63846,"unknown_f966",void 0,[],void 0),A.UNKNOWN_F967=U[63847]=new A(63847,"unknown_f967",void 0,[],void 0),A.UNKNOWN_F968=U[63848]=new A(63848,"unknown_f968",void 0,[],void 0),A.UNKNOWN_F969=U[63849]=new A(63849,"unknown_f969",void 0,[],void 0),A.UNKNOWN_F96A=U[63850]=new A(63850,"unknown_f96a",void 0,[],void 0),A.UNKNOWN_F96B=U[63851]=new A(63851,"unknown_f96b",void 0,[],void 0),A.UNKNOWN_F96C=U[63852]=new A(63852,"unknown_f96c",void 0,[],void 0),A.UNKNOWN_F96D=U[63853]=new A(63853,"unknown_f96d",void 0,[],void 0),A.UNKNOWN_F96E=U[63854]=new A(63854,"unknown_f96e",void 0,[],void 0),A.UNKNOWN_F96F=U[63855]=new A(63855,"unknown_f96f",void 0,[],void 0),A.UNKNOWN_F970=U[63856]=new A(63856,"unknown_f970",void 0,[],void 0),A.UNKNOWN_F971=U[63857]=new A(63857,"unknown_f971",void 0,[],void 0),A.UNKNOWN_F972=U[63858]=new A(63858,"unknown_f972",void 0,[],void 0),A.UNKNOWN_F973=U[63859]=new A(63859,"unknown_f973",void 0,[],void 0),A.UNKNOWN_F974=U[63860]=new A(63860,"unknown_f974",void 0,[],void 0),A.UNKNOWN_F975=U[63861]=new A(63861,"unknown_f975",void 0,[],void 0),A.UNKNOWN_F976=U[63862]=new A(63862,"unknown_f976",void 0,[],void 0),A.UNKNOWN_F977=U[63863]=new A(63863,"unknown_f977",void 0,[],void 0),A.UNKNOWN_F978=U[63864]=new A(63864,"unknown_f978",void 0,[],void 0),A.UNKNOWN_F979=U[63865]=new A(63865,"unknown_f979",void 0,[],void 0),A.UNKNOWN_F97A=U[63866]=new A(63866,"unknown_f97a",void 0,[],void 0),A.UNKNOWN_F97B=U[63867]=new A(63867,"unknown_f97b",void 0,[],void 0),A.UNKNOWN_F97C=U[63868]=new A(63868,"unknown_f97c",void 0,[],void 0),A.UNKNOWN_F97D=U[63869]=new A(63869,"unknown_f97d",void 0,[],void 0),A.UNKNOWN_F97E=U[63870]=new A(63870,"unknown_f97e",void 0,[],void 0),A.UNKNOWN_F97F=U[63871]=new A(63871,"unknown_f97f",void 0,[],void 0),A.UNKNOWN_F980=U[63872]=new A(63872,"unknown_f980",void 0,[],void 0),A.UNKNOWN_F981=U[63873]=new A(63873,"unknown_f981",void 0,[],void 0),A.UNKNOWN_F982=U[63874]=new A(63874,"unknown_f982",void 0,[],void 0),A.UNKNOWN_F983=U[63875]=new A(63875,"unknown_f983",void 0,[],void 0),A.UNKNOWN_F984=U[63876]=new A(63876,"unknown_f984",void 0,[],void 0),A.UNKNOWN_F985=U[63877]=new A(63877,"unknown_f985",void 0,[],void 0),A.UNKNOWN_F986=U[63878]=new A(63878,"unknown_f986",void 0,[],void 0),A.UNKNOWN_F987=U[63879]=new A(63879,"unknown_f987",void 0,[],void 0),A.UNKNOWN_F988=U[63880]=new A(63880,"unknown_f988",void 0,[],void 0),A.UNKNOWN_F989=U[63881]=new A(63881,"unknown_f989",void 0,[],void 0),A.UNKNOWN_F98A=U[63882]=new A(63882,"unknown_f98a",void 0,[],void 0),A.UNKNOWN_F98B=U[63883]=new A(63883,"unknown_f98b",void 0,[],void 0),A.UNKNOWN_F98C=U[63884]=new A(63884,"unknown_f98c",void 0,[],void 0),A.UNKNOWN_F98D=U[63885]=new A(63885,"unknown_f98d",void 0,[],void 0),A.UNKNOWN_F98E=U[63886]=new A(63886,"unknown_f98e",void 0,[],void 0),A.UNKNOWN_F98F=U[63887]=new A(63887,"unknown_f98f",void 0,[],void 0),A.UNKNOWN_F990=U[63888]=new A(63888,"unknown_f990",void 0,[],void 0),A.UNKNOWN_F991=U[63889]=new A(63889,"unknown_f991",void 0,[],void 0),A.UNKNOWN_F992=U[63890]=new A(63890,"unknown_f992",void 0,[],void 0),A.UNKNOWN_F993=U[63891]=new A(63891,"unknown_f993",void 0,[],void 0),A.UNKNOWN_F994=U[63892]=new A(63892,"unknown_f994",void 0,[],void 0),A.UNKNOWN_F995=U[63893]=new A(63893,"unknown_f995",void 0,[],void 0),A.UNKNOWN_F996=U[63894]=new A(63894,"unknown_f996",void 0,[],void 0),A.UNKNOWN_F997=U[63895]=new A(63895,"unknown_f997",void 0,[],void 0),A.UNKNOWN_F998=U[63896]=new A(63896,"unknown_f998",void 0,[],void 0),A.UNKNOWN_F999=U[63897]=new A(63897,"unknown_f999",void 0,[],void 0),A.UNKNOWN_F99A=U[63898]=new A(63898,"unknown_f99a",void 0,[],void 0),A.UNKNOWN_F99B=U[63899]=new A(63899,"unknown_f99b",void 0,[],void 0),A.UNKNOWN_F99C=U[63900]=new A(63900,"unknown_f99c",void 0,[],void 0),A.UNKNOWN_F99D=U[63901]=new A(63901,"unknown_f99d",void 0,[],void 0),A.UNKNOWN_F99E=U[63902]=new A(63902,"unknown_f99e",void 0,[],void 0),A.UNKNOWN_F99F=U[63903]=new A(63903,"unknown_f99f",void 0,[],void 0),A.UNKNOWN_F9A0=U[63904]=new A(63904,"unknown_f9a0",void 0,[],void 0),A.UNKNOWN_F9A1=U[63905]=new A(63905,"unknown_f9a1",void 0,[],void 0),A.UNKNOWN_F9A2=U[63906]=new A(63906,"unknown_f9a2",void 0,[],void 0),A.UNKNOWN_F9A3=U[63907]=new A(63907,"unknown_f9a3",void 0,[],void 0),A.UNKNOWN_F9A4=U[63908]=new A(63908,"unknown_f9a4",void 0,[],void 0),A.UNKNOWN_F9A5=U[63909]=new A(63909,"unknown_f9a5",void 0,[],void 0),A.UNKNOWN_F9A6=U[63910]=new A(63910,"unknown_f9a6",void 0,[],void 0),A.UNKNOWN_F9A7=U[63911]=new A(63911,"unknown_f9a7",void 0,[],void 0),A.UNKNOWN_F9A8=U[63912]=new A(63912,"unknown_f9a8",void 0,[],void 0),A.UNKNOWN_F9A9=U[63913]=new A(63913,"unknown_f9a9",void 0,[],void 0),A.UNKNOWN_F9AA=U[63914]=new A(63914,"unknown_f9aa",void 0,[],void 0),A.UNKNOWN_F9AB=U[63915]=new A(63915,"unknown_f9ab",void 0,[],void 0),A.UNKNOWN_F9AC=U[63916]=new A(63916,"unknown_f9ac",void 0,[],void 0),A.UNKNOWN_F9AD=U[63917]=new A(63917,"unknown_f9ad",void 0,[],void 0),A.UNKNOWN_F9AE=U[63918]=new A(63918,"unknown_f9ae",void 0,[],void 0),A.UNKNOWN_F9AF=U[63919]=new A(63919,"unknown_f9af",void 0,[],void 0),A.UNKNOWN_F9B0=U[63920]=new A(63920,"unknown_f9b0",void 0,[],void 0),A.UNKNOWN_F9B1=U[63921]=new A(63921,"unknown_f9b1",void 0,[],void 0),A.UNKNOWN_F9B2=U[63922]=new A(63922,"unknown_f9b2",void 0,[],void 0),A.UNKNOWN_F9B3=U[63923]=new A(63923,"unknown_f9b3",void 0,[],void 0),A.UNKNOWN_F9B4=U[63924]=new A(63924,"unknown_f9b4",void 0,[],void 0),A.UNKNOWN_F9B5=U[63925]=new A(63925,"unknown_f9b5",void 0,[],void 0),A.UNKNOWN_F9B6=U[63926]=new A(63926,"unknown_f9b6",void 0,[],void 0),A.UNKNOWN_F9B7=U[63927]=new A(63927,"unknown_f9b7",void 0,[],void 0),A.UNKNOWN_F9B8=U[63928]=new A(63928,"unknown_f9b8",void 0,[],void 0),A.UNKNOWN_F9B9=U[63929]=new A(63929,"unknown_f9b9",void 0,[],void 0),A.UNKNOWN_F9BA=U[63930]=new A(63930,"unknown_f9ba",void 0,[],void 0),A.UNKNOWN_F9BB=U[63931]=new A(63931,"unknown_f9bb",void 0,[],void 0),A.UNKNOWN_F9BC=U[63932]=new A(63932,"unknown_f9bc",void 0,[],void 0),A.UNKNOWN_F9BD=U[63933]=new A(63933,"unknown_f9bd",void 0,[],void 0),A.UNKNOWN_F9BE=U[63934]=new A(63934,"unknown_f9be",void 0,[],void 0),A.UNKNOWN_F9BF=U[63935]=new A(63935,"unknown_f9bf",void 0,[],void 0),A.UNKNOWN_F9C0=U[63936]=new A(63936,"unknown_f9c0",void 0,[],void 0),A.UNKNOWN_F9C1=U[63937]=new A(63937,"unknown_f9c1",void 0,[],void 0),A.UNKNOWN_F9C2=U[63938]=new A(63938,"unknown_f9c2",void 0,[],void 0),A.UNKNOWN_F9C3=U[63939]=new A(63939,"unknown_f9c3",void 0,[],void 0),A.UNKNOWN_F9C4=U[63940]=new A(63940,"unknown_f9c4",void 0,[],void 0),A.UNKNOWN_F9C5=U[63941]=new A(63941,"unknown_f9c5",void 0,[],void 0),A.UNKNOWN_F9C6=U[63942]=new A(63942,"unknown_f9c6",void 0,[],void 0),A.UNKNOWN_F9C7=U[63943]=new A(63943,"unknown_f9c7",void 0,[],void 0),A.UNKNOWN_F9C8=U[63944]=new A(63944,"unknown_f9c8",void 0,[],void 0),A.UNKNOWN_F9C9=U[63945]=new A(63945,"unknown_f9c9",void 0,[],void 0),A.UNKNOWN_F9CA=U[63946]=new A(63946,"unknown_f9ca",void 0,[],void 0),A.UNKNOWN_F9CB=U[63947]=new A(63947,"unknown_f9cb",void 0,[],void 0),A.UNKNOWN_F9CC=U[63948]=new A(63948,"unknown_f9cc",void 0,[],void 0),A.UNKNOWN_F9CD=U[63949]=new A(63949,"unknown_f9cd",void 0,[],void 0),A.UNKNOWN_F9CE=U[63950]=new A(63950,"unknown_f9ce",void 0,[],void 0),A.UNKNOWN_F9CF=U[63951]=new A(63951,"unknown_f9cf",void 0,[],void 0),A.UNKNOWN_F9D0=U[63952]=new A(63952,"unknown_f9d0",void 0,[],void 0),A.UNKNOWN_F9D1=U[63953]=new A(63953,"unknown_f9d1",void 0,[],void 0),A.UNKNOWN_F9D2=U[63954]=new A(63954,"unknown_f9d2",void 0,[],void 0),A.UNKNOWN_F9D3=U[63955]=new A(63955,"unknown_f9d3",void 0,[],void 0),A.UNKNOWN_F9D4=U[63956]=new A(63956,"unknown_f9d4",void 0,[],void 0),A.UNKNOWN_F9D5=U[63957]=new A(63957,"unknown_f9d5",void 0,[],void 0),A.UNKNOWN_F9D6=U[63958]=new A(63958,"unknown_f9d6",void 0,[],void 0),A.UNKNOWN_F9D7=U[63959]=new A(63959,"unknown_f9d7",void 0,[],void 0),A.UNKNOWN_F9D8=U[63960]=new A(63960,"unknown_f9d8",void 0,[],void 0),A.UNKNOWN_F9D9=U[63961]=new A(63961,"unknown_f9d9",void 0,[],void 0),A.UNKNOWN_F9DA=U[63962]=new A(63962,"unknown_f9da",void 0,[],void 0),A.UNKNOWN_F9DB=U[63963]=new A(63963,"unknown_f9db",void 0,[],void 0),A.UNKNOWN_F9DC=U[63964]=new A(63964,"unknown_f9dc",void 0,[],void 0),A.UNKNOWN_F9DD=U[63965]=new A(63965,"unknown_f9dd",void 0,[],void 0),A.UNKNOWN_F9DE=U[63966]=new A(63966,"unknown_f9de",void 0,[],void 0),A.UNKNOWN_F9DF=U[63967]=new A(63967,"unknown_f9df",void 0,[],void 0),A.UNKNOWN_F9E0=U[63968]=new A(63968,"unknown_f9e0",void 0,[],void 0),A.UNKNOWN_F9E1=U[63969]=new A(63969,"unknown_f9e1",void 0,[],void 0),A.UNKNOWN_F9E2=U[63970]=new A(63970,"unknown_f9e2",void 0,[],void 0),A.UNKNOWN_F9E3=U[63971]=new A(63971,"unknown_f9e3",void 0,[],void 0),A.UNKNOWN_F9E4=U[63972]=new A(63972,"unknown_f9e4",void 0,[],void 0),A.UNKNOWN_F9E5=U[63973]=new A(63973,"unknown_f9e5",void 0,[],void 0),A.UNKNOWN_F9E6=U[63974]=new A(63974,"unknown_f9e6",void 0,[],void 0),A.UNKNOWN_F9E7=U[63975]=new A(63975,"unknown_f9e7",void 0,[],void 0),A.UNKNOWN_F9E8=U[63976]=new A(63976,"unknown_f9e8",void 0,[],void 0),A.UNKNOWN_F9E9=U[63977]=new A(63977,"unknown_f9e9",void 0,[],void 0),A.UNKNOWN_F9EA=U[63978]=new A(63978,"unknown_f9ea",void 0,[],void 0),A.UNKNOWN_F9EB=U[63979]=new A(63979,"unknown_f9eb",void 0,[],void 0),A.UNKNOWN_F9EC=U[63980]=new A(63980,"unknown_f9ec",void 0,[],void 0),A.UNKNOWN_F9ED=U[63981]=new A(63981,"unknown_f9ed",void 0,[],void 0),A.UNKNOWN_F9EE=U[63982]=new A(63982,"unknown_f9ee",void 0,[],void 0),A.UNKNOWN_F9EF=U[63983]=new A(63983,"unknown_f9ef",void 0,[],void 0),A.UNKNOWN_F9F0=U[63984]=new A(63984,"unknown_f9f0",void 0,[],void 0),A.UNKNOWN_F9F1=U[63985]=new A(63985,"unknown_f9f1",void 0,[],void 0),A.UNKNOWN_F9F2=U[63986]=new A(63986,"unknown_f9f2",void 0,[],void 0),A.UNKNOWN_F9F3=U[63987]=new A(63987,"unknown_f9f3",void 0,[],void 0),A.UNKNOWN_F9F4=U[63988]=new A(63988,"unknown_f9f4",void 0,[],void 0),A.UNKNOWN_F9F5=U[63989]=new A(63989,"unknown_f9f5",void 0,[],void 0),A.UNKNOWN_F9F6=U[63990]=new A(63990,"unknown_f9f6",void 0,[],void 0),A.UNKNOWN_F9F7=U[63991]=new A(63991,"unknown_f9f7",void 0,[],void 0),A.UNKNOWN_F9F8=U[63992]=new A(63992,"unknown_f9f8",void 0,[],void 0),A.UNKNOWN_F9F9=U[63993]=new A(63993,"unknown_f9f9",void 0,[],void 0),A.UNKNOWN_F9FA=U[63994]=new A(63994,"unknown_f9fa",void 0,[],void 0),A.UNKNOWN_F9FB=U[63995]=new A(63995,"unknown_f9fb",void 0,[],void 0),A.UNKNOWN_F9FC=U[63996]=new A(63996,"unknown_f9fc",void 0,[],void 0),A.UNKNOWN_F9FD=U[63997]=new A(63997,"unknown_f9fd",void 0,[],void 0),A.UNKNOWN_F9FE=U[63998]=new A(63998,"unknown_f9fe",void 0,[],void 0),A.UNKNOWN_F9FF=U[63999]=new A(63999,"unknown_f9ff",void 0,[],void 0),U.forEach(e=>{F.set(e.mnemonic,e)});class P{constructor(e,i){this.opcode=e,this.args=i,this.arg_size=0,this.param_to_args=[];const o=Math.min(e.params.length,i.length);for(let n=0;n<o;n++){const o=e.params[n].type,d=i[n];switch(this.param_to_args[n]=[],o.kind){case _.ILabelVar:case _.RegRefVar:this.arg_size++;for(let e=n;e<i.length;e++)this.param_to_args[n].push(i[e]),this.arg_size+=i[e].size;break;default:this.arg_size+=d.size,this.param_to_args[n].push(d)}}this.size=e.size+this.arg_size}}var K;!function(e){e[e.Instructions=0]="Instructions",e[e.Data=1]="Data",e[e.String=2]="String"}(K||(K={}));const m=d.a.get("scripting/assembly");class b{constructor(e,i){this.assembly=e,this.manual_stack=i,this.lexer=new w,this.first_section_marker=!0}assemble(){this.line_no=1,this.object_code=[],this.warnings=[],this.errors=[],this.labels=new Set,this.section=K.Instructions,this.first_section_marker=!0;for(const e of this.assembly){if(this.tokens=this.lexer.tokenize_line(e),this.tokens.length>0){const e=this.tokens.shift();switch(e.type){case t.Label:this.parse_label(e);break;case t.CodeSection:case t.DataSection:case t.StringSection:this.parse_section(e);break;case t.Int:this.section===K.Data?this.parse_bytes(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.String:this.section===K.String?this.parse_string(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.Ident:this.section===K.Instructions?this.parse_instruction(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.InvalidSection:this.add_error({col:e.col,length:e.len,message:"Invalid section type."});break;case t.InvalidIdent:this.add_error({col:e.col,length:e.len,message:"Invalid identifier."});break;default:this.add_error({col:e.col,length:e.len,message:"Unexpected token."})}}this.line_no++}return{object_code:this.object_code,warnings:this.warnings,errors:this.errors}}add_instruction(e,i){if(this.segment)this.segment.type===K.Instructions?this.segment.instructions.push(new P(e,i)):m.error(`Line ${this.line_no}: Expected instructions segment.`);else{const e={labels:[],type:K.Instructions,instructions:[]};this.segment=e,this.object_code.push(e)}}add_bytes(e){if(this.segment)if(this.segment.type===K.Data){const i=new ArrayBuffer(this.segment.data.byteLength+e.length),o=new Uint8Array(i);o.set(new Uint8Array(this.segment.data)),o.set(new Uint8Array(e),this.segment.data.byteLength),this.segment.data=i}else m.error(`Line ${this.line_no}: Expected data segment.`);else{const i={labels:[],type:K.Data,data:new Uint8Array(e).buffer};this.segment=i,this.object_code.push(i)}}add_string(e){if(this.segment)this.segment.type===K.String?this.segment.value+=e:m.error(`Line ${this.line_no}: Expected string segment.`);else{const i={labels:[],type:K.String,value:e};this.segment=i,this.object_code.push(i)}}add_error({col:e,length:i,message:o}){this.errors.push({line_no:this.line_no,col:e,length:i,message:o})}add_warning({col:e,length:i,message:o}){this.warnings.push({line_no:this.line_no,col:e,length:i,message:o})}parse_label({col:e,len:i,value:o}){this.labels.has(o)&&this.add_error({col:e,length:i,message:"Duplicate label."}),this.labels.add(o);const n=this.tokens.shift();switch(this.section){case K.Instructions:this.segment={type:K.Instructions,labels:[o],instructions:[]},this.object_code.push(this.segment),n&&(n.type===t.Ident?this.parse_instruction(n):this.add_error({col:n.col,length:n.len,message:"Expected opcode mnemonic."}));break;case K.Data:this.segment={type:K.Data,labels:[o],data:new ArrayBuffer(0)},this.object_code.push(this.segment),n&&(n.type===t.Int?this.parse_bytes(n):this.add_error({col:n.col,length:n.len,message:"Expected bytes."}));break;case K.String:this.segment={type:K.String,labels:[o],value:""},this.object_code.push(this.segment),n&&(n.type===t.String?this.parse_string(n):this.add_error({col:n.col,length:n.len,message:"Expected a string."}))}}parse_section({type:e,col:i,len:o}){let n;switch(e){case t.CodeSection:n=K.Instructions;break;case t.DataSection:n=K.Data;break;case t.StringSection:n=K.String}this.section!==n||this.first_section_marker||this.add_warning({col:i,length:o,message:"Unnecessary section marker."}),this.section=n,this.first_section_marker=!1;const d=this.tokens.shift();d&&this.add_error({col:d.col,length:d.len,message:"Unexpected token."})}parse_instruction({col:e,len:i,value:o}){const n=F.get(o);if(n){const i=-1!==n.params.findIndex(e=>e.type.kind===_.ILabelVar||e.type.kind===_.RegRefVar),o=this.manual_stack&&n.stack===O.Pop?0:n.params.length;let w=0;for(const e of this.tokens)e.type!==t.ArgSeperator&&w++;const s=this.tokens[this.tokens.length-1];let r=s?s.col+s.len-e:0;const a=[];if(!i&&w!==o)return void this.add_error({col:e,length:r,message:`Expected ${o} argument${1===o?"":"s"}, got ${w}.`});if(i&&w<o)return void this.add_error({col:e,length:r,message:`Expected at least ${o} argument${1===o?"":"s"}, got ${w}.`});if(n.stack!==O.Pop){if(!this.parse_args(n.params,a,!1))return}else{const e=[];if(!this.parse_args(n.params,e,!0))return;for(let i=0;i<n.params.length;i++){const o=n.params[i],w=e[i];if(null==w)continue;const[s,r]=w;if(r.type===t.Register)o.type.kind===_.RegTupRef?this.add_instruction(A.ARG_PUSHB,[s]):this.add_instruction(A.ARG_PUSHR,[s]);else switch(o.type.kind){case _.Byte:case _.RegRef:case _.RegTupRef:this.add_instruction(A.ARG_PUSHB,[s]);break;case _.Word:case _.Label:case _.ILabel:case _.DLabel:case _.SLabel:this.add_instruction(A.ARG_PUSHW,[s]);break;case _.DWord:this.add_instruction(A.ARG_PUSHL,[s]);break;case _.Float:this.add_instruction(A.ARG_PUSHL,[{value:(d=s.value,v.setFloat32(0,d),v.getInt32(0)),size:4}]);break;case _.String:this.add_instruction(A.ARG_PUSHS,[s]);break;default:m.error(`Line ${this.line_no}: Type ${_[o.type.kind]} not implemented.`)}}}this.add_instruction(n,a.map(([e])=>e))}else this.add_error({col:e,length:i,message:"Unknown instruction."});var d}parse_args(e,i,o){let n=!0,d=!0,v=0;for(let w=0;w<this.tokens.length;w++){const s=this.tokens[w],r=e[v];if(s.type===t.ArgSeperator)d?this.add_error({col:s.col,length:s.len,message:"Expected an argument."}):r.type.kind!==_.ILabelVar&&r.type.kind!==_.RegRefVar&&v++,d=!0;else{if(!d){const e=this.tokens[w-1],i=e.col+e.len;this.add_error({col:i,length:s.col-i,message:"Expected a comma."})}let e;switch(d=!1,s.type){case t.Int:switch(r.type.kind){case _.Byte:e=!0,this.parse_int(1,s,i);break;case _.Word:case _.Label:case _.ILabel:case _.DLabel:case _.SLabel:case _.ILabelVar:e=!0,this.parse_int(2,s,i);break;case _.DWord:e=!0,this.parse_int(4,s,i);break;case _.Float:e=!0,i.push([{value:s.value,size:4},s]);break;default:e=!1}break;case t.Float:(e=r.type.kind===_.Float)&&i.push([{value:s.value,size:4},s]);break;case t.Register:e=o||r.type.kind===_.RegRef||r.type.kind===_.RegRefVar||r.type.kind===_.RegTupRef,this.parse_register(s,i);break;case t.String:(e=r.type.kind===_.String)&&i.push([{value:s.value,size:2*s.value.length+2},s]);break;default:e=!1}if(!e){let e;switch(n=!1,r.type.kind){case _.Byte:e="a 8-bit integer";break;case _.Word:e="a 16-bit integer";break;case _.DWord:e="a 32-bit integer";break;case _.Float:e="a float";break;case _.Label:e="a label";break;case _.ILabel:case _.ILabelVar:e="an instruction label";break;case _.DLabel:e="a data label";break;case _.SLabel:e="a string label";break;case _.String:e="a string";break;case _.RegRef:case _.RegRefVar:case _.RegTupRef:e="a register reference"}e?this.add_error({col:s.col,length:s.len,message:`Expected ${e}.`}):this.add_error({col:s.col,length:s.len,message:"Unexpected token."})}}}return this.tokens=[],n}parse_int(e,i,o){const{value:n,col:d,len:v}=i,t=8*e,_=-Math.pow(2,t-1),w=Math.pow(2,t)-1;n<_?this.add_error({col:d,length:v,message:`${t}-Bit integer can't be less than ${_}.`}):n>w?this.add_error({col:d,length:v,message:`${t}-Bit integer can't be greater than ${w}.`}):o.push([{value:n,size:e},i])}parse_register(e,i){const{col:o,len:n,value:d}=e;d>255?this.add_error({col:o,length:n,message:"Invalid register reference, expected r0-r255."}):i.push([{value:d,size:1},e])}parse_bytes(e){const i=[];let o=e,n=0;for(;o.type===t.Int&&(o.value<0?this.add_error({col:o.col,length:o.len,message:"Unsigned 8-bit integer can't be less than 0."}):o.value>255&&this.add_error({col:o.col,length:o.len,message:"Unsigned 8-bit integer can't be greater than 255."}),i.push(o.value),n<this.tokens.length);)o=this.tokens[n++];n<this.tokens.length&&this.add_error({col:o.col,length:o.len,message:"Expected an unsigned 8-bit integer."}),this.add_bytes(i)}parse_string(e){const i=this.tokens.shift();i&&this.add_error({col:i.col,length:i.len,message:"Unexpected token."}),this.add_string(e.value)}}d.a.useDefaults({defaultLevel:d.a.WARN});const S=self;let L=[];const I=[];let C;function D(){if(0===I.length)return;for(const n of I.splice(0,I.length))if("new_assembly_input"===n.type)L=n.assembly;else if("assembly_change_input"===n.type)for(const d of n.changes){const{startLineNumber:n,endLineNumber:v,startColumn:t,endColumn:_}=d.range,w=v-n+1,s=d.text.split("\n");1===w?y(n,t,_,s):1===s.length?G(n,v,t,_,s[0]):(e=n,i=t,o=s[0],L.splice(e-1,1,L[e-1].slice(0,i-1)+o),B(v,_,s[s.length-1]),M(n+1,v-1,s.slice(1,s.length-1)))}var e,i,o;const n=Object.assign({type:"new_object_code_output"},function(e,i=!1){return new b(e,i).assemble()}(L));S.postMessage(n)}function y(e,i,o,n){const d=L[e-1],v=d.slice(0,i-1),t=d.slice(o-1);1===n.length?L.splice(e-1,1,v+n[0]+t):L.splice(e-1,1,v+n[0],...n.slice(1,n.length-1),n[n.length-1]+t)}function B(e,i,o){L.splice(e-1,1,o+L[e-1].slice(i-1))}function M(e,i,o){L.splice(e-1,i-e+1,...o)}function G(e,i,o,n,d){const v=L[e-1],t=L[i-1],_=v.slice(0,o-1),w=t.slice(n-1);L.splice(e-1,i-e+1,_+d+w)}S.onmessage=e=>{I.push(e.data),C||(D(),C=setTimeout(()=>{C=void 0,D()},100))}},GGSb:function(e,i,o){var n,d;
|
|
/*!
|
|
* js-logger - http://github.com/jonnyreeves/js-logger
|
|
* Jonny Reeves, http://jonnyreeves.co.uk/
|
|
* js-logger may be freely distributed under the MIT license.
|
|
*/
|
|
/*!
|
|
* js-logger - http://github.com/jonnyreeves/js-logger
|
|
* Jonny Reeves, http://jonnyreeves.co.uk/
|
|
* js-logger may be freely distributed under the MIT license.
|
|
*/
|
|
!function(v){"use strict";var t,_={};_.VERSION="1.6.0";var w={},s=function(e,i){return function(){return i.apply(e,arguments)}},r=function(){var e,i,o=arguments,n=o[0];for(i=1;i<o.length;i++)for(e in o[i])e in n||!o[i].hasOwnProperty(e)||(n[e]=o[i][e]);return n},a=function(e,i){return{value:e,name:i}};_.TRACE=a(1,"TRACE"),_.DEBUG=a(2,"DEBUG"),_.INFO=a(3,"INFO"),_.TIME=a(4,"TIME"),_.WARN=a(5,"WARN"),_.ERROR=a(8,"ERROR"),_.OFF=a(99,"OFF");var u=function(e){this.context=e,this.setLevel(e.filterLevel),this.log=this.info};u.prototype={setLevel:function(e){e&&"value"in e&&(this.context.filterLevel=e)},getLevel:function(){return this.context.filterLevel},enabledFor:function(e){var i=this.context.filterLevel;return e.value>=i.value},trace:function(){this.invoke(_.TRACE,arguments)},debug:function(){this.invoke(_.DEBUG,arguments)},info:function(){this.invoke(_.INFO,arguments)},warn:function(){this.invoke(_.WARN,arguments)},error:function(){this.invoke(_.ERROR,arguments)},time:function(e){"string"==typeof e&&e.length>0&&this.invoke(_.TIME,[e,"start"])},timeEnd:function(e){"string"==typeof e&&e.length>0&&this.invoke(_.TIME,[e,"end"])},invoke:function(e,i){t&&this.enabledFor(e)&&t(i,r({level:e},this.context))}};var N,l=new u({filterLevel:_.OFF});(N=_).enabledFor=s(l,l.enabledFor),N.trace=s(l,l.trace),N.debug=s(l,l.debug),N.time=s(l,l.time),N.timeEnd=s(l,l.timeEnd),N.info=s(l,l.info),N.warn=s(l,l.warn),N.error=s(l,l.error),N.log=N.info,_.setHandler=function(e){t=e},_.setLevel=function(e){for(var i in l.setLevel(e),w)w.hasOwnProperty(i)&&w[i].setLevel(e)},_.getLevel=function(){return l.getLevel()},_.get=function(e){return w[e]||(w[e]=new u(r({name:e},l.context)))},_.createDefaultHandler=function(e){(e=e||{}).formatter=e.formatter||function(e,i){i.name&&e.unshift("["+i.name+"]")};var i={},o=function(e,i){Function.prototype.apply.call(e,console,i)};return"undefined"==typeof console?function(){}:function(n,d){n=Array.prototype.slice.call(n);var v,t=console.log;d.level===_.TIME?(v=(d.name?"["+d.name+"] ":"")+n[0],"start"===n[1]?console.time?console.time(v):i[v]=(new Date).getTime():console.timeEnd?console.timeEnd(v):o(t,[v+": "+((new Date).getTime()-i[v])+"ms"])):(d.level===_.WARN&&console.warn?t=console.warn:d.level===_.ERROR&&console.error?t=console.error:d.level===_.INFO&&console.info?t=console.info:d.level===_.DEBUG&&console.debug?t=console.debug:d.level===_.TRACE&&console.trace&&(t=console.trace),e.formatter(n,d),o(t,n))}},_.useDefaults=function(e){_.setLevel(e&&e.defaultLevel||_.DEBUG),_.setHandler(_.createDefaultHandler(e))},void 0===(d="function"==typeof(n=_)?n.call(i,o,i,e):n)||(e.exports=d)}()}}); |