	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdmi_init_connector      ## -- Begin function intel_hdmi_init_connector
	.p2align	4, 0x90
_intel_hdmi_init_connector:             ## @intel_hdmi_init_connector
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	%r12, %rdi
	callq	_to_i915
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %r13d
	movl	%r13d, %edi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %r14d
	xorl	%r15d, %r15d
	cmpl	$4, %r14d
	setl	%r15b
	movl	%r13d, %edi
	callq	_port_name
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_WARN
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r15d
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	leaq	8(%r14), %rbx
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_intel_hdmi_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_connector_init
	movq	_intel_hdmi_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_drm_connector_helper_add
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%r14)
	movq	$0, 24(%r14)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jg	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movl	$1, 16(%r14)
LBB0_4:
	movq	%r13, %rdi
	movl	%r15d, %r12d
	movl	%r15d, %esi
	callq	_intel_hdmi_ddc_pin
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 40(%rbx)
	movq	_PORT_A@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:
	movq	%r14, %r15
	leaq	24(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_intel_hpd_pin_default
	movl	%eax, 12(%rbx)
	movq	%r13, %rdi
	callq	_HAS_DDI
	testq	%rax, %rax
	movq	%r13, %r14
	jne	LBB0_6
## %bb.7:
	movq	_intel_connector_get_hw_state@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_intel_ddi_connector_get_hw_state@GOTPCREL(%rip), %rax
LBB0_8:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	%r15, %r13
	movl	%eax, (%r15)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_intel_hdmi_add_properties
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_intel_connector_attach_encoder
	movq	%r13, 32(%rbx)
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_is_hdcp_supported
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_intel_hdmi_hdcp_shim@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_intel_hdcp_init
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_11:
	movq	%r14, %rdi
	callq	_IS_G45
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_PEG_BAND_GAP_DATA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
                                        ## kill: def $eax killed $eax def $rax
	movl	(%rbx), %edi
	andl	$-16, %eax
	leal	13(%rax), %esi
	callq	_I915_WRITE
LBB0_13:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_port_identifier
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_cec_notifier_get_conn
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_15
LBB0_14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding HDMI connector on port %c\n"

L_.str.1:                               ## @.str.1
	.asciz	"Not enough lanes (%d) for HDMI on port %c\n"

	.comm	_intel_hdmi_connector_funcs,4,2 ## @intel_hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.comm	_intel_hdmi_connector_helper_funcs,4,2 ## @intel_hdmi_connector_helper_funcs
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_intel_ddi_connector_get_hw_state,4,2 ## @intel_ddi_connector_get_hw_state
	.comm	_intel_connector_get_hw_state,4,2 ## @intel_connector_get_hw_state
	.comm	_intel_hdmi_hdcp_shim,4,2       ## @intel_hdmi_hdcp_shim
L_.str.2:                               ## @.str.2
	.asciz	"HDCP init failed, skipping.\n"

	.comm	_PEG_BAND_GAP_DATA,4,2          ## @PEG_BAND_GAP_DATA
L_.str.3:                               ## @.str.3
	.asciz	"CEC notifier get failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdmi_init_connector      ; -- Begin function intel_hdmi_init_connector
	.p2align	2
_intel_hdmi_init_connector:             ; @intel_hdmi_init_connector
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x23, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_to_i915
	mov	x21, x0
	mov	x24, x23
	ldr	w20, [x24, #8]!
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w25, [x23]
	cmp	w25, #4
	cset	w26, lt
	mov	x0, x20
	bl	_port_name
	mov	x3, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x26
	mov	x2, x25
	bl	_WARN
	cbnz	x0, LBB0_11
; %bb.1:
	add	x26, x22, #8
Lloh4:
	adrp	x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x2, _intel_hdmi_connector_funcs@GOTPAGE
Lloh8:
	ldr	x2, [x2, _intel_hdmi_connector_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x26
	bl	_drm_connector_init
Lloh9:
	adrp	x1, _intel_hdmi_connector_helper_funcs@GOTPAGE
Lloh10:
	ldr	x1, [x1, _intel_hdmi_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x26
	bl	_drm_connector_helper_add
	str	xzr, [x22, #24]
	movi.2s	v0, #1
	str	d0, [x22, #8]
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #9
	b.gt	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_4
LBB0_3:
	mov	w8, #1
	str	w8, [x22, #16]
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_intel_hdmi_ddc_pin
	str	w0, [x23, #40]
Lloh11:
	adrp	x8, _PORT_A@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_11
; %bb.5:
	add	x25, x23, #24
	mov	x0, x21
	mov	x1, x20
	bl	_intel_hpd_pin_default
	str	w0, [x23, #12]
	mov	x0, x21
	bl	_HAS_DDI
Lloh14:
	adrp	x8, _intel_connector_get_hw_state@GOTPAGE
Lloh15:
	ldr	x8, [x8, _intel_connector_get_hw_state@GOTPAGEOFF]
Lloh16:
	adrp	x9, _intel_ddi_connector_get_hw_state@GOTPAGE
Lloh17:
	ldr	x9, [x9, _intel_ddi_connector_get_hw_state@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x22]
	mov	x0, x25
	mov	x1, x26
	bl	_intel_hdmi_add_properties
	mov	x0, x22
	mov	x1, x24
	bl	_intel_connector_attach_encoder
	str	x22, [x23, #32]
	mov	x0, x21
	mov	x1, x20
	bl	_is_hdcp_supported
	cbz	x0, LBB0_8
; %bb.6:
Lloh18:
	adrp	x1, _intel_hdmi_hdcp_shim@GOTPAGE
Lloh19:
	ldr	x1, [x1, _intel_hdmi_hdcp_shim@GOTPAGEOFF]
	mov	x0, x22
	bl	_intel_hdcp_init
	cbz	w0, LBB0_8
; %bb.7:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_8:
	mov	x0, x21
	bl	_IS_G45
	cbz	x0, LBB0_10
; %bb.9:
Lloh22:
	adrp	x21, _PEG_BAND_GAP_DATA@GOTPAGE
Lloh23:
	ldr	x21, [x21, _PEG_BAND_GAP_DATA@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_READ
	mov	x1, x0
	ldr	w0, [x21]
	mov	w8, #13
	bfxil	w1, w8, #0, #4
	bl	_I915_WRITE
LBB0_10:
	ldr	w19, [x19]
	mov	x0, x20
	bl	_port_identifier
	mov	x1, x0
	mov	x0, x19
	bl	_cec_notifier_get_conn
	str	w0, [x25]
	cbz	w0, LBB0_12
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_DRM_DEBUG_KMS
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding HDMI connector on port %c\n"

l_.str.1:                               ; @.str.1
	.asciz	"Not enough lanes (%d) for HDMI on port %c\n"

	.comm	_intel_hdmi_connector_funcs,4,2 ; @intel_hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.comm	_intel_hdmi_connector_helper_funcs,4,2 ; @intel_hdmi_connector_helper_funcs
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_intel_ddi_connector_get_hw_state,4,2 ; @intel_ddi_connector_get_hw_state
	.comm	_intel_connector_get_hw_state,4,2 ; @intel_connector_get_hw_state
	.comm	_intel_hdmi_hdcp_shim,4,2       ; @intel_hdmi_hdcp_shim
l_.str.2:                               ; @.str.2
	.asciz	"HDCP init failed, skipping.\n"

	.comm	_PEG_BAND_GAP_DATA,4,2          ; @PEG_BAND_GAP_DATA
l_.str.3:                               ; @.str.3
	.asciz	"CEC notifier get failed\n"

.subsections_via_symbols
