	.file	"extr_dsl_scan.c_scan_io_queues_run.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dsl_scan_iss"
	.text
	.p2align 4
	.type	scan_io_queues_run, @function
scan_io_queues_run:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 24[rdi]
	mov	edi, DWORD PTR 16[rdi]
	mov	r13, QWORD PTR [rax]
	call	ASSERT@PLT
	mov	edx, DWORD PTR RW_READER[rip]
	mov	esi, DWORD PTR SCL_CONFIG[rip]
	mov	rdi, r13
	call	spa_config_held@PLT
	mov	edi, eax
	call	ASSERT@PLT
	cmp	QWORD PTR [r12], 0
	je	.L1
	mov	rax, QWORD PTR 0[r13]
	cmp	QWORD PTR 8[r12], 0
	mov	esi, DWORD PTR [rax]
	je	.L15
.L3:
	xor	ebx, ebx
	test	esi, esi
	je	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rax]
	mov	rbp, QWORD PTR [rax+rbx*8]
	mov	rdi, rbp
	call	mutex_enter@PLT
	mov	rdx, QWORD PTR 8[rbp]
	test	rdx, rdx
	je	.L5
	mov	rdi, QWORD PTR 8[r12]
	mov	ecx, DWORD PTR TQ_SLEEP[rip]
	mov	esi, DWORD PTR scan_io_queues_run_one[rip]
	call	taskq_dispatch@PLT
	xor	edi, edi
	cmp	QWORD PTR TASKQID_INVALID[rip], rax
	setne	dil
	call	VERIFY@PLT
.L5:
	mov	rdi, rbp
	add	rbx, 1
	call	mutex_exit@PLT
	mov	rax, QWORD PTR 0[r13]
	movsx	rdx, DWORD PTR [rax]
	cmp	rdx, rbx
	ja	.L4
.L6:
	mov	rdi, QWORD PTR 8[r12]
	add	rsp, 8
	.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
	jmp	taskq_wait@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.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
.L15:
	.cfi_restore_state
	mov	r9d, DWORD PTR TASKQ_PREPOPULATE[rip]
	mov	edx, DWORD PTR minclsyspri[rip]
	mov	r8d, esi
	mov	ecx, esi
	lea	rdi, .LC0[rip]
	call	taskq_create@PLT
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR [rax]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	scan_io_queues_run, .-scan_io_queues_run
	.comm	scan_io_queues_run_one,4,4
	.comm	minclsyspri,4,4
	.comm	TQ_SLEEP,4,4
	.comm	TASKQ_PREPOPULATE,4,4
	.comm	TASKQID_INVALID,8,8
	.comm	SCL_CONFIG,4,4
	.comm	RW_READER,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_dsl_scan.c_scan_io_queues_run.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dsl_scan_iss\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan_io_queues_run, %function
scan_io_queues_run:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r3, [r0, #12]
	sub	sp, sp, #8
	ldr	r0, [r0, #8]
	ldr	r7, [r3]
	bl	ASSERT
	ldr	r3, .L15
	ldr	r2, .L15+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r7
	bl	spa_config_held
	bl	ASSERT
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L1
	ldr	r3, [r6, #4]
	ldr	r2, [r7]
	cmp	r3, #0
	ldr	r3, [r2]
	beq	.L14
.L3:
	cmp	r3, #0
	beq	.L6
	mov	r4, #0
	ldr	r10, .L15+8
	ldr	r9, .L15+12
	ldr	r8, .L15+16
.L4:
	ldr	r3, [r2, #4]
	ldr	r5, [r3, r4, lsl #2]
	add	r4, r4, #1
	mov	r0, r5
	bl	mutex_enter
	ldr	r2, [r5, #4]
	cmp	r2, #0
	beq	.L5
	ldr	r3, [r10]
	ldr	r1, [r9]
	ldr	r0, [r6, #4]
	bl	taskq_dispatch
	ldr	r3, [r8]
	subs	r0, r3, r0
	movne	r0, #1
	bl	VERIFY
.L5:
	mov	r0, r5
	bl	mutex_exit
	ldr	r2, [r7]
	ldr	r3, [r2]
	cmp	r3, r4
	bhi	.L4
.L6:
	ldr	r0, [r6, #4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	taskq_wait
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r1, .L15+20
	ldr	r2, .L15+24
	ldr	r1, [r1]
	str	r3, [sp]
	str	r1, [sp, #4]
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L15+28
	bl	taskq_create
	ldr	r2, [r7]
	str	r0, [r6, #4]
	ldr	r3, [r2]
	b	.L3
.L16:
	.align	2
.L15:
	.word	SCL_CONFIG
	.word	RW_READER
	.word	TQ_SLEEP
	.word	scan_io_queues_run_one
	.word	TASKQID_INVALID
	.word	TASKQ_PREPOPULATE
	.word	minclsyspri
	.word	.LC0
	.size	scan_io_queues_run, .-scan_io_queues_run
	.comm	scan_io_queues_run_one,4,4
	.comm	minclsyspri,4,4
	.comm	TQ_SLEEP,4,4
	.comm	TASKQ_PREPOPULATE,4,4
	.comm	TASKQID_INVALID,4,4
	.comm	SCL_CONFIG,4,4
	.comm	RW_READER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
