//
// sub_783870 from 0x783870 to 0x78389a (42 bytes)
//
// 2 xrefs:
// > sub_783848 @ 0x78386c
// > sub_78165C @ 0x781672
//
// 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_783870(int a1, int a2, int a3)
{
int v3; // r4
char v4; // r7
__int64 v5; // r0
int v6; // r0
*(_BYTE *)(v3 + a3) = 0;
v5 = ((__int64 (__fastcall *)(int, int, _DWORD))*(_DWORD *)(v3 + 264))(v3, 255, *(_DWORD *)(v3 + 268));
++*(_DWORD *)(v3 + 288);
*(_BYTE *)v3 = v4;
v6 = sub_781690(v5, SHIDWORD(v5), 288, 1);
return sub_78389A(v6);
}