	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_ubenv
_command_ubenv:                         ## @command_ubenv
	.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
	cmpl	$2, %edi
	jl	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_UBENV_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	8(%rsi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	movl	%r13d, %r12d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	_UBENV_SHOW@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_UBENV_IMPORT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r12d
LBB0_6:
	cmpl	%r13d, %r12d
	jne	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rax
	movq	_command_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_CMD_ERROR@GOTPCREL(%rip), %r15
LBB0_14:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$2, %r15d
	jbe	LBB0_9
## %bb.12:
	movl	%r15d, %r13d
	movl	$2, %ebx
	movq	_CMD_OK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rsi
	movl	%r12d, %edi
	callq	_handle_uboot_env_var
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_13
	jmp	LBB0_14
LBB0_9:
	xorl	%edi, %edi
	callq	_ub_env_enum
	movq	_CMD_OK@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_handle_uboot_env_var
	movq	%rbx, %rdi
	callq	_ub_env_enum
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_UBENV_UNKNOWN,4,2              ## @UBENV_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"import"

	.comm	_UBENV_IMPORT,4,2               ## @UBENV_IMPORT
L_.str.1:                               ## @.str.1
	.asciz	"show"

	.comm	_UBENV_SHOW,4,2                 ## @UBENV_SHOW
L_.str.2:                               ## @.str.2
	.asciz	"usage: 'ubenv <import|show> [var ...]"

	.comm	_command_errmsg,8,3             ## @command_errmsg
	.comm	_CMD_ERROR,4,2                  ## @CMD_ERROR
	.comm	_CMD_OK,4,2                     ## @CMD_OK
	.no_dead_strip	_command_ubenv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_ubenv
_command_ubenv:                         ; @command_ubenv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w0, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _UBENV_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UBENV_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x19, [x1, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	x0, LBB0_5
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
Lloh7:
	adrp	x8, _UBENV_SHOW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UBENV_SHOW@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w19, w8, w22, eq
	cmp	w19, w22
	b.ne	LBB0_6
LBB0_3:
Lloh10:
	adrp	x8, _command_errmsg@GOTPAGE
Lloh11:
	ldr	x8, [x8, _command_errmsg@GOTPAGEOFF]
Lloh12:
	adrp	x9, l_.str.2@PAGE
Lloh13:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh14:
	str	x9, [x8]
Lloh15:
	adrp	x21, _CMD_ERROR@GOTPAGE
Lloh16:
	ldr	x21, [x21, _CMD_ERROR@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh17:
	adrp	x8, _UBENV_IMPORT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UBENV_IMPORT@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
	cmp	w19, w22
	b.eq	LBB0_3
LBB0_6:
	cmp	w21, #2
	b.ls	LBB0_9
; %bb.7:
	mov	w8, w21
	add	x20, x20, #16
	sub	x22, x8, #2
Lloh20:
	adrp	x21, _CMD_OK@GOTPAGE
Lloh21:
	ldr	x21, [x21, _CMD_OK@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20], #8
	mov	x0, x19
	bl	_handle_uboot_env_var
	subs	x22, x22, #1
	b.ne	LBB0_8
	b	LBB0_4
LBB0_9:
	mov	x0, #0
	bl	_ub_env_enum
	cbz	x0, LBB0_12
; %bb.10:
	mov	x20, x0
Lloh22:
	adrp	x21, _CMD_OK@GOTPAGE
Lloh23:
	ldr	x21, [x21, _CMD_OK@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_handle_uboot_env_var
	mov	x0, x20
	bl	_ub_env_enum
	mov	x20, x0
	cbnz	x0, LBB0_11
	b	LBB0_4
LBB0_12:
Lloh24:
	adrp	x21, _CMD_OK@GOTPAGE
Lloh25:
	ldr	x21, [x21, _CMD_OK@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_UBENV_UNKNOWN,4,2              ; @UBENV_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"import"

	.comm	_UBENV_IMPORT,4,2               ; @UBENV_IMPORT
l_.str.1:                               ; @.str.1
	.asciz	"show"

	.comm	_UBENV_SHOW,4,2                 ; @UBENV_SHOW
l_.str.2:                               ; @.str.2
	.asciz	"usage: 'ubenv <import|show> [var ...]"

	.comm	_command_errmsg,8,3             ; @command_errmsg
	.comm	_CMD_ERROR,4,2                  ; @CMD_ERROR
	.comm	_CMD_OK,4,2                     ; @CMD_OK
	.no_dead_strip	_command_ubenv
.subsections_via_symbols
