//
// sub_CB118 from 0xcb118 to 0xcb148 (48 bytes)
//
// 2 xrefs:
// > sub_CAABC @ 0xcad90
// > sub_CAF24 @ 0xcb0a8
//
// 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 12:14:48 +0000
//
__int64 __fastcall sub_CB118(__int64 a1)
{
__int64 v1; // x8
__int64 v2; // x8
if ( *(_WORD *)(a1 + 424) != 1 || (v1 = *(_QWORD *)(*(_QWORD *)(a1 + 120) + 16LL), (*(_BYTE *)(v1 + 124) & 4) != 0) )
v2 = 0;
else
v2 = *(_QWORD *)(v1 + 88);
*(_QWORD *)(a1 + 112) = v2;
return 0;
}