	.file	"extr_ehca_mrmw.c_ehca_reg_mr_dir_sections.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ehca_reg_mr_dir_sections, @function
ehca_reg_mr_dir_sections:
.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, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR EHCA_MAP_ENTRIES[rip]
	mov	r12, QWORD PTR H_SUCCESS[rip]
	mov	QWORD PTR [rsp], rsi
	mov	QWORD PTR 8[rsp], rdx
	test	eax, eax
	jle	.L1
	movsx	rbx, edi
	mov	ebp, edi
	mov	r14, rcx
	mov	r15, r8
	sal	rbx, 3
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR ehca_bmap[rip]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax+rbx]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax+r13*4]
	call	ehca_bmap_valid@PLT
	test	eax, eax
	je	.L3
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR [rsp]
	mov	r9, r15
	mov	r8, r14
	mov	esi, r13d
	mov	edi, ebp
	call	ehca_reg_mr_sections@PLT
	cmp	QWORD PTR H_SUCCESS[rip], rax
	mov	r12, rax
	je	.L3
	cmp	QWORD PTR H_PAGE_REGISTERED[rip], rax
	jne	.L1
.L3:
	add	r13, 1
	cmp	DWORD PTR EHCA_MAP_ENTRIES[rip], r13d
	jg	.L4
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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	ehca_reg_mr_dir_sections, .-ehca_reg_mr_dir_sections
	.comm	ehca_bmap,8,8
	.comm	H_SUCCESS,8,8
	.comm	H_PAGE_REGISTERED,8,8
	.comm	EHCA_MAP_ENTRIES,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_ehca_mrmw.c_ehca_reg_mr_dir_sections.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ehca_reg_mr_dir_sections, %function
ehca_reg_mr_dir_sections:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L12
	ldr	fp, .L12+4
	ldr	ip, [r5]
	sub	sp, sp, #20
	cmp	ip, #0
	ldr	r4, [fp]
	str	r1, [sp, #8]
	str	r3, [sp, #12]
	ble	.L1
	mov	r8, r0
	mov	r10, r2
	mov	r9, #0
	ldr	r7, .L12+8
	lsl	r6, r0, #2
.L4:
	ldr	r3, [r7]
	ldr	r3, [r3]
	ldr	r3, [r3, r6]
	ldr	r3, [r3]
	ldr	r0, [r3, r9, lsl #2]
	bl	ehca_bmap_valid
	cmp	r0, #0
	beq	.L3
	ldr	r3, [sp, #56]
	mov	r1, r9
	str	r3, [sp, #4]
	ldr	r3, [sp, #12]
	mov	r0, r8
	str	r3, [sp]
	ldr	r2, [sp, #8]
	mov	r3, r10
	bl	ehca_reg_mr_sections
	ldr	r3, [fp]
	mov	r4, r0
	cmp	r3, r0
	beq	.L3
	ldr	r3, .L12+12
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
.L3:
	ldr	r3, [r5]
	add	r9, r9, #1
	cmp	r3, r9
	bgt	.L4
.L1:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	EHCA_MAP_ENTRIES
	.word	H_SUCCESS
	.word	ehca_bmap
	.word	H_PAGE_REGISTERED
	.size	ehca_reg_mr_dir_sections, .-ehca_reg_mr_dir_sections
	.comm	ehca_bmap,4,4
	.comm	H_SUCCESS,4,4
	.comm	H_PAGE_REGISTERED,4,4
	.comm	EHCA_MAP_ENTRIES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
