//
// sub_95D5E0 from 0x95d5e0 to 0x95d65e (126 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
//
int __fastcall sub_95D5E0(int a1)
{
int v2; // r6
int v3; // r5
int result; // r0
int v5; // [sp+8h] [bp-1Ch] BYREF
_BYTE v6[8]; // [sp+Ch] [bp-18h] BYREF
int v7; // [sp+14h] [bp-10h] BYREF
do
{
v2 = (*(int (__fastcall **)(_DWORD, _DWORD, _BYTE *, int *, int *))(**(_DWORD **)(a1 + 36) + 20))(
*(_DWORD *)(a1 + 36),
*(_DWORD *)(a1 + 40),
v6,
&v7,
&v5);
v3 = v5 - (_DWORD)v6;
if ( fwrite(v6, 1u, v5 - (_DWORD)v6, *(FILE **)(a1 + 32)) != v3 )
return -1;
}
while ( v2 == 1 );
if ( v2 == 2 )
return -1;
result = fflush(*(FILE **)(a1 + 32));
if ( result )
return -1;
return result;
}