	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_add_pin
_hdmi_add_pin:                          ## @hdmi_add_pin
	.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
	movq	8(%rdi), %r13
	callq	_snd_hda_query_pin_caps
	movq	_AC_PINCAP_HDMI@GOTPCREL(%rip), %rcx
	movq	_AC_PINCAP_DP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%r14d, %r14d
	testl	%eax, %edx
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %edi
	callq	_get_defcfg_connect
	movq	_AC_JACK_PORT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.2:
	cmpl	$-2138691577, (%rbx)            ## imm = 0x80862807
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_intel_haswell_fixup_connect_list
LBB0_4:
	movl	(%r13), %r12d
	leaq	4(%r13), %rdi
	callq	_snd_array_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	%r15d, 4(%rax)
	movl	$0, (%rax)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_hdmi_read_pin_conn
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	incl	(%r13)
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_PINCAP_HDMI,4,2             ## @AC_PINCAP_HDMI
	.comm	_AC_PINCAP_DP,4,2               ## @AC_PINCAP_DP
	.comm	_AC_JACK_PORT_NONE,8,3          ## @AC_JACK_PORT_NONE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_hdmi_add_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_add_pin
_hdmi_add_pin:                          ; @hdmi_add_pin
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	bl	_snd_hda_query_pin_caps
Lloh0:
	adrp	x8, _AC_PINCAP_HDMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_PINCAP_HDMI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AC_PINCAP_DP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_PINCAP_DP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_codec_get_pincfg
	bl	_get_defcfg_connect
Lloh6:
	adrp	x8, _AC_JACK_PORT_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC_JACK_PORT_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_2:
	mov	w0, #0
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:
	ldr	w8, [x19]
	mov	w9, #10247
	movk	w9, #32902, lsl #16
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_intel_haswell_fixup_connect_list
LBB0_6:
	mov	x0, x22
	ldr	w21, [x0], #4
	bl	_snd_array_new
	cbz	x0, LBB0_9
; %bb.7:
	stp	wzr, w20, [x0]
	mov	x0, x19
	mov	x1, x21
	bl	_hdmi_read_pin_conn
	tbnz	w0, #31, LBB0_3
; %bb.8:
	mov	w0, #0
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	b	LBB0_3
LBB0_9:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_PINCAP_HDMI,4,2             ; @AC_PINCAP_HDMI
	.comm	_AC_PINCAP_DP,4,2               ; @AC_PINCAP_DP
	.comm	_AC_JACK_PORT_NONE,8,3          ; @AC_JACK_PORT_NONE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_hdmi_add_pin
.subsections_via_symbols
