//
// sub_1000D09F0 from 0x1000d09f0 to 0x1000d0b34 (324 bytes)
//
// 2 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10013f578
// > sub_1003F8ECC @ 0x1003f8f48
//
// 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:53 +0000
//
bool __fastcall sub_1000D09F0(int a1, std::string *this, _QWORD *a3)
{
std::string::size_type v5; // x0
std::string::size_type v6; // x20
std::string::size_type i; // x8
std::string::size_type size; // x11
std::string *p_p; // x11
std::string *v10; // x8
_BOOL8 v11; // x19
std::string __p; // [xsp+0h] [xbp-40h] BYREF
std::allocator __a; // [xsp+1Fh] [xbp-21h] BYREF
v5 = std::string::find(this, 124, 0);
v6 = v5;
if ( v5 == -1 )
{
if ( SHIBYTE(this->__r_.__value_.__r.__words[2]) < 0 )
v5 = (std::string::size_type)sub_1000097D0(&__p, this->__r_.__value_.__l.__data_, this->__r_.__value_.__l.__size_);
else
__p = *this;
}
else
{
v5 = (std::string::size_type)std::string::basic_string(&__p, this, 0, v5, &__a);
}
for ( i = 0; ; ++i )
{
size = SHIBYTE(__p.__r_.__value_.__r.__words[2]);
if ( (SHIBYTE(__p.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
break;
if ( i >= SHIBYTE(__p.__r_.__value_.__r.__words[2]) )
goto LABEL_18;
LABEL_11:
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_p = &__p;
else
p_p = (std::string *)__p.__r_.__value_.__r.__words[0];
if ( p_p->__r_.__value_.__s.__data_[i] == 59 )
p_p->__r_.__value_.__s.__data_[i] = 44;
}
if ( i < __p.__r_.__value_.__l.__size_ )
goto LABEL_11;
size = __p.__r_.__value_.__l.__size_;
LABEL_18:
a3[1] = *a3;
if ( size )
sub_1000CF6E8(v5, (__int64)&__p, (__int64)a3);
if ( v6 == -1 )
{
v11 = 1;
}
else
{
if ( (this->__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v10 = this;
else
v10 = (std::string *)this->__r_.__value_.__r.__words[0];
v11 = atoi(&v10->__r_.__value_.__s.__data_[v6 + 1]) > 0;
}
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
return v11;
}