//
// sub_780426 from 0x780426 to 0x780452 (44 bytes)
//
// 2 xrefs:
// > sub_77FAEA @ 0x780424
// > sub_781096 @ 0x7810a2
//
// 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_780426(int a1)
{
int *v1; // r4
int v2; // r7
int v3; // r3
int v5; // r1
_DWORD *v6; // r9
v3 = v1[5];
if ( v3 >= v1[6] )
return sub_780370(a1);
v5 = v1[4];
v6 = (_DWORD *)(v5 + 12 * v3);
v1[5] = v3 + 1;
if ( v6 )
{
*v6 = 6;
v6[1] = v2;
}
return sub_77FFBE(a1, v5, *(unsigned __int8 *)v1[3], v1[3]);
}