	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_play_queue
_reset_play_queue:                      ## @reset_play_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	%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	_dev@GOTPCREL(%rip), %r14
	movl	$-1, (%r14)
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_PCTODSP_OFFSET
	movq	_JQS_wHead@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	24(%r14), %rsi
	movl	%eax, %edi
	callq	_writew
	xorl	%edi, %edi
	callq	_PCTODSP_OFFSET
	movq	_JQS_wTail@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	24(%r14), %rsi
	movl	%eax, %edi
	callq	_writew
	movq	_DAPQ_DATA_BUFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	16(%r14), %rbx
	movq	_DAQDS_wFlags@GOTPCREL(%rip), %r13
	movq	_DAQDS__size@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DAP_BUFF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%r15d, %edi
	callq	_PCTODSP_BASED
	movq	_DAQDS_wStart@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_writew
	movq	_DAQDS_wSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_writew
	movq	_DAQDS_wFormat@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	$1, %edi
	callq	_writew
	movl	4(%r14), %edi
	movq	_DAQDS_wSampleSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_writew
	movl	8(%r14), %edi
	movq	_DAQDS_wChannels@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_writew
	movl	12(%r14), %edi
	movq	_DAQDS_wSampleRate@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_writew
	movq	_HIMT_PLAY_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	addl	%r15d, %edi
	movq	_DAQDS_wIntMsg@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_writew
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movl	%r15d, %edi
	callq	_writew
	incl	%r15d
	movslq	(%r12), %rax
	addq	%rax, %rbx
	cmpl	$3, %r15d
	jne	LBB0_1
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev,32,3                       ## @dev
	.comm	_DAQDS__size,4,2                ## @DAQDS__size
	.comm	_JQS_wHead,8,3                  ## @JQS_wHead
	.comm	_JQS_wTail,8,3                  ## @JQS_wTail
	.comm	_DAPQ_DATA_BUFF,8,3             ## @DAPQ_DATA_BUFF
	.comm	_DAP_BUFF_SIZE,4,2              ## @DAP_BUFF_SIZE
	.comm	_DAQDS_wStart,8,3               ## @DAQDS_wStart
	.comm	_DAQDS_wSize,8,3                ## @DAQDS_wSize
	.comm	_DAQDS_wFormat,8,3              ## @DAQDS_wFormat
	.comm	_DAQDS_wSampleSize,8,3          ## @DAQDS_wSampleSize
	.comm	_DAQDS_wChannels,8,3            ## @DAQDS_wChannels
	.comm	_DAQDS_wSampleRate,8,3          ## @DAQDS_wSampleRate
	.comm	_HIMT_PLAY_DONE,4,2             ## @HIMT_PLAY_DONE
	.comm	_DAQDS_wIntMsg,8,3              ## @DAQDS_wIntMsg
	.comm	_DAQDS_wFlags,8,3               ## @DAQDS_wFlags
	.no_dead_strip	_reset_play_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_play_queue
