//
// sub_95D668 from 0x95d668 to 0x95d6b0 (72 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 12:05:35 +0000
//
size_t __fastcall sub_95D668(int a1, void *ptr, signed int n)
{
signed int v7; // r4
if ( *(_BYTE *)(a1 + 44) )
return j_fwrite(ptr, 4u, n, *(FILE **)(a1 + 32));
v7 = 0;
if ( n >= 1 )
{
do
{
if ( (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)a1 + 52))(a1, *((_DWORD *)ptr + v7)) == -1 )
break;
++v7;
}
while ( v7 < n );
}
return v7;
}