//
// sub_E7C440 from 0xe7c440 to 0xe7c468 (40 bytes)
//
// 2 xrefs:
// > jpeg_mem_dest @ 0xe7c6d0
// > jpeg_mem_dest @ 0xe7c6d8
//
// 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_E7C440(__int64 a1)
{
__int64 v1; // x0
__int64 v2; // x1
_QWORD *v3; // x2
__int64 result; // x0
v1 = *(_QWORD *)(a1 + 40);
v2 = *(_QWORD *)(v1 + 72);
**(_QWORD **)(v1 + 40) = *(_QWORD *)(v1 + 64);
v3 = *(_QWORD **)(v1 + 48);
result = v2 - *(_QWORD *)(v1 + 8);
*v3 = result;
return result;
}