	.file	"extr_lpfc_sli.c_lpfc_sli4_bpl2sgl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lpfc_sli4_bpl2sgl, @function
lpfc_sli4_bpl2sgl:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR NO_XRI[rip]
	test	rsi, rsi
	je	.L21
	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	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rdx, rdx
	je	.L1
	mov	rbx, QWORD PTR 8[rdx]
	mov	rcx, QWORD PTR CMD_XMIT_BLS_RSP64_CX[rip]
	mov	rbp, rsi
	cmp	QWORD PTR [rsi], rcx
	je	.L6
	mov	rdx, QWORD PTR 8[rsi]
	cmp	rdx, QWORD PTR BUFF_TYPE_BLP_64[rip]
	je	.L25
	cmp	rdx, QWORD PTR BUFF_TYPE_BDE_64[rip]
	je	.L26
.L6:
	mov	eax, DWORD PTR [r12]
.L1:
	add	rsp, 8
	.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
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rdx, QWORD PTR 32[rsi]
	test	rdx, rdx
	je	.L1
	mov	r13, QWORD PTR [rdx]
	test	r13, r13
	je	.L1
	movsx	rdx, DWORD PTR 16[rsi]
	xor	r14d, r14d
	movabs	rcx, -3689348814741910323
	mov	rax, rdx
	mul	rcx
	shr	rdx, 5
	mov	r15d, edx
	test	edx, edx
	jg	.L10
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR lpfc_sli4_sge_last[rip]
	xor	edx, edx
	mov	rsi, rbx
	call	bf_set@PLT
