//
// sub_EDA22C from 0xeda22c to 0xeda2b4 (136 bytes)
//
// 1 xrefs:
// > TIFFFdOpen @ 0xeda41c
//
// 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:11:45 +0000
//
__int64 __fastcall sub_EDA22C(int a1, _QWORD *a2, size_t *a3)
{
size_t v6; // x20
void *v7; // x0
_BYTE v9[48]; // [xsp+30h] [xbp+30h] BYREF
size_t len; // [xsp+60h] [xbp+60h]
if ( fstat(a1, (struct stat *)v9) < 0 )
v6 = 0;
else
v6 = len;
v7 = mmap(nullptr, v6, 1, 1, a1, 0);
*a2 = v7;
if ( v7 == (void *)-1LL )
return 0;
*a3 = v6;
return 1;
}