	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_move_memcpy             ## -- Begin function ttm_bo_move_memcpy
	.p2align	4, 0x90
_ttm_bo_move_memcpy:                    ## @ttm_bo_move_memcpy
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	56(%rdi), %r14
	movq	(%r14), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	8(%rdi), %rbx
	movups	8(%rdi), %xmm0
	movups	24(%rdi), %xmm1
	movups	40(%rdi), %xmm2
	movaps	%xmm2, -128(%rbp)
	movaps	%xmm1, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ttm_mem_reg_ioremap
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ttm_mem_reg_ioremap
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_30
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
	movq	-72(%rbp), %rcx
	movq	%rcx, %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	orq	%rdi, %rax
	sete	%al
	orq	-64(%rbp), %rcx
	movq	%rbx, %rdx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_22
## %bb.3:
	testb	%al, %al
	jne	LBB0_22
## %bb.4:
	movq	(%rdi), %rax
	movq	_tt_unpopulated@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movq	$0, -128(%rbp)
	jmp	LBB0_28
LBB0_7:
	movq	(%rbx), %rax
	movl	$1, %ebx
	movq	%r13, %rcx
	cmpq	(%r13), %rax
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jne	LBB0_11
## %bb.8:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rdx), %rax
	addq	16(%rdx), %rax
	cmpq	%rax, 8(%rcx)
	jge	LBB0_11
## %bb.9:
	movslq	24(%rcx), %r12
	decq	%r12
	movq	$-1, %rbx
	jmp	LBB0_12
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	cmpl	$0, 24(%rcx)
	je	LBB0_21
