	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws_clear_queue
_ws_clear_queue:                        ## @ws_clear_queue
	.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	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_free
	movq	8(%rbx), %rax
LBB0_3:
	movq	$0, 8(%rax)
	movq	8(%rbx), %rdi
	movq	$0, (%rdi)
	callq	_free
	movq	$0, 8(%rbx)
	movq	_WS_THROTTLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_WS_CLOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.4:
	movq	_WS_SENDING@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_6
## %bb.5:
	movl	%ecx, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WS_THROTTLING,4,2              ## @WS_THROTTLING
	.comm	_WS_CLOSE,4,2                   ## @WS_CLOSE
	.comm	_WS_SENDING,4,2                 ## @WS_SENDING
	.no_dead_strip	_ws_clear_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ws_clear_queue
_ws_clear_queue:                        ; @ws_clear_queue
	.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	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
	ldr	x8, [x19, #8]
LBB0_3:
	str	xzr, [x8, #8]
	ldr	x0, [x19, #8]
	str	xzr, [x0]
	bl	_free
	str	xzr, [x19, #8]
Lloh0:
	adrp	x8, _WS_THROTTLING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WS_THROTTLING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w9, w9, w8
	str	w9, [x19]
Lloh3:
	adrp	x8, _WS_CLOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WS_CLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.4:
Lloh6:
	adrp	x10, _WS_SENDING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WS_SENDING@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WS_THROTTLING,4,2              ; @WS_THROTTLING
	.comm	_WS_CLOSE,4,2                   ; @WS_CLOSE
	.comm	_WS_SENDING,4,2                 ; @WS_SENDING
	.no_dead_strip	_ws_clear_queue
.subsections_via_symbols
