	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ws_recv_loop                   ## -- Begin function ws_recv_loop
	.p2align	4, 0x90
_ws_recv_loop:                          ## @ws_recv_loop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	8(%rbx), %rax
	movq	_WS_ERROR@GOTPCREL(%rip), %r12
	leaq	LJTI0_0(%rip), %r13
	movq	_WS_SUCCESS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	addq	$-128, %rax
	cmpq	$4, %rax
	ja	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_ws_recv_request
	testq	%rax, %rax
	jns	LBB0_7
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_ws_recv_headers
	testq	%rax, %rax
	jns	LBB0_7
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_ws_recv_frame_length
	testq	%rax, %rax
	jns	LBB0_7
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_ws_recv_frame
	testq	%rax, %rax
	js	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, 8(%rbx)
	leaq	-133(%rax), %rcx
	cmpq	$2, %rcx
	jb	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rcx
	movq	(%rcx), %rdx
	cmpq	8(%rcx), %rdx
	jne	LBB0_1
	jmp	LBB0_12
LBB0_10:
	movq	%r12, %r14
LBB0_12:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.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_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_WS_ERROR,4,2                   ## @WS_ERROR
	.comm	_WS_SUCCESS,4,2                 ## @WS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ws_recv_loop                   ; -- Begin function ws_recv_loop
	.p2align	2
_ws_recv_loop:                          ; @ws_recv_loop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0]
	ldr	x0, [x21, #8]
Lloh0:
	adrp	x20, _WS_ERROR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WS_ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x23, lJTI0_0@PAGE
Lloh3:
	add	x23, x23, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x22, _WS_SUCCESS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _WS_SUCCESS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x0, #128
	cmp	x8, #4
	b.hi	LBB0_10
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ws_recv_request
	tbz	x0, #63, LBB0_7
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ws_recv_headers
	tbz	x0, #63, LBB0_7
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ws_recv_frame_length
	tbz	x0, #63, LBB0_7
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ws_recv_frame
	tbnz	x0, #63, LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	str	x0, [x21, #8]
	sub	x8, x0, #133
	cmp	x8, #2
	b.lo	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21]
	ldp	x9, x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_1
LBB0_9:
	mov	x20, x22
LBB0_10:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	str	x9, [x8]
Lloh6:
	adrp	x20, _WS_SUCCESS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _WS_SUCCESS@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
                                        ; -- End function
	.comm	_WS_ERROR,4,2                   ; @WS_ERROR
	.comm	_WS_SUCCESS,4,2                 ; @WS_SUCCESS
.subsections_via_symbols
