{"type": "func", "start": 6443213168, "end": 6443213243, "name": "sub_1800BA170", "pseudocode": "// \n// sub_1800BA170 from 0x1800ba170 to 0x1800ba1bb (75 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18010d468\n// > <???> @ 0x1801c2e5c\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:22:23 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject **__fastcall sub_1800BA170(cocos2d::CCObject **this, char a2)\n{\n  *this = (cocos2d::CCObject *)&cocos2d::CCSchedulerScriptHandlerEntry::`vftable';\n  cocos2d::CCObject::release(*(this + 8));\n  cocos2d::CCScriptHandlerEntry::dCCScriptHandlerEntry((cocos2d::CCObject *)this);\n  if ( (a2 & 1) != 0 )\n    j_j_free_0(this);\n  return this;\n}", "assembly": "; \n; sub_1800BA170 from 0x1800ba170 to 0x1800ba1bb (75 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18010d468\n; > <???> @ 0x1801c2e5c\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:22:23 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800ba170\npush    rdi                                                            ; +0x5, 0x1800ba175\nsub     rsp, 20h                                                       ; +0x6, 0x1800ba176\nmov     ebx, edx                                                       ; +0xa, 0x1800ba17a\nmov     rdi, rcx                                                       ; +0xc, 0x1800ba17c\nlea     rax, ??_7CCSchedulerScriptHandlerEntry@cocos2d@@6B@; const cocos2d::CCSchedulerScriptHandlerEntry::`vftable' ; +0xf, 0x1800ba17f\nmov     [rcx], rax                                                     ; +0x16, 0x1800ba186\nmov     rcx, [rcx+40h]; this                                           ; +0x19, 0x1800ba189\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1d, 0x1800ba18d\nmov     rcx, rdi; this                                                 ; +0x22, 0x1800ba192\ncall    cocos2d__CCScriptHandlerEntry__dCCScriptHandlerEntry           ; +0x25, 0x1800ba195\nnop                                                                    ; +0x2a, 0x1800ba19a\ntest    bl, 1                                                          ; +0x2b, 0x1800ba19b\njz      short loc_1800BA1AD                                            ; +0x2e, 0x1800ba19e\nmov     edx, 50h ; 'P'                                                 ; +0x30, 0x1800ba1a0\nmov     rcx, rdi; Block                                                ; +0x35, 0x1800ba1a5\ncall    j_j_free_0                                                     ; +0x38, 0x1800ba1a8\nmov     rax, rdi                                                       ; +0x3d, 0x1800ba1ad\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x40, 0x1800ba1b0\nadd     rsp, 20h                                                       ; +0x45, 0x1800ba1b5\npop     rdi                                                            ; +0x49, 0x1800ba1b9\nretn                                                                   ; +0x4a, 0x1800ba1ba", "xrefs": ["<???> @ 0x18010d468", "<???> @ 0x1801c2e5c"], "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"}