//
// SetupOpacityPopup::textChanged from 0xa41118 to 0xa412a4 (396 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupOpacityPopup::textChanged @ 0xa412a8
// > ??> @ 0x48d18
// > ??> @ 0x1488ef8
//
// 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 12:59:56 +0000
//
__int64 __fastcall SetupOpacityPopup::textChanged(SetupOpacityPopup *this, CCTextInputNode *a2)
{
char *v4; // x0
const char *v5; // x1
float v6; // s8
cocos2d::CCString *v7; // x0
int v8; // s0
Slider *v9; // x0
float v10; // s0
char *v11; // x21
__int64 v13[2]; // [xsp+40h] [xbp+40h] BYREF
char *v14; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 744) )
{
if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
CCTextInputNode::getString(a2, v13);
if ( (v13[0] & 1) != 0 )
{
v11 = v14;
*((_DWORD *)this + 266) = atoi(v14);
operator delete(v11);
}
else
{
*((_DWORD *)this + 266) = atoi((const char *)v13 + 1);
}
SetupOpacityPopup::updateTargetID(this);
SetupTriggerPopup::updateEditorLabel(this);
}
else if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 4 )
{
CCTextInputNode::getString(a2, v13);
v4 = (char *)v13 + 1;
if ( (v13[0] & 1) != 0 )
v4 = v14;
v6 = atof(v4);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v5, v6);
cocos2d::CCString::floatValue(v7);
*((_DWORD *)this + 265) = v8;
SetupOpacityPopup::updateDuration(this);
v9 = *((Slider **)this + 130);
v10 = *((float *)this + 265) / 10.0;
if ( v10 < 1.0 )
{
if ( v10 <= 0.0 )
{
Slider::setValue(v9, 0.0);
return _stack_chk_guard;
}
}
else
{
v10 = 1.0;
}
Slider::setValue(v9, v10);
}
}
return _stack_chk_guard;
}