//
// sub_100459CB4 from 0x100459cb4 to 0x100459d3c (136 bytes)
//
// 2 xrefs:
// > sub_100459CB4 @ 0x100459d18
// > sub_10045A3A4 @ 0x10045a534
//
// 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
//
__int64 __fastcall sub_100459CB4(__int64 a1, _OWORD *a2)
{
__int64 *v3; // x8
__int64 v4; // x9
__int64 v5; // t1
_QWORD *v6; // x20
_QWORD *v7; // x21
v3 = *(__int64 **)(a1 + 16);
if ( v3 )
{
v4 = *(unsigned int *)(a1 + 24);
if ( (int)v4 >= 1 )
{
do
{
v5 = *v3++;
*(_OWORD *)(v5 + 8) = *a2;
--v4;
}
while ( v4 );
}
}
else
{
*(_OWORD *)(*(_QWORD *)(a1 + 96) + 8LL) = *a2;
}
v6 = (_QWORD *)(a1 + 400);
v7 = *(_QWORD **)(a1 + 400);
if ( v7 != (_QWORD *)(a1 + 400) )
{
do
{
sub_100459CB4(v7[2], a2);
v7 = (_QWORD *)*v7;
}
while ( v7 != v6 );
}
return 0;
}