	.file	"extr_io-workarounds.c_iowa_mem_find_bus.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	iowa_mem_find_bus
	.type	iowa_mem_find_bus, @function
iowa_mem_find_bus:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	call	PCI_GET_ADDR_TOKEN@PLT
	test	eax, eax
	je	.L2
	cmp	DWORD PTR iowa_bus_count[rip], eax
	jge	.L14
.L2:
	mov	edi, ebp
	call	PCI_FIX_ADDR@PLT
	cmp	QWORD PTR PHB_IO_BASE[rip], rax
	mov	rbp, rax
	ja	.L6
	cmp	QWORD PTR PHB_IO_END[rip], rax
	jbe	.L6
	mov	edi, DWORD PTR init_mm[rip]
	mov	rsi, rax
	call	find_linux_pte@PLT
	xor	esi, esi
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR [rax]
	call	pte_pfn@PLT
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	sal	rax, cl
	mov	rsi, rax
.L4:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	iowa_pci_find@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdx, QWORD PTR iowa_busses[rip]
	cdqe
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	lea	rax, -4[rdx+rax*4]
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	iowa_mem_find_bus, .-iowa_mem_find_bus
	.comm	iowa_busses,8,8
	.comm	iowa_bus_count,4,4
	.comm	init_mm,4,4
	.comm	PHB_IO_END,8,8
	.comm	PHB_IO_BASE,8,8
	.comm	PAGE_SHIFT,8,8
	.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-workarounds.c_iowa_mem_find_bus.c"
	.text
	.align	2
	.global	iowa_mem_find_bus
	.syntax unified
	.arm
	.fpu softvfp
	.type	iowa_mem_find_bus, %function
iowa_mem_find_bus:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	PCI_GET_ADDR_TOKEN
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, r0
	bge	.L13
.L2:
	mov	r0, r4
	bl	PCI_FIX_ADDR
	ldr	r3, .L14+4
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bhi	.L6
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r3, r0
	bls	.L6
	ldr	r3, .L14+12
	mov	r1, r0
	ldr	r0, [r3]
	bl	find_linux_pte
	subs	r1, r0, #0
	beq	.L4
	ldr	r0, [r1]
	bl	pte_pfn
	ldr	r3, .L14+16
	ldr	r1, [r3]
	lsl	r1, r0, r1
.L4:
	mov	r0, r4
	pop	{r4, lr}
	b	iowa_pci_find
.L13:
	ldr	r3, .L14+20
	sub	r0, r0, #-1073741823
	ldr	r3, [r3]
	add	r0, r3, r0, lsl #2
	pop	{r4, pc}
.L6:
	mov	r0, #0
	pop	{r4, pc}
.L15:
	.align	2
.L14:
	.word	iowa_bus_count
	.word	PHB_IO_BASE
	.word	PHB_IO_END
	.word	init_mm
	.word	PAGE_SHIFT
	.word	iowa_busses
	.size	iowa_mem_find_bus, .-iowa_mem_find_bus
	.comm	iowa_busses,4,4
	.comm	iowa_bus_count,4,4
	.comm	init_mm,4,4
	.comm	PHB_IO_END,4,4
	.comm	PHB_IO_BASE,4,4
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
