//
// sub_10056F32C from 0x10056f32c to 0x10056f400 (212 bytes)
//
// 2 xrefs:
// > sub_10056C89C @ 0x10056c97c
// > sub_10056C89C @ 0x10056c9fc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_10056F32C(__int64 *a1, _OWORD *a2)
{
__int64 *v4; // x0
__int64 *v5; // x19
__int64 **v6; // x8
__int64 **v7; // x22
__int64 v8; // x21
v4 = (__int64 *)off_10085DEB0(0x10u);
v5 = v4;
if ( v4 )
{
*(_OWORD *)v4 = *a2;
if ( sub_10056BD30((__int64)a1) )
{
v6 = (__int64 **)*a1;
if ( *a1 )
{
v7 = nullptr;
do
{
v8 = (__int64)v7;
v7 = v6;
if ( sub_100548F34(**v6, (*v6)[1], *v5, v5[1]) >= 1 )
break;
v6 = (__int64 **)v7[2];
v8 = (__int64)v7;
}
while ( v6 );
}
else
{
v8 = 0;
}
}
else
{
v8 = 0;
}
if ( !(unsigned int)sub_10056BAE8(a1, v8, (__int64)v5) )
off_10085DEB8(v5);
}
}