	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_move_blit
_radeon_move_blit:                      ## @radeon_move_blit
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_radeon_get_rdev
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_radeon_copy_ring_index
	movl	(%rbx), %esi
	movl	8(%rbx), %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movl	8(%r12), %r14d
	shll	%cl, %r14d
	cmpl	$129, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_3
## %bb.2:
	leaq	8(%r13), %rcx
	jmp	LBB0_6
LBB0_5:
	leaq	12(%r13), %rcx
LBB0_6:
	addl	(%rcx), %ebx
	movl	(%r12), %ecx
	cmpl	$129, %ecx
	je	LBB0_9
## %bb.7:
	cmpl	$128, %ecx
	jne	LBB0_3
## %bb.8:
	leaq	8(%r13), %rcx
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_4
LBB0_9:
	leaq	12(%r13), %rcx
LBB0_10:
	movq	(%r13), %rdx
	cltq
	cmpl	$0, (%rdx,%rax,4)
	je	LBB0_11
## %bb.12:
	addl	(%rcx), %r14d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RADEON_GPU_PAGE_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
	xorl	%edi, %edi
	testl	%edx, %edx
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	movq	_RADEON_GPU_PAGE_SIZE@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	imull	4(%r12), %eax
	movl	(%r15), %r8d
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_radeon_copy
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_ttm_bo_move_accel_cleanup
	movl	%eax, %ebx
	leaq	-56(%rbp), %rdi
	callq	_radeon_fence_unref
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown placement %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Trying to move memory with ring turned off.\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_RADEON_GPU_PAGE_SIZE,4,2       ## @RADEON_GPU_PAGE_SIZE
	.no_dead_strip	_radeon_move_blit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_move_blit
_radeon_move_blit:                      ; @radeon_move_blit
	.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	x23, x4
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_radeon_get_rdev
	mov	x22, x0
	bl	_radeon_copy_ring_index
	ldr	w8, [x23, #8]
Lloh0:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	ldr	w11, [x23]
	cmp	w11, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w11, #128
	b.ne	LBB0_12
; %bb.2:
	add	x12, x22, #8
	b	LBB0_4
LBB0_3:
	add	x12, x22, #12
LBB0_4:
	ldr	w12, [x12]
	ldr	w13, [x19]
	cmp	w13, #129
	b.eq	LBB0_7
; %bb.5:
	cmp	w13, #128
	b.ne	LBB0_11
; %bb.6:
	add	x11, x22, #8
	b	LBB0_8
LBB0_7:
	add	x11, x22, #12
LBB0_8:
	ldr	x13, [x22]
	ldr	w13, [x13, w0, sxtw #2]
	cbz	w13, LBB0_13
; %bb.9:
	lsl	w8, w8, w9
	lsl	w9, w10, w9
	add	w23, w12, w8
	ldr	w8, [x11]
	add	w24, w8, w9
Lloh3:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x26, _RADEON_GPU_PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _RADEON_GPU_PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x26]
	udiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cmp	w8, #0
	cset	w0, ne
	bl	_BUILD_BUG_ON
	ldr	w8, [x19, #4]
	ldr	w9, [x25]
	ldr	w10, [x26]
	udiv	w9, w9, w10
	mul	w3, w9, w8
	ldr	w4, [x21]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_radeon_copy
	mov	x22, x0
	str	x0, [sp, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.10:
	mov	x0, x22
	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
	b	_PTR_ERR
LBB0_11:
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
LBB0_12:
	str	x11, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_14:
	bl	_DRM_ERROR
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
LBB0_16:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_ttm_bo_move_accel_cleanup
	mov	x19, x0
	add	x0, sp, #8
	bl	_radeon_fence_unref
	mov	x0, x19
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown placement %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Trying to move memory with ring turned off.\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_RADEON_GPU_PAGE_SIZE,4,2       ; @RADEON_GPU_PAGE_SIZE
	.no_dead_strip	_radeon_move_blit
.subsections_via_symbols
