//
// sub_1000B3A30 from 0x1000b3a30 to 0x1000b3acc (156 bytes)
//
// 2 xrefs:
// > sub_1000B38A4 @ 0x1000b3a10
// > sub_1000CB7C4 @ 0x1000cb830
//
// 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:58:40 +0000
//
std::string *__fastcall sub_1000B3A30(std::string *result)
{
std::string *v1; // x19
__int64 v2; // x0
std::string::pointer data; // x20
std::string::pointer v4; // x8
if ( HIDWORD(result[37].__r_.__value_.__r.__words[1]) == 5 )
{
v1 = result;
if ( result[41].__r_.__value_.__s.__data_[16] == 1 && (result[76].__r_.__value_.__s.__data_[20] & 1) == 0 )
{
v2 = GameManager::sharedState(result);
result = (std::string *)GameManager::getGameVariable(v2, "0203");
if ( ((unsigned __int8)result & 1) == 0 )
{
data = (std::string::pointer)v1[76].__r_.__value_.__s.__data_[15];
if ( ((unsigned __int64)data & 0x8000000000000000LL) != 0 )
data = v1[76].__r_.__value_.__l.__data_;
result = std::string::operator=((std::string *)((char *)v1 + 1816), (std::string *)((char *)v1 + 1784));
v4 = (std::string::pointer)(unsigned __int8)v1[76].__r_.__value_.__s.__data_[15];
if ( !data )
{
if ( ((unsigned __int8)v4 & 0x80) != 0
? v1[76].__r_.__value_.__r.__words[0]
: (unsigned __int8)v1[76].__r_.__value_.__s.__data_[15] )
{
LODWORD(v4) = 1;
LABEL_17:
LODWORD(v1[76].__r_.__value_.__r.__words[2]) = (_DWORD)v4;
return result;
}
}
if ( ((unsigned __int8)v4 & 0x80) != 0 )
v4 = v1[76].__r_.__value_.__l.__data_;
if ( !v4 )
goto LABEL_17;
}
}
}
return result;
}