//
// ConfigureValuePopup::create from 0x100700e30 to 0x1007010da (682 bytes)
//
// 6 xrefs:
// > SetupTriggerPopup::onEaseRate @ 0x100223ff5
// > SetupTriggerPopup::onCustomEaseRate @ 0x1002250ff
// > SetGroupIDLayer::onGroupIDOptions @ 0x1002ff589
// > sub_1004B6AD0 @ 0x1004b6b25
// > sub_10050B040 @ 0x10050b095
// > sub_100741F60 @ 0x100741fb5
//
// This function is hookable on this platform (idp: pc, 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 12:35:58 +0000
//
char *__fastcall ConfigureValuePopup::create(
__int64 a1,
__int128 *a2,
__int128 *a3,
unsigned int a4,
float a5,
float a6,
float a7)
{
char *v9; // rbx
char v10; // r14
__int128 v12; // [rsp+0h] [rbp-70h] BYREF
void *v13; // [rsp+10h] [rbp-60h]
__int128 v14; // [rsp+20h] [rbp-50h] BYREF
void *__p; // [rsp+30h] [rbp-40h]
float v16; // [rsp+3Ch] [rbp-34h]
float v17; // [rsp+40h] [rbp-30h]
float v18; // [rsp+44h] [rbp-2Ch]
v16 = a7;
v17 = a6;
v18 = a5;
v9 = (char *)operator new(0x2C0u);
cocos2d::CCLayerColor::CCLayerColor((__int64)v9);
*(_QWORD *)v9 = off_100B4FB70;
*((_QWORD *)v9 + 40) = off_100B500C0;
*((_QWORD *)v9 + 41) = &off_100B50130;
*((_QWORD *)v9 + 42) = off_100B50148;
*((_QWORD *)v9 + 43) = off_100B50168;
*((_QWORD *)v9 + 44) = off_100B50190;
*((_QWORD *)v9 + 51) = off_100B501C0;
*((_QWORD *)v9 + 54) = off_100B50240;
*((_QWORD *)v9 + 68) = off_100B50260;
*(_OWORD *)(v9 + 552) = 0;
*(_OWORD *)(v9 + 561) = 0;
*(_OWORD *)(v9 + 584) = 0;
sub_1002782A0((_QWORD *)v9 + 75);
*((_OWORD *)v9 + 38) = 0;
*((_QWORD *)v9 + 78) = 0;
*((_DWORD *)v9 + 158) = -1;
*((_WORD *)v9 + 318) = 0;
*((_DWORD *)v9 + 160) = -1;
v9[644] = 0;
*((_QWORD *)v9 + 81) = 0;
v9[656] = 0;
*(_QWORD *)v9 = off_100B96600;
*((_QWORD *)v9 + 40) = off_100B96B60;
*((_QWORD *)v9 + 41) = &off_100B96BD0;
*((_QWORD *)v9 + 42) = off_100B96BE8;
*((_QWORD *)v9 + 43) = off_100B96C08;
*((_QWORD *)v9 + 44) = off_100B96C30;
*((_QWORD *)v9 + 51) = off_100B96C60;
*((_QWORD *)v9 + 54) = off_100B96CE0;
*((_QWORD *)v9 + 68) = off_100B96D00;
*((_DWORD *)v9 + 165) = 0;
*((_WORD *)v9 + 338) = 0;
*(_OWORD *)(v9 + 680) = 0;
*((_QWORD *)v9 + 87) = 0;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v12, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
if ( (*(_BYTE *)a3 & 1) != 0 )
goto LABEL_3;
}
else
{
v13 = *((void **)a2 + 2);
v12 = *a2;
if ( (*(_BYTE *)a3 & 1) != 0 )
{
LABEL_3:
sub_10001AD30(&v14, *((const void **)a3 + 2), *((_QWORD *)a3 + 1));
goto LABEL_6;
}
}
__p = *((void **)a3 + 2);
v14 = *a3;
LABEL_6:
v10 = ConfigureValuePopup::init(v9, a1, &v12, &v14, a4, v18, v17, v16);
if ( (v14 & 1) == 0 )
{
if ( (v12 & 1) == 0 )
goto LABEL_8;
LABEL_11:
operator delete(v13);
if ( v10 )
goto LABEL_9;
LABEL_12:
(*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 16LL))(v9);
return nullptr;
}
operator delete(__p);
if ( (v12 & 1) != 0 )
goto LABEL_11;
LABEL_8:
if ( !v10 )
goto LABEL_12;
LABEL_9:
cocos2d::CCObject::autorelease((__int64)v9);
return v9;
}