{"type": "func", "start": 5303432, "end": 5303508, "name": "GJBigSprite::unloadSprite", "pseudocode": "// \n// GJBigSprite::unloadSprite from 0x50ec88 to 0x50ecd4 (76 bytes)\n// \n// 3 xrefs:\n// > GJBigSprite::unloadAll @ 0x50ed34\n// > GJBigSprite::finishedLoadingSpriteAsync @ 0x50edf4\n// > GJBigSprite::updateSpriteVisibility @ 0x50f00c\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\nint __fastcall GJBigSprite::unloadSprite(int a1, const char **a2, unsigned int a3)\n{\n  cocos2d::CCTextureCache *v6; // r0\n  _DWORD v8[2]; // [sp+4h] [bp-10h] BYREF\n\n  v6 = cocos2d::CCTextureCache::sharedTextureCache();\n  cocos2d::CCTextureCache::removeTextureForKey(v6, *a2);\n  v8[0] = *(_DWORD *)(a1 + 264) + 4 * (a3 >> 5);\n  v8[1] = 1 << (a3 & 0x1F);\n  return std::_Bit_reference::operator=((int)v8, 0);\n}", "assembly": "; \n; GJBigSprite::unloadSprite from 0x50ec88 to 0x50ecd4 (76 bytes)\n; \n; 3 xrefs:\n; > GJBigSprite::unloadAll @ 0x50ed34\n; > GJBigSprite::finishedLoadingSpriteAsync @ 0x50edf4\n; > GJBigSprite::updateSpriteVisibility @ 0x50f00c\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-R7,LR}                                             ; +0x0, 0x50ec88\nSUB             SP, SP, #0x14                                          ; +0x2, 0x50ec8a\nLDR             R4, =(__stack_chk_guard_ptr - 0x50EC98)                ; +0x4, 0x50ec8c\nMOV             R7, R1                                                 ; +0x6, 0x50ec8e\nMOV             R5, R2                                                 ; +0x8, 0x50ec90\nMOV             R6, R0                                                 ; +0xa, 0x50ec92\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x50ec94\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x50ec96\nLDR             R3, [R4]                                               ; +0x10, 0x50ec98\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x12, 0x50ec9a\nBL              _ZN7cocos2d14CCTextureCache18sharedTextureCacheEv; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x14, 0x50ec9c\nLDR             R1, [R7]; char *                                       ; +0x18, 0x50eca0\nBL              _ZN7cocos2d14CCTextureCache19removeTextureForKeyEPKc; cocos2d::CCTextureCache::removeTextureForKey(char const*) ; +0x1a, 0x50eca2\nLSRS            R2, R5, #5                                             ; +0x1e, 0x50eca6\nLDR.W           R3, [R6,#0x108]                                        ; +0x20, 0x50eca8\nAND.W           R5, R5, #0x1F                                          ; +0x24, 0x50ecac\nADD             R0, SP, #0x14+var_10                                   ; +0x28, 0x50ecb0\nMOVS            R1, #0                                                 ; +0x2a, 0x50ecb2\nADD.W           R3, R3, R2,LSL#2                                       ; +0x2c, 0x50ecb4\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x30, 0x50ecb8\nMOVS            R3, #1                                                 ; +0x32, 0x50ecba\nLSLS            R3, R5                                                 ; +0x34, 0x50ecbc\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x36, 0x50ecbe\nBL              _ZNSt14_Bit_referenceaSEb; std::_Bit_reference::operator=(bool) ; +0x38, 0x50ecc0\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x3c, 0x50ecc4\nLDR             R3, [R4]                                               ; +0x3e, 0x50ecc6\nCMP             R2, R3                                                 ; +0x40, 0x50ecc8\nBEQ             loc_50ECD0                                             ; +0x42, 0x50ecca\nBLX             __stack_chk_fail                                       ; +0x44, 0x50eccc\nADD             SP, SP, #0x14                                          ; +0x48, 0x50ecd0\nPOP             {R4-R7,PC}                                             ; +0x4a, 0x50ecd2", "xrefs": ["GJBigSprite::unloadAll @ 0x50ed34", "GJBigSprite::finishedLoadingSpriteAsync @ 0x50edf4", "GJBigSprite::updateSpriteVisibility @ 0x50f00c"], "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"}