	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_saa7134_volume_put
_snd_saa7134_volume_put:                ## @snd_saa7134_volume_put
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	16(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movl	4(%rax), %r12d
	testl	%ebx, %ebx
	movl	$0, %r13d
	cmovgl	%ebx, %r13d
	cmpl	$20, %r13d
	movl	$20, %r14d
	cmovael	%r14d, %r13d
	leaq	8(%r15), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irq
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	(%rax,%rdx,8), %rax
	cmpl	%r13d, (%rax)
	sete	%cl
	cmovnel	%ebx, %r12d
	testl	%r12d, %r12d
	movl	$0, %esi
	cmovlel	%esi, %r12d
	cmpl	$20, %r12d
	cmovael	%r14d, %r12d
	cmpl	%r12d, 4(%rax)
	sete	%r14b
	cmovnel	%r12d, %r13d
	andb	%cl, %r14b
	jne	LBB0_18
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$130, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_17
## %bb.4:
	cmpl	$133, %edx
	je	LBB0_13
## %bb.5:
	cmpl	$132, %edx
	jne	LBB0_6
## %bb.14:
	movq	_SAA7134_ANALOG_IO_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, %rbx
	xorl	%edx, %edx
	cmpl	$11, %r13d
	setb	%dl
	shll	$5, %edx
	jmp	LBB0_15
LBB0_8:
	cmpl	$133, %edx
	je	LBB0_11
## %bb.9:
	cmpl	$132, %edx
	je	LBB0_12
LBB0_6:
	cmpl	$131, %edx
	jne	LBB0_17
## %bb.7:
	movl	$20, %r13d
	jmp	LBB0_17
LBB0_11:
	movq	%rdx, %rbx
	xorl	%edx, %edx
	cmpl	$11, %r13d
	setb	%dl
	shll	$4, %edx
	movl	$1428, %edi                     ## imm = 0x594
	movl	$16, %esi
	jmp	LBB0_16
LBB0_12:
	movq	%rdx, %rbx
	xorl	%edx, %edx
	cmpl	$11, %r13d
	setb	%dl
	shll	$5, %edx
	movl	$1428, %edi                     ## imm = 0x594
LBB0_15:
	movl	$32, %esi
	jmp	LBB0_16
LBB0_13:
	movq	_SAA7134_ANALOG_IO_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, %rbx
	xorl	%edx, %edx
	cmpl	$11, %r13d
	setb	%dl
	shll	$4, %edx
	movl	$16, %esi
LBB0_16:
	callq	_saa_andorb
	movq	%rbx, %rdx
LBB0_17:
	movq	(%r15), %rax
	movq	(%rax,%rdx,8), %rax
	movl	%r13d, (%rax)
	movl	%r12d, 4(%rax)
LBB0_18:
	xorb	$1, %r14b
	movzbl	%r14b, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA7134_ANALOG_IO_SELECT,4,2   ## @SAA7134_ANALOG_IO_SELECT
	.no_dead_strip	_snd_saa7134_volume_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_saa7134_volume_put
_snd_saa7134_volume_put:                ; @snd_saa7134_volume_put
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x25, [x0, #16]
	ldrsw	x21, [x21]
	ldr	x8, [x20]
	ldp	w22, w23, [x8]
	cmp	w22, #0
	csel	w8, w22, wzr, gt
	mov	w24, #20
	cmp	w8, #20
	csel	w26, w8, w24, lo
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	x8, [x19]
	ldr	x8, [x8, x21, lsl #3]
	ldp	w9, w8, [x8]
	cmp	w9, w26
	csel	w9, w23, w22, eq
	cset	w10, eq
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	cmp	w9, #20
	csel	w22, w9, w24, lo
	cmp	w8, w22
	csel	w24, w26, w22, eq
	cset	w8, eq
	and	w23, w8, w10
	tbnz	w23, #0, LBB0_17
; %bb.1:
	ldr	x8, [x25]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_16
; %bb.4:
	cmp	w21, #133
	b.eq	LBB0_14
; %bb.5:
	cmp	w21, #132
	b.ne	LBB0_9
; %bb.6:
Lloh0:
	adrp	x8, _SAA7134_ANALOG_IO_SELECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA7134_ANALOG_IO_SELECT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cmp	w24, #11
	cset	w8, lo
	lsl	w2, w8, #5
	b	LBB0_13
LBB0_7:
	cmp	w21, #133
	b.eq	LBB0_11
; %bb.8:
	cmp	w21, #132
	b.eq	LBB0_12
LBB0_9:
	cmp	w21, #131
	b.ne	LBB0_16
; %bb.10:
	mov	w24, #20
	b	LBB0_16
LBB0_11:
	cmp	w24, #11
	cset	w8, lo
	lsl	w2, w8, #4
	mov	w0, #1428
	mov	w1, #16
	b	LBB0_15
LBB0_12:
	cmp	w24, #11
	cset	w8, lo
	lsl	w2, w8, #5
	mov	w0, #1428
LBB0_13:
	mov	w1, #32
	b	LBB0_15
LBB0_14:
Lloh3:
	adrp	x8, _SAA7134_ANALOG_IO_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAA7134_ANALOG_IO_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	cmp	w24, #11
	cset	w8, lo
	lsl	w2, w8, #4
	mov	w1, #16
LBB0_15:
	bl	_saa_andorb
LBB0_16:
	ldr	x8, [x19]
	ldr	x8, [x8, x21, lsl #3]
	stp	w24, w22, [x8]
LBB0_17:
	eor	w19, w23, #0x1
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA7134_ANALOG_IO_SELECT,4,2   ; @SAA7134_ANALOG_IO_SELECT
	.no_dead_strip	_snd_saa7134_volume_put
.subsections_via_symbols
