	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function waveartist_halt_input
_waveartist_halt_input:                 ## @waveartist_halt_input
	.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	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	movq	_waveartist_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_WACMD_INPUTSTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_waveartist_cmd1
	movq	_PCM_ENABLE_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movq	_STATR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_inb
	movq	_IRQ_REQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_waveartist_iack
LBB0_2:
	movq	_waveartist_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_waveartist_lock,4,2            ## @waveartist_lock
	.comm	_WACMD_INPUTSTOP,4,2            ## @WACMD_INPUTSTOP
	.comm	_PCM_ENABLE_INPUT,4,2           ## @PCM_ENABLE_INPUT
	.comm	_STATR,8,3                      ## @STATR
	.comm	_IRQ_REQ,4,2                    ## @IRQ_REQ
	.no_dead_strip	_waveartist_halt_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function waveartist_halt_input
_waveartist_halt_input:                 ; @waveartist_halt_input
	.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	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x19, [x8]
Lloh3:
	adrp	x0, _waveartist_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _waveartist_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x8, _WACMD_INPUTSTOP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WACMD_INPUTSTOP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_waveartist_cmd1
Lloh8:
	adrp	x8, _PCM_ENABLE_INPUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCM_ENABLE_INPUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _STATR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _STATR@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh14:
	adrp	x8, _IRQ_REQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_REQ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_waveartist_iack
LBB0_2:
Lloh17:
	adrp	x0, _waveartist_lock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _waveartist_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_waveartist_lock,4,2            ; @waveartist_lock
	.comm	_WACMD_INPUTSTOP,4,2            ; @WACMD_INPUTSTOP
	.comm	_PCM_ENABLE_INPUT,4,2           ; @PCM_ENABLE_INPUT
	.comm	_STATR,8,3                      ; @STATR
	.comm	_IRQ_REQ,4,2                    ; @IRQ_REQ
	.no_dead_strip	_waveartist_halt_input
.subsections_via_symbols
