//
// sub_CB54BC from 0xcb54bc to 0xcb551c (96 bytes)
//
// 12 xrefs:
// > sub_C99804 @ 0xc99858
// > sub_C99D08 @ 0xc9a684
// > sub_CA0328 @ 0xca095c
// > sub_CA1168 @ 0xca1634
// > sub_CA5088 @ 0xca50c8
// > sub_CA5088 @ 0xca50e0
// > sub_CB08E8 @ 0xcb0cd0
// > sub_CB08E8 @ 0xcb0d34
// > sub_CB50E8 @ 0xcb5188
// > sub_CB50E8 @ 0xcb52c4
// > sub_CB50E8 @ 0xcb52f0
// > sub_CB50E8 @ 0xcb5418
//
// 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_CB54BC(__int64 a1, unsigned int a2, unsigned int *a3)
{
__int64 (__fastcall *v3)(_QWORD, __int64); // x3
__int64 result; // x0
if ( !a3 )
return 1;
if ( *a3 == a2 )
return 1;
v3 = *(__int64 (__fastcall **)(_QWORD, __int64))(a1 + 144);
*a3 = a2;
if ( !v3 )
return 1;
result = v3(a2, a1);
if ( (_DWORD)result )
return 1;
*(_DWORD *)(a1 + 136) = 10;
return result;
}