	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_silence_hack
_snd_cmipci_silence_hack:               ## @snd_cmipci_silence_hack
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rsi)
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	16(%rsi), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.2:
	movq	%rdi, %r12
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_memset
	cmpl	$0, (%r14)
	jne	LBB0_4
## %bb.5:
	movq	_CM_REG_CH0_FRAME2@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_CM_REG_CH1_FRAME2@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movl	(%r15), %eax
	leal	3(%rax), %ecx
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	cmovnsl	%eax, %edx
	sarl	$2, %ecx
	decl	%ecx
	andl	$-8, %edx
	shll	$13, %edx
	addl	$-65536, %edx                   ## imm = 0xFFFF0000
	orl	%ecx, %edx
	movq	%r12, %rdi
	callq	_snd_cmipci_write
	cmpl	$3, (%rbx)
	jl	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_set_dac_channels
LBB0_8:
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	_CM_REG_FUNCTRL1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_snd_cmipci_read
	movq	_CM_ASFC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r14), %ecx
	leal	(%rcx,%rcx,2), %esi
	movl	%esi, %ecx
	shll	%cl, %edi
	movq	_CM_ASFC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$4, %edx
	shll	%cl, %edx
	movl	%esi, %ecx
	shll	%cl, %edx
	notl	%edi
	andl	%eax, %edi
	orl	%edi, %edx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_snd_cmipci_write
	movq	_CM_REG_CHFORMAT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_snd_cmipci_read
	movq	_CM_CH0FMT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movb	(%r14), %dl
	addb	%dl, %dl
	movl	%edx, %ecx
	shll	%cl, %esi
	movq	_CM_CH0FMT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$3, %edi
	shll	%cl, %edi
	notl	%esi
	movl	%edx, %ecx
	shll	%cl, %edi
	andl	%eax, %esi
	orl	%esi, %edi
	movq	_CM_CH0_SRATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	%cl, %eax
	xorl	%edx, %edx
	cmpq	$1, 8(%r12)
	sbbl	%edx, %edx
	notl	%eax
	orl	%eax, %edx
	andl	%edi, %edx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_snd_cmipci_write
	movq	_CM_CHEN0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movb	(%r14), %cl
	shll	%cl, %edx
	orl	(%r12), %edx
	movl	%edx, (%r12)
	movq	_CM_REG_FUNCTRL0@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_snd_cmipci_write
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movl	$1, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movl	(%rbx), %edx
	movb	(%r14), %cl
	shll	%cl, %edx
	notl	%edx
	andl	(%r12), %edx
	movl	%edx, (%r12)
	movq	_CM_RST_CH0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	%cl, %ebx
	movl	(%r13), %esi
	orl	%ebx, %edx
	movq	%r12, %rdi
	callq	_snd_cmipci_write
	movl	(%r13), %esi
	notl	%ebx
	andl	(%r12), %ebx
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_snd_cmipci_write
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	$0, 8(%r14)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_CM_REG_CH1_FRAME2,4,2          ## @CM_REG_CH1_FRAME2
	.comm	_CM_REG_CH0_FRAME2,4,2          ## @CM_REG_CH0_FRAME2
	.comm	_CM_REG_FUNCTRL1,4,2            ## @CM_REG_FUNCTRL1
	.comm	_CM_ASFC_MASK,4,2               ## @CM_ASFC_MASK
	.comm	_CM_ASFC_SHIFT,4,2              ## @CM_ASFC_SHIFT
	.comm	_CM_REG_CHFORMAT,4,2            ## @CM_REG_CHFORMAT
	.comm	_CM_CH0FMT_MASK,4,2             ## @CM_CH0FMT_MASK
	.comm	_CM_CH0FMT_SHIFT,4,2            ## @CM_CH0FMT_SHIFT
	.comm	_CM_CH0_SRATE_MASK,4,2          ## @CM_CH0_SRATE_MASK
	.comm	_CM_CHEN0,4,2                   ## @CM_CHEN0
	.comm	_CM_REG_FUNCTRL0,4,2            ## @CM_REG_FUNCTRL0
	.comm	_CM_RST_CH0,4,2                 ## @CM_RST_CH0
	.no_dead_strip	_snd_cmipci_silence_hack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cmipci_silence_hack
