	.file	"extr_pci-mvebu.c_mvebu_pcie_add_windows.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not create MBus window at [mem %pa-%pa]: %d\n"
	.text
	.p2align 4
	.type	mvebu_pcie_add_windows, @function
mvebu_pcie_add_windows:
.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, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR [rsp], rdi
	mov	QWORD PTR 8[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	r8, r8
	je	.L1
	mov	ebp, esi
	mov	r13d, edx
	mov	r15, r8
	mov	r14, r9
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	add	QWORD PTR 8[rsp], rbx
	sub	r15, rbx
	add	r12, rbx
	cmp	QWORD PTR MVEBU_MBUS_NO_REMAP[rip], r14
	je	.L5
	add	r14, rbx
.L5:
	test	r15, r15
	je	.L1
.L6:
	mov	rdi, r15
	mov	ebx, 1
	call	fls@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	r8, r14
	mov	esi, r13d
	lea	ecx, -1[rax]
	mov	edi, ebp
	sal	ebx, cl
	movsx	rbx, ebx
	mov	rcx, rbx
	call	mvebu_mbus_add_window_remap_by_id@PLT
	test	eax, eax
	je	.L3
	mov	rdx, QWORD PTR 8[rsp]
	lea	rsi, .LC0[rip]
	lea	rcx, 16[rsp]
	mov	r8d, eax
	lea	rdx, -1[rbx+rdx]
	mov	rbx, QWORD PTR [rsp]
	mov	QWORD PTR 16[rsp], rdx
	lea	rdx, 8[rsp]
	mov	rdi, QWORD PTR [rbx]
	mov	rdi, QWORD PTR [rdi]
	call	dev_err@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdx, r12
	mov	rdi, rbx
	sub	rsi, r12
	call	mvebu_pcie_del_windows@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.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
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mvebu_pcie_add_windows, .-mvebu_pcie_add_windows
	.comm	MVEBU_MBUS_NO_REMAP,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_pci-mvebu.c_mvebu_pcie_add_windows.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not create MBus window at [mem %pa-%pa]: %d\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mvebu_pcie_add_windows, %function
mvebu_pcie_add_windows:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	ldr	r4, [sp, #64]
	str	r3, [sp, #12]
	ldr	r3, .L15
	str	r0, [sp, #8]
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r5, [sp, #68]
	beq	.L1
	mov	r7, r1
	mov	r8, r2
	mov	r6, #0
	mov	r9, #1
	ldr	r10, .L15+4
	b	.L6
.L3:
	ldr	r2, [r10]
	ldr	r3, [sp, #12]
	cmp	r2, r5
	sub	r4, r4, fp
	add	r3, r3, fp
	addne	r5, r5, fp
	cmp	r4, #0
	add	r6, r6, fp
	str	r3, [sp, #12]
	beq	.L1
.L6:
	mov	r0, r4
	bl	fls
	sub	fp, r0, #1
	lsl	fp, r9, fp
	mov	r3, fp
	mov	r1, r8
	mov	r0, r7
	ldr	r2, [sp, #12]
	str	r5, [sp]
	bl	mvebu_mbus_add_window_remap_by_id
	cmp	r0, #0
	beq	.L3
	mov	r2, r0
	ldr	r4, [sp, #8]
	ldr	ip, [sp, #12]
	ldr	r1, [r4]
	sub	ip, ip, #1
	ldr	r0, [r1]
	add	ip, ip, fp
	ldr	r1, .L15+8
	str	r2, [sp]
	add	r3, sp, #16
	add	r2, sp, #12
	str	ip, [sp, #16]
	bl	dev_err
	ldr	r1, [sp, #12]
	mov	r0, r4
	mov	r2, r6
	sub	r1, r1, r6
	bl	mvebu_pcie_del_windows
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	MVEBU_MBUS_NO_REMAP
	.word	.LC0
	.size	mvebu_pcie_add_windows, .-mvebu_pcie_add_windows
	.comm	MVEBU_MBUS_NO_REMAP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
