//
// sub_10003DDB8 from 0x10003ddb8 to 0x10003df98 (480 bytes)
//
// 26 xrefs:
// > SetupAreaAnimTriggerPopup::init @ 0x10003c890
// > SetupAreaAnimTriggerPopup::init @ 0x10003c914
// > SetupAreaAnimTriggerPopup::init @ 0x10003c99c
// > SetupAreaAnimTriggerPopup::init @ 0x10003ca24
// > SetupAreaAnimTriggerPopup::init @ 0x10003cab0
// > SetupAreaAnimTriggerPopup::init @ 0x10003cb3c
// > SetupAreaAnimTriggerPopup::init @ 0x10003cbc0
// > SetupAreaAnimTriggerPopup::init @ 0x10003cc44
// > SetupAreaAnimTriggerPopup::init @ 0x10003cd50
// > SetupAreaAnimTriggerPopup::init @ 0x10003cfcc
// > SetupAreaAnimTriggerPopup::init @ 0x10003d16c
// > SetupAreaAnimTriggerPopup::init @ 0x10003d1f4
// > SetupAreaAnimTriggerPopup::init @ 0x10003d27c
// > SetupAreaAnimTriggerPopup::init @ 0x10003d304
// > SetupAreaAnimTriggerPopup::init @ 0x10003d38c
// > SetupAreaAnimTriggerPopup::init @ 0x10003d414
// > SetupAreaAnimTriggerPopup::init @ 0x10003d498
// > SetupAreaAnimTriggerPopup::init @ 0x10003d55c
// > SetupAreaAnimTriggerPopup::init @ 0x10003d5e8
// > SetupAreaAnimTriggerPopup::init @ 0x10003d674
// > SetupAreaAnimTriggerPopup::init @ 0x10003d700
// > SetupAreaAnimTriggerPopup::init @ 0x10003d814
// > SetupAreaAnimTriggerPopup::init @ 0x10003d8a0
// > SetupAreaAnimTriggerPopup::init @ 0x10003d92c
// > SetupAreaAnimTriggerPopup::init @ 0x10003d9b8
// > SetupAreaAnimTriggerPopup::init @ 0x10003da44
//
// 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:57:35 +0000
//
__int64 __fastcall sub_10003DDB8(
__int64 a1,
__int64 a2,
__int64 a3,
double *a4,
__int64 a5,
__int64 a6,
__int64 a7,
__int64 a8,
float a9,
float a10,
float a11,
unsigned int a12,
int a13,
unsigned int a14)
{
__int64 v24; // x24
__int64 v25; // x24
__int64 v26; // x23
__n128 v27; // q0
__int64 result; // x0
__int128 v29; // [xsp+0h] [xbp-C0h]
char v30; // [xsp+10h] [xbp-B0h]
float32x2_t v31; // [xsp+18h] [xbp-A8h] BYREF
float32x2_t v32; // [xsp+20h] [xbp-A0h] BYREF
__int64 v33; // [xsp+28h] [xbp-98h] BYREF
void *__p[2]; // [xsp+30h] [xbp-90h] BYREF
__int64 v35; // [xsp+40h] [xbp-80h]
if ( *(char *)(a3 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a3, *(_QWORD *)(a3 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a3;
v35 = *(_QWORD *)(a3 + 16);
}
sub_1000262F4(&v33, a4);
v30 = 0;
HIDWORD(v29) = 2;
LODWORD(v29) = a12;
*(_QWORD *)((char *)&v29 + 4) = __PAIR64__(a14, a13);
SetupTriggerPopup::createValueControlAdvanced(
a1,
a2,
__p,
&v33,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v29,
*((_QWORD *)&v29 + 1),
v30);
if ( SHIBYTE(v35) < 0 )
operator delete(__p[0]);
v24 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_resetBtn_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, 0.8);
v25 = CCMenuItemSpriteExtra::create(v24, 0, a1, sub_10003DFB4, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 72LL))(v25, a2);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v25);
v26 = *(_QWORD *)(a1 + 552);
sub_1000262BC((float *)&v31, 100.0, 0.0);
v27.n128_u64[0] = (unsigned __int64)sub_100026318((float32x2_t *)a4, &v31, &v32);
cocos2d::CCNode::convertToNodeSpace(&v33, v26, &v32, v27);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL))(v25, &v33);
result = SetupTriggerPopup::addObjectToPage(a1, v25, a12);
if ( a13 >= 1 )
return SetupTriggerPopup::addObjectToGroup(a1, v25, (unsigned int)a13);
return result;
}