_snd_cmipci_silence_hack:               ; @snd_cmipci_silence_hack
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldp	x9, x8, [x1, #8]
	ldr	x21, [x8]
	cmp	x9, #0
	ccmp	x21, #0, #4, ne
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x1
Lloh0:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_memset
Lloh2:
	adrp	x8, _CM_REG_CH1_FRAME2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CM_REG_CH1_FRAME2@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh4:
	adrp	x10, _CM_REG_CH0_FRAME2@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CM_REG_CH0_FRAME2@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	ldr	w8, [x22]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #2
	add	w10, w8, #7
	csel	w8, w10, w8, lt
	sub	w9, w9, #1
	lsl	w8, w8, #13
	and	w8, w8, #0xffff0000
	sub	w8, w8, #16, lsl #12            ; =65536
	orr	w2, w8, w9
	mov	x0, x20
	bl	_snd_cmipci_write
	ldr	w8, [x21]
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #2
	bl	_set_dac_channels
LBB0_4:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irq
Lloh6:
	adrp	x22, _CM_REG_FUNCTRL1@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CM_REG_FUNCTRL1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_snd_cmipci_read
Lloh8:
	adrp	x8, _CM_ASFC_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CM_ASFC_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	add	w9, w9, w9, lsl #1
	lsl	w8, w8, w9
	bic	w8, w0, w8
Lloh11:
	adrp	x10, _CM_ASFC_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CM_ASFC_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	mov	w11, #4
	lsl	w10, w11, w10
	lsl	w9, w10, w9
	orr	w2, w8, w9
	ldr	w1, [x22]
	mov	x0, x20
	bl	_snd_cmipci_write
Lloh14:
	adrp	x22, _CM_REG_CHFORMAT@GOTPAGE
Lloh15:
	ldr	x22, [x22, _CM_REG_CHFORMAT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_snd_cmipci_read
Lloh16:
	adrp	x8, _CM_CH0FMT_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CM_CH0FMT_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	lsl	w9, w9, #1
	lsl	w8, w8, w9
	bic	w8, w0, w8
Lloh19:
	adrp	x10, _CM_CH0FMT_SHIFT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _CM_CH0FMT_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	mov	w11, #3
	lsl	w10, w11, w10
	lsl	w10, w10, w9
	orr	w8, w8, w10
	ldr	x10, [x20, #8]
Lloh22:
	adrp	x11, _CM_CH0_SRATE_MASK@GOTPAGE
Lloh23:
	ldr	x11, [x11, _CM_CH0_SRATE_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	lsl	w9, w11, w9
	cmp	x10, #0
	mov	w10, #-1
	csinv	w9, w10, w9, eq
	and	w2, w9, w8
	ldr	w1, [x22]
	mov	x0, x20
	bl	_snd_cmipci_write
Lloh25:
	adrp	x22, _CM_CHEN0@GOTPAGE
Lloh26:
	ldr	x22, [x22, _CM_CHEN0@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x19]
	lsl	w8, w8, w9
	ldr	w9, [x20]
	orr	w2, w9, w8
	str	w2, [x20]
Lloh27:
	adrp	x23, _CM_REG_FUNCTRL0@GOTPAGE
Lloh28:
	ldr	x23, [x23, _CM_REG_FUNCTRL0@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_snd_cmipci_write
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	w0, #1
	bl	_msleep
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w8, [x22]
	ldr	w9, [x19]
	lsl	w8, w8, w9
	ldr	w10, [x20]
	bic	w8, w10, w8
	str	w8, [x20]
Lloh29:
	adrp	x10, _CM_RST_CH0@GOTPAGE
Lloh30:
	ldr	x10, [x10, _CM_RST_CH0@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	lsl	w22, w10, w9
	ldr	w1, [x23]
	orr	w2, w22, w8
	mov	x0, x20
	bl	_snd_cmipci_write
	ldr	w1, [x23]
	ldr	w8, [x20]
	bic	w2, w8, w22
	mov	x0, x20
	bl	_snd_cmipci_write
	mov	x0, x21
	bl	_spin_unlock_irq
	str	xzr, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_CM_REG_CH1_FRAME2,4,2          ; @CM_REG_CH1_FRAME2
	.comm	_CM_REG_CH0_FRAME2,4,2          ; @CM_REG_CH0_FRAME2
	.comm	_CM_REG_FUNCTRL1,4,2            ; @CM_REG_FUNCTRL1
	.comm	_CM_ASFC_MASK,4,2               ; @CM_ASFC_MASK
	.comm	_CM_ASFC_SHIFT,4,2              ; @CM_ASFC_SHIFT
	.comm	_CM_REG_CHFORMAT,4,2            ; @CM_REG_CHFORMAT
	.comm	_CM_CH0FMT_MASK,4,2             ; @CM_CH0FMT_MASK
	.comm	_CM_CH0FMT_SHIFT,4,2            ; @CM_CH0FMT_SHIFT
	.comm	_CM_CH0_SRATE_MASK,4,2          ; @CM_CH0_SRATE_MASK
	.comm	_CM_CHEN0,4,2                   ; @CM_CHEN0
	.comm	_CM_REG_FUNCTRL0,4,2            ; @CM_REG_FUNCTRL0
	.comm	_CM_RST_CH0,4,2                 ; @CM_RST_CH0
	.no_dead_strip	_snd_cmipci_silence_hack
.subsections_via_symbols
