//
// sub_10064DC00 from 0x10064dc00 to 0x10064dcb8 (184 bytes)
//
// 23 xrefs:
// > ??> @ 0x1009adda0
// > ??> @ 0x1009ade88
// > ??> @ 0x1009adf70
// > ??> @ 0x1009ae070
// > ??> @ 0x1009ae158
// > ??> @ 0x1009ae248
// > ??> @ 0x1009ae330
// > ??> @ 0x1009ae418
// > ??> @ 0x1009ae528
// > ??> @ 0x1009ae610
// > ??> @ 0x1009ae6f8
// > ??> @ 0x1009ae808
// > ??> @ 0x1009ae8f0
// > ??> @ 0x1009ae9d8
// > ??> @ 0x1009aeae0
// > ??> @ 0x1009aebc8
// > ??> @ 0x1009aecb0
// > ??> @ 0x1009aed98
// > ??> @ 0x1009aee80
// > ??> @ 0x1009aef68
// > ??> @ 0x1009af050
// > ??> @ 0x1009af138
// > ??> @ 0x1009af220
//
// 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 11:10:48 +0000
//
__int64 __fastcall sub_10064DC00(__int64 a1, int a2, __int64 a3)
{
if ( (unsigned int)(a2 - 5) > 1 || (unsigned int)sub_100667280(a1 + 256) )
{
if ( a2 > 6 )
{
if ( a2 == 7 )
{
*(_QWORD *)(*(_QWORD *)(a1 + 256) + 96LL) = a3;
}
else if ( a2 == 56 )
{
*(_QWORD *)(a1 + 464) = a3;
}
}
else if ( a2 == 5 )
{
*(_QWORD *)(*(_QWORD *)(a1 + 256) + 64LL) = a3;
}
else if ( a2 == 6 )
{
*(_QWORD *)(*(_QWORD *)(a1 + 256) + 80LL) = a3;
}
}
else
{
sub_100706FB0(20, 233, 65, "s3_lib.c", 3664);
}
return 0;
}