	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_detect
_intel_hdmi_detect:                     ## @intel_hdmi_detect
	.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	%rdi, %rbx
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	8(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_intel_attached_hdmi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_hdmi_to_dig_port
	movq	%rax, %r15
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_POWER_DOMAIN_GMBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_intel_display_power_get
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_intel_digital_port_connected
	testl	%eax, %eax
	je	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_intel_hdmi_unset_edid
	movq	%rbx, %rdi
	callq	_intel_hdmi_set_edid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movq	_POWER_DOMAIN_GMBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_intel_display_power_put
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_cec_notifier_phys_addr_invalidate
LBB0_6:
	movq	%r12, %rdi
	callq	_intel_display_power_flush_work
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CONNECTOR:%d:%s]\n"

	.comm	_POWER_DOMAIN_GMBUS,4,2         ## @POWER_DOMAIN_GMBUS
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.no_dead_strip	_intel_hdmi_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_hdmi_detect
_intel_hdmi_detect:                     ; @intel_hdmi_detect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh1:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w0, [x0, #8]
	bl	_to_i915
	mov	x20, x0
	mov	x0, x22
	bl	_intel_attached_hdmi
	mov	x21, x0
	bl	_hdmi_to_dig_port
	mov	x24, x0
	ldp	w2, w1, [x22]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh5:
	adrp	x25, _POWER_DOMAIN_GMBUS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _POWER_DOMAIN_GMBUS@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_intel_display_power_get
	mov	x23, x0
	mov	x0, x20
	bl	_INTEL_GEN
Lloh7:
	adrp	x26, _connector_status_connected@GOTPAGE
Lloh8:
	ldr	x26, [x26, _connector_status_connected@GOTPAGEOFF]
	cmp	w0, #11
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_intel_digital_port_connected
	cbz	w0, LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_intel_hdmi_unset_edid
	mov	x0, x22
	bl	_intel_hdmi_set_edid
	ldr	w8, [x26]
	cmp	x0, #0
	csel	w19, w19, w8, eq
LBB0_3:
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x23
	bl	_intel_display_power_put
	ldr	w8, [x26]
	cmp	w19, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x21]
	bl	_cec_notifier_phys_addr_invalidate
LBB0_5:
	mov	x0, x20
	bl	_intel_display_power_flush_work
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CONNECTOR:%d:%s]\n"

	.comm	_POWER_DOMAIN_GMBUS,4,2         ; @POWER_DOMAIN_GMBUS
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.no_dead_strip	_intel_hdmi_detect
.subsections_via_symbols
