	.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, %r14
	movq	%r12, %rdi
	callq	_intel_sdvo_get_edid
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_intel_sdvo_multifunc_encoder
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movl	(%r14), %r15d
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$4, %ebx
	jl	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	shrl	%ebx
	movl	%ebx, (%r14)
	movq	%r12, %rdi
	callq	_intel_sdvo_get_edid
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r13
	jmp	LBB0_6
LBB0_9:
	movl	%r15d, (%r14)
LBB0_10:
	movq	%r12, %rdi
	callq	_intel_sdvo_get_analog_edid
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:
	movq	_DRM_EDID_INPUT_DIGITAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_12
## %bb.7:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpq	$0, 16(%r14)
	je	LBB0_13
## %bb.8:
	movq	%r13, %rdi
	callq	_drm_detect_hdmi_monitor
	movl	%eax, 12(%r14)
	movq	%r13, %rdi
	callq	_drm_detect_monitor_audio
	movl	%eax, 4(%r14)
	movq	%r13, %rdi
	callq	_drm_rgb_quant_range_selectable
	movl	%eax, 8(%r14)
	jmp	LBB0_13
LBB0_12:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_13:
	movq	%r13, %rdi
	callq	_kfree
LBB0_14:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_17
## %bb.15:
	movq	%r12, %rdi
	callq	_to_intel_sdvo_connector
	movq	(%rax), %rax
	movq	_HDMI_AUDIO_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	movq	_HDMI_AUDIO_ON@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, 4(%r14)
LBB0_17:
	movl	%r15d, %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), %r15d
	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
	.comm	_HDMI_AUDIO_AUTO,8,3            ## @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,8,3              ## @HDMI_AUDIO_ON
	.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	x20, x0
	bl	_intel_attached_sdvo
	mov	x19, x0
	mov	x0, x20
	bl	_intel_sdvo_get_edid
	mov	x22, x0
Lloh0:
	adrp	x23, _connector_status_connected@GOTPAGE
Lloh1:
	ldr	x23, [x23, _connector_status_connected@GOTPAGEOFF]
	cbnz	x0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_intel_sdvo_multifunc_encoder
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w21, [x19]
	mov	x24, x21
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, x20
	bl	_intel_sdvo_get_edid
	cbz	x0, LBB0_3
; %bb.5:
	mov	x22, x0
	b	LBB0_8
LBB0_6:
	str	w21, [x19]
LBB0_7:
	mov	x0, x20
	bl	_intel_sdvo_get_analog_edid
	mov	x22, x0
	cbz	x0, LBB0_17
LBB0_8:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _DRM_EDID_INPUT_DIGITAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_EDID_INPUT_DIGITAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	ldr	w21, [x23]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x0, x22
	bl	_drm_detect_hdmi_monitor
	str	w0, [x19, #12]
	mov	x0, x22
	bl	_drm_detect_monitor_audio
	str	w0, [x19, #4]
	mov	x0, x22
	bl	_drm_rgb_quant_range_selectable
	str	w0, [x19, #8]
	b	LBB0_12
LBB0_11:
Lloh5:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh6:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
LBB0_12:
	mov	x0, x22
	bl	_kfree
LBB0_13:
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x20
	bl	_to_intel_sdvo_connector
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _HDMI_AUDIO_AUTO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HDMI_AUDIO_AUTO@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.15:
Lloh11:
	adrp	x9, _HDMI_AUDIO_ON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HDMI_AUDIO_ON@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19, #4]
LBB0_16:
	mov	x0, x21
	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_17:
Lloh14:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh15:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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
	.comm	_HDMI_AUDIO_AUTO,8,3            ; @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,8,3              ; @HDMI_AUDIO_ON
	.no_dead_strip	_intel_sdvo_tmds_sink_detect
.subsections_via_symbols
