	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cur_hp_mic_jack_mode
_get_cur_hp_mic_jack_mode:              ## @get_cur_hp_mic_jack_mode
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_get_out_jack_num_items
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_get_in_jack_num_items
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_snd_hda_codec_get_pin_target
	movl	%eax, %r12d
	movq	_PIN_OUT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	cmpl	$2, %r14d
	setge	%al
	movq	_PIN_HP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_PIN_IN@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.4:
	cmpl	$2, %r13d
	jl	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_get_vref_caps
	movq	_AC_PINCTL_VREFEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%r12d, %esi
	movl	%eax, %edi
	callq	_cvt_from_vref_idx
	addl	%eax, %r14d
	jmp	LBB0_6
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_OUT,4,2                    ## @PIN_OUT
	.comm	_PIN_HP,4,2                     ## @PIN_HP
	.comm	_PIN_IN,4,2                     ## @PIN_IN
	.comm	_AC_PINCTL_VREFEN,4,2           ## @AC_PINCTL_VREFEN
	.no_dead_strip	_get_cur_hp_mic_jack_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cur_hp_mic_jack_mode
_get_cur_hp_mic_jack_mode:              ; @get_cur_hp_mic_jack_mode
	.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	x20, x1
	mov	x21, x0
	bl	_get_out_jack_num_items
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_get_in_jack_num_items
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	bl	_snd_hda_codec_get_pin_target
	mov	x22, x0
Lloh0:
	adrp	x8, _PIN_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIN_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #1
Lloh3:
	adrp	x8, _PIN_HP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIN_HP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w22, w8, #0, gt
	cset	w19, eq
LBB0_2:
	mov	x0, x19
	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
LBB0_3:
Lloh6:
	adrp	x8, _PIN_IN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIN_IN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.4:
	cmp	w23, #2
	b.lt	LBB0_2
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	_get_vref_caps
Lloh9:
	adrp	x8, _AC_PINCTL_VREFEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AC_PINCTL_VREFEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w1, w8, w22
	bl	_cvt_from_vref_idx
	add	w19, w19, w0
	b	LBB0_2
LBB0_6:
	mov	w19, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_OUT,4,2                    ; @PIN_OUT
	.comm	_PIN_HP,4,2                     ; @PIN_HP
	.comm	_PIN_IN,4,2                     ; @PIN_IN
	.comm	_AC_PINCTL_VREFEN,4,2           ; @AC_PINCTL_VREFEN
	.no_dead_strip	_get_cur_hp_mic_jack_mode
.subsections_via_symbols
