	.file	"extr_mrml_bridge.c_mrmlb_ofw_bus_alloc_res.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not map resource %#lx-%#lx\n"
	.text
	.p2align 4
	.type	mrmlb_ofw_bus_alloc_res, @function
mrmlb_ofw_bus_alloc_res:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	mov	rsi, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	mov	rdi, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR 88[rsp]
	mov	rbx, QWORD PTR 80[rsp]
	mov	QWORD PTR [rsp], r9
	mov	DWORD PTR 12[rsp], eax
	call	RMAN_IS_DEFAULT_RANGE@PLT
	mov	r9, QWORD PTR [rsp]
	test	rax, rax
	je	.L2
	mov	edi, r13d
	call	device_get_ivars@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L1
	cmp	DWORD PTR SYS_RES_IOPORT[rip], r12d
	jne	.L5
	mov	r12d, DWORD PTR SYS_RES_MEMORY[rip]
.L5:
	mov	edx, DWORD PTR [r14]
	mov	esi, r12d
	call	resource_list_find@PLT
	test	rax, rax
	je	.L1
	mov	r15, QWORD PTR [rax]
	mov	r9, QWORD PTR 8[rax]
	mov	rbx, QWORD PTR 16[rax]
.L2:
	mov	edi, ebp
	mov	QWORD PTR [rsp], r9
	call	device_get_softc@PLT
	cmp	DWORD PTR SYS_RES_MEMORY[rip], r12d
	mov	r9, QWORD PTR [rsp]
	jne	.L7
	mov	r10d, DWORD PTR [rax]
	test	r10d, r10d
	jle	.L7
	mov	rax, QWORD PTR 8[rax]
	xor	esi, esi
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR [rax]
	cmp	rdi, r15
	jg	.L8
	mov	rdx, QWORD PTR 8[rax]
	add	rdx, rdi
	cmp	rdx, r9
	jg	.L20
.L8:
	add	esi, 1
	add	rax, 24
	cmp	r10d, esi
	jne	.L10
.L9:
	mov	rcx, r9
	mov	rdx, r15
	lea	rsi, .LC0[rip]
	mov	edi, ebp
	call	device_printf@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rax]
	mov	r8, r15
	sub	r9, rdi
	sub	r8, rdi
	lea	r15, [rax+r8]
	add	r9, rax
	cmp	r10d, esi
	je	.L9
.L7:
	mov	eax, DWORD PTR 12[rsp]
	mov	QWORD PTR 80[rsp], rbx
	mov	r8, r15
	mov	rcx, r14
	mov	edx, r12d
	mov	esi, r13d
	mov	edi, ebp
	mov	DWORD PTR 88[rsp], eax
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	jmp	bus_generic_alloc_resource@PLT
	.cfi_endproc
.LFE0:
	.size	mrmlb_ofw_bus_alloc_res, .-mrmlb_ofw_bus_alloc_res
	.comm	SYS_RES_MEMORY,4,4
	.comm	SYS_RES_IOPORT,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_mrml_bridge.c_mrmlb_ofw_bus_alloc_res.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not map resource %#lx-%#lx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrmlb_ofw_bus_alloc_res, %function
mrmlb_ofw_bus_alloc_res:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #4
	ldr	r10, [sp, #40]
	ldr	fp, [sp, #44]
	mov	r5, r0
	mov	r6, r1
	mov	r0, r10
	mov	r1, fp
	mov	r4, r2
	mov	r7, r3
	ldr	r8, [sp, #48]
	ldr	r9, [sp, #52]
	bl	RMAN_IS_DEFAULT_RANGE
	cmp	r0, #0
	beq	.L2
	mov	r0, r6
	bl	device_get_ivars
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L21
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r3, r4
	ldreq	r3, .L21+4
	ldreq	r4, [r3]
	mov	r1, r4
	bl	resource_list_find
	cmp	r0, #0
	beq	.L1
	ldm	r0, {r10, fp}
	ldr	r8, [r0, #8]
.L2:
	mov	r0, r5
	bl	device_get_softc
	ldr	r3, .L21+4
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L7
	ldr	r1, [r0]
	cmp	r1, #0
	ble	.L7
	mov	lr, #0
	ldr	ip, [r0, #4]
.L10:
	ldr	r2, [ip]
	cmp	r2, r10
	bgt	.L8
	ldr	r3, [ip, #4]
	add	r3, r2, r3
	cmp	r3, fp
	bgt	.L20
.L8:
	add	lr, lr, #1
	cmp	r1, lr
	add	ip, ip, #12
	bne	.L10
.L9:
	mov	r3, fp
	mov	r2, r10
	mov	r0, r5
	ldr	r1, .L21+8
	bl	device_printf
.L1:
	mov	r0, #0
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r3, [ip, #8]
	sub	r10, r10, r2
	cmp	r1, lr
	sub	r2, fp, r2
	add	r10, r3, r10
	add	fp, r3, r2
	beq	.L9
.L7:
	mov	r3, r7
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	str	r9, [sp, #52]
	str	r8, [sp, #48]
	str	fp, [sp, #44]
	str	r10, [sp, #40]
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	bus_generic_alloc_resource
.L22:
	.align	2
.L21:
	.word	SYS_RES_IOPORT
	.word	SYS_RES_MEMORY
	.word	.LC0
	.size	mrmlb_ofw_bus_alloc_res, .-mrmlb_ofw_bus_alloc_res
	.comm	SYS_RES_MEMORY,4,4
	.comm	SYS_RES_IOPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
