	.file	"extr_ehea_qmr.c_ehea_reg_mr_section.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"register_rpage_mr failed\n"
	.text
	.p2align 4
	.type	ehea_reg_mr_section, @function
ehea_reg_mr_section:
.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
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	mov	rdi, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], r8
	mov	QWORD PTR 16[rsp], r9
	call	__pa@PLT
	mov	edx, r13d
	mov	esi, r12d
	mov	edi, ebp
	mov	r15, rax
	call	ehea_calc_sectbase@PLT
	mov	r9, QWORD PTR EHEA_MAX_RPAGE[rip]
	xor	r8d, r8d
	cmp	r9, QWORD PTR EHEA_PAGES_PER_SECTION[rip]
	ja	.L1
	mov	rbp, rax
	xor	r13d, r13d
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r14d, r14d
	test	r9, r9
	je	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r13
	imul	rdi, QWORD PTR EHEA_PAGESIZE[rip]
	add	r13, 1
	add	rdi, rbp
	call	__pa@PLT
	mov	QWORD PTR [rbx+r14*8], rax
	mov	r9, QWORD PTR EHEA_MAX_RPAGE[rip]
	add	r14, 1
	cmp	r9, r14
	ja	.L4
.L6:
	mov	rax, QWORD PTR 16[rsp]
	mov	r8, r15
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rax]
	call	ehea_h_register_rpage_mr@PLT
	cmp	QWORD PTR H_SUCCESS[rip], rax
	mov	r8, rax
	je	.L5
	cmp	QWORD PTR H_PAGE_REGISTERED[rip], rax
	jne	.L15
.L5:
	mov	r9, QWORD PTR EHEA_MAX_RPAGE[rip]
	mov	rax, QWORD PTR EHEA_PAGES_PER_SECTION[rip]
	xor	edx, edx
	add	r12, 1
	div	r9
	cmp	rax, r12
	ja	.L2
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r8
	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
.L15:
	.cfi_restore_state
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR FORCE_FREE[rip]
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rax]
	call	ehea_h_free_resource@PLT
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	r8, QWORD PTR 24[rsp]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ehea_reg_mr_section, .-ehea_reg_mr_section
	.comm	H_SUCCESS,8,8
	.comm	H_PAGE_REGISTERED,8,8
	.comm	FORCE_FREE,4,4
	.comm	EHEA_PAGES_PER_SECTION,8,8
	.comm	EHEA_PAGESIZE,8,8
	.comm	EHEA_MAX_RPAGE,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_ehea_qmr.c_ehea_reg_mr_section.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"register_rpage_mr failed\012\000"
	.global	__aeabi_uidiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ehea_reg_mr_section, %function
ehea_reg_mr_section:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #20
	mov	r0, r3
	mov	r5, r1
	mov	r6, r2
	str	r3, [sp, #12]
	bl	__pa
	mov	r3, r0
	mov	r1, r5
	mov	r2, r6
	mov	r0, r4
	str	r3, [sp, #8]
	ldr	r5, .L13
	bl	ehea_calc_sectbase
	ldr	r3, .L13+4
	ldr	fp, [r5]
	ldr	r3, [r3]
	cmp	fp, r3
	movhi	r9, #0
	bhi	.L1
	mov	r4, #0
	mov	r6, r0
	mov	r8, r4
	mov	r9, fp
	ldr	r7, .L13+8
.L2:
	cmp	r9, #0
	beq	.L7
	mov	r10, #0
	ldr	r3, [sp, #12]
	sub	fp, r3, #4
.L4:
	ldr	r0, [r7]
	add	r10, r10, #1
	mla	r0, r4, r0, r6
	bl	__pa
	str	r0, [fp, #4]!
	ldr	r9, [r5]
	add	r4, r4, #1
	cmp	r9, r10
	bhi	.L4
.L7:
	mov	r3, #0
	ldr	r2, [sp, #8]
	ldr	r1, [sp, #60]
	ldr	r0, [sp, #56]
	str	r2, [sp]
	str	r9, [sp, #4]
	mov	r2, r3
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	ehea_h_register_rpage_mr
	ldr	r3, .L13+12
	mov	fp, r0
	ldr	r2, [r3]
	cmp	r2, r0
	beq	.L5
	ldr	r3, .L13+16
	ldr	r2, [r3]
	cmp	r2, r0
	bne	.L12
.L5:
	ldr	r3, .L13+4
	ldr	r9, [r5]
	ldr	r0, [r3]
	mov	r1, r9
	bl	__aeabi_uidiv
	add	r8, r8, #1
	cmp	r0, r8
	bhi	.L2
	mov	r9, fp
.L1:
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r9, r0
	ldr	r3, [sp, #60]
	ldr	r2, .L13+20
	ldr	r1, [r3]
	ldr	r3, [sp, #56]
	ldr	r2, [r2]
	ldr	r0, [r3]
	bl	ehea_h_free_resource
	ldr	r0, .L13+24
	bl	pr_err
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	EHEA_MAX_RPAGE
	.word	EHEA_PAGES_PER_SECTION
	.word	EHEA_PAGESIZE
	.word	H_SUCCESS
	.word	H_PAGE_REGISTERED
	.word	FORCE_FREE
	.word	.LC0
	.size	ehea_reg_mr_section, .-ehea_reg_mr_section
	.comm	H_SUCCESS,4,4
	.comm	H_PAGE_REGISTERED,4,4
	.comm	FORCE_FREE,4,4
	.comm	EHEA_PAGES_PER_SECTION,4,4
	.comm	EHEA_PAGESIZE,4,4
	.comm	EHEA_MAX_RPAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
