//
// sub_180019530 from 0x180019530 to 0x180019575 (69 bytes)
//
// 2 xrefs:
// > cocos2d::extension::WebSocket::init @ 0x180019fc7
// > ??> @ 0x18004cba8
//
// 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 12:15:42 +0000
//
__int64 __fastcall sub_180019530(__int64 a1)
{
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 104) + 8LL))(*(_QWORD *)(a1 + 104));
if ( !*(_BYTE *)(a1 + 112) )
{
while ( !(*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 104) + 16LL))(*(_QWORD *)(a1 + 104))
&& !*(_BYTE *)(a1 + 112) )
;
}
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 104) + 24LL))(*(_QWORD *)(a1 + 104));
return 0;
}