{"type": "func", "start": 4298558224, "end": 4298558382, "name": "GameManager::finishedLoadingMGAsync", "pseudocode": "// \n// GameManager::finishedLoadingMGAsync from 0x10036cb10 to 0x10036cbae (158 bytes)\n// \n// 2 xrefs:\n// > sub_10036CA90 @ 0x10036cabd\n// > GameManager::finishedLoadingMGAsync2 @ 0x10036cafd\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\nvoid __fastcall GameManager::finishedLoadingMGAsync(__int64 a1, int a2, double a3)\n{\n  __int64 v4; // rdi\n  __int64 v5; // rax\n  __int64 CString; // r15\n  __int64 v7; // rdi\n  __int64 v8; // r12\n  __int64 v9; // rdi\n  __int64 v10; // rax\n  char v11; // [rsp+0h] [rbp-20h]\n  char v12; // [rsp+0h] [rbp-20h]\n\n  *(_BYTE *)(a1 + 1002) = 0;\n  v4 = *(_QWORD *)(a1 + 560);\n  if ( v4 )\n    GJBaseGameLayer::asyncMGLoaded(v4, a2, a3);\n  if ( *(_DWORD *)(a1 + 988) )\n  {\n    v5 = sub_10088E820(\"fg_%02d_001.png\", v11);\n    CString = cocos2d::CCString::getCString(v5);\n    v7 = sub_10088E820(\"fg_%02d_2_001.png\", v12);\n    v8 = cocos2d::CCString::getCString(v7);\n    v9 = cocos2d::CCTextureCache::sharedTextureCache(v7);\n    cocos2d::CCTextureCache::removeTextureForKey(v9, CString);\n    v10 = cocos2d::CCTextureCache::sharedTextureCache(v9);\n    cocos2d::CCTextureCache::removeTextureForKey(v10, v8);\n  }\n  *(_DWORD *)(a1 + 988) = a2;\n}", "assembly": "; \n; GameManager::finishedLoadingMGAsync from 0x10036cb10 to 0x10036cbae (158 bytes)\n; \n; 2 xrefs:\n; > sub_10036CA90 @ 0x10036cabd\n; > GameManager::finishedLoadingMGAsync2 @ 0x10036cafd\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; \npush    rbp                                                            ; +0x0, 0x10036cb10\nmov     rbp, rsp                                                       ; +0x1, 0x10036cb11\npush    r15                                                            ; +0x4, 0x10036cb14\npush    r14                                                            ; +0x6, 0x10036cb16\npush    r12                                                            ; +0x8, 0x10036cb18\npush    rbx; char                                                      ; +0xa, 0x10036cb1a\nmov     ebx, esi                                                       ; +0xb, 0x10036cb1b\nmov     r14, rdi                                                       ; +0xd, 0x10036cb1d\nmov     byte ptr [rdi+3EAh], 0                                         ; +0x10, 0x10036cb20\nmov     rdi, [rdi+230h]                                                ; +0x17, 0x10036cb27\ntest    rdi, rdi                                                       ; +0x1e, 0x10036cb2e\njz      short loc_10036CB3A                                            ; +0x21, 0x10036cb31\nmov     esi, ebx                                                       ; +0x23, 0x10036cb33\ncall    GJBaseGameLayer__asyncMGLoaded                                 ; +0x25, 0x10036cb35\nmov     esi, [r14+3DCh]                                                ; +0x2a, 0x10036cb3a\ntest    esi, esi                                                       ; +0x31, 0x10036cb41\njz      short loc_10036CB9E                                            ; +0x33, 0x10036cb43\nlea     rdi, aFg02d001Png; \"fg_%02d_001.png\"                           ; +0x35, 0x10036cb45\nxor     eax, eax                                                       ; +0x3c, 0x10036cb4c\ncall    sub_10088E820                                                  ; +0x3e, 0x10036cb4e\nmov     rdi, rax                                                       ; +0x43, 0x10036cb53\ncall    cocos2d__CCString__getCString                                  ; +0x46, 0x10036cb56\nmov     r15, rax                                                       ; +0x4b, 0x10036cb5b\nmov     esi, [r14+3DCh]                                                ; +0x4e, 0x10036cb5e\nlea     rdi, aFg02d2001Png; \"fg_%02d_2_001.png\"                        ; +0x55, 0x10036cb65\nxor     eax, eax                                                       ; +0x5c, 0x10036cb6c\ncall    sub_10088E820                                                  ; +0x5e, 0x10036cb6e\nmov     rdi, rax                                                       ; +0x63, 0x10036cb73\ncall    cocos2d__CCString__getCString                                  ; +0x66, 0x10036cb76\nmov     r12, rax                                                       ; +0x6b, 0x10036cb7b\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0x6e, 0x10036cb7e\nmov     rdi, rax                                                       ; +0x73, 0x10036cb83\nmov     rsi, r15                                                       ; +0x76, 0x10036cb86\ncall    cocos2d__CCTextureCache__removeTextureForKey                   ; +0x79, 0x10036cb89\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0x7e, 0x10036cb8e\nmov     rdi, rax                                                       ; +0x83, 0x10036cb93\nmov     rsi, r12                                                       ; +0x86, 0x10036cb96\ncall    cocos2d__CCTextureCache__removeTextureForKey                   ; +0x89, 0x10036cb99\nmov     [r14+3DCh], ebx                                                ; +0x8e, 0x10036cb9e\npop     rbx                                                            ; +0x95, 0x10036cba5\npop     r12                                                            ; +0x96, 0x10036cba6\npop     r14                                                            ; +0x98, 0x10036cba8\npop     r15                                                            ; +0x9a, 0x10036cbaa\npop     rbp                                                            ; +0x9c, 0x10036cbac\nretn                                                                   ; +0x9d, 0x10036cbad", "xrefs": ["sub_10036CA90 @ 0x10036cabd", "GameManager::finishedLoadingMGAsync2 @ 0x10036cafd"], "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"}