	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_get_su_x_granulartiy
_intel_dp_get_su_x_granulartiy:         ## @intel_dp_get_su_x_granulartiy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rdi), %rcx
	movq	_DP_PSR2_SU_GRANULARITY_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %eax
	testl	%edx, 4(%rcx)
	je	LBB0_5
## %bb.1:
	addq	$8, %rdi
	movq	_DP_PSR2_SU_X_GRANULARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	movl	$2, %ecx
	callq	_drm_dp_dpcd_read
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.3:
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_4:
	movl	$4, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_PSR2_SU_GRANULARITY_REQUIRED,4,2 ## @DP_PSR2_SU_GRANULARITY_REQUIRED
	.comm	_DP_PSR2_SU_X_GRANULARITY,4,2   ## @DP_PSR2_SU_X_GRANULARITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to read DP_PSR2_SU_X_GRANULARITY\n"

	.no_dead_strip	_intel_dp_get_su_x_granulartiy
.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_su_x_granulartiy
_intel_dp_get_su_x_granulartiy:         ; @intel_dp_get_su_x_granulartiy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	w8, [x8, #4]
Lloh0:
	adrp	x9, _DP_PSR2_SU_GRANULARITY_REQUIRED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DP_PSR2_SU_GRANULARITY_REQUIRED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	add	x0, x0, #8
Lloh3:
	adrp	x8, _DP_PSR2_SU_X_GRANULARITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_PSR2_SU_X_GRANULARITY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sub	x2, x29, #4
	mov	w3, #2
	bl	_drm_dp_dpcd_read
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.2:
	ldur	w0, [x29, #-4]
	cbnz	w0, LBB0_5
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_4:
	mov	w0, #4
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_PSR2_SU_GRANULARITY_REQUIRED,4,2 ; @DP_PSR2_SU_GRANULARITY_REQUIRED
	.comm	_DP_PSR2_SU_X_GRANULARITY,4,2   ; @DP_PSR2_SU_X_GRANULARITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to read DP_PSR2_SU_X_GRANULARITY\n"

	.no_dead_strip	_intel_dp_get_su_x_granulartiy
.subsections_via_symbols
