	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_put_volume
_snd_cmipci_put_volume:                 ## @snd_cmipci_put_volume
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movl	(%rbx), %esi
	leaq	-88(%rbp), %rdi
	callq	_cmipci_sb_reg_decode
	movq	(%r15), %rax
	movl	-88(%rbp), %r12d
	movl	(%rax), %ecx
	andl	%r12d, %ecx
	movq	-48(%rbp), %rdx
	movl	%r12d, %r13d
	subl	%ecx, %r13d
	testq	%rdx, %rdx
	cmovel	%ecx, %r13d
	movb	-84(%rbp), %cl
	shll	%cl, %r13d
	cmpq	$0, -56(%rbp)
	je	LBB0_1
## %bb.2:
	movl	4(%rax), %eax
	andl	%r12d, %eax
	subl	%eax, %r12d
	testq	%rdx, %rdx
	cmovel	%eax, %r12d
	movb	-80(%rbp), %cl
	shll	%cl, %r12d
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_snd_cmipci_mixer_read
	movl	-88(%rbp), %edx
	movb	-84(%rbp), %cl
	movl	%edx, %ebx
	shll	%cl, %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	%r13d, %ebx
	cmpl	%eax, %ebx
	setne	%r13b
	cmpq	$0, -56(%rbp)
	movq	-72(%rbp), %rsi
	je	LBB0_8
## %bb.4:
	movl	%eax, %r15d
	cmpq	-64(%rbp), %rsi
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	movl	%ebx, %edx
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_cmipci_mixer_write
	movq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_snd_cmipci_mixer_read
	movl	-88(%rbp), %edx
	movq	-64(%rbp), %rsi
LBB0_7:
	movb	-80(%rbp), %cl
	shll	%cl, %edx
	xorl	%r15d, %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%r12d, %edx
	xorl	%edx, %eax
	orl	%ebx, %eax
	setne	%r13b
	movq	%r14, %rdi
LBB0_9:
	callq	_snd_cmipci_mixer_write
	movzbl	%r13b, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_cmipci_put_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cmipci_put_volume
_snd_cmipci_put_volume:                 ; @snd_cmipci_put_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w1, [x21]
	mov	x0, sp
	bl	_cmipci_sb_reg_decode
	ldr	x8, [x20]
	ldr	w10, [x8]
	ldp	w9, w11, [sp]
	and	w12, w9, w10
	sub	w13, w9, w12
	ldp	x14, x10, [sp, #32]
	cmp	x10, #0
	csel	w12, w12, w13, eq
	lsl	w21, w12, w11
	cbz	x14, LBB0_2
; %bb.1:
	ldr	w8, [x8, #4]
	and	w8, w8, w9
	sub	w9, w9, w8
	cmp	x10, #0
	csel	w8, w8, w9, eq
	ldr	w9, [sp, #8]
	lsl	w23, w8, w9
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_snd_cmipci_mixer_read
	ldp	w8, w9, [sp]
	lsl	w9, w8, w9
	bic	w9, w0, w9
	orr	w21, w9, w21
	cmp	w21, w0
	cset	w22, ne
	ldr	x9, [sp, #32]
	ldr	x1, [sp, #16]
	cbz	x9, LBB0_6
; %bb.4:
	mov	x20, x0
	ldr	x9, [sp, #24]
	cmp	x1, x9
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x21
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	x2, x21
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	x2, x21
	bl	_snd_cmipci_mixer_write
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_snd_cmipci_mixer_read
	ldr	w8, [sp]
	ldr	x1, [sp, #24]
LBB0_8:
	cmp	w21, w20
	ldr	w9, [sp, #8]
	lsl	w8, w8, w9
	bic	w8, w0, w8
	orr	w2, w8, w23
	ccmp	w2, w0, #0, eq
	cset	w22, ne
	mov	x0, x19
LBB0_9:
	bl	_snd_cmipci_mixer_write
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_cmipci_put_volume
.subsections_via_symbols
