{"type": "func", "start": 4298556992, "end": 4298557149, "name": "GameManager::unloadBackground", "pseudocode": "// \n// GameManager::unloadBackground from 0x10036c640 to 0x10036c6dd (157 bytes)\n// \n// 1 xrefs:\n// > SupportLayer::onLowDetail @ 0x100383fa1\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\n__int64 __fastcall GameManager::unloadBackground(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rdi\n  __int64 CString; // r15\n  __int64 v5; // rax\n  unsigned int i; // r14d\n  __int64 v7; // rdi\n  __int64 v8; // r15\n  __int64 v9; // rax\n  char v10; // [rsp-28h] [rbp-28h]\n\n  if ( *(_DWORD *)(a1 + 980) )\n  {\n    v3 = sub_10088E820(\"game_bg_%02d_001.png\", result);\n    CString = cocos2d::CCString::getCString(v3);\n    v5 = cocos2d::CCTextureCache::sharedTextureCache(v3);\n    cocos2d::CCTextureCache::removeTextureForKey(v5, CString);\n    *(_DWORD *)(a1 + 980) = 0;\n    for ( i = 1; i != 60; ++i )\n    {\n      v7 = sub_10088E820(\"game_bg_%02d_001.png\", v10);\n      v8 = cocos2d::CCString::getCString(v7);\n      v9 = cocos2d::CCFileUtils::sharedFileUtils(v7, i);\n      result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 56LL))(v9, v8);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameManager::unloadBackground from 0x10036c640 to 0x10036c6dd (157 bytes)\n; \n; 1 xrefs:\n; > SupportLayer::onLowDetail @ 0x100383fa1\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; \nmov     esi, [rdi+3D4h]                                                ; +0x0, 0x10036c640\ntest    esi, esi                                                       ; +0x6, 0x10036c646\njz      locret_10036C6DC                                               ; +0x8, 0x10036c648\npush    rbp                                                            ; +0xe, 0x10036c64e\nmov     rbp, rsp                                                       ; +0xf, 0x10036c64f\npush    r15                                                            ; +0x12, 0x10036c652\npush    r14                                                            ; +0x14, 0x10036c654\npush    rbx                                                            ; +0x16, 0x10036c656\npush    rax; char                                                      ; +0x17, 0x10036c657\nmov     r14, rdi                                                       ; +0x18, 0x10036c658\nlea     rbx, aGameBg02d001Pn; \"game_bg_%02d_001.png\"                   ; +0x1b, 0x10036c65b\nmov     rdi, rbx; __format                                             ; +0x22, 0x10036c662\nxor     eax, eax                                                       ; +0x25, 0x10036c665\ncall    sub_10088E820                                                  ; +0x27, 0x10036c667\nmov     rdi, rax                                                       ; +0x2c, 0x10036c66c\ncall    cocos2d__CCString__getCString                                  ; +0x2f, 0x10036c66f\nmov     r15, rax                                                       ; +0x34, 0x10036c674\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0x37, 0x10036c677\nmov     rdi, rax                                                       ; +0x3c, 0x10036c67c\nmov     rsi, r15                                                       ; +0x3f, 0x10036c67f\ncall    cocos2d__CCTextureCache__removeTextureForKey                   ; +0x42, 0x10036c682\nmov     dword ptr [r14+3D4h], 0                                        ; +0x47, 0x10036c687\nmov     r14d, 1                                                        ; +0x52, 0x10036c692\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x58, 0x10036c698\nmov     rdi, rbx; __format                                             ; +0x60, 0x10036c6a0\nmov     esi, r14d                                                      ; +0x63, 0x10036c6a3\nxor     eax, eax                                                       ; +0x66, 0x10036c6a6\ncall    sub_10088E820                                                  ; +0x68, 0x10036c6a8\nmov     rdi, rax                                                       ; +0x6d, 0x10036c6ad\ncall    cocos2d__CCString__getCString                                  ; +0x70, 0x10036c6b0\nmov     r15, rax                                                       ; +0x75, 0x10036c6b5\ncall    cocos2d__CCFileUtils__sharedFileUtils                          ; +0x78, 0x10036c6b8\nmov     rcx, [rax]                                                     ; +0x7d, 0x10036c6bd\nmov     rdi, rax                                                       ; +0x80, 0x10036c6c0\nmov     rsi, r15                                                       ; +0x83, 0x10036c6c3\ncall    qword ptr [rcx+38h]                                            ; +0x86, 0x10036c6c6\ninc     r14d                                                           ; +0x89, 0x10036c6c9\ncmp     r14d, 3Ch ; '<'                                                ; +0x8c, 0x10036c6cc\njnz     short loc_10036C6A0                                            ; +0x90, 0x10036c6d0\nadd     rsp, 8                                                         ; +0x92, 0x10036c6d2\npop     rbx                                                            ; +0x96, 0x10036c6d6\npop     r14                                                            ; +0x97, 0x10036c6d7\npop     r15                                                            ; +0x99, 0x10036c6d9\npop     rbp                                                            ; +0x9b, 0x10036c6db\nretn                                                                   ; +0x9c, 0x10036c6dc", "xrefs": ["SupportLayer::onLowDetail @ 0x100383fa1"], "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"}