	.file	"extr_ioat.c_ioat_map_pci_bar.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unable to allocate pci resource\n"
	.text
	.p2align 4
	.type	ioat_map_pci_bar, @function
ioat_map_pci_bar:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	xor	edi, edi
	call	PCIR_BAR@PLT
	mov	edi, DWORD PTR 20[rbx]
	mov	ecx, DWORD PTR RF_ACTIVE[rip]
	lea	rdx, 16[rbx]
	mov	DWORD PTR 16[rbx], eax
	mov	esi, DWORD PTR SYS_RES_MEMORY[rip]
	call	bus_alloc_resource_any@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdi, rax
	test	rax, rax
	je	.L6
	call	rman_get_bustag@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	DWORD PTR 12[rbx], eax
	call	rman_get_bushandle@PLT
	mov	DWORD PTR 8[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	call	ioat_log_message@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ioat_map_pci_bar, .-ioat_map_pci_bar
	.comm	SYS_RES_MEMORY,4,4
	.comm	RF_ACTIVE,4,4
	.comm	ENODEV,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_ioat.c_ioat_map_pci_bar.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to allocate pci resource\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ioat_map_pci_bar, %function
ioat_map_pci_bar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	mov	r0, #0
	bl	PCIR_BAR
	mov	r2, r4
	ldr	r3, .L7
	ldr	r1, .L7+4
	ldr	r3, [r3]
	str	r0, [r2, #12]!
	ldr	r1, [r1]
	ldr	r0, [r4, #16]
	bl	bus_alloc_resource_any
	subs	r3, r0, #0
	str	r0, [r4]
	beq	.L6
	bl	rman_get_bustag
	mov	r3, r0
	ldr	r0, [r4]
	str	r3, [r4, #8]
	bl	rman_get_bushandle
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4, #4]
	pop	{r4, pc}
.L6:
	ldr	r1, .L7+8
	bl	ioat_log_message
	ldr	r3, .L7+12
	ldr	r0, [r3]
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	RF_ACTIVE
	.word	SYS_RES_MEMORY
	.word	.LC0
	.word	ENODEV
	.size	ioat_map_pci_bar, .-ioat_map_pci_bar
	.comm	SYS_RES_MEMORY,4,4
	.comm	RF_ACTIVE,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
