	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_wss_calibrate_mute
_snd_wss_calibrate_mute:                ## @snd_wss_calibrate_mute
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	testl	%esi, %esi
	setne	%r12b
	shll	$7, %r12d
	leaq	20(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	%r12d, (%rbx)
	je	LBB0_11
## %bb.1:
	movq	_CS4231_LEFT_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_wss_dout
	movq	_CS4231_RIGHT_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_wss_dout
	movq	_CS4231_LOOPBACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$253, %edx
	jmp	LBB0_4
LBB0_2:
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_RIGHT_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_LOOPBACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%rbx, %rdi
LBB0_4:
	callq	_snd_wss_dout
	movq	_CS4231_AUX1_LEFT_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_AUX1_RIGHT_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_AUX2_LEFT_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_AUX2_RIGHT_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_LEFT_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_RIGHT_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movl	16(%rbx), %eax
	movq	_WSS_HW_AD1848_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.5:
	movq	_CS4231_LEFT_LINE_IN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_RIGHT_LINE_IN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_MONO_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$192, %edx
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
LBB0_7:
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movl	16(%rbx), %eax
LBB0_8:
	movq	_WSS_HW_INTERWAVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movq	_CS4231_LEFT_MIC_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_RIGHT_MIC_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_LINE_LEFT_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
	movq	_CS4231_LINE_RIGHT_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_dout
LBB0_10:
	movl	%r12d, (%rbx)
LBB0_11:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CS4231_LEFT_INPUT,8,3          ## @CS4231_LEFT_INPUT
	.comm	_CS4231_RIGHT_INPUT,8,3         ## @CS4231_RIGHT_INPUT
	.comm	_CS4231_LOOPBACK,8,3            ## @CS4231_LOOPBACK
	.comm	_CS4231_AUX1_LEFT_INPUT,8,3     ## @CS4231_AUX1_LEFT_INPUT
	.comm	_CS4231_AUX1_RIGHT_INPUT,8,3    ## @CS4231_AUX1_RIGHT_INPUT
	.comm	_CS4231_AUX2_LEFT_INPUT,8,3     ## @CS4231_AUX2_LEFT_INPUT
	.comm	_CS4231_AUX2_RIGHT_INPUT,8,3    ## @CS4231_AUX2_RIGHT_INPUT
	.comm	_CS4231_LEFT_OUTPUT,8,3         ## @CS4231_LEFT_OUTPUT
	.comm	_CS4231_RIGHT_OUTPUT,8,3        ## @CS4231_RIGHT_OUTPUT
	.comm	_WSS_HW_AD1848_MASK,4,2         ## @WSS_HW_AD1848_MASK
	.comm	_CS4231_LEFT_LINE_IN,8,3        ## @CS4231_LEFT_LINE_IN
	.comm	_CS4231_RIGHT_LINE_IN,8,3       ## @CS4231_RIGHT_LINE_IN
	.comm	_CS4231_MONO_CTRL,8,3           ## @CS4231_MONO_CTRL
	.comm	_WSS_HW_INTERWAVE,4,2           ## @WSS_HW_INTERWAVE
	.comm	_CS4231_LEFT_MIC_INPUT,8,3      ## @CS4231_LEFT_MIC_INPUT
	.comm	_CS4231_RIGHT_MIC_INPUT,8,3     ## @CS4231_RIGHT_MIC_INPUT
	.comm	_CS4231_LINE_LEFT_OUTPUT,8,3    ## @CS4231_LINE_LEFT_OUTPUT
	.comm	_CS4231_LINE_RIGHT_OUTPUT,8,3   ## @CS4231_LINE_RIGHT_OUTPUT
	.no_dead_strip	_snd_wss_calibrate_mute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_wss_calibrate_mute
_snd_wss_calibrate_mute:                ; @snd_wss_calibrate_mute
	.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	x21, x1
	mov	x19, x0
	cmp	w1, #0
	cset	w8, ne
	lsl	w22, w8, #7
	add	x20, x0, #20
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	cmp	w8, w22
	b.eq	LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _CS4231_LEFT_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CS4231_LEFT_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	cbz	w21, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w2, #0
	bl	_snd_wss_dout
Lloh3:
	adrp	x8, _CS4231_RIGHT_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CS4231_RIGHT_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_wss_dout
Lloh6:
	adrp	x8, _CS4231_LOOPBACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CS4231_LOOPBACK@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #253
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_snd_wss_dout
Lloh9:
	adrp	x8, _CS4231_RIGHT_INPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CS4231_RIGHT_INPUT@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_snd_wss_dout
Lloh12:
	adrp	x8, _CS4231_LOOPBACK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CS4231_LOOPBACK@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
LBB0_4:
	bl	_snd_wss_dout
Lloh15:
	adrp	x8, _CS4231_AUX1_LEFT_INPUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CS4231_AUX1_LEFT_INPUT@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
Lloh18:
	adrp	x8, _CS4231_AUX1_RIGHT_INPUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CS4231_AUX1_RIGHT_INPUT@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
Lloh21:
	adrp	x8, _CS4231_AUX2_LEFT_INPUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CS4231_AUX2_LEFT_INPUT@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
Lloh24:
	adrp	x8, _CS4231_AUX2_RIGHT_INPUT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CS4231_AUX2_RIGHT_INPUT@GOTPAGEOFF]
