//
// sub_9E75A8 from 0x9e75a8 to 0x9e7648 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77a64
//
// 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:07:24 +0000
//
size_t __fastcall sub_9E75A8(int a1, void *ptr, size_t a3)
{
bool v3; // zf
size_t result; // r0
_DWORD *v6; // r0
v3 = ptr == nullptr;
if ( ptr )
v3 = *(_DWORD *)(a1 + 12) == 0;
if ( v3 )
return 0;
result = fread(ptr, 1u, a3, *(FILE **)(a1 + 32));
if ( (*(_WORD *)(*(_DWORD *)(a1 + 32) + 12) & 0x40) != 0 )
{
v6 = (_DWORD *)_errno();
ERR_put_error(2, 11, *v6, "crypto/bio/bss_file.c", 154);
ERR_put_error(32, 130, 2, "crypto/bio/bss_file.c", 155);
return -1;
}
return result;
}