	.file	"extr_ocs_unsol.c_ocs_dispatch_fcp_cmd_auto_xfer_rdy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"IO is not Auto Xfr Rdy assisted, dropping FCP_CMND\n"
	.align 8
.LC1:
	.string	"ocs_sframe_send_task_set_full_or_busy failed: %d\n"
	.align 8
.LC2:
	.string	"IO allocation failed ox_id %04x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"TMF flags set 0x%x\n"
	.text
	.p2align 4
	.type	ocs_dispatch_fcp_cmd_auto_xfer_rdy, @function
ocs_dispatch_fcp_cmd_auto_xfer_rdy:
.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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 16[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 24[rsi]
	mov	esi, -1
	mov	rbx, QWORD PTR [rax]
	call	ocs_assert@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, rbp
	mov	rdi, r14
	mov	r15, QWORD PTR [rax]
	call	ocs_validate_fcp_cmd@PLT
	test	rax, rax
	jne	.L9
	mov	ecx, DWORD PTR 12[rbp]
	test	ecx, ecx
	je	.L15
	mov	edi, DWORD PTR 16[r15]
	call	be64dec@PLT
	mov	edi, eax
	call	CAM_EXTLUN_BYTE_SWIZZLE@PLT
	mov	esi, DWORD PTR OCS_SCSI_IO_ROLE_RESPONDER[rip]
	mov	rdi, r13
	mov	DWORD PTR 12[rsp], eax
	call	ocs_scsi_io_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L16
	mov	eax, DWORD PTR 8[rbp]
	mov	ecx, DWORD PTR FALSE[rip]
	mov	rdx, rbx
	mov	rsi, r15
	mov	rdi, r12
	mov	DWORD PTR 16[r12], eax
	call	ocs_populate_io_fcp_cmd@PLT
	mov	rdx, QWORD PTR 8[r15]
	test	rdx, rdx
	jne	.L17
	mov	rdi, r15
	call	ocs_get_flags_fcp_cmd@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r14
	mov	rbx, rax
	call	ocs_hw_io_activate_port_owned@PLT
	mov	rax, QWORD PTR 0[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rdi, r12
	mov	edx, DWORD PTR 4[r15]
	xor	r9d, r9d
	mov	r8, rbx
	mov	QWORD PTR 8[r12], rax
	mov	QWORD PTR 8[rax], r12
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR [r15]
	xor	r12d, r12d
	push	0
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR 28[rsp]
	lea	ecx, 4[0+rax*8]
	call	ocs_scsi_recv_cmd_first_burst@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	ocs_hw_sequence_free@PLT
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L16:
	.cfi_restore_state
	mov	esi, DWORD PTR OCS_HW_SEND_FRAME_CAPABLE[rip]
	lea	rdx, 16[rsp]
	mov	rdi, r14
	call	ocs_hw_get@PLT
	test	eax, eax
	jne	.L5
	cmp	QWORD PTR 16[rsp], 0
	jne	.L19
.L5:
	mov	edi, DWORD PTR [rbx]
	mov	r12d, -1
	call	ocs_be16toh@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	mov	rdx, rax
	call	ocs_log_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, rbp
	mov	rdi, r13
	call	ocs_sframe_send_task_set_full_or_busy@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	ocs_log_test@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	mov	r12d, -1
	call	node_printf@PLT
	jmp	.L1
.L17:
	lea	rsi, .LC3[rip]
	mov	rdi, r14
	call	ocs_log_err@PLT
	mov	rdi, r12
	mov	r12d, -1
	call	ocs_scsi_io_free@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocs_dispatch_fcp_cmd_auto_xfer_rdy, .-ocs_dispatch_fcp_cmd_auto_xfer_rdy
	.comm	UINT64_MAX,4,4
	.comm	OCS_SCSI_IO_ROLE_RESPONDER,4,4
	.comm	OCS_HW_SEND_FRAME_CAPABLE,4,4
	.comm	FALSE,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_ocs_unsol.c_ocs_dispatch_fcp_cmd_auto_xfer_rdy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IO is not Auto Xfr Rdy assisted, dropping FCP_CMND\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"ocs_sframe_send_task_set_full_or_busy failed: %d\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"IO allocation failed ox_id %04x\012\000"
	.align	2
.LC3:
	.ascii	"TMF flags set 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocs_dispatch_fcp_cmd_auto_xfer_rdy, %function
ocs_dispatch_fcp_cmd_auto_xfer_rdy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r3, [r1, #16]
	ldr	r2, .L23
	ldr	r8, [r0]
	sub	sp, sp, #24
	mov	r6, r0
	ldr	r0, [r1, #12]
	mvn	r1, #0
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	ldr	r10, [r3]
	bl	ocs_assert
	ldr	r3, [r4, #12]
	mov	r0, r8
	mov	r1, r4
	ldr	r7, [r3]
	bl	ocs_validate_fcp_cmd
	cmp	r0, #0
	bne	.L9
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L18
	ldr	r0, [r7, #12]
	bl	be64dec
	bl	CAM_EXTLUN_BYTE_SWIZZLE
	ldr	r3, .L23+4
	mov	r9, r0
	ldr	r1, [r3]
	mov	r0, r6
	bl	ocs_scsi_io_alloc
	subs	r5, r0, #0
	beq	.L19
	ldr	r1, [r4, #4]
	ldr	r3, .L23+8
	str	r1, [r5, #8]
	mov	r2, r10
	mov	r1, r7
	ldr	r3, [r3]
	bl	ocs_populate_io_fcp_cmd
	ldr	r6, [r7, #8]
	cmp	r6, #0
	bne	.L20
	mov	r0, r7
	bl	ocs_get_flags_fcp_cmd
	mov	r10, r0
	ldr	r1, [r4]
	mov	r0, r8
	bl	ocs_hw_io_activate_port_owned
	ldr	r0, [r4]
	ldr	r3, [r7]
	ldr	ip, [r0]
	add	r3, r3, #1
	ldr	r2, [r7, #4]
	mov	r1, r9
	str	r0, [r5, #4]
	lsl	r3, r3, #2
	str	r5, [r0, #4]
	str	ip, [r5]
	mov	r0, r5
	str	r10, [sp]
	str	r6, [sp, #8]
	str	r6, [sp, #4]
	bl	ocs_scsi_recv_cmd_first_burst
	mov	r1, r4
	mov	r0, r8
	bl	ocs_hw_sequence_free
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r6
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r3, .L23+12
	mov	r0, r8
	ldr	r1, [r3]
	add	r2, sp, #16
	bl	ocs_hw_get
	cmp	r0, #0
	bne	.L5
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L22
.L5:
	ldr	r0, [r10]
	bl	ocs_be16toh
	ldr	r1, .L23+16
	mov	r2, r0
	mov	r0, r8
	bl	ocs_log_err
	mvn	r6, #0
	b	.L1
.L22:
	mov	r0, r6
	mov	r1, r4
	bl	ocs_sframe_send_task_set_full_or_busy
	subs	r6, r0, #0
	beq	.L1
	mov	r0, r8
	mov	r2, r6
	ldr	r1, .L23+20
	bl	ocs_log_test
	b	.L1
.L9:
	mvn	r6, #0
	b	.L1
.L18:
	mov	r0, r6
	ldr	r1, .L23+24
	bl	node_printf
	mvn	r6, #0
	b	.L1
.L20:
	mov	r2, r6
	ldr	r1, .L23+28
	mov	r0, r8
	bl	ocs_log_err
	mov	r0, r5
	bl	ocs_scsi_io_free
	mvn	r6, #0
	b	.L1
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC4
	.word	OCS_SCSI_IO_ROLE_RESPONDER
	.word	FALSE
	.word	OCS_HW_SEND_FRAME_CAPABLE
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.size	ocs_dispatch_fcp_cmd_auto_xfer_rdy, .-ocs_dispatch_fcp_cmd_auto_xfer_rdy
	.comm	UINT64_MAX,4,4
	.comm	OCS_SCSI_IO_ROLE_RESPONDER,4,4
	.comm	OCS_HW_SEND_FRAME_CAPABLE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
