//
// sub_100594E60 from 0x100594e60 to 0x100594f00 (160 bytes)
//
// 1 xrefs:
// > sub_1005E8FC4 @ 0x1005e8fc8
//
// 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_100594E60(int a1, char *__src, unsigned __int64 a3)
{
unsigned __int64 v3; // x20
char *v4; // x22
unsigned __int64 v6; // x23
unsigned __int64 v7; // x25
char *v8; // x21
v3 = a3;
v4 = __src;
if ( a3 >> 60 )
{
v6 = a3 - 0x1000000000000000LL;
v7 = (a3 - 0x1000000000000000LL) & 0xF000000000000000LL;
v8 = &__src[v7 + 0x1000000000000000LL];
do
{
sub_100594F00(a1, v4);
v3 -= 0x1000000000000000LL;
v4 += 0x1000000000000000LL;
}
while ( v3 >> 60 );
v3 = v6 - v7;
}
else
{
v8 = __src;
}
if ( v3 )
sub_100594F00(a1, v8);
return 1;
}