//
// sub_1000CB7C4 from 0x1000cb7c4 to 0x1000cb86c (168 bytes)
//
// 3 xrefs:
// > sub_1000996A8 @ 0x1000997d0
// > sub_10009985C @ 0x100099950
// > sub_1000999E0 @ 0x100099cb4
//
// 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:51 +0000
//
void __fastcall sub_1000CB7C4(__int64 a1, __int64 a2, __int64 a3, int a4)
{
char *v6; // x19
char *v7; // x23
__int64 v8; // x22
__int64 v9; // x8
int v10; // w8
char *v11; // [xsp+8h] [xbp-48h] BYREF
char *v12; // [xsp+10h] [xbp-40h]
sub_1000CBCF8(&v11, a1, a2);
v6 = v11;
v7 = v12;
if ( v11 != v12 )
{
do
{
v8 = *(_QWORD *)v6;
std::string::operator=((std::string *)(*(_QWORD *)v6 + 1784LL), (const std::string *)a3);
if ( (a4 & 0x80000000) == 0 )
{
v9 = *(unsigned __int8 *)(a3 + 23);
if ( (v9 & 0x80u) != 0LL )
v9 = *(_QWORD *)(a3 + 8);
if ( v9 )
v10 = a4;
else
v10 = 0;
*(_DWORD *)(v8 + 1808) = v10;
}
sub_1000B3A30((std::string *)v8);
v6 += 8;
}
while ( v6 != v7 );
v6 = v11;
}
if ( v6 )
{
v12 = v6;
operator delete(v6);
}
}