//
// sub_100595510 from 0x100595510 to 0x1005955b8 (168 bytes)
//
// 1 xrefs:
// > sub_100595340 @ 0x1005953c8
//
// 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:08:47 +0000
//
__int64 __fastcall sub_100595510(__int64 a1, int a2, _DWORD *a3, _DWORD *a4)
{
__int64 v7; // x0
int v8; // w8
if ( !byte_100A10B18 )
{
qword_100A10B10 = (unsigned __int64)&unk_100A10B2B & 0xFFFFFFFFFFFFFFF0LL;
v7 = sub_10059561C(1);
if ( !(unsigned int)sub_1005979B4(v7) )
sub_1005986C0(32);
byte_100A10B18 = 1;
}
if ( a3 )
{
if ( a2 + 1 >= 0 )
v8 = a2 + 1;
else
v8 = a2 + 2;
*a3 = 18640 * (v8 >> 1);
}
if ( a4 )
*a4 = 1152;
return 0;
}