	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_uvmm_mthd_put
_nvkm_uvmm_mthd_put:                    ## @nvkm_uvmm_mthd_put
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, -64(%rbp)
	movl	%edx, -44(%rbp)
	movq	(%rdi), %r14
	movq	8(%rdi), %r15
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	subl	(%rax), %edi
	movq	(%rsi), %rcx
	movl	$0, (%rsp)
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_nvif_unpack
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r15
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_nvkm_vmm_node_search
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rcx
	movq	24(%rax), %r12
	cmpq	%r15, %rcx
	jne	LBB0_5
## %bb.4:
	testq	%r12, %r12
	jne	LBB0_5
## %bb.6:
	movslq	16(%rax), %rcx
	testq	%rcx, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_9
## %bb.7:
	cmpl	$0, (%rsi)
	je	LBB0_8
LBB0_9:
	movq	8(%rax), %r9
	testq	%r9, %r9
	je	LBB0_12
## %bb.10:
	xorl	%r8d, %r8d
	cmpl	$0, (%rsi)
	sete	%r8b
	jmp	LBB0_11
LBB0_2:
	movq	$-1, %rcx
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_VMM_DEBUG
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_nvkm_vmm_put_locked
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_8:
	movq	8(%rax), %r9
	movl	$1, %r8d
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_VMM_DEBUG
LBB0_13:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_14:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lookup %016llx: %016llx %d"

L_.str.1:                               ## @.str.1
	.asciz	"denied %016llx: %d %d %d"

	.no_dead_strip	_nvkm_uvmm_mthd_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_uvmm_mthd_put
_nvkm_uvmm_mthd_put:                    ; @nvkm_uvmm_mthd_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x1
	str	x1, [sp, #24]
	str	w2, [sp, #20]
	ldp	x19, x23, [x0]
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x3, [x1]
	add	x1, sp, #24
	add	x2, sp, #20
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_nvif_unpack
	mov	x20, x0
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	x21, [x22]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x1, [x22]
	mov	x0, x19
	bl	_nvkm_vmm_node_search
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	cbz	x0, LBB0_7
; %bb.2:
	mov	x1, x0
	ldr	x3, [x0]
	ldr	x4, [x0, #24]
	cmp	x3, x21
	ccmp	x4, #0, #0, eq
	b.ne	LBB0_8
; %bb.3:
	ldrsw	x3, [x1, #16]
	cbnz	w3, LBB0_5
; %bb.4:
	ldr	w8, [x23]
	cbz	w8, LBB0_10
LBB0_5:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	w9, [x23]
	cmp	w9, #0
	cset	w4, eq
	b	LBB0_11
LBB0_7:
	mov	w4, #0
	mov	x3, #-1
LBB0_8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
                                        ; kill: def $w4 killed $w4 killed $x4
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_nvkm_vmm_put_locked
	mov	w20, #0
	b	LBB0_13
LBB0_10:
	ldr	x8, [x1, #8]
	mov	w4, #1
LBB0_11:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	mov	x2, x21
LBB0_12:
	bl	_VMM_DEBUG
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lookup %016llx: %016llx %d"

l_.str.1:                               ; @.str.1
	.asciz	"denied %016llx: %d %d %d"

	.no_dead_strip	_nvkm_uvmm_mthd_put
.subsections_via_symbols
