	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_make_dataset_handle            ## -- Begin function make_dataset_handle
	.p2align	4, 0x90
_make_dataset_handle:                   ## @make_dataset_handle
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$0, -32(%rbp)
	movl	$16, %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_zcmd_alloc_dst_nvlist
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_free
LBB0_3:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_stats_ioctl
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.5:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_make_dataset_handle_common
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_7:
	leaq	-32(%rbp), %rdi
	callq	_zcmd_free_nvlists
	jmp	LBB0_8
LBB0_9:
	leaq	-32(%rbp), %rdi
	callq	_zcmd_free_nvlists
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_make_dataset_handle            ; -- Begin function make_dataset_handle
	.p2align	2
_make_dataset_handle:                   ; @make_dataset_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	str	wzr, [sp, #8]
	mov	w0, #16
	mov	w1, #1
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	str	x20, [x19, #8]
	ldr	w0, [x19]
	mov	x1, x21
	mov	w2, #4
	bl	_strlcpy
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	bl	_zcmd_alloc_dst_nvlist
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_7
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_get_stats_ioctl
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_make_dataset_handle_common
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_6:
	add	x0, sp, #8
	bl	_zcmd_free_nvlists
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	add	x0, sp, #8
	bl	_zcmd_free_nvlists
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
