	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws_manage_payload_opcode
_ws_manage_payload_opcode:              ## @ws_manage_payload_opcode
	.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	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	callq	_LOG
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ws_handle_close                ## TAILCALL
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_LOG
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ws_handle_pong                 ## TAILCALL
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	callq	_LOG
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ws_handle_ping                 ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_LOG
	movq	8(%rbx), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ws_handle_text_bin             ## TAILCALL
LBB0_8:
	movq	_WS_ERR@GOTPCREL(%rip), %rax
	movq	_WS_CLOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CONTINUATION\n"

	.comm	_WS_ERR,4,2                     ## @WS_ERR
	.comm	_WS_CLOSE,4,2                   ## @WS_CLOSE
L_.str.1:                               ## @.str.1
	.asciz	"TEXT\n"

L_.str.2:                               ## @.str.2
	.asciz	"PONG\n"

L_.str.3:                               ## @.str.3
	.asciz	"PING\n"

L_.str.4:                               ## @.str.4
	.asciz	"CLOSE\n"

	.no_dead_strip	_ws_manage_payload_opcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ws_manage_payload_opcode
_ws_manage_payload_opcode:              ; @ws_manage_payload_opcode
	.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	x19, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG
	ldp	x9, x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x9]
	b	LBB0_7
LBB0_3:
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_LOG
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ws_handle_close
LBB0_4:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ws_handle_pong
LBB0_5:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LOG
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ws_handle_ping
LBB0_6:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ws_handle_text_bin
LBB0_8:
Lloh12:
	adrp	x8, _WS_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WS_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _WS_CLOSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WS_CLOSE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CONTINUATION\n"

	.comm	_WS_ERR,4,2                     ; @WS_ERR
	.comm	_WS_CLOSE,4,2                   ; @WS_CLOSE
l_.str.1:                               ; @.str.1
	.asciz	"TEXT\n"

l_.str.2:                               ; @.str.2
	.asciz	"PONG\n"

l_.str.3:                               ; @.str.3
	.asciz	"PING\n"

l_.str.4:                               ; @.str.4
	.asciz	"CLOSE\n"

	.no_dead_strip	_ws_manage_payload_opcode
.subsections_via_symbols
