{"type": "func", "start": 5371321792, "end": 5371321953, "name": "GameManager::finishedLoadingBGAsync", "pseudocode": "// \n// GameManager::finishedLoadingBGAsync from 0x14027ddc0 to 0x14027de61 (161 bytes)\n// \n// 4 xrefs:\n// > ArtTriggerGameObject::triggerObject @ 0x1406633af\n// > <???> @ 0x1408addfc\n// > <???> @ 0x1408ade0c\n// > <???> @ 0x14091cec8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:58 +0000\n// \n\nvoid __fastcall GameManager::finishedLoadingBGAsync(__int64 a1, __int64 a2)\n{\n  unsigned int v4; // eax\n  __int64 v5; // rbx\n  int v6; // edx\n  cocos2d::CCString *v7; // rax\n  const char *CString; // rbx\n  cocos2d::CCTextureCache *v9; // rax\n\n  *(_BYTE *)(a1 + 1032) = 0;\n  if ( a2 )\n  {\n    if ( *(_QWORD *)(a1 + 576) )\n    {\n      v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n      v5 = *(_QWORD *)(a1 + 576);\n      GJBaseGameLayer::createBackground(v5, v4);\n      GJBaseGameLayer::updateLevelColors(v5);\n    }\n    v6 = *(_DWORD *)(a1 + 1012);\n    if ( v6 )\n    {\n      v7 = cocos2d::CCString::createWithFormat(\"game_bg_%02d_001.png\", v6);\n      CString = cocos2d::CCString::getCString(v7);\n      v9 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();\n      cocos2d::CCTextureCache::removeTextureForKey(v9, CString);\n    }\n    *(_DWORD *)(a1 + 1012) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  }\n}", "assembly": "; \n; GameManager::finishedLoadingBGAsync from 0x14027ddc0 to 0x14027de61 (161 bytes)\n; \n; 4 xrefs:\n; > ArtTriggerGameObject::triggerObject @ 0x1406633af\n; > <???> @ 0x1408addfc\n; > <???> @ 0x1408ade0c\n; > <???> @ 0x14091cec8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:58 +0000\n; \nmov     [rsp+arg_8], rsi                                               ; +0x0, 0x14027ddc0\npush    rdi                                                            ; +0x5, 0x14027ddc5\nsub     rsp, 20h                                                       ; +0x6, 0x14027ddc6\nmov     byte ptr [rcx+408h], 0                                         ; +0xa, 0x14027ddca\nmov     rsi, rdx                                                       ; +0x11, 0x14027ddd1\nmov     rdi, rcx                                                       ; +0x14, 0x14027ddd4\ntest    rdx, rdx                                                       ; +0x17, 0x14027ddd7\njz      short loc_14027DE56                                            ; +0x1a, 0x14027ddda\ncmp     qword ptr [rcx+240h], 0                                        ; +0x1c, 0x14027dddc\nmov     [rsp+28h+arg_0], rbx                                           ; +0x24, 0x14027dde4\njz      short loc_14027DE0D                                            ; +0x29, 0x14027dde9\nmov     rax, [rdx]                                                     ; +0x2b, 0x14027ddeb\nmov     rcx, rdx                                                       ; +0x2e, 0x14027ddee\ncall    qword ptr [rax+38h]                                            ; +0x31, 0x14027ddf1\nmov     rbx, [rdi+240h]                                                ; +0x34, 0x14027ddf4\nmov     edx, eax                                                       ; +0x3b, 0x14027ddfb\nmov     rcx, rbx                                                       ; +0x3d, 0x14027ddfd\ncall    GJBaseGameLayer__createBackground                              ; +0x40, 0x14027de00\nmov     rcx, rbx                                                       ; +0x45, 0x14027de05\ncall    GJBaseGameLayer__updateLevelColors                             ; +0x48, 0x14027de08\nmov     edx, [rdi+3F4h]                                                ; +0x4d, 0x14027de0d\ntest    edx, edx                                                       ; +0x53, 0x14027de13\njz      short loc_14027DE42                                            ; +0x55, 0x14027de15\nlea     rcx, aGameBg02d001Pn; \"game_bg_%02d_001.png\"                   ; +0x57, 0x14027de17\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x5e, 0x14027de1e\nmov     rcx, rax                                                       ; +0x64, 0x14027de24\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x67, 0x14027de27\nmov     rbx, rax                                                       ; +0x6d, 0x14027de2d\ncall    cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x70, 0x14027de30\nmov     rcx, rax                                                       ; +0x76, 0x14027de36\nmov     rdx, rbx                                                       ; +0x79, 0x14027de39\ncall    cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x7c, 0x14027de3c\nmov     rax, [rsi]                                                     ; +0x82, 0x14027de42\nmov     rcx, rsi                                                       ; +0x85, 0x14027de45\ncall    qword ptr [rax+38h]                                            ; +0x88, 0x14027de48\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8b, 0x14027de4b\nmov     [rdi+3F4h], eax                                                ; +0x90, 0x14027de50\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x96, 0x14027de56\nadd     rsp, 20h                                                       ; +0x9b, 0x14027de5b\npop     rdi                                                            ; +0x9f, 0x14027de5f\nretn                                                                   ; +0xa0, 0x14027de60", "xrefs": ["ArtTriggerGameObject::triggerObject @ 0x1406633af", "<???> @ 0x1408addfc", "<???> @ 0x1408ade0c", "<???> @ 0x14091cec8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}