Lloh26:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
Lloh27:
	adrp	x8, _CS4231_LEFT_OUTPUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CS4231_LEFT_OUTPUT@GOTPAGEOFF]
Lloh29:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
Lloh30:
	adrp	x8, _CS4231_RIGHT_OUTPUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CS4231_RIGHT_OUTPUT@GOTPAGEOFF]
Lloh32:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
	ldr	w8, [x19, #16]
Lloh33:
	adrp	x9, _WSS_HW_AD1848_MASK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _WSS_HW_AD1848_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.5:
Lloh36:
	adrp	x8, _CS4231_LEFT_LINE_IN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CS4231_LEFT_LINE_IN@GOTPAGEOFF]
Lloh38:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
Lloh39:
	adrp	x8, _CS4231_RIGHT_LINE_IN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CS4231_RIGHT_LINE_IN@GOTPAGEOFF]
Lloh41:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
Lloh42:
	adrp	x8, _CS4231_MONO_CTRL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CS4231_MONO_CTRL@GOTPAGEOFF]
Lloh44:
	ldr	x1, [x8]
	cbz	w21, LBB0_7
; %bb.6:
	mov	w2, #192
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x1, lsl #2]
LBB0_8:
	mov	x0, x19
	bl	_snd_wss_dout
	ldr	w8, [x19, #16]
LBB0_9:
Lloh45:
	adrp	x9, _WSS_HW_INTERWAVE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _WSS_HW_INTERWAVE@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
Lloh48:
	adrp	x8, _CS4231_LEFT_MIC_INPUT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CS4231_LEFT_MIC_INPUT@GOTPAGEOFF]
Lloh50:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
Lloh51:
	adrp	x8, _CS4231_RIGHT_MIC_INPUT@GOTPAGE
Lloh52:
	ldr	x8, [x8, _CS4231_RIGHT_MIC_INPUT@GOTPAGEOFF]
Lloh53:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
Lloh54:
	adrp	x8, _CS4231_LINE_LEFT_OUTPUT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _CS4231_LINE_LEFT_OUTPUT@GOTPAGEOFF]
Lloh56:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
Lloh57:
	adrp	x8, _CS4231_LINE_RIGHT_OUTPUT@GOTPAGE
Lloh58:
	ldr	x8, [x8, _CS4231_LINE_RIGHT_OUTPUT@GOTPAGEOFF]
Lloh59:
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_snd_wss_dout
LBB0_11:
	str	w22, [x19]
LBB0_12:
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_CS4231_LEFT_INPUT,8,3          ; @CS4231_LEFT_INPUT
	.comm	_CS4231_RIGHT_INPUT,8,3         ; @CS4231_RIGHT_INPUT
	.comm	_CS4231_LOOPBACK,8,3            ; @CS4231_LOOPBACK
	.comm	_CS4231_AUX1_LEFT_INPUT,8,3     ; @CS4231_AUX1_LEFT_INPUT
	.comm	_CS4231_AUX1_RIGHT_INPUT,8,3    ; @CS4231_AUX1_RIGHT_INPUT
	.comm	_CS4231_AUX2_LEFT_INPUT,8,3     ; @CS4231_AUX2_LEFT_INPUT
	.comm	_CS4231_AUX2_RIGHT_INPUT,8,3    ; @CS4231_AUX2_RIGHT_INPUT
	.comm	_CS4231_LEFT_OUTPUT,8,3         ; @CS4231_LEFT_OUTPUT
	.comm	_CS4231_RIGHT_OUTPUT,8,3        ; @CS4231_RIGHT_OUTPUT
	.comm	_WSS_HW_AD1848_MASK,4,2         ; @WSS_HW_AD1848_MASK
	.comm	_CS4231_LEFT_LINE_IN,8,3        ; @CS4231_LEFT_LINE_IN
	.comm	_CS4231_RIGHT_LINE_IN,8,3       ; @CS4231_RIGHT_LINE_IN
	.comm	_CS4231_MONO_CTRL,8,3           ; @CS4231_MONO_CTRL
	.comm	_WSS_HW_INTERWAVE,4,2           ; @WSS_HW_INTERWAVE
	.comm	_CS4231_LEFT_MIC_INPUT,8,3      ; @CS4231_LEFT_MIC_INPUT
	.comm	_CS4231_RIGHT_MIC_INPUT,8,3     ; @CS4231_RIGHT_MIC_INPUT
	.comm	_CS4231_LINE_LEFT_OUTPUT,8,3    ; @CS4231_LINE_LEFT_OUTPUT
	.comm	_CS4231_LINE_RIGHT_OUTPUT,8,3   ; @CS4231_LINE_RIGHT_OUTPUT
	.no_dead_strip	_snd_wss_calibrate_mute
.subsections_via_symbols
