	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function nv04_vmmgr_ctor
LCPI0_0:
	.long	32                              ## 0x20
	.long	20                              ## 0x14
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_nv04_vmmgr_ctor:                       ## @nv04_vmmgr_ctor
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	leaq	-32(%rbp), %r9
	callq	_nouveau_vmmgr_create
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r15)
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.1:
	movq	_nv04_vm_create@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-32(%rbp), %r9
	leaq	8(%r9), %rdi
	movl	%eax, 40(%r9)
	movq	_NV04_PDMA_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%edx, 8(%r9)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [32,20,12,12]
	movups	%xmm0, 12(%r9)
	movq	_nv04_vm_map_sg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r9)
	movq	_nv04_vm_unmap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r9)
	movq	_nv04_vm_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r9)
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$4096, %r8d                     ## imm = 0x1000
	callq	_nouveau_vm_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %eax
	movq	_NV04_PDMA_PAGE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
                                        ## kill: def $eax killed $eax def $rax
	leal	8(,%rax,4), %edx
	movq	_NVOBJ_FLAG_ZERO_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %ecx
	callq	_nouveau_gpuobj_new
	movl	%eax, %ebx
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movl	$1, (%rcx)
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$135229, %edx                   ## imm = 0x2103D
	callq	_nv_wo32
	movl	(%r15), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_nv_wo32
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCIGART"

L_.str.1:                               ## @.str.1
	.asciz	"pcigart"

	.comm	_nv04_vm_create,4,2             ## @nv04_vm_create
	.comm	_NV04_PDMA_SIZE,4,2             ## @NV04_PDMA_SIZE
	.comm	_nv04_vm_map_sg,4,2             ## @nv04_vm_map_sg
	.comm	_nv04_vm_unmap,4,2              ## @nv04_vm_unmap
	.comm	_nv04_vm_flush,4,2              ## @nv04_vm_flush
	.comm	_NV04_PDMA_PAGE,4,2             ## @NV04_PDMA_PAGE
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ## @NVOBJ_FLAG_ZERO_ALLOC
	.no_dead_strip	_nv04_vmmgr_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function nv04_vmmgr_ctor
lCPI0_0:
	.long	32                              ; 0x20
	.long	20                              ; 0x14
	.long	12                              ; 0xc
	.long	12                              ; 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nv04_vmmgr_ctor:                       ; @nv04_vmmgr_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x5
	mov	x19, x0
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x5, sp, #8
	bl	_nouveau_vmmgr_create
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x21]
	cbnz	w20, LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _nv04_vm_create@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nv04_vm_create@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	x5, [sp, #8]
Lloh7:
	adrp	x21, _NV04_PDMA_SIZE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _NV04_PDMA_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x5
	str	w2, [x0, #8]!
Lloh9:
	adrp	x9, lCPI0_0@PAGE
Lloh10:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
Lloh11:
	adrp	x9, _nv04_vm_map_sg@GOTPAGE
Lloh12:
	ldr	x9, [x9, _nv04_vm_map_sg@GOTPAGEOFF]
	stur	q0, [x5, #12]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x5, #36]
Lloh14:
	adrp	x8, _nv04_vm_unmap@GOTPAGE
Lloh15:
	ldr	x8, [x8, _nv04_vm_unmap@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _nv04_vm_flush@GOTPAGE
Lloh18:
	ldr	x9, [x9, _nv04_vm_flush@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x5, #28]
	mov	w1, #0
	mov	w3, #0
	mov	w4, #4096
	bl	_nouveau_vm_create
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
Lloh20:
	adrp	x8, _NV04_PDMA_PAGE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NV04_PDMA_PAGE@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh22:
	ldr	w8, [x8]
	sdiv	w8, w9, w8
	lsl	w8, w8, #2
Lloh23:
	adrp	x9, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NVOBJ_FLAG_ZERO_ALLOC@GOTPAGEOFF]
	add	w2, w8, #8
Lloh25:
	ldr	w4, [x9]
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x5, [x8, #8]
	mov	x0, x19
	mov	x1, #0
	mov	w3, #16
	bl	_nouveau_gpuobj_new
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldp	x8, x9, [x8]
	ldr	x19, [x9]
	mov	w9, #1
	str	w9, [x8]
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4157
	movk	w2, #2, lsl #16
	bl	_nv_wo32
	ldr	w8, [x21]
	sub	w2, w8, #1
	mov	x0, x19
	mov	w1, #4
	bl	_nv_wo32
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCIGART"

l_.str.1:                               ; @.str.1
	.asciz	"pcigart"

	.comm	_nv04_vm_create,4,2             ; @nv04_vm_create
	.comm	_NV04_PDMA_SIZE,4,2             ; @NV04_PDMA_SIZE
	.comm	_nv04_vm_map_sg,4,2             ; @nv04_vm_map_sg
	.comm	_nv04_vm_unmap,4,2              ; @nv04_vm_unmap
	.comm	_nv04_vm_flush,4,2              ; @nv04_vm_flush
	.comm	_NV04_PDMA_PAGE,4,2             ; @NV04_PDMA_PAGE
	.comm	_NVOBJ_FLAG_ZERO_ALLOC,4,2      ; @NVOBJ_FLAG_ZERO_ALLOC
	.no_dead_strip	_nv04_vmmgr_ctor
.subsections_via_symbols
