	.file	"extr_csio_lnode.c_csio_ln_fdmi_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to alloc ioreq for FDMI\n"
	.align 8
.LC1:
	.string	"Failed to alloc DMA buffer for FDMI!\n"
	.text
	.p2align 4
	.type	csio_ln_fdmi_init, @function
csio_ln_fdmi_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	csio_lnode_to_hw@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	mov	r12, rax
	call	kzalloc@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L7
	mov	rdi, QWORD PTR [r12]
	lea	rdx, 8[rax]
	mov	esi, 2048
	mov	rbx, rax
	mov	DWORD PTR [rax], 2048
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	call	dma_alloc_coherent@PLT
	mov	DWORD PTR 4[rbx], eax
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR CSIO_LNF_FDMI_ENABLE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	or	DWORD PTR 0[rbp], eax
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	csio_ln_err@PLT
	mov	esi, DWORD PTR n_err_nomem[rip]
	mov	rdi, r12
	call	CSIO_INC_STATS@PLT
	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
.L8:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	call	csio_err@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	QWORD PTR 8[rbp], 0
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	csio_ln_fdmi_init, .-csio_ln_fdmi_init
	.comm	n_err_nomem,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	CSIO_LNF_FDMI_ENABLE,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_csio_lnode.c_csio_ln_fdmi_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to alloc ioreq for FDMI\012\000"
	.align	2
.LC1:
	.ascii	"Failed to alloc DMA buffer for FDMI!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	csio_ln_fdmi_init, %function
csio_ln_fdmi_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	csio_lnode_to_hw
	ldr	r6, .L9
	mov	r7, r0
	ldr	r1, [r6]
	mov	r0, #4
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L7
	mov	r2, r0
	mov	r1, #2048
	mov	r4, r0
	ldr	r3, [r6]
	ldr	r0, [r7]
	str	r1, [r2], #8
	bl	dma_alloc_coherent
	cmp	r0, #0
	mov	r6, r0
	str	r0, [r4, #4]
	beq	.L8
	ldr	r2, .L9+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	mov	r0, #0
	orr	r3, r3, r2
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r5
	ldr	r1, .L9+8
	bl	csio_ln_err
	ldr	r3, .L9+12
	mov	r0, r7
	ldr	r1, [r3]
	bl	CSIO_INC_STATS
	ldr	r3, .L9+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r1, .L9+20
	mov	r0, r7
	bl	csio_err
	ldr	r0, [r5, #4]
	bl	kfree
	ldr	r3, .L9+16
	str	r6, [r5, #4]
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	GFP_KERNEL
	.word	CSIO_LNF_FDMI_ENABLE
	.word	.LC0
	.word	n_err_nomem
	.word	ENOMEM
	.word	.LC1
	.size	csio_ln_fdmi_init, .-csio_ln_fdmi_init
	.comm	n_err_nomem,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	CSIO_LNF_FDMI_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
