{"type": "func", "start": 5371618160, "end": 5371618240, "name": "LevelAreaLayer::onExit", "pseudocode": "// \n// LevelAreaLayer::onExit from 0x1402c6370 to 0x1402c63c0 (80 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405833e8\n// > <???> @ 0x1406d2b58\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 LevelAreaLayer::onExit(LevelAreaLayer *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; LevelAreaLayer::onExit from 0x1402c6370 to 0x1402c63c0 (80 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405833e8\n; > <???> @ 0x1406d2b58\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, 0x1402c6370\nsub     rsp, 20h                                                       ; +0x2, 0x1402c6372\nmov     rbx, rcx                                                       ; +0x6, 0x1402c6376\ncall    cs:__imp_?onExit@CCLayer@cocos2d@@UEAAXXZ; cocos2d::CCLayer::onExit(void) ; +0x9, 0x1402c6379\ncmp     byte ptr [rbx+1B1h], 0                                         ; +0xf, 0x1402c637f\njz      short loc_1402C63BA                                            ; +0x16, 0x1402c6386\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x18, 0x1402c6388\nmov     rcx, rax                                                       ; +0x1e, 0x1402c638e\nlea     rdx, aTowersheetPlis; \"TowerSheet.plist\"                       ; +0x21, 0x1402c6391\ncall    cs:?removeSpriteFramesFromFile@CCSpriteFrameCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(char const *) ; +0x28, 0x1402c6398\ncall    cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x2e, 0x1402c639e\nmov     rcx, rax                                                       ; +0x34, 0x1402c63a4\nlea     rdx, aTowersheetPng; \"TowerSheet.png\"                          ; +0x37, 0x1402c63a7\nadd     rsp, 20h                                                       ; +0x3e, 0x1402c63ae\npop     rbx                                                            ; +0x42, 0x1402c63b2\njmp     cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x43, 0x1402c63b3\nadd     rsp, 20h                                                       ; +0x4a, 0x1402c63ba\npop     rbx                                                            ; +0x4e, 0x1402c63be\nretn                                                                   ; +0x4f, 0x1402c63bf", "xrefs": ["<???> @ 0x1405833e8", "<???> @ 0x1406d2b58"], "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"}