	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_extended_receiver_capabilities
_intel_dp_extended_receiver_capabilities: ## @intel_dp_extended_receiver_capabilities
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	(%rdi), %rax
	movq	_DP_TRAINING_AUX_RD_INTERVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	addq	$8, %rdi
	movq	_DP_DP13_DPCD_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	$24, %ecx
	callq	_drm_dp_dpcd_read
	cmpl	$24, %eax
	jne	LBB0_2
## %bb.3:
	movq	(%rbx), %rdi
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdi,%rax,4), %ecx
	cmpl	-48(%rbp,%rax,4), %ecx
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_7
LBB0_5:
	leaq	-48(%rbp), %rsi
	movl	$24, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rdi
	movl	$8, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	movl	$24, %edx
	callq	_memcpy
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_TRAINING_AUX_RD_INTERVAL,8,3 ## @DP_TRAINING_AUX_RD_INTERVAL
	.comm	_DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT,4,2 ## @DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT
	.comm	_DP_DP13_DPCD_REV,4,2           ## @DP_DP13_DPCD_REV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPCD failed read at extended capabilities\n"

	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
L_.str.1:                               ## @.str.1
	.asciz	"DPCD extended DPCD rev less than base DPCD rev\n"

L_.str.2:                               ## @.str.2
	.asciz	"Base DPCD: %*ph\n"

	.no_dead_strip	_intel_dp_extended_receiver_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_extended_receiver_capabilities
_intel_dp_extended_receiver_capabilities: ; @intel_dp_extended_receiver_capabilities
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _DP_TRAINING_AUX_RD_INTERVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_TRAINING_AUX_RD_INTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh6:
	adrp	x9, _DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
	add	x0, x0, #8
Lloh9:
	adrp	x8, _DP_DP13_DPCD_REV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DP_DP13_DPCD_REV@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x20, sp, #16
	add	x2, sp, #16
	mov	w3, #24
	bl	_drm_dp_dpcd_read
	cmp	w0, #24
	b.ne	LBB0_4
; %bb.2:
	ldr	x0, [x19]
Lloh12:
	adrp	x8, _DP_DPCD_REV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DP_DPCD_REV@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	lsl	x8, x8, #2
	ldr	w9, [x0, x8]
	ldr	w8, [x20, x8]
	cmp	w9, w8
	b.le	LBB0_5
; %bb.3:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_7
LBB0_5:
	add	x1, sp, #16
	mov	w2, #24
	bl	_memcmp
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	mov	w9, #8
	stp	x9, x8, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x0, [x19]
	add	x1, sp, #16
	mov	w2, #24
	bl	_memcpy
LBB0_7:
	ldur	x8, [x29, #-24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_TRAINING_AUX_RD_INTERVAL,8,3 ; @DP_TRAINING_AUX_RD_INTERVAL
	.comm	_DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT,4,2 ; @DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT
	.comm	_DP_DP13_DPCD_REV,4,2           ; @DP_DP13_DPCD_REV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPCD failed read at extended capabilities\n"

	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
l_.str.1:                               ; @.str.1
	.asciz	"DPCD extended DPCD rev less than base DPCD rev\n"

l_.str.2:                               ; @.str.2
	.asciz	"Base DPCD: %*ph\n"

	.no_dead_strip	_intel_dp_extended_receiver_capabilities
.subsections_via_symbols
