//
// sub_1006192F0 from 0x1006192f0 to 0x100619494 (420 bytes)
//
// 1 xrefs:
// > sub_1005482A0 @ 0x100548310
//
// 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_1006192F0(__int64 a1, const char *a2, const char *a3)
{
__int64 result; // x0
int v7; // w0
int v8; // w8
_BYTE *v9; // x20
int *v10; // x0
int v11; // w3
int v12; // w4
int v13; // w5
int v14; // w6
int v15; // w7
int *v16; // x0
int v17; // w3
int v18; // w4
int v19; // w5
int v20; // w6
int v21; // w7
void *v22[6]; // [xsp+0h] [xbp-80h] BYREF
unsigned __int8 v23[20]; // [xsp+34h] [xbp-4Ch] BYREF
result = 0;
if ( a1 && a2 && a3 )
{
v7 = sub_1005AAC20(a1);
v8 = v7 + 7;
if ( v7 + 7 < 0 )
v8 = v7 + 14;
v9 = sub_100588710((unsigned int)(v8 >> 3), (__int64)"srp_lib.c", 220);
if ( v9 )
{
sub_1005E2DF4(v22);
v10 = (int *)sub_1005E8F04();
sub_1005E2E4C((__int64)v22, v10, 0);
strlen(a2);
sub_1005E303C((__int64)v22);
sub_1005E303C((__int64)v22);
strlen(a3);
sub_1005E303C((__int64)v22);
sub_1005E30F8(v22, (__int64)v23, nullptr, v11, v12, v13, v14, v15);
v16 = (int *)sub_1005E8F04();
sub_1005E2E4C((__int64)v22, v16, 0);
sub_1005AB354(a1, v9);
sub_1005AAC20(a1);
sub_1005E303C((__int64)v22);
sub_100588C44(v9);
sub_1005E303C((__int64)v22);
sub_1005E30F8(v22, (__int64)v23, nullptr, v17, v18, v19, v20, v21);
sub_1005E31A4((__int64)v22);
return sub_1005AB1B0(v23, 20, 0);
}
else
{
return 0;
}
}
return result;
}