//
// lws_plat_context_late_destroy from 0xbc2b7c to 0xbc2bbc (64 bytes)
//
// 2 xrefs:
// > lws_context_destroy @ 0xbbf534
// > ??> @ 0xb9220
//
// 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 lws_plat_context_late_destroy(__int64 a1)
{
void *v2; // x0
v2 = *(void **)(a1 + 8);
if ( v2 )
sub_BBF88C(v2, 0);
close(*(_DWORD *)(a1 + 4564));
close(*(_DWORD *)(a1 + 4568));
return close(*(_DWORD *)(a1 + 4540));
}