//
// sub_CB2698 from 0xcb2698 to 0xcb27b0 (280 bytes)
//
// 1 xrefs:
// > sub_CB08E8 @ 0xcb0a88
//
// 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_CB2698(__int64 a1, __int64 a2)
{
__int64 i; // x26
__int64 v5; // x25
__int64 j; // x24
__int64 v7; // x19
__int64 v8; // x27
int v9; // w3
unsigned int v10; // w28
__int64 v11; // x2
__int64 result; // x0
for ( i = 264; i != 1320; i += 264 )
{
v5 = i - 264;
do
{
for ( j = 0; j != 33; j += 11 )
{
v7 = 0;
v8 = v5 + j;
do
{
while ( 1 )
{
v9 = byte_F57B80[v8 + v7];
v10 = *(unsigned __int8 *)(a2 + v7 + v8 + 4);
v11 = byte_F58330[v8 + v7++];
if ( (unsigned int)sub_CB67B0(a1, v9 != v10, v11) )
break;
if ( v7 == 11 )
goto LABEL_8;
}
sub_CB6B6C(a1, v10, 8);
}
while ( v7 != 11 );
LABEL_8:
;
}
v5 += 33;
}
while ( i != v5 );
}
result = sub_CB6994(a1, *(unsigned int *)(a2 + 19884));
if ( (_DWORD)result )
return sub_CB6B6C(a1, *(unsigned __int8 *)(a2 + 3), 8);
return result;
}