	.file	"extr_bnx2i_iscsi.c_bnx2i_cpy_scsi_cdb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnx2i_cpy_scsi_cdb, @function
bnx2i_cpy_scsi_cdb:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 16[rdi]
	lea	rsi, 32[rsp]
	mov	edi, DWORD PTR [rax]
	call	int_to_scsilun@PLT
	mov	edi, DWORD PTR 32[rsp]
	mov	rbp, QWORD PTR 8[rbx]
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 36[rsp]
	mov	QWORD PTR 0[rbp], rax
	mov	rbp, QWORD PTR 8[rbx]
	call	be32_to_cpu@PLT
	mov	r15, QWORD PTR [rbx]
	mov	r14, QWORD PTR 8[r13]
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR [rsp], r15
	movsx	rax, DWORD PTR [rax]
	shr	rax, 2
	lea	ecx, -1[rax]
	mov	DWORD PTR 12[rsp], ecx
	test	eax, eax
	je	.L2
	mov	eax, ecx
	mov	r12, r14
	lea	rbx, 28[rsp]
	sal	rax, 5
	lea	rbp, 32[r14+rax]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, r12
	mov	edx, 4
	mov	rdi, rbx
	add	r12, 32
	call	memcpy@PLT
	mov	edi, DWORD PTR 28[rsp]
	add	r15, 4
	call	cpu_to_be32@PLT
	mov	DWORD PTR -4[r15], eax
	cmp	r12, rbp
	jne	.L3
	mov	r12d, DWORD PTR 12[rsp]
	add	r12, 1
	mov	rax, r12
	sal	rax, 5
	add	r14, rax
	mov	rax, QWORD PTR [rsp]
	lea	rax, [rax+r12*4]
	mov	QWORD PTR [rsp], rax
.L2:
	test	BYTE PTR 0[r13], 3
	jne	.L12
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 56
	.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
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[r14]
	sal	edi, 8
	or	edi, DWORD PTR [r14]
	mov	DWORD PTR 28[rsp], edi
	call	cpu_to_be32@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	DWORD PTR [rcx], eax
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bnx2i_cpy_scsi_cdb, .-bnx2i_cpy_scsi_cdb
	.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_bnx2i_iscsi.c_bnx2i_cpy_scsi_cdb.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2i_cpy_scsi_cdb, %function
bnx2i_cpy_scsi_cdb:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r1
	ldr	r3, [r0, #8]
	sub	sp, sp, #20
	mov	r7, r0
	ldr	r0, [r3]
	ldr	r3, .L17
	add	r1, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	int_to_scsilun
	ldr	r0, [sp, #4]
	ldr	r5, [r4, #4]
	bl	be32_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #8]
	str	r3, [r5]
	ldr	r5, [r4, #4]
	bl	be32_to_cpu
	str	r0, [r5, #4]
	ldr	r3, [r4, #8]
	ldr	r6, [r4]
	ldr	r3, [r3]
	ldr	r8, [r7, #4]
	lsrs	r9, r3, #2
	beq	.L2
	mov	r4, r8
	mov	r5, r6
	add	r6, r6, r9, lsl #2
.L3:
	mov	r1, r4
	mov	r2, #4
	mov	r0, sp
	bl	memcpy
	ldr	r0, [sp]
	bl	cpu_to_be32
	str	r0, [r5], #4
	cmp	r6, r5
	add	r4, r4, #16
	bne	.L3
	add	r8, r8, r9, lsl #4
.L2:
	ldr	r3, [r7]
	tst	r3, #3
	bne	.L15
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	ldr	r0, [r8, #4]
	ldr	r3, [r8]
	orr	r0, r3, r0, lsl #8
	bl	cpu_to_be32
	str	r0, [r6]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.size	bnx2i_cpy_scsi_cdb, .-bnx2i_cpy_scsi_cdb
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
