//
// sub_1006EBD5C from 0x1006ebd5c to 0x1006ebdf4 (152 bytes)
//
// 5 xrefs:
// > sub_100646164 @ 0x10064659c
// > sub_100649644 @ 0x10064a0a0
// > sub_1006E3A3C @ 0x1006e3fb4
// > sub_1006E4D5C @ 0x1006e4e54
// > sub_1006E54CC @ 0x1006e5520
//
// 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:38 +0000
//
__int64 __fastcall sub_1006EBD5C(__int64 a1, _QWORD *a2, _BYTE *a3, __int64 a4, __int64 *a5)
{
__int64 v5; // x8
__int64 (*v6)(void); // x5
__int64 v7; // x2
__int64 v8; // x4
v5 = *(_QWORD *)a1;
v6 = *(__int64 (**)(void))(*(_QWORD *)a1 + 160LL);
if ( !v6 && (*(_BYTE *)v5 & 1) == 0 )
{
v7 = 66;
v8 = 171;
LABEL_6:
sub_100706FB0(16, 122, v7, "ec_oct.c", v8);
return 0;
}
if ( v5 != *a2 )
{
v7 = 101;
v8 = 175;
goto LABEL_6;
}
if ( (*(_BYTE *)v5 & 1) == 0 )
return v6();
if ( *(_DWORD *)(v5 + 4) == 406 )
return sub_1006EAE68(a1, a2, a3, a4, a5);
return sub_1006EB7FC(a1, a2, a3, a4, a5);
}