{"type": "func", "start": 4298559232, "end": 4298559299, "name": "GameManager::getBGTexture", "pseudocode": "// \n// GameManager::getBGTexture from 0x10036cf00 to 0x10036cf43 (67 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::createBackground @ 0x1000f06b3\n// > LevelAreaLayer::init @ 0x100264096\n// > GauntletLayer::init @ 0x10037da7a\n// > LoadingLayer::init @ 0x10038bd66\n// > MenuGameLayer::init @ 0x1004f88ec\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:01 +0000\n// \n\n__int64 __fastcall GameManager::getBGTexture(__int64 a1, int a2)\n{\n  char v2; // al\n  int v3; // ebx\n  __int64 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 = sub_10088E820(\"game_bg_%02d_001.png\", v6);\n  return cocos2d::CCString::getCString(v4);\n}", "assembly": "; \n; GameManager::getBGTexture from 0x10036cf00 to 0x10036cf43 (67 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::createBackground @ 0x1000f06b3\n; > LevelAreaLayer::init @ 0x100264096\n; > GauntletLayer::init @ 0x10037da7a\n; > LoadingLayer::init @ 0x10038bd66\n; > MenuGameLayer::init @ 0x1004f88ec\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:01 +0000\n; \npush    rbp                                                            ; +0x0, 0x10036cf00\nmov     rbp, rsp                                                       ; +0x1, 0x10036cf01\npush    rbx                                                            ; +0x4, 0x10036cf04\npush    rax; char                                                      ; +0x5, 0x10036cf05\nmov     ebx, esi                                                       ; +0x6, 0x10036cf06\ncmp     esi, 3Bh ; ';'                                                 ; +0x8, 0x10036cf08\nmov     eax, 3Bh ; ';'                                                 ; +0xb, 0x10036cf0b\ncmovge  ebx, eax                                                       ; +0x10, 0x10036cf10\ncmp     ebx, 2                                                         ; +0x13, 0x10036cf13\nmov     eax, 1                                                         ; +0x16, 0x10036cf16\ncmovl   ebx, eax                                                       ; +0x1b, 0x10036cf1b\nmov     esi, ebx                                                       ; +0x1e, 0x10036cf1e\ncall    GameManager__loadBackground                                    ; +0x20, 0x10036cf20\nlea     rdi, aGameBg02d001Pn; \"game_bg_%02d_001.png\"                   ; +0x25, 0x10036cf25\nmov     esi, ebx                                                       ; +0x2c, 0x10036cf2c\nxor     eax, eax                                                       ; +0x2e, 0x10036cf2e\ncall    sub_10088E820                                                  ; +0x30, 0x10036cf30\nmov     rdi, rax                                                       ; +0x35, 0x10036cf35\nadd     rsp, 8                                                         ; +0x38, 0x10036cf38\npop     rbx                                                            ; +0x3c, 0x10036cf3c\npop     rbp                                                            ; +0x3d, 0x10036cf3d\njmp     cocos2d__CCString__getCString                                  ; +0x3e, 0x10036cf3e", "xrefs": ["GJBaseGameLayer::createBackground @ 0x1000f06b3", "LevelAreaLayer::init @ 0x100264096", "GauntletLayer::init @ 0x10037da7a", "LoadingLayer::init @ 0x10038bd66", "MenuGameLayer::init @ 0x1004f88ec"], "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"}