	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_detect_dpcd
_intel_dp_detect_dpcd:                  ## @intel_dp_detect_dpcd
	.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	_dp_to_lspcon
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	%rbx, %rdi
	callq	_intel_dp_is_edp
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_lspcon_resume
LBB0_5:
	movq	%rbx, %rdi
	callq	_intel_dp_get_dpcd
	testl	%eax, %eax
	je	LBB0_19
## %bb.6:
	movq	%r14, %rdi
	callq	_drm_dp_is_branch
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	movq	(%rbx), %rax
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	cmpl	$17, (%rax,%rcx,4)
	jl	LBB0_11
## %bb.8:
	movq	8(%rbx), %rax
	movq	_DP_DS_PORT_HPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.9:
	cmpq	$0, 24(%rbx)
	jne	LBB0_1
	jmp	LBB0_19
LBB0_11:
	movq	%rbx, %rdi
	callq	_intel_dp_can_mst
	testq	%rax, %rax
	jne	LBB0_1
## %bb.12:
	leaq	16(%rbx), %rdi
	callq	_drm_probe_ddc
	testq	%rax, %rax
	jne	LBB0_1
## %bb.13:
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	cmpl	$17, (%rax,%rcx,4)
	jl	LBB0_16
## %bb.14:
	movq	8(%rbx), %rcx
	movq	_DP_DS_PORT_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rcx), %eax
	movq	_DP_DS_PORT_TYPE_VGA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_20
## %bb.15:
	movq	_DP_DS_PORT_TYPE_NON_EDID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
	jmp	LBB0_20
LBB0_16:
	movq	_DP_DOWNSTREAMPORT_PRESENT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_DP_DWN_STRM_PORT_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax,%rdx,4), %ecx
	movq	_DP_DWN_STRM_PORT_TYPE_ANALOG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_20
## %bb.17:
	movq	_DP_DWN_STRM_PORT_TYPE_OTHER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_20
LBB0_18:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_19:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_20:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
	.comm	_DP_DS_PORT_HPD,4,2             ## @DP_DS_PORT_HPD
	.comm	_DP_DS_PORT_TYPE_MASK,4,2       ## @DP_DS_PORT_TYPE_MASK
	.comm	_DP_DS_PORT_TYPE_VGA,4,2        ## @DP_DS_PORT_TYPE_VGA
	.comm	_DP_DS_PORT_TYPE_NON_EDID,4,2   ## @DP_DS_PORT_TYPE_NON_EDID
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.comm	_DP_DOWNSTREAMPORT_PRESENT,8,3  ## @DP_DOWNSTREAMPORT_PRESENT
	.comm	_DP_DWN_STRM_PORT_TYPE_MASK,4,2 ## @DP_DWN_STRM_PORT_TYPE_MASK
	.comm	_DP_DWN_STRM_PORT_TYPE_ANALOG,4,2 ## @DP_DWN_STRM_PORT_TYPE_ANALOG
	.comm	_DP_DWN_STRM_PORT_TYPE_OTHER,4,2 ## @DP_DWN_STRM_PORT_TYPE_OTHER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Broken DP branch device, ignoring\n"

	.no_dead_strip	_intel_dp_detect_dpcd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_detect_dpcd
_intel_dp_detect_dpcd:                  ; @intel_dp_detect_dpcd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	_dp_to_lspcon
	mov	x21, x0
	ldr	x20, [x19]
	mov	x0, x19
	bl	_intel_dp_is_edp
	bl	_WARN_ON
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh1:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_lspcon_resume
LBB0_5:
	mov	x0, x19
	bl	_intel_dp_get_dpcd
	cbz	w0, LBB0_16
; %bb.6:
	mov	x0, x20
	bl	_drm_dp_is_branch
	cbz	w0, LBB0_1
; %bb.7:
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _DP_DPCD_REV@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DP_DPCD_REV@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #17
	b.lt	LBB0_10
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _DP_DS_PORT_HPD@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DP_DS_PORT_HPD@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh7:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh8:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
	ldr	x9, [x19, #24]
Lloh9:
	adrp	x10, _connector_status_disconnected@GOTPAGE
Lloh10:
	ldr	x10, [x10, _connector_status_disconnected@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	b	LBB0_2
LBB0_10:
	mov	x0, x19
	bl	_intel_dp_can_mst
	cbnz	x0, LBB0_1
; %bb.11:
	add	x0, x19, #16
	bl	_drm_probe_ddc
	cbnz	x0, LBB0_1
; %bb.12:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w9, [x8, x9, lsl #2]
	cmp	w9, #17
	b.lt	LBB0_17
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _DP_DS_PORT_TYPE_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DP_DS_PORT_TYPE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh14:
	adrp	x9, _DP_DS_PORT_TYPE_VGA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DP_DS_PORT_TYPE_VGA@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_18
; %bb.14:
Lloh17:
	adrp	x9, _DP_DS_PORT_TYPE_NON_EDID@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DP_DS_PORT_TYPE_NON_EDID@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_18
LBB0_15:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_16:
Lloh22:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh23:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
	b	LBB0_2
LBB0_17:
Lloh24:
	adrp	x9, _DP_DOWNSTREAMPORT_PRESENT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DP_DOWNSTREAMPORT_PRESENT@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh27:
	adrp	x9, _DP_DWN_STRM_PORT_TYPE_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DP_DWN_STRM_PORT_TYPE_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh30:
	adrp	x9, _DP_DWN_STRM_PORT_TYPE_ANALOG@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DP_DWN_STRM_PORT_TYPE_ANALOG@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _DP_DWN_STRM_PORT_TYPE_OTHER@GOTPAGE
Lloh34:
	ldr	x10, [x10, _DP_DWN_STRM_PORT_TYPE_OTHER@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_15
LBB0_18:
Lloh36:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh37:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
	.comm	_DP_DS_PORT_HPD,4,2             ; @DP_DS_PORT_HPD
	.comm	_DP_DS_PORT_TYPE_MASK,4,2       ; @DP_DS_PORT_TYPE_MASK
	.comm	_DP_DS_PORT_TYPE_VGA,4,2        ; @DP_DS_PORT_TYPE_VGA
	.comm	_DP_DS_PORT_TYPE_NON_EDID,4,2   ; @DP_DS_PORT_TYPE_NON_EDID
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.comm	_DP_DOWNSTREAMPORT_PRESENT,8,3  ; @DP_DOWNSTREAMPORT_PRESENT
	.comm	_DP_DWN_STRM_PORT_TYPE_MASK,4,2 ; @DP_DWN_STRM_PORT_TYPE_MASK
	.comm	_DP_DWN_STRM_PORT_TYPE_ANALOG,4,2 ; @DP_DWN_STRM_PORT_TYPE_ANALOG
	.comm	_DP_DWN_STRM_PORT_TYPE_OTHER,4,2 ; @DP_DWN_STRM_PORT_TYPE_OTHER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Broken DP branch device, ignoring\n"

	.no_dead_strip	_intel_dp_detect_dpcd
.subsections_via_symbols
