	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_tv_detect
_intel_tv_detect:                       ## @intel_tv_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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_intel_attached_tv
	movq	%rax, %r14
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %ecx
	callq	_DRM_DEBUG_KMS
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.1:
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_intel_get_load_detect_pipe
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_intel_tv_detect_type
	movl	%eax, %r12d
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_intel_release_load_detect_pipe
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %eax
	testl	%r12d, %r12d
	jns	LBB0_6
## %bb.4:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	cmpl	%ebx, %eax
	je	LBB0_7
	jmp	LBB0_9
LBB0_8:
	movl	(%r13), %eax
	jmp	LBB0_9
LBB0_5:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_connector_status_connected@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
                                        ## implicit-def: $r12d
	cmpl	%ebx, %eax
	jne	LBB0_9
LBB0_7:
	movl	%r12d, (%r14)
	movq	%r13, %rdi
	callq	_intel_tv_find_better_format
	movl	%ebx, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CONNECTOR:%d:%s] force=%d\n"

	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.no_dead_strip	_intel_tv_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_tv_detect
_intel_tv_detect:                       ; @intel_tv_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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_intel_attached_tv
	mov	x20, x0
	ldp	w2, w1, [x19, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x22
	bl	_DRM_DEBUG_KMS
	cbz	w22, LBB0_4
; %bb.1:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	x3, x21
	bl	_intel_get_load_detect_pipe
	tbnz	w0, #31, LBB0_7
; %bb.2:
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_intel_tv_detect_type
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_intel_release_load_detect_pipe
Lloh2:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh3:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _connector_status_connected@GOTPAGE
Lloh6:
	ldr	x9, [x9, _connector_status_connected@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x9]
	cmp	w22, #0
	csel	w0, w8, w21, lt
	cmp	w0, w21
	b.eq	LBB0_6
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh9:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh12:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
                                        ; implicit-def: $w22
	cmp	w0, w21
	b.ne	LBB0_7
LBB0_6:
	str	w22, [x20]
	mov	x0, x19
	bl	_intel_tv_find_better_format
	mov	x0, x21
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CONNECTOR:%d:%s] force=%d\n"

	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.no_dead_strip	_intel_tv_detect
.subsections_via_symbols
