	.file	"extr_cam_xpt.c_xpt_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CAM taskq"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"xpt_config: failed to create taskqueue thread."
	.align 8
.LC2:
	.string	"xpt_config: xpt_create_path() failed for debug target %d:%d:%d, debugging disabled\n"
	.section	.rodata.str1.1
.LC3:
	.string	"scanner"
.LC4:
	.string	"cam"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"xpt_config: failed to create rescan thread."
	.text
	.p2align 4
	.type	xpt_config, @function
xpt_config:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edx, DWORD PTR PRIBIO[rip]
	lea	rcx, .LC0[rip]
	mov	esi, 1
	lea	rdi, xsoftc[rip+8]
	call	taskqueue_start_threads@PLT
	test	rax, rax
	jne	.L11
.L2:
	mov	rax, QWORD PTR CAM_DEBUG_NONE[rip]
	cmp	QWORD PTR cam_dflags[rip], rax
	jne	.L12
	mov	QWORD PTR cam_dpath[rip], 0
.L4:
	mov	edi, 1
	call	periphdriver_init@PLT
	xor	eax, eax
	call	xpt_hold_boot@PLT
	mov	esi, 1
	lea	rdi, xsoftc[rip+4]
	call	callout_init@PLT
	mov	esi, DWORD PTR xsoftc[rip]
	xor	r9d, r9d
	xor	edx, edx
	imul	esi, DWORD PTR SBT_1MS[rip]
	mov	ecx, DWORD PTR xpt_boot_delay[rip]
	xor	r8d, r8d
	lea	rdi, xsoftc[rip+4]
	call	callout_reset_sbt@PLT
	lea	rax, .LC3[rip]
	xor	ecx, ecx
	xor	esi, esi
	push	rax
	.cfi_def_cfa_offset 24
	lea	rax, .LC4[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	push	rax
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR xpt_scanner_thread[rip]
	lea	rdx, cam_proc[rip]
	call	kproc_kthread_add@PLT
	pop	rdx
	.cfi_def_cfa_offset 24
	pop	rcx
	.cfi_def_cfa_offset 16
	test	rax, rax
	jne	.L13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	r8d, DWORD PTR CAM_DEBUG_LUN[rip]
	mov	ecx, DWORD PTR CAM_DEBUG_TARGET[rip]
	xor	esi, esi
	lea	rdi, cam_dpath[rip]
	mov	edx, DWORD PTR CAM_DEBUG_BUS[rip]
	call	xpt_create_path@PLT
	cmp	rax, QWORD PTR CAM_REQ_CMP[rip]
	je	.L4
	mov	ecx, DWORD PTR CAM_DEBUG_LUN[rip]
	mov	edx, DWORD PTR CAM_DEBUG_TARGET[rip]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	mov	esi, DWORD PTR CAM_DEBUG_BUS[rip]
	call	printf@PLT
	mov	rax, QWORD PTR CAM_DEBUG_NONE[rip]
	mov	QWORD PTR cam_dflags[rip], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC5[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	puts@PLT
	.cfi_endproc
.LFE0:
	.size	xpt_config, .-xpt_config
	.comm	xsoftc,12,8
	.comm	xpt_scanner_thread,4,4
	.comm	xpt_boot_delay,4,4
	.comm	cam_proc,4,4
	.comm	cam_dpath,8,8
	.comm	cam_dflags,8,8
	.comm	SBT_1MS,4,4
	.comm	PRIBIO,4,4
	.comm	CAM_REQ_CMP,8,8
	.comm	CAM_DEBUG_TARGET,4,4
	.comm	CAM_DEBUG_NONE,8,8
	.comm	CAM_DEBUG_LUN,4,4
	.comm	CAM_DEBUG_BUS,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_cam_xpt.c_xpt_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CAM taskq\000"
	.align	2
.LC1:
	.ascii	"xpt_config: failed to create taskqueue thread.\000"
	.align	2
.LC2:
	.ascii	"xpt_config: xpt_create_path() failed for debug targ"
	.ascii	"et %d:%d:%d, debugging disabled\012\000"
	.align	2
.LC3:
	.ascii	"scanner\000"
	.align	2
.LC4:
	.ascii	"cam\000"
	.align	2
.LC5:
	.ascii	"xpt_config: failed to create rescan thread.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xpt_config, %function
xpt_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L14
	mov	r1, #1
	ldr	r3, .L14+4
	ldr	r2, [r2]
	ldr	r0, .L14+8
	sub	sp, sp, #16
	bl	taskqueue_start_threads
	cmp	r0, #0
	bne	.L11
.L2:
	ldr	r4, .L14+12
	ldr	r5, .L14+16
	ldr	r2, [r4]
	ldr	r3, [r5]
	cmp	r2, r3
	bne	.L12
	mov	r2, #0
	ldr	r3, .L14+20
	str	r2, [r3]
.L4:
	mov	r4, #0
	ldr	r5, .L14+24
	mov	r0, #1
	bl	periphdriver_init
	bl	xpt_hold_boot
	mov	r1, #1
	mov	r0, r5
	bl	callout_init
	ldr	r3, .L14+28
	ldr	r2, [r5, #-4]
	ldr	r1, [r3]
	ldr	r3, .L14+32
	str	r4, [sp, #4]
	str	r4, [sp]
	mul	r1, r2, r1
	ldr	r3, [r3]
	mov	r2, r4
	mov	r0, r5
	bl	callout_reset_sbt
	ldr	ip, .L14+36
	ldr	r2, .L14+40
	ldr	r0, .L14+44
	str	r4, [sp, #4]
	str	r4, [sp]
	ldr	r0, [r0]
	mov	r3, r4
	str	r2, [sp, #8]
	mov	r1, r4
	ldr	r2, .L14+48
	str	ip, [sp, #12]
	bl	kproc_kthread_add
	cmp	r0, r4
	bne	.L13
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r8, .L14+52
	ldr	r7, .L14+56
	ldr	r3, [r8]
	ldr	r6, .L14+60
	str	r3, [sp]
	mov	r1, #0
	ldr	r3, [r7]
	ldr	r2, [r6]
	ldr	r0, .L14+20
	bl	xpt_create_path
	ldr	r3, .L14+64
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L4
	ldr	r3, [r8]
	ldr	r2, [r7]
	ldr	r1, [r6]
	ldr	r0, .L14+68
	bl	printf
	ldr	r3, [r5]
	str	r3, [r4]
	b	.L4
.L11:
	ldr	r0, .L14+72
	bl	puts
	b	.L2
.L13:
	ldr	r0, .L14+76
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	puts
.L15:
	.align	2
.L14:
	.word	PRIBIO
	.word	.LC0
	.word	xsoftc+8
	.word	cam_dflags
	.word	CAM_DEBUG_NONE
	.word	cam_dpath
	.word	xsoftc+4
	.word	SBT_1MS
	.word	xpt_boot_delay
	.word	.LC3
	.word	.LC4
	.word	xpt_scanner_thread
	.word	cam_proc
	.word	CAM_DEBUG_LUN
	.word	CAM_DEBUG_TARGET
	.word	CAM_DEBUG_BUS
	.word	CAM_REQ_CMP
	.word	.LC2
	.word	.LC1
	.word	.LC5
	.size	xpt_config, .-xpt_config
	.comm	xsoftc,12,4
	.comm	xpt_scanner_thread,4,4
	.comm	xpt_boot_delay,4,4
	.comm	cam_proc,4,4
	.comm	cam_dpath,4,4
	.comm	cam_dflags,4,4
	.comm	SBT_1MS,4,4
	.comm	PRIBIO,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	CAM_DEBUG_TARGET,4,4
	.comm	CAM_DEBUG_NONE,4,4
	.comm	CAM_DEBUG_LUN,4,4
	.comm	CAM_DEBUG_BUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
