//
// sub_8E42E8 from 0x8e42e8 to 0x8e43e0 (248 bytes)
//
// 2 xrefs:
// > sub_8E5A20 @ 0x8e5e10
// > sub_8E6108 @ 0x8e632c
//
// 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:10 +0000
//
bool __fastcall sub_8E42E8(int a1)
{
float *v4; // [sp+8h] [bp-Ch] BYREF
float *v5; // [sp+Ch] [bp-8h] BYREF
if ( *(_DWORD *)(a1 + 68) || (*(_DWORD *)(a1 + 68) = TIFFmalloc(6168)) != 0 )
{
TIFFGetFieldDefaulted(*(_DWORD *)a1, 0x211u, &v5);
TIFFGetFieldDefaulted(*(_DWORD *)a1, 0x214u, &v4);
return TIFFYCbCrToRGBInit(*(_DWORD **)(a1 + 68), v5, v4) >= 0;
}
else
{
TIFFErrorExt(
*(_DWORD *)(*(_DWORD *)a1 + 628),
(int)"initYCbCrConversion",
"No space for YCbCr->RGB conversion state");
return 0;
}
}