// // CRYPTO_ocb128_copy_ctx from 0x103c584 to 0x103c634 (176 bytes) // // 2 xrefs: // > sub_1022194 @ 0x1022268 // > @ 0x580f0 // // 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:16:27 +0000 // void *__fastcall CRYPTO_ocb128_copy_ctx(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4) { void *result; // x0 memcpy(a1, (const void *)a2, 0xC0u); if ( a3 ) a1[2] = a3; if ( a4 ) a1[3] = a4; if ( !*(_QWORD *)(a2 + 88) ) return dword_0 + 1; result = CRYPTO_malloc((void *)(16LL * *(_QWORD *)(a2 + 48)), (__int64)"crypto/modes/ocb128.c", 213); a1[11] = result; if ( result ) { memcpy(result, *(const void **)(a2 + 88), 16 * (*(_QWORD *)(a2 + 40) + 1LL)); return dword_0 + 1; } return result; }