//
// SetupPulsePopup::textChanged from 0x5ec624 to 0x5ec914 (752 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetupPulsePopup::textChanged @ 0x5ec920
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:23 +0000
//
char *__fastcall SetupPulsePopup::textChanged(char *this, CCTextInputNode *a2)
{
int v2; // r4
char *v4; // r0
int v5; // r3
char *v6; // r0
int v7; // r3
int v8; // r2
char *v9; // r0
float v10; // s15
float v11; // s15
Slider *v12; // r0
float v13; // s15
char *v14; // r0
float v15; // s15
float v16; // s15
char *v17; // r0
float v18; // s15
float v19; // s15
float v20; // s15
char *v21; // r0
unsigned int v22; // r7
char v23; // r7
int v24; // r0
int v25; // r2
char *v26; // r0
size_t v27; // r7
int v28; // r0
unsigned __int8 v29; // [sp+0h] [bp-10h] BYREF
_BYTE v30[7]; // [sp+1h] [bp-Fh] BYREF
char *v31; // [sp+8h] [bp-8h]
v2 = (int)this;
if ( *(this + 568) )
return this;
this = (char *)(*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
if ( this == &byte_9[1] )
{
CCTextInputNode::getString((CCTextInputNode *)&v29, (int)a2);
if ( (v29 & 1) != 0 )
v17 = v31;
else
v17 = v30;
v18 = atof(v17);
*(float *)(v2 + 860) = v18;
std::string::~string((int)&v29);
v19 = *(float *)(v2 + 860);
if ( v19 <= 0.0 )
v19 = 0.0;
*(float *)(v2 + 860) = v19;
SetupPulsePopup::updateFadeOutTime((_DWORD *)v2);
v12 = *(Slider **)(v2 + 744);
v13 = *(float *)(v2 + 860);
goto LABEL_47;
}
if ( (int)this > 10 )
{
if ( this == &byte_9[5] )
{
CCTextInputNode::getString((CCTextInputNode *)&v29, *(_DWORD *)(v2 + 904));
if ( (v29 & 1) != 0 )
v26 = v31;
else
v26 = v30;
v27 = strlen(v26);
this = (char *)std::string::~string((int)&v29);
if ( v27 != 6 )
return this;
CCTextInputNode::getString((CCTextInputNode *)&v29, *(_DWORD *)(v2 + 904));
v28 = ColorSelectPopup::hexToColor(&v29);
*(_WORD *)(v2 + 772) = v28;
*(_BYTE *)(v2 + 774) = BYTE2(v28);
std::string::~string((int)&v29);
}
else
{
if ( (int)this >= 14 )
{
if ( this == (_BYTE *)&word_32 + 1 )
{
CCTextInputNode::getString((CCTextInputNode *)&v29, (int)a2);
if ( (v29 & 1) != 0 )
v6 = v31;
else
v6 = v30;
*(_DWORD *)(v2 + 840) = atoi(v6);
std::string::~string((int)&v29);
v7 = *(_DWORD *)(v2 + 840);
v8 = 999;
if ( v7 < 1 )
v7 = 1;
if ( *(_DWORD *)(v2 + 868) == 1 )
v8 = 9999;
if ( v8 > v7 )
*(_DWORD *)(v2 + 840) = v7;
else
*(_DWORD *)(v2 + 840) = v8;
SetupPulsePopup::updateTargetID((SetupPulsePopup *)v2);
return (char *)SetupTriggerPopup::updateEditorLabel((SetupTriggerPopup *)v2);
}
return this;
}
CCTextInputNode::getString((CCTextInputNode *)&v29, (int)a2);
if ( (v29 & 1) != 0 )
v21 = v31;
else
v21 = v30;
v22 = atoi(v21);
std::string::~string((int)&v29);
v23 = __usat(8u, v22);
v24 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
switch ( v24 )
{
case 12:
*(_BYTE *)(v2 + 773) = v23;
break;
case 13:
*(_BYTE *)(v2 + 774) = v23;
break;
case 11:
*(_BYTE *)(v2 + 772) = v23;
break;
}
}
return (char *)SetupPulsePopup::selectColor(v2, *(_DWORD *)(v2 + 772), v25);
}
if ( this == byte_8 )
{
CCTextInputNode::getString((CCTextInputNode *)&v29, (int)a2);
if ( (v29 & 1) != 0 )
v9 = v31;
else
v9 = v30;
v10 = atof(v9);
*(float *)(v2 + 852) = v10;
std::string::~string((int)&v29);
v11 = *(float *)(v2 + 852);
if ( v11 <= 0.0 )
v11 = 0.0;
*(float *)(v2 + 852) = v11;
SetupPulsePopup::updateFadeInTime((_DWORD *)v2);
v12 = *(Slider **)(v2 + 736);
v13 = *(float *)(v2 + 852);
goto LABEL_47;
}
if ( (int)this > 8 )
{
CCTextInputNode::getString((CCTextInputNode *)&v29, (int)a2);
if ( (v29 & 1) != 0 )
v14 = v31;
else
v14 = v30;
v15 = atof(v14);
*(float *)(v2 + 856) = v15;
std::string::~string((int)&v29);
v16 = *(float *)(v2 + 856);
if ( v16 <= 0.0 )
v16 = 0.0;
*(float *)(v2 + 856) = v16;
SetupPulsePopup::updateHoldTime((_DWORD *)v2);
v12 = *(Slider **)(v2 + 740);
v13 = *(float *)(v2 + 856);
LABEL_47:
v20 = v13 / 10.0;
if ( v20 >= 1.0 )
{
v20 = 1.0;
}
else if ( v20 <= 0.0 )
{
v20 = 0.0;
}
return (char *)Slider::setValue(v12, v20);
}
if ( this == &byte_5 )
{
CCTextInputNode::getString((CCTextInputNode *)&v29, (int)a2);
if ( (v29 & 1) != 0 )
v4 = v31;
else
v4 = v30;
*(_DWORD *)(v2 + 844) = atoi(v4);
std::string::~string((int)&v29);
v5 = *(_DWORD *)(v2 + 844) & ~(*(int *)(v2 + 844) >> 31);
if ( v5 > 999 )
*(_DWORD *)(v2 + 844) = 999;
else
*(_DWORD *)(v2 + 844) = v5;
return (char *)SetupPulsePopup::updateCopyColor((_DWORD *)v2);
}
return this;
}