//
// sub_E7C468 from 0xe7c468 to 0xe7c4d0 (104 bytes)
//
// 1 xrefs:
// > jpeg_stdio_dest @ 0xe7c644
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:43 +0000
//
__int64 __fastcall sub_E7C468(__int64 a1)
{
__int64 v1; // x19
void (__fastcall *v3)(__int64); // x2
v1 = *(_QWORD *)(a1 + 40);
if ( fwrite(*(const void **)(v1 + 48), 1u, 0x1000u, *(FILE **)(v1 + 40)) != 4096 )
{
v3 = **(void (__fastcall ***)(__int64))a1;
*(_DWORD *)(*(_QWORD *)a1 + 40LL) = 38;
v3(a1);
}
*(_QWORD *)v1 = *(_QWORD *)(v1 + 48);
*(_QWORD *)(v1 + 8) = 4096;
return 1;
}