	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zfs_lookup_dataset
_zfs_lookup_dataset:                    ## @zfs_lookup_dataset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DMU_POOL_DIRECTORY_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-312(%rbp), %rcx
	movq	%rdi, %rsi
	callq	_objset_get_dnode
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_DMU_POOL_ROOT_DATASET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-312(%rbp), %rsi
	leaq	-316(%rbp), %r9
	movq	%r15, %rdi
	movl	$4, %ecx
	movl	$1, %r8d
	callq	_zap_lookup
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.5:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-312(%rbp), %r13
	leaq	-304(%rbp), %rbx
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	-316(%rbp), %edx
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%r13, %rcx
	callq	_objset_get_dnode
	testq	%rax, %rax
	jne	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %r13
	subq	%r12, %r13
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12), %eax
	cmpb	$47, %al
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%r12
	decq	%r13
	incq	%rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	%al, %al
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, -328(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r14
	movl	%r14d, %edx
	subl	%ebx, %edx
	leaq	-304(%rbp), %rdi
	movq	%r12, %rsi
	callq	_memcpy
	movb	$0, (%r13,%r14)
	incq	%r14
	movq	%r14, %r12
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	-304(%rbp), %rdi
	movq	%r12, %rsi
	callq	_strcpy
	movq	%r12, %rdi
	callq	_strlen
	cltq
	addq	%rax, %r12
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	-312(%rbp), %r13
	movl	-308(%rbp), %edx
	movq	%r15, %rdi
	movq	%r15, %rsi
	leaq	-336(%rbp), %rbx
	movq	%rbx, %rcx
	callq	_objset_get_dnode
	testq	%rax, %rax
	movq	-328(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_2
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$4, %ecx
	movl	$1, %r8d
	leaq	-316(%rbp), %r9
	callq	_zap_lookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.17:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_18:
	movl	-312(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DMU_POOL_DIRECTORY_OBJECT,4,2  ## @DMU_POOL_DIRECTORY_OBJECT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DMU_POOL_ROOT_DATASET,8,3      ## @DMU_POOL_ROOT_DATASET
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_zfs_lookup_dataset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zfs_lookup_dataset
_zfs_lookup_dataset:                    ; @zfs_lookup_dataset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x26, x25, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _DMU_POOL_DIRECTORY_OBJECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMU_POOL_DIRECTORY_OBJECT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x1, x0
	bl	_objset_get_dnode
	cbnz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _DMU_POOL_ROOT_DATASET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMU_POOL_ROOT_DATASET@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x8]
	add	x1, sp, #8
	add	x5, sp, #20
	mov	x0, x20
	mov	w3, #4
	mov	w4, #1
	bl	_zap_lookup
	cbz	x0, LBB0_6
LBB0_2:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.5:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_6:
	add	x23, sp, #24
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w2, [sp, #20]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x20
	bl	_objset_get_dnode
	cbnz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x24, x23, x21
	mov	x25, x21
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x21]
	cmp	w8, #47
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x21, x21, #1
	sub	x24, x24, #1
	add	x25, x25, #1
	b	LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w8, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	sub	w2, w22, w25
	add	x0, sp, #24
	mov	x1, x21
	bl	_memcpy
	strb	wzr, [x24, x22]
	add	x21, x22, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #24
	mov	x1, x21
	bl	_strcpy
	mov	x0, x21
	bl	_strlen
	add	x21, x21, w0, sxtw
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [sp, #12]
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x20
	bl	_objset_get_dnode
	cbnz	x0, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #16
	add	x2, sp, #24
	add	x5, sp, #20
	mov	x0, x20
	mov	w3, #4
	mov	w4, #1
	bl	_zap_lookup
	cbz	x0, LBB0_7
; %bb.17:
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_3
LBB0_18:
	mov	w0, #0
	ldr	w8, [sp, #8]
	str	w8, [x19]
	b	LBB0_4
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DMU_POOL_DIRECTORY_OBJECT,4,2  ; @DMU_POOL_DIRECTORY_OBJECT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DMU_POOL_ROOT_DATASET,8,3      ; @DMU_POOL_ROOT_DATASET
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_zfs_lookup_dataset
.subsections_via_symbols
