	.file	"extr_nouveau_dmem.c_nouveau_dmem_convert_pfn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Some unknown device memory !\n"
	.text
	.p2align 4
	.globl	nouveau_dmem_convert_pfn
	.type	nouveau_dmem_convert_pfn, @function
nouveau_dmem_convert_pfn:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	r13, QWORD PTR [rsi]
	sub	r13, QWORD PTR 8[rsi]
	shr	r13, cl
	test	r13, r13
	je	.L1
	mov	r14, rdi
	mov	rbp, rsi
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r15
	call	nouveau_dmem_page_addr@PLT
	mov	rsi, QWORD PTR 32[rbp]
	mov	rdx, -1
	add	r12, QWORD PTR 16[rbp]
	mov	ecx, esi
	sal	rdx, cl
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	not	edx
	and	edx, DWORD PTR [r12]
	shr	rax, cl
	mov	ecx, esi
	sal	rax, cl
	or	edx, eax
	mov	DWORD PTR [r12], edx
.L3:
	add	rbx, 1
	cmp	r13, rbx
	je	.L1
.L5:
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, rbp
	lea	r12, 0[0+rbx*4]
	mov	esi, DWORD PTR [rax+rbx*4]
	call	hmm_device_entry_to_page@PLT
	mov	r15, rax
	test	rax, rax
	je	.L3
	mov	rdx, QWORD PTR 24[rbp]
	mov	rcx, QWORD PTR HMM_PFN_DEVICE_PRIVATE[rip]
	mov	rax, QWORD PTR 16[rbp]
	mov	edx, DWORD PTR [rdx+rcx*4]
	test	DWORD PTR [rax+rbx*4], edx
	je	.L3
	mov	rsi, r15
	mov	rdi, r14
	call	nouveau_dmem_page@PLT
	test	eax, eax
	jne	.L4
	lea	rsi, .LC0[rip]
	mov	edi, 1
	add	rbx, 1
	call	WARN@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	DWORD PTR [rax+r12], 0
	cmp	r13, rbx
	jne	.L5
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	nouveau_dmem_convert_pfn, .-nouveau_dmem_convert_pfn
	.comm	PAGE_SHIFT,8,8
	.comm	HMM_PFN_DEVICE_PRIVATE,8,8
	.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_nouveau_dmem.c_nouveau_dmem_convert_pfn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Some unknown device memory !\012\000"
	.text
	.align	2
	.global	nouveau_dmem_convert_pfn
	.syntax unified
	.arm
	.fpu softvfp
	.type	nouveau_dmem_convert_pfn, %function
nouveau_dmem_convert_pfn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, .L18
	ldr	r6, [r1]
	ldr	r2, [r1, #4]
	ldr	r3, [r9]
	sub	r6, r6, r2
	lsrs	r6, r6, r3
	sub	sp, sp, #12
	beq	.L1
	mov	r5, r1
	mov	r8, r0
	mov	r4, #0
	ldr	r7, .L18+4
	b	.L5
.L4:
	mov	r0, r10
	bl	nouveau_dmem_page_addr
	mvn	r2, #0
	ldr	r1, [r5, #8]
	ldr	ip, [r5, #16]
	ldr	lr, [r9]
	ldr	r3, [r1, fp]
	lsr	r0, r0, lr
	bic	r3, r3, r2, lsl ip
	orr	r3, r3, r0, lsl ip
	str	r3, [r1, fp]
.L3:
	add	r4, r4, #1
	cmp	r6, r4
	beq	.L1
.L5:
	ldr	r3, [r5, #8]
	mov	r0, r5
	ldr	r1, [r3, r4, lsl #2]
	bl	hmm_device_entry_to_page
	subs	r10, r0, #0
	lsl	fp, r4, #2
	beq	.L3
	ldr	ip, [r7]
	ldr	r0, [r5, #12]
	ldr	r3, [r5, #8]
	ldr	r0, [r0, ip, lsl #2]
	ldr	r3, [r3, r4, lsl #2]
	tst	r0, r3
	beq	.L3
	mov	r1, r10
	mov	r0, r8
	bl	nouveau_dmem_page
	subs	r3, r0, #0
	bne	.L4
	ldr	r1, .L18+8
	mov	r0, #1
	str	r3, [sp, #4]
	add	r4, r4, #1
	bl	WARN
	ldr	r1, [r5, #8]
	ldr	r3, [sp, #4]
	cmp	r6, r4
	str	r3, [r1, fp]
	bne	.L5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	PAGE_SHIFT
	.word	HMM_PFN_DEVICE_PRIVATE
	.word	.LC0
	.size	nouveau_dmem_convert_pfn, .-nouveau_dmem_convert_pfn
	.comm	PAGE_SHIFT,4,4
	.comm	HMM_PFN_DEVICE_PRIVATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
