//
// sub_C83340 from 0xc83340 to 0xc8336c (44 bytes)
//
// 1 xrefs:
// > sub_C85C88 @ 0xc85d00
//
// 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_C83340(int a1, int *a2)
{
int v2; // w3
unsigned int v3; // w1
v2 = *a2;
v3 = (a2[1] & a1) + (((a2[1] ^ a1) & 0xFEFEFEFE) >> 1);
return (v3 & v2) + (((v3 ^ v2) & 0xFEFEFEFE) >> 1);
}