//
// sub_1800B7760 from 0x1800b7760 to 0x1800b7815 (181 bytes)
//
// 3 xrefs:
// > sub_1800B4490 @ 0x1800b453c
// > sub_1800B4490 @ 0x1800b4588
// > ??> @ 0x1801fd17c
//
// This function is hookable on this platform (idp: pc, 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 10:53:59 +0000
//
__int64 __fastcall sub_1800B7760(SOCKET s, char *buf, int len)
{
__int64 result; // rax
__int64 v7; // rdx
__int64 v8; // r8
__int64 v9; // r9
int v10; // [rsp+20h] [rbp-18h] BYREF
_DWORD v11[5]; // [rsp+24h] [rbp-14h] BYREF
v10 = 0;
sub_1800C1770(&v10);
result = sub_18010A250(s, buf, len);
if ( (_DWORD)result == 45 )
{
while ( 1 )
{
FMOD_OS_Time_Sleep(1, v7, v8, v9);
sub_1800C1770(v11);
if ( v11[0] - v10 >= dword_1801AEA78 )
break;
result = sub_18010A250(s, buf, len);
if ( (_DWORD)result != 45 )
return result;
}
return 43;
}
return result;
}