	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_queues
_reset_queues:                          ## @reset_queues
	.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	_dev@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rdi
	callq	_msnd_fifo_make_empty
	xorl	%eax, %eax
	callq	_reset_play_queue
	movl	(%rbx), %eax
LBB0_2:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_msnd_fifo_make_empty
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_reset_record_queue             ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev,12,2                       ## @dev
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.no_dead_strip	_reset_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_queues
_reset_queues:                          ; @reset_queues
	.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
Lloh0:
	adrp	x19, _dev@GOTPAGE
Lloh1:
	ldr	x19, [x19, _dev@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #8
	bl	_msnd_fifo_make_empty
	bl	_reset_play_queue
	ldr	w8, [x19]
LBB0_2:
Lloh5:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	add	x0, x19, #4
	bl	_msnd_fifo_make_empty
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reset_record_queue
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_dev,12,2                       ; @dev
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.no_dead_strip	_reset_queues
.subsections_via_symbols
