	.file	"extr_pcie-oxnas.c_oxnas_pcie_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	oxnas_pcie_setup, @function
oxnas_pcie_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	lea	r12, 4[rbx]
	call	sys_to_pcie@PLT
	mov	edx, DWORD PTR 12[rbx]
	mov	rdi, r12
	lea	rsi, 28[rax]
	mov	rbp, rax
	call	pci_add_resource_offset@PLT
	mov	edx, DWORD PTR 12[rbx]
	lea	rsi, 24[rbp]
	mov	rdi, r12
	call	pci_add_resource_offset@PLT
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, 20[rbp]
	mov	rdi, r12
	call	pci_add_resource_offset@PLT
	lea	rsi, 16[rbp]
	mov	rdi, r12
	call	pci_add_resource@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR [rbx], eax
.L2:
	lea	rdi, 4[rbp]
	call	resource_size@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	mov	edx, eax
	call	devm_ioremap@PLT
	mov	DWORD PTR 0[rbp], eax
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	call	oxnas_pcie_setup_hw@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	oxnas_pcie_setup, .-oxnas_pcie_setup
	.comm	ENOMEM,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_pcie-oxnas.c_oxnas_pcie_setup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	oxnas_pcie_setup, %function
oxnas_pcie_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r1
	mov	r5, r1
	bl	sys_to_pcie
	mov	r4, r0
	add	r6, r5, #4
	ldr	r2, [r5, #12]
	mov	r0, r6
	add	r1, r4, #24
	bl	pci_add_resource_offset
	ldr	r2, [r5, #12]
	mov	r0, r6
	add	r1, r4, #20
	bl	pci_add_resource_offset
	ldr	r2, [r5, #8]
	mov	r0, r6
	add	r1, r4, #16
	bl	pci_add_resource_offset
	add	r1, r4, #12
	mov	r0, r6
	bl	pci_add_resource
	mov	r0, r4
	ldr	r3, [r5]
	ldr	r6, [r0, #4]!
	cmp	r3, #0
	ldreq	r3, [r4, #12]
	streq	r3, [r5]
	ldr	r5, [r4, #8]
	bl	resource_size
	mov	r1, r6
	mov	r2, r0
	mov	r0, r5
	bl	devm_ioremap
	cmp	r0, #0
	str	r0, [r4]
	bne	.L3
	ldr	r3, .L7
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, r4
	bl	oxnas_pcie_setup_hw
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	ENOMEM
	.size	oxnas_pcie_setup, .-oxnas_pcie_setup
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
