//
// SoundPackDescPopup::textChanged from 0x785b50 to 0x785c54 (260 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SoundPackDescPopup::textChanged @ 0x785c6c
//
// 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:59:32 +0000
//
int __fastcall SoundPackDescPopup::textChanged(int this, CCTextInputNode *a2)
{
int v2; // r7
_DWORD *v3; // r4
int v4; // r3
int v5; // r0
int v6; // r1
int v7; // r1
int v8; // r2
int v9; // [sp+Ch] [bp-2Ch]
_BYTE v10[4]; // [sp+10h] [bp-28h] BYREF
int v11; // [sp+14h] [bp-24h]
int v12[3]; // [sp+1Ch] [bp-1Ch] BYREF
int v13[3]; // [sp+28h] [bp-10h] BYREF
v2 = this;
if ( *(CCTextInputNode **)(this + 720) == a2 )
{
CCTextInputNode::getString((CCTextInputNode *)v10, (int)a2);
v3 = *(_DWORD **)(*(_DWORD *)(v2 + 720) + 436);
if ( v3 )
{
if ( (v10[0] & 1) != 0 )
v4 = v11;
else
v4 = (int)v10[0] >> 1;
if ( v4 )
{
std::string::basic_string(v13, (int)v10);
TextArea::fitString((int)v3, (int)v13, *(float *)(v2 + 724), 74.0, 0.35, 0.0);
std::string::~string((int)v13);
v5 = (int)v3;
v6 = 0xFFFFFF;
}
else
{
(*(void (__fastcall **)(_DWORD *, int, int))(*v3 + 80))(v3, 1065353216, v10[0] << 31);
v3[131] = *(_DWORD *)(v2 + 724);
memset(v12, 0, sizeof(v12));
std::string::__init(v12, "Describe this sound pack", 0x18u);
TextArea::setString((int)v3, v12);
std::string::~string((int)v12);
LOWORD(v9) = 27843;
BYTE2(v9) = 65;
v5 = (int)v3;
v6 = v9;
}
TextArea::colorAllCharactersTo(v5, v6);
CCTextInputNode::updateBlinkLabel(*(CCTextInputNode **)(v2 + 720), v7, v8);
}
return std::string::~string((int)v10);
}
return this;
}