//
// ConfigureValuePopup::create from 0x90d604 to 0x90d8d4 (720 bytes)
//
// 8 xrefs:
// > GJRotateCommandLayer::onEasingRate @ 0x9259b4
// > SetupCameraOffsetTrigger::onEasingRate @ 0x96737c
// > SetGroupIDLayer::onGroupIDOptions @ 0x975884
// > SetupCameraRotatePopup::onEasingRate @ 0x9abc1c
// > SetupTriggerPopup::onEaseRate @ 0x9e3bc8
// > SetupTriggerPopup::onCustomEaseRate @ 0x9e3dd8
// > SetupMGTrigger::onEasingRate @ 0xa1f468
// > ??> @ 0x80c40
//
// 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
//
__int64 __fastcall ConfigureValuePopup::create(
__int64 a1,
float a2,
float a3,
float a4,
__int64 a5,
__int64 a6,
unsigned int a7)
{
__int64 v12; // x19
long double v13; // q0
long double v14; // q1
long double v15; // q2
int v16; // w22
void *v17; // x0
char *v18; // x0
__int64 v19; // x1
__int64 v20; // x0
unsigned int *v22; // x1
int v23; // w2
unsigned int *v24; // x1
int v25; // w2
const char *v26; // [xsp+68h] [xbp+68h] BYREF
__int64 v27; // [xsp+70h] [xbp+70h] BYREF
v12 = operator new(0x2B0u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v12);
*(_DWORD *)(v12 + 616) = -1;
*(_DWORD *)(v12 + 624) = -1;
*(_QWORD *)(v12 + 544) = 0;
*(_QWORD *)(v12 + 552) = 0;
*(_QWORD *)(v12 + 560) = 0;
*(_BYTE *)(v12 + 568) = 0;
*(_QWORD *)(v12 + 576) = 0;
*(_DWORD *)(v12 + 584) = 0;
*(_BYTE *)(v12 + 588) = 0;
*(_QWORD *)(v12 + 592) = 0;
*(_QWORD *)(v12 + 600) = 0;
*(_QWORD *)(v12 + 608) = 0;
*(_BYTE *)(v12 + 620) = 0;
*(_BYTE *)(v12 + 621) = 0;
*(_BYTE *)(v12 + 628) = 0;
*(_DWORD *)(v12 + 640) = 0;
*(_QWORD *)v12 = &off_11A9A10;
*(_QWORD *)(v12 + 320) = off_11A9F40;
*(_QWORD *)(v12 + 328) = &off_11A9FB0;
*(_QWORD *)(v12 + 336) = &off_11A9FC8;
*(_QWORD *)(v12 + 344) = &off_11A9FE8;
*(_QWORD *)(v12 + 352) = off_11AA008;
*(_QWORD *)(v12 + 408) = &off_11AA030;
*(_QWORD *)(v12 + 432) = &off_11AA0B0;
*(_QWORD *)(v12 + 632) = &off_11AA0D0;
*(_BYTE *)(v12 + 656) = 0;
*(_BYTE *)(v12 + 657) = 0;
*(_QWORD *)(v12 + 664) = 0;
*(_QWORD *)(v12 + 672) = 0;
*(_QWORD *)(v12 + 680) = 0;
sub_D18D28(&v26);
*(__n128 *)&v13 = sub_D18D28(&v27);
*(float *)&v13 = a2;
*(float *)&v14 = a3;
*(float *)&v15 = a4;
v16 = (unsigned __int8)ConfigureValuePopup::init(v12, a1, &v26, &v27, (cocos2d::CCNode *)a7, v13, v14, v15);
v17 = (void *)(v27 - 24);
if ( (__int64 *)(v27 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v24 = (unsigned int *)(v27 - 8);
do
v25 = __ldaxr(v24);
while ( __stlxr(v25 - 1, v24) );
}
else
{
v25 = *(_DWORD *)(v27 - 8);
*(_DWORD *)(v27 - 8) = v25 - 1;
}
if ( v25 <= 0 )
operator delete(v17);
}
v18 = (char *)(v26 - 24);
if ( v26 - 24 != (const char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v22 = (unsigned int *)(v26 - 8);
do
v23 = __ldaxr(v22);
while ( __stlxr(v23 - 1, v22) );
}
else
{
v23 = *((_DWORD *)v26 - 2);
*((_DWORD *)v26 - 2) = v23 - 1;
}
if ( v23 <= 0 )
operator delete(v18);
}
if ( v16 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v12);
}
else
{
v19 = *(_QWORD *)v12;
v20 = v12;
v12 = 0;
(*(void (__fastcall **)(__int64))(v19 + 16))(v20);
}
return v12;
}