//
// sub_8F07A4 from 0x8f07a4 to 0x8f084c (168 bytes)
//
// 3 xrefs:
// > TIFFInitPackBits @ 0x8f1274
// > TIFFInitPackBits @ 0x8f1278
// > ??> @ 0x8f12e0
//
// 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:13 +0000
//
int __fastcall sub_8F07A4(int a1)
{
_DWORD *v2; // r4
*(_DWORD *)(a1 + 576) = TIFFmalloc(4);
if ( !*(_DWORD *)(a1 + 576) )
return 0;
v2 = *(_DWORD **)(a1 + 576);
if ( (*(_DWORD *)(a1 + 12) & 0x400) != 0 )
*v2 = TIFFTileRowSize(a1);
else
*v2 = TIFFScanlineSize(a1);
return 1;
}