//
// sub_FF6B3C from 0xff6b3c to 0xff6be8 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x13ff9c0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:48 +0000
//
__int64 __fastcall sub_FF6B3C(__int64 a1, void *ptr, int a3)
{
unsigned int v4; // w20
unsigned int *v6; // x0
if ( !ptr || !*(_DWORD *)(a1 + 24) )
return 0;
v4 = fread(ptr, 1u, a3, *(FILE **)(a1 + 48));
if ( ferror(*(FILE **)(a1 + 48)) )
{
v6 = (unsigned int *)__errno();
v4 = -1;
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 v4;
}