{"type": "func", "start": 4298214536, "end": 4298214612, "name": "GameManager::getBGTexture", "pseudocode": "// \n// GameManager::getBGTexture from 0x100318c88 to 0x100318cd4 (76 bytes)\n// \n// 5 xrefs:\n// > LoadingLayer::init @ 0x1001d60a8\n// > GJBaseGameLayer::createBackground @ 0x1001ddc80\n// > GauntletLayer::init @ 0x1002323b0\n// > LevelAreaLayer::init @ 0x100343d04\n// > MenuGameLayer::init @ 0x10039a5e4\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  int v2; // w8\n  int v3; // w19\n  cocos2d::CCString *v4; // x0\n\n  if ( a2 >= 59 )\n    v2 = 59;\n  else\n    v2 = a2;\n  if ( v2 <= 1 )\n    v3 = 1;\n  else\n    v3 = v2;\n  GameManager::loadBackground(a1, v3);\n  v4 = (cocos2d::CCString *)sub_100268F4C(\"game_bg_%02d_001.png\", v3);\n  return cocos2d::CCString::getCString(v4);\n}", "assembly": "; \n; GameManager::getBGTexture from 0x100318c88 to 0x100318cd4 (76 bytes)\n; \n; 5 xrefs:\n; > LoadingLayer::init @ 0x1001d60a8\n; > GJBaseGameLayer::createBackground @ 0x1001ddc80\n; > GauntletLayer::init @ 0x1002323b0\n; > LevelAreaLayer::init @ 0x100343d04\n; > MenuGameLayer::init @ 0x10039a5e4\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x100318c88\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100318c8c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100318c90\nADD             X29, SP, #0x20                                         ; +0xc, 0x100318c94\nCMP             W1, #0x3B ; ';'                                        ; +0x10, 0x100318c98\nMOV             W8, #0x3B ; ';'                                        ; +0x14, 0x100318c9c\nCSEL            W8, W1, W8, LT                                         ; +0x18, 0x100318ca0\nCMP             W8, #1                                                 ; +0x1c, 0x100318ca4\nCSINC           W19, W8, WZR, GT                                       ; +0x20, 0x100318ca8\nMOV             X1, X19                                                ; +0x24, 0x100318cac\nBL              GameManager__loadBackground                            ; +0x28, 0x100318cb0\nSTR             X19, [SP,#0x20+var_20]                                 ; +0x2c, 0x100318cb4\nADRL            X0, aGameBg02d001Pn; \"game_bg_%02d_001.png\"            ; +0x30, 0x100318cb8\nBL              sub_100268F4C                                          ; +0x38, 0x100318cc0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x3c, 0x100318cc4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x40, 0x100318cc8\nADD             SP, SP, #0x30 ; '0'                                    ; +0x44, 0x100318ccc\nB               cocos2d__CCString__getCString                          ; +0x48, 0x100318cd0", "xrefs": ["LoadingLayer::init @ 0x1001d60a8", "GJBaseGameLayer::createBackground @ 0x1001ddc80", "GauntletLayer::init @ 0x1002323b0", "LevelAreaLayer::init @ 0x100343d04", "MenuGameLayer::init @ 0x10039a5e4"], "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"}