	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws_handle_text_bin
_ws_handle_text_bin:                    ## @ws_handle_text_bin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movl	(%rax), %edx
	cmpl	$0, 4(%rax)
	je	LBB0_4
## %bb.1:
	movq	(%rcx), %rsi
	movq	_WS_OPCODE_CONTINUATION@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_2
LBB0_4:
	movl	16(%rax), %esi
	movl	20(%rax), %edi
	movl	12(%rcx), %ecx
	callq	_ws_unmask_payload
	movq	8(%rbx), %rax
	movq	$0, 24(%rax)
	movl	$1, 4(%rax)
	movq	16(%rbx), %rcx
	cmpl	$0, 8(%rcx)
	je	LBB0_3
## %bb.5:
	movq	8(%rax), %rsi
	movq	_WS_OPCODE_TEXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_8
## %bb.6:
	movl	16(%rax), %esi
	movl	20(%rax), %edi
	callq	_ws_validate_string
	testq	%rax, %rax
	je	LBB0_7
## %bb.16:
	movq	_WS_CLOSE_INVALID_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WS_ERR@GOTPCREL(%rip), %rax
	movq	_WS_CLOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ws_handle_err                  ## TAILCALL
LBB0_2:
	movq	_WS_ERR@GOTPCREL(%rip), %rax
	movq	_WS_CLOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	8(%rbx), %rax
	movq	8(%rax), %rsi
LBB0_8:
	movq	_WS_OPCODE_CONTINUATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_15
## %bb.9:
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.10:
	movq	_wsconfig@GOTPCREL(%rip), %rdx
	cmpq	$0, 8(%rdx)
	je	LBB0_12
## %bb.11:
	movl	16(%rax), %ecx
	movl	20(%rax), %edx
	movq	%rbx, %rdi
	callq	_ws_send_data
	jmp	LBB0_15
LBB0_12:
	cmpl	$0, (%rdx)
	movl	(%r14), %edi
	je	LBB0_13
## %bb.14:
	movq	%rbx, %rsi
	callq	*%rcx
	jmp	LBB0_15
LBB0_13:
	movl	16(%rax), %edx
	movl	20(%rax), %esi
	callq	_ws_write_fifo
LBB0_15:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ws_free_message                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WS_OPCODE_CONTINUATION,8,3     ## @WS_OPCODE_CONTINUATION
	.comm	_WS_ERR,4,2                     ## @WS_ERR
	.comm	_WS_CLOSE,4,2                   ## @WS_CLOSE
	.comm	_WS_OPCODE_TEXT,8,3             ## @WS_OPCODE_TEXT
	.comm	_WS_CLOSE_INVALID_UTF8,4,2      ## @WS_CLOSE_INVALID_UTF8
	.comm	_wsconfig,16,3                  ## @wsconfig
	.no_dead_strip	_ws_handle_text_bin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ws_handle_text_bin
_ws_handle_text_bin:                    ; @ws_handle_text_bin
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldp	x8, x9, [x0, #8]
	ldp	w2, w10, [x8]
	cbz	w10, LBB0_2
; %bb.1:
	ldr	x10, [x9]
Lloh0:
	adrp	x11, _WS_OPCODE_CONTINUATION@GOTPAGE
Lloh1:
	ldr	x11, [x11, _WS_OPCODE_CONTINUATION@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_6
LBB0_2:
	ldp	w1, w0, [x8, #16]
	ldr	w3, [x9, #12]
	bl	_ws_unmask_payload
	ldp	x8, x9, [x19, #8]
	str	xzr, [x8, #24]
	mov	w10, #1
	str	w10, [x8, #4]
	ldr	w9, [x9, #8]
	cbz	w9, LBB0_7
; %bb.3:
	ldr	x1, [x8, #8]
Lloh3:
	adrp	x9, _WS_OPCODE_TEXT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WS_OPCODE_TEXT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x1, x9
	b.ne	LBB0_9
; %bb.4:
	ldp	w1, w0, [x8, #16]
	bl	_ws_validate_string
	cbz	x0, LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, _WS_CLOSE_INVALID_UTF8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WS_CLOSE_INVALID_UTF8@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _WS_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WS_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _WS_CLOSE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WS_CLOSE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ws_handle_err
LBB0_6:
Lloh15:
	adrp	x8, _WS_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WS_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _WS_CLOSE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WS_CLOSE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x1, [x8, #8]
LBB0_9:
Lloh21:
	adrp	x9, _WS_OPCODE_CONTINUATION@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WS_OPCODE_CONTINUATION@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x1, x9
	b.eq	LBB0_16
; %bb.10:
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_16
; %bb.11:
Lloh24:
	adrp	x10, _wsconfig@GOTPAGE
Lloh25:
	ldr	x10, [x10, _wsconfig@GOTPAGEOFF]
	ldr	x11, [x10, #8]
	cbz	x11, LBB0_13
; %bb.12:
	ldp	w3, w2, [x8, #16]
	mov	x0, x19
	bl	_ws_send_data
	b	LBB0_16
LBB0_13:
	ldr	w10, [x10]
	ldr	w0, [x20]
	cbz	w10, LBB0_15
; %bb.14:
	mov	x1, x19
	blr	x9
	b	LBB0_16
LBB0_15:
	ldp	w2, w1, [x8, #16]
	bl	_ws_write_fifo
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ws_free_message
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WS_OPCODE_CONTINUATION,8,3     ; @WS_OPCODE_CONTINUATION
	.comm	_WS_ERR,4,2                     ; @WS_ERR
	.comm	_WS_CLOSE,4,2                   ; @WS_CLOSE
	.comm	_WS_OPCODE_TEXT,8,3             ; @WS_OPCODE_TEXT
	.comm	_WS_CLOSE_INVALID_UTF8,4,2      ; @WS_CLOSE_INVALID_UTF8
	.comm	_wsconfig,16,3                  ; @wsconfig
	.no_dead_strip	_ws_handle_text_bin
.subsections_via_symbols
