//
// sub_6F65B4 from 0x6f65b4 to 0x6f667c (200 bytes)
//
// 3 xrefs:
// > TIFFFdOpen @ 0x6f66f8
// > TIFFFdOpen @ 0x6f66fc
// > ??> @ 0x6f6764
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_6F65B4(int a1, void **a2, _QWORD *a3)
{
__int64 v3; // kr00_8
v3 = sub_6F6564(a1);
if ( HIDWORD(v3) != (int)v3 >> 31 )
return 0;
*a2 = mmap(nullptr, v3, 1, 1, a1, 0);
if ( *a2 == (void *)-1 )
return 0;
*a3 = (int)v3;
return 1;
}