//
// SetupCameraEdgePopup::updateTextInputLabel from 0xb25374 to 0xb254ac (312 bytes)
//
// 3 xrefs:
// > SetupCameraEdgePopup::onUnlockEdge @ 0xb2554c
// > SetupCameraEdgePopup::init @ 0xb258f8
// > ??> @ 0xeca28
//
// 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:01:38 +0000
//
__int64 __fastcall SetupCameraEdgePopup::updateTextInputLabel(SetupCameraEdgePopup *this)
{
cocos2d::CCString *v2; // x0
const char *CString; // x25
size_t v4; // x0
size_t v5; // x19
_QWORD *v6; // x24
unsigned __int64 v7; // x0
char *v8; // x3
__int64 v10; // [xsp+50h] [xbp+50h] BYREF
size_t v11; // [xsp+58h] [xbp+58h]
void *v12; // [xsp+60h] [xbp+60h]
*((_BYTE *)this + 744) = 1;
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned int *)this + 256));
v10 = 0;
CString = (const char *)cocos2d::CCString::getCString(v2);
v11 = 0;
v12 = nullptr;
v4 = strlen(CString);
v5 = v4;
v6 = *((_QWORD **)this + 127);
if ( v4 > 0xFFFFFFFFFFFFFFEFLL )
sub_62EDDC();
if ( v4 > 0x16 )
{
v7 = (v4 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v10 = v7 | 1;
v8 = (char *)operator new(v7);
v12 = v8;
v11 = v5;
LABEL_4:
v8 = (char *)memcpy(v8, CString, v5);
goto LABEL_5;
}
LOBYTE(v10) = 2 * v4;
v8 = (char *)&v10 + 1;
if ( v4 )
goto LABEL_4;
LABEL_5:
v8[v5] = 0;
CCTextInputNode::setString(v6, (char *)&v10);
if ( (v10 & 1) != 0 )
operator delete(v12);
*((_BYTE *)this + 744) = 0;
return _stack_chk_guard;
}