//
// sub_109B420 from 0x109b420 to 0x109b504 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x140f908
//
// 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 13:17:28 +0000
//
__int64 __fastcall sub_109B420(__int64 *a1, int a2, int a3, __int64 a4)
{
_QWORD *v4; // x19
__int64 v6; // x0
v4 = (_QWORD *)a1[5];
switch ( a2 )
{
case 6:
if ( a4 && (a3 & 0x80000000) == 0 )
return (unsigned int)CMAC_Init((_QWORD *)a1[5], a4, a3, 0, 0) != 0;
return 0;
case 12:
return (unsigned int)CMAC_Init((_QWORD *)a1[5], 0, 0, a4, a1[1]) != 0;
case 1:
v6 = a1[2];
if ( !v6 || (unsigned int)CMAC_CTX_copy((__int64)v4, *(_QWORD *)(v6 + 32)) )
return (unsigned int)CMAC_Init(v4, 0, 0, 0, 0) != 0;
return 0;
}
return 4294967294LL;
}