//
// SetupPulsePopup::updateTextInputLabel from 0x1405d25f0 to 0x1405d2701 (273 bytes)
//
// 3 xrefs:
// > SetupPulsePopup::init @ 0x1405d01ad
// > SetupPulsePopup::onSelectTargetMode @ 0x1405d0893
// > ??> @ 0x14092e88c
//
// 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:34:56 +0000
//
void __fastcall SetupPulsePopup::updateTextInputLabel(__int64 a1)
{
__int64 v1; // rdx
cocos2d::CCString *v3; // rax
const char *CString; // rax
const char *v5; // rcx
size_t v6; // rbx
size_t v7; // r8
int v8; // ecx
const char *v9; // rax
__int128 v10; // [rsp+20h] [rbp-28h] BYREF
__int64 v11; // [rsp+30h] [rbp-18h]
__int64 v12; // [rsp+38h] [rbp-10h]
v1 = *(unsigned int *)(a1 + 1252);
*(_BYTE *)(a1 + 744) = 1;
v3 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v1);
CString = cocos2d::CCString::getCString(v3);
if ( *(int *)(a1 + 1252) >= 1000 )
{
v5 = "0";
if ( *(_DWORD *)(a1 + 1280) == 1 )
v5 = CString;
CString = v5;
}
v6 = -1;
v11 = 0;
v10 = 0;
v12 = 0;
v7 = -1;
do
++v7;
while ( CString[v7] );
sub_14003D230(&v10, CString, v7);
CCTextInputNode::setString(*(_QWORD **)(a1 + 1184), &v10);
v8 = *(_DWORD *)(a1 + 1252);
if ( v8 >= 1000 && *(_DWORD *)(a1 + 1280) != 1 )
{
v9 = GJSpecialColorSelect::textForColorIdx(v8);
v11 = 0;
v10 = 0;
v12 = 0;
do
++v6;
while ( v9[v6] );
sub_14003D230(&v10, v9, v6);
CCTextInputNode::updateLabel(*(_QWORD *)(a1 + 1184), (__int64 *)&v10);
}
*(_BYTE *)(a1 + 744) = 0;
}