	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs4210_spdif_automute
_cs4210_spdif_automute:                 ## @cs4210_spdif_automute
	.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), %rbx
	cmpl	$0, 12(%rbx)
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_CS4210_VENDOR_NID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	%rdi, %r15
	movq	16(%rbx), %rax
	movl	(%rax), %r14d
	movl	%r14d, %esi
	callq	_snd_hda_jack_detect
	cmpl	8(%rbx), %eax
	jne	LBB0_3
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_PIN_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snd_hda_set_pin_ctl
LBB0_5:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cs_automute                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CS4210_VENDOR_NID,8,3          ## @CS4210_VENDOR_NID
	.comm	_PIN_OUT,4,2                    ## @PIN_OUT
	.no_dead_strip	_cs4210_spdif_automute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs4210_spdif_automute
_cs4210_spdif_automute:                 ; @cs4210_spdif_automute
	.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
	ldr	x21, [x0]
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _CS4210_VENDOR_NID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CS4210_VENDOR_NID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	x8, [x21, #16]
	ldr	w20, [x8]
	mov	x1, x20
	bl	_snd_hda_jack_detect
	ldr	w8, [x21, #8]
	cmp	w0, w8
	b.ne	LBB0_4
LBB0_3:
	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
LBB0_4:
	str	w0, [x21, #8]
	cbz	w0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _PIN_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIN_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_set_pin_ctl
LBB0_6:
	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	_cs_automute
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CS4210_VENDOR_NID,8,3          ; @CS4210_VENDOR_NID
	.comm	_PIN_OUT,4,2                    ; @PIN_OUT
	.no_dead_strip	_cs4210_spdif_automute
.subsections_via_symbols
