	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_crtc_page_flip_target
_radeon_crtc_page_flip_target:          ## @radeon_crtc_page_flip_target
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	16(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_to_radeon_crtc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	leaq	24(%rax), %rdi
	movq	_radeon_flip_work_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_INIT_WORK
	movq	%r13, %rdi
	addq	$48, %rdi
	movq	_radeon_unpin_work_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %eax
	movl	%eax, 28(%r13)
	movq	%r15, 32(%r13)
	movq	_DRM_MODE_PAGE_FLIP_ASYNC@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %ebx
	setne	%cl
	movl	%ecx, (%r13)
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_drm_gem_object_get
	movq	%rbx, %rdi
	callq	_gem_to_radeon_bo
	movq	%rax, 16(%r13)
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	callq	_gem_to_radeon_bo
	movq	%rax, %rbx
	movq	16(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_radeon_bo_reserve
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_4:
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movq	%rbx, %r15
	movl	(%rax), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ASIC_IS_AVIVO
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%dl
	shll	$27, %edx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_radeon_bo_pin_restricted
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	callq	_radeon_bo_unreserve
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	callq	_DRM_ERROR
LBB0_7:
	movq	16(%r13), %rdi
	callq	_drm_gem_object_put_unlocked
	movl	12(%r13), %edi
	callq	_dma_fence_put
	movq	%r13, %rdi
	callq	_kfree
LBB0_8:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r15), %edi
	callq	_dma_resv_get_excl
	movl	%eax, %edi
	callq	_dma_fence_get
	movl	%eax, 12(%r13)
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_radeon_bo_get_tiling_flags
	movq	%r15, %rdi
	callq	_radeon_bo_unreserve
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ASIC_IS_AVIVO
	testq	%rax, %rax
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.10:
	movl	-44(%rbp), %r15d
	movq	%r14, %r12
	jmp	LBB0_23
LBB0_11:
	movl	-44(%rbp), %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subl	24(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	(%r12), %rax
	movq	8(%r12), %rdx
	movl	(%rax), %eax
	movq	(%rdx), %rdx
	movl	(%rdx), %esi
	cltd
	idivl	%esi
	movl	%eax, %r15d
	movq	_RADEON_TILING_MACRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -72(%rbp)
	je	LBB0_14
## %bb.12:
	movq	%rbx, %rdi
	movq	%r12, %rbx
	callq	_ASIC_IS_R300
	testq	%rax, %rax
	movq	%r14, %r12
	je	LBB0_18
## %bb.13:
	movl	$-2048, %r15d                   ## imm = 0xF800
	andl	-44(%rbp), %r15d
	jmp	LBB0_22
LBB0_14:
	movq	%r14, %r12
	imull	(%r14), %r15d
	addl	4(%r14), %r15d
	decl	%esi
	andl	$536870911, %esi                ## imm = 0x1FFFFFFF
	cmpl	$3, %esi
	je	LBB0_19
## %bb.15:
	cmpl	$2, %esi
	je	LBB0_20
## %bb.16:
	cmpl	$1, %esi
	jne	LBB0_21
## %bb.17:
	addl	%r15d, %r15d
	jmp	LBB0_21
LBB0_18:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	shrl	%eax
	movl	(%r12), %edx
	movl	4(%r12), %edi
	movl	%edx, %esi
	sarl	$3, %esi
	imull	%r15d, %esi
	addl	%edi, %esi
	movb	$8, %cl
	subb	%al, %cl
	sarl	%cl, %esi
	movl	%eax, %ecx
	shll	%cl, %edi
	shll	$11, %esi
	leal	255(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	andl	$-256, %eax
	subl	%eax, %edi
	leal	7(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	andl	$16777208, %eax                 ## imm = 0xFFFFF8
	subl	%eax, %edx
	shll	$8, %edx
	addl	-44(%rbp), %edx
	addl	%edi, %edx
	addl	%esi, %edx
	movl	%edx, %r15d
	jmp	LBB0_22
LBB0_19:
	shll	$2, %r15d
	jmp	LBB0_21
LBB0_20:
	leal	(%r15,%r15,2), %r15d
LBB0_21:
	addl	%ecx, %r15d
LBB0_22:
	andl	$-8, %r15d
	movl	%r15d, -44(%rbp)
LBB0_23:
	movl	%r15d, 4(%r13)
	movq	%r12, %rdi
	callq	_drm_crtc_vblank_count
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	subl	%eax, %ebx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	8(%rdi), %rax
	movl	28(%r13), %esi
	callq	*(%rax)
	addl	%ebx, %eax
	movl	%eax, 8(%r13)
	movq	8(%r12), %rdi
	callq	_spin_lock_irqsave
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movq	_RADEON_FLIP_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.24:
	movq	_RADEON_FLIP_PENDING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%r13, 16(%r14)
	movq	16(%r12), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	8(%r12), %rdi
	callq	_spin_unlock_irqrestore
	movl	8(%r14), %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_queue_work
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_25:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movq	8(%r12), %rdi
	callq	_spin_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_radeon_bo_reserve
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_6
LBB0_27:
	movq	%rbx, %rdi
	callq	_radeon_bo_unpin
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	leaq	L_.str.5(%rip), %rdi
	callq	_DRM_ERROR
LBB0_29:
	movq	%rbx, %rdi
	callq	_radeon_bo_unreserve
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_radeon_flip_work_func,4,2      ## @radeon_flip_work_func
	.comm	_radeon_unpin_work_func,4,2     ## @radeon_unpin_work_func
	.comm	_DRM_MODE_PAGE_FLIP_ASYNC,4,2   ## @DRM_MODE_PAGE_FLIP_ASYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flip-ioctl() cur_rbo = %p, new_rbo = %p\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to reserve new rbo buffer before flip\n"

	.comm	_RADEON_GEM_DOMAIN_VRAM,4,2     ## @RADEON_GEM_DOMAIN_VRAM
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"failed to pin new rbo buffer before flip\n"

	.comm	_RADEON_TILING_MACRO,4,2        ## @RADEON_TILING_MACRO
	.comm	_RADEON_FLIP_NONE,8,3           ## @RADEON_FLIP_NONE
L_.str.3:                               ## @.str.3
	.asciz	"flip queue: crtc already busy\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RADEON_FLIP_PENDING,8,3        ## @RADEON_FLIP_PENDING
L_.str.4:                               ## @.str.4
	.asciz	"failed to reserve new rbo in error path\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to unpin new rbo in error path\n"

	.no_dead_strip	_radeon_crtc_page_flip_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_crtc_page_flip_target
_radeon_crtc_page_flip_target:          ; @radeon_crtc_page_flip_target
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x4
	mov	x24, x3
	mov	x28, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x26, [x0, #8]
	ldr	x27, [x26, #16]
	bl	_to_radeon_crtc
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x23, x0, #24
Lloh3:
	adrp	x8, _radeon_flip_work_func@GOTPAGE
Lloh4:
	ldr	x8, [x8, _radeon_flip_work_func@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_INIT_WORK
	add	x0, x19, #48
Lloh6:
	adrp	x8, _radeon_unpin_work_func@GOTPAGE
Lloh7:
	ldr	x8, [x8, _radeon_unpin_work_func@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	w8, [x22, #32]
	str	w8, [x19, #28]
	stp	x28, x27, [x19, #32]
Lloh9:
	adrp	x8, _DRM_MODE_PAGE_FLIP_ASYNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_MODE_PAGE_FLIP_ASYNC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w24
	cset	w8, ne
	str	w8, [x19]
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	ldr	x24, [x8]
	mov	x0, x24
	bl	_drm_gem_object_get
	mov	x0, x24
	bl	_gem_to_radeon_bo
	str	x0, [x19, #16]
	ldr	x8, [x21, #16]
	ldr	x0, [x8]
	bl	_gem_to_radeon_bo
	mov	x24, x0
	ldr	x8, [x19, #16]
	stp	x8, x0, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	x0, x24
	mov	w1, #0
	bl	_radeon_bo_reserve
	mov	x28, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_8
LBB0_4:
Lloh19:
	adrp	x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh21:
	ldr	w28, [x8]
	mov	x0, x27
	bl	_ASIC_IS_AVIVO
	cmp	x0, #0
	cset	w8, eq
	lsl	w2, w8, #27
	add	x3, sp, #24
	mov	x0, x24
	mov	x1, x28
	bl	_radeon_bo_pin_restricted
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x24
	bl	_radeon_bo_unreserve
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w28, w8
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_DRM_ERROR
LBB0_7:
	ldr	x0, [x19, #16]
	bl	_drm_gem_object_put_unlocked
	ldr	w0, [x19, #12]
	bl	_dma_fence_put
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	x0, x28
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	ldr	w0, [x24]
	bl	_dma_resv_get_excl
	bl	_dma_fence_get
	str	w0, [x19, #12]
	add	x1, sp, #28
	mov	x0, x24
	mov	x2, #0
	bl	_radeon_bo_get_tiling_flags
	mov	x0, x24
	bl	_radeon_bo_unreserve
	mov	x0, x27
	bl	_ASIC_IS_AVIVO
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w8, [sp, #24]
	b	LBB0_17
LBB0_11:
	ldr	w8, [x22, #24]
	ldr	w9, [sp, #24]
	sub	w8, w9, w8
	str	w8, [sp, #24]
	ldp	x9, x10, [x21]
	ldr	w11, [x9]
	ldr	x9, [x10]
	ldr	w9, [x9]
	sdiv	w28, w11, w9
	ldr	w10, [sp, #28]
Lloh27:
	adrp	x11, _RADEON_TILING_MACRO@GOTPAGE
Lloh28:
	ldr	x11, [x11, _RADEON_TILING_MACRO@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_14
; %bb.12:
	mov	x0, x27
	bl	_ASIC_IS_R300
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w8, [sp, #24]
	and	w8, w8, #0xfffff800
	b	LBB0_16
LBB0_14:
	ldp	w10, w11, [x20]
	madd	w10, w10, w28, w11
	sub	w9, w9, #1
	and	w9, w9, #0x1fffffff
	lsl	w11, w10, #2
	add	w12, w10, w10, lsl #1
	lsl	w13, w10, #1
	cmp	w9, #1
	csel	w10, w10, w13, ne
	cmp	w9, #2
	csel	w10, w12, w10, eq
	cmp	w9, #3
	csel	w9, w11, w10, eq
	add	w8, w9, w8
	b	LBB0_16
LBB0_15:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	asr	w8, w8, #1
	ldp	w9, w10, [x20]
	asr	w11, w9, #3
	madd	w11, w11, w28, w10
	mov	w12, #8
	sub	w12, w12, w8
	asr	w11, w11, w12
	lsl	w8, w10, w8
	and	w10, w8, #0xff
	negs	w8, w8
	and	w8, w8, #0xff
	csneg	w8, w10, w8, mi
	negs	w10, w9
	and	w10, w10, #0x7
	and	w9, w9, #0x7
	csneg	w9, w9, w10, mi
	ldr	w10, [sp, #24]
	add	w9, w10, w9, lsl #8
	add	w8, w9, w8
	add	w8, w8, w11, lsl #11
LBB0_16:
	and	w8, w8, #0xfffffff8
	str	w8, [sp, #24]
LBB0_17:
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_drm_crtc_vblank_count
	sub	w25, w25, w0
	ldr	x8, [x26, #8]
	ldr	x8, [x8]
	ldr	w1, [x19, #28]
	mov	x0, x26
	blr	x8
	add	w8, w25, w0
	str	w8, [x19, #8]
	ldr	x0, [x20, #8]
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
Lloh30:
	adrp	x9, _RADEON_FLIP_NONE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RADEON_FLIP_NONE@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
Lloh33:
	adrp	x8, _RADEON_FLIP_PENDING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RADEON_FLIP_PENDING@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x22]
	str	x19, [x22, #16]
	ldp	x0, x8, [x20, #8]
	str	x21, [x8]
	bl	_spin_unlock_irqrestore
	ldr	w0, [x22, #8]
	mov	x1, x23
	bl	_queue_work
	mov	w28, #0
	b	LBB0_8
LBB0_19:
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	x0, [x20, #8]
	bl	_spin_unlock_irqrestore
Lloh38:
	adrp	x8, _EBUSY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w28, w8
	mov	x0, x24
	mov	w1, #0
	bl	_radeon_bo_reserve
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_21
; %bb.20:
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_21:
	mov	x0, x24
	bl	_radeon_bo_unpin
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_23
; %bb.22:
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_ERROR
LBB0_23:
	mov	x0, x24
	bl	_radeon_bo_unreserve
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_radeon_flip_work_func,4,2      ; @radeon_flip_work_func
	.comm	_radeon_unpin_work_func,4,2     ; @radeon_unpin_work_func
	.comm	_DRM_MODE_PAGE_FLIP_ASYNC,4,2   ; @DRM_MODE_PAGE_FLIP_ASYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flip-ioctl() cur_rbo = %p, new_rbo = %p\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to reserve new rbo buffer before flip\n"

	.comm	_RADEON_GEM_DOMAIN_VRAM,4,2     ; @RADEON_GEM_DOMAIN_VRAM
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"failed to pin new rbo buffer before flip\n"

	.comm	_RADEON_TILING_MACRO,4,2        ; @RADEON_TILING_MACRO
	.comm	_RADEON_FLIP_NONE,8,3           ; @RADEON_FLIP_NONE
l_.str.3:                               ; @.str.3
	.asciz	"flip queue: crtc already busy\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RADEON_FLIP_PENDING,8,3        ; @RADEON_FLIP_PENDING
l_.str.4:                               ; @.str.4
	.asciz	"failed to reserve new rbo in error path\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to unpin new rbo in error path\n"

	.no_dead_strip	_radeon_crtc_page_flip_target
.subsections_via_symbols
