	.file	"extr_bfad_im.c_bfad_im_target_reset_send.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"target reset, fail to allocate tskim\n"
	.text
	.p2align 4
	.type	bfad_im_target_reset_send, @function
bfad_im_target_reset_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r14d, DWORD PTR BFA_STATUS_OK[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	bfa_tskim_alloc@PLT
	test	rax, rax
	je	.L7
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, r13
	mov	rbp, rax
	mov	QWORD PTR [rbx], 0
	call	bfa_fcs_itnim_get_halitn@PLT
	lea	rdi, 4[rsp]
	mov	edx, 4
	xor	esi, esi
	mov	r12, rax
	call	memset@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	mov	r8d, DWORD PTR BFAD_TARGET_RESET_TMO[rip]
	mov	ecx, DWORD PTR FCP_TM_TARGET_RESET[rip]
	call	bfa_tskim_start@PLT
.L3:
	endbr64
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edx, DWORD PTR bfa_log_level[rip]
	mov	edi, DWORD PTR KERN_ERR[rip]
	lea	rcx, .LC0[rip]
	mov	rsi, r12
	call	BFA_LOG@PLT
	mov	r14d, DWORD PTR BFA_STATUS_FAILED[rip]
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bfad_im_target_reset_send, .-bfad_im_target_reset_send
	.comm	bfa_log_level,4,4
	.comm	KERN_ERR,4,4
	.comm	FCP_TM_TARGET_RESET,4,4
	.comm	BFA_STATUS_OK,4,4
	.comm	BFA_STATUS_FAILED,4,4
	.comm	BFAD_TARGET_RESET_TMO,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_bfad_im.c_bfad_im_target_reset_send.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"target reset, fail to allocate tskim\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfad_im_target_reset_send, %function
bfad_im_target_reset_send:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L9
	mov	r7, r2
	ldr	r2, .L9+4
	sub	sp, sp, #16
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r6, r0
	mov	r5, r1
	ldr	r8, [r3]
	bl	bfa_tskim_alloc
	subs	r4, r0, #0
	beq	.L7
	mov	r6, #0
	mov	r0, r7
	str	r6, [r5, #4]
	str	r6, [r5]
	bl	bfa_fcs_itnim_get_halitn
	ldr	r2, .L9+8
	ldr	r3, .L9+12
	ldr	r2, [r2]
	mov	r1, r0
	str	r2, [sp]
	mov	r0, r4
	mov	r2, r6
	ldr	r3, [r3]
	str	r6, [sp, #8]
	bl	bfa_tskim_start
.L3:
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L9+16
	ldr	r2, .L9+20
	ldr	r0, [r3]
	mov	r1, r6
	ldr	r3, .L9+24
	ldr	r2, [r2]
	bl	BFA_LOG
	ldr	r3, .L9+28
	ldr	r8, [r3]
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	BFA_STATUS_OK
	.word	.LC1
	.word	BFAD_TARGET_RESET_TMO
	.word	FCP_TM_TARGET_RESET
	.word	KERN_ERR
	.word	bfa_log_level
	.word	.LC0
	.word	BFA_STATUS_FAILED
	.size	bfad_im_target_reset_send, .-bfad_im_target_reset_send
	.comm	bfa_log_level,4,4
	.comm	KERN_ERR,4,4
	.comm	FCP_TM_TARGET_RESET,4,4
	.comm	BFA_STATUS_OK,4,4
	.comm	BFA_STATUS_FAILED,4,4
	.comm	BFAD_TARGET_RESET_TMO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
