	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ws_recv_frame_length           ## -- Begin function ws_recv_frame_length
	.p2align	4, 0x90
_ws_recv_frame_length:                  ## @ws_recv_frame_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	callq	_ws_read_frame_length
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	movl	$-1, %eax
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_STATE_READ_FRAME@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$1, (%rbx)
	sbbl	%eax, %eax
	orl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATE_ERROR,4,2                ## @STATE_ERROR
	.comm	_STATE_READ_FRAME,4,2           ## @STATE_READ_FRAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ws_recv_frame_length           ; -- Begin function ws_recv_frame_length
	.p2align	2
_ws_recv_frame_length:                  ; @ws_recv_frame_length
	.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
	ldr	x19, [x0]
	bl	_ws_read_frame_length
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _STATE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _STATE_READ_FRAME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATE_READ_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	csinv	w0, w9, wzr, ne
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STATE_ERROR,4,2                ; @STATE_ERROR
	.comm	_STATE_READ_FRAME,4,2           ; @STATE_READ_FRAME
.subsections_via_symbols
