	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_benchmark_do_move
_amdgpu_benchmark_do_move:              ## @amdgpu_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, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	movl	%r8d, %ebx
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movl	%r15d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	leaq	-48(%rbp), %r9
	pushq	$0
	pushq	$0
	callq	_amdgpu_copy_buffer
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_dma_fence_wait
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	callq	_dma_fence_put
	decl	%ebx
	jne	LBB0_2
## %bb.5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_6:
	subq	%rax, %rdi
	callq	_jiffies_to_msecs
LBB0_7:
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_dma_fence_put
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_amdgpu_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 amdgpu_benchmark_do_move
_amdgpu_benchmark_do_move:              ; @amdgpu_benchmark_do_move
	.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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x26, _jiffies@GOTPAGE
Lloh1:
	ldr	x26, [x26, _jiffies@GOTPAGEOFF]
	ldr	x25, [x26]
	cmp	w4, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	add	x5, sp, #8
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, #0
	mov	w6, #0
	mov	w7, #0
	bl	_amdgpu_copy_buffer
	cbnz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_dma_fence_wait
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	bl	_dma_fence_put
	subs	w19, w19, #1
	b.ne	LBB0_2
; %bb.5:
	ldr	x8, [x26]
	b	LBB0_7
LBB0_6:
	mov	x8, x25
LBB0_7:
	sub	x0, x8, x25
	bl	_jiffies_to_msecs
LBB0_8:
	mov	x24, x0
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_dma_fence_put
LBB0_10:
	mov	x0, x24
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_amdgpu_benchmark_do_move
.subsections_via_symbols
