	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ymfpci_hw_stop
_snd_ymfpci_hw_stop:                    ## @snd_ymfpci_hw_stop
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r12)
	cmpq	$1, %rax
	jg	LBB0_6
## %bb.1:
	movq	_YDSXGR_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_snd_ymfpci_readl
	andl	$-4, %eax
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_snd_ymfpci_writel
	movq	$-1001, %rbx                    ## imm = 0xFC17
	movq	_YDSXGR_STATUS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_snd_ymfpci_readl
	testb	$2, %al
	jne	LBB0_2
LBB0_4:
	leaq	16(%r12), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_wake_up
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_YDSXGR_MODE,4,2                ## @YDSXGR_MODE
	.comm	_YDSXGR_STATUS,4,2              ## @YDSXGR_STATUS
	.no_dead_strip	_snd_ymfpci_hw_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ymfpci_hw_stop
_snd_ymfpci_hw_stop:                    ; @snd_ymfpci_hw_stop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.gt	LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _YDSXGR_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _YDSXGR_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_snd_ymfpci_readl
	and	w2, w0, #0xfffffffc
	mov	x0, x20
	mov	x1, x21
	bl	_snd_ymfpci_writel
	mov	x21, #-1001
Lloh3:
	adrp	x22, _YDSXGR_STATUS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _YDSXGR_STATUS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	adds	x21, x21, #1
	b.hs	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_snd_ymfpci_readl
	tbnz	w0, #1, LBB0_2
LBB0_4:
	add	x21, x20, #16
	mov	x0, x21
	bl	_atomic_read
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #12
	bl	_wake_up
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_YDSXGR_MODE,4,2                ; @YDSXGR_MODE
	.comm	_YDSXGR_STATUS,4,2              ; @YDSXGR_STATUS
	.no_dead_strip	_snd_ymfpci_hw_stop
.subsections_via_symbols
