	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_intel_attached_tv
	movq	%rax, %r14
	movq	_reported_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	callq	_intel_get_load_detect_pipe
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_intel_tv_detect_type
	movl	%eax, %r15d
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_intel_release_load_detect_pipe
	testl	%r15d, %r15d
	js	LBB0_5
## %bb.6:
	movl	%r15d, (%r14)
	movq	%r12, %rdi
	callq	_intel_tv_find_better_format
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movl	(%r12), %eax
	jmp	LBB0_8
LBB0_2:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reported_modes,8,3             ## @reported_modes
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.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	x21, x1
	mov	x19, x0
	bl	_intel_attached_tv
Lloh0:
	adrp	x8, _reported_modes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reported_modes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	w21, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_intel_get_load_detect_pipe
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_intel_tv_detect_type
	mov	x21, x0
	mov	x1, sp
	mov	x0, x19
	bl	_intel_release_load_detect_pipe
	tbnz	w21, #31, LBB0_6
; %bb.3:
	str	w21, [x20]
	mov	x0, x19
	bl	_intel_tv_find_better_format
Lloh3:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh4:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19]
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh6:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh8:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_reported_modes,8,3             ; @reported_modes
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.no_dead_strip	_intel_tv_detect
.subsections_via_symbols
