//
// sub_BFBA2 from 0xbfba2 to 0xbfbda (56 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:41:48 +0000
//
int __fastcall sub_BFBA2(int a1, void *ptr, size_t a3, size_t *a4)
{
size_t v7; // r0
int result; // r0
int v9; // r1
v7 = fread(ptr, 1u, a3, *(FILE **)(a1 + 4));
*a4 = v7;
if ( v7 == a3 )
return 0;
v9 = feof(*(FILE **)(a1 + 4));
result = 16;
if ( !v9 )
return 13;
return result;
}