	.file	"extr_lpfc_mbox.c_lpfc_sli4_mbox_cmd_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lpfc_sli4_mbox_cmd_free
	.type	lpfc_sli4_mbox_cmd_free, @function
lpfc_sli4_mbox_cmd_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 8[rsi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	mov	rsi, r13
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR lpfc_mbox_hdr_emb[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	bf_get@PLT
	test	rax, rax
	jne	.L13
	mov	edi, DWORD PTR lpfc_mbox_hdr_sge_cnt[rip]
	mov	rsi, r13
	mov	rbx, rax
	call	bf_get@PLT
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	sete	dil
	mov	r13, rax
	call	unlikely@PLT
	test	rax, rax
	jne	.L13
	mov	r14, rsp
	test	r13, r13
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	call	lpfc_sli4_mbx_sge_get@PLT
	mov	esi, DWORD PTR [rsp]
	mov	edi, DWORD PTR 4[rsp]
	call	getPaddr@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	esi, DWORD PTR SLI4_PAGE_SIZE[rip]
	mov	ecx, eax
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	dma_free_coherent@PLT
	cmp	r13, rbx
	jne	.L5
.L6:
	mov	rdi, QWORD PTR 0[rbp]
	call	kfree@PLT
.L13:
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	call	mempool_free@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lpfc_sli4_mbox_cmd_free, .-lpfc_sli4_mbox_cmd_free
	.comm	lpfc_mbox_hdr_sge_cnt,4,4
	.comm	lpfc_mbox_hdr_emb,4,4
	.comm	SLI4_PAGE_SIZE,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_lpfc_mbox.c_lpfc_sli4_mbox_cmd_free.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lpfc_sli4_mbox_cmd_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_sli4_mbox_cmd_free, %function
lpfc_sli4_mbox_cmd_free:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L15
	mov	r6, r0
	add	r7, r1, #4
	ldr	r0, [r3]
	ldr	r3, .L15+4
	sub	sp, sp, #16
	mov	r5, r1
	mov	r1, r7
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	bf_get
	subs	r4, r0, #0
	bne	.L12
	ldr	r3, .L15+8
	mov	r1, r7
	ldr	r0, [r3]
	bl	bf_get
	ldr	r3, [r5]
	mov	r7, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L12
	cmp	r7, #0
	beq	.L6
	ldr	r8, .L15+12
.L5:
	mov	r1, r4
	add	r2, sp, #4
	mov	r0, r5
	bl	lpfc_sli4_mbx_sge_get
	ldr	r1, [sp, #4]
	ldr	r0, [sp, #8]
	bl	getPaddr
	ldr	r2, [r5]
	mov	r3, r0
	ldr	r2, [r2]
	ldr	r1, [r8]
	ldr	r2, [r2, r4, lsl #2]
	ldr	r0, [r6, #4]
	add	r4, r4, #1
	bl	dma_free_coherent
	cmp	r7, r4
	bne	.L5
.L6:
	ldr	r0, [r5]
	bl	kfree
.L12:
	mov	r0, r5
	ldr	r1, [r6]
	bl	mempool_free
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	lpfc_mbox_hdr_emb
	.word	.LC0
	.word	lpfc_mbox_hdr_sge_cnt
	.word	SLI4_PAGE_SIZE
	.size	lpfc_sli4_mbox_cmd_free, .-lpfc_sli4_mbox_cmd_free
	.comm	lpfc_mbox_hdr_sge_cnt,4,4
	.comm	lpfc_mbox_hdr_emb,4,4
	.comm	SLI4_PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
