	.file	"extr_vmm.c_nvkm_vmm_pfn_unmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nvkm_vmm_pfn_unmap
	.type	nvkm_vmm_pfn_unmap, @function
nvkm_vmm_pfn_unmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	add	r13, r12
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	nvkm_vmm_node_search@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12, QWORD PTR 16[rax]
	cmp	r13, r12
	jle	.L5
.L2:
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L4
	cmp	QWORD PTR 32[rbp], 0
	jne	.L4
	mov	rsi, QWORD PTR 24[rbp]
	mov	rax, r12
	mov	rdi, r13
	sub	rax, QWORD PTR 16[rbp]
	sub	rdi, r12
	sub	rsi, rax
	call	min@PLT
	mov	rdx, QWORD PTR 8[rbp]
	xor	r8d, r8d
	mov	rdi, r14
	mov	r15, rax
	mov	rax, QWORD PTR [r14]
	mov	r9d, 1
	mov	rcx, r15
	mov	rax, QWORD PTR [rax]
	lea	rsi, [rax+rdx*4]
	mov	rdx, r12
	call	nvkm_vmm_ptes_unmap_put@PLT
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdi, r14
	mov	rcx, r15
	mov	rdx, r12
	mov	rsi, rbp
	call	nvkm_vmm_pfn_split_merge@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbx, rax
	sete	dil
	call	WARN_ON@PLT
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR NVKM_VMA_PAGE_NONE[rip]
	mov	DWORD PTR [rbx], 0
	mov	rbp, rbx
	mov	QWORD PTR 8[rbx], rax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	mov	rsi, rbx
	call	node@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L12
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nvkm_vmm_pfn_unmap, .-nvkm_vmm_pfn_unmap
	.comm	NVKM_VMA_PAGE_NONE,8,8
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vmm.c_nvkm_vmm_pfn_unmap.c"
	.text
	.align	2
	.global	nvkm_vmm_pfn_unmap
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvkm_vmm_pfn_unmap, %function
nvkm_vmm_pfn_unmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r7, r2
	mov	r5, r1
	mov	r8, r0
	bl	nvkm_vmm_node_search
	subs	r4, r0, #0
	add	r7, r5, r7
	beq	.L11
	mov	r9, #1
	ldr	r10, .L16
	b	.L2
.L15:
	ldr	r5, [r4, #8]
	cmp	r7, r5
	ble	.L14
.L2:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L4
	ldr	fp, [r4, #16]
	sub	r0, r7, r5
	cmp	fp, #0
	bne	.L4
	ldr	r3, [r4, #8]
	ldr	r1, [r4, #12]
	sub	r3, r5, r3
	sub	r1, r1, r3
	bl	min
	mov	r6, r0
	ldr	r3, [r8]
	ldr	r1, [r4, #4]
	ldr	r2, [r3]
	mov	r3, r0
	add	r1, r2, r1, lsl #2
	mov	r0, r8
	mov	r2, r5
	str	r9, [sp, #4]
	str	fp, [sp]
	bl	nvkm_vmm_ptes_unmap_put
	mov	r3, r6
	mov	r1, r4
	mov	r2, r5
	mov	r0, r8
	str	fp, [sp, #4]
	str	fp, [sp]
	bl	nvkm_vmm_pfn_split_merge
	mov	r6, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON
	cmp	r0, #0
	moveq	r4, r6
	ldreq	r3, [r10]
	stmeq	r6, {r0, r3}
.L4:
	mov	r0, r4
	mov	r1, r6
	bl	node
	subs	r4, r0, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, .L16+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	NVKM_VMA_PAGE_NONE
	.word	EINVAL
	.size	nvkm_vmm_pfn_unmap, .-nvkm_vmm_pfn_unmap
	.comm	NVKM_VMA_PAGE_NONE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