## %bb.13:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdx
	callq	_ttm_copy_io_page
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	48(%rax), %edi
	movq	_PAGE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ttm_io_prot
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_ttm_copy_ttm_io_page
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	40(%rcx), %edi
	movq	_PAGE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ttm_io_prot
	movq	-72(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_ttm_copy_io_ttm_page
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r14
	movq	%r13, %rcx
	movslq	24(%r13), %rax
	addq	%rbx, %r12
	cmpq	%rax, %r14
	jb	LBB0_14
LBB0_21:
	xorl	%eax, %eax
	callq	_mb
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
LBB0_22:
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	32(%rbx), %xmm2
	movaps	%xmm2, -128(%rbp)
	movaps	%xmm1, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	32(%r13), %xmm2
	movups	%xmm0, (%rbx)
	movups	%xmm1, 16(%rbx)
	movups	%xmm2, 32(%rbx)
	movq	$0, 32(%r13)
	movq	_TTM_MEMTYPE_FLAG_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testl	%eax, (%rdx,%rcx,4)
	je	LBB0_28
## %bb.23:
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.24:
	movq	%rdi, %r13
	callq	_ttm_tt_unbind
	movq	%r13, %rdi
	callq	_ttm_tt_destroy
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	$0, (%r13)
	jmp	LBB0_29
LBB0_27:
	movq	$0, -128(%rbp)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_28:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_29:
	movq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ttm_mem_reg_iounmap
LBB0_30:
	movq	-72(%rbp), %rdx
	leaq	-160(%rbp), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ttm_mem_reg_iounmap
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ttm_bo_mem_put
LBB0_31:
	movl	%r15d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tt_unpopulated,8,3             ## @tt_unpopulated
	.comm	_PAGE_KERNEL,4,2                ## @PAGE_KERNEL
	.comm	_TTM_MEMTYPE_FLAG_FIXED,4,2     ## @TTM_MEMTYPE_FLAG_FIXED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_move_memcpy             ; -- Begin function ttm_bo_move_memcpy
	.p2align	2
_ttm_bo_move_memcpy:                    ; @ttm_bo_move_memcpy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x23, x3
	mov	x19, x0
	ldr	x20, [x0, #56]
	ldr	x26, [x20]
	ldr	x27, [x3]
	ldr	x22, [x0]
	add	x21, x0, #8
	ldur	q0, [x0, #8]
	ldur	q1, [x0, #24]
	stp	q0, q1, [sp, #32]
	ldur	q0, [x0, #40]
	str	q0, [sp, #64]
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x21
	bl	_ttm_mem_reg_ioremap
	mov	x25, x0
	cbnz	w0, LBB0_26
; %bb.1:
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x23
	bl	_ttm_mem_reg_ioremap
	mov	x25, x0
	cbnz	w0, LBB0_25
; %bb.2:
	ldp	x10, x9, [sp, #16]
	orr	x8, x9, x22
	cmp	x8, #0
	cset	w8, eq
	orr	x9, x9, x10
	cbz	x9, LBB0_21
; %bb.3:
	tbnz	w8, #0, LBB0_21
; %bb.4:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _tt_unpopulated@GOTPAGE
Lloh1:
	ldr	x9, [x9, _tt_unpopulated@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x22
	blr	x8
	cbz	w0, LBB0_8
; %bb.6:
	mov	x25, x0
LBB0_7:
	str	xzr, [sp, #64]
	b	LBB0_24
LBB0_8:
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x23, #8]
	ldp	x9, x10, [x19, #16]
	add	x9, x10, x9
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.10:
	ldrsw	x8, [x23, #24]
	sub	x24, x8, #1
	mov	x8, #-1
	b	LBB0_12
LBB0_11:
	mov	x24, #0
	mov	w8, #1
LBB0_12:
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x23, #24]
	cbz	w8, LBB0_20
; %bb.13:
	mov	x28, #0
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x19, #48]
Lloh3:
	adrp	x8, _PAGE_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ttm_io_prot
	mov	x3, x0
	ldr	x1, [sp, #16]
	mov	x0, x22
	mov	x2, x24
	bl	_ttm_copy_ttm_io_page
	mov	x25, x0
	cbnz	w0, LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x23, #24]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x24, x24, x9
	cmp	x28, x8
	b.hs	LBB0_20
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x2, x24
	bl	_ttm_copy_io_page
	mov	x25, x0
	cbz	w0, LBB0_15
	b	LBB0_7
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x23, #40]
Lloh6:
	adrp	x8, _PAGE_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ttm_io_prot
	mov	x3, x0
	ldr	x1, [sp, #24]
	mov	x0, x22
	mov	x2, x24
	bl	_ttm_copy_io_ttm_page
	mov	x25, x0
	cbz	w0, LBB0_15
	b	LBB0_7
LBB0_20:
	bl	_mb
LBB0_21:
	mov	w25, #0
	ldp	q0, q1, [x21]
	ldp	q3, q2, [x23, #16]
	ldr	q4, [x23]
	stp	q4, q3, [x21]
	ldr	q3, [x21, #32]
	str	q2, [x21, #32]
	str	xzr, [x23, #32]
	stp	q0, q1, [sp, #32]
	str	q3, [sp, #64]
	ldr	w8, [x26, x27, lsl #2]
Lloh9:
	adrp	x9, _TTM_MEMTYPE_FLAG_FIXED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TTM_MEMTYPE_FLAG_FIXED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.22:
	cbz	x22, LBB0_24
; %bb.23:
	mov	x0, x22
	bl	_ttm_tt_unbind
	mov	x0, x22
	bl	_ttm_tt_destroy
	mov	w25, #0
	str	xzr, [x19]
LBB0_24:
	ldr	x2, [sp, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_ttm_mem_reg_iounmap
LBB0_25:
	ldr	x2, [sp, #24]
	add	x1, sp, #32
	mov	x0, x20
	bl	_ttm_mem_reg_iounmap
	add	x1, sp, #32
	mov	x0, x19
	bl	_ttm_bo_mem_put
LBB0_26:
	mov	x0, x25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_tt_unpopulated,8,3             ; @tt_unpopulated
	.comm	_PAGE_KERNEL,4,2                ; @PAGE_KERNEL
	.comm	_TTM_MEMTYPE_FLAG_FIXED,4,2     ; @TTM_MEMTYPE_FLAG_FIXED
.subsections_via_symbols
