	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_get_dsc_sink_cap
_intel_dp_get_dsc_sink_cap:             ## @intel_dp_get_dsc_sink_cap
	.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
	movl	24(%rdi), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$0, 16(%rbx)
	movq	(%rbx), %rax
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$19, (%rax,%rcx,4)
	jg	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_DP_EDP_14@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	20(%rbx), %r14
	movq	_DP_DSC_SUPPORT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_drm_dp_dpcd_read
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_4:
	leaq	16(%rbx), %r15
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	callq	_intel_dp_is_edp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_DP_FEC_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_drm_dp_dpcd_readb
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_7:
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
	.comm	_DP_EDP_14,8,3                  ## @DP_EDP_14
	.comm	_DP_DSC_SUPPORT,4,2             ## @DP_DSC_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read DPCD register 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"DSC DPCD: %*ph\n"

	.comm	_DP_FEC_CAPABILITY,4,2          ## @DP_FEC_CAPABILITY
L_.str.2:                               ## @.str.2
	.asciz	"Failed to read FEC DPCD register\n"

L_.str.3:                               ## @.str.3
	.asciz	"FEC CAPABILITY: %x\n"

	.no_dead_strip	_intel_dp_get_dsc_sink_cap
.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_dsc_sink_cap
_intel_dp_get_dsc_sink_cap:             ; @intel_dp_get_dsc_sink_cap
	.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	x20, x0
	ldr	w0, [x0, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x19, x20
	str	wzr, [x19, #16]!
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _DP_DPCD_REV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DP_DPCD_REV@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #19
	b.gt	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DP_EDP_14@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_EDP_14@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
	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_3:
	add	x21, x20, #20
Lloh6:
	adrp	x22, _DP_DSC_SUPPORT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DP_DSC_SUPPORT@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x20, #24]
	mov	x0, x21
	mov	w3, #4
	bl	_drm_dp_dpcd_read
	tbz	x0, #63, LBB0_5
; %bb.4:
	ldr	w8, [x22]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_5:
	ldr	w8, [x20, #24]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	bl	_intel_dp_is_edp
	cbnz	w0, LBB0_8
; %bb.6:
Lloh12:
	adrp	x8, _DP_FEC_CAPABILITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DP_FEC_CAPABILITY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_drm_dp_dpcd_readb
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_8:
	ldr	w1, [x19]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	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
	b	_DRM_DEBUG_KMS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
	.comm	_DP_EDP_14,8,3                  ; @DP_EDP_14
	.comm	_DP_DSC_SUPPORT,4,2             ; @DP_DSC_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read DPCD register 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"DSC DPCD: %*ph\n"

	.comm	_DP_FEC_CAPABILITY,4,2          ; @DP_FEC_CAPABILITY
l_.str.2:                               ; @.str.2
	.asciz	"Failed to read FEC DPCD register\n"

l_.str.3:                               ; @.str.3
	.asciz	"FEC CAPABILITY: %x\n"

	.no_dead_strip	_intel_dp_get_dsc_sink_cap
.subsections_via_symbols
