	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_virtual_pageflip
_dce_virtual_pageflip:                  ## @dce_virtual_pageflip
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, 8(%rdi)
	jbe	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %r15
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_8
## %bb.3:
	movq	(%rbx), %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rsi
	movq	_AMDGPU_FLIP_SUBMITTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_4
## %bb.5:
	movq	16(%r15), %r12
	movq	_AMDGPU_FLIP_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	$0, 16(%r15)
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	leaq	8(%r15), %rdi
	callq	_drm_crtc_send_vblank_event
LBB0_7:
	movq	(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_drm_crtc_vblank_put
	leaq	8(%r12), %rdi
	callq	_amdgpu_bo_unref
	movq	(%r12), %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	(%rbx), %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pageflip crtc %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AMDGPU_FLIP_SUBMITTED,8,3      ## @AMDGPU_FLIP_SUBMITTED
L_.str.1:                               ## @.str.1
	.asciz	"amdgpu_crtc->pflip_status = %d != AMDGPU_FLIP_SUBMITTED(%d)\n"

	.comm	_AMDGPU_FLIP_NONE,8,3           ## @AMDGPU_FLIP_NONE
	.no_dead_strip	_dce_virtual_pageflip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_virtual_pageflip
_dce_virtual_pageflip:                  ; @dce_virtual_pageflip
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #8]
	cmp	w8, w1
	b.ls	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8, w1, uxtw #3]
	cbz	x21, LBB0_8
; %bb.2:
	ldr	x0, [x19]
	bl	_spin_lock_irqsave
	ldr	x1, [x21]
Lloh0:
	adrp	x8, _AMDGPU_FLIP_SUBMITTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_FLIP_SUBMITTED@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	cmp	x1, x2
	b.ne	LBB0_7
; %bb.3:
	ldr	x20, [x21, #16]
Lloh3:
	adrp	x8, _AMDGPU_FLIP_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMDGPU_FLIP_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x21]
	str	xzr, [x21, #16]
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_5
; %bb.4:
	add	x0, x21, #8
	bl	_drm_crtc_send_vblank_event
LBB0_5:
	ldr	x0, [x19]
	bl	_spin_unlock_irqrestore
	add	x0, x21, #8
	bl	_drm_crtc_vblank_put
	add	x0, x20, #8
	bl	_amdgpu_bo_unref
	ldr	x0, [x20]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	x0, [x19]
	bl	_spin_unlock_irqrestore
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pageflip crtc %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AMDGPU_FLIP_SUBMITTED,8,3      ; @AMDGPU_FLIP_SUBMITTED
l_.str.1:                               ; @.str.1
	.asciz	"amdgpu_crtc->pflip_status = %d != AMDGPU_FLIP_SUBMITTED(%d)\n"

	.comm	_AMDGPU_FLIP_NONE,8,3           ; @AMDGPU_FLIP_NONE
	.no_dead_strip	_dce_virtual_pageflip
.subsections_via_symbols
