{"type": "func", "start": 5371627264, "end": 5371627344, "name": "LevelAreaInnerLayer::onExit", "pseudocode": "// \n// LevelAreaInnerLayer::onExit from 0x1402c8700 to 0x1402c8750 (80 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140583920\n// > <???> @ 0x1406d2c00\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 LevelAreaInnerLayer::onExit(LevelAreaInnerLayer *a1)\n{\n  __int64 v2; // rcx\n  cocos2d::CCSpriteFrameCache *v3; // rax\n  cocos2d::CCTextureCache *v4; // rax\n\n  cocos2d::CCLayer::onExit(a1);\n  if ( a1->m_exiting )\n  {\n    v3 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v2);\n    cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(v3, \"TowerSheet.plist\");\n    v4 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();\n    cocos2d::CCTextureCache::removeTextureForKey(v4, \"TowerSheet.png\");\n  }\n}", "assembly": "; \n; LevelAreaInnerLayer::onExit from 0x1402c8700 to 0x1402c8750 (80 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140583920\n; > <???> @ 0x1406d2c00\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    rbx                                                            ; +0x0, 0x1402c8700\nsub     rsp, 20h                                                       ; +0x2, 0x1402c8702\nmov     rbx, rcx                                                       ; +0x6, 0x1402c8706\ncall    cs:__imp_?onExit@CCLayer@cocos2d@@UEAAXXZ; cocos2d::CCLayer::onExit(void) ; +0x9, 0x1402c8709\ncmp     byte ptr [rbx+1B0h], 0                                         ; +0xf, 0x1402c870f\njz      short loc_1402C874A                                            ; +0x16, 0x1402c8716\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x18, 0x1402c8718\nmov     rcx, rax                                                       ; +0x1e, 0x1402c871e\nlea     rdx, aTowersheetPlis; \"TowerSheet.plist\"                       ; +0x21, 0x1402c8721\ncall    cs:?removeSpriteFramesFromFile@CCSpriteFrameCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(char const *) ; +0x28, 0x1402c8728\ncall    cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x2e, 0x1402c872e\nmov     rcx, rax                                                       ; +0x34, 0x1402c8734\nlea     rdx, aTowersheetPng; \"TowerSheet.png\"                          ; +0x37, 0x1402c8737\nadd     rsp, 20h                                                       ; +0x3e, 0x1402c873e\npop     rbx                                                            ; +0x42, 0x1402c8742\njmp     cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x43, 0x1402c8743\nadd     rsp, 20h                                                       ; +0x4a, 0x1402c874a\npop     rbx                                                            ; +0x4e, 0x1402c874e\nretn                                                                   ; +0x4f, 0x1402c874f", "xrefs": ["<???> @ 0x140583920", "<???> @ 0x1406d2c00"], "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"}