	.file	"extr_io_trapped.c_lookup_address.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lookup_address, @function
lookup_address:
.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	eax, DWORD PTR [rdi]
	mov	rbx, QWORD PTR 16[rdi]
	test	eax, eax
	jle	.L2
	mov	r12, rdi
	mov	r13, rsi
	xor	ebp, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbp, 1
	cmp	DWORD PTR [r12], ebp
	jle	.L2
.L5:
	mov	rax, QWORD PTR 8[r12]
	mov	r15d, DWORD PTR PAGE_SIZE[rip]
	lea	r14, [rax+rbp*8]
	mov	rdi, r14
	call	resource_size@PLT
	mov	esi, r15d
	mov	edi, eax
	call	roundup@PLT
	mov	rdx, rbx
	add	rbx, rax
	cmp	rbx, r13
	jbe	.L3
	mov	rax, QWORD PTR [r14]
	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
	sub	rax, rdx
	pop	r12
	.cfi_def_cfa_offset 32
	add	rax, r13
	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
.L2:
	.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	lookup_address, .-lookup_address
	.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_io_trapped.c_lookup_address.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lookup_address, %function
lookup_address:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #0
	ldr	r4, [r0, #8]
	ble	.L2
	mov	r7, r0
	mov	r8, r1
	mov	r6, #0
	ldr	r9, .L9
	b	.L5
.L3:
	ldr	r3, [r7]
	cmp	r3, r6
	ble	.L2
.L5:
	ldr	r5, [r7, #4]
	add	r5, r5, r6, lsl #2
	mov	r0, r5
	bl	resource_size
	ldr	r1, [r9]
	bl	roundup
	mov	r3, r4
	add	r4, r4, r0
	cmp	r4, r8
	add	r6, r6, #1
	bls	.L3
	ldr	r0, [r5]
	sub	r3, r0, r3
	add	r0, r3, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	.align	2
.L9:
	.word	PAGE_SIZE
	.size	lookup_address, .-lookup_address
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
