	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_bo_move_m2mf
_nvc0_bo_move_m2mf:                     ## @nvc0_bo_move_m2mf
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rcx), %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rdx), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movl	4(%rax), %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_RING_SPACE
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2047, %ebx                     ## imm = 0x7FF
	movl	$2047, %eax                     ## imm = 0x7FF
	cmovll	%ebx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_NvSubCopy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$568, %edx                      ## imm = 0x238
	movl	$2, %ecx
	callq	_BEGIN_NVC0
	movl	%r12d, %edi
	callq	_upper_32_bits
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movl	%r12d, %edi
	callq	_lower_32_bits
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movq	_NvSubCopy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$780, %edx                      ## imm = 0x30C
	movl	$6, %ecx
	callq	_BEGIN_NVC0
	movl	%r14d, %edi
	callq	_upper_32_bits
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movl	%r14d, %edi
	callq	_lower_32_bits
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
	movq	%r15, %rdi
	movl	%r14d, %r13d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_OUT_RING
	movq	_NvSubCopy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$768, %edx                      ## imm = 0x300
	movl	$1, %ecx
	callq	_BEGIN_NVC0
	movq	%r15, %rdi
	movl	$1048848, %esi                  ## imm = 0x100110
	callq	_OUT_RING
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %ecx
	movl	%r13d, %r14d
	imull	%ecx, %eax
	addl	%eax, %r14d
	addl	%eax, %r12d
	subl	%ecx, %ebx
	jne	LBB0_2
## %bb.4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NvSubCopy,4,2                  ## @NvSubCopy
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_nvc0_bo_move_m2mf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_bo_move_m2mf
_nvc0_bo_move_m2mf:                     ; @nvc0_bo_move_m2mf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w23, [x3]
	cbz	w23, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x2, #8]
	ldr	x8, [x8]
	ldp	w21, w20, [x8]
	mov	w24, #2047
Lloh0:
	adrp	x25, _NvSubCopy@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NvSubCopy@GOTPAGEOFF]
Lloh2:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #12
	bl	_RING_SPACE
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #2047
	csel	w22, w23, w24, lt
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #568
	mov	w3, #2
	bl	_BEGIN_NVC0
	mov	x0, x20
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x19
	bl	_OUT_RING
	mov	x0, x20
	bl	_lower_32_bits
	mov	x1, x0
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #780
	mov	w3, #6
	bl	_BEGIN_NVC0
	mov	x0, x21
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x19
	bl	_OUT_RING
	mov	x0, x21
	bl	_lower_32_bits
	mov	x1, x0
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x26]
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x26]
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x26]
	mov	x0, x19
	bl	_OUT_RING
	mov	x0, x19
	mov	x1, x22
	bl	_OUT_RING
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #768
	mov	w3, #1
	bl	_BEGIN_NVC0
	mov	x0, x19
	mov	w1, #272
	movk	w1, #16, lsl #16
	bl	_OUT_RING
	ldr	w8, [x26]
	mul	w8, w8, w22
	add	w21, w8, w21
	add	w20, w8, w20
	subs	w23, w23, w22
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NvSubCopy,4,2                  ; @NvSubCopy
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_nvc0_bo_move_m2mf
.subsections_via_symbols
