//
// sub_C1267C from 0xc1267c to 0xc12730 (180 bytes)
//
// 2 xrefs:
// > jinit_marker_reader @ 0xc12e2c
// > jinit_marker_reader @ 0xc12e38
//
// 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_C1267C(__int64 *a1)
{
int v1; // w1
unsigned int v3; // w2
__int64 v5; // x3
v1 = *((_DWORD *)a1 + 143);
if ( !v1 )
{
if ( !(unsigned int)sub_C10170(a1) )
return 0;
v1 = *((_DWORD *)a1 + 143);
}
v3 = *(_DWORD *)(a1[77] + 32);
if ( v3 + 208 == v1 )
{
v5 = *a1;
*(_DWORD *)(v5 + 44) = v3;
*(_DWORD *)(v5 + 40) = 100;
(*(void (__fastcall **)(__int64 *, __int64))(*a1 + 8))(a1, 3);
*((_DWORD *)a1 + 143) = 0;
goto LABEL_4;
}
if ( (*(unsigned int (__fastcall **)(__int64 *, _QWORD))(a1[5] + 40))(a1, v3) )
{
LABEL_4:
*(_DWORD *)(a1[77] + 32) = ((unsigned __int8)*(_DWORD *)(a1[77] + 32) + 1) & 7;
return 1;
}
return 0;
}