//
// SetupRandTriggerPopup::textChanged from 0x100262a20 to 0x100262b9c (380 bytes)
//
// 2 xrefs:
// > sub_100262CA4 @ 0x100262ca8
// > ??> @ 0x100911490
//
// 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 11:01:39 +0000
//
void __fastcall SetupRandTriggerPopup::textChanged(__int64 a1, __int64 a2)
{
double v4; // d8
char *v5; // x20
char *v6; // x20
char *v7; // x20
float v8; // s0
__int64 v9; // x0
char *v10[2]; // [xsp+8h] [xbp-38h] BYREF
char v11; // [xsp+1Fh] [xbp-21h]
if ( (*(_BYTE *)(a1 + 744) & 1) == 0 )
{
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
CCTextInputNode::getString(a2, v10);
if ( v11 < 0 )
{
v5 = v10[0];
*(_DWORD *)(a1 + 1056) = atoi(v10[0]);
operator delete(v5);
}
else
{
*(_DWORD *)(a1 + 1056) = atoi((const char *)v10);
}
sub_100262B9C(a1);
LABEL_15:
sub_1001AD6E0(a1);
return;
}
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 5 )
{
CCTextInputNode::getString(a2, v10);
if ( v11 < 0 )
{
v6 = v10[0];
*(_DWORD *)(a1 + 1060) = atoi(v10[0]);
operator delete(v6);
}
else
{
*(_DWORD *)(a1 + 1060) = atoi((const char *)v10);
}
sub_100262C20(a1);
goto LABEL_15;
}
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 4 )
{
CCTextInputNode::getString(a2, v10);
if ( v11 < 0 )
{
v7 = v10[0];
v4 = atof(v10[0]);
operator delete(v7);
}
else
{
v4 = atof((const char *)v10);
}
v8 = v4;
v9 = sub_1003065B0("%.04f", v8);
*(float *)(a1 + 1032) = cocos2d::CCString::floatValue(v9);
sub_1002629B8(a1);
}
}
}