	.file	"extr_pmap.c_pmap_find_io_attr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmap_find_io_attr, @function
pmap_find_io_attr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	mov	DWORD PTR 4[rsp], edi
	xor	edi, edi
	mov	r12, rsp
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR num_io_rgns[rip]
	test	eax, eax
	lea	r14d, -1[rax]
	setg	dil
	xor	r13d, r13d
	call	assert@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	lea	ebx, 0[r13+r14]
	mov	rsi, QWORD PTR io_attr_table[rip]
	mov	rdi, r12
	shr	ebx
	mov	ebp, ebx
	sal	rbp, 2
	add	rsi, rbp
	call	cmp_io_rgns@PLT
	test	eax, eax
	je	.L11
	cmp	r13d, r14d
	je	.L5
	test	eax, eax
	jle	.L8
	lea	r13d, 1[rbx]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r14d, ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR io_attr_table[rip]
	mov	eax, DWORD PTR [rax+rbp]
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR VM_WIMG_IO[rip]
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pmap_find_io_attr, .-pmap_find_io_attr
	.comm	num_io_rgns,4,4
	.comm	io_attr_table,8,8
	.comm	VM_WIMG_IO,4,4
	.comm	PAGE_SIZE,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_pmap.c_pmap_find_io_attr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_find_io_attr, %function
pmap_find_io_attr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, r0
	push	{r4, r5, r6, r7, lr}
	ldr	r1, .L13
	ldr	r3, .L13+4
	ldr	r5, [r1]
	sub	sp, sp, #20
	cmp	r5, #0
	str	r2, [sp, #8]
	ldr	r3, [r3]
	ldr	r2, .L13+8
	movle	r0, #0
	movgt	r0, #1
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r6, #0
	str	r3, [sp, #4]
	bl	assert
	ldr	r7, .L13+12
	sub	r5, r5, #1
.L2:
	ldr	r1, [r7]
	add	r4, r6, r5
	lsr	r4, r4, #1
	add	r1, r1, r4, lsl #2
	add	r0, sp, #4
	bl	cmp_io_rgns
	cmp	r0, #0
	lsl	r3, r4, #2
	beq	.L11
	cmp	r6, r5
	beq	.L5
	cmp	r0, #0
	addgt	r6, r4, #1
	movle	r5, r4
	b	.L2
.L11:
	ldr	r2, [r7]
	ldr	r0, [r2, r3]
.L1:
	ldr	r3, .L13+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	num_io_rgns
	.word	PAGE_SIZE
	.word	.LC0
	.word	io_attr_table
	.word	VM_WIMG_IO
	.size	pmap_find_io_attr, .-pmap_find_io_attr
	.comm	num_io_rgns,4,4
	.comm	io_attr_table,4,4
	.comm	VM_WIMG_IO,4,4
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
