{"type": "func", "start": 5303348, "end": 5303426, "name": "GJBigSprite::loadSpriteAsync", "pseudocode": "// \n// GJBigSprite::loadSpriteAsync from 0x50ec34 to 0x50ec82 (78 bytes)\n// \n// 1 xrefs:\n// > GJBigSprite::updateSpriteVisibility @ 0x50f04c\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 __fastcall GJBigSprite::loadSpriteAsync(cocos2d::CCObject *a1, const char **a2, unsigned int a3)\n{\n  unsigned int m_uID; // r0\n  unsigned int v5; // r7\n  char v6; // r3\n  int v8; // r2\n  int v9; // r3\n  cocos2d::CCTextureCache *v11; // r0\n  cocos2d::SEL_MenuHandler v12; // 0:r3.4,4:^0.4\n\n  m_uID = a1[5].m_uID;\n  v5 = a3 >> 5;\n  v6 = a3 & 0x1F;\n  v8 = *(_DWORD *)(m_uID + 4 * (a3 >> 5));\n  v9 = 1 << v6;\n  if ( (v8 & v9) == 0 )\n  {\n    *(_DWORD *)(m_uID + 4 * v5) = v9 | v8;\n    v11 = cocos2d::CCTextureCache::sharedTextureCache();\n    v12.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJBigSprite::finishedLoadingSpriteAsync;\n    v12.adj = 0;\n    cocos2d::CCTextureCache::addImageAsync(v11, *a2, a1, v12, a3, kCCTexture2DPixelFormat_RGB888);\n  }\n}", "assembly": "; \n; GJBigSprite::loadSpriteAsync from 0x50ec34 to 0x50ec82 (78 bytes)\n; \n; 1 xrefs:\n; > GJBigSprite::updateSpriteVisibility @ 0x50f04c\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.W          {R4-R9,LR}                                             ; +0x0, 0x50ec34\nMOV             R5, R0                                                 ; +0x4, 0x50ec38\nLDR.W           R0, [R0,#0x108]; this                                  ; +0x6, 0x50ec3a\nLSRS            R7, R2, #5                                             ; +0xa, 0x50ec3e\nAND.W           R3, R2, #0x1F                                          ; +0xc, 0x50ec40\nMOV             R4, R2                                                 ; +0x10, 0x50ec44\nMOVS            R6, #1                                                 ; +0x12, 0x50ec46\nSUB             SP, SP, #0x1C                                          ; +0x14, 0x50ec48\nLDR.W           R2, [R0,R7,LSL#2]                                      ; +0x16, 0x50ec4a\nLSL.W           R3, R6, R3                                             ; +0x1a, 0x50ec4e\nMOV             R9, R1                                                 ; +0x1e, 0x50ec52\nANDS.W          R8, R2, R3                                             ; +0x20, 0x50ec54\nBNE             loc_50EC7C                                             ; +0x24, 0x50ec58\nORRS            R3, R2                                                 ; +0x26, 0x50ec5a\nSTR.W           R3, [R0,R7,LSL#2]                                      ; +0x28, 0x50ec5c\nBL              _ZN7cocos2d14CCTextureCache18sharedTextureCacheEv; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x2c, 0x50ec60\nLDR             R3, =(_ZN11GJBigSprite26finishedLoadingSpriteAsyncEPN7cocos2d8CCObjectE_ptr - 0x50EC70) ; +0x30, 0x50ec64\nLDR.W           R1, [R9]                                               ; +0x32, 0x50ec66\nMOV             R2, R5                                                 ; +0x36, 0x50ec6a\nADD             R3, PC; _ZN11GJBigSprite26finishedLoadingSpriteAsyncEPN7cocos2d8CCObjectE_ptr ; +0x38, 0x50ec6c\nLDR             R3, [R3]; GJBigSprite::finishedLoadingSpriteAsync(cocos2d::CCObject *) ; +0x3a, 0x50ec6e\nSTR             R4, [SP,#0x1C+var_18]                                  ; +0x3c, 0x50ec70\nSTR             R6, [SP,#0x1C+var_14]                                  ; +0x3e, 0x50ec72\nSTR.W           R8, [SP,#0x1C+var_1C]                                  ; +0x40, 0x50ec74\nBL              _ZN7cocos2d14CCTextureCache13addImageAsyncEPKcPNS_8CCObjectEMS3_FvS4_EiNS_22CCTexture2DPixelFormatE; cocos2d::CCTextureCache::addImageAsync(char const*,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *),int,cocos2d::CCTexture2DPixelFormat) ; +0x44, 0x50ec78\nADD             SP, SP, #0x1C                                          ; +0x48, 0x50ec7c\nPOP.W           {R4-R9,PC}                                             ; +0x4a, 0x50ec7e", "xrefs": ["GJBigSprite::updateSpriteVisibility @ 0x50f04c"], "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"}