	.file	"extr_smartpqi_init.c_pqi_ofa_setup_host_buffer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to allocate host buffer of size = %u"
	.text
	.p2align 4
	.type	pqi_ofa_setup_host_buffer, @function
pqi_ofa_setup_host_buffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	lea	rdx, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 16[rdi]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, DWORD PTR PQI_OFA_MEMORY_DESCRIPTOR_LENGTH[rip]
	mov	rdi, r12
	call	dma_alloc_coherent@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR PQI_OFA_VERSION[rip]
	lea	rsi, 8[rax]
	mov	rbx, rax
	call	put_unaligned_le16@PLT
	mov	esi, DWORD PTR PQI_OFA_SIGNATURE[rip]
	lea	rdi, 4[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	edi, r13d
	call	cpu_to_le32@PLT
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	mov	QWORD PTR 0[rbp], rbx
	call	pqi_ofa_alloc_host_buffer@PLT
	test	rax, rax
	js	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	edx, r13d
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	pqi_ofa_setup_host_buffer, .-pqi_ofa_setup_host_buffer
	.comm	PQI_OFA_VERSION,4,4
	.comm	PQI_OFA_SIGNATURE,4,4
	.comm	PQI_OFA_MEMORY_DESCRIPTOR_LENGTH,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_smartpqi_init.c_pqi_ofa_setup_host_buffer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to allocate host buffer of size = %u\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pqi_ofa_setup_host_buffer, %function
pqi_ofa_setup_host_buffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r7, [r0, #8]
	mov	r6, r1
	ldr	r3, .L7
	ldr	r1, .L7+4
	mov	r0, r7
	ldr	r3, [r3]
	ldr	r1, [r1]
	add	r2, r5, #4
	bl	dma_alloc_coherent
	subs	r4, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L7+8
	add	r1, r4, #8
	ldr	r0, [r3]
	bl	put_unaligned_le16
	mov	r2, #4
	ldr	r3, .L7+12
	add	r0, r4, r2
	ldr	r1, [r3]
	bl	memcpy
	mov	r0, r6
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4]
	str	r4, [r5]
	bl	pqi_ofa_alloc_host_buffer
	cmp	r0, #0
	popge	{r4, r5, r6, r7, r8, pc}
	mov	r2, r6
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L7+16
	b	dev_err
.L8:
	.align	2
.L7:
	.word	GFP_KERNEL
	.word	PQI_OFA_MEMORY_DESCRIPTOR_LENGTH
	.word	PQI_OFA_VERSION
	.word	PQI_OFA_SIGNATURE
	.word	.LC0
	.size	pqi_ofa_setup_host_buffer, .-pqi_ofa_setup_host_buffer
	.comm	PQI_OFA_VERSION,4,4
	.comm	PQI_OFA_SIGNATURE,4,4
	.comm	PQI_OFA_MEMORY_DESCRIPTOR_LENGTH,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
