//
// ConfigureHSVWidget::setBaseColor from 0x100123ac0 to 0x100123c7c (444 bytes)
//
// 2 xrefs:
// > HSVWidgetPopup::init @ 0x100123918
// > HSVLiveOverlay::createHSVWidget @ 0x100234e88
//
// 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:17 +0000
//
__int64 __fastcall ConfigureHSVWidget::setBaseColor(__int64 a1, int a2, double a3, double a4, double a5, float a6)
{
__int64 v7; // x0
float v8; // s10
float v9; // s11
__int64 v10; // x21
__int64 v11; // x0
__int64 v12; // x20
float32x2_t *v13; // x21
double v14; // d0
__int64 v15; // x0
float32x2_t v17; // [xsp+0h] [xbp-50h] BYREF
float32x2_t v18; // [xsp+8h] [xbp-48h] BYREF
*(_WORD *)(a1 + 424) = a2;
*(_BYTE *)(a1 + 426) = BYTE2(a2);
*(_BYTE *)(a1 + 448) = 1;
if ( !*(_QWORD *)(a1 + 440) )
{
v7 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
*(_QWORD *)(a1 + 440) = v7;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, 0.7);
v8 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 328LL))(*(_QWORD *)(a1 + 440)) + 4);
v9 = v8 * (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 168LL))(*(_QWORD *)(a1 + 440));
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 440));
v10 = *(_QWORD *)(a1 + 440);
sub_1000262BC((float *)&v18, 155.0, (float)((float)(v9 * 1.5) + -80.0) + 4.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v10 + 184LL))(v10, &v18);
v11 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
*(_QWORD *)(a1 + 432) = v11;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v11 + 160LL))(v11, 0.7);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 432));
v12 = *(_QWORD *)(a1 + 432);
v13 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 192LL))(*(_QWORD *)(a1 + 440));
sub_1000262BC((float *)&v17, 0.0, -v9);
*(float32x2_t *)&v14 = sub_100026318(v13, &v17, &v18);
a3 = (*(double (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v12 + 184LL))(v12, &v18, v14);
}
v15 = sub_10004A1F8((_BYTE *)(a1 + 424), *(_QWORD *)(a1 + 376), *(_QWORD *)(a1 + 384), a3, a4, a5, a6);
v18.i16[0] = v15;
v18.i8[2] = BYTE2(v15);
(*(void (__fastcall **)(_QWORD, float32x2_t *))(**(_QWORD **)(a1 + 432) + 960LL))(*(_QWORD *)(a1 + 432), &v18);
return (*(__int64 (__fastcall **)(_QWORD, float32x2_t *))(**(_QWORD **)(a1 + 440) + 960LL))(
*(_QWORD *)(a1 + 440),
&v18);
}