{"type": "func", "start": 4298212724, "end": 4298212880, "name": "GameManager::finishedLoadingBGAsync", "pseudocode": "// \n// GameManager::finishedLoadingBGAsync from 0x100318574 to 0x100318610 (156 bytes)\n// \n// 1 xrefs:\n// > GameManager::loadBackgroundAsync @ 0x100318544\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 GameManager::finishedLoadingBGAsync(GameManager *a1, cocos2d::CCObject *a2)\n{\n  GJBaseGameLayer *m_gameLayer; // x21\n  int v5; // w0\n  cocos2d::CCString *v6; // x0\n  const char *CString; // x21\n  cocos2d::CCTextureCache *v8; // x0\n\n  a1->m_loadingBG = 0;\n  if ( a2 )\n  {\n    m_gameLayer = a1->m_gameLayer;\n    if ( m_gameLayer )\n    {\n      v5 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n      GJBaseGameLayer::asyncBGLoaded(m_gameLayer, v5);\n    }\n    if ( a1->m_loadedBgID )\n    {\n      v6 = (cocos2d::CCString *)sub_100268F4C(\"game_bg_%02d_001.png\", a1->m_loadedBgID);\n      CString = cocos2d::CCString::getCString(v6);\n      v8 = cocos2d::CCTextureCache::sharedTextureCache();\n      cocos2d::CCTextureCache::removeTextureForKey(v8, CString);\n    }\n    a1->m_loadedBgID = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  }\n}", "assembly": "; \n; GameManager::finishedLoadingBGAsync from 0x100318574 to 0x100318610 (156 bytes)\n; \n; 1 xrefs:\n; > GameManager::loadBackgroundAsync @ 0x100318544\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\nSTRB            WZR, [X0,#0x3B4]                                       ; +0x0, 0x100318574\nCBZ             X1, locret_10031860C                                   ; +0x4, 0x100318578\nSUB             SP, SP, #0x40                                          ; +0x8, 0x10031857c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0xc, 0x100318580\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x10, 0x100318584\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x14, 0x100318588\nADD             X29, SP, #0x30                                         ; +0x18, 0x10031858c\nMOV             X20, X1                                                ; +0x1c, 0x100318590\nMOV             X19, X0                                                ; +0x20, 0x100318594\nLDR             X21, [X0,#0x208]                                       ; +0x24, 0x100318598\nCBZ             X21, loc_1003185BC                                     ; +0x28, 0x10031859c\nLDR             X8, [X20]                                              ; +0x2c, 0x1003185a0\nLDR             X8, [X8,#0x40]                                         ; +0x30, 0x1003185a4\nMOV             X0, X20                                                ; +0x34, 0x1003185a8\nBLR             X8                                                     ; +0x38, 0x1003185ac\nMOV             X1, X0                                                 ; +0x3c, 0x1003185b0\nMOV             X0, X21                                                ; +0x40, 0x1003185b4\nBL              GJBaseGameLayer__asyncBGLoaded                         ; +0x44, 0x1003185b8\nLDR             W8, [X19,#0x3A0]                                       ; +0x48, 0x1003185bc\nCBZ             W8, loc_1003185E8                                      ; +0x4c, 0x1003185c0\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x50, 0x1003185c4\nADRL            X0, aGameBg02d001Pn; \"game_bg_%02d_001.png\"            ; +0x54, 0x1003185c8\nBL              sub_100268F4C                                          ; +0x5c, 0x1003185d0\nBL              cocos2d__CCString__getCString                          ; +0x60, 0x1003185d4\nMOV             X21, X0                                                ; +0x64, 0x1003185d8\nBL              cocos2d__CCTextureCache__sharedTextureCache            ; +0x68, 0x1003185dc\nMOV             X1, X21                                                ; +0x6c, 0x1003185e0\nBL              cocos2d__CCTextureCache__removeTextureForKey           ; +0x70, 0x1003185e4\nLDR             X8, [X20]                                              ; +0x74, 0x1003185e8\nLDR             X8, [X8,#0x40]                                         ; +0x78, 0x1003185ec\nMOV             X0, X20                                                ; +0x7c, 0x1003185f0\nBLR             X8                                                     ; +0x80, 0x1003185f4\nSTR             W0, [X19,#0x3A0]                                       ; +0x84, 0x1003185f8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x88, 0x1003185fc\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x8c, 0x100318600\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x90, 0x100318604\nADD             SP, SP, #0x40 ; '@'                                    ; +0x94, 0x100318608\nRET                                                                    ; +0x98, 0x10031860c", "xrefs": ["GameManager::loadBackgroundAsync @ 0x100318544"], "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"}