	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_cmute_new_stereo
_snd_ac97_cmute_new_stereo:             ## @snd_ac97_cmute_new_stereo
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%r9, %rdi
	movl	%edx, %esi
	callq	_snd_ac97_valid_reg
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_snd_ac97_read
                                        ## kill: def $ax killed $ax def $eax
	testl	%r14d, %r14d
	movl	%eax, %r14d
	jne	LBB0_3
## %bb.2:
	movq	_AC97_STEREO_MUTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_7
LBB0_3:
	movl	%r14d, %eax
	orl	$-32640, %eax                   ## imm = 0x8080
	movzwl	%ax, %ebx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_snd_ac97_write
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_snd_ac97_read
	cmpw	%ax, %bx
	jne	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$15, %edx
	movl	$7, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_AC97_DOUBLE
	movq	%rax, -48(%rbp)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	orl	$1073741824, %eax               ## imm = 0x40000000
	movl	%eax, -48(%rbp)
LBB0_6:
	movl	4(%r13), %eax
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_snd_ctl_new1
	movq	%rax, %rsi
	movw	$-32640, %bx                    ## imm = 0x8080
	jmp	LBB0_10
LBB0_7:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$15, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_AC97_SINGLE
	movq	%rax, -48(%rbp)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:
	orl	$1073741824, %eax               ## imm = 0x40000000
	movl	%eax, -48(%rbp)
LBB0_9:
	movl	4(%r13), %eax
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_snd_ctl_new1
	movq	%rax, %rsi
	movw	$-32768, %bx                    ## imm = 0x8000
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_snd_ctl_add
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	orl	%r14d, %ebx
	movzwl	%bx, %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_snd_ac97_write_cache
	xorl	%ecx, %ecx
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %ecx
LBB0_13:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_STEREO_MUTES,4,2          ## @AC97_STEREO_MUTES
	.no_dead_strip	_snd_ac97_cmute_new_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ac97_cmute_new_stereo
_snd_ac97_cmute_new_stereo:             ; @snd_ac97_cmute_new_stereo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x5
	mov	x23, x4
	mov	x25, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	mov	x0, x5
	mov	x1, x2
	bl	_snd_ac97_valid_reg
	cbz	w0, LBB0_12
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ac97_read
	mov	x22, x0
	cbnz	w25, LBB0_3
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _AC97_STEREO_MUTES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC97_STEREO_MUTES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_3:
	mov	w8, #32896
	orr	w25, w22, w8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	bl	_snd_ac97_write
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ac97_read
	cmp	w25, w0
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x24
	mov	x1, x20
	mov	w2, #15
	mov	w3, #7
	mov	w4, #1
	mov	w5, #1
	bl	_AC97_DOUBLE
	str	x0, [sp, #8]
	cbz	w23, LBB0_6
; %bb.5:
	orr	w8, w0, #0x40000000
	str	w8, [sp, #8]
LBB0_6:
	ldr	w8, [x19, #4]
	str	w8, [sp, #12]
	add	x0, sp, #8
	mov	x1, x19
	bl	_snd_ctl_new1
	mov	x1, x0
	mov	w23, #32896
	b	LBB0_10
LBB0_7:
	mov	x0, x24
	mov	x1, x20
	mov	w2, #15
	mov	w3, #1
	mov	w4, #1
	bl	_AC97_SINGLE
	str	x0, [sp, #8]
	cbz	w23, LBB0_9
; %bb.8:
	orr	w8, w0, #0x40000000
	str	w8, [sp, #8]
LBB0_9:
	ldr	w8, [x19, #4]
	str	w8, [sp, #12]
	add	x0, sp, #8
	mov	x1, x19
	bl	_snd_ctl_new1
	mov	x1, x0
	mov	w23, #32768
LBB0_10:
	mov	x0, x21
	bl	_snd_ctl_add
	tbnz	w0, #31, LBB0_12
; %bb.11:
	orr	w2, w23, w22
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ac97_write_cache
	mov	w0, #0
LBB0_12:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_STEREO_MUTES,4,2          ; @AC97_STEREO_MUTES
	.no_dead_strip	_snd_ac97_cmute_new_stereo
.subsections_via_symbols
