	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_set_nextboot
_be_set_nextboot:                       ## @be_set_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_ZPOOL_CONFIG_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	callq	_nvlist_lookup_nvlist_array
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_ZPOOL_CONFIG_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_nvlist_lookup_uint64
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.2:
	movl	(%r13), %edi
	movl	-48(%rbp), %edx
	movl	%r15d, %esi
	movq	%r14, %rcx
	callq	_zpool_nextboot
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_perror
LBB0_4:
	movl	$1, %eax
	jmp	LBB0_11
LBB0_5:
	cmpl	$0, -44(%rbp)
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_be_set_nextboot
	testl	%eax, %eax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ## @ZPOOL_CONFIG_CHILDREN
	.comm	_ZPOOL_CONFIG_GUID,4,2          ## @ZPOOL_CONFIG_GUID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ZFS_IOC_NEXTBOOT failed"

	.no_dead_strip	_be_set_nextboot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_set_nextboot
_be_set_nextboot:                       ; @be_set_nextboot
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x22
	bl	_nvlist_lookup_nvlist_array
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ZPOOL_CONFIG_GUID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZPOOL_CONFIG_GUID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x22
	bl	_nvlist_lookup_uint64
	cbz	x0, LBB0_8
LBB0_2:
	mov	w0, #1
	b	LBB0_9
LBB0_3:
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x1, [x8, x22, lsl #3]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_be_set_nextboot
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [sp]
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	ldr	w0, [x21]
	ldr	w2, [sp, #4]
	mov	x1, x20
	mov	x3, x19
	bl	_zpool_nextboot
	cbnz	x0, LBB0_10
LBB0_9:
	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_10:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ; @ZPOOL_CONFIG_CHILDREN
	.comm	_ZPOOL_CONFIG_GUID,4,2          ; @ZPOOL_CONFIG_GUID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ZFS_IOC_NEXTBOOT failed"

	.no_dead_strip	_be_set_nextboot
.subsections_via_symbols
