	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_detect
_intel_sdvo_detect:                     ## @intel_sdvo_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_intel_attached_sdvo
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_intel_sdvo_connector
	movq	%rax, %r14
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_SDVO_CMD_GET_ATTACHED_DISPLAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	$2, %ecx
	callq	_intel_sdvo_get_value
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	-28(%rbp), %edx
	movzbl	%dl, %esi
	sarl	$8, %edx
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, (%r15)
	movq	$0, 4(%r15)
	movl	-28(%rbp), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	callq	_IS_TMDS
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_intel_sdvo_tmds_sink_detect
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_3:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_1:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_intel_sdvo_get_edid
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_intel_sdvo_get_analog_edid
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_13
LBB0_9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_intel_sdvo_connector_matches_edid
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_13:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CONNECTOR:%d:%s]\n"

	.comm	_SDVO_CMD_GET_ATTACHED_DISPLAYS,4,2 ## @SDVO_CMD_GET_ATTACHED_DISPLAYS
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
L_.str.1:                               ## @.str.1
	.asciz	"SDVO response %d %d [%x]\n"

	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.no_dead_strip	_intel_sdvo_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_detect
_intel_sdvo_detect:                     ; @intel_sdvo_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_intel_attached_sdvo
	mov	x21, x0
	mov	x0, x19
	bl	_to_intel_sdvo_connector
	mov	x20, x0
	ldp	w2, w1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _SDVO_CMD_GET_ATTACHED_DISPLAYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDVO_CMD_GET_ATTACHED_DISPLAYS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	mov	w3, #2
	bl	_intel_sdvo_get_value
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
	and	w1, w8, #0xff
	asr	w2, w8, #8
	ldr	w8, [x20]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.2:
	stp	wzr, wzr, [x21, #4]
	str	w8, [x21]
	ldr	w8, [x20]
	ldr	w9, [sp, #12]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_IS_TMDS
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_intel_sdvo_tmds_sink_detect
	mov	x19, x0
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh8:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh10:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
LBB0_7:
	ldr	w19, [x8]
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_9:
	mov	x0, x19
	bl	_intel_sdvo_get_edid
	mov	x21, x0
	cbnz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_intel_sdvo_get_analog_edid
	mov	x21, x0
	cbz	x0, LBB0_12
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_sdvo_connector_matches_edid
Lloh11:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh12:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
Lloh13:
	adrp	x9, _connector_status_connected@GOTPAGE
Lloh14:
	ldr	x9, [x9, _connector_status_connected@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w19, [x8]
	mov	x0, x21
	bl	_kfree
	b	LBB0_8
LBB0_12:
Lloh15:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh16:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CONNECTOR:%d:%s]\n"

	.comm	_SDVO_CMD_GET_ATTACHED_DISPLAYS,4,2 ; @SDVO_CMD_GET_ATTACHED_DISPLAYS
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
l_.str.1:                               ; @.str.1
	.asciz	"SDVO response %d %d [%x]\n"

	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.no_dead_strip	_intel_sdvo_detect
.subsections_via_symbols
