	.file	"extr_isci_remote_device.c_scif_cb_remote_device_ready.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	scif_cb_remote_device_ready
	.type	scif_cb_remote_device_ready, @function
scif_cb_remote_device_ready:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edi
	mov	edi, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	sci_object_get_association@PLT
	mov	edi, r12d
	mov	rbp, rax
	call	sci_object_get_association@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rbx, rax
	mov	rax, QWORD PTR 16[rax]
	lea	rax, [rax+rdx*8]
	cmp	QWORD PTR [rax], 0
	je	.L7
.L3:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	isci_remote_device_release_device_queue@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmp	QWORD PTR 8[rbx], 0
	mov	QWORD PTR [rax], rbp
	je	.L3
	xor	eax, eax
	call	xpt_alloc_ccb_nowait@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r14d, DWORD PTR CAM_LUN_WILDCARD[rip]
	mov	r13, QWORD PTR 0[rbp]
	mov	r12, rax
	call	cam_sim_path@PLT
	mov	rdi, r12
	mov	r8d, r14d
	xor	esi, esi
	mov	edx, eax
	mov	rcx, r13
	call	xpt_create_path@PLT
	mov	rdi, r12
	call	xpt_rescan@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	scif_cb_remote_device_ready, .-scif_cb_remote_device_ready
	.comm	CAM_LUN_WILDCARD,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_isci_remote_device.c_scif_cb_remote_device_ready.c"
	.text
	.align	2
	.global	scif_cb_remote_device_ready
	.syntax unified
	.arm
	.fpu softvfp
	.type	scif_cb_remote_device_ready, %function
scif_cb_remote_device_ready:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	sub	sp, sp, #8
	mov	r0, r2
	bl	sci_object_get_association
	mov	r4, r0
	mov	r0, r5
	bl	sci_object_get_association
	ldr	r2, [r4]
	ldr	r3, [r0, #8]
	ldr	r6, [r3, r2, lsl #2]
	cmp	r6, #0
	beq	.L10
.L3:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	isci_remote_device_release_device_queue
.L10:
	ldr	r1, [r0, #4]
	mov	r5, r0
	cmp	r1, #0
	str	r4, [r3, r2, lsl #2]
	beq	.L3
	bl	xpt_alloc_ccb_nowait
	mov	r3, r0
	ldr	r0, [r5]
	mov	r5, r3
	bl	cam_sim_path
	ldr	r1, .L11
	mov	r2, r0
	ldr	ip, [r1]
	ldr	r3, [r4]
	mov	r1, r6
	mov	r0, r5
	str	ip, [sp]
	bl	xpt_create_path
	mov	r0, r5
	bl	xpt_rescan
	b	.L3
.L12:
	.align	2
.L11:
	.word	CAM_LUN_WILDCARD
	.size	scif_cb_remote_device_ready, .-scif_cb_remote_device_ready
	.comm	CAM_LUN_WILDCARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
