//
// sub_100005508 from 0x100005508 to 0x1000055cc (196 bytes)
//
// 8 xrefs:
// > sub_100004698 @ 0x1000047ac
// > sub_100004698 @ 0x100004848
// > sub_100004698 @ 0x1000049b8
// > sub_100004698 @ 0x100004b28
// > sub_1000057F8 @ 0x10000596c
// > sub_10000658C @ 0x100006858
// > sub_10000658C @ 0x10000693c
// > sub_10000658C @ 0x100006a08
//
// 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
//
double __usercall sub_100005508@(std::string *__return_ptr a1@, std::string *__str@)
{
double result; // d0
std::string __p; // [xsp+0h] [xbp-30h] BYREF
std::allocator __a; // [xsp+1Fh] [xbp-11h] BYREF
if ( (SHIBYTE(__str->__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) == 0 )
{
if ( *((_BYTE *)&__str->__r_.__value_.__s + 23) )
goto LABEL_3;
LABEL_7:
sub_100009900((int)a1, "");
return result;
}
if ( !__str->__r_.__value_.__l.__size_ )
goto LABEL_7;
LABEL_3:
std::string::basic_string(&__p, __str, 0, 5u, &__a);
std::string::append(&__p, "0000");
if ( sub_1000045BC(&__p, __str) )
{
sub_100009900((int)a1, "");
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
else
{
result = *(double *)&__p.__r_.__value_.__l.__data_;
*a1 = __p;
}
return result;
}