	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvif_mem_init_map              ## -- Begin function nvif_mem_init_map
	.p2align	4, 0x90
_nvif_mem_init_map:                     ## @nvif_mem_init_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %rbx
	movl	%edx, %r8d
	movl	%esi, %edx
	movl	(%rdi), %esi
	movq	_NVIF_MEM_MAPPABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	$0
	callq	_nvif_mem_init
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_nvif_object_map
	movl	%eax, %r14d
	movl	$0, %eax
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_nvif_mem_fini
	movl	%r14d, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVIF_MEM_MAPPABLE,4,2          ## @NVIF_MEM_MAPPABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvif_mem_init_map              ; -- Begin function nvif_mem_init_map
	.p2align	2
_nvif_mem_init_map:                     ; @nvif_mem_init_map
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x4, x2
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NVIF_MEM_MAPPABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVIF_MEM_MAPPABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w2, w9, w1
	mov	x1, x8
	mov	w3, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, x19
	bl	_nvif_mem_init
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_nvif_object_map
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_nvif_mem_fini
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVIF_MEM_MAPPABLE,4,2          ; @NVIF_MEM_MAPPABLE
.subsections_via_symbols
