//
// GJBaseGameLayer::getCenterGroupObject from 0x10011a9a0 to 0x10011aa53 (179 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:24:35 +0000
//
__int64 __fastcall GJBaseGameLayer::getCenterGroupObject(_QWORD *a1, int a2, int a3)
{
int v4; // eax
__int64 v5; // r12
__int64 v6; // r14
__int64 v7; // rax
if ( a2 > 0 )
a3 = a2;
v4 = 9999;
if ( a3 < 9999 )
v4 = a3;
v5 = 0;
if ( v4 > 0 )
v5 = (unsigned int)v4;
v6 = *(_QWORD *)(a1[452] + 8 * v5);
if ( v6
|| (v6 = sub_1007FE900(a1),
cocos2d::CCDictionary::setObject_1(a1[449], v6, v5),
(*(_QWORD *)(a1[452] + 8 * v5) = v6) != 0) )
{
if ( (unsigned int)sub_1007FEF90(v6) == 1 )
return sub_1007FEFE0(v6, 0);
}
v7 = cocos2d::CCDictionary::objectForKey_1(a1[461]);
if ( v7 && (v6 = v7, (unsigned int)sub_1007FEF90(v7)) )
return sub_1007FEFE0(v6, 0);
else
return 0;
}