	.file	"extr_libiscsi.c_iscsi_check_tmf_restrictions.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"task [op %x/%x itt 0x%x/0x%x] rejected.\n"
	.align 8
.LC1:
	.string	"task [op %x/%x itt 0x%x/0x%x] fast abort.\n"
	.align 8
.LC2:
	.string	"Preventing task %x/%x from sending data-out due to abort task in progress\n"
	.text
	.p2align 4
	.type	iscsi_check_tmf_restrictions, @function
iscsi_check_tmf_restrictions:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR TMF_INITIAL[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 24[rdi]
	cmp	QWORD PTR [r12], rax
	je	.L14
	mov	eax, DWORD PTR 16[r12]
	and	eax, DWORD PTR ISCSI_OPCODE_MASK[rip]
	cmp	eax, DWORD PTR ISCSI_OP_SCSI_TMFUNC[rip]
	je	.L16
.L14:
	xor	eax, eax
.L1:
	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
.L16:
	.cfi_restore_state
	mov	rbx, rdi
	lea	rdi, 16[r12]
	mov	ebp, esi
	call	ISCSI_TM_FUNC_VALUE@PLT
	cmp	eax, 129
	je	.L5
	cmp	eax, 130
	je	.L6
	cmp	eax, 128
	jne	.L14
.L7:
	cmp	DWORD PTR ISCSI_OP_SCSI_DATA_OUT[rip], ebp
	jne	.L17
	mov	rax, QWORD PTR 8[r12]
	mov	esi, DWORD PTR [rax]
	test	esi, esi
	je	.L14
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r8d, ebp
	push	rdx
	.cfi_def_cfa_offset 48
	mov	r9d, DWORD PTR 4[rbx]
	lea	rdx, .LC1[rip]
	mov	ecx, DWORD PTR [rax]
.L13:
	mov	edi, DWORD PTR KERN_INFO[rip]
	mov	rsi, r12
	call	iscsi_conn_printk@PLT
	mov	eax, DWORD PTR EACCES[rip]
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	DWORD PTR ISCSI_OP_SCSI_DATA_OUT[rip], ebp
	jne	.L14
	mov	ecx, DWORD PTR [rbx]
	cmp	ecx, DWORD PTR 20[r12]
	jne	.L14
	mov	edx, DWORD PTR 4[rbx]
	mov	rdi, QWORD PTR 8[r12]
	lea	rsi, .LC2[rip]
	call	ISCSI_DBG_SESSION@PLT
	mov	eax, DWORD PTR EACCES[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, 24[r12]
	call	scsilun_to_int@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rdx]
	cmp	DWORD PTR [rdx], eax
	jne	.L14
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r8d, ebp
	push	rdx
	.cfi_def_cfa_offset 48
	lea	rdx, .LC0[rip]
	mov	r9d, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR [rax]
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	iscsi_check_tmf_restrictions, .-iscsi_check_tmf_restrictions
	.comm	TMF_INITIAL,8,8
	.comm	KERN_INFO,4,4
	.comm	ISCSI_OP_SCSI_TMFUNC,4,4
	.comm	ISCSI_OP_SCSI_DATA_OUT,4,4
	.comm	ISCSI_OPCODE_MASK,4,4
	.comm	EACCES,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_check_tmf_restrictions.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"task [op %x/%x itt 0x%x/0x%x] rejected.\012\000"
	.align	2
.LC1:
	.ascii	"task [op %x/%x itt 0x%x/0x%x] fast abort.\012\000"
	.align	2
.LC2:
	.ascii	"Preventing task %x/%x from sending data-out due to "
	.ascii	"abort task in progress\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iscsi_check_tmf_restrictions, %function
iscsi_check_tmf_restrictions:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L20
	ldr	r6, [r0, #16]
	ldr	r3, [r3]
	ldr	r2, [r6]
	sub	sp, sp, #20
	cmp	r2, r3
	beq	.L16
	ldr	r3, .L20+4
	ldr	r2, .L20+8
	mov	r5, r1
	ldr	r1, [r3]
	ldr	r3, [r6, #8]
	ldr	r2, [r2]
	and	r3, r3, r1
	cmp	r3, r2
	beq	.L18
.L16:
	mov	r0, #0
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L18:
	add	r7, r6, #8
	mov	r4, r0
	mov	r0, r7
	bl	ISCSI_TM_FUNC_VALUE
	cmp	r0, #129
	beq	.L5
	cmp	r0, #130
	beq	.L6
	cmp	r0, #128
	bne	.L16
.L7:
	ldr	r3, .L20+12
	ldr	r3, [r3]
	cmp	r3, r5
	bne	.L19
	ldr	r3, [r6, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #4]
	ldr	ip, [r4]
	ldr	r0, .L20+16
	ldr	r3, [r3]
	str	r5, [sp]
	ldr	r0, [r0]
	mov	r1, r6
	stmib	sp, {r2, ip}
	ldr	r2, .L20+20
	bl	iscsi_conn_printk
	ldr	r3, .L20+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L6:
	ldr	r3, .L20+12
	ldr	r3, [r3]
	cmp	r3, r5
	bne	.L16
	ldr	r3, [r4]
	ldr	r2, [r6, #12]
	cmp	r3, r2
	bne	.L16
	ldr	r2, [r4, #4]
	ldr	r0, [r6, #4]
	ldr	r1, .L20+28
	bl	ISCSI_DBG_SESSION
	ldr	r3, .L20+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L5:
	add	r0, r7, #8
	bl	scsilun_to_int
	ldr	r3, [r4, #12]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L16
	b	.L7
.L19:
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #4]
	ldr	ip, [r4]
	ldr	r0, .L20+16
	ldr	r3, [r3]
	str	r5, [sp]
	ldr	r0, [r0]
	mov	r1, r6
	stmib	sp, {r2, ip}
	ldr	r2, .L20+32
	bl	iscsi_conn_printk
	ldr	r3, .L20+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L21:
	.align	2
.L20:
	.word	TMF_INITIAL
	.word	ISCSI_OPCODE_MASK
	.word	ISCSI_OP_SCSI_TMFUNC
	.word	ISCSI_OP_SCSI_DATA_OUT
	.word	KERN_INFO
	.word	.LC1
	.word	EACCES
	.word	.LC2
	.word	.LC0
	.size	iscsi_check_tmf_restrictions, .-iscsi_check_tmf_restrictions
	.comm	TMF_INITIAL,4,4
	.comm	KERN_INFO,4,4
	.comm	ISCSI_OP_SCSI_TMFUNC,4,4
	.comm	ISCSI_OP_SCSI_DATA_OUT,4,4
	.comm	ISCSI_OPCODE_MASK,4,4
	.comm	EACCES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
