	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_saa7134_capsrc_set
_snd_saa7134_capsrc_set:                ## @snd_saa7134_capsrc_set
	.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
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movl	(%rbx), %r15d
	movq	32(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	28(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movl	%r13d, %eax
	orl	%r14d, %eax
	je	LBB0_1
## %bb.2:
	movslq	(%r12), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	%r15, %rcx
	cmpl	%r15d, %edx
	jne	LBB0_5
## %bb.3:
	cmpl	%r14d, (%rax)
	jne	LBB0_5
## %bb.4:
	movl	4(%rax), %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%r14d, (%rax)
	movl	%r13d, 4(%rax)
	movq	%rcx, %r14
	movl	%r14d, (%r12)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r14d, (%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	xorl	%ebx, %ebx
	cmpl	%r13d, -60(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_6
	jmp	LBB0_23
LBB0_5:
	movl	%r14d, (%rax)
	movl	%r13d, 4(%rax)
	movq	%rcx, %r14
	movl	%r14d, (%r12)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r14d, (%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
LBB0_6:
	movq	8(%r15), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_13
## %bb.7:
	cmpl	$130, %eax
	je	LBB0_13
## %bb.8:
	cmpl	$129, %eax
	jne	LBB0_18
## %bb.9:
	leal	-132(%r14), %eax
	cmpl	$2, %eax
	jae	LBB0_10
## %bb.12:
	xorl	%edx, %edx
	cmpl	$133, %r14d
	setne	%dl
	shll	$3, %edx
	xorl	%eax, %eax
	cmpl	$32000, 4(%r15)                 ## imm = 0x7D00
	setne	%al
	leal	1(%rax,%rax), %ebx
	movq	_SAA7134_ANALOG_IO_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	callq	_saa_andorb
	movq	_SAA7134_AUDIO_FORMAT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$192, %esi
	movl	$128, %edx
	callq	_saa_andorb
	movq	_SAA7134_SIF_SAMPLE_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	movl	%ebx, %edx
	callq	_saa_andorb
	jmp	LBB0_18
LBB0_1:
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_13:
	movl	$3, %ebx
	cmpl	$132, %r14d
	je	LBB0_16
## %bb.14:
	xorl	%r13d, %r13d
	cmpl	$131, %r14d
	jne	LBB0_17
## %bb.15:
	movl	$2, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_16:
	movl	$9, %r13d
LBB0_17:
	movq	_SAA7133_DIGITAL_OUTPUT_SEL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$12303120, %edx                 ## imm = 0xBBBB10
	callq	_saa_dsp_writel
	movq	_SAA7133_DIGITAL_INPUT_XBAR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_saa_dsp_writel
	movq	_SAA7133_ANALOG_IO_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_saa_writel
LBB0_18:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.19:
	movslq	%r14d, %rax
	movl	24(%r12), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	16(%r12), %rcx
	movq	(%rcx,%rax,8), %rdx
	callq	_snd_ctl_notify
LBB0_20:
	movq	_MIXER_ADDR_UNSELECTED@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax), %ecx
	je	LBB0_23
## %bb.21:
	cmpl	%r14d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_23
## %bb.22:
	movl	24(%r12), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdx
	callq	_snd_ctl_notify
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$131, %r14d
	jne	LBB0_18
## %bb.11:
	movq	_SAA7134_AUDIO_FORMAT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$192, %esi
	movl	$192, %edx
	callq	_saa_andorb
	movq	_SAA7134_SIF_SAMPLE_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_saa_andorb
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA7134_AUDIO_FORMAT_CTRL,4,2  ## @SAA7134_AUDIO_FORMAT_CTRL
	.comm	_SAA7134_SIF_SAMPLE_FREQ,4,2    ## @SAA7134_SIF_SAMPLE_FREQ
	.comm	_SAA7134_ANALOG_IO_SELECT,4,2   ## @SAA7134_ANALOG_IO_SELECT
	.comm	_SAA7133_DIGITAL_OUTPUT_SEL1,4,2 ## @SAA7133_DIGITAL_OUTPUT_SEL1
	.comm	_SAA7133_DIGITAL_INPUT_XBAR1,4,2 ## @SAA7133_DIGITAL_INPUT_XBAR1
	.comm	_SAA7133_ANALOG_IO_SELECT,4,2   ## @SAA7133_ANALOG_IO_SELECT
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_MIXER_ADDR_UNSELECTED,4,2      ## @MIXER_ADDR_UNSELECTED
	.no_dead_strip	_snd_saa7134_capsrc_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_saa7134_capsrc_set
_snd_saa7134_capsrc_set:                ; @snd_saa7134_capsrc_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x22, x2
	mov	x24, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w25, [x21]
	ldr	x21, [x0, #32]
	add	x23, x0, #28
	mov	x0, x23
	bl	_spin_lock_irq
	orr	w8, w22, w24
	cbz	w8, LBB0_11
; %bb.1:
	ldrsw	x26, [x19]
	ldr	x8, [x19, #8]
	cmp	w26, w25
	b.ne	LBB0_5
; %bb.2:
	ldr	w9, [x8]
	cmp	w9, w24
	b.ne	LBB0_5
; %bb.3:
	ldr	w27, [x8, #4]
	stp	w24, w22, [x8]
	str	w25, [x19]
	str	w25, [x21]
	mov	x0, x23
	bl	_spin_unlock_irq
	cmp	w27, w22
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #0
	b	LBB0_18
LBB0_5:
	stp	w24, w22, [x8]
	str	w25, [x19]
	str	w25, [x21]
	mov	x0, x23
	bl	_spin_unlock_irq
LBB0_6:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.7:
	cmp	w8, #130
	b.eq	LBB0_12
; %bb.8:
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.9:
	sub	w8, w25, #132
	cmp	w8, #2
	b.hs	LBB0_19
; %bb.10:
	cmp	w25, #133
	cset	w8, ne
	lsl	w2, w8, #3
	ldr	w8, [x21, #4]
	mov	w9, #32000
	cmp	w8, w9
	mov	w8, #3
	csinc	w21, w8, wzr, ne
Lloh0:
	adrp	x8, _SAA7134_ANALOG_IO_SELECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA7134_ANALOG_IO_SELECT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #8
	bl	_saa_andorb
Lloh3:
	adrp	x8, _SAA7134_AUDIO_FORMAT_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAA7134_AUDIO_FORMAT_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #192
	mov	w2, #128
	bl	_saa_andorb
Lloh6:
	adrp	x8, _SAA7134_SIF_SAMPLE_FREQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAA7134_SIF_SAMPLE_FREQ@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #3
	mov	x2, x21
	bl	_saa_andorb
	b	LBB0_13
LBB0_11:
	mov	x0, x23
	bl	_spin_unlock_irq
	mov	w0, #0
	b	LBB0_18
LBB0_12:
	mov	w8, #3
	mov	w9, #9
	mov	w10, #3
	mov	w11, #2
	cmp	w25, #131
	csel	w8, w8, wzr, ne
	csel	w11, wzr, w11, ne
	cmp	w25, #132
	csel	w22, w10, w8, eq
	csel	w23, w9, w11, eq
Lloh9:
	adrp	x8, _SAA7133_DIGITAL_OUTPUT_SEL1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SAA7133_DIGITAL_OUTPUT_SEL1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #47888
	movk	w2, #187, lsl #16
	bl	_saa_dsp_writel
Lloh12:
	adrp	x8, _SAA7133_DIGITAL_INPUT_XBAR1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SAA7133_DIGITAL_INPUT_XBAR1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_saa_dsp_writel
Lloh15:
	adrp	x8, _SAA7133_ANALOG_IO_SELECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SAA7133_ANALOG_IO_SELECT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_saa_writel
LBB0_13:
Lloh18:
	adrp	x21, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
	cbz	w20, LBB0_15
; %bb.14:
	sxtw	x8, w25
	ldr	w0, [x19, #24]
	ldr	w1, [x21]
	ldr	x9, [x19, #16]
	ldr	x2, [x9, x8, lsl #3]
	bl	_snd_ctl_notify
LBB0_15:
Lloh20:
	adrp	x8, _MIXER_ADDR_UNSELECTED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MIXER_ADDR_UNSELECTED@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w26, w8
	ccmp	w26, w25, #4, ne
	b.eq	LBB0_17
; %bb.16:
	ldr	w0, [x19, #24]
	ldr	w1, [x21]
	ldr	x8, [x19, #16]
	ldr	x2, [x8, x26, lsl #3]
	bl	_snd_ctl_notify
LBB0_17:
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	cmp	w25, #131
	b.ne	LBB0_13
; %bb.20:
Lloh23:
	adrp	x8, _SAA7134_AUDIO_FORMAT_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SAA7134_AUDIO_FORMAT_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	w1, #192
	mov	w2, #192
	bl	_saa_andorb
Lloh26:
	adrp	x8, _SAA7134_SIF_SAMPLE_FREQ@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SAA7134_SIF_SAMPLE_FREQ@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	w1, #3
	mov	w2, #0
	bl	_saa_andorb
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA7134_AUDIO_FORMAT_CTRL,4,2  ; @SAA7134_AUDIO_FORMAT_CTRL
	.comm	_SAA7134_SIF_SAMPLE_FREQ,4,2    ; @SAA7134_SIF_SAMPLE_FREQ
	.comm	_SAA7134_ANALOG_IO_SELECT,4,2   ; @SAA7134_ANALOG_IO_SELECT
	.comm	_SAA7133_DIGITAL_OUTPUT_SEL1,4,2 ; @SAA7133_DIGITAL_OUTPUT_SEL1
	.comm	_SAA7133_DIGITAL_INPUT_XBAR1,4,2 ; @SAA7133_DIGITAL_INPUT_XBAR1
	.comm	_SAA7133_ANALOG_IO_SELECT,4,2   ; @SAA7133_ANALOG_IO_SELECT
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_MIXER_ADDR_UNSELECTED,4,2      ; @MIXER_ADDR_UNSELECTED
	.no_dead_strip	_snd_saa7134_capsrc_set
.subsections_via_symbols
