//
// MoveStepPopup::textChanged from 0x1402c9980 to 0x1402c9ac2 (322 bytes)
//
// 2 xrefs:
// > ??> @ 0x140766a98
// > ??> @ 0x14091dc84
//
// This function is hookable on this platform (idp: pc, 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:29:23 +0000
//
void __fastcall MoveStepPopup::textChanged(__int64 a1, _QWORD *a2)
{
_BYTE *v4; // rax
size_t v5; // r8
void *v6; // rcx
__int64 v7; // rbx
struct cocos2d::CCObject *v8; // rax
unsigned int v9; // eax
void *Block[2]; // [rsp+38h] [rbp-40h] BYREF
__int128 v11; // [rsp+48h] [rbp-30h]
if ( !*(_BYTE *)(a1 + 200) )
{
v4 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL);
*(_OWORD *)Block = 0;
v5 = -1;
v11 = 0;
do
++v5;
while ( v4[v5] );
sub_14003D230(Block, v4, v5);
if ( *((_QWORD *)&v11 + 1) > 0xFu )
{
v6 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v11 + 1) + 1LL) >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v6);
}
if ( (_QWORD)v11 )
{
SetupTriggerPopup::textChanged(a1, a2);
}
else
{
v7 = (*(int (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2);
v8 = cocos2d::CCFloat::create(10.0);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 288), v8, v7);
v9 = (*(__int64 (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2);
SetupTriggerPopup::valueChanged(a1 - 544, v9);
}
}
}