	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_nextboot                 ## -- Begin function zpool_nextboot
	.p2align	4, 0x90
_zpool_nextboot:                        ## @zpool_nextboot
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_fnvlist_alloc
	movq	%rax, %r12
	movq	_ZPOOL_CONFIG_POOL_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_fnvlist_add_uint64
	movq	_ZPOOL_CONFIG_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_fnvlist_add_uint64
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_fnvlist_add_string
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_zcmd_write_src_nvlist
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_ZFS_IOC_NEXTBOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	movl	%eax, %ebx
LBB0_2:
	leaq	-48(%rbp), %rdi
	callq	_zcmd_free_nvlists
	movq	%r12, %rdi
	callq	_nvlist_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPOOL_CONFIG_POOL_GUID,4,2     ## @ZPOOL_CONFIG_POOL_GUID
	.comm	_ZPOOL_CONFIG_GUID,4,2          ## @ZPOOL_CONFIG_GUID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"command"

	.comm	_ZFS_IOC_NEXTBOOT,4,2           ## @ZFS_IOC_NEXTBOOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_nextboot                 ; -- Begin function zpool_nextboot
	.p2align	2
_zpool_nextboot:                        ; @zpool_nextboot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	str	wzr, [sp, #8]
	bl	_fnvlist_alloc
	mov	x19, x0
Lloh0:
	adrp	x8, _ZPOOL_CONFIG_POOL_GUID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPOOL_CONFIG_POOL_GUID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_fnvlist_add_uint64
Lloh3:
	adrp	x8, _ZPOOL_CONFIG_GUID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZPOOL_CONFIG_GUID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_fnvlist_add_uint64
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_fnvlist_add_string
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_zcmd_write_src_nvlist
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _ZFS_IOC_NEXTBOOT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZFS_IOC_NEXTBOOT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	mov	x21, x0
LBB0_2:
	add	x0, sp, #8
	bl	_zcmd_free_nvlists
	mov	x0, x19
	bl	_nvlist_free
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPOOL_CONFIG_POOL_GUID,4,2     ; @ZPOOL_CONFIG_POOL_GUID
	.comm	_ZPOOL_CONFIG_GUID,4,2          ; @ZPOOL_CONFIG_GUID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"command"

	.comm	_ZFS_IOC_NEXTBOOT,4,2           ; @ZFS_IOC_NEXTBOOT
.subsections_via_symbols
