{"type": "func", "start": 4298557472, "end": 4298557608, "name": "GameManager::finishedLoadingBGAsync", "pseudocode": "// \n// GameManager::finishedLoadingBGAsync from 0x10036c820 to 0x10036c8a8 (136 bytes)\n// \n// 1 xrefs:\n// > GameManager::loadBackgroundAsync @ 0x10036c7f2\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 12:29:00 +0000\n// \n\n__int64 __fastcall GameManager::finishedLoadingBGAsync(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v4; // r15\n  unsigned int v5; // eax\n  __int64 v6; // rdx\n  __int64 v7; // rdi\n  __int64 CString; // r15\n  __int64 v9; // rax\n  char v10; // [rsp-28h] [rbp-28h]\n\n  *(_BYTE *)(a1 + 1000) = 0;\n  if ( a2 )\n  {\n    v10 = result;\n    v4 = *(_QWORD *)(a1 + 560);\n    if ( v4 )\n    {\n      v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n      GJBaseGameLayer::asyncBGLoaded(v4, v5, v6);\n    }\n    if ( *(_DWORD *)(a1 + 980) )\n    {\n      v7 = sub_10088E820(\"game_bg_%02d_001.png\", v10);\n      CString = cocos2d::CCString::getCString(v7);\n      v9 = cocos2d::CCTextureCache::sharedTextureCache(v7);\n      cocos2d::CCTextureCache::removeTextureForKey(v9, CString);\n    }\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n    *(_DWORD *)(a1 + 980) = result;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::finishedLoadingBGAsync from 0x10036c820 to 0x10036c8a8 (136 bytes)\n; \n; 1 xrefs:\n; > GameManager::loadBackgroundAsync @ 0x10036c7f2\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 12:29:00 +0000\n; \nmov     byte ptr [rdi+3E8h], 0                                         ; +0x0, 0x10036c820\ntest    rsi, rsi                                                       ; +0x7, 0x10036c827\njz      short locret_10036C8A7                                         ; +0xa, 0x10036c82a\npush    rbp                                                            ; +0xc, 0x10036c82c\nmov     rbp, rsp                                                       ; +0xd, 0x10036c82d\npush    r15                                                            ; +0x10, 0x10036c830\npush    r14                                                            ; +0x12, 0x10036c832\npush    rbx                                                            ; +0x14, 0x10036c834\npush    rax; char                                                      ; +0x15, 0x10036c835\nmov     r14, rsi                                                       ; +0x16, 0x10036c836\nmov     rbx, rdi                                                       ; +0x19, 0x10036c839\nmov     r15, [rdi+230h]                                                ; +0x1c, 0x10036c83c\ntest    r15, r15                                                       ; +0x23, 0x10036c843\njz      short loc_10036C85B                                            ; +0x26, 0x10036c846\nmov     rax, [r14]                                                     ; +0x28, 0x10036c848\nmov     rdi, r14                                                       ; +0x2b, 0x10036c84b\ncall    qword ptr [rax+40h]                                            ; +0x2e, 0x10036c84e\nmov     rdi, r15                                                       ; +0x31, 0x10036c851\nmov     esi, eax                                                       ; +0x34, 0x10036c854\ncall    GJBaseGameLayer__asyncBGLoaded                                 ; +0x36, 0x10036c856\nmov     esi, [rbx+3D4h]                                                ; +0x3b, 0x10036c85b\ntest    esi, esi                                                       ; +0x41, 0x10036c861\njz      short loc_10036C88E                                            ; +0x43, 0x10036c863\nlea     rdi, aGameBg02d001Pn; \"game_bg_%02d_001.png\"                   ; +0x45, 0x10036c865\nxor     eax, eax                                                       ; +0x4c, 0x10036c86c\ncall    sub_10088E820                                                  ; +0x4e, 0x10036c86e\nmov     rdi, rax                                                       ; +0x53, 0x10036c873\ncall    cocos2d__CCString__getCString                                  ; +0x56, 0x10036c876\nmov     r15, rax                                                       ; +0x5b, 0x10036c87b\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0x5e, 0x10036c87e\nmov     rdi, rax                                                       ; +0x63, 0x10036c883\nmov     rsi, r15                                                       ; +0x66, 0x10036c886\ncall    cocos2d__CCTextureCache__removeTextureForKey                   ; +0x69, 0x10036c889\nmov     rax, [r14]                                                     ; +0x6e, 0x10036c88e\nmov     rdi, r14                                                       ; +0x71, 0x10036c891\ncall    qword ptr [rax+40h]                                            ; +0x74, 0x10036c894\nmov     [rbx+3D4h], eax                                                ; +0x77, 0x10036c897\nadd     rsp, 8                                                         ; +0x7d, 0x10036c89d\npop     rbx                                                            ; +0x81, 0x10036c8a1\npop     r14                                                            ; +0x82, 0x10036c8a2\npop     r15                                                            ; +0x84, 0x10036c8a4\npop     rbp                                                            ; +0x86, 0x10036c8a6\nretn                                                                   ; +0x87, 0x10036c8a7", "xrefs": ["GameManager::loadBackgroundAsync @ 0x10036c7f2"], "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"}