{"type": "func", "start": 3030330, "end": 3030428, "name": "CCAnimatedSprite::cleanupSprite", "pseudocode": "// \n// CCAnimatedSprite::cleanupSprite from 0x2e3d3a to 0x2e3d9c (98 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::loadType @ 0x2e3de2\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 CCAnimatedSprite::cleanupSprite(CCAnimatedSprite *a1)\n{\n  CCPartAnimSprite *m_paSprite; // r0\n  cocos2d::CCSprite *m_fbfSprite; // r0\n  SpriteAnimationManager *m_animationManager; // r0\n  cocos2d::CCSprite *v5; // r0\n  CCPartAnimSprite *v6; // r0\n\n  m_paSprite = a1->m_paSprite;\n  if ( m_paSprite )\n    m_paSprite->cleanup(m_paSprite);\n  m_fbfSprite = a1->m_fbfSprite;\n  if ( m_fbfSprite )\n    m_fbfSprite->cleanup(m_fbfSprite);\n  m_animationManager = a1->m_animationManager;\n  if ( m_animationManager )\n    SpriteAnimationManager::doCleanup(m_animationManager);\n  v5 = a1->m_fbfSprite;\n  if ( v5 )\n    v5->removeFromParentAndCleanup(v5, 1);\n  v6 = a1->m_paSprite;\n  if ( v6 )\n    v6->removeFromParentAndCleanup(v6, 1);\n  a1->m_spriteMode = 0;\n  a1->m_animationManager = nullptr;\n  a1->m_fbfSprite = nullptr;\n  a1->m_paSprite = nullptr;\n  a1->m_sprite = nullptr;\n}", "assembly": "; \n; CCAnimatedSprite::cleanupSprite from 0x2e3d3a to 0x2e3d9c (98 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::loadType @ 0x2e3de2\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\nPUSH            {R4,LR}                                                ; +0x0, 0x2e3d3a\nMOV             R4, R0                                                 ; +0x2, 0x2e3d3c\nLDR.W           R0, [R0,#0x210]                                        ; +0x4, 0x2e3d3e\nCBZ             R0, loc_2E3D4C                                         ; +0x8, 0x2e3d42\nLDR             R3, [R0]                                               ; +0xa, 0x2e3d44\nLDR.W           R3, [R3,#0x168]                                        ; +0xc, 0x2e3d46\nBLX             R3                                                     ; +0x10, 0x2e3d4a\nLDR.W           R0, [R4,#0x20C]                                        ; +0x12, 0x2e3d4c\nCBZ             R0, loc_2E3D5A                                         ; +0x16, 0x2e3d50\nLDR             R3, [R0]                                               ; +0x18, 0x2e3d52\nLDR.W           R3, [R3,#0x168]                                        ; +0x1a, 0x2e3d54\nBLX             R3                                                     ; +0x1e, 0x2e3d58\nLDR.W           R0, [R4,#0x204]; this                                  ; +0x20, 0x2e3d5a\nCBZ             R0, loc_2E3D64                                         ; +0x24, 0x2e3d5e\nBL              _ZN22SpriteAnimationManager9doCleanupEv; SpriteAnimationManager::doCleanup(void) ; +0x26, 0x2e3d60\nLDR.W           R0, [R4,#0x20C]                                        ; +0x2a, 0x2e3d64\nCBZ             R0, loc_2E3D74                                         ; +0x2e, 0x2e3d68\nLDR             R3, [R0]                                               ; +0x30, 0x2e3d6a\nMOVS            R1, #1                                                 ; +0x32, 0x2e3d6c\nLDR.W           R3, [R3,#0x100]                                        ; +0x34, 0x2e3d6e\nBLX             R3                                                     ; +0x38, 0x2e3d72\nLDR.W           R0, [R4,#0x210]                                        ; +0x3a, 0x2e3d74\nCBZ             R0, loc_2E3D84                                         ; +0x3e, 0x2e3d78\nLDR             R3, [R0]                                               ; +0x40, 0x2e3d7a\nMOVS            R1, #1                                                 ; +0x42, 0x2e3d7c\nLDR.W           R3, [R3,#0x100]                                        ; +0x44, 0x2e3d7e\nBLX             R3                                                     ; +0x48, 0x2e3d82\nMOVS            R3, #0                                                 ; +0x4a, 0x2e3d84\nSTR.W           R3, [R4,#0x214]                                        ; +0x4c, 0x2e3d86\nSTR.W           R3, [R4,#0x204]                                        ; +0x50, 0x2e3d8a\nSTR.W           R3, [R4,#0x20C]                                        ; +0x54, 0x2e3d8e\nSTR.W           R3, [R4,#0x210]                                        ; +0x58, 0x2e3d92\nSTR.W           R3, [R4,#0x208]                                        ; +0x5c, 0x2e3d96\nPOP             {R4,PC}                                                ; +0x60, 0x2e3d9a", "xrefs": ["CCAnimatedSprite::loadType @ 0x2e3de2"], "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"}