//
// SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim from 0x1004dbfe0 to 0x1004dc19b (443 bytes)
//
// 26 xrefs:
// > SetupAreaAnimTriggerPopup::init @ 0x1004da75d
// > SetupAreaAnimTriggerPopup::init @ 0x1004da7f4
// > SetupAreaAnimTriggerPopup::init @ 0x1004da89f
// > SetupAreaAnimTriggerPopup::init @ 0x1004da940
// > SetupAreaAnimTriggerPopup::init @ 0x1004da9ec
// > SetupAreaAnimTriggerPopup::init @ 0x1004daa8d
// > SetupAreaAnimTriggerPopup::init @ 0x1004dab31
// > SetupAreaAnimTriggerPopup::init @ 0x1004dabcd
// > SetupAreaAnimTriggerPopup::init @ 0x1004dad35
// > SetupAreaAnimTriggerPopup::init @ 0x1004db0ce
// > SetupAreaAnimTriggerPopup::init @ 0x1004db16a
// > SetupAreaAnimTriggerPopup::init @ 0x1004db210
// > SetupAreaAnimTriggerPopup::init @ 0x1004db2ac
// > SetupAreaAnimTriggerPopup::init @ 0x1004db3e9
// > SetupAreaAnimTriggerPopup::init @ 0x1004db488
// > SetupAreaAnimTriggerPopup::init @ 0x1004db524
// > SetupAreaAnimTriggerPopup::init @ 0x1004db5c3
// > SetupAreaAnimTriggerPopup::init @ 0x1004db65f
// > SetupAreaAnimTriggerPopup::init @ 0x1004db755
// > SetupAreaAnimTriggerPopup::init @ 0x1004db9ca
// > SetupAreaAnimTriggerPopup::init @ 0x1004dba66
// > SetupAreaAnimTriggerPopup::init @ 0x1004dbb0c
// > SetupAreaAnimTriggerPopup::init @ 0x1004dbba8
// > SetupAreaAnimTriggerPopup::init @ 0x1004dbc54
// > SetupAreaAnimTriggerPopup::init @ 0x1004dbcff
// > SetupAreaAnimTriggerPopup::init @ 0x1004dbd9b
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
SetupTriggerPopup *a1,
unsigned int a2,
__int128 *a3,
double *a4,
unsigned __int8 a5,
InputValueType a6,
double a7,
float a8,
float a9,
int a10,
char a11,
unsigned int a12,
int a13,
int a14)
{
cocos2d::CCSprite *v17; // r15
CCMenuItemSpriteExtra *v18; // r12
const cocos2d::CCPoint *m_buttonMenu; // r15
double v20; // [rsp+40h] [rbp-70h] BYREF
unsigned __int64 v21; // [rsp+48h] [rbp-68h] BYREF
__int128 v22; // [rsp+50h] [rbp-60h] BYREF
void *__p; // [rsp+60h] [rbp-50h]
__int64 v24; // [rsp+70h] [rbp-40h] BYREF
float v25; // [rsp+78h] [rbp-38h]
float v26; // [rsp+7Ch] [rbp-34h]
double *v27; // [rsp+80h] [rbp-30h]
double v28; // 0:xmm0_8.8
*(float *)&v27 = a9;
v25 = a8;
v26 = *(float *)&a7;
if ( (*(_BYTE *)a3 & 1) != 0 )
{
sub_100006B70(&v22, *((const void **)a3 + 2), *((_QWORD *)a3 + 1), a7);
}
else
{
__p = *((void **)a3 + 2);
v22 = *a3;
}
sub_10028CC60(&v24, a4);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
a2,
(__int64)&v22,
(float *)&v24,
a5,
a6,
v26,
v25,
*(float *)&v27,
a10,
a11,
a12,
a13,
a14,
2,
0);
v27 = a4;
if ( (v22 & 1) != 0 )
operator delete(__p);
v17 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_resetBtn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, float))v17->setScale)(v17, 0.80000001);
v18 = CCMenuItemSpriteExtra::create(
v17,
nullptr,
a1,
(cocos2d::SEL_MenuHandler)(unsigned __int64)SetupAreaAnimTriggerPopup::onDeactivateAnimValue);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v18->setTag)(v18, a2);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v18);
m_buttonMenu = (const cocos2d::CCPoint *)a1->m_buttonMenu;
sub_10028CBE0((float *)&v21, 100.0, 0.0);
sub_10028CCE0(&v20, (unsigned __int64 *)v27, &v21);
*(cocos2d::CCPoint *)&v28 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v24, m_buttonMenu);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64 *, double))v18->setPosition)(v18, &v24, v28);
SetupTriggerPopup::addObjectToPage(a1, v18, a12);
if ( a13 > 0 )
SetupTriggerPopup::addObjectToGroup(a1, v18, a13);
}