{"type": "func", "start": 8771696, "end": 8771800, "name": "GJBaseGameLayer::getCenterGroupObject", "pseudocode": "// \n// GJBaseGameLayer::getCenterGroupObject from 0x85d870 to 0x85d8d8 (104 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xae138\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\nGameObject *GJBaseGameLayer::getCenterGroupObject(GJBaseGameLayer *a1, int a2, int a3)\n{\n  int v3; // w19\n  cocos2d::CCArray *Group; // x0\n  cocos2d::CCArray *v6; // x20\n\n  if ( a2 <= 0 )\n    v3 = a3;\n  else\n    v3 = a2;\n  Group = GJBaseGameLayer::getGroup(a1, v3);\n  v6 = Group;\n  if ( Group && (unsigned int)cocos2d::CCArray::count(Group) == 1 )\n    return (GameObject *)cocos2d::CCArray::objectAtIndex(v6, 0);\n  else\n    return GJBaseGameLayer::getGroupParent(a1, v3);\n}", "assembly": "; \n; GJBaseGameLayer::getCenterGroupObject from 0x85d870 to 0x85d8d8 (104 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xae138\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x85d870\nCMP             W1, WZR                                                ; +0x4, 0x85d874\nMOV             X29, SP                                                ; +0x8, 0x85d878\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x85d87c\nCSEL            W19, W1, W2, GT                                        ; +0x10, 0x85d880\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0x85d884\nMOV             W1, W19; int                                           ; +0x18, 0x85d888\nMOV             X21, X0                                                ; +0x1c, 0x85d88c\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0x20, 0x85d890\nMOV             X20, X0                                                ; +0x24, 0x85d894\nCBZ             X0, loc_85D8A8                                         ; +0x28, 0x85d898\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2c, 0x85d89c\nCMP             W0, #1                                                 ; +0x30, 0x85d8a0\nB.EQ            loc_85D8C0                                             ; +0x34, 0x85d8a4\nMOV             X0, X21; this                                          ; +0x38, 0x85d8a8\nMOV             W1, W19; int                                           ; +0x3c, 0x85d8ac\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x40, 0x85d8b0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x44, 0x85d8b4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x48, 0x85d8b8\nB               _ZN15GJBaseGameLayer14getGroupParentEi; GJBaseGameLayer::getGroupParent(int) ; +0x4c, 0x85d8bc\nMOV             X0, X20; this                                          ; +0x50, 0x85d8c0\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x54, 0x85d8c4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x58, 0x85d8c8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x85d8cc\nMOV             W1, #0; unsigned int                                   ; +0x60, 0x85d8d0\nB               _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x64, 0x85d8d4", "xrefs": ["<???> @ 0xae138"], "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"}