//
// lws_plat_context_late_destroy from 0xe38d3c to 0xe38d7c (64 bytes)
//
// 2 xrefs:
// > lws_context_destroy @ 0xe356f4
// > ??> @ 0xf19a8
//
// 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:09:59 +0000
//
__int64 __fastcall lws_plat_context_late_destroy(__int64 a1)
{
void *v2; // x0
v2 = *(void **)(a1 + 8);
if ( v2 )
sub_E35A4C(v2, 0);
close(*(_DWORD *)(a1 + 4564));
close(*(_DWORD *)(a1 + 4568));
return close(*(_DWORD *)(a1 + 4540));
}