{"type": "func", "start": 6442518224, "end": 6442518813, "name": "cocos2d::extension::CCEditBox::~CCEditBox", "pseudocode": "// \n// cocos2d::extension::CCEditBox::~CCEditBox from 0x1800106d0 to 0x18001091d (589 bytes)\n// \n// 4 xrefs:\n// > sub_180011370 @ 0x1800113d2\n// > sub_180011370 @ 0x18001138c\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004a164\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::extension::CCEditBox::~CCEditBox(cocos2d::extension::CCEditBox *this)\n{\n  void (__fastcall ***v2)(_QWORD, __int64); // rcx\n  _QWORD *v3; // rax\n  unsigned __int64 v4; // rdx\n  _QWORD *v5; // rcx\n  unsigned __int64 v6; // rdx\n  _QWORD *v7; // rcx\n  unsigned __int64 v8; // rdx\n  _QWORD *v9; // rcx\n  unsigned __int64 v10; // rdx\n  void *v11; // rcx\n\n  *(_QWORD *)this = &cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCNode'};\n  *((_QWORD *)this + 40) = &cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCTouchDelegate'};\n  *((_QWORD *)this + 41) = &cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCAccelerometerDelegate'};\n  *((_QWORD *)this + 42) = &cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCKeypadDelegate'};\n  *((_QWORD *)this + 43) = &cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCKeyboardDelegate'};\n  *((_QWORD *)this + 44) = &cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCMouseDelegate'};\n  *((_QWORD *)this + 51) = &cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::extension::CCControlButton'};\n  *((_QWORD *)this + 71) = &cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCIMEDelegate'};\n  v2 = *((void (__fastcall ****)(_QWORD, __int64))this + 72);\n  if ( v2 )\n  {\n    (**v2)(v2, 1);\n    *((_QWORD *)this + 72) = 0;\n  }\n  if ( *((_DWORD *)this + 190) )\n  {\n    v3 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager();\n    (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v3 + 24LL))(*v3, *((unsigned int *)this + 190));\n    *((_DWORD *)this + 190) = 0;\n  }\n  v4 = *((_QWORD *)this + 91);\n  if ( v4 > 0xF )\n  {\n    v5 = *((_QWORD **)this + 88);\n    if ( v4 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )\n        goto LABEL_26;\n      v5 = (_QWORD *)*(v5 - 1);\n    }\n    j_j_free(v5);\n  }\n  *((_QWORD *)this + 90) = 0;\n  *((_QWORD *)this + 91) = 15;\n  *((_BYTE *)this + 704) = 0;\n  v6 = *((_QWORD *)this + 87);\n  if ( v6 > 0xF )\n  {\n    v7 = *((_QWORD **)this + 84);\n    if ( v6 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v7 - *(v7 - 1) - 8 > 0x1F )\n        goto LABEL_26;\n      v7 = (_QWORD *)*(v7 - 1);\n    }\n    j_j_free(v7);\n  }\n  *((_QWORD *)this + 86) = 0;\n  *((_QWORD *)this + 87) = 15;\n  *((_BYTE *)this + 672) = 0;\n  v8 = *((_QWORD *)this + 83);\n  if ( v8 > 0xF )\n  {\n    v9 = *((_QWORD **)this + 80);\n    if ( v8 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v9 - *(v9 - 1) - 8 > 0x1F )\n        goto LABEL_26;\n      v9 = (_QWORD *)*(v9 - 1);\n    }\n    j_j_free(v9);\n  }\n  *((_QWORD *)this + 82) = 0;\n  *((_QWORD *)this + 83) = 15;\n  *((_BYTE *)this + 640) = 0;\n  v10 = *((_QWORD *)this + 79);\n  if ( v10 > 0xF )\n  {\n    v11 = *((void **)this + 76);\n    if ( v10 + 1 < 0x1000 )\n    {\nLABEL_24:\n      j_j_free(v11);\n      goto LABEL_25;\n    }\n    if ( (unsigned __int64)v11 - *((_QWORD *)v11 - 1) - 8 <= 0x1F )\n    {\n      v11 = *((void **)v11 - 1);\n      goto LABEL_24;\n    }\nLABEL_26:\n    invalid_parameter_noinfo_noreturn();\n  }\nLABEL_25:\n  *((_QWORD *)this + 78) = 0;\n  *((_QWORD *)this + 79) = 15;\n  *((_BYTE *)this + 608) = 0;\n  cocos2d::CCIMEDelegate::~CCIMEDelegate((cocos2d::extension::CCEditBox *)((char *)this + 568));\n  cocos2d::extension::CCControlButton::~CCControlButton(this);\n}", "assembly": "; \n; cocos2d::extension::CCEditBox::~CCEditBox from 0x1800106d0 to 0x18001091d (589 bytes)\n; \n; 4 xrefs:\n; > sub_180011370 @ 0x1800113d2\n; > sub_180011370 @ 0x18001138c\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004a164\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800106d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800106d5\npush    rdi                                                            ; +0xa, 0x1800106da\nsub     rsp, 20h                                                       ; +0xb, 0x1800106db\nmov     rbx, rcx                                                       ; +0xf, 0x1800106df\nlea     rax, ??_7CCEditBox@extension@cocos2d@@6BCCNode@2@@; const cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCNode'} ; +0x12, 0x1800106e2\nmov     [rcx], rax                                                     ; +0x19, 0x1800106e9\nlea     rax, ??_7CCEditBox@extension@cocos2d@@6BCCTouchDelegate@2@@; const cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCTouchDelegate'} ; +0x1c, 0x1800106ec\nmov     [rcx+140h], rax                                                ; +0x23, 0x1800106f3\nlea     rax, ??_7CCEditBox@extension@cocos2d@@6BCCAccelerometerDelegate@2@@; const cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCAccelerometerDelegate'} ; +0x2a, 0x1800106fa\nmov     [rcx+148h], rax                                                ; +0x31, 0x180010701\nlea     rax, ??_7CCEditBox@extension@cocos2d@@6BCCKeypadDelegate@2@@; const cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCKeypadDelegate'} ; +0x38, 0x180010708\nmov     [rcx+150h], rax                                                ; +0x3f, 0x18001070f\nlea     rax, ??_7CCEditBox@extension@cocos2d@@6BCCKeyboardDelegate@2@@; const cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCKeyboardDelegate'} ; +0x46, 0x180010716\nmov     [rcx+158h], rax                                                ; +0x4d, 0x18001071d\nlea     rax, ??_7CCEditBox@extension@cocos2d@@6BCCMouseDelegate@2@@; const cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCMouseDelegate'} ; +0x54, 0x180010724\nmov     [rcx+160h], rax                                                ; +0x5b, 0x18001072b\nlea     rax, ??_7CCEditBox@extension@cocos2d@@6BCCControlButton@12@@; const cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::extension::CCControlButton'} ; +0x62, 0x180010732\nmov     [rcx+198h], rax                                                ; +0x69, 0x180010739\nlea     rax, ??_7CCEditBox@extension@cocos2d@@6BCCIMEDelegate@2@@; const cocos2d::extension::CCEditBox::`vftable'{for `cocos2d::CCIMEDelegate'} ; +0x70, 0x180010740\nmov     [rcx+238h], rax                                                ; +0x77, 0x180010747\nmov     rcx, [rcx+240h]                                                ; +0x7e, 0x18001074e\nxor     esi, esi                                                       ; +0x85, 0x180010755\ntest    rcx, rcx                                                       ; +0x87, 0x180010757\njz      short loc_18001076B                                            ; +0x8a, 0x18001075a\nmov     rax, [rcx]                                                     ; +0x8c, 0x18001075c\nlea     edx, [rsi+1]                                                   ; +0x8f, 0x18001075f\ncall    qword ptr [rax]                                                ; +0x92, 0x180010762\nmov     [rbx+240h], rsi                                                ; +0x94, 0x180010764\ncmp     [rbx+2F8h], esi                                                ; +0x9b, 0x18001076b\njz      short loc_18001078E                                            ; +0xa1, 0x180010771\ncall    cs:?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0xa3, 0x180010773\nmov     rcx, [rax]                                                     ; +0xa9, 0x180010779\nmov     rax, [rcx]                                                     ; +0xac, 0x18001077c\nmov     edx, [rbx+2F8h]                                                ; +0xaf, 0x18001077f\ncall    qword ptr [rax+18h]                                            ; +0xb5, 0x180010785\nmov     [rbx+2F8h], esi                                                ; +0xb8, 0x180010788\nmov     rdx, [rbx+2D8h]                                                ; +0xbe, 0x18001078e\ncmp     rdx, 0Fh                                                       ; +0xc5, 0x180010795\njbe     short loc_1800107CF                                            ; +0xc9, 0x180010799\ninc     rdx                                                            ; +0xcb, 0x18001079b\nmov     rcx, [rbx+2C0h]                                                ; +0xce, 0x18001079e\ncmp     rdx, 1000h                                                     ; +0xd5, 0x1800107a5\njb      short loc_1800107CA                                            ; +0xdc, 0x1800107ac\nadd     rdx, 27h ; '''                                                 ; +0xde, 0x1800107ae\nmov     r8, [rcx-8]                                                    ; +0xe2, 0x1800107b2\nsub     rcx, r8                                                        ; +0xe6, 0x1800107b6\nlea     rax, [rcx-8]                                                   ; +0xe9, 0x1800107b9\ncmp     rax, 1Fh                                                       ; +0xed, 0x1800107bd\nja      loc_180010916                                                  ; +0xf1, 0x1800107c1\nmov     rcx, r8; Block                                                 ; +0xf7, 0x1800107c7\ncall    j_j_free                                                       ; +0xfa, 0x1800107ca\nmov     [rbx+2D0h], rsi                                                ; +0xff, 0x1800107cf\nmov     qword ptr [rbx+2D8h], 0Fh                                      ; +0x106, 0x1800107d6\nmov     [rbx+2C0h], sil                                                ; +0x111, 0x1800107e1\nmov     rdx, [rbx+2B8h]                                                ; +0x118, 0x1800107e8\ncmp     rdx, 0Fh                                                       ; +0x11f, 0x1800107ef\njbe     short loc_180010829                                            ; +0x123, 0x1800107f3\ninc     rdx                                                            ; +0x125, 0x1800107f5\nmov     rcx, [rbx+2A0h]                                                ; +0x128, 0x1800107f8\ncmp     rdx, 1000h                                                     ; +0x12f, 0x1800107ff\njb      short loc_180010824                                            ; +0x136, 0x180010806\nadd     rdx, 27h ; '''                                                 ; +0x138, 0x180010808\nmov     r8, [rcx-8]                                                    ; +0x13c, 0x18001080c\nsub     rcx, r8                                                        ; +0x140, 0x180010810\nlea     rax, [rcx-8]                                                   ; +0x143, 0x180010813\ncmp     rax, 1Fh                                                       ; +0x147, 0x180010817\nja      loc_180010916                                                  ; +0x14b, 0x18001081b\nmov     rcx, r8; Block                                                 ; +0x151, 0x180010821\ncall    j_j_free                                                       ; +0x154, 0x180010824\nmov     [rbx+2B0h], rsi                                                ; +0x159, 0x180010829\nmov     qword ptr [rbx+2B8h], 0Fh                                      ; +0x160, 0x180010830\nmov     [rbx+2A0h], sil                                                ; +0x16b, 0x18001083b\nmov     rdx, [rbx+298h]                                                ; +0x172, 0x180010842\ncmp     rdx, 0Fh                                                       ; +0x179, 0x180010849\njbe     short loc_180010883                                            ; +0x17d, 0x18001084d\ninc     rdx                                                            ; +0x17f, 0x18001084f\nmov     rcx, [rbx+280h]                                                ; +0x182, 0x180010852\ncmp     rdx, 1000h                                                     ; +0x189, 0x180010859\njb      short loc_18001087E                                            ; +0x190, 0x180010860\nadd     rdx, 27h ; '''                                                 ; +0x192, 0x180010862\nmov     r8, [rcx-8]                                                    ; +0x196, 0x180010866\nsub     rcx, r8                                                        ; +0x19a, 0x18001086a\nlea     rax, [rcx-8]                                                   ; +0x19d, 0x18001086d\ncmp     rax, 1Fh                                                       ; +0x1a1, 0x180010871\nja      loc_180010916                                                  ; +0x1a5, 0x180010875\nmov     rcx, r8; Block                                                 ; +0x1ab, 0x18001087b\ncall    j_j_free                                                       ; +0x1ae, 0x18001087e\nmov     [rbx+290h], rsi                                                ; +0x1b3, 0x180010883\nmov     qword ptr [rbx+298h], 0Fh                                      ; +0x1ba, 0x18001088a\nmov     [rbx+280h], sil                                                ; +0x1c5, 0x180010895\nmov     rdx, [rbx+278h]                                                ; +0x1cc, 0x18001089c\ncmp     rdx, 0Fh                                                       ; +0x1d3, 0x1800108a3\njbe     short loc_1800108D9                                            ; +0x1d7, 0x1800108a7\ninc     rdx                                                            ; +0x1d9, 0x1800108a9\nmov     rcx, [rbx+260h]                                                ; +0x1dc, 0x1800108ac\ncmp     rdx, 1000h                                                     ; +0x1e3, 0x1800108b3\njb      short loc_1800108D4                                            ; +0x1ea, 0x1800108ba\nadd     rdx, 27h ; '''                                                 ; +0x1ec, 0x1800108bc\nmov     r8, [rcx-8]                                                    ; +0x1f0, 0x1800108c0\nsub     rcx, r8                                                        ; +0x1f4, 0x1800108c4\nlea     rax, [rcx-8]                                                   ; +0x1f7, 0x1800108c7\ncmp     rax, 1Fh                                                       ; +0x1fb, 0x1800108cb\nja      short loc_180010916                                            ; +0x1ff, 0x1800108cf\nmov     rcx, r8; Block                                                 ; +0x201, 0x1800108d1\ncall    j_j_free                                                       ; +0x204, 0x1800108d4\nmov     [rbx+270h], rsi                                                ; +0x209, 0x1800108d9\nmov     qword ptr [rbx+278h], 0Fh                                      ; +0x210, 0x1800108e0\nmov     [rbx+260h], sil                                                ; +0x21b, 0x1800108eb\nlea     rcx, [rbx+238h]                                                ; +0x222, 0x1800108f2\ncall    cs:??1CCIMEDelegate@cocos2d@@UEAA@XZ; cocos2d::CCIMEDelegate::~CCIMEDelegate(void) ; +0x229, 0x1800108f9\nmov     rcx, rbx; this                                                 ; +0x22f, 0x1800108ff\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x232, 0x180010902\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x237, 0x180010907\nadd     rsp, 20h                                                       ; +0x23c, 0x18001090c\npop     rdi                                                            ; +0x240, 0x180010910\njmp     ??1CCControlButton@extension@cocos2d@@UEAA@XZ; cocos2d::extension::CCControlButton::~CCControlButton(void) ; +0x241, 0x180010911\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x246, 0x180010916\ndb 0CCh                                                                ; +0x24c, 0x18001091c", "xrefs": ["sub_180011370 @ 0x1800113d2", "sub_180011370 @ 0x18001138c", "<???> @ 0x18002fdf8", "<???> @ 0x18004a164"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}