{"type": "func", "start": 5371322368, "end": 5371322557, "name": "GameManager::finishedLoadingMGAsync", "pseudocode": "// \n// GameManager::finishedLoadingMGAsync from 0x14027e000 to 0x14027e0bd (189 bytes)\n// \n// 5 xrefs:\n// > GameManager::finishedLoadingMGAsync1 @ 0x14027dfac\n// > GameManager::finishedLoadingMGAsync2 @ 0x14027dfec\n// > <???> @ 0x1408ade44\n// > <???> @ 0x1408ade54\n// > <???> @ 0x14091cf28\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::finishedLoadingMGAsync(__int64 a1, int a2)\n{\n  __int64 v2; // rbx\n  int v5; // edx\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rdi\n  cocos2d::CCString *v8; // rax\n  const char *v9; // rbx\n  cocos2d::CCTextureCache *v10; // rax\n  cocos2d::CCTextureCache *v11; // rax\n\n  v2 = *(_QWORD *)(a1 + 576);\n  *(_BYTE *)(a1 + 1034) = 0;\n  if ( v2 )\n  {\n    GJBaseGameLayer::createMiddleground(v2);\n    GJBaseGameLayer::updateLevelColors(v2);\n  }\n  v5 = *(_DWORD *)(a1 + 1020);\n  if ( v5 )\n  {\n    v6 = cocos2d::CCString::createWithFormat(\"fg_%02d_001.png\", v5);\n    CString = cocos2d::CCString::getCString(v6);\n    v8 = cocos2d::CCString::createWithFormat(\"fg_%02d_2_001.png\", *(_DWORD *)(a1 + 1020));\n    v9 = cocos2d::CCString::getCString(v8);\n    v10 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();\n    cocos2d::CCTextureCache::removeTextureForKey(v10, CString);\n    v11 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();\n    cocos2d::CCTextureCache::removeTextureForKey(v11, v9);\n  }\n  *(_DWORD *)(a1 + 1020) = a2;\n}", "assembly": "; \n; GameManager::finishedLoadingMGAsync from 0x14027e000 to 0x14027e0bd (189 bytes)\n; \n; 5 xrefs:\n; > GameManager::finishedLoadingMGAsync1 @ 0x14027dfac\n; > GameManager::finishedLoadingMGAsync2 @ 0x14027dfec\n; > <???> @ 0x1408ade44\n; > <???> @ 0x1408ade54\n; > <???> @ 0x14091cf28\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], rbx                                               ; +0x0, 0x14027e000\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14027e005\npush    rsi                                                            ; +0xa, 0x14027e00a\nsub     rsp, 20h                                                       ; +0xb, 0x14027e00b\nmov     rbx, [rcx+240h]                                                ; +0xf, 0x14027e00f\nmov     ebp, edx                                                       ; +0x16, 0x14027e016\nmov     byte ptr [rcx+40Ah], 0                                         ; +0x18, 0x14027e018\nmov     rsi, rcx                                                       ; +0x1f, 0x14027e01f\ntest    rbx, rbx                                                       ; +0x22, 0x14027e022\njz      short loc_14027E037                                            ; +0x25, 0x14027e025\nmov     rcx, rbx                                                       ; +0x27, 0x14027e027\ncall    GJBaseGameLayer__createMiddleground                            ; +0x2a, 0x14027e02a\nmov     rcx, rbx                                                       ; +0x2f, 0x14027e02f\ncall    GJBaseGameLayer__updateLevelColors                             ; +0x32, 0x14027e032\nmov     edx, [rsi+3FCh]                                                ; +0x37, 0x14027e037\ntest    edx, edx                                                       ; +0x3d, 0x14027e03d\njz      short loc_14027E0A7                                            ; +0x3f, 0x14027e03f\nlea     rcx, aFg02d001Png; \"fg_%02d_001.png\"                           ; +0x41, 0x14027e041\nmov     [rsp+28h+arg_0], rdi                                           ; +0x48, 0x14027e048\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x4d, 0x14027e04d\nmov     rcx, rax                                                       ; +0x53, 0x14027e053\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x56, 0x14027e056\nmov     edx, [rsi+3FCh]                                                ; +0x5c, 0x14027e05c\nlea     rcx, aFg02d2001Png; \"fg_%02d_2_001.png\"                        ; +0x62, 0x14027e062\nmov     rdi, rax                                                       ; +0x69, 0x14027e069\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x6c, 0x14027e06c\nmov     rcx, rax                                                       ; +0x72, 0x14027e072\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x75, 0x14027e075\nmov     rbx, rax                                                       ; +0x7b, 0x14027e07b\ncall    cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x7e, 0x14027e07e\nmov     rcx, rax                                                       ; +0x84, 0x14027e084\nmov     rdx, rdi                                                       ; +0x87, 0x14027e087\ncall    cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x8a, 0x14027e08a\ncall    cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x90, 0x14027e090\nmov     rcx, rax                                                       ; +0x96, 0x14027e096\nmov     rdx, rbx                                                       ; +0x99, 0x14027e099\ncall    cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x9c, 0x14027e09c\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xa2, 0x14027e0a2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa7, 0x14027e0a7\nmov     [rsi+3FCh], ebp                                                ; +0xac, 0x14027e0ac\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xb2, 0x14027e0b2\nadd     rsp, 20h                                                       ; +0xb7, 0x14027e0b7\npop     rsi                                                            ; +0xbb, 0x14027e0bb\nretn                                                                   ; +0xbc, 0x14027e0bc", "xrefs": ["GameManager::finishedLoadingMGAsync1 @ 0x14027dfac", "GameManager::finishedLoadingMGAsync2 @ 0x14027dfec", "<???> @ 0x1408ade44", "<???> @ 0x1408ade54", "<???> @ 0x14091cf28"], "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"}