	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs4210_pinmux_init
_cs4210_pinmux_init:                    ## @cs4210_pinmux_init
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_CS421X_IDX_DEV_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_cs_vendor_coef_get
                                        ## kill: def $eax killed $eax def $rax
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rbx)
	setne	%cl
	andl	$-25, %eax
	leal	(%rax,%rcx,8), %eax
	xorl	%edx, %edx
	cmpq	$0, (%rbx)
	setne	%dl
	shll	$4, %edx
	orl	%eax, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_cs_vendor_coef_set
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_3
LBB0_2:
	movq	_CS421X_DMIC_PIN_NID@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_is_active_pin
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_hda_codec_get_pincfg
	movq	_AC_DEFCFG_PORT_CONN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AC_DEFCFG_PORT_CONN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_AC_JACK_PORT_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	notl	%esi
	andl	%eax, %esi
	orl	%esi, %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hda_codec_set_pincfg       ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CS421X_IDX_DEV_CFG,4,2         ## @CS421X_IDX_DEV_CFG
	.comm	_CS421X_DMIC_PIN_NID,4,2        ## @CS421X_DMIC_PIN_NID
	.comm	_AC_DEFCFG_PORT_CONN,4,2        ## @AC_DEFCFG_PORT_CONN
	.comm	_AC_JACK_PORT_NONE,4,2          ## @AC_JACK_PORT_NONE
	.comm	_AC_DEFCFG_PORT_CONN_SHIFT,4,2  ## @AC_DEFCFG_PORT_CONN_SHIFT
	.no_dead_strip	_cs4210_pinmux_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs4210_pinmux_init
_cs4210_pinmux_init:                    ; @cs4210_pinmux_init
	.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	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _CS421X_IDX_DEV_CFG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CS421X_IDX_DEV_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_cs_vendor_coef_get
	ldp	x9, x8, [x20]
	cmp	x8, #0
	cset	w8, ne
	and	w2, w0, #0xffffffe7
	bfi	w2, w8, #3, #1
	cmp	x9, #0
	cset	w8, ne
	bfi	w2, w8, #4, #1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_cs_vendor_coef_set
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
LBB0_2:
Lloh2:
	adrp	x20, _CS421X_DMIC_PIN_NID@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CS421X_DMIC_PIN_NID@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_is_active_pin
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_hda_codec_get_pincfg
Lloh4:
	adrp	x8, _AC_DEFCFG_PORT_CONN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AC_DEFCFG_PORT_CONN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh7:
	adrp	x9, _AC_JACK_PORT_NONE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AC_JACK_PORT_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _AC_DEFCFG_PORT_CONN_SHIFT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _AC_DEFCFG_PORT_CONN_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	ldr	w1, [x20]
	mov	x0, x19
	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	_snd_hda_codec_set_pincfg
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CS421X_IDX_DEV_CFG,4,2         ; @CS421X_IDX_DEV_CFG
	.comm	_CS421X_DMIC_PIN_NID,4,2        ; @CS421X_DMIC_PIN_NID
	.comm	_AC_DEFCFG_PORT_CONN,4,2        ; @AC_DEFCFG_PORT_CONN
	.comm	_AC_JACK_PORT_NONE,4,2          ; @AC_JACK_PORT_NONE
	.comm	_AC_DEFCFG_PORT_CONN_SHIFT,4,2  ; @AC_DEFCFG_PORT_CONN_SHIFT
	.no_dead_strip	_cs4210_pinmux_init
.subsections_via_symbols
