{"type": "func", "start": 6442554304, "end": 6442554408, "name": "sub_1800193C0", "pseudocode": "// \n// sub_1800193C0 from 0x1800193c0 to 0x180019428 (104 bytes)\n// \n// 3 xrefs:\n// > cocos2d::extension::WebSocket::init @ 0x180019e41\n// > cocos2d::extension::WebSocket::init @ 0x180019ed6\n// > <???> @ 0x18004cb6c\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_1800193C0(__int64 a1, unsigned int a2, __int64 a3, __int64 a4, __int64 a5)\n{\n  __int64 context; // rax\n  __int64 result; // rax\n\n  context = lws_get_context();\n  result = lws_context_user(context);\n  if ( result )\n    return cocos2d::extension::WebSocket::onSocketCallback(result, a1, a2, a3, a4, a5);\n  return result;\n}", "assembly": "; \n; sub_1800193C0 from 0x1800193c0 to 0x180019428 (104 bytes)\n; \n; 3 xrefs:\n; > cocos2d::extension::WebSocket::init @ 0x180019e41\n; > cocos2d::extension::WebSocket::init @ 0x180019ed6\n; > <???> @ 0x18004cb6c\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, 0x1800193c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800193c5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800193ca\npush    rdi                                                            ; +0xf, 0x1800193cf\nsub     rsp, 30h                                                       ; +0x10, 0x1800193d0\nmov     rdi, r9                                                        ; +0x14, 0x1800193d4\nmov     rsi, r8                                                        ; +0x17, 0x1800193d7\nmov     ebp, edx                                                       ; +0x1a, 0x1800193da\nmov     rbx, rcx                                                       ; +0x1c, 0x1800193dc\ncall    cs:lws_get_context                                             ; +0x1f, 0x1800193df\nmov     rcx, rax                                                       ; +0x25, 0x1800193e5\ncall    cs:lws_context_user                                            ; +0x28, 0x1800193e8\ntest    rax, rax                                                       ; +0x2e, 0x1800193ee\njz      short loc_180019413                                            ; +0x31, 0x1800193f1\nmov     r10, [rsp+38h+arg_20]                                          ; +0x33, 0x1800193f3\nmov     r9, rsi                                                        ; +0x38, 0x1800193f8\nmov     [rsp+38h+var_10], r10                                          ; +0x3b, 0x1800193fb\nmov     r8d, ebp                                                       ; +0x40, 0x180019400\nmov     rdx, rbx                                                       ; +0x43, 0x180019403\nmov     [rsp+38h+var_18], rdi                                          ; +0x46, 0x180019406\nmov     rcx, rax                                                       ; +0x4b, 0x18001940b\ncall    ?onSocketCallback@WebSocket@extension@cocos2d@@AEAAHPEAUlws@@W4lws_callback_reasons@@PEAX2_K@Z; cocos2d::extension::WebSocket::onSocketCallback(lws *,lws_callback_reasons,void *,void *,unsigned __int64) ; +0x4e, 0x18001940e\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x53, 0x180019413\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x58, 0x180019418\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x5d, 0x18001941d\nadd     rsp, 30h                                                       ; +0x62, 0x180019422\npop     rdi                                                            ; +0x66, 0x180019426\nretn                                                                   ; +0x67, 0x180019427", "xrefs": ["cocos2d::extension::WebSocket::init @ 0x180019e41", "cocos2d::extension::WebSocket::init @ 0x180019ed6", "<???> @ 0x18004cb6c"], "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"}