// // lws_send_pipe_choked from 0x85bf18 to 0x85bf56 (62 bytes) // // 3 xrefs: // > sub_857130 @ 0x85727c // > lws_serve_http_file_fragment @ 0x8580dc // > sub_85C7F8 @ 0x85c888 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:02:40 +0000 // unsigned int __fastcall lws_send_pipe_choked(int a1) { unsigned int result; // r0 int v2; // r4 int v3; // r0 bool v4; // zf struct pollfd v5; // [sp+0h] [bp-10h] BYREF if ( *(_DWORD *)(a1 + 256) ) return 1; v2 = *(_DWORD *)(a1 + 228); v5.revents = 0; v5.fd = v2; v5.events = 4; v3 = poll(&v5, 1u, 0); v4 = v3 == 1; if ( v3 == 1 ) result = (unsigned __int16)v5.revents; else result = 1; if ( v4 ) return ((result ^ 4) >> 2) & 1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source