//
// sub_622EC from 0x622ec to 0x6235a (110 bytes)
//
// 1 xrefs:
// > sub_62B54 @ 0x62dd4
//
// 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 sub_622EC(int a1, int a2, _DWORD *a3)
{
int v4; // r0
int v5; // r11
int v6; // r10
_DWORD *v7; // r1
char **v8; // r4
_DWORD *v9; // r8
int v10; // r5
int v11; // r6
_DWORD *v14; // [sp+0h] [bp-20h]
v4 = sub_BE354(a2, 46);
if ( !v4 )
return 18;
v14 = a3;
v5 = v4 + 1;
v6 = 0;
v7 = &unk_E48BC;
v8 = off_E48C4;
while ( v6 != 18 )
{
v9 = v7;
v10 = 0;
v11 = v7[7 * v6 + 1];
while ( v10 < v11 )
{
if ( !sub_BE2D6(v5, v8[v10++]) )
{
*v14 = v9[7 * v6];
return 0;
}
}
v8 += 7;
++v6;
v7 = v9;
}
return 0;
}