//
// sub_EF96B4 from 0xef96b4 to 0xef9750 (156 bytes)
//
// 1 xrefs:
// > sub_EFBE48 @ 0xefbf14
//
// 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 13:12:15 +0000
//
__int64 __fastcall sub_EF96B4(unsigned int a1, int *a2)
{
int v2; // w4
unsigned int v3; // w5
unsigned int v4; // w3
unsigned int v5; // w2
unsigned int v6; // w1
unsigned int v7; // w0
v2 = *a2;
v3 = *(a2 - 1);
v4 = HIBYTE(*a2) + HIBYTE(a1) - HIBYTE(v3);
if ( v4 > 0xFF )
v4 = ~v4 >> 24;
v5 = BYTE2(a1) + BYTE2(v2) - BYTE2(v3);
if ( v5 > 0xFF )
v5 = ~v5 >> 24;
v6 = BYTE1(a1) + BYTE1(v2) - BYTE1(v3);
if ( v6 > 0xFF )
v6 = ~v6 >> 24;
v7 = (unsigned __int8)v2 + (unsigned __int8)a1 - (unsigned __int8)v3;
if ( v7 > 0xFF )
v7 = ~v7 >> 24;
return (v4 << 24) | (v5 << 16) | (v6 << 8) | v7;
}