{"type": "func", "start": 8771504, "end": 8771584, "name": "GJBaseGameLayer::getSingleGroupObject", "pseudocode": "// \n// GJBaseGameLayer::getSingleGroupObject from 0x85d7b0 to 0x85d800 (80 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::tryGetMainObject @ 0x85d9c8\n// > <???> @ 0x9a140\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::getSingleGroupObject(GJBaseGameLayer *a1, int a2)\n{\n  cocos2d::CCArray *Group; // x0\n  cocos2d::CCArray *v3; // x19\n\n  if ( a2 > 0\n    && (Group = GJBaseGameLayer::getGroup(a1, a2), (v3 = Group) != nullptr)\n    && (unsigned int)cocos2d::CCArray::count(Group) == 1 )\n  {\n    return (GameObject *)cocos2d::CCArray::objectAtIndex(v3, 0);\n  }\n  else\n  {\n    return nullptr;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::getSingleGroupObject from 0x85d7b0 to 0x85d800 (80 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::tryGetMainObject @ 0x85d9c8\n; > <???> @ 0x9a140\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_20]!                                ; +0x0, 0x85d7b0\nCMP             W1, WZR                                                ; +0x4, 0x85d7b4\nMOV             X29, SP                                                ; +0x8, 0x85d7b8\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x85d7bc\nB.LE            loc_85D7DC                                             ; +0x10, 0x85d7c0\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0x14, 0x85d7c4\nMOV             X19, X0                                                ; +0x18, 0x85d7c8\nCBZ             X0, loc_85D7DC                                         ; +0x1c, 0x85d7cc\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x20, 0x85d7d0\nCMP             W0, #1                                                 ; +0x24, 0x85d7d4\nB.EQ            loc_85D7EC                                             ; +0x28, 0x85d7d8\nMOV             X0, #0                                                 ; +0x2c, 0x85d7dc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x30, 0x85d7e0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x34, 0x85d7e4\nRET                                                                    ; +0x38, 0x85d7e8\nMOV             X0, X19; this                                          ; +0x3c, 0x85d7ec\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x40, 0x85d7f0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x44, 0x85d7f4\nMOV             W1, #0; unsigned int                                   ; +0x48, 0x85d7f8\nB               _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0x85d7fc", "xrefs": ["GJBaseGameLayer::tryGetMainObject @ 0x85d9c8", "<???> @ 0x9a140"], "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"}