.L8:
	mov	edi, DWORD PTR 0[r13]
	call	le32_to_cpu@PLT
	xor	edi, edi
	call	cpu_to_le32@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR CMD_GEN_REQUEST64_CR[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L27
.L9:
	mov	edi, DWORD PTR [rbx]
	add	r13, 40
	add	rbx, 32
	call	cpu_to_le32@PLT
	mov	DWORD PTR -32[rbx], eax
	cmp	r14d, r15d
	je	.L6
.L10:
	mov	rax, QWORD PTR 32[r13]
	mov	edi, DWORD PTR [rbx]
	add	r14d, 1
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR 24[r13]
	mov	QWORD PTR 16[rbx], rax
	call	le32_to_cpu@PLT
	mov	DWORD PTR [rbx], eax
	cmp	r14d, r15d
	jne	.L7
	mov	edi, DWORD PTR lpfc_sli4_sge_last[rip]
	mov	edx, 1
	mov	rsi, rbx
	call	bf_set@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR 20[rsi]
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 24[rbp]
	mov	QWORD PTR 24[rbx], rax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR 16[rbx], rax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR lpfc_sli4_sge_last[rip]
	mov	edx, 1
	mov	rsi, rbx
	mov	DWORD PTR [rbx], eax
	call	bf_set@PLT
	mov	edi, DWORD PTR [rbx]
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	DWORD PTR [rbx], eax
	call	cpu_to_le32@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	edi, DWORD PTR lpfc_sli4_sge_offset[rip]
	xor	edx, edx
	mov	rsi, rbx
	call	bf_set@PLT
	mov	edx, DWORD PTR LPFC_SGE_TYPE_DATA[rip]
	mov	edi, DWORD PTR lpfc_sli4_sge_type[rip]
	mov	rsi, rbx
	call	bf_set@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	lpfc_sli4_bpl2sgl, .-lpfc_sli4_bpl2sgl
	.comm	lpfc_sli4_sge_type,4,4
	.comm	lpfc_sli4_sge_offset,4,4
	.comm	lpfc_sli4_sge_last,4,4
	.comm	NO_XRI,4,4
	.comm	LPFC_SGE_TYPE_DATA,4,4
	.comm	CMD_XMIT_BLS_RSP64_CX,8,8
	.comm	CMD_GEN_REQUEST64_CR,8,8
	.comm	BUFF_TYPE_BLP_64,8,8
	.comm	BUFF_TYPE_BDE_64I,8,8
	.comm	BUFF_TYPE_BDE_64,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_lpfc_sli.c_lpfc_sli4_bpl2sgl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_sli4_bpl2sgl, %function
lpfc_sli4_bpl2sgl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	clz	r4, r2
	cmp	r1, #0
	lsr	r4, r4, #5
	moveq	r4, #1
	ldr	r3, .L23
	cmp	r4, #0
	ldr	r0, [r3]
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r6, r2
	ldr	r3, .L23+4
	ldr	r2, [r1]
	ldr	r3, [r3]
	mov	r5, r1
	cmp	r2, r3
	ldr	fp, [r6, #4]
	beq	.L6
	ldr	r2, .L23+8
	ldr	r3, [r1, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L21
	ldr	r2, .L23+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L22
.L6:
	ldr	r0, [r6]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r3, [r1, #20]
	cmp	r3, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r7, [r3]
	cmp	r7, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r8, [r1, #8]
	ldr	r3, .L23+16
	cmp	r8, #19
	umull	r2, r8, r3, r8
	lsr	r8, r8, #4
	bls	.L6
	ldr	r10, .L23+20
	ldr	r9, .L23+24
	b	.L10
.L9:
	ldr	r0, [fp]
	bl	cpu_to_le32
	cmp	r4, r8
	add	r7, r7, #20
	str	r0, [fp], #16
	beq	.L6
.L10:
	ldr	r2, [r7, #16]
	ldr	r3, [r7, #12]
	ldr	r0, [fp]
	str	r2, [fp, #12]
	str	r3, [fp, #8]
	bl	le32_to_cpu
	add	r4, r4, #1
	cmp	r4, r8
	moveq	r2, #1
	movne	r2, #0
	mov	r1, fp
	str	r0, [fp]
	ldr	r0, [r10]
	bl	bf_set
	ldr	r0, [r7]
	bl	le32_to_cpu
	mov	r0, #0
	bl	cpu_to_le32
	ldr	r2, [r5]
	ldr	r3, [r9]
	str	r0, [fp, #4]
	cmp	r2, r3
	bne	.L9
	ldr	r3, .L23+28
	mov	r1, fp
	mov	r2, #0
	ldr	r0, [r3]
	bl	bf_set
	ldr	r3, .L23+32
	mov	r1, fp
	ldr	r2, [r3]
	ldr	r3, .L23+36
	ldr	r0, [r3]
	bl	bf_set
	b	.L9
.L22:
	ldr	r0, [r1, #12]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r5, #16]
	str	r3, [fp, #12]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [fp]
	str	r3, [fp, #8]
	bl	le32_to_cpu
	ldr	r3, .L23+20
	mov	r2, #1
	mov	r1, fp
	str	r0, [fp]
	ldr	r0, [r3]
	bl	bf_set
	ldr	r0, [fp]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r5, #8]
	str	r3, [fp]
	bl	cpu_to_le32
	str	r0, [fp, #4]
	b	.L6
.L24:
	.align	2
.L23:
	.word	NO_XRI
	.word	CMD_XMIT_BLS_RSP64_CX
	.word	BUFF_TYPE_BLP_64
	.word	BUFF_TYPE_BDE_64
	.word	-858993459
	.word	lpfc_sli4_sge_last
	.word	CMD_GEN_REQUEST64_CR
	.word	lpfc_sli4_sge_offset
	.word	LPFC_SGE_TYPE_DATA
	.word	lpfc_sli4_sge_type
	.size	lpfc_sli4_bpl2sgl, .-lpfc_sli4_bpl2sgl
	.comm	lpfc_sli4_sge_type,4,4
	.comm	lpfc_sli4_sge_offset,4,4
	.comm	lpfc_sli4_sge_last,4,4
	.comm	NO_XRI,4,4
	.comm	LPFC_SGE_TYPE_DATA,4,4
	.comm	CMD_XMIT_BLS_RSP64_CX,4,4
	.comm	CMD_GEN_REQUEST64_CR,4,4
	.comm	BUFF_TYPE_BLP_64,4,4
	.comm	BUFF_TYPE_BDE_64I,4,4
	.comm	BUFF_TYPE_BDE_64,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
