	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_mem_map                  ## -- Begin function gf100_mem_map
	.p2align	4, 0x90
_gf100_mem_map:                         ## @gf100_mem_map
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdx, -64(%rbp)
	movl	%ecx, -44(%rbp)
	movq	$0, -56(%rbp)
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_nvkm_bar_bar1_vmm
	movq	%rax, %r13
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	movq	(%rbx), %rcx
	movl	$0, (%rsp)
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_nvif_unpack
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %ecx
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%eax, %edi
	callq	_nvif_unvers
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_3
LBB0_1:
	movl	4(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
LBB0_3:
	movq	16(%rbp), %r14
	movq	%r15, %rdi
	callq	_nvkm_memory_page
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_nvkm_memory_size
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_nvkm_vmm_get
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	(%r14), %rcx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	movl	$8, %r9d
	callq	_nvkm_memory_map
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movq	%r12, %rdi
	movl	$1, %esi
	callq	*(%rax)
	movq	(%r14), %rcx
	addq	8(%rcx), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	movq	(%rcx), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_mem_map                  ; -- Begin function gf100_mem_map
	.p2align	2
_gf100_mem_map:                         ; @gf100_mem_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x6
	mov	x19, x5
	mov	x20, x4
	mov	x25, x2
	mov	x23, x1
	str	x2, [sp, #24]
	str	w3, [sp, #20]
	str	xzr, [sp, #8]
	ldr	x22, [x0]
	mov	x0, x22
	bl	_nvkm_bar_bar1_vmm
	mov	x24, x0
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x3, [x25]
	add	x1, sp, #24
	add	x2, sp, #20
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_nvif_unpack
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w3, [x25]
	add	x1, sp, #24
	add	x2, sp, #20
	bl	_nvif_unvers
	cbnz	w0, LBB0_6
	b	LBB0_3
LBB0_2:
	ldr	d0, [x25]
	str	d0, [sp, #8]
LBB0_3:
	mov	x0, x23
	bl	_nvkm_memory_page
	mov	x25, x0
	mov	x0, x23
	bl	_nvkm_memory_size
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	mov	x3, x21
	bl	_nvkm_vmm_get
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x3, [x21]
	add	x4, sp, #8
	mov	x0, x23
	mov	w1, #0
	mov	x2, x24
	mov	w5, #8
	bl	_nvkm_memory_map
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	mov	w1, #1
	blr	x8
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x21]
	ldr	x10, [x9, #8]
	add	x8, x10, x8
	str	x8, [x20]
	ldr	x8, [x9]
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
.subsections_via_symbols
