//
// sub_10070C86C from 0x10070c86c to 0x10070c92c (192 bytes)
//
// 18 xrefs:
// > ??> @ 0x1009bf798
// > ??> @ 0x1009bf7f0
// > ??> @ 0x1009bf848
// > ??> @ 0x1009bf8a0
// > ??> @ 0x1009bf8f8
// > ??> @ 0x1009bf950
// > ??> @ 0x1009bf9a8
// > ??> @ 0x1009bfa00
// > ??> @ 0x1009bfa58
// > ??> @ 0x1009bfab0
// > ??> @ 0x1009bfb08
// > ??> @ 0x1009bfb60
// > ??> @ 0x1009bfbb8
// > ??> @ 0x1009bfc10
// > ??> @ 0x1009bfc68
// > ??> @ 0x1009bfcc0
// > ??> @ 0x1009bfd18
// > ??> @ 0x1009bfd70
//
// 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:12:54 +0000
//
__int64 __fastcall sub_10070C86C(_QWORD *a1, __int64 a2, __int64 a3, int a4)
{
__int64 v6; // x19
int v7; // w8
void *v8; // x9
__int64 (__fastcall *v10)(__int64, __int64, __int64, __int64, __int64, int); // x8
v6 = a1[15];
if ( (sub_1006C76E0() & 0x80000000) != 0 )
{
sub_100706FB0(6, 159, 157, (__int64)"e_camellia.c", 264);
return 0;
}
else
{
v7 = *(_DWORD *)(*a1 + 16LL) & 0xF0007;
if ( a4 || (unsigned int)(v7 - 1) > 1 )
v8 = sub_1006C8884;
else
v8 = sub_1006C889C;
*(_QWORD *)(v6 + 280) = v8;
if ( v7 == 2 )
v10 = sub_1006C88B4;
else
v10 = nullptr;
*(_QWORD *)(v6 + 288) = v10;
return 1;
}
}