//
// sub_906174 from 0x906174 to 0x90623c (200 bytes)
//
// 3 xrefs:
// > TIFFFdOpen @ 0x9062b8
// > TIFFFdOpen @ 0x9062bc
// > ??> @ 0x906324
//
// 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:04:18 +0000
//
int __fastcall sub_906174(int a1, void **a2, _QWORD *a3)
{
__int64 v3; // kr00_8
v3 = sub_906124(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;
}