{"type": "func", "start": 5371322976, "end": 5371323168, "name": "GameManager::finishedLoadingGAsync", "pseudocode": "// \n// GameManager::finishedLoadingGAsync from 0x14027e260 to 0x14027e320 (192 bytes)\n// \n// 5 xrefs:\n// > GameManager::finishedLoadingGAsync1 @ 0x14027e20c\n// > GameManager::finishedLoadingGAsync2 @ 0x14027e24c\n// > <???> @ 0x1408ade8c\n// > <???> @ 0x1408ade9c\n// > <???> @ 0x14091cf88\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:59 +0000\n// \n\nvoid __fastcall GameManager::finishedLoadingGAsync(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rbx\n  int v3; // ebp\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  v3 = a2;\n  *(_BYTE *)(a1 + 1033) = 0;\n  if ( v2 )\n  {\n    GJBaseGameLayer::createGroundLayer(v2, a2, 0);\n    GJBaseGameLayer::updateLevelColors(v2);\n  }\n  v5 = *(_DWORD *)(a1 + 1016);\n  if ( v5 )\n  {\n    v6 = cocos2d::CCString::createWithFormat(\"groundSquare_%02d_001.png\", v5);\n    CString = cocos2d::CCString::getCString(v6);\n    v8 = cocos2d::CCString::createWithFormat(\"groundSquare_%02d_2_001.png\", *(_DWORD *)(a1 + 1016));\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 + 1016) = v3;\n}", "assembly": "; \n; GameManager::finishedLoadingGAsync from 0x14027e260 to 0x14027e320 (192 bytes)\n; \n; 5 xrefs:\n; > GameManager::finishedLoadingGAsync1 @ 0x14027e20c\n; > GameManager::finishedLoadingGAsync2 @ 0x14027e24c\n; > <???> @ 0x1408ade8c\n; > <???> @ 0x1408ade9c\n; > <???> @ 0x14091cf88\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:59 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14027e260\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14027e265\npush    rsi                                                            ; +0xa, 0x14027e26a\nsub     rsp, 20h                                                       ; +0xb, 0x14027e26b\nmov     rbx, [rcx+240h]                                                ; +0xf, 0x14027e26f\nmov     ebp, edx                                                       ; +0x16, 0x14027e276\nmov     byte ptr [rcx+409h], 0                                         ; +0x18, 0x14027e278\nmov     rsi, rcx                                                       ; +0x1f, 0x14027e27f\ntest    rbx, rbx                                                       ; +0x22, 0x14027e282\njz      short loc_14027E29A                                            ; +0x25, 0x14027e285\nxor     r8d, r8d                                                       ; +0x27, 0x14027e287\nmov     rcx, rbx                                                       ; +0x2a, 0x14027e28a\ncall    GJBaseGameLayer__createGroundLayer                             ; +0x2d, 0x14027e28d\nmov     rcx, rbx                                                       ; +0x32, 0x14027e292\ncall    GJBaseGameLayer__updateLevelColors                             ; +0x35, 0x14027e295\nmov     edx, [rsi+3F8h]                                                ; +0x3a, 0x14027e29a\ntest    edx, edx                                                       ; +0x40, 0x14027e2a0\njz      short loc_14027E30A                                            ; +0x42, 0x14027e2a2\nlea     rcx, aGroundsquare02; \"groundSquare_%02d_001.png\"              ; +0x44, 0x14027e2a4\nmov     [rsp+28h+arg_0], rdi                                           ; +0x4b, 0x14027e2ab\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x50, 0x14027e2b0\nmov     rcx, rax                                                       ; +0x56, 0x14027e2b6\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x59, 0x14027e2b9\nmov     edx, [rsi+3F8h]                                                ; +0x5f, 0x14027e2bf\nlea     rcx, aGroundsquare02_0; \"groundSquare_%02d_2_001.png\"          ; +0x65, 0x14027e2c5\nmov     rdi, rax                                                       ; +0x6c, 0x14027e2cc\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x6f, 0x14027e2cf\nmov     rcx, rax                                                       ; +0x75, 0x14027e2d5\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x78, 0x14027e2d8\nmov     rbx, rax                                                       ; +0x7e, 0x14027e2de\ncall    cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x81, 0x14027e2e1\nmov     rcx, rax                                                       ; +0x87, 0x14027e2e7\nmov     rdx, rdi                                                       ; +0x8a, 0x14027e2ea\ncall    cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x8d, 0x14027e2ed\ncall    cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x93, 0x14027e2f3\nmov     rcx, rax                                                       ; +0x99, 0x14027e2f9\nmov     rdx, rbx                                                       ; +0x9c, 0x14027e2fc\ncall    cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x9f, 0x14027e2ff\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xa5, 0x14027e305\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xaa, 0x14027e30a\nmov     [rsi+3F8h], ebp                                                ; +0xaf, 0x14027e30f\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xb5, 0x14027e315\nadd     rsp, 20h                                                       ; +0xba, 0x14027e31a\npop     rsi                                                            ; +0xbe, 0x14027e31e\nretn                                                                   ; +0xbf, 0x14027e31f", "xrefs": ["GameManager::finishedLoadingGAsync1 @ 0x14027e20c", "GameManager::finishedLoadingGAsync2 @ 0x14027e24c", "<???> @ 0x1408ade8c", "<???> @ 0x1408ade9c", "<???> @ 0x14091cf88"], "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"}