	.file	"extr_mpt2sas_scsih.c__scsih_target_destroy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_scsih_target_destroy, @function
_scsih_target_destroy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	add	rdi, 24
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	dev_to_shost@PLT
	mov	rdi, rax
	call	shost_priv@PLT
	mov	r12, QWORD PTR 16[rbx]
	test	r12, r12
	je	.L1
	mov	rbp, rax
	mov	rax, QWORD PTR RAID_CHANNEL[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L18
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	edi, DWORD PTR 24[rbx]
	call	dev_to_rphy@PLT
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	call	mpt2sas_scsih_sas_device_find_by_sas_address@PLT
	test	rax, rax
	je	.L6
	cmp	QWORD PTR 16[rax], rbx
	je	.L19
.L6:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
.L5:
	mov	rdi, r12
	call	kfree@PLT
	mov	QWORD PTR 16[rbx], 0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rcx, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rax], rcx
	jne	.L6
	mov	rdx, QWORD PTR [rbx]
	cmp	QWORD PTR 8[rax], rdx
	jne	.L6
	mov	QWORD PTR 16[rax], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	lea	r13, 4[rbp]
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	rdi, rbp
	call	_scsih_raid_device_find_by_id@PLT
	test	rax, rax
	je	.L4
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR [rax], 0
.L4:
	xor	esi, esi
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	_scsih_target_destroy, .-_scsih_target_destroy
	.comm	RAID_CHANNEL,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_mpt2sas_scsih.c__scsih_target_destroy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_scsih_target_destroy, %function
_scsih_target_destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	add	r0, r0, #12
	bl	dev_to_shost
	bl	shost_priv
	ldr	r6, [r4, #8]
	cmp	r6, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L20
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r5, r0
	cmp	r2, r3
	beq	.L18
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r0, [r4, #12]
	bl	dev_to_rphy
	mov	r3, r0
	mov	r0, r5
	ldr	r1, [r3]
	bl	mpt2sas_scsih_sas_device_find_by_sas_address
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r0, #8]
	cmp	r3, r4
	beq	.L19
.L6:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
.L5:
	mov	r0, r6
	bl	kfree
	mov	r3, #0
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r2, [r0]
	ldr	r3, [r4, #4]
	cmp	r2, r3
	bne	.L6
	ldr	r3, [r4]
	ldr	r2, [r0, #4]
	cmp	r2, r3
	moveq	r3, #0
	streq	r3, [r0, #8]
	b	.L6
.L18:
	add	r7, r0, #4
	mov	r0, r7
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r1, [r4, #4]
	mov	r0, r5
	ldr	r2, [r4]
	bl	_scsih_raid_device_find_by_id
	cmp	r0, #0
	movne	r3, #0
	mov	r1, #0
	strne	r3, [r0, #4]
	strne	r3, [r0]
	mov	r0, r7
	bl	spin_unlock_irqrestore
	b	.L5
.L21:
	.align	2
.L20:
	.word	RAID_CHANNEL
	.size	_scsih_target_destroy, .-_scsih_target_destroy
	.comm	RAID_CHANNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
