//
// sub_1000055E8 from 0x1000055e8 to 0x1000056d0 (232 bytes)
//
// 6 xrefs:
// > sub_100004698 @ 0x1000048e4
// > sub_100004698 @ 0x100004a54
// > sub_10000658C @ 0x1000068c4
// > sub_10000658C @ 0x100006930
// > sub_10000658C @ 0x1000069ac
// > sub_10000658C @ 0x1000069fc
//
// 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 10:57:10 +0000
//
__int64 *__usercall sub_1000055E8@(__int64 *__return_ptr a1@, std::string *this@)
{
char v4; // w23
__int64 v5; // x8
std::string::size_type v6; // x21
__int64 *result; // x0
std::string *v8; // x8
if ( (SHIBYTE(this->__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
{
if ( !this->__r_.__value_.__l.__size_ )
return (__int64 *)sub_100009900((int)a1, "");
}
else if ( !*((_BYTE *)&this->__r_.__value_.__s + 23) )
{
return (__int64 *)sub_100009900((int)a1, "");
}
v4 = 0;
v5 = 1;
while ( 2 )
{
v6 = v5;
while ( 1 )
{
result = (__int64 *)std::string::at(this, v6);
if ( (unsigned int)*(unsigned __int8 *)result - 50 <= 0xFFFFFFFD )
break;
if ( ++v6 == 9 )
{
if ( (v4 & 1) == 0 )
return (__int64 *)sub_100009900((int)a1, "");
goto LABEL_15;
}
}
v8 = this;
if ( SHIBYTE(this->__r_.__value_.__r.__words[2]) < 0 )
v8 = (std::string *)this->__r_.__value_.__r.__words[0];
v8->__r_.__value_.__s.__data_[v6] = 49;
v5 = v6 + 1;
v4 = 1;
if ( v6 != 8 )
continue;
break;
}
LABEL_15:
*(_OWORD *)a1 = *(_OWORD *)&this->__r_.__value_.__l.__data_;
a1[2] = this->__r_.__value_.__r.__words[2];
this->__r_.__value_.__l.__size_ = 0;
this->__r_.__value_.__r.__words[2] = 0;
this->__r_.__value_.__r.__words[0] = 0;
return result;
}