	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxt5066_hp_automute
_cxt5066_hp_automute:                   ## @cxt5066_hp_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
	movq	(%rdi), %r15
	movl	$25, %esi
	callq	_snd_hda_jack_detect
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$28, %esi
	callq	_snd_hda_jack_detect
	movl	%r14d, %edx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_HP_PRESENT_PORT_A@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_2:
	movl	%edx, (%r15)
	movl	%eax, %ecx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_HP_PRESENT_PORT_D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%edx, %ecx
	movl	%ecx, (%r15)
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_snd_printdd
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cxt5066_update_speaker         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HP_PRESENT_PORT_A,4,2          ## @HP_PRESENT_PORT_A
	.comm	_HP_PRESENT_PORT_D,4,2          ## @HP_PRESENT_PORT_D
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CXT5066: hp automute portA=%x portD=%x present=%d\n"

	.no_dead_strip	_cxt5066_hp_automute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxt5066_hp_automute
_cxt5066_hp_automute:                   ; @cxt5066_hp_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
	mov	x19, x0
	ldr	x21, [x0]
	mov	w1, #25
	bl	_snd_hda_jack_detect
	mov	x20, x0
	mov	x0, x19
	mov	w1, #28
	bl	_snd_hda_jack_detect
	mov	x2, x0
Lloh0:
	adrp	x8, _HP_PRESENT_PORT_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HP_PRESENT_PORT_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _HP_PRESENT_PORT_D@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HP_PRESENT_PORT_D@GOTPAGEOFF]
	str	w8, [x21]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, #0
	csel	w9, wzr, w9, eq
	orr	w3, w9, w8
	str	w3, [x21]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_snd_printdd
	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	_cxt5066_update_speaker
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HP_PRESENT_PORT_A,4,2          ; @HP_PRESENT_PORT_A
	.comm	_HP_PRESENT_PORT_D,4,2          ; @HP_PRESENT_PORT_D
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CXT5066: hp automute portA=%x portD=%x present=%d\n"

	.no_dead_strip	_cxt5066_hp_automute
.subsections_via_symbols
