//
// sub_1000B7884 from 0x1000b7884 to 0x1000b794c (200 bytes)
//
// 2 xrefs:
// > sub_10009E1B0 @ 0x10009e3bc
// > sub_10013B72C @ 0x10013b7f4
//
// 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:42 +0000
//
void __fastcall sub_1000B7884(__int64 a1, __int64 a2)
{
__int64 v3; // x0
__int64 v4; // x0
std::string *v5; // x19
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v7; // [xsp+10h] [xbp-20h]
v3 = GameLevelManager::sharedState();
v4 = sub_1000B7968(v3, *(unsigned int *)(a2 + 344));
if ( v4 )
{
v5 = (std::string *)v4;
*(_OWORD *)(v4 + 348) = *(_OWORD *)(a2 + 348);
*(_DWORD *)(v4 + 364) = *(_DWORD *)(a2 + 364);
*(_BYTE *)(v4 + 397) = *(_BYTE *)(a2 + 397);
std::string::operator=((std::string *)(v4 + 408), (const std::string *)(a2 + 408));
std::string::operator=(v5 + 18, (const std::string *)(a2 + 432));
std::string::operator=(v5 + 21, (const std::string *)(a2 + 504));
v5[22].__r_.__value_.__r.__words[0] = *(_QWORD *)(a2 + 528);
if ( *(char *)(a2 + 503) < 0 )
{
sub_1000097D0(__p, *(void **)(a2 + 480), *(_QWORD *)(a2 + 488));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(a2 + 480);
v7 = *(_QWORD *)(a2 + 496);
}
sub_1000B8968(v5, __p);
if ( SHIBYTE(v7) < 0 )
operator delete(__p[0]);
}
}