	.file	"extr_pci-epf-core.c_pci_epf_alloc_space.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to allocate mem space\n"
	.text
	.p2align 4
	.globl	pci_epf_alloc_space
	.type	pci_epf_alloc_space, @function
pci_epf_alloc_space:
.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
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	cmp	rsi, 128
	mov	edi, 128
	cmovnb	rdi, rsi
	mov	r14, QWORD PTR [rax]
	test	rcx, rcx
	je	.L2
	mov	rsi, rcx
	call	ALIGN@PLT
	mov	r13, rax
.L3:
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	lea	rdx, 4[rsp]
	mov	rsi, r13
	mov	rdi, r14
	call	dma_alloc_coherent@PLT
	mov	r15, rax
	test	rax, rax
	je	.L11
	mov	eax, r12d
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, r13
	lea	rbx, [rax+rax*2]
	mov	rax, QWORD PTR 0[rbp]
	sal	rbx, 3
	add	rax, rbx
	mov	DWORD PTR 16[rax], edx
	mov	QWORD PTR [rax], r13
	mov	DWORD PTR 8[rax], r12d
	call	upper_32_bits@PLT
	test	rax, rax
	mov	eax, DWORD PTR PCI_BASE_ADDRESS_MEM_TYPE_64[rip]
	cmove	eax, DWORD PTR PCI_BASE_ADDRESS_MEM_TYPE_32[rip]
	add	rbx, QWORD PTR 0[rbp]
	or	DWORD PTR 12[rbx], eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
.L2:
	.cfi_restore_state
	call	roundup_pow_of_two@PLT
	mov	r13, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	dev_err@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pci_epf_alloc_space, .-pci_epf_alloc_space
	.comm	PCI_BASE_ADDRESS_MEM_TYPE_64,4,4
	.comm	PCI_BASE_ADDRESS_MEM_TYPE_32,4,4
	.comm	GFP_KERNEL,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_pci-epf-core.c_pci_epf_alloc_space.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to allocate mem space\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pci_epf_alloc_space
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci_epf_alloc_space, %function
pci_epf_alloc_space:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r1, #128
	ldr	ip, [r0, #4]
	mov	r5, r0
	movcs	r0, r1
	movcc	r0, #128
	subs	r1, r3, #0
	ldr	r3, .L13
	sub	sp, sp, #8
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r8, [ip]
	beq	.L2
	bl	ALIGN
	mov	r6, r0
.L3:
	ldr	r3, .L13+4
	mov	r2, sp
	mov	r1, r6
	mov	r0, r8
	ldr	r3, [r3]
	bl	dma_alloc_coherent
	subs	r7, r0, #0
	beq	.L11
	ldr	r2, [r5]
	ldr	r1, [sp]
	add	r3, r2, r4, lsl #4
	str	r1, [r3, #12]
	mov	r0, r6
	str	r6, [r2, r4, lsl #4]
	str	r4, [r3, #4]
	bl	upper_32_bits
	ldr	r2, [r5]
	cmp	r0, #0
	ldrne	r3, .L13+8
	ldreq	r3, .L13+12
	lsl	r4, r4, #4
	add	r4, r2, r4
	ldr	r1, [r3]
	ldr	r3, [r4, #8]
	orr	r3, r3, r1
	str	r3, [r4, #8]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	roundup_pow_of_two
	mov	r6, r0
	b	.L3
.L11:
	mov	r0, r8
	ldr	r1, .L13+16
	bl	dev_err
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	GFP_KERNEL
	.word	PCI_BASE_ADDRESS_MEM_TYPE_64
	.word	PCI_BASE_ADDRESS_MEM_TYPE_32
	.word	.LC0
	.size	pci_epf_alloc_space, .-pci_epf_alloc_space
	.comm	PCI_BASE_ADDRESS_MEM_TYPE_64,4,4
	.comm	PCI_BASE_ADDRESS_MEM_TYPE_32,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
