	.file	"extr_spa.c_spa_vdev_initializing.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	spa_vdev_initializing, @function
spa_vdev_initializing:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, 8[rdi]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, r14
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	mutex_exit@PLT
	mov	ecx, DWORD PTR RW_READER[rip]
	mov	edx, DWORD PTR FTAG[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR SCL_CONFIG[rip]
	or	esi, DWORD PTR SCL_STATE[rip]
	call	spa_config_enter@PLT
	mov	rdi, r14
	call	mutex_enter@PLT
	test	rbx, rbx
	jne	.L11
	mov	rdi, QWORD PTR 0[rbp]
.L4:
	call	spa_vdev_initializing_impl@PLT
	mov	edx, DWORD PTR FTAG[rip]
	mov	esi, DWORD PTR SCL_CONFIG[rip]
	mov	rdi, rbp
	mov	QWORD PTR [r12], rax
	or	esi, DWORD PTR SCL_STATE[rip]
	call	spa_config_exit@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, DWORD PTR B_FALSE[rip]
	mov	rdi, rbp
	mov	esi, r13d
	call	spa_lookup_by_guid@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L4
.L3:
	mov	edx, DWORD PTR FTAG[rip]
	mov	esi, DWORD PTR SCL_CONFIG[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR SCL_STATE[rip]
	call	spa_config_exit@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR EINVAL[rip]
	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
	ret
	.cfi_endproc
.LFE0:
	.size	spa_vdev_initializing, .-spa_vdev_initializing
	.comm	SCL_STATE,4,4
	.comm	SCL_CONFIG,4,4
	.comm	RW_READER,4,4
	.comm	FTAG,4,4
	.comm	EINVAL,4,4
	.comm	B_FALSE,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_spa.c_spa_vdev_initializing.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spa_vdev_initializing, %function
spa_vdev_initializing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r5, r1
	add	fp, r0, #4
	ldr	r10, .L12
	ldr	r9, .L12+4
	mov	r0, fp
	mov	r7, r2
	mov	r6, r3
	ldr	r8, .L12+8
	bl	mutex_exit
	ldr	r2, [r9]
	ldr	r1, [r10]
	ldr	r3, .L12+12
	orr	r1, r1, r2
	ldr	r3, [r3]
	ldr	r2, [r8]
	mov	r0, r4
	bl	spa_config_enter
	mov	r0, fp
	bl	mutex_enter
	cmp	r5, #0
	ldreq	r0, [r4]
	bne	.L11
.L4:
	bl	spa_vdev_initializing_impl
	ldr	r1, [r10]
	ldr	r3, [r9]
	ldr	r2, [r8]
	str	r0, [r6]
	orr	r1, r1, r3
	mov	r0, r4
	bl	spa_config_exit
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, .L12+16
	mov	r1, r7
	mov	r0, r4
	ldr	r2, [r3]
	bl	spa_lookup_by_guid
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r0]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
.L3:
	ldr	r3, [r9]
	ldr	r1, [r10]
	mov	r0, r4
	orr	r1, r1, r3
	ldr	r2, [r8]
	bl	spa_config_exit
	ldr	r3, .L12+20
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	SCL_CONFIG
	.word	SCL_STATE
	.word	FTAG
	.word	RW_READER
	.word	B_FALSE
	.word	EINVAL
	.size	spa_vdev_initializing, .-spa_vdev_initializing
	.comm	SCL_STATE,4,4
	.comm	SCL_CONFIG,4,4
	.comm	RW_READER,4,4
	.comm	FTAG,4,4
	.comm	EINVAL,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
