	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dac_channels
_set_dac_channels:                      ## @set_dac_channels
	.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
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpl	$3, %edx
	jl	LBB0_9
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpl	$0, 4(%rsi)
	je	LBB0_3
## %bb.4:
	cmpl	$3, (%rsi)
	jne	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	_CM_REG_LEGACY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_NXCHG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_set_bit
	movq	_CM_REG_MISC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_XCHGDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_set_bit
	cmpl	$8, %r14d
	jne	LBB0_11
## %bb.6:
	movq	_CM_REG_EXT_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_CHB3D8C@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_set_bit
	jmp	LBB0_7
LBB0_9:
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	_CM_REG_LEGACY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_NXCHG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_clear_bit
	movq	_CM_REG_MISC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_XCHGDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_clear_bit
LBB0_11:
	movq	_CM_REG_EXT_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_CHB3D8C@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_clear_bit
	cmpl	$6, %r14d
	jne	LBB0_7
## %bb.12:
	movq	_CM_REG_CHFORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_CHB3D5C@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_set_bit
	movq	_CM_REG_LEGACY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_CHB3D6C@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_set_bit
	jmp	LBB0_13
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_7:
	movq	_CM_REG_CHFORMAT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CM_CHB3D5C@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_clear_bit
	movq	_CM_REG_LEGACY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_CHB3D6C@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_clear_bit
	cmpl	$4, %r14d
	jne	LBB0_13
## %bb.8:
	movl	(%r15), %esi
	movq	_CM_CHB3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_set_bit
	jmp	LBB0_14
LBB0_13:
	movq	_CM_REG_CHFORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_CHB3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_clear_bit
LBB0_14:
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CM_REG_LEGACY_CTRL,4,2         ## @CM_REG_LEGACY_CTRL
	.comm	_CM_NXCHG,4,2                   ## @CM_NXCHG
	.comm	_CM_REG_MISC_CTRL,4,2           ## @CM_REG_MISC_CTRL
	.comm	_CM_XCHGDAC,4,2                 ## @CM_XCHGDAC
	.comm	_CM_REG_EXT_MISC,4,2            ## @CM_REG_EXT_MISC
	.comm	_CM_CHB3D8C,4,2                 ## @CM_CHB3D8C
	.comm	_CM_REG_CHFORMAT,4,2            ## @CM_REG_CHFORMAT
	.comm	_CM_CHB3D5C,4,2                 ## @CM_CHB3D5C
	.comm	_CM_CHB3D6C,4,2                 ## @CM_CHB3D6C
	.comm	_CM_CHB3D,4,2                   ## @CM_CHB3D
	.no_dead_strip	_set_dac_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dac_channels
_set_dac_channels:                      ; @set_dac_channels
	.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, x2
	mov	x19, x0
	ldr	x8, [x0, #8]
	cmp	w2, #3
	b.lt	LBB0_6
; %bb.1:
	cbz	x8, LBB0_10
; %bb.2:
	ldr	w8, [x1, #4]
	cbz	w8, LBB0_10
; %bb.3:
	ldr	w8, [x1]
	cmp	w8, #3
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_spin_lock_irq
Lloh0:
	adrp	x8, _CM_REG_LEGACY_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_REG_LEGACY_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CM_NXCHG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CM_NXCHG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_set_bit
Lloh6:
	adrp	x8, _CM_REG_MISC_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CM_REG_MISC_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _CM_XCHGDAC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CM_XCHGDAC@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_set_bit
	cmp	w20, #8
	b.ne	LBB0_8
; %bb.5:
Lloh12:
	adrp	x8, _CM_REG_EXT_MISC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CM_REG_EXT_MISC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _CM_CHB3D8C@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CM_CHB3D8C@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_set_bit
	b	LBB0_11
LBB0_6:
	cbz	x8, LBB0_15
; %bb.7:
	mov	x0, x19
	bl	_spin_lock_irq
Lloh18:
	adrp	x8, _CM_REG_LEGACY_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CM_REG_LEGACY_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _CM_NXCHG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CM_NXCHG@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
Lloh24:
	adrp	x8, _CM_REG_MISC_CTRL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CM_REG_MISC_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _CM_XCHGDAC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CM_XCHGDAC@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
LBB0_8:
Lloh30:
	adrp	x8, _CM_REG_EXT_MISC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CM_REG_EXT_MISC@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _CM_CHB3D8C@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CM_CHB3D8C@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
	cmp	w20, #6
	b.ne	LBB0_11
; %bb.9:
Lloh36:
	adrp	x8, _CM_REG_CHFORMAT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CM_REG_CHFORMAT@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _CM_CHB3D5C@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CM_CHB3D5C@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_set_bit
Lloh42:
	adrp	x8, _CM_REG_LEGACY_CTRL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CM_REG_LEGACY_CTRL@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x8, _CM_CHB3D6C@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CM_CHB3D6C@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_set_bit
	b	LBB0_13
LBB0_10:
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_11:
Lloh51:
	adrp	x21, _CM_REG_CHFORMAT@GOTPAGE
Lloh52:
	ldr	x21, [x21, _CM_REG_CHFORMAT@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh53:
	adrp	x8, _CM_CHB3D5C@GOTPAGE
Lloh54:
	ldr	x8, [x8, _CM_CHB3D5C@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
Lloh56:
	adrp	x8, _CM_REG_LEGACY_CTRL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _CM_REG_LEGACY_CTRL@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
Lloh59:
	adrp	x8, _CM_CHB3D6C@GOTPAGE
Lloh60:
	ldr	x8, [x8, _CM_CHB3D6C@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
	cmp	w20, #4
	b.ne	LBB0_13
; %bb.12:
	ldr	w1, [x21]
Lloh62:
	adrp	x8, _CM_CHB3D@GOTPAGE
Lloh63:
	ldr	x8, [x8, _CM_CHB3D@GOTPAGEOFF]
Lloh64:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_set_bit
	b	LBB0_14
LBB0_13:
Lloh65:
	adrp	x8, _CM_REG_CHFORMAT@GOTPAGE
Lloh66:
	ldr	x8, [x8, _CM_REG_CHFORMAT@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
Lloh68:
	adrp	x8, _CM_CHB3D@GOTPAGE
Lloh69:
	ldr	x8, [x8, _CM_CHB3D@GOTPAGEOFF]
Lloh70:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
LBB0_14:
	mov	x0, x19
	bl	_spin_unlock_irq
LBB0_15:
	mov	w0, #0
LBB0_16:
	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	Lloh9, Lloh10, Lloh11
	.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	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CM_REG_LEGACY_CTRL,4,2         ; @CM_REG_LEGACY_CTRL
	.comm	_CM_NXCHG,4,2                   ; @CM_NXCHG
	.comm	_CM_REG_MISC_CTRL,4,2           ; @CM_REG_MISC_CTRL
	.comm	_CM_XCHGDAC,4,2                 ; @CM_XCHGDAC
	.comm	_CM_REG_EXT_MISC,4,2            ; @CM_REG_EXT_MISC
	.comm	_CM_CHB3D8C,4,2                 ; @CM_CHB3D8C
	.comm	_CM_REG_CHFORMAT,4,2            ; @CM_REG_CHFORMAT
	.comm	_CM_CHB3D5C,4,2                 ; @CM_CHB3D5C
	.comm	_CM_CHB3D6C,4,2                 ; @CM_CHB3D6C
	.comm	_CM_CHB3D,4,2                   ; @CM_CHB3D
	.no_dead_strip	_set_dac_channels
.subsections_via_symbols
