//
// GJBaseGameLayer::getSingleGroupObject from 0x100101b20 to 0x100101ba9 (137 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:21:21 +0000
//
__int64 __fastcall GJBaseGameLayer::getSingleGroupObject(__int64 a1, int a2)
{
__int64 v2; // r14
__int64 v3; // rbx
if ( a2 <= 0 )
return 0;
v2 = 9999;
if ( (unsigned int)a2 < 0x270F )
v2 = (unsigned int)a2;
if ( ((v3 = *(_QWORD *)(*(_QWORD *)(a1 + 3616) + 8 * v2)) != 0
|| (v3 = sub_1007FE900(a1),
cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3592), v3, v2),
(*(_QWORD *)(*(_QWORD *)(a1 + 3616) + 8 * v2) = v3) != 0))
&& (unsigned int)sub_1007FEF90(v3) == 1 )
{
return sub_1007FEFE0(v3, 0);
}
else
{
return 0;
}
}