{"type": "func", "start": 5371351392, "end": 5371351472, "name": "GJPathsLayer::onExit", "pseudocode": "// \n// GJPathsLayer::onExit from 0x140285160 to 0x1402851b0 (80 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14056e218\n// > <???> @ 0x1406d1544\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 GJPathsLayer::onExit(GJPathsLayer *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, \"GJ_PathSheet.plist\");\n    v4 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();\n    cocos2d::CCTextureCache::removeTextureForKey(v4, \"GJ_PathSheet.png\");\n  }\n}", "assembly": "; \n; GJPathsLayer::onExit from 0x140285160 to 0x1402851b0 (80 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14056e218\n; > <???> @ 0x1406d1544\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, 0x140285160\nsub     rsp, 20h                                                       ; +0x2, 0x140285162\nmov     rbx, rcx                                                       ; +0x6, 0x140285166\ncall    cs:__imp_?onExit@CCLayer@cocos2d@@UEAAXXZ; cocos2d::CCLayer::onExit(void) ; +0x9, 0x140285169\ncmp     byte ptr [rbx+288h], 0                                         ; +0xf, 0x14028516f\njz      short loc_1402851AA                                            ; +0x16, 0x140285176\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x18, 0x140285178\nmov     rcx, rax                                                       ; +0x1e, 0x14028517e\nlea     rdx, aGjPathsheetPli; \"GJ_PathSheet.plist\"                     ; +0x21, 0x140285181\ncall    cs:?removeSpriteFramesFromFile@CCSpriteFrameCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(char const *) ; +0x28, 0x140285188\ncall    cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x2e, 0x14028518e\nmov     rcx, rax                                                       ; +0x34, 0x140285194\nlea     rdx, aGjPathsheetPng; \"GJ_PathSheet.png\"                       ; +0x37, 0x140285197\nadd     rsp, 20h                                                       ; +0x3e, 0x14028519e\npop     rbx                                                            ; +0x42, 0x1402851a2\njmp     cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x43, 0x1402851a3\nadd     rsp, 20h                                                       ; +0x4a, 0x1402851aa\npop     rbx                                                            ; +0x4e, 0x1402851ae\nretn                                                                   ; +0x4f, 0x1402851af", "xrefs": ["<???> @ 0x14056e218", "<???> @ 0x1406d1544"], "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"}