{"type": "func", "start": 4298558688, "end": 4298558944, "name": "GameManager::loadGroundAsync", "pseudocode": "// \n// GameManager::loadGroundAsync from 0x10036cce0 to 0x10036cde0 (256 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::swapGround @ 0x1000f0b8b\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::loadGroundAsync(__int64 a1, int a2)\n{\n  __int64 result; // rax\n  unsigned int v3; // r14d\n  __int64 v4; // r15\n  __int64 v5; // rax\n  __int64 CString; // rax\n  __int64 v7; // r15\n  __int64 v8; // rax\n  __int64 v9; // rax\n  char v10; // [rsp+0h] [rbp-30h]\n  char v11; // [rsp+0h] [rbp-30h]\n\n  result = 22;\n  if ( a2 < 22 )\n    result = (unsigned int)a2;\n  v3 = 1;\n  if ( (int)result >= 2 )\n    v3 = result;\n  if ( !*(_BYTE *)(a1 + 1001) && v3 != *(_DWORD *)(a1 + 984) )\n  {\n    *(_BYTE *)(a1 + 1001) = 1;\n    *(_BYTE *)(a1 + 1003) = 0;\n    *(_BYTE *)(a1 + 1004) = (v3 & 0x7FFFFFFC) != 8;\n    v4 = cocos2d::CCTextureCache::sharedTextureCache(a1);\n    v5 = sub_10088E820(\"groundSquare_%02d_001.png\", v10);\n    CString = cocos2d::CCString::getCString(v5);\n    result = cocos2d::CCTextureCache::addImageAsync(v4, CString, a1, sub_10036CDE0, 0, v3, 0);\n    if ( (v3 & 0x7FFFFFFC) == 8 )\n    {\n      v7 = cocos2d::CCTextureCache::sharedTextureCache(v4);\n      v8 = sub_10088E820(\"groundSquare_%02d_2_001.png\", v11);\n      v9 = cocos2d::CCString::getCString(v8);\n      return cocos2d::CCTextureCache::addImageAsync(v7, v9, a1, GameManager::finishedLoadingGAsync2, 0, v3, 0);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameManager::loadGroundAsync from 0x10036cce0 to 0x10036cde0 (256 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::swapGround @ 0x1000f0b8b\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; \npush    rbp                                                            ; +0x0, 0x10036cce0\nmov     rbp, rsp                                                       ; +0x1, 0x10036cce1\npush    r15                                                            ; +0x4, 0x10036cce4\npush    r14                                                            ; +0x6, 0x10036cce6\npush    r12                                                            ; +0x8, 0x10036cce8\npush    rbx                                                            ; +0xa, 0x10036ccea\nsub     rsp, 10h                                                       ; +0xb, 0x10036cceb\ncmp     esi, 16h                                                       ; +0xf, 0x10036ccef\nmov     eax, 16h                                                       ; +0x12, 0x10036ccf2\ncmovl   eax, esi                                                       ; +0x17, 0x10036ccf7\ncmp     eax, 2                                                         ; +0x1a, 0x10036ccfa\nmov     r14d, 1                                                        ; +0x1d, 0x10036ccfd\ncmovge  r14d, eax                                                      ; +0x23, 0x10036cd03\ncmp     byte ptr [rdi+3E9h], 0                                         ; +0x27, 0x10036cd07\njnz     loc_10036CDD3                                                  ; +0x2e, 0x10036cd0e\nmov     rbx, rdi                                                       ; +0x34, 0x10036cd14\ncmp     r14d, [rdi+3D8h]                                               ; +0x37, 0x10036cd17\njz      loc_10036CDD3                                                  ; +0x3e, 0x10036cd1e\nmov     byte ptr [rbx+3E9h], 1                                         ; +0x44, 0x10036cd24\nmov     r12d, r14d                                                     ; +0x4b, 0x10036cd2b\nand     r12d, 7FFFFFFCh                                                ; +0x4e, 0x10036cd2e\ncmp     r12d, 8                                                        ; +0x55, 0x10036cd35\nmov     byte ptr [rbx+3EBh], 0                                         ; +0x59, 0x10036cd39\nsetnz   byte ptr [rbx+3ECh]                                            ; +0x60, 0x10036cd40\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0x67, 0x10036cd47\nmov     r15, rax                                                       ; +0x6c, 0x10036cd4c\nlea     rdi, aGroundsquare02; \"groundSquare_%02d_001.png\"              ; +0x6f, 0x10036cd4f\nmov     esi, r14d                                                      ; +0x76, 0x10036cd56\nxor     eax, eax                                                       ; +0x79, 0x10036cd59\ncall    sub_10088E820                                                  ; +0x7b, 0x10036cd5b\nmov     rdi, rax                                                       ; +0x80, 0x10036cd60\ncall    cocos2d__CCString__getCString                                  ; +0x83, 0x10036cd63\nmov     dword ptr [rsp+30h+var_30], 0; char                            ; +0x88, 0x10036cd68\nlea     rcx, sub_10036CDE0                                             ; +0x8f, 0x10036cd6f\nmov     rdi, r15                                                       ; +0x96, 0x10036cd76\nmov     rsi, rax                                                       ; +0x99, 0x10036cd79\nmov     rdx, rbx                                                       ; +0x9c, 0x10036cd7c\nxor     r8d, r8d                                                       ; +0x9f, 0x10036cd7f\nmov     r9d, r14d                                                      ; +0xa2, 0x10036cd82\ncall    cocos2d__CCTextureCache__addImageAsync                         ; +0xa5, 0x10036cd85\ncmp     r12d, 8                                                        ; +0xaa, 0x10036cd8a\njnz     short loc_10036CDD3                                            ; +0xae, 0x10036cd8e\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0xb0, 0x10036cd90\nmov     r15, rax                                                       ; +0xb5, 0x10036cd95\nlea     rdi, aGroundsquare02_0; \"groundSquare_%02d_2_001.png\"          ; +0xb8, 0x10036cd98\nmov     esi, r14d                                                      ; +0xbf, 0x10036cd9f\nxor     eax, eax                                                       ; +0xc2, 0x10036cda2\ncall    sub_10088E820                                                  ; +0xc4, 0x10036cda4\nmov     rdi, rax                                                       ; +0xc9, 0x10036cda9\ncall    cocos2d__CCString__getCString                                  ; +0xcc, 0x10036cdac\nmov     dword ptr [rsp+30h+var_30], 0                                  ; +0xd1, 0x10036cdb1\nlea     rcx, GameManager__finishedLoadingGAsync2                       ; +0xd8, 0x10036cdb8\nmov     rdi, r15                                                       ; +0xdf, 0x10036cdbf\nmov     rsi, rax                                                       ; +0xe2, 0x10036cdc2\nmov     rdx, rbx                                                       ; +0xe5, 0x10036cdc5\nxor     r8d, r8d                                                       ; +0xe8, 0x10036cdc8\nmov     r9d, r14d                                                      ; +0xeb, 0x10036cdcb\ncall    cocos2d__CCTextureCache__addImageAsync                         ; +0xee, 0x10036cdce\nadd     rsp, 10h                                                       ; +0xf3, 0x10036cdd3\npop     rbx                                                            ; +0xf7, 0x10036cdd7\npop     r12                                                            ; +0xf8, 0x10036cdd8\npop     r14                                                            ; +0xfa, 0x10036cdda\npop     r15                                                            ; +0xfc, 0x10036cddc\npop     rbp                                                            ; +0xfe, 0x10036cdde\nretn                                                                   ; +0xff, 0x10036cddf", "xrefs": ["GJBaseGameLayer::swapGround @ 0x1000f0b8b"], "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"}