//
// sub_100718F58 from 0x100718f58 to 0x100718fcc (116 bytes)
//
// 6 xrefs:
// > sub_1006E7D70 @ 0x1006e7e10
// > sub_1006F0570 @ 0x1006f05c0
// > sub_1006F5C2C @ 0x1006f5cdc
// > sub_1006F992C @ 0x1006f9a08
// > sub_10074EAD8 @ 0x10074ecc0
// > sub_10074F4A4 @ 0x10074f7bc
//
// 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_100718F58(__int64 *a1, __int64 a2, int a3, __int64 a4, __int64 a5, int a6)
{
__int64 v9; // x8
void *v10; // x0
if ( !(unsigned int)sub_100718AF4(*a1, a2, a3, a4) )
return 0;
if ( a5 )
{
v9 = a1[1];
v10 = *(void **)(v9 + 8);
if ( v10 )
{
sub_1006AEDAC(v10);
v9 = a1[1];
}
*(_QWORD *)(v9 + 8) = a5;
*(_DWORD *)v9 = a6;
*(_QWORD *)(v9 + 16) = *(_QWORD *)(v9 + 16) & 0xFFFFFFFFFFFFFFF0LL | 8;
}
return 1;
}