	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_link_probe              ## -- Begin function drm_dp_link_probe
	.p2align	4, 0x90
_drm_dp_link_probe:                     ## @drm_dp_link_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%r14d, %r14d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$12, %ecx
	callq	_drm_dp_dpcd_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
	movl	-40(%rbp), %edi
	callq	_drm_dp_bw_code_to_link_rate
	movl	%eax, 12(%rbx)
	movl	-36(%rbp), %eax
	movq	_DP_MAX_LANE_COUNT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	movq	_DP_ENHANCED_FRAME_CAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_DP_LINK_CAP_ENHANCED_FRAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r14d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DPCD_REV,4,2                ## @DP_DPCD_REV
	.comm	_DP_MAX_LANE_COUNT_MASK,4,2     ## @DP_MAX_LANE_COUNT_MASK
	.comm	_DP_ENHANCED_FRAME_CAP,4,2      ## @DP_ENHANCED_FRAME_CAP
	.comm	_DP_LINK_CAP_ENHANCED_FRAMING,4,2 ## @DP_LINK_CAP_ENHANCED_FRAMING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_link_probe              ; -- Begin function drm_dp_link_probe
	.p2align	2
_drm_dp_link_probe:                     ; @drm_dp_link_probe
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _DP_DPCD_REV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_DPCD_REV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #12
	bl	_drm_dp_dpcd_read
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldp	w8, w0, [sp, #12]
	str	w8, [x19]
	bl	_drm_dp_bw_code_to_link_rate
	str	w0, [x19, #12]
	ldr	w8, [sp, #20]
Lloh6:
	adrp	x9, _DP_MAX_LANE_COUNT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DP_MAX_LANE_COUNT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w8
	str	w9, [x19, #4]
Lloh9:
	adrp	x9, _DP_ENHANCED_FRAME_CAP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DP_ENHANCED_FRAME_CAP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #0
Lloh12:
	adrp	x8, _DP_LINK_CAP_ENHANCED_FRAMING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DP_LINK_CAP_ENHANCED_FRAMING@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DPCD_REV,4,2                ; @DP_DPCD_REV
	.comm	_DP_MAX_LANE_COUNT_MASK,4,2     ; @DP_MAX_LANE_COUNT_MASK
	.comm	_DP_ENHANCED_FRAME_CAP,4,2      ; @DP_ENHANCED_FRAME_CAP
	.comm	_DP_LINK_CAP_ENHANCED_FRAMING,4,2 ; @DP_LINK_CAP_ENHANCED_FRAMING
.subsections_via_symbols
