//
// sub_10073F300 from 0x10073f300 to 0x10073f458 (344 bytes)
//
// 2 xrefs:
// > sub_10073F1BC @ 0x10073f24c
// > sub_10073F694 @ 0x10073f748
//
// 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:13:19 +0000
//
__int64 __fastcall sub_10073F300(__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_1006D0D88(a1);
if ( v4 + 7 >= 0 )
v5 = v4 + 7;
else
v5 = v4 + 14;
if ( (sub_1006D156C(a2, a1) & 0x80000000) == 0 )
return 0;
v7 = v5 >> 3;
v8 = sub_1006AE878((unsigned int)(v5 >> 3), (__int64)"srp_lib.c", 95);
if ( !v8 )
return 0;
sub_1006D14BC(a1, v8);
sub_100708F5C(v15);
v9 = (int *)sub_10070F06C();
sub_100708FB4((__int64)v15, v9, 0);
sub_1007091A4((__int64)v15);
bzero(v8, v7);
sub_1006D14BC(a2, v8);
sub_1007091A4((__int64)v15);
sub_1007091A4((__int64)v15);
sub_1006AEDAC(v8);
sub_100709260(v15, (__int64)v16, nullptr, v10, v11, v12, v13, v14);
sub_10070930C((__int64)v15);
return sub_1006D1318(v16, 20, 0);
}