	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_vm_put                 ## -- Begin function nouveau_vm_put
	.p2align	4, 0x90
_nouveau_vm_put:                        ## @nouveau_vm_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	8(%r14), %r13
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rax
	movb	(%r13), %cl
	movl	(%rax), %edx
	movl	4(%rax), %eax
	movl	%edx, %r15d
	sarl	%cl, %r15d
	leal	(%rdx,%rax), %r12d
	decl	%r12d
	sarl	%cl, %r12d
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	xorl	%esi, %esi
	cmpq	8(%r13), %rax
	setne	%sil
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_nouveau_vm_unmap_pgt
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nouveau_mm_free
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_vm_put                 ; -- Begin function nouveau_vm_put
	.p2align	2
_nouveau_vm_put:                        ; @nouveau_vm_put
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldp	x8, x19, [x0]
	ldr	x23, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x20]
	ldr	w9, [x23]
	ldp	w10, w8, [x8]
	asr	w21, w10, w9
	add	w8, w10, w8
	sub	w8, w8, #1
	asr	w22, w8, w9
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	cset	w1, ne
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_nouveau_vm_unmap_pgt
	mov	x0, x19
	mov	x1, x20
	bl	_nouveau_mm_free
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
