//
// sub_A87360 from 0xa87360 to 0xa87444 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0xc80f8c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:52 +0000
//
int __fastcall sub_A87360(int *a1, int a2, unsigned int a3, int a4)
{
int *v4; // r4
int v6; // r3
int v8; // r3
v4 = (int *)a1[5];
switch ( a2 )
{
case 6:
if ( a4 )
v8 = a3 >> 31;
else
v8 = 1;
if ( v8 )
return 0;
return CMAC_Init(v4, a4, a3, 0, 0) != 0;
case 12:
return CMAC_Init(v4, 0, 0, a4, a1[1]) != 0;
case 1:
v6 = a1[2];
if ( !v6 || CMAC_CTX_copy((_DWORD *)a1[5], *(_DWORD **)(v6 + 20)) )
return CMAC_Init(v4, 0, 0, 0, 0) != 0;
return 0;
default:
return -2;
}
}