	.file	"extr_vdev_initialize.c_vdev_initialize_load.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vdev_initialize_load, @function
vdev_initialize_load:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR RW_READER[rip]
	mov	esi, DWORD PTR SCL_CONFIG[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	rdi, QWORD PTR 24[rdi]
	call	spa_config_held@PLT
	mov	edi, 1
	test	rax, rax
	je	.L12
.L2:
	call	ASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	setne	dil
	call	ASSERT@PLT
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR VDEV_INITIALIZE_ACTIVE[rip]
	je	.L3
	cmp	rax, QWORD PTR VDEV_INITIALIZE_SUSPENDED[rip]
	je	.L3
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	vdev_initialize_calculate_progress@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR VDEV_LEAF_ZAP_INITIALIZE_LAST_OFFSET[rip]
	lea	r9, 16[rbp]
	mov	r8d, 1
	mov	rsi, QWORD PTR 0[rbp]
	mov	ecx, 4
	mov	edi, DWORD PTR [rax]
	call	zap_lookup@PLT
	mov	edi, 1
	test	eax, eax
	je	.L5
	xor	edi, edi
	cmp	DWORD PTR ENOENT[rip], eax
	sete	dil
.L5:
	call	ASSERT@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	vdev_initialize_calculate_progress@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR RW_WRITER[rip]
	mov	esi, DWORD PTR SCL_CONFIG[rip]
	call	spa_config_held@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	vdev_initialize_load, .-vdev_initialize_load
	.comm	VDEV_LEAF_ZAP_INITIALIZE_LAST_OFFSET,4,4
	.comm	VDEV_INITIALIZE_SUSPENDED,8,8
	.comm	VDEV_INITIALIZE_ACTIVE,8,8
	.comm	SCL_CONFIG,4,4
	.comm	RW_WRITER,4,4
	.comm	RW_READER,4,4
	.comm	ENOENT,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_vdev_initialize.c_vdev_initialize_load.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdev_initialize_load, %function
vdev_initialize_load:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L11
	ldr	r5, .L11+4
	mov	r4, r0
	ldr	r2, [r3]
	ldr	r0, [r0, #12]
	ldr	r1, [r5]
	sub	sp, sp, #12
	bl	spa_config_held
	cmp	r0, #0
	movne	r0, #1
	beq	.L10
.L2:
	bl	ASSERT
	ldr	r0, [r4]
	subs	r0, r0, #0
	movne	r0, #1
	bl	ASSERT
	ldr	r2, .L11+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L11+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	vdev_initialize_calculate_progress
.L3:
	mov	r5, #1
	ldr	r3, [r4, #12]
	ldr	r2, .L11+16
	ldr	r0, [r3]
	str	r5, [sp]
	add	r3, r4, #8
	ldr	r2, [r2]
	str	r3, [sp, #4]
	ldr	r1, [r4]
	mov	r3, #4
	bl	zap_lookup
	cmp	r0, #0
	ldrne	r3, .L11+20
	moveq	r0, r5
	ldrne	r5, [r3]
	subne	r0, r5, r0
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	ASSERT
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	vdev_initialize_calculate_progress
.L10:
	ldr	r3, .L11+24
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r0, [r4, #12]
	bl	spa_config_held
	subs	r0, r0, #0
	movne	r0, #1
	b	.L2
.L12:
	.align	2
.L11:
	.word	RW_READER
	.word	SCL_CONFIG
	.word	VDEV_INITIALIZE_ACTIVE
	.word	VDEV_INITIALIZE_SUSPENDED
	.word	VDEV_LEAF_ZAP_INITIALIZE_LAST_OFFSET
	.word	ENOENT
	.word	RW_WRITER
	.size	vdev_initialize_load, .-vdev_initialize_load
	.comm	VDEV_LEAF_ZAP_INITIALIZE_LAST_OFFSET,4,4
	.comm	VDEV_INITIALIZE_SUSPENDED,4,4
	.comm	VDEV_INITIALIZE_ACTIVE,4,4
	.comm	SCL_CONFIG,4,4
	.comm	RW_WRITER,4,4
	.comm	RW_READER,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
