//
// HSVLiveOverlay::create from 0x69c77c to 0x69c904 (392 bytes)
//
// 1 xrefs:
// > EditorUI::editHSV @ 0x484226
//
// 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 11:56:19 +0000
//
int __fastcall HSVLiveOverlay::create(cocos2d::CCObject *a1, cocos2d::CCObject *a2, int a3, int a4)
{
int v6; // r4
int v7; // r3
int v8; // r0
int v10; // [sp+0h] [bp-14h]
v6 = operator new(0x234u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v6);
*(_DWORD *)(v6 + 444) = 0;
*(_DWORD *)(v6 + 448) = 0;
*(_DWORD *)(v6 + 452) = 0;
*(_DWORD *)v6 = &off_C86768;
*(_BYTE *)(v6 + 456) = 0;
*(_DWORD *)(v6 + 264) = &off_C86A10;
*(_DWORD *)(v6 + 460) = 0;
*(_DWORD *)(v6 + 268) = &off_C86A48;
*(_DWORD *)(v6 + 464) = 0;
*(_DWORD *)(v6 + 272) = &off_C86A54;
*(_BYTE *)(v6 + 468) = 0;
*(_DWORD *)(v6 + 276) = &off_C86A64;
*(_BYTE *)(v6 + 469) = 0;
*(_DWORD *)(v6 + 280) = &off_C86A78;
*(_BYTE *)(v6 + 470) = 0;
*(_DWORD *)(v6 + 316) = &off_C86A90;
*(_BYTE *)(v6 + 471) = 0;
*(_DWORD *)(v6 + 332) = &off_C86AD0;
*(_DWORD *)(v6 + 440) = &off_C86AE0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v6 + 472));
*(_DWORD *)(v6 + 508) = 0;
*(_DWORD *)(v6 + 512) = 0;
*(_DWORD *)(v6 + 480) = 0;
*(_DWORD *)(v6 + 484) = 0;
*(_DWORD *)(v6 + 488) = 0;
*(_DWORD *)(v6 + 492) = -1;
*(_BYTE *)(v6 + 496) = 0;
*(_BYTE *)(v6 + 497) = 0;
*(_DWORD *)(v6 + 500) = -1;
*(_BYTE *)(v6 + 504) = 0;
*(_BYTE *)(v6 + 516) = 0;
*(_DWORD *)v6 = &off_CD9F50;
*(_DWORD *)(v6 + 524) = 0;
*(_DWORD *)(v6 + 264) = &off_CDA1FC;
*(_DWORD *)(v6 + 528) = 0;
*(_DWORD *)(v6 + 268) = &off_CDA234;
*(_DWORD *)(v6 + 536) = 0;
*(_DWORD *)(v6 + 272) = &off_CDA240;
*(_DWORD *)(v6 + 540) = 0;
*(_DWORD *)(v6 + 276) = &off_CDA250;
*(_DWORD *)(v6 + 544) = -1;
*(_DWORD *)(v6 + 280) = &off_CDA264;
*(_DWORD *)(v6 + 548) = 0;
*(_DWORD *)(v6 + 316) = &off_CDA27C;
*(_BYTE *)(v6 + 552) = 0;
*(_DWORD *)(v6 + 332) = &off_CDA2BC;
*(_BYTE *)(v6 + 553) = 0;
*(_DWORD *)(v6 + 440) = &off_CDA2CC;
*(_BYTE *)(v6 + 554) = 0;
*(_DWORD *)(v6 + 520) = &off_CDA2F0;
LOWORD(v10) = a4;
BYTE2(v10) = BYTE2(a4);
if ( HSVLiveOverlay::init(v6, a1, a2, a3, v10) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
v7 = *(_DWORD *)v6;
v8 = v6;
v6 = 0;
(*(void (__fastcall **)(int))(v7 + 8))(v8);
}
return v6;
}