//
// sub_783848 from 0x783848 to 0x783870 (40 bytes)
//
// 1 xrefs:
// > sub_782D24 @ 0x782da8
//
// 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_783848(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_782DAE(v5, 1);
return sub_783870(v6);
}