//
// sub_100619198 from 0x100619198 to 0x1006192f0 (344 bytes)
//
// 2 xrefs:
// > sub_100619054 @ 0x1006190e4
// > sub_10061952C @ 0x1006195e0
//
// 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_100619198(__int64 a1, __int64 a2)
{
int v4; // w0
int v5; // w20
int v7; // w21
_BYTE *v8; // x20
int *v9; // x0
int v10; // w3
int v11; // w4
int v12; // w5
int v13; // w6
int v14; // w7
void *v15[6]; // [xsp+0h] [xbp-80h] BYREF
unsigned __int8 v16[20]; // [xsp+34h] [xbp-4Ch] BYREF
v4 = sub_1005AAC20(a1);
if ( v4 + 7 >= 0 )
v5 = v4 + 7;
else
v5 = v4 + 14;
if ( (sub_1005AB404(a2, a1) & 0x80000000) == 0 )
return 0;
v7 = v5 >> 3;
v8 = sub_100588710((unsigned int)(v5 >> 3), (__int64)"srp_lib.c", 95);
if ( !v8 )
return 0;
sub_1005AB354(a1, v8);
sub_1005E2DF4(v15);
v9 = (int *)sub_1005E8F04();
sub_1005E2E4C((__int64)v15, v9, 0);
sub_1005E303C((__int64)v15);
bzero(v8, v7);
sub_1005AB354(a2, v8);
sub_1005E303C((__int64)v15);
sub_1005E303C((__int64)v15);
sub_100588C44(v8);
sub_1005E30F8(v15, (__int64)v16, nullptr, v10, v11, v12, v13, v14);
sub_1005E31A4((__int64)v15);
return sub_1005AB1B0(v16, 20, 0);
}