//
// -[Reachability networkStatusForFlags:] from 0x10012ad18 to 0x10012ad98 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x100845300
//
// 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
//
unsigned int __cdecl -[Reachability networkStatusForFlags:](Reachability *self, SEL a2, unsigned int a3)
{
__CFString *v5; // x0
unsigned int v6; // w12
int v7; // w11
unsigned int v8; // w10
unsigned int v9; // w9
if ( (a3 & 2) == 0 )
return 0;
v5 = -[Reachability key](self, "key");
v6 = (a3 >> 1) & 2;
if ( (a3 & 0xFFF8FFFD) == 0 )
v6 = 2;
if ( (a3 & 1) != 0 )
v7 = 2;
else
v7 = v6;
if ( (a3 & 0xFFF8FFFD) == 5 )
v8 = 0;
else
v8 = v7;
if ( (a3 & 0x40000) != 0 )
v9 = 1;
else
v9 = v8;
if ( v5 == CFSTR("LocalWiFiConnection") )
return HIWORD(a3) & 2;
else
return v9;
}