//
// sub_100718CD0 from 0x100718cd0 to 0x100718db8 (232 bytes)
//
// 2 xrefs:
// > sub_10074ABE4 @ 0x10074ae08
// > sub_10074DA74 @ 0x10074dc90
//
// 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:01 +0000
//
__int64 __fastcall sub_100718CD0(__int64 *a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x19
__int64 v6; // x8
unsigned int (__fastcall *v7)(__int64, __int64); // x8
__int16 v9; // w2
int v10; // w4
if ( !a1 )
return 0;
v4 = sub_10071B748(&unk_1009C1928);
v5 = v4;
if ( !v4 )
return 0;
v6 = *(_QWORD *)(a2 + 16);
if ( !v6 )
{
v9 = 111;
v10 = 111;
LABEL_12:
sub_100706FB0(11, 120, v9, (__int64)"x_pubkey.c", v10);
sub_10071BCFC(v5, &unk_1009C1928);
return 0;
}
v7 = *(unsigned int (__fastcall **)(__int64, __int64))(v6 + 40);
if ( !v7 )
{
v9 = 124;
v10 = 107;
goto LABEL_12;
}
if ( !v7(v4, a2) )
{
v9 = 126;
v10 = 103;
goto LABEL_12;
}
if ( *a1 )
sub_10071BCFC(*a1, &unk_1009C1928);
*a1 = v5;
return 1;
}