	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_mic_jack_mode_put
_hp_mic_jack_mode_put:                  ## @hp_mic_jack_mode_put
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r13
	movl	(%rbx), %r14d
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_get_out_jack_num_items
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_get_in_jack_num_items
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_get_cur_hp_mic_jack_mode
	movl	%eax, %ecx
	movq	(%r15), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	je	LBB0_12
## %bb.1:
	movl	%edx, %r15d
	subl	%r12d, %r15d
	jae	LBB0_5
## %bb.2:
	cmpl	$2, %r12d
	jl	LBB0_9
## %bb.3:
	testl	%edx, %edx
	jne	LBB0_9
## %bb.4:
	movq	_PIN_OUT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	%r13, %rdi
	movl	%r14d, %esi
	cmpl	$2, %ebx
	jl	LBB0_8
## %bb.6:
	callq	_get_vref_caps
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_snd_hda_codec_get_pin_target
	movq	_AC_PINCTL_VREFEN@GOTPCREL(%rip), %rcx
	movq	_PIN_HP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_get_vref_idx
	movl	%eax, %edx
	movq	_PIN_IN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	%ebx, %edx
	jmp	LBB0_11
LBB0_9:
	movq	_PIN_HP@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edx
	jmp	LBB0_11
LBB0_8:
	callq	_snd_hda_get_default_vref
	movl	%eax, %edx
LBB0_11:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_snd_hda_set_pin_ctl_cache
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_call_hp_automute
	movl	$1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_HP,4,2                     ## @PIN_HP
	.comm	_PIN_OUT,4,2                    ## @PIN_OUT
	.comm	_AC_PINCTL_VREFEN,4,2           ## @AC_PINCTL_VREFEN
	.comm	_PIN_IN,4,2                     ## @PIN_IN
	.no_dead_strip	_hp_mic_jack_mode_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp_mic_jack_mode_put
_hp_mic_jack_mode_put:                  ; @hp_mic_jack_mode_put
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w20, [x20]
	mov	x1, x20
	bl	_get_out_jack_num_items
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_get_in_jack_num_items
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	bl	_get_cur_hp_mic_jack_mode
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	subs	w21, w8, w22
	b.hs	LBB0_5
; %bb.3:
	cmp	w22, #2
	b.lt	LBB0_7
; %bb.4:
Lloh0:
	adrp	x9, _PIN_HP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIN_HP@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PIN_OUT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PIN_OUT@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w2, [x8]
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	cmp	w23, #2
	b.lt	LBB0_8
; %bb.6:
	bl	_get_vref_caps
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_codec_get_pin_target
Lloh4:
	adrp	x8, _AC_PINCTL_VREFEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AC_PINCTL_VREFEN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _PIN_HP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PIN_HP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w23, w0, w8
	mov	x0, x22
	mov	x1, x21
	bl	_get_vref_idx
Lloh10:
	adrp	x8, _PIN_IN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PIN_IN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w8, w8, w0
	orr	w2, w8, w23
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x8, _PIN_HP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PIN_HP@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	b	LBB0_9
LBB0_8:
	bl	_snd_hda_get_default_vref
	mov	x2, x0
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_set_pin_ctl_cache
	mov	x0, x19
	mov	x1, #0
	bl	_call_hp_automute
	mov	w0, #1
LBB0_10:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_HP,4,2                     ; @PIN_HP
	.comm	_PIN_OUT,4,2                    ; @PIN_OUT
	.comm	_AC_PINCTL_VREFEN,4,2           ; @AC_PINCTL_VREFEN
	.comm	_PIN_IN,4,2                     ; @PIN_IN
	.no_dead_strip	_hp_mic_jack_mode_put
.subsections_via_symbols
