; ; sub_180019580 from 0x180019580 to 0x18001961c (156 bytes) ; ; 2 xrefs: ; > cocos2d::extension::WebSocket::onSocketCallback @ 0x18001a7ed ; > @ 0x18004cbb4 ; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x180019580 mov [rsp+arg_8], rbp ; +0x5, 0x180019585 mov [rsp+arg_10], rsi ; +0xa, 0x18001958a push rdi ; +0xf, 0x18001958f sub rsp, 30h ; +0x10, 0x180019590 mov rbp, rdx ; +0x14, 0x180019594 mov rbx, rcx ; +0x17, 0x180019597 lea rsi, [rcx+48h] ; +0x1a, 0x18001959a mov rcx, rsi ; +0x1e, 0x18001959e call cs:pthread_mutex_lock ; +0x21, 0x1800195a1 mov rbx, [rbx+38h] ; +0x27, 0x1800195a7 mov rdi, [rbx] ; +0x2b, 0x1800195ab mov rax, 0AAAAAAAAAAAAAAAh ; +0x2e, 0x1800195ae cmp [rbx+8], rax ; +0x38, 0x1800195b8 jnz short loc_1800195CC ; +0x3c, 0x1800195bc lea rcx, aListTooLong; "list too long" ; +0x3e, 0x1800195be call cs:?_Xlength_error@std@@YAXPEBD@Z; std::_Xlength_error(char const *) ; +0x45, 0x1800195c5 align 4 ; +0x4b, 0x1800195cb mov [rsp+38h+var_18], rbx ; +0x4c, 0x1800195cc mov [rsp+38h+var_10], 0 ; +0x51, 0x1800195d1 mov ecx, 18h; Size ; +0x5a, 0x1800195da call sub_18001F040 ; +0x5f, 0x1800195df mov [rax+10h], rbp ; +0x64, 0x1800195e4 inc qword ptr [rbx+8] ; +0x68, 0x1800195e8 mov rdx, [rdi+8] ; +0x6c, 0x1800195ec mov [rax], rdi ; +0x70, 0x1800195f0 mov [rax+8], rdx ; +0x73, 0x1800195f3 mov [rdi+8], rax ; +0x77, 0x1800195f7 mov [rdx], rax ; +0x7b, 0x1800195fb mov rcx, rsi ; +0x7e, 0x1800195fe mov rbx, [rsp+38h+arg_0] ; +0x81, 0x180019601 mov rbp, [rsp+38h+arg_8] ; +0x86, 0x180019606 mov rsi, [rsp+38h+arg_10] ; +0x8b, 0x18001960b add rsp, 30h ; +0x90, 0x180019610 pop rdi ; +0x94, 0x180019614 jmp cs:pthread_mutex_unlock ; +0x95, 0x180019615