{"type": "func", "start": 4657288, "end": 4657340, "name": "GJBaseGameLayer::getCenterGroupObject", "pseudocode": "// \n// GJBaseGameLayer::getCenterGroupObject from 0x471088 to 0x4710bc (52 bytes)\n// \n// 0 xrefs:\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; // r4\n  cocos2d::CCArray *Group; // r0\n  cocos2d::CCArray *v6; // r6\n\n  v3 = a2;\n  if ( a2 <= 0 )\n    v3 = a3;\n  Group = GJBaseGameLayer::getGroup(a1, v3);\n  v6 = Group;\n  if ( Group && 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 0x471088 to 0x4710bc (52 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x471088\nSUBS            R4, R1, #0                                             ; +0x2, 0x47108a\nMOV             R5, R0                                                 ; +0x4, 0x47108c\nIT LE                                                                  ; +0x6, 0x47108e\nMOVLE           R4, R2                                                 ; +0x8, 0x471090\nMOV             R1, R4; int                                            ; +0xa, 0x471092\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0xc, 0x471094\nMOV             R6, R0                                                 ; +0x10, 0x471098\nCBZ             R0, loc_4710B0                                         ; +0x12, 0x47109a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x14, 0x47109c\nCMP             R0, #1                                                 ; +0x18, 0x4710a0\nBNE             loc_4710B0                                             ; +0x1a, 0x4710a2\nMOV             R0, R6; this                                           ; +0x1c, 0x4710a4\nMOVS            R1, #0; unsigned int                                   ; +0x1e, 0x4710a6\nPOP.W           {R4-R6,LR}                                             ; +0x20, 0x4710a8\nB.W             _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x24, 0x4710ac\nMOV             R0, R5; this                                           ; +0x28, 0x4710b0\nMOV             R1, R4; int                                            ; +0x2a, 0x4710b2\nPOP.W           {R4-R6,LR}                                             ; +0x2c, 0x4710b4\nB.W             _ZN15GJBaseGameLayer14getGroupParentEi; GJBaseGameLayer::getGroupParent(int) ; +0x30, 0x4710b8", "xrefs": [], "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"}