	.file	"extr_sli4.c_sli_fcp_iread64_wqe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bad parameter sgl=%p virt=%p\n"
	.text
	.p2align 4
	.globl	sli_fcp_iread64_wqe
	.type	sli_fcp_iread64_wqe, @function
sli_fcp_iread64_wqe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	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
	xor	esi, esi
	mov	rdi, rbx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	ocs_memset@PLT
	test	r14, r14
	je	.L2
	mov	rbp, QWORD PTR 16[r14]
	test	rbp, rbp
	je	.L2
	cmp	QWORD PTR 8[r15], 0
	mov	rax, QWORD PTR TRUE[rip]
	je	.L5
	mov	rdx, QWORD PTR FALSE[rip]
	mov	QWORD PTR 208[rbx], rax
	mov	rax, QWORD PTR SLI4_BDE_TYPE_BDE_64[rip]
	mov	QWORD PTR 200[rbx], rdx
	mov	edx, DWORD PTR 4[rbp]
	mov	QWORD PTR 192[rbx], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR 180[rbx], edx
	mov	edx, DWORD PTR 0[rbp]
	mov	QWORD PTR 184[rbx], rax
	mov	DWORD PTR 176[rbx], edx
.L6:
	add	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR [rbx], r12
	mov	QWORD PTR 152[rbx], rax
	mov	rax, QWORD PTR 80[rsp]
	mov	QWORD PTR 144[rbx], rax
	mov	rax, QWORD PTR 104[rsp]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 136[rsp]
	mov	QWORD PTR 136[rbx], rax
	mov	eax, DWORD PTR SLI4_ELS_REQUEST64_CLASS_3[rip]
	mov	DWORD PTR 128[rbx], eax
	mov	eax, DWORD PTR SLI4_WQE_FCP_IREAD64[rip]
	mov	DWORD PTR 124[rbx], eax
	mov	eax, DWORD PTR SLI4_ELS_REQUEST64_CONTEXT_RPI[rip]
	mov	DWORD PTR 120[rbx], eax
	mov	rax, QWORD PTR 120[rsp]
	mov	QWORD PTR 112[rbx], rax
	mov	rax, QWORD PTR 128[rsp]
	mov	QWORD PTR 104[rbx], rax
	mov	rax, QWORD PTR 80[rsp]
	mov	QWORD PTR 96[rbx], rax
	mov	rax, QWORD PTR 88[rsp]
	mov	QWORD PTR 88[rbx], rax
	movabs	rax, 12884901890
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 112[rsp]
	cmp	QWORD PTR 16[rax], 0
	je	.L7
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR 80[rbx], rax
	mov	rax, QWORD PTR 112[rsp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 12[rsp], eax
	and	eax, 16777215
	mov	DWORD PTR 24[rbx], eax
.L7:
	mov	rax, QWORD PTR 112[rsp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR [rax], 0
	je	.L8
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR 72[rbx], rax
.L8:
	mov	eax, DWORD PTR SLI4_CMD_FCP_IREAD64_WQE[rip]
	mov	DWORD PTR 28[rbx], 1
	mov	DWORD PTR 64[rbx], eax
	mov	rax, QWORD PTR 96[rsp]
	mov	QWORD PTR 56[rbx], rax
	xor	eax, eax
	cmp	QWORD PTR [r15], 0
	je	.L1
	mov	rdx, QWORD PTR SLI4_BDE_TYPE_BDE_64[rip]
	mov	QWORD PTR 48[rbx], rdx
	lea	rdx, 0[r13+r13*2]
	lea	rdx, 0[rbp+rdx*8]
	mov	rcx, QWORD PTR 8[rdx]
	mov	QWORD PTR 40[rbx], rcx
	mov	ecx, DWORD PTR 4[rdx]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR 36[rbx], ecx
	mov	DWORD PTR 32[rbx], edx
.L1:
	add	rsp, 24
	.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
.L5:
	.cfi_restore_state
	mov	QWORD PTR 200[rbx], rax
	mov	rax, QWORD PTR SLI4_BDE_TYPE_BLP[rip]
	mov	edi, DWORD PTR [r14]
	mov	QWORD PTR 192[rbx], rax
	mov	rax, QWORD PTR 8[r14]
	mov	QWORD PTR 184[rbx], rax
	call	ocs_addr32_lo@PLT
	mov	edi, DWORD PTR [r14]
	mov	DWORD PTR 172[rbx], eax
	call	ocs_addr32_hi@PLT
	mov	edx, DWORD PTR SLI4_SGE_TYPE_SKIP[rip]
	mov	DWORD PTR 168[rbx], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 160[rbx], rax
	mov	DWORD PTR 40[rbp], edx
	jmp	.L6
.L2:
	mov	edi, DWORD PTR 16[r15]
	xor	ecx, ecx
	mov	rdx, r14
	lea	rsi, .LC0[rip]
	call	ocs_log_err@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sli_fcp_iread64_wqe, .-sli_fcp_iread64_wqe
	.comm	TRUE,8,8
	.comm	SLI4_WQE_FCP_IREAD64,4,4
	.comm	SLI4_SGE_TYPE_SKIP,4,4
	.comm	SLI4_ELS_REQUEST64_CONTEXT_RPI,4,4
	.comm	SLI4_ELS_REQUEST64_CLASS_3,4,4
	.comm	SLI4_CMD_FCP_IREAD64_WQE,4,4
	.comm	SLI4_BDE_TYPE_BLP,8,8
	.comm	SLI4_BDE_TYPE_BDE_64,8,8
	.comm	FALSE,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_sli4.c_sli_fcp_iread64_wqe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bad parameter sgl=%p virt=%p\012\000"
	.text
	.align	2
	.global	sli_fcp_iread64_wqe
	.syntax unified
	.arm
	.fpu softvfp
	.type	sli_fcp_iread64_wqe, %function
sli_fcp_iread64_wqe:
	@ args = 40, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r6, r3
	mov	r9, r0
	mov	r1, #0
	mov	r0, r4
	ldr	r8, [sp, #40]
	ldr	r7, [sp, #56]
	bl	ocs_memset
	cmp	r6, #0
	beq	.L2
	ldr	r5, [r6, #8]
	cmp	r5, #0
	beq	.L2
	ldr	r3, [r9, #4]
	ldr	r10, .L25
	cmp	r3, #0
	ldr	r3, [r10]
	beq	.L3
	ldr	r1, .L25+4
	ldr	r2, .L25+8
	ldr	r1, [r1]
	ldr	r0, [r2]
	str	r3, [r4, #128]
	ldr	r2, [r5, #8]
	ldr	r3, [r5]
	str	r1, [r4, #124]
	ldr	r1, [r5, #4]
	str	r0, [r4, #120]
	str	r2, [r4, #116]
	str	r1, [r4, #112]
	str	r3, [r4, #108]
.L4:
	mov	r0, #2
	mov	r1, #3
	ldr	r3, [r5, #24]
	ldr	ip, .L25+12
	add	r3, r3, r2
	str	r3, [r4, #92]
	ldr	r3, [r7, #8]
	ldr	r2, .L25+16
	cmp	r3, #0
	ldr	r3, [sp, #52]
	ldr	r2, [r2]
	str	r3, [r4, #4]
	ldr	r3, [sp, #68]
	str	r2, [r4, #72]
	str	r3, [r4, #84]
	ldr	r3, [sp, #60]
	ldrne	r2, [r10]
	str	r3, [r4, #68]
	ldr	r3, [sp, #64]
	ldr	lr, [ip]
	str	r3, [r4, #64]
	ldr	r3, [sp, #44]
	ldr	ip, .L25+20
	str	r3, [r4, #56]
	ldrne	r3, [r7]
	strne	r2, [r4, #52]
	bicne	r3, r3, #-16777216
	strne	r3, [r4, #16]
	ldr	r3, [r7, #4]
	ldr	ip, [ip]
	ldr	r3, [r3]
	str	lr, [r4, #80]
	cmp	r3, #0
	ldrne	r3, [r10]
	ldr	lr, [sp, #36]
	str	r0, [r4, #8]
	str	r1, [r4, #12]
	str	lr, [r4]
	str	r8, [r4, #88]
	str	r8, [r4, #60]
	str	ip, [r4, #76]
	strne	r3, [r4, #48]
	mov	r3, #1
	ldr	r2, .L25+24
	ldr	r0, [r9]
	ldr	r2, [r2]
	ldr	r1, [sp, #48]
	cmp	r0, #0
	str	r1, [r4, #40]
	str	r2, [r4, #44]
	str	r3, [r4, #20]
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, .L25+8
	ldr	r3, [sp, #32]
	ldr	r0, [r2]
	ldr	r2, [sp, #32]
	add	r3, r5, r3, lsl #4
	ldr	r1, [r5, r2, lsl #4]
	ldr	r2, [r3, #8]
	ldr	r3, [r3, #4]
	str	r0, [r4, #36]
	str	r1, [r4, #24]
	mov	r0, #0
	str	r2, [r4, #32]
	str	r3, [r4, #28]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r2, .L25+28
	str	r3, [r4, #124]
	ldr	r2, [r2]
	ldr	r3, [r6, #4]
	ldr	r0, [r6]
	str	r2, [r4, #120]
	str	r3, [r4, #116]
	bl	ocs_addr32_lo
	mov	r3, r0
	ldr	r0, [r6]
	str	r3, [r4, #104]
	bl	ocs_addr32_hi
	ldr	r3, .L25+32
	ldr	r2, [r5, #8]
	ldr	r3, [r3]
	str	r0, [r4, #100]
	str	r2, [r4, #96]
	str	r3, [r5, #28]
	b	.L4
.L2:
	mov	r2, r6
	mov	r3, #0
	ldr	r0, [r9, #8]
	ldr	r1, .L25+36
	bl	ocs_log_err
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	.align	2
.L25:
	.word	TRUE
	.word	FALSE
	.word	SLI4_BDE_TYPE_BDE_64
	.word	SLI4_ELS_REQUEST64_CLASS_3
	.word	SLI4_ELS_REQUEST64_CONTEXT_RPI
	.word	SLI4_WQE_FCP_IREAD64
	.word	SLI4_CMD_FCP_IREAD64_WQE
	.word	SLI4_BDE_TYPE_BLP
	.word	SLI4_SGE_TYPE_SKIP
	.word	.LC0
	.size	sli_fcp_iread64_wqe, .-sli_fcp_iread64_wqe
	.comm	TRUE,4,4
	.comm	SLI4_WQE_FCP_IREAD64,4,4
	.comm	SLI4_SGE_TYPE_SKIP,4,4
	.comm	SLI4_ELS_REQUEST64_CONTEXT_RPI,4,4
	.comm	SLI4_ELS_REQUEST64_CLASS_3,4,4
	.comm	SLI4_CMD_FCP_IREAD64_WQE,4,4
	.comm	SLI4_BDE_TYPE_BLP,4,4
	.comm	SLI4_BDE_TYPE_BDE_64,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
