//
// SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim from 0x1404125d0 to 0x1404127be (494 bytes)
//
// 27 xrefs:
// > SetupAreaAnimTriggerPopup::init @ 0x140411150
// > SetupAreaAnimTriggerPopup::init @ 0x1404111e0
// > SetupAreaAnimTriggerPopup::init @ 0x14041127f
// > SetupAreaAnimTriggerPopup::init @ 0x1404112ff
// > SetupAreaAnimTriggerPopup::init @ 0x14041139e
// > SetupAreaAnimTriggerPopup::init @ 0x14041141e
// > SetupAreaAnimTriggerPopup::init @ 0x1404114b7
// > SetupAreaAnimTriggerPopup::init @ 0x14041153b
// > SetupAreaAnimTriggerPopup::init @ 0x14041168c
// > SetupAreaAnimTriggerPopup::init @ 0x1404119b8
// > SetupAreaAnimTriggerPopup::init @ 0x140411b88
// > SetupAreaAnimTriggerPopup::init @ 0x140411c31
// > SetupAreaAnimTriggerPopup::init @ 0x140411cb2
// > SetupAreaAnimTriggerPopup::init @ 0x140411d51
// > SetupAreaAnimTriggerPopup::init @ 0x140411dd1
// > SetupAreaAnimTriggerPopup::init @ 0x140411e82
// > SetupAreaAnimTriggerPopup::init @ 0x140411f0a
// > SetupAreaAnimTriggerPopup::init @ 0x140411fb3
// > SetupAreaAnimTriggerPopup::init @ 0x140412039
// > SetupAreaAnimTriggerPopup::init @ 0x1404120df
// > SetupAreaAnimTriggerPopup::init @ 0x140412163
// > SetupAreaAnimTriggerPopup::init @ 0x1404122b9
// > SetupAreaAnimTriggerPopup::init @ 0x14041234d
// > SetupAreaAnimTriggerPopup::init @ 0x1404123d3
// > SetupAreaAnimTriggerPopup::init @ 0x140412465
// > SetupAreaAnimTriggerPopup::init @ 0x1404124e9
// > ??> @ 0x1406d8ccc
//
// 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
//
// Hidden C++ exception states: #wind=2
void __fastcall SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
SetupTriggerPopup *a1,
int a2,
__int64 a3,
__int64 a4,
int a5,
int a6,
int a7,
__int64 a8,
__int64 a9,
int a10,
int a11,
__int64 a12,
int a13)
{
int v17; // ebx
int v18; // eax
struct cocos2d::CCSprite *v19; // rbx
CCMenuItemSpriteExtra *v20; // r14
float v21; // xmm0_4
CCMenuItemSpriteExtra_vtbl *v22; // rbx
struct cocos2d::CCPoint v23; // rax
cocos2d::CCArray *GroupContainer; // rax
char v25; // [rsp+78h] [rbp-90h]
_BYTE v26[8]; // [rsp+80h] [rbp-88h] BYREF
cocos2d::CCPoint v27; // [rsp+88h] [rbp-80h] BYREF
struct cocos2d::CCPoint v28; // [rsp+90h] [rbp-78h] BYREF
_QWORD v29[5]; // [rsp+98h] [rbp-70h] BYREF
v29[4] = a3;
v17 = sub_14003BDB0((__int64)v29, a3);
cocos2d::CCPoint::CCPoint(&v27);
v25 = 0;
SetupTriggerPopup::createValueControlAdvanced(
(_DWORD)a1,
a2,
v17,
v18,
a5,
0,
a7,
6,
0,
a10,
a11,
0,
a13,
1,
2,
v25,
v29);
v19 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_resetBtn_001.png");
((void (__fastcall *)(struct cocos2d::CCSprite *))v19->setScale_0)(v19);
v20 = CCMenuItemSpriteExtra::create(
v19,
nullptr,
a1,
(cocos2d::SEL_MenuHandler *)SetupAreaAnimTriggerPopup::onDeactivateAnimValue);
v20->setTag(v20, a2);
v21 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)(
a1->m_buttonMenu,
v20);
cocos2d::CCPoint::CCPoint(v21, 100.0);
cocos2d::CCPoint::operator+(a4, v26);
v22 = v20->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v23 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v28);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v22->setPosition_0)(v20, v23);
SetupTriggerPopup::addObjectToPage(a1, v20, 0);
if ( a13 > 0 )
{
GroupContainer = SetupTriggerPopup::getGroupContainer(a1, a13);
cocos2d::CCArray::addObject(GroupContainer, v20);
}
sub_14003A830(a3);
}