//
// sub_100117A08 from 0x100117a08 to 0x100117af0 (232 bytes)
//
// 2 xrefs:
// > ParentalOptionsLayer::addMasterToggle @ 0x100116e00
// > ParentalOptionsLayer::addToggle @ 0x1001173b4
//
// 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 10:59:11 +0000
//
__int64 __fastcall sub_100117A08(__int64 a1, int a2)
{
__int64 v4; // x19
__int64 v5; // x0
char *CString; // x0
__int64 v7; // x0
__int64 v8; // x19
__int64 v9; // x21
__int64 v10; // x0
char *v11; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v14; // [xsp+1Fh] [xbp-21h]
v4 = *(_QWORD *)(a1 + 680);
v5 = sub_1003065B0("layer_%i", a2);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
v7 = cocos2d::CCDictionary::objectForKey(v4, __p);
v8 = v7;
if ( v14 < 0 )
{
operator delete(__p[0]);
if ( v8 )
return v8;
}
else if ( v7 )
{
return v8;
}
v8 = cocos2d::CCLayer::create(v7);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v8);
v9 = *(_QWORD *)(a1 + 680);
v10 = sub_1003065B0("layer_%i", a2);
v11 = (char *)cocos2d::CCString::getCString(v10);
sub_100009900(__p, v11);
cocos2d::CCDictionary::setObject(v9, v8, __p);
if ( v14 < 0 )
operator delete(__p[0]);
return v8;
}