	.file	"extr_mpt_raid.c_mpt_raid_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"idle"
.LC1:
	.string	"Unable to rescan RAID Bus!\n"
	.text
	.p2align 4
	.type	mpt_raid_thread, @function
mpt_raid_thread:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	MPT_LOCK@PLT
	cmp	QWORD PTR 0[rbp], 0
	jne	.L2
	mov	ebx, 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, rbp
	call	mpt_refresh_raid_data@PLT
	test	rax, rax
	jne	.L16
	test	ebx, ebx
	jne	.L17
.L6:
	xor	ebx, ebx
	cmp	QWORD PTR 16[rbp], 0
	jne	.L18
.L4:
	cmp	QWORD PTR 0[rbp], 0
	jne	.L2
.L8:
	cmp	QWORD PTR 8[rbp], 0
	jne	.L3
	mov	edx, DWORD PTR PUSER[rip]
	xor	r8d, r8d
	lea	rsi, 36[rbp]
	mov	rdi, rbp
	lea	rcx, .LC0[rip]
	call	mpt_sleep@PLT
	cmp	QWORD PTR 0[rbp], 0
	je	.L8
.L2:
	mov	QWORD PTR 24[rbp], 0
	lea	rdi, 24[rbp]
	call	wakeup@PLT
	mov	rdi, rbp
	call	MPT_UNLOCK@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	edi, edi
	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	kproc_exit@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	QWORD PTR 16[rbp], 0
	mov	rdi, rbp
	call	MPT_UNLOCK@PLT
	xor	eax, eax
	call	xpt_alloc_ccb@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	MPT_LOCK@PLT
	mov	edi, DWORD PTR 32[rbp]
	mov	r14d, DWORD PTR CAM_LUN_WILDCARD[rip]
	mov	r13d, DWORD PTR CAM_TARGET_WILDCARD[rip]
	call	cam_sim_path@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	r8d, r14d
	mov	edx, eax
	mov	ecx, r13d
	call	xpt_create_path@PLT
	cmp	DWORD PTR CAM_REQ_CMP[rip], eax
	mov	rdi, r12
	je	.L7
	call	xpt_free_ccb@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	mpt_prt@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR 32[rbp]
	mov	esi, DWORD PTR TRUE[rip]
	call	xpt_release_simq@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	call	mpt_schedule_raid_refresh@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	call	xpt_rescan@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	mpt_raid_thread, .-mpt_raid_thread
	.comm	TRUE,4,4
	.comm	PUSER,4,4
	.comm	CAM_TARGET_WILDCARD,4,4
	.comm	CAM_REQ_CMP,4,4
	.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_mpt_raid.c_mpt_raid_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"idle\000"
	.align	2
.LC1:
	.ascii	"Unable to rescan RAID Bus!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpt_raid_thread, %function
mpt_raid_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #12
	bl	MPT_LOCK
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
	mov	r5, #1
	ldr	r10, .L22
	ldr	r9, .L22+4
	ldr	r8, .L22+8
	ldr	fp, .L22+12
	ldr	r7, .L22+16
	b	.L8
.L3:
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4, #4]
	bl	mpt_refresh_raid_data
	cmp	r0, #0
	bne	.L19
	cmp	r5, #0
	bne	.L20
.L6:
	ldr	r5, [r4, #8]
	cmp	r5, #0
	bne	.L21
.L4:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
.L8:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L3
	str	r3, [sp]
	mov	r0, r4
	ldr	r3, .L22+20
	ldr	r2, [r7]
	add	r1, r4, #20
	bl	mpt_sleep
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L8
.L2:
	mov	r5, #0
	mov	r0, r4
	str	r5, [r0, #12]!
	bl	wakeup
	mov	r0, r4
	bl	MPT_UNLOCK
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	kproc_exit
.L21:
	mov	r5, #0
	mov	r0, r4
	str	r5, [r4, #8]
	bl	MPT_UNLOCK
	bl	xpt_alloc_ccb
	mov	r6, r0
	mov	r0, r4
	bl	MPT_LOCK
	ldr	r0, [r4, #16]
	bl	cam_sim_path
	ldr	r3, [r9]
	mov	r2, r0
	str	r3, [sp]
	mov	r0, r6
	ldr	r3, [r10]
	mov	r1, r5
	bl	xpt_create_path
	ldr	r3, [r8]
	cmp	r3, r0
	mov	r0, r6
	beq	.L7
	bl	xpt_free_ccb
	mov	r1, fp
	mov	r0, r4
	bl	mpt_prt
	b	.L4
.L20:
	ldr	r3, .L22+24
	ldr	r0, [r4, #16]
	ldr	r1, [r3]
	bl	xpt_release_simq
	b	.L6
.L19:
	mov	r0, r4
	bl	mpt_schedule_raid_refresh
	b	.L4
.L7:
	bl	xpt_rescan
	b	.L4
.L23:
	.align	2
.L22:
	.word	CAM_TARGET_WILDCARD
	.word	CAM_LUN_WILDCARD
	.word	CAM_REQ_CMP
	.word	.LC1
	.word	PUSER
	.word	.LC0
	.word	TRUE
	.size	mpt_raid_thread, .-mpt_raid_thread
	.comm	TRUE,4,4
	.comm	PUSER,4,4
	.comm	CAM_TARGET_WILDCARD,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	CAM_LUN_WILDCARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
