{"type": "func", "start": 6443146800, "end": 6443146891, "name": "sub_1800A9E30", "pseudocode": "// \n// sub_1800A9E30 from 0x1800a9e30 to 0x1800a9e8b (91 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180105168\n// > <???> @ 0x1801b7f2c\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_1800A9E30(cocos2d::CCObject *this, char a2)\n{\n  cocos2d *v4; // rcx\n\n  this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCTexturePVR::`vftable';\n  v4 = (cocos2d *)*((unsigned int *)this + 81);\n  if ( (_DWORD)v4 && !*((_BYTE *)this + 331) )\n    cocos2d::ccGLDeleteTexture(v4);\n  cocos2d::CCObject::~CCObject(this);\n  if ( (a2 & 1) != 0 )\n    j_j_free_0(this);\n  return this;\n}", "assembly": "; \n; sub_1800A9E30 from 0x1800a9e30 to 0x1800a9e8b (91 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180105168\n; > <???> @ 0x1801b7f2c\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, 0x1800a9e30\npush    rdi                                                            ; +0x5, 0x1800a9e35\nsub     rsp, 20h                                                       ; +0x6, 0x1800a9e36\nmov     edi, edx                                                       ; +0xa, 0x1800a9e3a\nmov     rbx, rcx                                                       ; +0xc, 0x1800a9e3c\nlea     rax, ??_7CCTexturePVR@cocos2d@@6B@; const cocos2d::CCTexturePVR::`vftable' ; +0xf, 0x1800a9e3f\nmov     [rcx], rax                                                     ; +0x16, 0x1800a9e46\nmov     ecx, [rcx+144h]; this                                          ; +0x19, 0x1800a9e49\ntest    ecx, ecx                                                       ; +0x1f, 0x1800a9e4f\njz      short loc_1800A9E61                                            ; +0x21, 0x1800a9e51\ncmp     byte ptr [rbx+14Bh], 0                                         ; +0x23, 0x1800a9e53\njnz     short loc_1800A9E61                                            ; +0x2a, 0x1800a9e5a\ncall    ?ccGLDeleteTexture@cocos2d@@YAXI@Z; cocos2d::ccGLDeleteTexture(uint) ; +0x2c, 0x1800a9e5c\nmov     rcx, rbx; this                                                 ; +0x31, 0x1800a9e61\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x34, 0x1800a9e64\nnop                                                                    ; +0x39, 0x1800a9e69\ntest    dil, 1                                                         ; +0x3a, 0x1800a9e6a\njz      short loc_1800A9E7D                                            ; +0x3e, 0x1800a9e6e\nmov     edx, 158h                                                      ; +0x40, 0x1800a9e70\nmov     rcx, rbx; Block                                                ; +0x45, 0x1800a9e75\ncall    j_j_free_0                                                     ; +0x48, 0x1800a9e78\nmov     rax, rbx                                                       ; +0x4d, 0x1800a9e7d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x50, 0x1800a9e80\nadd     rsp, 20h                                                       ; +0x55, 0x1800a9e85\npop     rdi                                                            ; +0x59, 0x1800a9e89\nretn                                                                   ; +0x5a, 0x1800a9e8a", "xrefs": ["<???> @ 0x180105168", "<???> @ 0x1801b7f2c"], "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"}