	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpl	$2, %edi
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	callq	_strlen
	movq	_MAX_COMMAND_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_10
## %bb.2:
	movq	_KENV_GET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movl	$32, %ecx
	callq	_kenv
	testq	%rax, %rax
	jle	LBB0_16
## %bb.3:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoumax
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	movq	%rax, %r14
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movl	$32, %ecx
	callq	_kenv
	testq	%rax, %rax
	jle	LBB0_18
## %bb.5:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoumax
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_libzfs_init
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %r15
	movq	8(%rbx), %rcx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_zpool_nextboot
	testq	%rax, %rax
	jne	LBB0_21
## %bb.8:
	movq	%r15, %rdi
	callq	_libzfs_fini
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
LBB0_12:
	callq	_fprintf
LBB0_13:
	movl	$1, %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_22
## %bb.15:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.7(%rip), %rdi
LBB0_20:
	callq	_perror
	jmp	LBB0_13
LBB0_21:
	leaq	L_.str.9(%rip), %rdi
	callq	_perror
	movq	%r15, %rdi
	callq	_libzfs_fini
	jmp	LBB0_13
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: zfsbootcfg <boot.config(5) options>\n"

	.comm	_MAX_COMMAND_LEN,4,2            ## @MAX_COMMAND_LEN
L_.str.1:                               ## @.str.1
	.asciz	"options string is too long\n"

	.comm	_KENV_GET,4,2                   ## @KENV_GET
L_.str.2:                               ## @.str.2
	.asciz	"vfs.zfs.boot.primary_pool"

L_.str.3:                               ## @.str.3
	.asciz	"can't get vfs.zfs.boot.primary_pool"

L_.str.4:                               ## @.str.4
	.asciz	"can't parse vfs.zfs.boot.primary_pool"

L_.str.5:                               ## @.str.5
	.asciz	"vfs.zfs.boot.primary_vdev"

L_.str.6:                               ## @.str.6
	.asciz	"can't get vfs.zfs.boot.primary_vdev"

L_.str.7:                               ## @.str.7
	.asciz	"can't parse vfs.zfs.boot.primary_vdev"

L_.str.8:                               ## @.str.8
	.asciz	"internal error: failed to initialize ZFS library\n"

L_.str.9:                               ## @.str.9
	.asciz	"ZFS_IOC_NEXTBOOT failed"

L_str:                                  ## @str
	.asciz	"zfs next boot options are successfully written"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x1
	ldr	x0, [x1, #8]
	bl	_strlen
Lloh3:
	adrp	x8, _MAX_COMMAND_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_COMMAND_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_10
; %bb.2:
Lloh6:
	adrp	x21, _KENV_GET@GOTPAGE
Lloh7:
	ldr	x21, [x21, _KENV_GET@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	w3, #32
	bl	_kenv
	cmp	x0, #0
	b.le	LBB0_16
; %bb.3:
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #10
	bl	_strtoumax
	cbz	x0, LBB0_17
; %bb.4:
	mov	x20, x0
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #8
	mov	w3, #32
	bl	_kenv
	cmp	x0, #0
	b.le	LBB0_18
; %bb.5:
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #10
	bl	_strtoumax
	cbz	x0, LBB0_19
; %bb.6:
	mov	x22, x0
	bl	_libzfs_init
	cbz	x0, LBB0_11
; %bb.7:
	mov	x21, x0
	ldr	x3, [x19, #8]
	mov	x1, x20
	mov	x2, x22
	bl	_zpool_nextboot
	cbnz	x0, LBB0_21
; %bb.8:
	mov	x0, x21
	bl	_libzfs_fini
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	b	LBB0_14
LBB0_9:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_12:
	bl	_fprintf
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldr	x8, [sp, #40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_17:
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_18:
Lloh36:
	adrp	x0, l_.str.6@PAGE
Lloh37:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh38:
	adrp	x0, l_.str.7@PAGE
Lloh39:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_20:
	bl	_perror
	b	LBB0_13
LBB0_21:
Lloh40:
	adrp	x0, l_.str.9@PAGE
Lloh41:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_perror
	mov	x0, x21
	bl	_libzfs_fini
	b	LBB0_13
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: zfsbootcfg <boot.config(5) options>\n"

	.comm	_MAX_COMMAND_LEN,4,2            ; @MAX_COMMAND_LEN
l_.str.1:                               ; @.str.1
	.asciz	"options string is too long\n"

	.comm	_KENV_GET,4,2                   ; @KENV_GET
l_.str.2:                               ; @.str.2
	.asciz	"vfs.zfs.boot.primary_pool"

l_.str.3:                               ; @.str.3
	.asciz	"can't get vfs.zfs.boot.primary_pool"

l_.str.4:                               ; @.str.4
	.asciz	"can't parse vfs.zfs.boot.primary_pool"

l_.str.5:                               ; @.str.5
	.asciz	"vfs.zfs.boot.primary_vdev"

l_.str.6:                               ; @.str.6
	.asciz	"can't get vfs.zfs.boot.primary_vdev"

l_.str.7:                               ; @.str.7
	.asciz	"can't parse vfs.zfs.boot.primary_vdev"

l_.str.8:                               ; @.str.8
	.asciz	"internal error: failed to initialize ZFS library\n"

l_.str.9:                               ; @.str.9
	.asciz	"ZFS_IOC_NEXTBOOT failed"

l_str:                                  ; @str
	.asciz	"zfs next boot options are successfully written"

.subsections_via_symbols
