{"type": "func", "start": 4298652448, "end": 4298652515, "name": "GameManager::getBGTexture", "pseudocode": "// \n// GameManager::getBGTexture from 0x100383b20 to 0x100383b63 (67 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::createBackground @ 0x100114413\n// > LevelAreaLayer::init @ 0x100277a96\n// > GauntletLayer::init @ 0x100392b1a\n// > LoadingLayer::init @ 0x1003a2756\n// > MenuGameLayer::init @ 0x1004f9a5c\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::getBGTexture(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 >= 59 )\n    v3 = 59;\n  if ( v3 < 2 )\n    v3 = 1;\n  GameManager::loadBackground(a1, v3);\n  v4 = (cocos2d::CCString *)sub_1007AB580(\"game_bg_%02d_001.png\", v6);\n  return cocos2d::CCString::getCString(v4);\n}", "assembly": "; \n; GameManager::getBGTexture from 0x100383b20 to 0x100383b63 (67 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::createBackground @ 0x100114413\n; > LevelAreaLayer::init @ 0x100277a96\n; > GauntletLayer::init @ 0x100392b1a\n; > LoadingLayer::init @ 0x1003a2756\n; > MenuGameLayer::init @ 0x1004f9a5c\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, 0x100383b20\nmov     rbp, rsp                                                       ; +0x1, 0x100383b21\npush    rbx                                                            ; +0x4, 0x100383b24\npush    rax; char                                                      ; +0x5, 0x100383b25\nmov     ebx, esi                                                       ; +0x6, 0x100383b26\ncmp     esi, 3Bh ; ';'                                                 ; +0x8, 0x100383b28\nmov     eax, 3Bh ; ';'                                                 ; +0xb, 0x100383b2b\ncmovge  ebx, eax                                                       ; +0x10, 0x100383b30\ncmp     ebx, 2                                                         ; +0x13, 0x100383b33\nmov     eax, 1                                                         ; +0x16, 0x100383b36\ncmovl   ebx, eax                                                       ; +0x1b, 0x100383b3b\nmov     esi, ebx                                                       ; +0x1e, 0x100383b3e\ncall    GameManager__loadBackground                                    ; +0x20, 0x100383b40\nlea     rdi, aGameBg02d001Pn; \"game_bg_%02d_001.png\"                   ; +0x25, 0x100383b45\nmov     esi, ebx                                                       ; +0x2c, 0x100383b4c\nxor     eax, eax                                                       ; +0x2e, 0x100383b4e\ncall    sub_1007AB580                                                  ; +0x30, 0x100383b50\nmov     rdi, rax                                                       ; +0x35, 0x100383b55\nadd     rsp, 8                                                         ; +0x38, 0x100383b58\npop     rbx                                                            ; +0x3c, 0x100383b5c\npop     rbp                                                            ; +0x3d, 0x100383b5d\njmp     cocos2d__CCString__getCString                                  ; +0x3e, 0x100383b5e", "xrefs": ["GJBaseGameLayer::createBackground @ 0x100114413", "LevelAreaLayer::init @ 0x100277a96", "GauntletLayer::init @ 0x100392b1a", "LoadingLayer::init @ 0x1003a2756", "MenuGameLayer::init @ 0x1004f9a5c"], "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"}