	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_virtual_set_crtc_vblank_interrupt_state
_dce_virtual_set_crtc_vblank_interrupt_state: ## @dce_virtual_set_crtc_vblank_interrupt_state
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, (%rdi)
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movslq	%esi, %r15
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	%edx, %r14d
	movl	(%rax), %eax
	testl	%edx, %edx
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rdi
	addq	$4, %rdi
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HRTIMER_MODE_REL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_hrtimer_init
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rdi
	addq	$4, %rdi
	movq	_DCE_VIRTUAL_VBLANK_PERIOD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_hrtimer_set_expires
	movq	_dce_virtual_vblank_timer_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movq	(%rcx,%r15,8), %rdi
	movl	%eax, 4(%rdi)
	addq	$4, %rdi
	movl	(%r13), %esi
	movl	(%r12), %edx
	callq	_hrtimer_start
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
LBB0_5:
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rdi
	addq	$4, %rdi
	callq	_hrtimer_cancel
LBB0_7:
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movl	%r14d, (%rax)
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid crtc %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enable software vsync timer\n"

	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ## @HRTIMER_MODE_REL
	.comm	_DCE_VIRTUAL_VBLANK_PERIOD,4,2  ## @DCE_VIRTUAL_VBLANK_PERIOD
	.comm	_dce_virtual_vblank_timer_handle,4,2 ## @dce_virtual_vblank_timer_handle
L_.str.2:                               ## @.str.2
	.asciz	"Disable software vsync timer\n"

L_.str.3:                               ## @.str.3
	.asciz	"[FM]set crtc %d vblank interrupt state %d\n"

	.no_dead_strip	_dce_virtual_set_crtc_vblank_interrupt_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_virtual_set_crtc_vblank_interrupt_state
_dce_virtual_set_crtc_vblank_interrupt_state: ; @dce_virtual_set_crtc_vblank_interrupt_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, w19, sxtw #3]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x20, x2
	mov	x9, x19
	sxtw	x22, w9
	ldr	w8, [x8]
	cbz	w2, LBB0_6
; %bb.3:
	cbnz	w8, LBB0_8
; %bb.4:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x8, [x21, #8]
	lsl	x23, x22, #3
	ldr	x8, [x8, x23]
	add	x0, x8, #4
Lloh2:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x24, _HRTIMER_MODE_REL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HRTIMER_MODE_REL@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_hrtimer_init
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x23]
	add	x0, x8, #4
Lloh7:
	adrp	x25, _DCE_VIRTUAL_VBLANK_PERIOD@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DCE_VIRTUAL_VBLANK_PERIOD@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_hrtimer_set_expires
Lloh9:
	adrp	x8, _dce_virtual_vblank_timer_handle@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dce_virtual_vblank_timer_handle@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	ldr	x0, [x9, x23]
	str	w8, [x0, #4]!
	ldr	w1, [x25]
	ldr	w2, [x24]
	bl	_hrtimer_start
	b	LBB0_8
LBB0_5:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	cbz	w8, LBB0_8
; %bb.7:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x22, lsl #3]
	add	x0, x8, #4
	bl	_hrtimer_cancel
LBB0_8:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x22, lsl #3]
	str	w20, [x8]
	stp	x19, x20, [sp]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_DRM_DEBUG
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid crtc %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enable software vsync timer\n"

	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ; @HRTIMER_MODE_REL
	.comm	_DCE_VIRTUAL_VBLANK_PERIOD,4,2  ; @DCE_VIRTUAL_VBLANK_PERIOD
	.comm	_dce_virtual_vblank_timer_handle,4,2 ; @dce_virtual_vblank_timer_handle
l_.str.2:                               ; @.str.2
	.asciz	"Disable software vsync timer\n"

l_.str.3:                               ; @.str.3
	.asciz	"[FM]set crtc %d vblank interrupt state %d\n"

	.no_dead_strip	_dce_virtual_set_crtc_vblank_interrupt_state
.subsections_via_symbols
