	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_get_dpcd
_intel_dp_get_dpcd:                     ## @intel_dp_get_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_intel_dp_read_dpcd
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_intel_dp_is_edp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	12(%rbx), %r15
	leaq	20(%rbx), %r12
	movq	(%rbx), %rdi
	callq	_drm_dp_is_branch
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_drm_dp_read_desc
	movq	%rbx, %rdi
	callq	_intel_dp_set_sink_rates
	movq	%rbx, %rdi
	callq	_intel_dp_set_common_rates
LBB0_3:
	movq	%rbx, %rdi
	callq	_intel_dp_is_edp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	leaq	20(%rbx), %rdi
	movq	_DP_DPCD_QUIRK_NO_SINK_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_dp_has_quirk
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	(%rbx), %rdi
	callq	_drm_dp_is_branch
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	(%rbx), %rax
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$16, (%rax,%rcx,4)
	je	LBB0_10
## %bb.9:
	movq	_DP_DOWNSTREAM_PORT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	addq	$12, %rbx
	movq	_DP_MAX_DOWNSTREAM_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_drm_dp_dpcd_read
	movq	%rax, %r14
	shrq	$63, %r14
	xorl	$1, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	12(%rbx), %rdi
	movq	_DP_SINK_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_drm_dp_dpcd_readb
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	movl	-36(%rbp), %edi
	callq	_DP_GET_SINK_COUNT
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DPCD_QUIRK_NO_SINK_COUNT,4,2 ## @DP_DPCD_QUIRK_NO_SINK_COUNT
	.comm	_DP_SINK_COUNT,4,2              ## @DP_SINK_COUNT
	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
	.comm	_DP_DOWNSTREAM_PORT_0,4,2       ## @DP_DOWNSTREAM_PORT_0
	.comm	_DP_MAX_DOWNSTREAM_PORTS,4,2    ## @DP_MAX_DOWNSTREAM_PORTS
	.no_dead_strip	_intel_dp_get_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_get_dpcd
_intel_dp_get_dpcd:                     ; @intel_dp_get_dpcd
	.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_dp_read_dpcd
	cbz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_intel_dp_is_edp
	cbnz	w0, LBB0_3
; %bb.2:
	add	x20, x19, #12
	mov	x21, x19
	ldr	x0, [x21], #20
	bl	_drm_dp_is_branch
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_drm_dp_read_desc
	mov	x0, x19
	bl	_intel_dp_set_sink_rates
	mov	x0, x19
	bl	_intel_dp_set_common_rates
LBB0_3:
	mov	x0, x19
	bl	_intel_dp_is_edp
	cbnz	w0, LBB0_5
; %bb.4:
	add	x0, x19, #20
Lloh0:
	adrp	x8, _DP_DPCD_QUIRK_NO_SINK_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_DPCD_QUIRK_NO_SINK_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_dp_has_quirk
	cbz	w0, LBB0_10
LBB0_5:
	ldr	x0, [x19]
	bl	_drm_dp_is_branch
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _DP_DPCD_REV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_DPCD_REV@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #16
	b.ne	LBB0_8
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _DP_DOWNSTREAM_PORT_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DP_DOWNSTREAM_PORT_0@GOTPAGEOFF]
	add	x0, x19, #12
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh9:
	adrp	x8, _DP_MAX_DOWNSTREAM_PORTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DP_MAX_DOWNSTREAM_PORTS@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_drm_dp_dpcd_read
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
LBB0_9:
	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_10:
	add	x0, x19, #12
Lloh12:
	adrp	x8, _DP_SINK_COUNT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DP_SINK_COUNT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_drm_dp_dpcd_readb
	cmp	w0, #0
	b.le	LBB0_12
; %bb.11:
	ldr	w0, [sp, #12]
	bl	_DP_GET_SINK_COUNT
	str	w0, [x19, #16]
	cbnz	w0, LBB0_5
	b	LBB0_9
LBB0_12:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DPCD_QUIRK_NO_SINK_COUNT,4,2 ; @DP_DPCD_QUIRK_NO_SINK_COUNT
	.comm	_DP_SINK_COUNT,4,2              ; @DP_SINK_COUNT
	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
	.comm	_DP_DOWNSTREAM_PORT_0,4,2       ; @DP_DOWNSTREAM_PORT_0
	.comm	_DP_MAX_DOWNSTREAM_PORTS,4,2    ; @DP_MAX_DOWNSTREAM_PORTS
	.no_dead_strip	_intel_dp_get_dpcd
.subsections_via_symbols
