	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rdx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$8, %ecx
	callq	_intel_dp_aux_native_read_retry
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rdi
	movl	$0, (%rsp)
	leaq	-64(%rbp), %r15
	movl	$8, %esi
	movl	$32, %edx
	movl	$1, %ecx
	movq	%r15, %r8
	movl	$24, %r9d
	callq	_hex_dump_to_buffer
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_DRM_DEBUG_KMS
	movq	(%rbx), %rcx
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rcx,%rax,4), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_DP_DOWNSTREAMPORT_PRESENT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_DP_DWN_STRM_PORT_PRESENT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rcx,%rdx,4)
	je	LBB0_3
## %bb.4:
	movl	$1, %r14d
	cmpl	$16, %eax
	je	LBB0_6
## %bb.5:
	movq	_DP_DOWNSTREAM_PORT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movq	_DP_MAX_DOWNSTREAM_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_intel_dp_aux_native_read_retry
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	jmp	LBB0_6
LBB0_3:
	movl	$1, %r14d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPCD: %s\n"

	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
	.comm	_DP_DOWNSTREAMPORT_PRESENT,8,3  ## @DP_DOWNSTREAMPORT_PRESENT
	.comm	_DP_DWN_STRM_PORT_PRESENT,4,2   ## @DP_DWN_STRM_PORT_PRESENT
	.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	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x2, [x0]
	mov	w1, #0
	mov	w3, #8
	bl	_intel_dp_aux_native_read_retry
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x0, [x19]
	mov	x4, sp
	mov	w1, #8
	mov	w2, #32
	mov	w3, #1
	mov	w6, #0
	mov	w5, #24
	bl	_hex_dump_to_buffer
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, sp
	bl	_DRM_DEBUG_KMS
	ldr	x9, [x19]
Lloh5:
	adrp	x8, _DP_DPCD_REV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DP_DPCD_REV@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
	cbz	w8, LBB0_4
; %bb.2:
Lloh8:
	adrp	x10, _DP_DOWNSTREAMPORT_PRESENT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DP_DOWNSTREAMPORT_PRESENT@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
Lloh11:
	adrp	x10, _DP_DWN_STRM_PORT_PRESENT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DP_DWN_STRM_PORT_PRESENT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w9, #0
	ccmp	w8, #16, #4, ne
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #1
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _DP_DOWNSTREAM_PORT_0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DP_DOWNSTREAM_PORT_0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
Lloh17:
	adrp	x8, _DP_MAX_DOWNSTREAM_PORTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DP_MAX_DOWNSTREAM_PORTS@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_intel_dp_aux_native_read_retry
	cmp	x0, #0
	cset	w0, ne
LBB0_6:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPCD: %s\n"

	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
	.comm	_DP_DOWNSTREAMPORT_PRESENT,8,3  ; @DP_DOWNSTREAMPORT_PRESENT
	.comm	_DP_DWN_STRM_PORT_PRESENT,4,2   ; @DP_DWN_STRM_PORT_PRESENT
	.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
