{"type": "func", "start": 4657192, "end": 4657230, "name": "GJBaseGameLayer::getSingleGroupObject", "pseudocode": "// \n// GJBaseGameLayer::getSingleGroupObject from 0x471028 to 0x47104e (38 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::tryGetMainObject @ 0x471120\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; // r0\n  cocos2d::CCArray *v3; // r4\n\n  if ( a2 > 0\n    && (Group = GJBaseGameLayer::getGroup(a1, a2), (v3 = Group) != nullptr)\n    && 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 0x471028 to 0x47104e (38 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::tryGetMainObject @ 0x471120\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\nCMP             R1, #0                                                 ; +0x0, 0x471028\nPUSH            {R4,LR}                                                ; +0x2, 0x47102a\nBLE             loc_47104A                                             ; +0x4, 0x47102c\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0x6, 0x47102e\nMOV             R4, R0                                                 ; +0xa, 0x471032\nCBZ             R0, loc_47104A                                         ; +0xc, 0x471034\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xe, 0x471036\nCMP             R0, #1                                                 ; +0x12, 0x47103a\nBNE             loc_47104A                                             ; +0x14, 0x47103c\nMOV             R0, R4; this                                           ; +0x16, 0x47103e\nMOVS            R1, #0; unsigned int                                   ; +0x18, 0x471040\nPOP.W           {R4,LR}                                                ; +0x1a, 0x471042\nB.W             _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1e, 0x471046\nMOVS            R0, #0                                                 ; +0x22, 0x47104a\nPOP             {R4,PC}                                                ; +0x24, 0x47104c", "xrefs": ["GJBaseGameLayer::tryGetMainObject @ 0x471120"], "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"}