{"type": "func", "start": 4298214380, "end": 4298214536, "name": "GameManager::finishedLoadingGAsync", "pseudocode": "// \n// GameManager::finishedLoadingGAsync from 0x100318bec to 0x100318c88 (156 bytes)\n// \n// 2 xrefs:\n// > GameManager::finishedLoadingGAsync1 @ 0x100318b98\n// > GameManager::finishedLoadingGAsync2 @ 0x100318be4\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; // x0\n  cocos2d::CCString *v5; // x0\n  const char *CString; // x21\n  cocos2d::CCString *v7; // x0\n  const char *v8; // x22\n  cocos2d::CCTextureCache *v9; // x0\n  cocos2d::CCTextureCache *v10; // x0\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    v5 = (cocos2d::CCString *)sub_100268F4C(\"groundSquare_%02d_001.png\", a1->m_loadedGroundID);\n    CString = cocos2d::CCString::getCString(v5);\n    v7 = (cocos2d::CCString *)sub_100268F4C(\"groundSquare_%02d_2_001.png\", a1->m_loadedGroundID);\n    v8 = cocos2d::CCString::getCString(v7);\n    v9 = cocos2d::CCTextureCache::sharedTextureCache();\n    cocos2d::CCTextureCache::removeTextureForKey(v9, CString);\n    v10 = cocos2d::CCTextureCache::sharedTextureCache();\n    cocos2d::CCTextureCache::removeTextureForKey(v10, v8);\n  }\n  a1->m_loadedGroundID = a2;\n}", "assembly": "; \n; GameManager::finishedLoadingGAsync from 0x100318bec to 0x100318c88 (156 bytes)\n; \n; 2 xrefs:\n; > GameManager::finishedLoadingGAsync1 @ 0x100318b98\n; > GameManager::finishedLoadingGAsync2 @ 0x100318be4\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100318bec\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100318bf0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100318bf4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100318bf8\nADD             X29, SP, #0x30                                         ; +0x10, 0x100318bfc\nMOV             X19, X1                                                ; +0x14, 0x100318c00\nMOV             X20, X0                                                ; +0x18, 0x100318c04\nSTRB            WZR, [X0,#0x3B5]                                       ; +0x1c, 0x100318c08\nLDR             X0, [X0,#0x208]                                        ; +0x20, 0x100318c0c\nCBZ             X0, loc_100318C1C                                      ; +0x24, 0x100318c10\nMOV             X1, X19                                                ; +0x28, 0x100318c14\nBL              GJBaseGameLayer__asyncGLoaded                          ; +0x2c, 0x100318c18\nLDR             W8, [X20,#0x3A4]                                       ; +0x30, 0x100318c1c\nCBZ             W8, loc_100318C70                                      ; +0x34, 0x100318c20\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x38, 0x100318c24\nADRL            X0, aGroundsquare02_0; \"groundSquare_%02d_001.png\"     ; +0x3c, 0x100318c28\nBL              sub_100268F4C                                          ; +0x44, 0x100318c30\nBL              cocos2d__CCString__getCString                          ; +0x48, 0x100318c34\nMOV             X21, X0                                                ; +0x4c, 0x100318c38\nLDR             W8, [X20,#0x3A4]                                       ; +0x50, 0x100318c3c\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x54, 0x100318c40\nADRL            X0, aGroundsquare02; \"groundSquare_%02d_2_001.png\"     ; +0x58, 0x100318c44\nBL              sub_100268F4C                                          ; +0x60, 0x100318c4c\nBL              cocos2d__CCString__getCString                          ; +0x64, 0x100318c50\nMOV             X22, X0                                                ; +0x68, 0x100318c54\nBL              cocos2d__CCTextureCache__sharedTextureCache            ; +0x6c, 0x100318c58\nMOV             X1, X21                                                ; +0x70, 0x100318c5c\nBL              cocos2d__CCTextureCache__removeTextureForKey           ; +0x74, 0x100318c60\nBL              cocos2d__CCTextureCache__sharedTextureCache            ; +0x78, 0x100318c64\nMOV             X1, X22                                                ; +0x7c, 0x100318c68\nBL              cocos2d__CCTextureCache__removeTextureForKey           ; +0x80, 0x100318c6c\nSTR             W19, [X20,#0x3A4]                                      ; +0x84, 0x100318c70\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x88, 0x100318c74\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x8c, 0x100318c78\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x90, 0x100318c7c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x94, 0x100318c80\nRET                                                                    ; +0x98, 0x100318c84", "xrefs": ["GameManager::finishedLoadingGAsync1 @ 0x100318b98", "GameManager::finishedLoadingGAsync2 @ 0x100318be4"], "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"}