//
// sub_14008B580 from 0x14008b580 to 0x14008b5c6 (70 bytes)
//
// 2 xrefs:
// > ??> @ 0x140715ea0
// > ??> @ 0x140912848
//
// This function is hookable on this platform (idp: pc, 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 11:25:59 +0000
//
_BYTE *__fastcall sub_14008B580(_BYTE *Block, char a2)
{
bool v2; // zf
v2 = (Block[8] & 1) == 0;
*(_QWORD *)Block = &CCallbackImpl<152>::`vftable';
if ( !v2 )
SteamAPI_UnregisterCallback();
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}