{"type": "func", "start": 6442516400, "end": 6442516541, "name": "sub_18000FFB0", "pseudocode": "// \n// sub_18000FFB0 from 0x18000ffb0 to 0x18001003d (141 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002a6d8\n// > <???> @ 0x18004c02c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:39 +0000\n// \n\n_QWORD *__fastcall sub_18000FFB0(_QWORD *a1, char a2)\n{\n  int v3; // esi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    sub_18001F0B0(a1, 24, *(a1 - 1), cocos2d::extension::CCEditBoxImpl::~CCEditBoxImpl);\n    if ( v3 )\n      j_j_j_free(a1 - 1);\n    return a1 - 1;\n  }\n  else\n  {\n    *a1 = &cocos2d::extension::CCEditBoxImpl::`vftable';\n    if ( (a2 & 1) != 0 )\n      j_j_free(a1);\n    return a1;\n  }\n}", "assembly": "; \n; sub_18000FFB0 from 0x18000ffb0 to 0x18001003d (141 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002a6d8\n; > <???> @ 0x18004c02c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:39 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18000ffb0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18000ffb5\npush    rdi                                                            ; +0xa, 0x18000ffba\nsub     rsp, 20h                                                       ; +0xb, 0x18000ffbb\nmov     rbx, rcx                                                       ; +0xf, 0x18000ffbf\nmov     esi, edx                                                       ; +0x12, 0x18000ffc2\nand     esi, 1                                                         ; +0x14, 0x18000ffc4\ntest    dl, 2                                                          ; +0x17, 0x18000ffc7\njz      short loc_180010012                                            ; +0x1a, 0x18000ffca\nlea     r9, ??1CCEditBoxImpl@extension@cocos2d@@UEAA@XZ; cocos2d::extension::CCEditBoxImpl::~CCEditBoxImpl(void) ; +0x1c, 0x18000ffcc\nmov     r8, [rcx-8]                                                    ; +0x23, 0x18000ffd3\nmov     edx, 18h                                                       ; +0x27, 0x18000ffd7\ncall    sub_18001F0B0                                                  ; +0x2c, 0x18000ffdc\ntest    esi, esi                                                       ; +0x31, 0x18000ffe1\njz      short loc_18000FFFE                                            ; +0x33, 0x18000ffe3\nmov     rcx, [rbx-8]                                                   ; +0x35, 0x18000ffe5\nlea     rdx, [rcx+rcx*2]                                               ; +0x39, 0x18000ffe9\nlea     rdx, ds:8[rdx*8]                                               ; +0x3d, 0x18000ffed\nlea     rcx, [rbx-8]; Block                                            ; +0x45, 0x18000fff5\ncall    j_j_j_free                                                     ; +0x49, 0x18000fff9\nlea     rax, [rbx-8]                                                   ; +0x4e, 0x18000fffe\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180010002\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x57, 0x180010007\nadd     rsp, 20h                                                       ; +0x5c, 0x18001000c\npop     rdi                                                            ; +0x60, 0x180010010\nretn                                                                   ; +0x61, 0x180010011\nlea     rax, ??_7CCEditBoxImpl@extension@cocos2d@@6B@; const cocos2d::extension::CCEditBoxImpl::`vftable' ; +0x62, 0x180010012\nmov     [rcx], rax                                                     ; +0x69, 0x180010019\ntest    esi, esi                                                       ; +0x6c, 0x18001001c\njz      short loc_18001002A                                            ; +0x6e, 0x18001001e\nmov     edx, 18h                                                       ; +0x70, 0x180010020\ncall    j_j_free                                                       ; +0x75, 0x180010025\nmov     rax, rbx                                                       ; +0x7a, 0x18001002a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7d, 0x18001002d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x82, 0x180010032\nadd     rsp, 20h                                                       ; +0x87, 0x180010037\npop     rdi                                                            ; +0x8b, 0x18001003b\nretn                                                                   ; +0x8c, 0x18001003c", "xrefs": ["<???> @ 0x18002a6d8", "<???> @ 0x18004c02c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}