	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libzfs_core_init               ## -- Begin function libzfs_core_init
	.p2align	4, 0x90
_libzfs_core_init:                      ## @libzfs_core_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_g_lock@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	_g_refcount@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movq	_g_fd@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
LBB0_3:
	incq	%rax
	movq	%rax, (%rbx)
	movq	_g_lock@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_g_lock@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_g_lock,4,2                     ## @g_lock
	.comm	_g_refcount,8,3                 ## @g_refcount
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/zfs"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_g_fd,8,3                       ## @g_fd
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libzfs_core_init               ; -- Begin function libzfs_core_init
	.p2align	2
_libzfs_core_init:                      ; @libzfs_core_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, _g_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _g_lock@GOTPAGEOFF]
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x19, _g_refcount@GOTPAGE
Lloh3:
	ldr	x19, [x19, _g_refcount@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
Lloh9:
	adrp	x8, _g_fd@GOTPAGE
Lloh10:
	ldr	x8, [x8, _g_fd@GOTPAGEOFF]
Lloh11:
	str	x0, [x8]
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	x8, [x19]
LBB0_3:
	add	x8, x8, #1
	str	x8, [x19]
Lloh12:
	adrp	x0, _g_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _g_lock@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh14:
	adrp	x0, _g_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _g_lock@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_g_lock,4,2                     ; @g_lock
	.comm	_g_refcount,8,3                 ; @g_refcount
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/zfs"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_g_fd,8,3                       ; @g_fd
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
