//
// sub_BB0340 from 0xbb0340 to 0xbb0368 (40 bytes)
//
// 2 xrefs:
// > sub_B875D0 @ 0xb876c4
// > sub_B9A2F0 @ 0xb9a6bc
//
// 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 sub_BB0340(__int64 a1, __int64 a2)
{
_QWORD *v2; // x1
v2 = *(_QWORD **)(a2 + 1152);
if ( v2 && (v2 = (_QWORD *)*v2) != nullptr )
return a1 == *v2;
else
return (unsigned int)v2;
}