{"type": "func", "start": 4298652288, "end": 4298652446, "name": "GameManager::finishedLoadingGAsync", "pseudocode": "// \n// GameManager::finishedLoadingGAsync from 0x100383a80 to 0x100383b1e (158 bytes)\n// \n// 2 xrefs:\n// > GameManager::finishedLoadingGAsync1 @ 0x100383a2d\n// > GameManager::finishedLoadingGAsync2 @ 0x100383a6d\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GameManager::finishedLoadingGAsync(GameManager *a1, int a2)\n{\n  GJBaseGameLayer *m_gameLayer; // rdi\n  cocos2d::CCString *v4; // rax\n  const char *CString; // r15\n  cocos2d::CCString *v6; // rax\n  const char *v7; // r12\n  cocos2d::CCTextureCache *v8; // rax\n  cocos2d::CCTextureCache *v9; // rax\n  char v10; // [rsp+0h] [rbp-20h]\n  char v11; // [rsp+0h] [rbp-20h]\n\n  a1->m_loadingG = 0;\n  m_gameLayer = a1->m_gameLayer;\n  if ( m_gameLayer )\n    GJBaseGameLayer::asyncGLoaded(m_gameLayer, a2);\n  if ( a1->m_loadedGroundID )\n  {\n    v4 = (cocos2d::CCString *)sub_1007AB580(\"groundSquare_%02d_001.png\", v10);\n    CString = cocos2d::CCString::getCString(v4);\n    v6 = (cocos2d::CCString *)sub_1007AB580(\"groundSquare_%02d_2_001.png\", v11);\n    v7 = cocos2d::CCString::getCString(v6);\n    v8 = cocos2d::CCTextureCache::sharedTextureCache();\n    cocos2d::CCTextureCache::removeTextureForKey(v8, CString);\n    v9 = cocos2d::CCTextureCache::sharedTextureCache();\n    cocos2d::CCTextureCache::removeTextureForKey(v9, v7);\n  }\n  a1->m_loadedGroundID = a2;\n}", "assembly": "; \n; GameManager::finishedLoadingGAsync from 0x100383a80 to 0x100383b1e (158 bytes)\n; \n; 2 xrefs:\n; > GameManager::finishedLoadingGAsync1 @ 0x100383a2d\n; > GameManager::finishedLoadingGAsync2 @ 0x100383a6d\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100383a80\nmov     rbp, rsp                                                       ; +0x1, 0x100383a81\npush    r15                                                            ; +0x4, 0x100383a84\npush    r14                                                            ; +0x6, 0x100383a86\npush    r12                                                            ; +0x8, 0x100383a88\npush    rbx; char                                                      ; +0xa, 0x100383a8a\nmov     ebx, esi                                                       ; +0xb, 0x100383a8b\nmov     r14, rdi                                                       ; +0xd, 0x100383a8d\nmov     byte ptr [rdi+3B5h], 0                                         ; +0x10, 0x100383a90\nmov     rdi, [rdi+208h]                                                ; +0x17, 0x100383a97\ntest    rdi, rdi                                                       ; +0x1e, 0x100383a9e\njz      short loc_100383AAA                                            ; +0x21, 0x100383aa1\nmov     esi, ebx                                                       ; +0x23, 0x100383aa3\ncall    GJBaseGameLayer__asyncGLoaded                                  ; +0x25, 0x100383aa5\nmov     esi, [r14+3A4h]                                                ; +0x2a, 0x100383aaa\ntest    esi, esi                                                       ; +0x31, 0x100383ab1\njz      short loc_100383B0E                                            ; +0x33, 0x100383ab3\nlea     rdi, aGroundsquare02; \"groundSquare_%02d_001.png\"              ; +0x35, 0x100383ab5\nxor     eax, eax                                                       ; +0x3c, 0x100383abc\ncall    sub_1007AB580                                                  ; +0x3e, 0x100383abe\nmov     rdi, rax                                                       ; +0x43, 0x100383ac3\ncall    cocos2d__CCString__getCString                                  ; +0x46, 0x100383ac6\nmov     r15, rax                                                       ; +0x4b, 0x100383acb\nmov     esi, [r14+3A4h]                                                ; +0x4e, 0x100383ace\nlea     rdi, aGroundsquare02_0; \"groundSquare_%02d_2_001.png\"          ; +0x55, 0x100383ad5\nxor     eax, eax                                                       ; +0x5c, 0x100383adc\ncall    sub_1007AB580                                                  ; +0x5e, 0x100383ade\nmov     rdi, rax                                                       ; +0x63, 0x100383ae3\ncall    cocos2d__CCString__getCString                                  ; +0x66, 0x100383ae6\nmov     r12, rax                                                       ; +0x6b, 0x100383aeb\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0x6e, 0x100383aee\nmov     rdi, rax                                                       ; +0x73, 0x100383af3\nmov     rsi, r15                                                       ; +0x76, 0x100383af6\ncall    cocos2d__CCTextureCache__removeTextureForKey                   ; +0x79, 0x100383af9\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0x7e, 0x100383afe\nmov     rdi, rax                                                       ; +0x83, 0x100383b03\nmov     rsi, r12                                                       ; +0x86, 0x100383b06\ncall    cocos2d__CCTextureCache__removeTextureForKey                   ; +0x89, 0x100383b09\nmov     [r14+3A4h], ebx                                                ; +0x8e, 0x100383b0e\npop     rbx                                                            ; +0x95, 0x100383b15\npop     r12                                                            ; +0x96, 0x100383b16\npop     r14                                                            ; +0x98, 0x100383b18\npop     r15                                                            ; +0x9a, 0x100383b1a\npop     rbp                                                            ; +0x9c, 0x100383b1c\nretn                                                                   ; +0x9d, 0x100383b1d", "xrefs": ["GameManager::finishedLoadingGAsync1 @ 0x100383a2d", "GameManager::finishedLoadingGAsync2 @ 0x100383a6d"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}