{"type": "func", "start": 3945682, "end": 3945780, "name": "CCAnimatedSprite::cleanupSprite", "pseudocode": "// \n// CCAnimatedSprite::cleanupSprite from 0x3c34d2 to 0x3c3534 (98 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::loadType @ 0x3c388e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:32 +0000\n// \n\nint __fastcall CCAnimatedSprite::cleanupSprite(CCAnimatedSprite *this)\n{\n  int v2; // r0\n  int v3; // r0\n  SpriteAnimationManager *v4; // r0\n  int v5; // r0\n  int result; // r0\n\n  v2 = *((_DWORD *)this + 136);\n  if ( v2 )\n    (*(void (__fastcall **)(int))(*(_DWORD *)v2 + 368))(v2);\n  v3 = *((_DWORD *)this + 135);\n  if ( v3 )\n    (*(void (__fastcall **)(int))(*(_DWORD *)v3 + 368))(v3);\n  v4 = *((SpriteAnimationManager **)this + 133);\n  if ( v4 )\n    SpriteAnimationManager::doCleanup(v4);\n  v5 = *((_DWORD *)this + 135);\n  if ( v5 )\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 264))(v5, 1);\n  result = *((_DWORD *)this + 136);\n  if ( result )\n    result = (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 264))(result, 1);\n  *((_DWORD *)this + 137) = 0;\n  *((_DWORD *)this + 133) = 0;\n  *((_DWORD *)this + 135) = 0;\n  *((_DWORD *)this + 136) = 0;\n  *((_DWORD *)this + 134) = 0;\n  return result;\n}", "assembly": "; \n; CCAnimatedSprite::cleanupSprite from 0x3c34d2 to 0x3c3534 (98 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::loadType @ 0x3c388e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:32 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x3c34d2\nMOV             R4, R0                                                 ; +0x2, 0x3c34d4\nLDR.W           R0, [R0,#0x220]                                        ; +0x4, 0x3c34d6\nCBZ             R0, loc_3C34E4                                         ; +0x8, 0x3c34da\nLDR             R3, [R0]                                               ; +0xa, 0x3c34dc\nLDR.W           R3, [R3,#0x170]                                        ; +0xc, 0x3c34de\nBLX             R3                                                     ; +0x10, 0x3c34e2\nLDR.W           R0, [R4,#0x21C]                                        ; +0x12, 0x3c34e4\nCBZ             R0, loc_3C34F2                                         ; +0x16, 0x3c34e8\nLDR             R3, [R0]                                               ; +0x18, 0x3c34ea\nLDR.W           R3, [R3,#0x170]                                        ; +0x1a, 0x3c34ec\nBLX             R3                                                     ; +0x1e, 0x3c34f0\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x20, 0x3c34f2\nCBZ             R0, loc_3C34FC                                         ; +0x24, 0x3c34f6\nBL              _ZN22SpriteAnimationManager9doCleanupEv; SpriteAnimationManager::doCleanup(void) ; +0x26, 0x3c34f8\nLDR.W           R0, [R4,#0x21C]                                        ; +0x2a, 0x3c34fc\nCBZ             R0, loc_3C350C                                         ; +0x2e, 0x3c3500\nLDR             R3, [R0]                                               ; +0x30, 0x3c3502\nMOVS            R1, #1                                                 ; +0x32, 0x3c3504\nLDR.W           R3, [R3,#0x108]                                        ; +0x34, 0x3c3506\nBLX             R3                                                     ; +0x38, 0x3c350a\nLDR.W           R0, [R4,#0x220]                                        ; +0x3a, 0x3c350c\nCBZ             R0, loc_3C351C                                         ; +0x3e, 0x3c3510\nLDR             R3, [R0]                                               ; +0x40, 0x3c3512\nMOVS            R1, #1                                                 ; +0x42, 0x3c3514\nLDR.W           R3, [R3,#0x108]                                        ; +0x44, 0x3c3516\nBLX             R3                                                     ; +0x48, 0x3c351a\nMOVS            R3, #0                                                 ; +0x4a, 0x3c351c\nSTR.W           R3, [R4,#0x224]                                        ; +0x4c, 0x3c351e\nSTR.W           R3, [R4,#0x214]                                        ; +0x50, 0x3c3522\nSTR.W           R3, [R4,#0x21C]                                        ; +0x54, 0x3c3526\nSTR.W           R3, [R4,#0x220]                                        ; +0x58, 0x3c352a\nSTR.W           R3, [R4,#0x218]                                        ; +0x5c, 0x3c352e\nPOP             {R4,PC}                                                ; +0x60, 0x3c3532", "xrefs": ["CCAnimatedSprite::loadType @ 0x3c388e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}