	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_tmds_sink_detect
_intel_sdvo_tmds_sink_detect:           ## @intel_sdvo_tmds_sink_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, %r12
	callq	_intel_attached_sdvo
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_to_intel_sdvo_connector
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_intel_sdvo_get_edid
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	callq	_intel_sdvo_multifunc_encoder
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movl	(%r15), %r13d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$4, %r13d
	jl	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	shrl	%r13d
	movl	%r13d, (%r15)
	movq	%r12, %rdi
	callq	_intel_sdvo_get_edid
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	jmp	LBB0_6
LBB0_9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
LBB0_10:
	movq	%r12, %rdi
	callq	_intel_sdvo_get_analog_edid
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:
	movq	_DRM_EDID_INPUT_DIGITAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.7:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.8:
	movq	%rbx, %rdi
	callq	_drm_detect_hdmi_monitor
	movl	%eax, 8(%r15)
	movq	%rbx, %rdi
	callq	_drm_detect_monitor_audio
	movl	%eax, 4(%r15)
	jmp	LBB0_13
LBB0_12:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_13:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.comm	_DRM_EDID_INPUT_DIGITAL,4,2     ## @DRM_EDID_INPUT_DIGITAL
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.no_dead_strip	_intel_sdvo_tmds_sink_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sdvo_tmds_sink_detect
_intel_sdvo_tmds_sink_detect:           ; @intel_sdvo_tmds_sink_detect
	.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	x22, x0
	bl	_intel_attached_sdvo
	mov	x19, x0
	mov	x0, x22
	bl	_to_intel_sdvo_connector
	mov	x20, x0
	mov	x0, x22
	bl	_intel_sdvo_get_edid
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_intel_sdvo_multifunc_encoder
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w23, [x19]
	mov	x24, x23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w24, #4
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w24, w24, #1
	str	w24, [x19]
	mov	x0, x22
	bl	_intel_sdvo_get_edid
	cbz	x0, LBB0_3
; %bb.5:
	mov	x21, x0
	b	LBB0_8
LBB0_6:
	str	w23, [x19]
LBB0_7:
	mov	x0, x22
	bl	_intel_sdvo_get_analog_edid
	mov	x21, x0
	cbz	x0, LBB0_14
LBB0_8:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _DRM_EDID_INPUT_DIGITAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_EDID_INPUT_DIGITAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
Lloh3:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh4:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x0, x21
	bl	_drm_detect_hdmi_monitor
	str	w0, [x19, #8]
	mov	x0, x21
	bl	_drm_detect_monitor_audio
	str	w0, [x19, #4]
	b	LBB0_12
LBB0_11:
Lloh6:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh7:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
LBB0_12:
	mov	x0, x21
	bl	_kfree
LBB0_13:
	mov	x0, x22
	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_14:
Lloh9:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh10:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	b	LBB0_13
	.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	_connector_status_unknown,4,2   ; @connector_status_unknown
	.comm	_DRM_EDID_INPUT_DIGITAL,4,2     ; @DRM_EDID_INPUT_DIGITAL
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.no_dead_strip	_intel_sdvo_tmds_sink_detect
.subsections_via_symbols
