//
// sub_872760 from 0x872760 to 0x872844 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0xa39d0c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_872760(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;
}
}