	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvif_object_map                ## -- Begin function nvif_object_map
	.p2align	4, 0x90
_nvif_object_map:                       ## @nvif_object_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	leaq	-40(%rbp), %rcx
	leaq	-32(%rbp), %r8
	callq	_nvif_object_map_handle
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	je	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	movq	-40(%rbp), %rsi
	movq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	*(%rax)
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	-32(%rbp), %rax
	movq	%rax, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_nvif_object_unmap_handle
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvif_object_map                ; -- Begin function nvif_object_map
	.p2align	2
_nvif_object_map:                       ; @nvif_object_map
	.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	x19, x0
	ldr	x21, [x0, #16]
	add	x3, sp, #8
	mov	x4, sp
	bl	_nvif_object_map_handle
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldp	x2, x1, [sp]
	mov	x0, x21
	blr	x8
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.3:
	mov	w20, #0
	ldr	x8, [sp]
	str	x8, [x19, #8]
	b	LBB0_6
LBB0_4:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_nvif_object_unmap_handle
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
