//
// EditorUI::updateDpadStepLabel from 0x10063b120 to 0x10063b2bd (413 bytes)
//
// 2 xrefs:
// > sub_10000E2C0 @ 0x10000e330
// > EditorUI::setDpadStep @ 0x10063b0e2
//
// 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 12:34:40 +0000
//
void __fastcall EditorUI::updateDpadStepLabel(__int64 a1)
{
__int64 v2; // r14
const std::string::value_type *v3; // rsi
__int64 v4; // rax
const std::string::value_type *CString; // rax
std::string::pointer data; // rcx
std::string::size_type size; // rax
std::string::size_type v8; // rax
std::string::size_type v9; // rsi
bool v10; // zf
std::string::size_type v11; // rsi
__int64 v12; // rdi
std::string::pointer v13; // rsi
__int64 v14; // rdi
int v15; // eax
int v16; // ecx
int v17; // eax
std::string v18; // [rsp+0h] [rbp-40h] BYREF
__int16 v19; // [rsp+24h] [rbp-1Ch] BYREF
char v20; // [rsp+26h] [rbp-1Ah]
if ( !*(_QWORD *)(a1 + 1624) )
return;
v2 = 32LL * *(int *)(a1 + 1600);
memset(&v18, 0, sizeof(v18));
v3 = *(const std::string::value_type **)((char *)&unk_100B7FD50 + v2 + 8);
if ( !v3 )
{
v4 = sub_10088E820("%.3f", *(_BYTE *)&v18.__r_.__value_.__l.0);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v4);
std::string::assign(&v18, CString);
if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 )
{
data = v18.__r_.__value_.__l.__data_;
size = v18.__r_.__value_.__l.__size_;
}
else
{
size = *(_BYTE *)&v18.__r_.__value_.__l.0 >> 1;
data = v18.__r_.__value_.__s.__data_;
}
v8 = size + 1;
while ( v8 != 1 )
{
v9 = v8 - 1;
v10 = data[v8-- - 2] == 48;
if ( !v10 )
goto LABEL_12;
}
v9 = 0;
LABEL_12:
std::string::erase(&v18, v9, 0xFFFFFFFFFFFFFFFFLL);
if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 )
{
v11 = v18.__r_.__value_.__l.__size_;
if ( *(_BYTE *)(v18.__r_.__value_.__r.__words[2] + v18.__r_.__value_.__l.__size_ - 1) != 46 )
goto LABEL_17;
}
else
{
v11 = *(_BYTE *)&v18.__r_.__value_.__l.0 >> 1;
if ( *((_BYTE *)&v18.__r_.__value_.__s.0 + v11) != 46 )
goto LABEL_17;
}
std::string::erase(&v18, v11 - 1, 0xFFFFFFFFFFFFFFFFLL);
goto LABEL_17;
}
std::string::assign(&v18, v3);
LABEL_17:
v12 = *(_QWORD *)(a1 + 1624);
if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 )
v13 = v18.__r_.__value_.__l.__data_;
else
v13 = v18.__r_.__value_.__s.__data_;
(*(void (__fastcall **)(__int64, std::string::pointer))(*(_QWORD *)v12 + 928LL))(v12, v13);
v14 = *(_QWORD *)(a1 + 1624);
v15 = *(_DWORD *)((char *)&unk_100B7FD50 + v2 + 28);
v16 = v15 != 2 ? -1 : 0xDC82FF;
v10 = v15 == 1;
v17 = 4907775;
if ( !v10 )
v17 = v16;
v19 = v17;
v20 = BYTE2(v17);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v14 + 1072LL))(v14, &v19);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 1624), 26.0, 0.44999999, COERCE_DOUBLE(1036831949));
if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v18.__r_.__value_.__l.__data_);
}