	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_crtc_accurate_vblank_count ## -- Begin function drm_crtc_accurate_vblank_count
	.p2align	4, 0x90
_drm_crtc_accurate_vblank_count:        ## @drm_crtc_accurate_vblank_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	callq	_drm_crtc_index
	movl	%eax, %r14d
	movq	_drm_debug@GOTPCREL(%rip), %rax
	movq	_DRM_UT_VBL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	leaq	L_.str(%rip), %rsi
	callq	_WARN_ONCE
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_drm_update_vblank_count
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_drm_vblank_count
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_debug,4,2                  ## @drm_debug
	.comm	_DRM_UT_VBL,4,2                 ## @DRM_UT_VBL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This function requires support for accurate vblank timestamps."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_crtc_accurate_vblank_count ; -- Begin function drm_crtc_accurate_vblank_count
	.p2align	2
_drm_crtc_accurate_vblank_count:        ; @drm_crtc_accurate_vblank_count
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	bl	_drm_crtc_index
	mov	x20, x0
Lloh0:
	adrp	x8, _drm_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drm_debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DRM_UT_VBL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_UT_VBL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_drm_update_vblank_count
	mov	x0, x19
	mov	x1, x20
	bl	_drm_vblank_count
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_debug,4,2                  ; @drm_debug
	.comm	_DRM_UT_VBL,4,2                 ; @DRM_UT_VBL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This function requires support for accurate vblank timestamps."

.subsections_via_symbols
