//
// BLAKE2s_Init from 0x8e0274 to 0x8e0340 (204 bytes)
//
// 2 xrefs:
// > sub_8C9120 @ 0x8c912c
// > ??> @ 0x6b9cc
//
// 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 BLAKE2s_Init(_DWORD *a1)
{
int *v2; // r3
int *v3; // r1
int v4; // r0
int v5; // t1
int v6; // t1
_DWORD v8[2]; // [sp+8h] [bp-24h] BYREF
char v9; // [sp+10h] [bp-1Ch]
char v10; // [sp+11h] [bp-1Bh]
char v11; // [sp+12h] [bp-1Ah]
char v12; // [sp+13h] [bp-19h]
char v13; // [sp+14h] [bp-18h]
char v14; // [sp+15h] [bp-17h]
char v15; // [sp+16h] [bp-16h]
char v16; // [sp+17h] [bp-15h]
int v17; // [sp+18h] [bp-14h]
int v18; // [sp+1Ch] [bp-10h]
int v19; // [sp+20h] [bp-Ch]
int v20; // [sp+24h] [bp-8h]
v8[1] = 0;
v9 = 0;
v10 = 0;
v11 = 0;
v12 = 0;
v13 = 0;
v14 = 0;
v15 = 0;
v16 = 0;
v17 = 0;
v19 = 0;
v18 = 0;
v20 = 0;
v8[0] = 16842784;
memset(a1, 0, 0x74u);
v2 = a1 - 1;
v3 = v8;
*a1 = 1779033703;
a1[1] = -1150833019;
a1[2] = 1013904242;
a1[3] = -1521486534;
a1[4] = 1359893119;
a1[5] = -1694144372;
a1[6] = 528734635;
a1[7] = 1541459225;
do
{
v5 = v2[1];
++v2;
v4 = v5;
v6 = *v3++;
*v2 = v6 ^ v4;
}
while ( v2 != a1 + 7 );
return 1;
}