	.file	"extr_task.c_isci_task_I_T_nexus_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	isci_task_I_T_nexus_reset
	.type	isci_task_I_T_nexus_reset, @function
isci_task_I_T_nexus_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	dev_to_ihost@PLT
	mov	rsi, r14
	mov	rdi, rax
	mov	r12, rax
	call	spin_lock_irqsave@PLT
	mov	edi, DWORD PTR 0[r13]
	call	isci_get_device@PLT
	mov	rsi, r14
	mov	rdi, r12
	mov	rbp, rax
	call	spin_unlock_irqrestore@PLT
	test	rbp, rbp
	je	.L6
	mov	rdi, r12
	mov	rdx, rbp
	mov	rsi, r13
	call	isci_reset_device@PLT
	mov	r12d, eax
.L3:
	mov	rdi, rbp
	call	isci_put_device@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	isci_task_I_T_nexus_reset, .-isci_task_I_T_nexus_reset
	.comm	ENODEV,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_task.c_isci_task_I_T_nexus_reset.c"
	.text
	.align	2
	.global	isci_task_I_T_nexus_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	isci_task_I_T_nexus_reset, %function
isci_task_I_T_nexus_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	mov	r6, r0
	bl	dev_to_ihost
	mov	r1, r7
	mov	r5, r0
	bl	spin_lock_irqsave
	ldr	r0, [r6]
	bl	isci_get_device
	mov	r4, r0
	mov	r1, r7
	mov	r0, r5
	bl	spin_unlock_irqrestore
	cmp	r4, r7
	beq	.L6
	mov	r0, r5
	mov	r1, r6
	mov	r2, r4
	bl	isci_reset_device
	mov	r5, r0
.L3:
	mov	r0, r4
	bl	isci_put_device
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L7
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L8:
	.align	2
.L7:
	.word	ENODEV
	.size	isci_task_I_T_nexus_reset, .-isci_task_I_T_nexus_reset
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
