	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_ttm_copy_mem_to_mem     ## -- Begin function amdgpu_ttm_copy_mem_to_mem
	.p2align	4, 0x90
_amdgpu_ttm_copy_mem_to_mem:            ## @amdgpu_ttm_copy_mem_to_mem
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -168(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r13d
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_AMDGPU_GTT_MAX_TRANSFER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	_AMDGPU_GPU_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rdi
	movq	%rdx, %r15
	callq	_amdgpu_find_mm_node
	movq	%rax, %r12
	movl	16(%rbx), %edi
	movq	8(%rbx), %rdx
	movq	%rax, %rsi
	callq	_amdgpu_mm_node_addr
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	movl	(%r12), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	8(%r15), %rdi
	movq	%r15, %rsi
	callq	_amdgpu_find_mm_node
	movq	%rax, %rbx
	movl	16(%r15), %edi
	movq	8(%r15), %rdx
	movq	%rax, %rsi
	callq	_amdgpu_mm_node_addr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r12d
	movq	%r15, -152(%rbp)                ## 8-byte Spill
	movl	(%r15), %r15d
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movl	(%rbx), %r13d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %r14d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_lock
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.8:
	movl	%r12d, %r9d
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	imulq	-160(%rbp), %rsi                ## 8-byte Folded Reload
	decl	%r14d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	%r15d, %edx
	andl	%edx, %r14d
	movl	%ebx, %ecx
	shll	%cl, %r13d
	subl	%r15d, %r13d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	decl	%eax
	movl	-120(%rbp), %ecx                ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	shll	%cl, %edi
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, %r8d
	andl	%r8d, %eax
	subl	%ecx, %edi
	xorl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ebx
	movq	%rsi, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, %esi
	movq	%rax, %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	%r12d, %edx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	decl	%r14d
	andl	%edx, %r14d
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -72(%rbp)
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movl	%esi, -104(%rbp)                ## 4-byte Spill
	callq	_min
	movl	%eax, %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_min3
	movq	%rax, %r12
	movslq	%r13d, %rax
	addq	%r12, %rax
	cmpq	%r15, %rax
	ja	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%r14d, %rax
	addq	%r12, %rax
	cmpq	%r15, %rax
	jbe	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_max
	subq	%rax, %r12
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	%r13, %r14
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %r13
	movq	_AMDGPU_BO_INVALID_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r13)
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	16(%rax), %r15d
	leal	(%r14,%r12), %edi
	callq	_PFN_UP
	leaq	-72(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	callq	_amdgpu_map_buffer
	testl	%eax, %eax
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	%r14d, -72(%rbp)
	movq	_AMDGPU_BO_INVALID_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %r13
	cmpq	%rax, (%r13)
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	16(%rcx), %r15d
	movq	-120(%rbp), %r14                ## 8-byte Reload
	leal	(%r14,%r12), %edi
	callq	_PFN_UP
	leaq	-52(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r8d
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	callq	_amdgpu_map_buffer
	testl	%eax, %eax
	jne	LBB0_14
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	-52(%rbp), %r14d
	movl	%r14d, -52(%rbp)
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-52(%rbp), %r14d
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	-72(%rbp), %esi
	movl	$1, 8(%rsp)
	movl	$0, (%rsp)
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %edx
	movq	%r12, %rcx
	movq	-168(%rbp), %r8                 ## 8-byte Reload
	leaq	-176(%rbp), %r9
	callq	_amdgpu_copy_buffer
	testl	%eax, %eax
	jne	LBB0_14
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_fence_put
	movq	-176(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	subl	%r12d, %ebx
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	subl	%r12d, %edi
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	addl	%r12d, %r8d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	decl	%r13d
	andl	%r8d, %r13d
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	16(%r13), %edi
	movq	-144(%rbp), %r15                ## 8-byte Reload
	leaq	4(%r15), %r14
	movq	8(%r13), %rdx
	movq	%r14, %rsi
	callq	_amdgpu_mm_node_addr
	movl	%eax, %r8d
	movl	4(%r15), %edi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shll	%cl, %edi
	xorl	%r13d, %r13d
	movq	%r14, -144(%rbp)                ## 8-byte Spill
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	-104(%rbp), %esi                ## 4-byte Reload
	subl	%r12d, %esi
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movl	%edi, %r12d
	movl	16(%rax), %edi
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	-136(%rbp), %r13                ## 8-byte Reload
	leaq	4(%r13), %r15
	movl	%r8d, %r14d
	movq	8(%rax), %rdx
	movq	%r15, %rsi
	callq	_amdgpu_mm_node_addr
	movl	%r12d, %edi
	movl	%r14d, %r8d
	movl	%eax, %edx
	movl	4(%r13), %esi
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shll	%cl, %esi
	xorl	%r14d, %r14d
	movq	%r15, -136(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_14:
	movl	%eax, %r15d
	jmp	LBB0_15
LBB0_3:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_23:
	xorl	%r15d, %r15d
LBB0_15:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_4:
	callq	_mutex_unlock
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_dma_fence_get
	movq	%rax, (%rbx)
LBB0_6:
	movq	%r14, %rdi
	callq	_dma_fence_put
LBB0_7:
	movl	%r15d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_GTT_MAX_TRANSFER_SIZE,4,2 ## @AMDGPU_GTT_MAX_TRANSFER_SIZE
	.comm	_AMDGPU_GPU_PAGE_SIZE,4,2       ## @AMDGPU_GPU_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to move memory with ring turned off.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_AMDGPU_BO_INVALID_OFFSET,8,3   ## @AMDGPU_BO_INVALID_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_ttm_copy_mem_to_mem     ; -- Begin function amdgpu_ttm_copy_mem_to_mem
	.p2align	2
_amdgpu_ttm_copy_mem_to_mem:            ; @amdgpu_ttm_copy_mem_to_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x4, [sp, #64]                   ; 8-byte Folded Spill
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_20
; %bb.1:
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x26, x0
	str	x5, [sp, #16]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _AMDGPU_GTT_MAX_TRANSFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_GTT_MAX_TRANSFER_SIZE@GOTPAGEOFF]
	ldr	x9, [x0, #8]
	str	x9, [sp, #88]                   ; 8-byte Folded Spill
Lloh2:
	ldrsw	x8, [x8]
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _AMDGPU_GPU_PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMDGPU_GPU_PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x0, [x1, #8]
	bl	_amdgpu_find_mm_node
	mov	x21, x0
	ldr	w0, [x20, #16]
	ldr	x2, [x20, #8]
	mov	x1, x21
	bl	_amdgpu_mm_node_addr
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	str	x20, [sp, #80]                  ; 8-byte Folded Spill
	ldr	w25, [x20]
Lloh6:
	adrp	x24, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PAGE_SHIFT@GOTPAGEOFF]
	str	x21, [sp, #48]                  ; 8-byte Folded Spill
	ldr	w8, [x21]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w8, [x24]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
Lloh8:
	adrp	x19, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x19, [x19, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w21, [x19]
	ldr	x0, [x23, #8]
	mov	x1, x23
	bl	_amdgpu_find_mm_node
	mov	x27, x0
	ldr	w0, [x23, #16]
	ldr	x2, [x23, #8]
	mov	x1, x27
	bl	_amdgpu_mm_node_addr
	mov	x20, x0
	stp	x23, x27, [sp, #32]             ; 16-byte Folded Spill
	ldr	w23, [x23]
	ldr	w27, [x27]
	ldr	w28, [x24]
	ldr	w24, [x19]
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	mov	x0, x26
	bl	_mutex_lock
	mov	x26, #0
	cbz	w22, LBB0_21
; %bb.2:
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	mul	x8, x9, x8
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	sub	w8, w24, #1
	add	w20, w23, w20
	and	w24, w8, w20
	lsl	w8, w27, w28
	sub	w1, w8, w23
	sub	w8, w21, #1
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	add	w21, w25, w9
	and	w23, w8, w21
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	lsl	w8, w8, w9
	sub	w28, w8, w25
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	sub	w8, w8, #1
	add	w20, w20, w25
	and	w24, w8, w20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	w20, w21, [x29, #-88]
	mov	x0, x28
	str	w1, [sp, #72]                   ; 4-byte Folded Spill
	bl	_min
	mov	x1, x22
	ldr	x19, [sp, #56]                  ; 8-byte Folded Reload
	mov	x2, x19
	bl	_min3
	mov	x25, x0
	add	x8, x0, w23, sxtw
	cmp	x8, x19
	add	x8, x0, w24, sxtw
	ccmp	x8, x19, #2, ls
	b.ls	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_max
	sub	x25, x25, x0
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldr	x19, [x8, #8]
	ldr	x9, [x19]
Lloh13:
	adrp	x8, _AMDGPU_BO_INVALID_OFFSET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AMDGPU_BO_INVALID_OFFSET@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldr	w27, [x8, #16]
	add	w0, w23, w25
	bl	_PFN_UP
	mov	x2, x0
	sub	x6, x29, #84
	mov	x0, x27
	mov	x1, x19
	mov	x3, x21
	mov	w4, #0
	ldr	x5, [sp, #88]                   ; 8-byte Folded Reload
	bl	_amdgpu_map_buffer
	cbnz	w0, LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w8, [x29, #-84]
	add	w8, w8, w23
	stur	w8, [x29, #-84]
Lloh16:
	adrp	x8, _AMDGPU_BO_INVALID_OFFSET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AMDGPU_BO_INVALID_OFFSET@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x19, [x27, #8]
	ldr	x9, [x19]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x27, #16]
	add	w0, w24, w25
	bl	_PFN_UP
	mov	x2, x0
	sub	x6, x29, #88
	mov	x0, x23
	mov	x1, x19
	mov	x3, x20
	mov	w4, #1
	ldr	x5, [sp, #88]                   ; 8-byte Folded Reload
	bl	_amdgpu_map_buffer
	cbnz	w0, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	w8, [x29, #-88]
	add	w2, w8, w24
	stur	w2, [x29, #-88]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w2, [x29, #-88]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w1, [x29, #-84]
	add	x5, sp, #96
	ldr	x0, [sp, #88]                   ; 8-byte Folded Reload
	mov	x3, x25
	ldr	x4, [sp, #64]                   ; 8-byte Folded Reload
	mov	w6, #0
	mov	w7, #1
	bl	_amdgpu_copy_buffer
	cbnz	w0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_dma_fence_put
	ldr	x26, [sp, #96]
	subs	w22, w22, w25
	b.eq	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	subs	w28, w28, w25
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	sub	w8, w8, #1
	add	w21, w21, w25
	and	w23, w8, w21
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #16]
	ldr	x24, [sp, #48]                  ; 8-byte Folded Reload
	add	x19, x24, #4
	ldr	x2, [x8, #8]
	mov	x1, x19
	bl	_amdgpu_mm_node_addr
	mov	x21, x0
	mov	w23, #0
	ldr	w8, [x24, #4]
Lloh22:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	lsl	w28, w8, w9
	str	x19, [sp, #48]                  ; 8-byte Folded Spill
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #72]                   ; 4-byte Folded Reload
	subs	w1, w1, w25
	b.ne	LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27, #16]
	ldr	x25, [sp, #40]                  ; 8-byte Folded Reload
	add	x19, x25, #4
	ldr	x2, [x27, #8]
	mov	x1, x19
	bl	_amdgpu_mm_node_addr
	mov	x20, x0
	mov	w24, #0
	ldr	w8, [x25, #4]
Lloh25:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	lsl	w1, w8, w9
	str	x19, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_20:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_26
LBB0_21:
	mov	w19, #0
	b	LBB0_23
LBB0_22:
	mov	x19, x0
LBB0_23:
	ldp	x20, x0, [sp, #16]              ; 16-byte Folded Reload
	bl	_mutex_unlock
	cbz	x20, LBB0_25
; %bb.24:
	mov	x0, x26
	bl	_dma_fence_get
	str	x0, [x20]
LBB0_25:
	mov	x0, x26
	bl	_dma_fence_put
LBB0_26:
	mov	x0, x19
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_GTT_MAX_TRANSFER_SIZE,4,2 ; @AMDGPU_GTT_MAX_TRANSFER_SIZE
	.comm	_AMDGPU_GPU_PAGE_SIZE,4,2       ; @AMDGPU_GPU_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to move memory with ring turned off.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_AMDGPU_BO_INVALID_OFFSET,8,3   ; @AMDGPU_BO_INVALID_OFFSET
.subsections_via_symbols
