	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0b5_migrate_copy
_nvc0b5_migrate_copy:                   ## @nvc0b5_migrate_copy
	.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	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	movl	$13, %esi
	callq	_RING_SPACE
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	_NOUVEAU_APER_VIRT@GOTPCREL(%rip), %r13
	movl	$902, %eax                      ## imm = 0x386
	cmpl	%r14d, (%r13)
	je	LBB0_7
## %bb.2:
	cmpl	$128, %r14d
	je	LBB0_3
## %bb.4:
	cmpl	$129, %r14d
	jne	LBB0_16
## %bb.5:
	movl	$1, %ecx
	jmp	LBB0_6
LBB0_3:
	xorl	%ecx, %ecx
LBB0_6:
	movq	_NvSubCopy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$608, %edx                      ## imm = 0x260
	callq	_BEGIN_IMC0
	movl	$4998, %eax                     ## imm = 0x1386
LBB0_7:
	cmpl	%ebx, (%r13)
	jne	LBB0_9
## %bb.8:
	movl	%r15d, %r13d
	movl	%eax, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_9:
	cmpl	$128, %ebx
	je	LBB0_10
## %bb.11:
	cmpl	$129, %ebx
	jne	LBB0_16
## %bb.12:
	movl	%eax, %r14d
	movl	$1, %ecx
	jmp	LBB0_13
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_10:
	movl	%eax, %r14d
	xorl	%ecx, %ecx
LBB0_13:
	movq	_NvSubCopy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$612, %edx                      ## imm = 0x264
	callq	_BEGIN_IMC0
	orl	$8192, %r14d                    ## imm = 0x2000
	movl	%r15d, %r13d
LBB0_14:
	movq	_NvSubCopy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	movl	$8, %ecx
	callq	_BEGIN_NVC0
	movl	%r12d, %edi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movl	%r12d, %edi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movl	%r15d, %edi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_OUT_RING
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_OUT_RING
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_OUT_RING
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_OUT_RING
	movq	_NvSubCopy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$768, %edx                      ## imm = 0x300
	movl	$1, %ecx
	callq	_BEGIN_NVC0
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_OUT_RING
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOUVEAU_APER_VIRT,4,2          ## @NOUVEAU_APER_VIRT
	.comm	_NvSubCopy,4,2                  ## @NvSubCopy
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_nvc0b5_migrate_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0b5_migrate_copy
_nvc0b5_migrate_copy:                   ; @nvc0b5_migrate_copy
	.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
	mov	x23, x5
	mov	x22, x4
	mov	x21, x3
	mov	x24, x2
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x19, [x8]
	mov	x0, x19
	mov	w1, #13
	bl	_RING_SPACE
	cbnz	w0, LBB0_16
; %bb.1:
Lloh0:
	adrp	x26, _NOUVEAU_APER_VIRT@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NOUVEAU_APER_VIRT@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x25, _NvSubCopy@GOTPAGE
Lloh3:
	ldr	x25, [x25, _NvSubCopy@GOTPAGEOFF]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.2:
	mov	w22, #902
	b	LBB0_8
LBB0_3:
	cmp	w22, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w22, #129
	b.ne	LBB0_12
; %bb.5:
	mov	w3, #1
	b	LBB0_7
LBB0_6:
	mov	w3, #0
LBB0_7:
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #608
	bl	_BEGIN_IMC0
	mov	w22, #4998
LBB0_8:
	ldr	w8, [x26]
	cmp	w8, w24
	b.eq	LBB0_15
; %bb.9:
	cmp	w24, #128
	b.eq	LBB0_13
; %bb.10:
	cmp	w24, #129
	b.ne	LBB0_12
; %bb.11:
	mov	w3, #1
	b	LBB0_14
LBB0_12:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_13:
	mov	w3, #0
LBB0_14:
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #612
	bl	_BEGIN_IMC0
	orr	w22, w22, #0x2000
LBB0_15:
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #1024
	mov	w3, #8
	bl	_BEGIN_NVC0
	mov	x0, x23
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x19
	bl	_OUT_RING
	mov	x0, x23
	bl	_lower_32_bits
	mov	x1, x0
	mov	x0, x19
	bl	_OUT_RING
	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
Lloh7:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x21]
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x21]
	mov	x0, x19
	bl	_OUT_RING
	mov	x0, x19
	mov	x1, x20
	bl	_OUT_RING
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #768
	mov	w3, #1
	bl	_BEGIN_NVC0
	mov	x0, x19
	mov	x1, x22
	bl	_OUT_RING
	mov	w0, #0
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NOUVEAU_APER_VIRT,4,2          ; @NOUVEAU_APER_VIRT
	.comm	_NvSubCopy,4,2                  ; @NvSubCopy
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_nvc0b5_migrate_copy
.subsections_via_symbols
