	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function py_next_dataset
_py_next_dataset:                       ## @py_next_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rdi
	movq	$0, -44(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	leaq	-52(%rbp), %r8
	callq	_PyArg_ParseTuple
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movq	-32(%rbp), %rsi
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_strlcpy
	movl	-52(%rbp), %eax
	movl	%eax, -48(%rbp)
	cmpl	$0, -20(%rbp)
	jne	LBB0_2
## %bb.3:
	movq	_ZFS_IOC_DATASET_LIST_NEXT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_ZFS_IOC_SNAPSHOT_LIST_NEXT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_ioctl_with_dstnv
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_add_ds_props
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rcx
	callq	_Py_BuildValue
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_Py_DECREF
	jmp	LBB0_13
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_PyExc_StopIteration@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PyErr_SetNone
	jmp	LBB0_12
LBB0_8:
	cmpl	$0, -20(%rbp)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
LBB0_11:
	callq	__
	movq	-32(%rbp), %rsi
	movl	%eax, %edi
	callq	_seterr
LBB0_12:
	xorl	%r14d, %r14d
LBB0_13:
	movq	%r14, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"siK"

	.comm	_ZFS_IOC_SNAPSHOT_LIST_NEXT,4,2 ## @ZFS_IOC_SNAPSHOT_LIST_NEXT
	.comm	_ZFS_IOC_DATASET_LIST_NEXT,4,2  ## @ZFS_IOC_DATASET_LIST_NEXT
L_.str.1:                               ## @.str.1
	.asciz	"sKO"

	.comm	_errno,8,3                      ## @errno
	.comm	_ESRCH,8,3                      ## @ESRCH
	.comm	_PyExc_StopIteration,4,2        ## @PyExc_StopIteration
L_.str.2:                               ## @.str.2
	.asciz	"cannot get snapshots of %s"

L_.str.3:                               ## @.str.3
	.asciz	"cannot get child datasets of %s"

	.no_dead_strip	_py_next_dataset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function py_next_dataset
_py_next_dataset:                       ; @py_next_dataset
	.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
	mov	x0, x1
	stur	xzr, [sp, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, sp
	add	x3, sp, #12
	sub	x4, x29, #20
	bl	_PyArg_ParseTuple
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x1, [sp]
	mov	w0, #0
	mov	w2, #4
	bl	_strlcpy
	ldur	w8, [x29, #-20]
	str	w8, [sp, #16]
Lloh2:
	adrp	x8, _ZFS_IOC_DATASET_LIST_NEXT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZFS_IOC_DATASET_LIST_NEXT@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh4:
	adrp	x10, _ZFS_IOC_SNAPSHOT_LIST_NEXT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ZFS_IOC_SNAPSHOT_LIST_NEXT@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	add	x1, sp, #16
	bl	_ioctl_with_dstnv
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, x0
	add	x0, sp, #16
	mov	x1, x19
	bl	_add_ds_props
	ldp	w2, w1, [sp, #16]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_Py_BuildValue
	mov	x20, x0
	mov	x0, x19
	bl	_Py_DECREF
	b	LBB0_10
LBB0_3:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _ESRCH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ESRCH@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _PyExc_StopIteration@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PyExc_StopIteration@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_PyErr_SetNone
	b	LBB0_9
LBB0_5:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.6:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	bl	__
	ldr	x1, [sp]
	bl	_seterr
LBB0_9:
	mov	x20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"siK"

	.comm	_ZFS_IOC_SNAPSHOT_LIST_NEXT,4,2 ; @ZFS_IOC_SNAPSHOT_LIST_NEXT
	.comm	_ZFS_IOC_DATASET_LIST_NEXT,4,2  ; @ZFS_IOC_DATASET_LIST_NEXT
l_.str.1:                               ; @.str.1
	.asciz	"sKO"

	.comm	_errno,8,3                      ; @errno
	.comm	_ESRCH,8,3                      ; @ESRCH
	.comm	_PyExc_StopIteration,4,2        ; @PyExc_StopIteration
l_.str.2:                               ; @.str.2
	.asciz	"cannot get snapshots of %s"

l_.str.3:                               ; @.str.3
	.asciz	"cannot get child datasets of %s"

	.no_dead_strip	_py_next_dataset
.subsections_via_symbols
