{"type": "func", "start": 6442592688, "end": 6442592863, "name": "sub_1800229B0", "pseudocode": "// \n// sub_1800229B0 from 0x1800229b0 to 0x180022a5f (175 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ed230\n// > <???> @ 0x1801b9028\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 11:21:28 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_1800229B0(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n  cocos2d::CCObject *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 120, *(this - 1), cocos2d::CCGridBase::~CCGridBase);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0(this - 1);\n    return (cocos2d::CCObject *)(this - 1);\n  }\n  else\n  {\n    *this = (cocos2d::CCObject *)&cocos2d::CCGridBase::`vftable';\n    v5 = *(this + 9);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    v6 = *(this + 11);\n    if ( v6 )\n      cocos2d::CCObject::release(v6);\n    cocos2d::CCObject::~CCObject((cocos2d::CCObject *)this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return (cocos2d::CCObject *)this;\n  }\n}", "assembly": "; \n; sub_1800229B0 from 0x1800229b0 to 0x180022a5f (175 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ed230\n; > <???> @ 0x1801b9028\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 11:21:28 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800229b0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800229b5\npush    rdi                                                            ; +0xa, 0x1800229ba\nsub     rsp, 20h                                                       ; +0xb, 0x1800229bb\nmov     esi, edx                                                       ; +0xf, 0x1800229bf\nmov     rbx, rcx                                                       ; +0x11, 0x1800229c1\ntest    dl, 2                                                          ; +0x14, 0x1800229c4\njz      short loc_180022A0A                                            ; +0x17, 0x1800229c7\nlea     r9, ??1CCGridBase@cocos2d@@UEAA@XZ; cocos2d::CCGridBase::~CCGridBase(void) ; +0x19, 0x1800229c9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x1800229d0\nmov     edx, 78h ; 'x'                                                 ; +0x24, 0x1800229d4\ncall    sub_1800E49F8                                                  ; +0x29, 0x1800229d9\ntest    sil, 1                                                         ; +0x2e, 0x1800229de\njz      short loc_1800229F6                                            ; +0x32, 0x1800229e2\nimul    rdx, [rbx-8], 78h ; 'x'                                        ; +0x34, 0x1800229e4\nadd     rdx, 8                                                         ; +0x39, 0x1800229e9\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x1800229ed\ncall    j_j_j_free_0                                                   ; +0x41, 0x1800229f1\nlea     rax, [rbx-8]                                                   ; +0x46, 0x1800229f6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x1800229fa\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x1800229ff\nadd     rsp, 20h                                                       ; +0x54, 0x180022a04\npop     rdi                                                            ; +0x58, 0x180022a08\nretn                                                                   ; +0x59, 0x180022a09\nlea     rax, ??_7CCGridBase@cocos2d@@6B@; const cocos2d::CCGridBase::`vftable' ; +0x5a, 0x180022a0a\nmov     [rcx], rax                                                     ; +0x61, 0x180022a11\nmov     rcx, [rcx+48h]; this                                           ; +0x64, 0x180022a14\ntest    rcx, rcx                                                       ; +0x68, 0x180022a18\njz      short loc_180022A22                                            ; +0x6b, 0x180022a1b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6d, 0x180022a1d\nmov     rcx, [rbx+58h]; this                                           ; +0x72, 0x180022a22\ntest    rcx, rcx                                                       ; +0x76, 0x180022a26\njz      short loc_180022A30                                            ; +0x79, 0x180022a29\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7b, 0x180022a2b\nmov     rcx, rbx; this                                                 ; +0x80, 0x180022a30\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x83, 0x180022a33\nnop                                                                    ; +0x88, 0x180022a38\ntest    sil, 1                                                         ; +0x89, 0x180022a39\njz      short loc_180022A4C                                            ; +0x8d, 0x180022a3d\nmov     edx, 78h ; 'x'                                                 ; +0x8f, 0x180022a3f\nmov     rcx, rbx; Block                                                ; +0x94, 0x180022a44\ncall    j_j_free_0                                                     ; +0x97, 0x180022a47\nmov     rax, rbx                                                       ; +0x9c, 0x180022a4c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9f, 0x180022a4f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa4, 0x180022a54\nadd     rsp, 20h                                                       ; +0xa9, 0x180022a59\npop     rdi                                                            ; +0xad, 0x180022a5d\nretn                                                                   ; +0xae, 0x180022a5e", "xrefs": ["<???> @ 0x1800ed230", "<???> @ 0x1801b9028"], "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"}