//
// SetupInstantCountPopup::textChanged from 0xa9ebf0 to 0xa9ed60 (368 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupInstantCountPopup::textChanged @ 0xa9ed64
// > ??> @ 0x4fd38
// > ??> @ 0x14a02e8
//
// 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 13:00:47 +0000
//
__int64 __fastcall SetupInstantCountPopup::textChanged(SetupInstantCountPopup *this, CCTextInputNode *a2)
{
char *v4; // x21
char *v5; // x21
char *v6; // x21
__int64 v8[2]; // [xsp+40h] [xbp+40h] BYREF
char *v9; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 744) )
{
if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) )
{
if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
CCTextInputNode::getString(a2, v8);
if ( (v8[0] & 1) != 0 )
{
v6 = v9;
*((_DWORD *)this + 262) = atoi(v9);
operator delete(v6);
}
else
{
*((_DWORD *)this + 262) = atoi((const char *)v8 + 1);
}
SetupInstantCountPopup::updateTargetCount(this);
}
else
{
CCTextInputNode::getString(a2, v8);
if ( (v8[0] & 1) != 0 )
{
v4 = v9;
*((_DWORD *)this + 261) = atoi(v9);
operator delete(v4);
}
else
{
*((_DWORD *)this + 261) = atoi((const char *)v8 + 1);
}
SetupInstantCountPopup::updateTargetID(this);
}
}
else
{
CCTextInputNode::getString(a2, v8);
if ( (v8[0] & 1) != 0 )
{
v5 = v9;
*((_DWORD *)this + 260) = atoi(v9);
operator delete(v5);
}
else
{
*((_DWORD *)this + 260) = atoi((const char *)v8 + 1);
}
SetupInstantCountPopup::updateItemID((__int64)this);
SetupTriggerPopup::updateEditorLabel(this);
}
}
return _stack_chk_guard;
}