	.file	"extr_dsl_scan.c_dsl_scan_prefetch.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dsl_scan_prefetch, @function
dsl_scan_prefetch:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR zfs_no_scrub_prefetch[rip], 0
	je	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r13, QWORD PTR [rdi]
	mov	r12, rdi
	mov	rdi, rsi
	mov	rbx, rsi
	mov	rbp, rdx
	mov	rax, QWORD PTR 16[r13]
	mov	r14, QWORD PTR [rax]
	call	BP_IS_REDACTED@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, rbx
	call	BP_IS_HOLE@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 8[r13]
	cmp	QWORD PTR [rbx], rax
	jle	.L1
	mov	rdi, rbx
	call	BP_GET_LEVEL@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, rbx
	call	BP_GET_TYPE@PLT
	cmp	rax, QWORD PTR DMU_OT_DNODE[rip]
	je	.L5
	mov	rdi, rbx
	call	BP_GET_TYPE@PLT
	cmp	rax, QWORD PTR DMU_OT_OBJSET[rip]
	jne	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, rbp
	mov	rdi, r12
	call	dsl_scan_check_prefetch_resume@PLT
	test	rax, rax
	jne	.L1
	mov	rsi, r13
	mov	rdi, r12
	call	scan_prefetch_ctx_add_ref@PLT
	mov	esi, DWORD PTR KM_SLEEP[rip]
	mov	edi, 24
	call	kmem_alloc@PLT
	mov	rdi, r14
	mov	QWORD PTR 16[rax], r12
	mov	r15, rax
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 8[r15], rax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR [r15], eax
	call	mutex_enter@PLT
	lea	rdx, 4[rsp]
	mov	rsi, r15
	mov	rdi, r13
	call	avl_find@PLT
	test	rax, rax
	je	.L6
	mov	rdi, r15
	mov	esi, 24
	call	kmem_free@PLT
	mov	rdi, r12
	mov	rsi, r13
	call	scan_prefetch_ctx_rele@PLT
	mov	rdi, r14
	call	mutex_exit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR 4[rsp]
	mov	rsi, r15
	mov	rdi, r13
	call	avl_insert@PLT
	lea	rdi, 4[r14]
	call	cv_broadcast@PLT
	mov	rdi, r14
	call	mutex_exit@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dsl_scan_prefetch, .-dsl_scan_prefetch
	.comm	zfs_no_scrub_prefetch,8,8
	.comm	KM_SLEEP,4,4
	.comm	DMU_OT_OBJSET,8,8
	.comm	DMU_OT_DNODE,8,8
	.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_dsl_scan_prefetch.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsl_scan_prefetch, %function
dsl_scan_prefetch:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L15
	sub	sp, sp, #12
	ldr	r3, [r3]
	cmp	r3, #0
	ldr	r3, .L15+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L13
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	ldr	r7, [r0]
	mov	r6, r0
	ldr	r3, [r7, #8]
	mov	r0, r1
	mov	r4, r1
	mov	r5, r2
	ldr	r8, [r3]
	bl	BP_IS_REDACTED
	cmp	r0, #0
	bne	.L1
	mov	r0, r4
	bl	BP_IS_HOLE
	cmp	r0, #0
	bne	.L1
	ldr	r2, [r4]
	ldr	r3, [r7, #4]
	cmp	r2, r3
	ble	.L1
	mov	r0, r4
	bl	BP_GET_LEVEL
	cmp	r0, #0
	bne	.L5
	mov	r0, r4
	bl	BP_GET_TYPE
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L5
	mov	r0, r4
	bl	BP_GET_TYPE
	ldr	r3, .L15+12
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L1
.L5:
	mov	r1, r5
	mov	r0, r6
	bl	dsl_scan_check_prefetch_resume
	cmp	r0, #0
	bne	.L1
	mov	r1, r7
	mov	r0, r6
	bl	scan_prefetch_ctx_add_ref
	ldr	r3, .L15+16
	mov	r0, #12
	ldr	r1, [r3]
	bl	kmem_alloc
	mov	r9, r0
	ldr	r2, [r4]
	ldr	r3, [r5]
	stmib	r0, {r2, r6}
	str	r3, [r0]
	mov	r0, r8
	bl	mutex_enter
	mov	r1, r9
	mov	r2, sp
	mov	r0, r7
	bl	avl_find
	cmp	r0, #0
	beq	.L6
	mov	r0, r9
	mov	r1, #12
	bl	kmem_free
	mov	r1, r7
	mov	r0, r6
	bl	scan_prefetch_ctx_rele
	mov	r0, r8
	bl	mutex_exit
	b	.L1
.L6:
	mov	r1, r9
	ldr	r2, [sp]
	mov	r0, r7
	bl	avl_insert
	add	r0, r8, #4
	bl	cv_broadcast
	mov	r0, r8
	bl	mutex_exit
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	zfs_no_scrub_prefetch
	.word	.LC0
	.word	DMU_OT_DNODE
	.word	DMU_OT_OBJSET
	.word	KM_SLEEP
	.size	dsl_scan_prefetch, .-dsl_scan_prefetch
	.comm	zfs_no_scrub_prefetch,4,4
	.comm	KM_SLEEP,4,4
	.comm	DMU_OT_OBJSET,4,4
	.comm	DMU_OT_DNODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
