	.file	"extr_sas_scsi_host.c_sas_eh_device_reset_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sas_eh_device_reset_handler
	.type	sas_eh_device_reset_handler, @function
sas_eh_device_reset_handler:
.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
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	r12, QWORD PTR 8[rax]
	call	cmd_to_domain_dev@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	r13, rax
	call	to_sas_internal@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR current[rip]
	cmp	QWORD PTR [r12], rax
	je	.L2
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR SAS_DEV_LU_RESET[rip]
	xor	ecx, ecx
	mov	rdi, r13
	mov	edx, DWORD PTR [rax]
	call	sas_queue_reset@PLT
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	lea	rsi, 4[rsp]
	mov	edi, DWORD PTR [rax]
	call	int_to_scsilun@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L11
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, r13
	call	rax
	cmp	DWORD PTR TMF_RESP_FUNC_SUCC[rip], eax
	mov	edx, eax
	je	.L5
	cmp	DWORD PTR TMF_RESP_FUNC_COMPLETE[rip], edx
	mov	eax, DWORD PTR FAILED[rip]
	jne	.L1
.L5:
	mov	eax, DWORD PTR SUCCESS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR FAILED[rip]
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sas_eh_device_reset_handler, .-sas_eh_device_reset_handler
	.comm	current,8,8
	.comm	TMF_RESP_FUNC_SUCC,4,4
	.comm	TMF_RESP_FUNC_COMPLETE,4,4
	.comm	SUCCESS,4,4
	.comm	SAS_DEV_LU_RESET,4,4
	.comm	FAILED,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_sas_scsi_host.c_sas_eh_device_reset_handler.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sas_eh_device_reset_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sas_eh_device_reset_handler, %function
sas_eh_device_reset_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0]
	ldr	r2, .L11
	sub	sp, sp, #8
	ldr	r5, [r3, #4]
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r4, r0
	bl	cmd_to_domain_dev
	mov	r6, r0
	ldr	r0, [r5, #4]
	bl	to_sas_internal
	ldr	r3, .L11+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r3, .L11+8
	ldr	r2, [r4]
	ldr	r1, [r3]
	mov	r0, r6
	mov	r3, #0
	ldr	r2, [r2]
	bl	sas_queue_reset
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r5, r0
	ldr	r3, [r4]
	mov	r1, sp
	ldr	r0, [r3]
	bl	int_to_scsilun
	ldr	r3, [r5]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	mov	r0, r6
	ldr	r1, [sp]
	blx	r3
	ldr	r3, .L11+12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L5
	ldr	r3, .L11+16
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L5
.L6:
	ldr	r3, .L11+20
	ldr	r0, [r3]
	b	.L1
.L5:
	ldr	r3, .L11+24
	ldr	r0, [r3]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	current
	.word	SAS_DEV_LU_RESET
	.word	TMF_RESP_FUNC_SUCC
	.word	TMF_RESP_FUNC_COMPLETE
	.word	FAILED
	.word	SUCCESS
	.size	sas_eh_device_reset_handler, .-sas_eh_device_reset_handler
	.comm	current,4,4
	.comm	TMF_RESP_FUNC_SUCC,4,4
	.comm	TMF_RESP_FUNC_COMPLETE,4,4
	.comm	SUCCESS,4,4
	.comm	SAS_DEV_LU_RESET,4,4
	.comm	FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
