	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_pro_route_spdif_get
_snd_ice1712_pro_route_spdif_get:       ## @snd_ice1712_pro_route_spdif_get
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	leaq	8(%r14), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movl	%eax, %ebx
	movq	_ROUTE_SPDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ICEMT
	movl	%eax, %edi
	callq	_inw
	leal	(,%rbx,4), %ecx
	addb	$8, %cl
	movl	%eax, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edx
	addl	%ebx, %ebx
	movl	%ebx, %ecx
	shrl	%cl, %eax
	andl	$3, %eax
	cmpl	$1, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$3, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.4:
	andl	$7, %edx
	incl	%edx
	jmp	LBB0_7
LBB0_1:
	movl	$11, %edx
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	btl	$3, %edx
	adcl	$9, %eax
	movl	%eax, %edx
	jmp	LBB0_7
LBB0_6:
	xorl	%edx, %edx
LBB0_7:
	movq	(%r14), %rax
	movl	%edx, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROUTE_SPDOUT,4,2               ## @ROUTE_SPDOUT
	.no_dead_strip	_snd_ice1712_pro_route_spdif_get
.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_spdif_get
_snd_ice1712_pro_route_spdif_get:       ; @snd_ice1712_pro_route_spdif_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	add	x1, x19, #8
	mov	x0, x20
	bl	_snd_ctl_get_ioffidx
	mov	x20, x0
Lloh0:
	adrp	x8, _ROUTE_SPDOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROUTE_SPDOUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ICEMT
	bl	_inw
	lsl	w8, w20, #1
	lsr	w8, w0, w8
	and	w8, w8, #0x3
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	lsl	w9, w20, #2
	add	w9, w9, #8
	lsr	w9, w0, w9
	cmp	w8, #3
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.3:
	and	w8, w9, #0x7
	add	w8, w8, #1
	b	LBB0_7
LBB0_4:
	mov	w8, #11
	b	LBB0_7
LBB0_5:
	ubfx	w8, w9, #3, #1
	add	w8, w8, #9
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	ldr	x9, [x19]
	str	w8, [x9]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ROUTE_SPDOUT,4,2               ; @ROUTE_SPDOUT
	.no_dead_strip	_snd_ice1712_pro_route_spdif_get
.subsections_via_symbols