_reset_play_queue:                      ; @reset_play_queue
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x20, _dev@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dev@GOTPAGEOFF]
	mov	w8, #-1
	str	w8, [x20]
	mov	w0, #0
	bl	_PCTODSP_OFFSET
	ldr	x8, [x20, #24]
Lloh2:
	adrp	x9, _JQS_wHead@GOTPAGE
Lloh3:
	ldr	x9, [x9, _JQS_wHead@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	mov	w0, #0
	bl	_PCTODSP_OFFSET
	ldr	x8, [x20, #24]
Lloh5:
	adrp	x9, _JQS_wTail@GOTPAGE
Lloh6:
	ldr	x9, [x9, _JQS_wTail@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	mov	w19, #0
	ldr	x8, [x20, #16]
Lloh8:
	adrp	x9, _DAPQ_DATA_BUFF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DAPQ_DATA_BUFF@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x21, x9, x8
Lloh11:
	adrp	x26, _DAQDS_wSampleSize@GOTPAGE
Lloh12:
	ldr	x26, [x26, _DAQDS_wSampleSize@GOTPAGEOFF]
Lloh13:
	adrp	x27, _DAQDS_wChannels@GOTPAGE
Lloh14:
	ldr	x27, [x27, _DAQDS_wChannels@GOTPAGEOFF]
Lloh15:
	adrp	x28, _DAQDS_wSampleRate@GOTPAGE
Lloh16:
	ldr	x28, [x28, _DAQDS_wSampleRate@GOTPAGEOFF]
Lloh17:
	adrp	x22, _HIMT_PLAY_DONE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _HIMT_PLAY_DONE@GOTPAGEOFF]
Lloh19:
	adrp	x23, _DAQDS_wIntMsg@GOTPAGE
Lloh20:
	ldr	x23, [x23, _DAQDS_wIntMsg@GOTPAGEOFF]
Lloh21:
	adrp	x24, _DAQDS_wFlags@GOTPAGE
Lloh22:
	ldr	x24, [x24, _DAQDS_wFlags@GOTPAGEOFF]
Lloh23:
	adrp	x25, _DAQDS__size@GOTPAGE
Lloh24:
	ldr	x25, [x25, _DAQDS__size@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
Lloh25:
	adrp	x8, _DAP_BUFF_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DAP_BUFF_SIZE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	mul	w0, w8, w19
	bl	_PCTODSP_BASED
Lloh28:
	adrp	x8, _DAQDS_wStart@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DAQDS_wStart@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x1, x8, x21
	bl	_writew
Lloh31:
	adrp	x8, _DAQDS_wSize@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DAQDS_wSize@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #0
	bl	_writew
Lloh34:
	adrp	x8, _DAQDS_wFormat@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DAQDS_wFormat@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #1
	bl	_writew
	ldr	w0, [x20, #4]
	ldr	x8, [x26]
	add	x1, x8, x21
	bl	_writew
	ldr	w0, [x20, #8]
	ldr	x8, [x27]
	add	x1, x8, x21
	bl	_writew
	ldr	w0, [x20, #12]
	ldr	x8, [x28]
	add	x1, x8, x21
	bl	_writew
	ldr	w8, [x22]
	add	w0, w19, w8, lsl #8
	ldr	x8, [x23]
	add	x1, x8, x21
	bl	_writew
	ldr	x8, [x24]
	add	x1, x8, x21
	mov	x0, x19
	bl	_writew
	add	w19, w19, #1
	ldrsw	x8, [x25]
	add	x21, x21, x8
	cmp	w19, #3
	b.ne	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_dev,32,3                       ; @dev
	.comm	_DAQDS__size,4,2                ; @DAQDS__size
	.comm	_JQS_wHead,8,3                  ; @JQS_wHead
	.comm	_JQS_wTail,8,3                  ; @JQS_wTail
	.comm	_DAPQ_DATA_BUFF,8,3             ; @DAPQ_DATA_BUFF
	.comm	_DAP_BUFF_SIZE,4,2              ; @DAP_BUFF_SIZE
	.comm	_DAQDS_wStart,8,3               ; @DAQDS_wStart
	.comm	_DAQDS_wSize,8,3                ; @DAQDS_wSize
	.comm	_DAQDS_wFormat,8,3              ; @DAQDS_wFormat
	.comm	_DAQDS_wSampleSize,8,3          ; @DAQDS_wSampleSize
	.comm	_DAQDS_wChannels,8,3            ; @DAQDS_wChannels
	.comm	_DAQDS_wSampleRate,8,3          ; @DAQDS_wSampleRate
	.comm	_HIMT_PLAY_DONE,4,2             ; @HIMT_PLAY_DONE
	.comm	_DAQDS_wIntMsg,8,3              ; @DAQDS_wIntMsg
	.comm	_DAQDS_wFlags,8,3               ; @DAQDS_wFlags
	.no_dead_strip	_reset_play_queue
.subsections_via_symbols
