//
// sub_783A54 from 0x783a54 to 0x783a7c (40 bytes)
//
// 2 xrefs:
// > sub_783A0E @ 0x783a50
// > sub_7814DC @ 0x7814fc
//
// 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_783A54(int a1, int a2, int a3, int a4)
{
int v4; // r4
int v5; // r0
int v6; // r0
*(_BYTE *)(v4 + a4) = 0;
v5 = (*(int (__fastcall **)(int, int, _DWORD))(v4 + 264))(v4, 255, *(_DWORD *)(v4 + 268));
++*(_DWORD *)(v4 + 288);
v6 = sub_781502(v5, 1, 288, 0);
return sub_783A7C(v6);
}