{"type": "func", "start": 4298652528, "end": 4298652595, "name": "GameManager::getMGTexture", "pseudocode": "// \n// GameManager::getMGTexture from 0x100383b70 to 0x100383bb3 (67 bytes)\n// \n// 1 xrefs:\n// > GJMGLayer::init @ 0x1005ebdd9\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::getMGTexture(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 >= 3 )\n    v3 = 3;\n  if ( v3 < 2 )\n    v3 = 1;\n  GameManager::loadMiddleground(a1, v3);\n  v4 = (cocos2d::CCString *)sub_1007AB580(\"fg_%02d_001.png\", v6);\n  return cocos2d::CCString::getCString(v4);\n}", "assembly": "; \n; GameManager::getMGTexture from 0x100383b70 to 0x100383bb3 (67 bytes)\n; \n; 1 xrefs:\n; > GJMGLayer::init @ 0x1005ebdd9\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, 0x100383b70\nmov     rbp, rsp                                                       ; +0x1, 0x100383b71\npush    rbx                                                            ; +0x4, 0x100383b74\npush    rax; char                                                      ; +0x5, 0x100383b75\nmov     ebx, esi                                                       ; +0x6, 0x100383b76\ncmp     esi, 3                                                         ; +0x8, 0x100383b78\nmov     eax, 3                                                         ; +0xb, 0x100383b7b\ncmovge  ebx, eax                                                       ; +0x10, 0x100383b80\ncmp     ebx, 2                                                         ; +0x13, 0x100383b83\nmov     eax, 1                                                         ; +0x16, 0x100383b86\ncmovl   ebx, eax                                                       ; +0x1b, 0x100383b8b\nmov     esi, ebx                                                       ; +0x1e, 0x100383b8e\ncall    GameManager__loadMiddleground                                  ; +0x20, 0x100383b90\nlea     rdi, aFg02d001Png; \"fg_%02d_001.png\"                           ; +0x25, 0x100383b95\nmov     esi, ebx                                                       ; +0x2c, 0x100383b9c\nxor     eax, eax                                                       ; +0x2e, 0x100383b9e\ncall    sub_1007AB580                                                  ; +0x30, 0x100383ba0\nmov     rdi, rax                                                       ; +0x35, 0x100383ba5\nadd     rsp, 8                                                         ; +0x38, 0x100383ba8\npop     rbx                                                            ; +0x3c, 0x100383bac\npop     rbp                                                            ; +0x3d, 0x100383bad\njmp     cocos2d__CCString__getCString                                  ; +0x3e, 0x100383bae", "xrefs": ["GJMGLayer::init @ 0x1005ebdd9"], "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"}