{"type": "func", "start": 6442554912, "end": 6442555068, "name": "sub_180019620", "pseudocode": "// \n// sub_180019620 from 0x180019620 to 0x1800196bc (156 bytes)\n// \n// 3 xrefs:\n// > cocos2d::extension::WebSocket::send @ 0x18001a0ef\n// > cocos2d::extension::WebSocket::send @ 0x18001a19d\n// > <???> @ 0x18004cbc0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:42 +0000\n// \n\n__int64 __fastcall sub_180019620(__int64 a1, __int64 a2)\n{\n  __int64 v4; // rsi\n  __int64 *v5; // rbx\n  __int64 v6; // rdi\n  _QWORD *v7; // rax\n  _QWORD *v8; // rdx\n\n  v4 = a1 + 80;\n  pthread_mutex_lock(a1 + 80);\n  v5 = *(__int64 **)(a1 + 64);\n  v6 = *v5;\n  if ( v5[1] == 0xAAAAAAAAAAAAAAALL )\n    std::_Xlength_error(\"list too long\");\n  v7 = (_QWORD *)sub_18001F040(0x18u);\n  v7[2] = a2;\n  ++v5[1];\n  v8 = *(_QWORD **)(v6 + 8);\n  *v7 = v6;\n  v7[1] = v8;\n  *(_QWORD *)(v6 + 8) = v7;\n  *v8 = v7;\n  return pthread_mutex_unlock(v4);\n}", "assembly": "; \n; sub_180019620 from 0x180019620 to 0x1800196bc (156 bytes)\n; \n; 3 xrefs:\n; > cocos2d::extension::WebSocket::send @ 0x18001a0ef\n; > cocos2d::extension::WebSocket::send @ 0x18001a19d\n; > <???> @ 0x18004cbc0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:42 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180019620\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180019625\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18001962a\npush    rdi                                                            ; +0xf, 0x18001962f\nsub     rsp, 30h                                                       ; +0x10, 0x180019630\nmov     rbp, rdx                                                       ; +0x14, 0x180019634\nmov     rbx, rcx                                                       ; +0x17, 0x180019637\nlea     rsi, [rcx+50h]                                                 ; +0x1a, 0x18001963a\nmov     rcx, rsi                                                       ; +0x1e, 0x18001963e\ncall    cs:pthread_mutex_lock                                          ; +0x21, 0x180019641\nmov     rbx, [rbx+40h]                                                 ; +0x27, 0x180019647\nmov     rdi, [rbx]                                                     ; +0x2b, 0x18001964b\nmov     rax, 0AAAAAAAAAAAAAAAh                                         ; +0x2e, 0x18001964e\ncmp     [rbx+8], rax                                                   ; +0x38, 0x180019658\njnz     short loc_18001966C                                            ; +0x3c, 0x18001965c\nlea     rcx, aListTooLong; \"list too long\"                             ; +0x3e, 0x18001965e\ncall    cs:?_Xlength_error@std@@YAXPEBD@Z; std::_Xlength_error(char const *) ; +0x45, 0x180019665\nalign 4                                                                ; +0x4b, 0x18001966b\nmov     [rsp+38h+var_18], rbx                                          ; +0x4c, 0x18001966c\nmov     [rsp+38h+var_10], 0                                            ; +0x51, 0x180019671\nmov     ecx, 18h; Size                                                 ; +0x5a, 0x18001967a\ncall    sub_18001F040                                                  ; +0x5f, 0x18001967f\nmov     [rax+10h], rbp                                                 ; +0x64, 0x180019684\ninc     qword ptr [rbx+8]                                              ; +0x68, 0x180019688\nmov     rdx, [rdi+8]                                                   ; +0x6c, 0x18001968c\nmov     [rax], rdi                                                     ; +0x70, 0x180019690\nmov     [rax+8], rdx                                                   ; +0x73, 0x180019693\nmov     [rdi+8], rax                                                   ; +0x77, 0x180019697\nmov     [rdx], rax                                                     ; +0x7b, 0x18001969b\nmov     rcx, rsi                                                       ; +0x7e, 0x18001969e\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x81, 0x1800196a1\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x86, 0x1800196a6\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x8b, 0x1800196ab\nadd     rsp, 30h                                                       ; +0x90, 0x1800196b0\npop     rdi                                                            ; +0x94, 0x1800196b4\njmp     cs:pthread_mutex_unlock                                        ; +0x95, 0x1800196b5", "xrefs": ["cocos2d::extension::WebSocket::send @ 0x18001a0ef", "cocos2d::extension::WebSocket::send @ 0x18001a19d", "<???> @ 0x18004cbc0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}