	.file	"extr_libiscsi.c_iscsi_complete_task.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"complete task itt 0x%x state %d sc %p\n"
	.text
	.p2align 4
	.type	iscsi_complete_task, @function
iscsi_complete_task:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	r8d, DWORD PTR 8[rbp]
	mov	ecx, DWORD PTR 0[rbp]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR 16[rdi]
	mov	edx, DWORD PTR 12[rdi]
	mov	edi, DWORD PTR 16[rbx]
	call	ISCSI_DBG_SESSION@PLT
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, DWORD PTR ISCSI_TASK_COMPLETED[rip]
	je	.L1
	cmp	eax, DWORD PTR ISCSI_TASK_ABRT_TMF[rip]
	je	.L1
	cmp	eax, DWORD PTR ISCSI_TASK_ABRT_SESS_RECOV[rip]
	je	.L1
	xor	edi, edi
	cmp	DWORD PTR ISCSI_TASK_FREE[rip], eax
	sete	dil
	call	WARN_ON_ONCE@PLT
	mov	DWORD PTR 0[rbp], r12d
	lea	r12, 4[rbp]
	mov	rdi, r12
	call	list_empty@PLT
	test	eax, eax
	je	.L8
	cmp	QWORD PTR 8[rbx], rbp
	je	.L9
.L4:
	cmp	QWORD PTR [rbx], rbp
	je	.L10
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	__iscsi_put_task@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, r12
	call	list_del_init@PLT
	cmp	QWORD PTR 8[rbx], rbp
	jne	.L4
.L9:
	mov	QWORD PTR 8[rbx], 0
	cmp	QWORD PTR [rbx], rbp
	jne	.L5
.L10:
	mov	QWORD PTR [rbx], 0
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	__iscsi_put_task@PLT
	.cfi_endproc
.LFE0:
	.size	iscsi_complete_task, .-iscsi_complete_task
	.comm	ISCSI_TASK_FREE,4,4
	.comm	ISCSI_TASK_COMPLETED,4,4
	.comm	ISCSI_TASK_ABRT_TMF,4,4
	.comm	ISCSI_TASK_ABRT_SESS_RECOV,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_libiscsi.c_iscsi_complete_task.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"complete task itt 0x%x state %d sc %p\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iscsi_complete_task, %function
iscsi_complete_task:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r2, [r0, #8]
	ldr	r6, [r0, #16]
	sub	sp, sp, #12
	ldr	r3, [r4]
	ldr	r0, [r6, #8]
	str	r2, [sp]
	ldr	r2, [r4, #12]
	mov	r5, r1
	ldr	r1, .L9
	bl	ISCSI_DBG_SESSION
	ldr	r2, .L9+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L1
	ldr	r2, .L9+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L1
	ldr	r2, .L9+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L1
	ldr	r2, .L9+16
	mov	r7, r4
	ldr	r0, [r2]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON_ONCE
	str	r5, [r7], #4
	mov	r0, r7
	bl	list_empty
	cmp	r0, #0
	beq	.L8
.L3:
	ldr	r3, [r6, #4]
	mov	r0, r4
	cmp	r3, r4
	moveq	r3, #0
	streq	r3, [r6, #4]
	ldr	r3, [r6]
	cmp	r3, r4
	moveq	r3, #0
	streq	r3, [r6]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	__iscsi_put_task
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	mov	r0, r7
	bl	list_del_init
	b	.L3
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	ISCSI_TASK_COMPLETED
	.word	ISCSI_TASK_ABRT_TMF
	.word	ISCSI_TASK_ABRT_SESS_RECOV
	.word	ISCSI_TASK_FREE
	.size	iscsi_complete_task, .-iscsi_complete_task
	.comm	ISCSI_TASK_FREE,4,4
	.comm	ISCSI_TASK_COMPLETED,4,4
	.comm	ISCSI_TASK_ABRT_TMF,4,4
	.comm	ISCSI_TASK_ABRT_SESS_RECOV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
