//
// TIFFCheckpointDirectory from 0xc41a4c to 0xc41ac0 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0xb59b0
//
// 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
//
__int64 __fastcall TIFFCheckpointDirectory(__int64 a1)
{
unsigned int v2; // w20
__int64 v3; // x0
if ( !*(_QWORD *)(a1 + 232) )
TIFFSetupStrips();
v2 = 1;
if ( *(_DWORD *)(a1 + 12) )
v2 = sub_C3EAD8(a1, 1, 0, nullptr);
v3 = (*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(a1 + 976))(*(_QWORD *)(a1 + 952), 0, 2);
TIFFSetWriteOffset(a1, v3);
return v2;
}