	.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	%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
	cmpl	$1, %edi
	jle	LBB0_33
## %bb.1:
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	8(%rsi), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	cmpl	$2, %ebx
	je	LBB0_3
## %bb.2:
	testl	%eax, %eax
	je	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	cmpl	$2, %ebx
	je	LBB0_5
## %bb.4:
	testl	%eax, %eax
	je	LBB0_8
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_nvram_open_rdonly
	movb	$1, %r15b
	testq	%rax, %rax
	jne	LBB0_9
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_34
LBB0_8:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_nvram_open_staging
	testq	%rax, %rax
	je	LBB0_7
LBB0_9:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %r15d
	movl	$1, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_do_show
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%eax, %r12d
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r15d
	cmpl	%ebx, %r15d
	jge	LBB0_28
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	%r15d, %rax
	movq	(%r14,%rax,8), %r13
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_37
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r15d
	cmpl	%ebx, %r15d
	jge	LBB0_36
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movsbl	(%r13), %eax
	cmpl	$117, %eax
	je	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$115, %eax
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$103, %eax
	jne	LBB0_12
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=1
	movslq	%r15d, %rax
	movq	(%r14,%rax,8), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_do_get
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_do_info
	jmp	LBB0_11
LBB0_26:                                ##   in Loop: Header=BB0_13 Depth=1
	movslq	%r15d, %rax
	movq	(%r14,%rax,8), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_do_unset
	jmp	LBB0_11
LBB0_27:                                ##   in Loop: Header=BB0_13 Depth=1
	movslq	%r15d, %rax
	movq	(%r14,%rax,8), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_do_set
	jmp	LBB0_11
LBB0_28:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	testb	%bl, %bl
	jne	LBB0_30
LBB0_29:
	movq	%r15, %rdi
	callq	_nvram_commit
	movl	%eax, %r12d
LBB0_30:
	movq	%r15, %rdi
	callq	_nvram_close
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_32
## %bb.31:
	xorl	%eax, %eax
	callq	_staging_to_nvram
	movl	%eax, %r12d
LBB0_32:
	testb	%r14b, %r14b
	je	LBB0_35
LBB0_33:
	xorl	%eax, %eax
	callq	_usage
LBB0_34:
	movl	$1, %r12d
LBB0_35:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	leaq	L_.str.6(%rip), %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_38
LBB0_37:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	leaq	L_.str.7(%rip), %rsi
LBB0_38:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movb	$1, %r14b
	testb	%bl, %bl
	je	LBB0_29
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set"

L_.str.1:                               ## @.str.1
	.asciz	"unset"

L_.str.2:                               ## @.str.2
	.asciz	"commit"

L_.str.3:                               ## @.str.3
	.asciz	"show"

L_.str.4:                               ## @.str.4
	.asciz	"info"

L_.str.5:                               ## @.str.5
	.asciz	"get"

	.comm	_stderr,4,2                     ## @stderr
L_.str.6:                               ## @.str.6
	.asciz	"Command '%s' requires an argument!\n"

L_.str.7:                               ## @.str.7
	.asciz	"Unknown option '%s' !\n"

L_.str.8:                               ## @.str.8
	.asciz	"Could not open nvram! Possible reasons are:\n\t- No device found (/proc not mounted or no nvram present)\n\t- Insufficient permissions to open mtd device\n\t- Insufficient memory to complete operation\n\t- Memory mapping failed or not supported\n\t- Nvram magic not found in specific nvram partition\n"

.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w0, #1
	b.le	LBB0_33
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cmp	w20, #2
	b.eq	LBB0_3
; %bb.2:
	cbz	w0, LBB0_8
LBB0_3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cmp	w20, #2
	b.eq	LBB0_5
; %bb.4:
	cbz	w0, LBB0_8
LBB0_5:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.6:
	mov	w22, #1
	bl	_nvram_open_rdonly
	mov	x21, x0
	cbnz	x21, LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.8@PAGE
Lloh10:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
	b	LBB0_34
LBB0_8:
	bl	_nvram_open_staging
	mov	x21, x0
	mov	w22, #0
	cbz	x21, LBB0_7
LBB0_9:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	mov	w27, #0
Lloh11:
	adrp	x24, l_.str.3@PAGE
Lloh12:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh13:
	adrp	x25, l_.str.4@PAGE
Lloh14:
	add	x25, x25, l_.str.4@PAGEOFF
Lloh15:
	adrp	x26, l_.str.5@PAGE
Lloh16:
	add	x26, x26, l_.str.5@PAGEOFF
	mov	w28, #1
	mov	w22, #1
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	bl	_do_show
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x22, x0
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w28, w28, #1
	cmp	w28, w20
	b.ge	LBB0_28
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, w28, sxtw #3]
	mov	x0, x23
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x23
	mov	x1, x25
	bl	_strcmp
	cbz	w0, LBB0_25
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_strcmp
	cbz	w0, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x23
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x23
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x23
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_37
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w27, #1
	b	LBB0_12
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=1
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	sxtw	x8, w28
	add	x28, x8, #1
	cmp	w28, w20
	b.ge	LBB0_36
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrsb	w8, [x23]
	cmp	w8, #117
	b.eq	LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, #115
	b.eq	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, #103
	b.ne	LBB0_12
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x1, [x19, x28, lsl #3]
	mov	x0, x21
	bl	_do_get
	b	LBB0_11
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	bl	_do_info
	b	LBB0_11
LBB0_26:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x1, [x19, w28, sxtw #3]
	mov	x0, x21
	bl	_do_unset
	b	LBB0_11
LBB0_27:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x1, [x19, w28, sxtw #3]
	mov	x0, x21
	bl	_do_set
	b	LBB0_11
LBB0_28:
	mov	w19, #0
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	tbnz	w20, #0, LBB0_30
LBB0_29:
	mov	x0, x21
	bl	_nvram_commit
	mov	x22, x0
LBB0_30:
	mov	x0, x21
	bl	_nvram_close
	cbz	w27, LBB0_32
; %bb.31:
	bl	_staging_to_nvram
	mov	x22, x0
LBB0_32:
	cbz	w19, LBB0_35
LBB0_33:
	bl	_usage
LBB0_34:
	mov	w22, #1
LBB0_35:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_36:
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_38
LBB0_37:
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
LBB0_38:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	str	x23, [sp]
	bl	_fprintf
	mov	w19, #1
	tbz	w20, #0, LBB0_29
	b	LBB0_30
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set"

l_.str.1:                               ; @.str.1
	.asciz	"unset"

l_.str.2:                               ; @.str.2
	.asciz	"commit"

l_.str.3:                               ; @.str.3
	.asciz	"show"

l_.str.4:                               ; @.str.4
	.asciz	"info"

l_.str.5:                               ; @.str.5
	.asciz	"get"

	.comm	_stderr,4,2                     ; @stderr
l_.str.6:                               ; @.str.6
	.asciz	"Command '%s' requires an argument!\n"

l_.str.7:                               ; @.str.7
	.asciz	"Unknown option '%s' !\n"

l_.str.8:                               ; @.str.8
	.asciz	"Could not open nvram! Possible reasons are:\n\t- No device found (/proc not mounted or no nvram present)\n\t- Insufficient permissions to open mtd device\n\t- Insufficient memory to complete operation\n\t- Memory mapping failed or not supported\n\t- Nvram magic not found in specific nvram partition\n"

.subsections_via_symbols
