	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_line_in_mode_put
_snd_cmipci_line_in_mode_put:           ## @snd_cmipci_line_in_mode_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movq	(%r14), %rax
	movq	_CM_CENTR2LIN@GOTPCREL(%rip), %rcx
	movq	_CM_BASE2LIN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	cmpl	$2, (%rax)
	movq	_CM_REG_LEGACY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	jne	LBB0_2
## %bb.1:
	callq	_snd_cmipci_set_bit
	jmp	LBB0_3
LBB0_2:
	callq	_snd_cmipci_clear_bit
LBB0_3:
	movl	%eax, %r15d
	movq	(%r14), %rax
	cmpl	$1, (%rax)
	movq	_CM_REG_MIXER1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_REAR2LIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	jne	LBB0_5
## %bb.4:
	callq	_snd_cmipci_set_bit_b
	jmp	LBB0_6
LBB0_5:
	callq	_snd_cmipci_clear_bit_b
LBB0_6:
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_REG_LEGACY_CTRL,4,2         ## @CM_REG_LEGACY_CTRL
	.comm	_CM_CENTR2LIN,4,2               ## @CM_CENTR2LIN
	.comm	_CM_BASE2LIN,4,2                ## @CM_BASE2LIN
	.comm	_CM_REG_MIXER1,4,2              ## @CM_REG_MIXER1
	.comm	_CM_REAR2LIN,4,2                ## @CM_REAR2LIN
	.no_dead_strip	_snd_cmipci_line_in_mode_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cmipci_line_in_mode_put
_snd_cmipci_line_in_mode_put:           ; @snd_cmipci_line_in_mode_put
	.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	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	bl	_spin_lock_irq
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _CM_REG_LEGACY_CTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CM_REG_LEGACY_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _CM_CENTR2LIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CM_CENTR2LIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _CM_BASE2LIN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CM_BASE2LIN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w2, w10, w9
	mov	x0, x19
	cmp	w8, #2
	b.ne	LBB0_2
; %bb.1:
	bl	_snd_cmipci_set_bit
	b	LBB0_3
LBB0_2:
	bl	_snd_cmipci_clear_bit
LBB0_3:
	mov	x21, x0
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _CM_REG_MIXER1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CM_REG_MIXER1@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh11:
	ldr	w1, [x9]
Lloh12:
	adrp	x9, _CM_REAR2LIN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CM_REAR2LIN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x9]
	mov	x0, x19
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	bl	_snd_cmipci_set_bit_b
	b	LBB0_6
LBB0_5:
	bl	_snd_cmipci_clear_bit_b
LBB0_6:
	orr	w20, w0, w21
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_REG_LEGACY_CTRL,4,2         ; @CM_REG_LEGACY_CTRL
	.comm	_CM_CENTR2LIN,4,2               ; @CM_CENTR2LIN
	.comm	_CM_BASE2LIN,4,2                ; @CM_BASE2LIN
	.comm	_CM_REG_MIXER1,4,2              ; @CM_REG_MIXER1
	.comm	_CM_REAR2LIN,4,2                ; @CM_REAR2LIN
	.no_dead_strip	_snd_cmipci_line_in_mode_put
.subsections_via_symbols
