	.file	"extr_generic_64.c_io_remap_pud_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	io_remap_pud_range, @function
io_remap_pud_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	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	rbx, QWORD PTR PUD_MASK[rip]
	not	rbx
	and	rbx, rdx
	lea	rbp, [rbx+rcx]
	cmp	QWORD PTR PUD_SIZE[rip], rbp
	cmovbe	rbp, QWORD PTR PUD_SIZE[rip]
	sub	r8, rbx
	mov	r13, r8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	rcx, rbp
	mov	rdx, rbx
	mov	r9d, r14d
	mov	eax, DWORD PTR 72[rsp]
	sub	rcx, rbx
	lea	r8, [rbx+r13]
	mov	rdi, r12
	add	r15, 4
	push	rax
	.cfi_def_cfa_offset 80
	call	io_remap_pmd_range@PLT
	add	rbx, QWORD PTR PUD_SIZE[rip]
	pop	rax
	.cfi_def_cfa_offset 72
	and	rbx, QWORD PTR PUD_MASK[rip]
	pop	rdx
	.cfi_def_cfa_offset 64
	cmp	rbp, rbx
	jbe	.L8
.L4:
	mov	rsi, r15
	mov	rdx, rbx
	mov	rdi, r12
	call	pmd_alloc@PLT
	mov	rsi, rax
	test	r15, r15
	jne	.L2
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	io_remap_pud_range, .-io_remap_pud_range
	.comm	PUD_SIZE,8,8
	.comm	PUD_MASK,8,8
	.comm	ENOMEM,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_generic_64.c_io_remap_pud_range.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	io_remap_pud_range, %function
io_remap_pud_range:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, .L9
	ldr	r8, .L9+4
	ldr	lr, [r9]
	ldr	ip, [r8]
	sub	sp, sp, #20
	bic	r10, r2, lr
	add	r5, r10, r3
	ldr	r7, [sp, #56]
	cmp	r5, ip
	mov	r6, r0
	mov	r4, r1
	movcs	r5, ip
	ldr	fp, [sp, #60]
	sub	r7, r7, r10
	b	.L4
.L2:
	ldr	r2, [sp, #64]
	mov	r0, r6
	str	r2, [sp, #8]
	str	fp, [sp, #4]
	mov	r2, r10
	str	ip, [sp]
	bl	io_remap_pmd_range
	ldr	r3, [r8]
	ldr	r1, [r9]
	add	r2, r10, r3
	and	r10, r2, r1
	cmp	r5, r10
	add	r4, r4, #4
	bls	.L8
.L4:
	mov	r1, r4
	mov	r2, r10
	mov	r0, r6
	bl	pmd_alloc
	cmp	r4, #0
	mov	r1, r0
	add	ip, r10, r7
	sub	r3, r5, r10
	bne	.L2
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	.align	2
.L9:
	.word	PUD_MASK
	.word	PUD_SIZE
	.word	ENOMEM
	.size	io_remap_pud_range, .-io_remap_pud_range
	.comm	PUD_SIZE,4,4
	.comm	PUD_MASK,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
