//
// cocos2d::extension::CCControlHuePicker::initWithTargetAndPos from 0x7a8968 to 0x7a8a86 (286 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:00 +0000
//
int __fastcall cocos2d::extension::CCControlHuePicker::initWithTargetAndPos(
cocos2d::extension::CCControl *a1,
int a2,
float *a3)
{
int v6; // r10
cocos2d::CCObject *v7; // r0
cocos2d::CCObject *v8; // r11
cocos2d::CCObject *v9; // r0
cocos2d::CCObject *v10; // r0
cocos2d::CCObject *v11; // r9
cocos2d::CCObject *v12; // r0
int v13; // r9
float v14; // r11
float v15; // s16
void (__fastcall *v17)(int, _BYTE *); // [sp+4h] [bp-28h]
_BYTE v18[8]; // [sp+Ch] [bp-20h] BYREF
_BYTE v19[12]; // [sp+14h] [bp-18h] BYREF
float v20; // [sp+20h] [bp-Ch]
v6 = cocos2d::extension::CCControl::init(a1);
if ( v6 )
{
(*(void (__fastcall **)(cocos2d::extension::CCControl *, int))(*(_DWORD *)a1 + 500))(a1, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, (const cocos2d::CCPoint *)a3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 0.0, 0.0);
v7 = (cocos2d::CCObject *)cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor(
"huePickerBackground.png",
a2,
v18,
v19);
v8 = v7;
if ( *((cocos2d::CCObject **)a1 + 91) != v7 )
{
if ( v7 )
cocos2d::CCObject::retain(v7);
v9 = *((cocos2d::CCObject **)a1 + 91);
if ( v9 )
cocos2d::CCObject::release(v9);
*((_DWORD *)a1 + 91) = v8;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, (const cocos2d::CCPoint *)a3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 0.5, 0.5);
v10 = (cocos2d::CCObject *)cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor(
"colourPicker.png",
a2,
v18,
v19);
v11 = v10;
if ( *((cocos2d::CCObject **)a1 + 92) != v10 )
{
if ( v10 )
cocos2d::CCObject::retain(v10);
v12 = *((cocos2d::CCObject **)a1 + 92);
if ( v12 )
cocos2d::CCObject::release(v12);
*((_DWORD *)a1 + 92) = v11;
}
v13 = *((_DWORD *)a1 + 92);
v14 = *a3;
v15 = a3[1];
v17 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 92);
cocos2d::CCNode::boundingBox((cocos2d::CCNode *)v19);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v14, v15 + (float)(v20 * 0.5));
v17(v13, v18);
cocos2d::CCPoint::operator=((char *)a1 + 372, a3);
*((_DWORD *)a1 + 89) = 0;
*((_DWORD *)a1 + 90) = 0;
}
return v6;
}