//
// cocos2d::extension::CCControlHuePicker::initWithTargetAndPos from 0x100244984 to 0x100244ab8 (308 bytes)
//
// 1 xrefs:
// > ??> @ 0x100907a08
//
// 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:26 +0000
//
bool __fastcall cocos2d::extension::CCControlHuePicker::initWithTargetAndPos(_QWORD *a1, __int64 a2, __int64 a3)
{
_BOOL8 v6; // x20
__int64 v7; // x0
__int64 v8; // x0
float v9; // s8
float v10; // s10
__int64 v11; // x22
__int64 v13; // [xsp+8h] [xbp-58h] BYREF
float v14; // [xsp+14h] [xbp-4Ch]
float v15; // [xsp+18h] [xbp-48h] BYREF
v6 = cocos2d::extension::CCControl::init((__int64)a1);
if ( v6 )
{
(*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 1000LL))(a1, 1);
sub_1000262F4(&v13, (double *)a3);
sub_1000262BC(&v15, 0.0, 0.0);
v7 = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor(
"huePickerBackground.png",
a2,
&v13,
&v15);
sub_100244AB8(a1, v7);
sub_1000262F4(&v13, (double *)a3);
sub_1000262BC(&v15, 0.5, 0.5);
v8 = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor("colourPicker.png", a2, &v13, &v15);
sub_100244B00(a1, v8);
v9 = *(float *)a3;
v10 = *(float *)(a3 + 4);
v11 = a1[61];
cocos2d::CCNode::boundingBox(&v13, a1[60]);
sub_1000262BC(&v15, v9, v10 + (float)(v14 * 0.5));
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, &v15);
sub_10002630C(a1 + 62, (double *)a3);
a1[59] = 0;
}
return v6;
}