//
// SetupRandTriggerPopup::updateTextInputLabel2 from 0xab33f0 to 0xab3584 (404 bytes)
//
// 2 xrefs:
// > SetupRandTriggerPopup::init @ 0xab3978
// > ??> @ 0x101c98
//
// 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:57 +0000
//
__int64 __fastcall SetupRandTriggerPopup::updateTextInputLabel2(SetupRandTriggerPopup *this)
{
cocos2d::CCString *v2; // x0
const char *CString; // x24
size_t v4; // x0
size_t v5; // x19
unsigned __int64 v6; // x0
char *v7; // x3
_QWORD *v8; // x24
__int64 v10; // [xsp+48h] [xbp+48h] BYREF
size_t v11; // [xsp+50h] [xbp+50h]
void *v12; // [xsp+58h] [xbp+58h]
__int64 v13; // [xsp+60h] [xbp+60h] BYREF
size_t v14; // [xsp+68h] [xbp+68h]
void *v15; // [xsp+70h] [xbp+70h]
*((_BYTE *)this + 744) = 1;
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned int *)this + 265));
v10 = 0;
CString = (const char *)cocos2d::CCString::getCString(v2);
v11 = 0;
v12 = nullptr;
v4 = strlen(CString);
v5 = v4;
if ( v4 > 0xFFFFFFFFFFFFFFEFLL )
sub_62E6BC();
if ( v4 > 0x16 )
{
v6 = (v4 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v10 = v6 | 1;
v7 = (char *)operator new(v6);
v12 = v7;
v11 = v5;
LABEL_4:
v7 = (char *)memcpy(v7, CString, v5);
goto LABEL_5;
}
LOBYTE(v10) = 2 * v4;
v7 = (char *)&v10 + 1;
if ( v4 )
goto LABEL_4;
LABEL_5:
v7[v5] = 0;
v13 = 0;
v14 = 0;
v15 = nullptr;
v8 = *((_QWORD **)this + 131);
if ( (v10 & 1) != 0 )
{
std::string::__init(&v13, v12, v11);
}
else
{
v15 = v12;
v13 = v10;
v14 = v11;
}
CCTextInputNode::setString(v8, (char *)&v13);
if ( (v13 & 1) != 0 )
operator delete(v15);
*((_BYTE *)this + 744) = 0;
if ( (v10 & 1) != 0 )
operator delete(v12);
return _stack_chk_guard;
}