//
// sub_10044DDA0 from 0x10044dda0 to 0x10044deec (332 bytes)
//
// 6 xrefs:
// > SongInfoLayer::create_1 @ 0x10044d9a0
// > SongInfoLayer::create_1 @ 0x10044d9ec
// > SongInfoLayer::create_1 @ 0x10044da38
// > SongInfoLayer::create_1 @ 0x10044da84
// > SongInfoLayer::create_2 @ 0x10044e238
// > SongInfoLayer::create_2 @ 0x10044e288
//
// 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 11:05:19 +0000
//
void __fastcall sub_10044DDA0(_QWORD *a1, std::string *__str, const std::string *a3)
{
__int64 v6; // x23
__int64 v7; // x9
unsigned __int64 v8; // x9
size_t size; // x22
__int64 v10; // x24
__int64 v11; // x25
__int64 v12; // x9
int v13; // w8
const void *v14; // x0
std::string *v15; // x1
void *v16[2]; // [xsp+0h] [xbp-80h] BYREF
__int128 v17; // [xsp+10h] [xbp-70h]
std::string __p; // [xsp+20h] [xbp-60h] BYREF
v6 = SHIBYTE(__str->__r_.__value_.__r.__words[2]);
if ( v6 < 0 )
{
if ( !__str->__r_.__value_.__l.__size_ )
return;
}
else if ( !*((_BYTE *)&__str->__r_.__value_.__s + 23) )
{
return;
}
v7 = a1[1] - *a1;
if ( v7 )
{
v8 = 0x6DB6DB6DB6DB6DB7LL * (v7 >> 3);
if ( (int)v6 >= 0 )
size = SHIBYTE(__str->__r_.__value_.__r.__words[2]);
else
size = __str->__r_.__value_.__l.__size_;
if ( v8 <= 1 )
v10 = 1;
else
v10 = v8;
v11 = *a1 + 32LL;
while ( 1 )
{
v12 = *(unsigned __int8 *)(v11 + 23);
v13 = (char)v12;
if ( (v12 & 0x80u) != 0LL )
v12 = *(_QWORD *)(v11 + 8);
if ( v12 == size )
{
v14 = v13 >= 0 ? (const void *)v11 : *(const void **)v11;
v15 = (int)v6 >= 0 ? __str : (std::string *)__str->__r_.__value_.__r.__words[0];
if ( !memcmp(v14, v15, size) )
break;
}
v11 += 56;
if ( !--v10 )
goto LABEL_24;
}
}
else
{
LABEL_24:
v17 = 0u;
memset(&__p, 0, sizeof(__p));
*(_OWORD *)v16 = 0u;
std::string::operator=(&__p, __str);
std::string::operator=((std::string *)&v16[1], a3);
HIDWORD(v16[0]) = sub_1001DD0F4((__int64)__str);
sub_1001DD80C((__int64)a1, (__int64)v16);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v17) < 0 )
operator delete(v16[1]);
}
}