{"type": "func", "start": 4298214612, "end": 4298214688, "name": "GameManager::getMGTexture", "pseudocode": "// \n// GameManager::getMGTexture from 0x100318cd4 to 0x100318d20 (76 bytes)\n// \n// 1 xrefs:\n// > GJMGLayer::init @ 0x10002c948\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  int v2; // w8\n  int v3; // w19\n  cocos2d::CCString *v4; // x0\n\n  if ( a2 >= 3 )\n    v2 = 3;\n  else\n    v2 = a2;\n  if ( v2 <= 1 )\n    v3 = 1;\n  else\n    v3 = v2;\n  GameManager::loadMiddleground(a1, v3);\n  v4 = (cocos2d::CCString *)sub_100268F4C(\"fg_%02d_001.png\", v3);\n  return cocos2d::CCString::getCString(v4);\n}", "assembly": "; \n; GameManager::getMGTexture from 0x100318cd4 to 0x100318d20 (76 bytes)\n; \n; 1 xrefs:\n; > GJMGLayer::init @ 0x10002c948\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, 0x100318cd4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100318cd8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100318cdc\nADD             X29, SP, #0x20                                         ; +0xc, 0x100318ce0\nCMP             W1, #3                                                 ; +0x10, 0x100318ce4\nMOV             W8, #3                                                 ; +0x14, 0x100318ce8\nCSEL            W8, W1, W8, LT                                         ; +0x18, 0x100318cec\nCMP             W8, #1                                                 ; +0x1c, 0x100318cf0\nCSINC           W19, W8, WZR, GT                                       ; +0x20, 0x100318cf4\nMOV             X1, X19                                                ; +0x24, 0x100318cf8\nBL              GameManager__loadMiddleground                          ; +0x28, 0x100318cfc\nSTR             X19, [SP,#0x20+var_20]                                 ; +0x2c, 0x100318d00\nADRL            X0, aFg02d001Png; \"fg_%02d_001.png\"                    ; +0x30, 0x100318d04\nBL              sub_100268F4C                                          ; +0x38, 0x100318d0c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x3c, 0x100318d10\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x40, 0x100318d14\nADD             SP, SP, #0x30 ; '0'                                    ; +0x44, 0x100318d18\nB               cocos2d__CCString__getCString                          ; +0x48, 0x100318d1c", "xrefs": ["GJMGLayer::init @ 0x10002c948"], "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"}