	.file	"extr_libzfs_core.c_libzfs_core_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	libzfs_core_init
	.type	libzfs_core_init, @function
libzfs_core_init:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	lea	rdi, g_lock[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR g_refcount[rip]
	test	rax, rax
	jne	.L2
	mov	esi, DWORD PTR O_RDWR[rip]
	mov	edi, DWORD PTR ZFS_DEV[rip]
	call	open@PLT
	mov	QWORD PTR g_fd[rip], rax
	test	rax, rax
	js	.L3
	mov	rax, QWORD PTR g_refcount[rip]
.L2:
	add	rax, 1
	lea	rdi, g_lock[rip]
	mov	QWORD PTR g_refcount[rip], rax
	call	pthread_mutex_unlock@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rdi, g_lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR errno[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	libzfs_core_init, .-libzfs_core_init
	.comm	g_refcount,8,8
	.comm	g_lock,4,4
	.comm	g_fd,8,8
	.comm	errno,4,4
	.comm	ZFS_DEV,4,4
	.comm	O_RDWR,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_libzfs_core.c_libzfs_core_init.c"
	.text
	.align	2
	.global	libzfs_core_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	libzfs_core_init, %function
libzfs_core_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L7
	ldr	r0, .L7+4
	bl	pthread_mutex_lock
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L7+8
	ldr	r2, .L7+12
	ldr	r0, [r3]
	ldr	r1, [r2]
	bl	open
	ldr	r3, .L7+16
	cmp	r0, #0
	str	r0, [r3]
	blt	.L3
	ldr	r3, [r4]
.L2:
	add	r3, r3, #1
	ldr	r0, .L7+4
	str	r3, [r4]
	bl	pthread_mutex_unlock
	mov	r0, #0
	pop	{r4, pc}
.L3:
	ldr	r0, .L7+4
	bl	pthread_mutex_unlock
	ldr	r3, .L7+20
	ldr	r0, [r3]
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	g_refcount
	.word	g_lock
	.word	ZFS_DEV
	.word	O_RDWR
	.word	g_fd
	.word	errno
	.size	libzfs_core_init, .-libzfs_core_init
	.comm	g_refcount,4,4
	.comm	g_lock,4,4
	.comm	g_fd,4,4
	.comm	errno,4,4
	.comm	ZFS_DEV,4,4
	.comm	O_RDWR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
