//
// sub_10064E4A4 from 0x10064e4a4 to 0x10064e4d8 (52 bytes)
//
// 23 xrefs:
// > sub_100644A14 @ 0x100644afc
// > sub_100654DEC @ 0x100655254
// > ??> @ 0x1009add60
// > ??> @ 0x1009ade48
// > ??> @ 0x1009adf30
// > ??> @ 0x1009ae208
// > ??> @ 0x1009ae2f0
// > ??> @ 0x1009ae3d8
// > ??> @ 0x1009ae4e8
// > ??> @ 0x1009ae5d0
// > ??> @ 0x1009ae6b8
// > ??> @ 0x1009ae7c8
// > ??> @ 0x1009ae8b0
// > ??> @ 0x1009ae998
// > ??> @ 0x1009aeaa0
// > ??> @ 0x1009aeb88
// > ??> @ 0x1009aec70
// > ??> @ 0x1009aed58
// > ??> @ 0x1009aee40
// > ??> @ 0x1009aef28
// > ??> @ 0x1009af010
// > ??> @ 0x1009af0f8
// > ??> @ 0x1009af1e0
//
// 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_10064E4A4(__int64 a1, _BYTE *a2)
{
__int64 v2; // x8
if ( !a2 )
return 2;
v2 = *(_QWORD *)(a1 + 16);
if ( (v2 & 0xFF000000) == 0x3000000 )
{
*a2 = BYTE1(v2);
a2[1] = v2;
return 2;
}
return 0;
}