{"type": "func", "start": 4298214688, "end": 4298214764, "name": "GameManager::getGTexture", "pseudocode": "// \n// GameManager::getGTexture from 0x100318d20 to 0x100318d6c (76 bytes)\n// \n// 1 xrefs:\n// > GJGroundLayer::init @ 0x10002ba70\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::getGTexture(GameManager *a1, int a2)\n{\n  int v2; // w8\n  int v3; // w19\n  cocos2d::CCString *v4; // x0\n\n  if ( a2 >= 22 )\n    v2 = 22;\n  else\n    v2 = a2;\n  if ( v2 <= 1 )\n    v3 = 1;\n  else\n    v3 = v2;\n  GameManager::loadGround(a1, v3);\n  v4 = (cocos2d::CCString *)sub_100268F4C(\"groundSquare_%02d_001.png\", v3);\n  return cocos2d::CCString::getCString(v4);\n}", "assembly": "; \n; GameManager::getGTexture from 0x100318d20 to 0x100318d6c (76 bytes)\n; \n; 1 xrefs:\n; > GJGroundLayer::init @ 0x10002ba70\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, 0x100318d20\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100318d24\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100318d28\nADD             X29, SP, #0x20                                         ; +0xc, 0x100318d2c\nCMP             W1, #0x16                                              ; +0x10, 0x100318d30\nMOV             W8, #0x16                                              ; +0x14, 0x100318d34\nCSEL            W8, W1, W8, LT                                         ; +0x18, 0x100318d38\nCMP             W8, #1                                                 ; +0x1c, 0x100318d3c\nCSINC           W19, W8, WZR, GT                                       ; +0x20, 0x100318d40\nMOV             X1, X19                                                ; +0x24, 0x100318d44\nBL              GameManager__loadGround                                ; +0x28, 0x100318d48\nSTR             X19, [SP,#0x20+var_20]                                 ; +0x2c, 0x100318d4c\nADRL            X0, aGroundsquare02_0; \"groundSquare_%02d_001.png\"     ; +0x30, 0x100318d50\nBL              sub_100268F4C                                          ; +0x38, 0x100318d58\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x3c, 0x100318d5c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x40, 0x100318d60\nADD             SP, SP, #0x30 ; '0'                                    ; +0x44, 0x100318d64\nB               cocos2d__CCString__getCString                          ; +0x48, 0x100318d68", "xrefs": ["GJGroundLayer::init @ 0x10002ba70"], "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"}