//
// SetupTriggerPopup::createValueControlWArrows from 0x9e9890 to 0x9e99f4 (356 bytes)
//
// 1 xrefs:
// > ??> @ 0xa81c8
//
// 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 SetupTriggerPopup::createValueControlWArrows(
SetupTriggerPopup *a1,
unsigned int a2,
float a3,
__int64 a4,
const cocos2d::CCPoint *a5)
{
float v8; // s3
float v9; // s4
void *v10; // x0
unsigned int *v12; // x2
int v13; // w1
__int64 v15; // [xsp+88h] [xbp+58h] BYREF
cocos2d::CCPoint v16; // [xsp+90h] [xbp+60h] BYREF
cocos2d::CCPoint v17; // 0:s0.4,4:s1.4
sub_D18D28(&v15);
cocos2d::CCPoint::CCPoint(&v16, a5);
v17.y = 0.0;
v17.x = a3;
SetupTriggerPopup::createValueControlAdvanced(
a1,
a2,
v17,
0.0,
v8,
v9,
(std::string)&v15,
&v16,
Float,
Int,
6,
1u,
0,
0,
0,
2,
0);
v10 = (void *)(v15 - 24);
if ( (__int64 *)(v15 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v12 = (unsigned int *)(v15 - 8);
do
v13 = __ldaxr(v12);
while ( __stlxr(v13 - 1, v12) );
}
else
{
v13 = *(_DWORD *)(v15 - 8);
*(_DWORD *)(v15 - 8) = v13 - 1;
}
if ( v13 <= 0 )
operator delete(v10);
}
return _stack_chk_guard;
}