{"type": "func", "start": 4298652608, "end": 4298652675, "name": "GameManager::getGTexture", "pseudocode": "// \n// GameManager::getGTexture from 0x100383bc0 to 0x100383c03 (67 bytes)\n// \n// 1 xrefs:\n// > GJGroundLayer::init @ 0x1005eaaed\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\nconst char *__fastcall GameManager::getGTexture(GameManager *a1, int a2)\n{\n  char v2; // al\n  int v3; // ebx\n  cocos2d::CCString *v4; // rax\n  char v6; // [rsp-8h] [rbp-10h]\n\n  v6 = v2;\n  v3 = a2;\n  if ( a2 >= 22 )\n    v3 = 22;\n  if ( v3 < 2 )\n    v3 = 1;\n  GameManager::loadGround(a1, v3);\n  v4 = (cocos2d::CCString *)sub_1007AB580(\"groundSquare_%02d_001.png\", v6);\n  return cocos2d::CCString::getCString(v4);\n}", "assembly": "; \n; GameManager::getGTexture from 0x100383bc0 to 0x100383c03 (67 bytes)\n; \n; 1 xrefs:\n; > GJGroundLayer::init @ 0x1005eaaed\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, 0x100383bc0\nmov     rbp, rsp                                                       ; +0x1, 0x100383bc1\npush    rbx                                                            ; +0x4, 0x100383bc4\npush    rax; char                                                      ; +0x5, 0x100383bc5\nmov     ebx, esi                                                       ; +0x6, 0x100383bc6\ncmp     esi, 16h                                                       ; +0x8, 0x100383bc8\nmov     eax, 16h                                                       ; +0xb, 0x100383bcb\ncmovge  ebx, eax                                                       ; +0x10, 0x100383bd0\ncmp     ebx, 2                                                         ; +0x13, 0x100383bd3\nmov     eax, 1                                                         ; +0x16, 0x100383bd6\ncmovl   ebx, eax                                                       ; +0x1b, 0x100383bdb\nmov     esi, ebx                                                       ; +0x1e, 0x100383bde\ncall    GameManager__loadGround                                        ; +0x20, 0x100383be0\nlea     rdi, aGroundsquare02; \"groundSquare_%02d_001.png\"              ; +0x25, 0x100383be5\nmov     esi, ebx                                                       ; +0x2c, 0x100383bec\nxor     eax, eax                                                       ; +0x2e, 0x100383bee\ncall    sub_1007AB580                                                  ; +0x30, 0x100383bf0\nmov     rdi, rax                                                       ; +0x35, 0x100383bf5\nadd     rsp, 8                                                         ; +0x38, 0x100383bf8\npop     rbx                                                            ; +0x3c, 0x100383bfc\npop     rbp                                                            ; +0x3d, 0x100383bfd\njmp     cocos2d__CCString__getCString                                  ; +0x3e, 0x100383bfe", "xrefs": ["GJGroundLayer::init @ 0x1005eaaed"], "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"}