	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_benchmark_do_move
_radeon_benchmark_do_move:              ## @radeon_benchmark_do_move
	.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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rdi
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.1:
	movl	%r8d, %r14d
	movl	%r8d, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.2:
	movl	%r9d, %ebx
	movl	%esi, %r13d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	movq	_RADEON_GPU_PAGE_SIZE@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	movq	%r15, %rdi
	cmpl	$128, %r14d
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	movq	16(%rbp), %r8
	callq	_radeon_copy_dma
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	movq	16(%rbp), %r8
	callq	_radeon_copy_blit
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, -56(%rbp)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	-56(%rbp), %rdi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	callq	_radeon_fence_wait
	movl	%eax, %r12d
	leaq	-56(%rbp), %rdi
	callq	_radeon_fence_unref
	testl	%r12d, %r12d
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%ebx
	jne	LBB0_5
## %bb.11:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_12:
	subq	%rcx, %rdi
	callq	_jiffies_to_msecs
LBB0_13:
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	_PTR_ERR
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_RADEON_GPU_PAGE_SIZE,4,2       ## @RADEON_GPU_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown copy method\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_radeon_benchmark_do_move
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_benchmark_do_move
_radeon_benchmark_do_move:              ; @radeon_benchmark_do_move
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x27, [x8]
	cmp	w5, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x21, x4
	and	w8, w4, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.2:
	mov	x19, x6
	mov	x20, x5
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh3:
	adrp	x28, _RADEON_GPU_PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _RADEON_GPU_PAGE_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	udiv	w3, w24, w8
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	mov	x4, x19
	cmp	w21, #128
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_radeon_copy_dma
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_radeon_copy_blit
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [sp, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [sp, #8]
	cbnz	x8, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #0
	bl	_radeon_fence_wait
	mov	x26, x0
	add	x0, sp, #8
	bl	_radeon_fence_unref
	cbnz	w26, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w20, w20, #1
	b.ne	LBB0_3
; %bb.9:
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	b	LBB0_11
LBB0_10:
	mov	x8, x27
LBB0_11:
	sub	x0, x8, x27
	bl	_jiffies_to_msecs
LBB0_12:
	mov	x26, x0
	b	LBB0_14
LBB0_13:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_14:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	bl	_PTR_ERR
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_RADEON_GPU_PAGE_SIZE,4,2       ; @RADEON_GPU_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown copy method\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_radeon_benchmark_do_move
.subsections_via_symbols
