	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_hp_mic
_create_hp_mic:                         ## @create_hp_mic
	.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, %r15
	movq	(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_5:
	movl	$0, (%rbx)
	movl	24(%rbx), %eax
	movq	_AUTO_CFG_MAX_INS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_14
## %bb.6:
	movq	32(%rbx), %rax
	movq	_AUTO_PIN_HP_OUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	cmpq	$0, 40(%rbx)
	jle	LBB0_9
## %bb.8:
	leaq	72(%rbx), %rax
	jmp	LBB0_11
LBB0_1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_14
## %bb.2:
	cmpl	$1, 24(%rbx)
	jg	LBB0_14
## %bb.3:
	jne	LBB0_5
## %bb.4:
	movq	56(%rbx), %rax
	movq	8(%rax), %rsi
	movq	%r15, %rdi
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %edi
	callq	_snd_hda_get_input_pin_attr
	movq	_INPUT_PIN_ATTR_INT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
	jmp	LBB0_14
LBB0_9:
	cmpq	$0, 48(%rbx)
	jle	LBB0_14
## %bb.10:
	leaq	64(%rbx), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_14
## %bb.12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_snd_hda_query_pin_caps
	movq	_AC_PINCAP_IN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	movq	56(%rbx), %rax
	movslq	24(%rbx), %rcx
	leal	1(%rcx), %edx
	shlq	$4, %rcx
	movq	%r14, 8(%rax,%rcx)
	movq	_AUTO_PIN_MIC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 4(%rax,%rcx)
	movl	$1, (%rax,%rcx)
	movl	%edx, 24(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movq	%r14, 8(%rbx)
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_snd_printdd
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INPUT_PIN_ATTR_INT,8,3         ## @INPUT_PIN_ATTR_INT
	.comm	_AUTO_CFG_MAX_INS,4,2           ## @AUTO_CFG_MAX_INS
	.comm	_AUTO_PIN_HP_OUT,8,3            ## @AUTO_PIN_HP_OUT
	.comm	_AC_PINCAP_IN,4,2               ## @AC_PINCAP_IN
	.comm	_AUTO_PIN_MIC,4,2               ## @AUTO_PIN_MIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hda-codec: Enable shared I/O jack on NID 0x%x\n"

	.no_dead_strip	_create_hp_mic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_hp_mic
_create_hp_mic:                         ; @create_hp_mic
	.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]
	ldr	w8, [x21]
	cbz	w8, LBB0_5
LBB0_1:
	str	wzr, [x21]
	ldr	w8, [x21, #24]
Lloh0:
	adrp	x9, _AUTO_CFG_MAX_INS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTO_CFG_MAX_INS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_14
; %bb.2:
	ldr	x8, [x21, #32]
Lloh3:
	adrp	x9, _AUTO_PIN_HP_OUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUTO_PIN_HP_OUT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x21, #40]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.4:
	add	x8, x21, #72
	b	LBB0_11
LBB0_5:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_14
; %bb.6:
	ldr	w8, [x21, #24]
	cmp	w8, #1
	b.gt	LBB0_14
; %bb.7:
	b.ne	LBB0_1
; %bb.8:
	ldr	x8, [x21, #56]
	ldr	x1, [x8, #8]
	mov	x0, x19
	bl	_snd_hda_codec_get_pincfg
	bl	_snd_hda_get_input_pin_attr
Lloh6:
	adrp	x8, _INPUT_PIN_ATTR_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INPUT_PIN_ATTR_INT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_1
	b	LBB0_14
LBB0_9:
	ldr	x8, [x21, #48]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.10:
	add	x8, x21, #64
LBB0_11:
	ldr	x8, [x8]
	ldr	x20, [x8]
	cbz	x20, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_query_pin_caps
Lloh9:
	adrp	x8, _AC_PINCAP_IN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AC_PINCAP_IN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x21, #56]
	ldrsw	x9, [x21, #24]
	add	x8, x8, x9, lsl #4
	str	x20, [x8, #8]
Lloh12:
	adrp	x10, _AUTO_PIN_MIC@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AUTO_PIN_MIC@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	mov	w11, #1
	stp	w11, w10, [x8]
	add	w8, w9, #1
	str	w8, [x21, #24]
	str	x20, [x21, #8]
	movi.2s	v0, #1
	str	d0, [x21]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_snd_printdd
LBB0_14:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_INPUT_PIN_ATTR_INT,8,3         ; @INPUT_PIN_ATTR_INT
	.comm	_AUTO_CFG_MAX_INS,4,2           ; @AUTO_CFG_MAX_INS
	.comm	_AUTO_PIN_HP_OUT,8,3            ; @AUTO_PIN_HP_OUT
	.comm	_AC_PINCAP_IN,4,2               ; @AC_PINCAP_IN
	.comm	_AUTO_PIN_MIC,4,2               ; @AUTO_PIN_MIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hda-codec: Enable shared I/O jack on NID 0x%x\n"

	.no_dead_strip	_create_hp_mic
.subsections_via_symbols
