	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_pro_route_analog_put
_snd_ice1712_pro_route_analog_put:      ## @snd_ice1712_pro_route_analog_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, %rbx
	movq	%rdi, %r15
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	leaq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_snd_ctl_get_ioffidx
	movl	%eax, %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$11, %eax
	jl	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$2, %r15d
	setl	%bl
	jmp	LBB0_4
LBB0_2:
	movl	$3, %ebx
	cmpl	$8, %eax
	jg	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setg	%bl
	addl	%ebx, %ebx
LBB0_4:
	movl	%r15d, %r13d
	shrl	$31, %r13d
	addl	%r15d, %r13d
	movl	%r13d, %eax
	andl	$-2, %eax
	subl	%eax, %r15d
	leal	(%rax,%r15,8), %r14d
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	_ROUTE_PSDOUT03@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT
	movl	%eax, %edi
	callq	_inw
	movl	$3, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	shll	%cl, %ebx
	orl	%edx, %ebx
	cmpl	%eax, %ebx
	setne	%r14b
	je	LBB0_6
## %bb.5:
	movq	_ROUTE_PSDOUT03@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outw
LBB0_6:
	xorl	%eax, %eax
	movb	%r14b, %al
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$2, %ebx
	jb	LBB0_10
## %bb.7:
	sarl	%r13d
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	_ROUTE_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT
	movl	%eax, %edi
	callq	_inl
	shll	$2, %r15d
	leal	(%r15,%r13,8), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movl	(%rdx), %edx
	leal	-1(%rdx), %esi
	xorl	%edi, %edi
	cmpl	$2, %ebx
	sete	%dil
	leal	-72(,%rdx,8), %ebx
	cmovel	%esi, %ebx
	movl	$8, %edx
	subl	%edi, %edx
	shll	%cl, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %ebx
	cmpl	%eax, %ebx
	je	LBB0_9
## %bb.8:
	movq	_ROUTE_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outl
	movl	$1, %r14d
LBB0_9:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROUTE_PSDOUT03,4,2             ## @ROUTE_PSDOUT03
	.comm	_ROUTE_CAPTURE,4,2              ## @ROUTE_CAPTURE
	.no_dead_strip	_snd_ice1712_pro_route_analog_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ice1712_pro_route_analog_put
_snd_ice1712_pro_route_analog_put:      ; @snd_ice1712_pro_route_analog_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
	add	x1, x20, #8
	mov	x0, x21
	bl	_snd_ctl_get_ioffidx
	ldr	x8, [x20]
	ldr	w8, [x8]
	mov	w21, #3
	cmp	w8, #0
	cset	w9, gt
	lsl	w9, w9, #1
	cmp	w8, #8
	csel	w9, w21, w9, gt
	cmp	w0, #2
	cset	w10, lt
	cmp	w8, #11
	csel	w23, w9, w10, lt
	cmp	w0, #0
	cinc	w25, w0, lt
	and	w8, w25, #0xfffffffe
	sub	w24, w0, w8
	add	w22, w8, w24, lsl #3
	mov	x0, x19
	bl	_spin_lock_irq
Lloh0:
	adrp	x26, _ROUTE_PSDOUT03@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ROUTE_PSDOUT03@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ICEMT
	bl	_inw
	lsl	w8, w21, w22
	bic	w8, w0, w8
	lsl	w9, w23, w22
	orr	w22, w8, w9
	cmp	w22, w0
	cset	w21, ne
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ICEMT
	mov	x1, x0
	mov	x0, x22
	bl	_outw
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_irq
	cmp	w23, #2
	b.lo	LBB0_6
; %bb.3:
	asr	w25, w25, #1
	mov	x0, x19
	bl	_spin_lock_irq
Lloh2:
	adrp	x22, _ROUTE_CAPTURE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ROUTE_CAPTURE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ICEMT
	bl	_inl
	lsl	w8, w25, #3
	add	w8, w8, w24, lsl #2
	ldr	x9, [x20]
	ldr	w9, [x9]
	lsl	w10, w9, #3
	sub	w10, w10, #72
	sub	w9, w9, #1
	mov	w11, #7
	cmp	w23, #2
	csel	w9, w9, w10, eq
	cinc	w10, w11, ne
	lsl	w10, w10, w8
	bic	w10, w0, w10
	lsl	w8, w9, w8
	orr	w20, w8, w10
	cmp	w20, w0
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ICEMT
	mov	x1, x0
	mov	x0, x20
	bl	_outl
	mov	w21, #1
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irq
LBB0_6:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ROUTE_PSDOUT03,4,2             ; @ROUTE_PSDOUT03
	.comm	_ROUTE_CAPTURE,4,2              ; @ROUTE_CAPTURE
	.no_dead_strip	_snd_ice1712_pro_route_analog_put
.subsections_via_symbols
