//
// cocos2d::extension::CCControl::init from 0x10023a7e0 to 0x10023a898 (184 bytes)
//
// 6 xrefs:
// > cocos2d::extension::CCControlColourPicker::init @ 0x100243380
// > cocos2d::extension::CCControlHuePicker::initWithTargetAndPos @ 0x1002449ac
// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0x100253848
// > ??> @ 0x1009051e8
// > ??> @ 0x1009074f8
// > ??> @ 0x10090d7f0
//
// 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 11:01:21 +0000
//
bool __fastcall cocos2d::extension::CCControl::init(__int64 a1)
{
_BOOL8 v2; // x20
void *v3; // x21
v2 = cocos2d::CCLayer::init((_WORD *)a1);
if ( v2 )
{
*(_DWORD *)(a1 + 428) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1264LL))(a1, 1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1280LL))(a1, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1296LL))(a1, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1024LL))(a1, 1);
v3 = operator new(0x48u);
cocos2d::CCDictionary::CCDictionary();
*(_QWORD *)(a1 + 440) = v3;
sub_1000187C4(a1 + 448, *(_QWORD **)(a1 + 456));
*(_QWORD *)(a1 + 456) = 0;
*(_QWORD *)(a1 + 464) = 0;
*(_QWORD *)(a1 + 448) = a1 + 456;
}
return v2;
}