//
// BLAKE2b_Init from 0xaf3424 to 0xaf3508 (228 bytes)
//
// 2 xrefs:
// > sub_ADE0C4 @ 0xade0d0
// > ??> @ 0x8541c
//
// 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:10:59 +0000
//
int __fastcall BLAKE2b_Init(char *a1)
{
char *v2; // r2
__int64 *v3; // r3
__int64 v4; // t1
__int64 v6; // [sp+10h] [bp-4Ch]
_DWORD v7[4]; // [sp+18h] [bp-44h] BYREF
char v8; // [sp+28h] [bp-34h]
char v9; // [sp+29h] [bp-33h]
__int16 v10; // [sp+2Ah] [bp-32h]
__int16 v11; // [sp+2Ch] [bp-30h]
__int16 v12; // [sp+2Eh] [bp-2Eh]
__int16 v13; // [sp+30h] [bp-2Ch]
__int16 v14; // [sp+32h] [bp-2Ah]
__int16 v15; // [sp+34h] [bp-28h]
__int16 v16; // [sp+36h] [bp-26h]
int v17; // [sp+38h] [bp-24h]
int v18; // [sp+3Ch] [bp-20h]
int v19; // [sp+40h] [bp-1Ch]
int v20; // [sp+44h] [bp-18h]
int v21; // [sp+48h] [bp-14h]
int v22; // [sp+4Ch] [bp-10h]
int v23; // [sp+50h] [bp-Ch]
int v24; // [sp+54h] [bp-8h]
memset(&v7[1], 0, 12);
v8 = 0;
v9 = 0;
v10 = 0;
v11 = 0;
v12 = 0;
v13 = 0;
v14 = 0;
v15 = 0;
v16 = 0;
v17 = 0;
v18 = 0;
v19 = 0;
v20 = 0;
v21 = 0;
v22 = 0;
v23 = 0;
v24 = 0;
v7[0] = 16842816;
memset(a1, 0, 0xE8u);
memcpy(a1, &unk_C705F8, 0x40u);
v2 = a1 - 8;
v3 = (__int64 *)v7;
do
{
v4 = *((_QWORD *)v2 + 1);
v2 += 8;
v6 = *v3++;
*(_QWORD *)v2 = v4 ^ v6;
}
while ( v2 != a1 + 56 );
return 1;
}