//
// sub_10011A840 from 0x10011a840 to 0x10011a931 (241 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::removeFromGroup @ 0x10011a7de
// > SetGroupIDLayer::callRemoveFromGroup @ 0x1003029c9
// > SetGroupIDLayer::callRemoveFromGroup @ 0x100302a59
//
// 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 sub_10011A840(__int64 a1, __int64 a2, int a3)
{
__int64 result; // rax
__int64 v5; // r12
__int64 v6; // rax
__int64 v7; // r13
__int64 v8; // r15
unsigned int v9; // r12d
if ( a2 )
{
v5 = a3;
v6 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3688));
if ( v6 )
{
v7 = v6;
sub_1007FF140(v6, a2, 1);
if ( !(unsigned int)sub_1007FEF90(v7) )
cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(a1 + 3688), v5);
}
result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3696));
if ( !result )
goto LABEL_11;
v8 = result;
if ( !(unsigned int)sub_1007FEF90(result) )
{
LABEL_10:
result = sub_1007FEF90(v8);
if ( (_DWORD)result )
return result;
goto LABEL_11;
}
v9 = 0;
while ( *(_DWORD *)(sub_1007FEFE0(v8, v9) + 56) != a3 )
{
if ( ++v9 >= (unsigned int)sub_1007FEF90(v8) )
goto LABEL_10;
}
sub_1007FF150(v8, v9, 1);
result = sub_1007FEF90(v8);
if ( !(_DWORD)result )
LABEL_11:
*(_BYTE *)(a2 + 1170) = 0;
}
return result;
}