	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_cmix_new_stereo
_snd_ac97_cmix_new_stereo:              ## @snd_ac97_cmix_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%r9, %rdi
	movl	%edx, %esi
	callq	_snd_ac97_valid_reg
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$15, %edx
	callq	_snd_ac97_try_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rdi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	callq	_sprintf
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	-96(%rbp), %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movq	%r15, %r9
	callq	_snd_ac97_cmute_new_stereo
	testl	%eax, %eax
	js	LBB0_5
LBB0_3:
	leaq	-97(%rbp), %rdx
	leaq	-98(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_check_volume_resolution
	cmpb	$0, -97(%rbp)
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	callq	_sprintf
	movzbl	-97(%rbp), %ecx
	movzbl	-98(%rbp), %r8d
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r15, %r9
	callq	_snd_ac97_cvol_new
	testl	%eax, %eax
	jns	LBB0_6
LBB0_5:
	movl	%eax, %r14d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s Switch"

L_.str.1:                               ## @.str.1
	.asciz	"%s Volume"

	.no_dead_strip	_snd_ac97_cmix_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_cmix_new_stereo
_snd_ac97_cmix_new_stereo:              ; @snd_ac97_cmix_new_stereo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	mov	x0, x5
	mov	x1, x2
	bl	_snd_ac97_valid_reg
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #15
	bl	_snd_ac97_try_bit
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #12
	mov	x2, x22
	bl	_sprintf
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, x20
	mov	x3, x24
	mov	x4, x23
	mov	x5, x19
	bl	_snd_ac97_cmute_new_stereo
	tbnz	w0, #31, LBB0_6
LBB0_3:
	add	x2, sp, #11
	add	x3, sp, #10
	mov	x0, x19
	mov	x1, x20
	bl	_check_volume_resolution
	ldrb	w8, [sp, #11]
	cbz	w8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #12
	mov	x2, x22
	bl	_sprintf
	ldrb	w3, [sp, #11]
	ldrb	w4, [sp, #10]
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, x20
	mov	x5, x19
	bl	_snd_ac97_cvol_new
	tbnz	w0, #31, LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldr	x8, [sp, #56]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s Switch"

l_.str.1:                               ; @.str.1
	.asciz	"%s Volume"

	.no_dead_strip	_snd_ac97_cmix_new_stereo
.subsections_via_symbols
