//
// CRYPTO_ocb128_new from 0xa2ca9c to 0xa2cb20 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x7dc9c
//
// 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:02 +0000
//
void *__fastcall CRYPTO_ocb128_new(int a1, int a2, void (__fastcall *a3)(_DWORD *, _DWORD *, int), int a4, int a5)
{
_DWORD *v9; // r0
void *v10; // r4
void *v11; // r6
void *result; // r0
v9 = CRYPTO_malloc(&dword_A8, (int)"crypto/modes/ocb128.c", 146);
v10 = v9;
if ( !v9 )
return nullptr;
v11 = CRYPTO_ocb128_init(v9, a1, a2, a3, a4, a5);
result = v10;
if ( !v11 )
{
CRYPTO_free(v10, (int)"crypto/modes/ocb128.c", 151);
return nullptr;
}
return result;
}