//
// SetupCameraEdgePopup::textChanged from 0x140413c80 to 0x140413d6f (239 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405dee18
// > ??> @ 0x1406d8da4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SetupCameraEdgePopup::textChanged(SetupCameraEdgePopup *a1, CCTextInputNode *a2)
{
const char *v3; // rax
size_t v4; // r8
const char *v5; // rcx
int v6; // eax
unsigned __int64 v7; // rdx
char *v8; // rcx
char *String[2]; // [rsp+28h] [rbp-30h] BYREF
__int128 v10; // [rsp+38h] [rbp-20h]
if ( !LOBYTE(a1->m_fSkewX) )
{
v3 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);
*(_OWORD *)String = 0;
v4 = -1;
v10 = 0;
do
++v4;
while ( v3[v4] );
sub_14003A930(String, v3, v4);
v5 = (const char *)String;
if ( *((_QWORD *)&v10 + 1) > 0xFu )
v5 = String[0];
v6 = atoi(v5);
v7 = *((_QWORD *)&v10 + 1);
*(_DWORD *)&a1->m_bUseChildIndex = v6;
if ( v7 > 0xF )
{
v8 = String[0];
if ( v7 + 1 >= 0x1000 )
{
v8 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v8 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v8);
}
SetupCameraEdgePopup::updateTargetID(&a1[-1].cocos2d::CCAccelerometerDelegate, v7);
SetupTriggerPopup::updateEditorLabel((SetupCameraEdgePopup *)((char *)a1 - 632));
}
}