//
// GJBaseGameLayer::tryGetGroupParent from 0x9a0c98 to 0x9a0d38 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0xfa270
//
// This function is hookable on this platform (idp: arm, 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:58:06 +0000
//
__int64 __fastcall GJBaseGameLayer::tryGetGroupParent(cocos2d::CCDictionary **this, int a2)
{
__int64 GroupParent; // x19
cocos2d::CCObject *Group; // x0
unsigned int *v7; // x0
unsigned int v8; // w1
__int64 *v9; // x0
__int64 *v10; // x3
__int64 v11; // x1
GroupParent = GJBaseGameLayer::getGroupParent(this, a2);
if ( !GroupParent )
{
Group = GJBaseGameLayer::getGroup((GJBaseGameLayer *)this, a2);
if ( Group )
{
v7 = *((unsigned int **)Group + 7);
v8 = *v7;
if ( *v7 )
{
v9 = *((__int64 **)v7 + 2);
v10 = &v9[v8 - 1];
if ( v9 <= v10 )
{
v11 = *v9;
if ( *v9 )
{
while ( !*(_BYTE *)(v11 + 1150) )
{
if ( v10 < ++v9 )
return GroupParent;
v11 = *v9;
if ( !*v9 )
return 0;
}
return v11;
}
}
}
}
}
return GroupParent;
}