	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpool_open_func
_zpool_open_func:                       ## @zpool_open_func
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 24(%rdi)
	jne	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	movl	12(%rdi), %esi
	movl	20(%rdi), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_openat64
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movl	%eax, %r14d
	leaq	-32(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat64
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movl	-24(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movl	-24(%rbp), %edi
	callq	_S_ISCHR
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	-24(%rbp), %edi
	callq	_S_ISBLK
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	-32(%rbp), %rax
	movq	_SPA_MINDEVSIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_10
LBB0_8:
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_14
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.3:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nozpool_all_slices             ## TAILCALL
LBB0_10:
	leaq	-40(%rbp), %rsi
	movl	%r14d, %edi
	callq	_zpool_read_label
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r14d, %edi
	callq	_close
	movl	8(%rbx), %edi
	callq	_no_memory
	jmp	LBB0_14
LBB0_13:
	movl	%r14d, %edi
	callq	_close
	movq	-40(%rbp), %rax
	movq	%rax, (%rbx)
LBB0_14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_SPA_MINDEVSIZE,8,3             ## @SPA_MINDEVSIZE
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.no_dead_strip	_zpool_open_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpool_open_func
_zpool_open_func:                       ; @zpool_open_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #20]
	ldr	w1, [x19, #12]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_openat64
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x20, x0
	add	x1, sp, #16
	bl	_fstat64
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	w0, [sp, #24]
	bl	_S_ISREG
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	w0, [sp, #24]
	bl	_S_ISCHR
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [sp, #24]
	bl	_S_ISBLK
	cbz	w0, LBB0_7
LBB0_6:
	ldr	x8, [sp, #16]
Lloh3:
	adrp	x9, _SPA_MINDEVSIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPA_MINDEVSIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_10
LBB0_7:
	mov	x0, x20
	bl	_close
	b	LBB0_14
LBB0_8:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _ENOENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.9:
	ldp	w1, w0, [x19, #12]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_nozpool_all_slices
LBB0_10:
	add	x1, sp, #8
	mov	x0, x20
	bl	_zpool_read_label
	cbz	x0, LBB0_13
; %bb.11:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_close
	ldr	w0, [x19, #8]
	bl	_no_memory
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_close
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_SPA_MINDEVSIZE,8,3             ; @SPA_MINDEVSIZE
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.no_dead_strip	_zpool_open_func
.subsections_via_symbols
