	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bectl_cmd_create
_bectl_cmd_create:                      ## @bectl_cmd_create
	.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	%rsi, %r14
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BE_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r15
	xorl	%ebx, %ebx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%ebx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %ebx
	movl	%r12d, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	movl	$1, %ecx
	cmpl	$114, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$101, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_9:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subl	%eax, %r12d
	cmpl	$1, %r12d
	jne	LBB0_10
## %bb.12:
	movq	(%r14,%rax,8), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_13
## %bb.22:
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	movq	_be@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_be_snapshot
	movl	%eax, %ebx
	movl	$128, %eax
	cmpl	$128, %ebx
	je	LBB0_26
## %bb.23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	%ebx, %eax
	jmp	LBB0_26
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_optopt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_7
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.8:
	xorl	%edi, %edi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usage                          ## TAILCALL
LBB0_13:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_14
## %bb.15:
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_strlcpy
	jmp	LBB0_19
LBB0_14:
	movq	_be@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_be_active_path
	movl	%r15d, %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, %rsi
	jmp	LBB0_18
LBB0_17:
	movq	_be@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
LBB0_18:
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_be_snapshot
	movl	%eax, %r12d
	cmpl	$128, %eax
	jne	LBB0_20
LBB0_19:
	movq	_be@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	negl	%ebx
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_be_create_depth
	movl	%eax, %r12d
	movl	$128, %eax
	cmpl	$128, %r12d
	je	LBB0_26
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%r15, %r15
	je	LBB0_21
## %bb.24:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_25
LBB0_21:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_25:
	movl	%r12d, %eax
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_MAXPATHLEN,4,2              ## @BE_MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"e:r"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"bectl create: unknown option '-%c'\n"

	.comm	_optopt,4,2                     ## @optopt
	.comm	_optind,8,3                     ## @optind
L_.str.2:                               ## @.str.2
	.asciz	"bectl create: wrong number of arguments\n"

	.comm	_be,4,2                         ## @be
L_.str.3:                               ## @.str.3
	.asciz	"failed to create a snapshot '%s' of '%s'\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to create bootenv %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to create bootenv %s from snapshot %s\n"

	.no_dead_strip	_bectl_cmd_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bectl_cmd_create
_bectl_cmd_create:                      ; @bectl_cmd_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _BE_MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BE_MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	mov	x19, #0
	mov	w20, #0
Lloh8:
	adrp	x26, _optarg@GOTPAGE
Lloh9:
	ldr	x26, [x26, _optarg@GOTPAGEOFF]
Lloh10:
	adrp	x25, l_.str@PAGE
Lloh11:
	add	x25, x25, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x8, x20
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x20, x8
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	bl	_getopt
	mov	w8, #1
	cmp	w0, #114
	b.eq	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #101
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x19, [x26]
	b	LBB0_1
LBB0_6:
Lloh12:
	adrp	x8, _optind@GOTPAGE
Lloh13:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	sub	w9, w24, w8
	cmp	w9, #1
	b.ne	LBB0_11
; %bb.7:
	ldr	x22, [x22, x8, lsl #3]
	mov	x0, x22
	mov	w1, #64
	bl	_strchr
	cbz	x0, LBB0_14
; %bb.8:
	mov	x24, x0
	strb	wzr, [x24], #1
Lloh15:
	adrp	x8, _be@GOTPAGE
Lloh16:
	ldr	x8, [x8, _be@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x24
	mov	x3, x20
	mov	x4, #0
	bl	_be_snapshot
	mov	x23, x0
	cmp	w0, #128
	b.eq	LBB0_25
; %bb.9:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	stp	x24, x22, [sp, #-16]!
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_10:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _optopt@GOTPAGE
Lloh27:
	ldr	x8, [x8, _optopt@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	x8, [sp, #-16]!
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
	b	LBB0_12
LBB0_11:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.13:
	mov	w0, #0
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_usage
LBB0_14:
	cbz	x19, LBB0_17
; %bb.15:
	mov	x0, x19
	mov	w1, #64
	bl	_strchr
	cbz	x0, LBB0_18
; %bb.16:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	bl	_strlcpy
	b	LBB0_20
LBB0_17:
Lloh39:
	adrp	x8, _be@GOTPAGE
Lloh40:
	ldr	x8, [x8, _be@GOTPAGEOFF]
Lloh41:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_be_active_path
	mov	x1, x0
	mov	x0, x23
	b	LBB0_19
LBB0_18:
Lloh42:
	adrp	x8, _be@GOTPAGE
Lloh43:
	ldr	x8, [x8, _be@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	mov	x1, x19
LBB0_19:
	mov	x2, #0
	mov	x3, x20
	mov	x4, x21
	bl	_be_snapshot
	mov	x23, x0
	cmp	w0, #128
	b.ne	LBB0_21
LBB0_20:
Lloh45:
	adrp	x8, _be@GOTPAGE
Lloh46:
	ldr	x8, [x8, _be@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	neg	w3, w20
	mov	x1, x22
	mov	x2, x21
	bl	_be_create_depth
	mov	x23, x0
	cmp	w0, #128
	b.eq	LBB0_25
LBB0_21:
Lloh48:
	adrp	x8, _stderr@GOTPAGE
Lloh49:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	sub	sp, sp, #16
	cbz	x19, LBB0_23
; %bb.22:
	stp	x22, x19, [sp]
Lloh51:
	adrp	x1, l_.str.5@PAGE
Lloh52:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_24
LBB0_23:
	str	x22, [sp]
Lloh53:
	adrp	x1, l_.str.4@PAGE
Lloh54:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_24:
	bl	_fprintf
	add	sp, sp, #16
LBB0_25:
	ldur	x8, [x29, #-72]
Lloh55:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh56:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x23
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_MAXPATHLEN,4,2              ; @BE_MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"e:r"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"bectl create: unknown option '-%c'\n"

	.comm	_optopt,4,2                     ; @optopt
	.comm	_optind,8,3                     ; @optind
l_.str.2:                               ; @.str.2
	.asciz	"bectl create: wrong number of arguments\n"

	.comm	_be,4,2                         ; @be
l_.str.3:                               ; @.str.3
	.asciz	"failed to create a snapshot '%s' of '%s'\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to create bootenv %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to create bootenv %s from snapshot %s\n"

	.no_dead_strip	_bectl_cmd_create
.subsections_via_symbols
