	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_get_sink_sync_latency
_intel_dp_get_sink_sync_latency:        ## @intel_dp_get_sink_sync_latency
	.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
	movl	$8, -4(%rbp)
	movq	_DP_SYNCHRONIZATION_LATENCY_IN_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_drm_dp_dpcd_readb
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_DP_MAX_RESYNC_FRAME_COUNT_MASK@GOTPCREL(%rip), %rcx
	movl	-4(%rbp), %eax
	andl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	-4(%rbp), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_SYNCHRONIZATION_LATENCY_IN_SINK,4,2 ## @DP_SYNCHRONIZATION_LATENCY_IN_SINK
	.comm	_DP_MAX_RESYNC_FRAME_COUNT_MASK,4,2 ## @DP_MAX_RESYNC_FRAME_COUNT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to get sink synchronization latency, assuming 8 frames\n"

	.no_dead_strip	_intel_dp_get_sink_sync_latency
.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_sink_sync_latency
_intel_dp_get_sink_sync_latency:        ; @intel_dp_get_sink_sync_latency
	.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
	mov	w8, #8
	stur	w8, [x29, #-4]
Lloh0:
	adrp	x8, _DP_SYNCHRONIZATION_LATENCY_IN_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_SYNCHRONIZATION_LATENCY_IN_SINK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_drm_dp_dpcd_readb
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DP_MAX_RESYNC_FRAME_COUNT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_MAX_RESYNC_FRAME_COUNT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldur	w9, [x29, #-4]
	and	w0, w9, w8
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldur	w0, [x29, #-4]
LBB0_3:
	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_SYNCHRONIZATION_LATENCY_IN_SINK,4,2 ; @DP_SYNCHRONIZATION_LATENCY_IN_SINK
	.comm	_DP_MAX_RESYNC_FRAME_COUNT_MASK,4,2 ; @DP_MAX_RESYNC_FRAME_COUNT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to get sink synchronization latency, assuming 8 frames\n"

	.no_dead_strip	_intel_dp_get_sink_sync_latency
.subsections_via_symbols
