	.file	"extr_bnx2fc_io.c_bnx2fc_build_fcp_cmnd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bnx2fc_build_fcp_cmnd
	.type	bnx2fc_build_fcp_cmnd, @function
bnx2fc_build_fcp_cmnd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 40
	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
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 16[rdi]
	mov	rdi, rbx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	memset@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	rsi, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR [rax]
	call	int_to_scsilun@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	htonl@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	edi, DWORD PTR 24[rbx]
	mov	DWORD PTR 28[rbx], eax
	mov	edx, DWORD PTR [r12]
	call	memcpy@PLT
	mov	eax, DWORD PTR 4[rbp]
	lea	rsi, 6[rsp]
	mov	rdi, r12
	mov	QWORD PTR 16[rbx], 0
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	QWORD PTR [rbx], 0
	mov	DWORD PTR 8[rbx], eax
	call	scsi_populate_tag_msg@PLT
	test	rax, rax
	cmovne	rax, QWORD PTR FCP_PTA_SIMPLE[rip]
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bnx2fc_build_fcp_cmnd, .-bnx2fc_build_fcp_cmnd
	.comm	FCP_PTA_SIMPLE,8,8
	.comm	FCP_PTA_ORDERED,8,8
	.comm	FCP_PTA_HEADQ,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_bnx2fc_io.c_bnx2fc_build_fcp_cmnd.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bnx2fc_build_fcp_cmnd
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2fc_build_fcp_cmnd, %function
bnx2fc_build_fcp_cmnd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r6, [r0, #12]
	ldr	r3, .L11
	mov	r4, r1
	sub	sp, sp, #8
	mov	r2, #28
	mov	r0, r1
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	memset
	ldr	r3, [r6, #8]
	mov	r1, #0
	ldr	r0, [r3]
	bl	int_to_scsilun
	ldr	r0, [r5, #8]
	bl	htonl
	ldr	r2, [r6]
	ldr	r1, [r6, #4]
	str	r0, [r4, #20]
	ldr	r0, [r4, #16]
	bl	memcpy
	mov	r3, #0
	ldr	r1, [r5, #4]
	ldr	r2, [r5]
	mov	r0, r6
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	mov	r1, sp
	str	r3, [r4, #12]
	str	r3, [r4]
	bl	scsi_populate_tag_msg
	cmp	r0, #0
	streq	r0, [r4]
	beq	.L1
	ldrb	r3, [sp]	@ zero_extendqisi2
	cmp	r3, #128
	beq	.L3
	cmp	r3, #129
	beq	.L9
	ldr	r3, .L11+4
	ldr	r3, [r3]
	str	r3, [r4]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L11+8
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L1
.L3:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	FCP_PTA_SIMPLE
	.word	FCP_PTA_HEADQ
	.word	FCP_PTA_ORDERED
	.size	bnx2fc_build_fcp_cmnd, .-bnx2fc_build_fcp_cmnd
	.comm	FCP_PTA_SIMPLE,4,4
	.comm	FCP_PTA_ORDERED,4,4
	.comm	FCP_PTA_HEADQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
