	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_getenv                     ## -- Begin function efi_getenv
	.p2align	4, 0x90
_efi_getenv:                            ## @efi_getenv
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	leaq	-32(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rax, %rdi
	callq	_utf8_to_ucs2
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EFI_OUT_OF_RESOURCES@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_6
LBB0_2:
	movq	(%r14), %rax
	movq	%rax, -40(%rbp)
	movq	_RS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-32(%rbp), %rdi
	leaq	-44(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rsi
	movq	%r15, %r8
	callq	*(%rax)
	movq	%rax, %rbx
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.3:
	movq	_EFI_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_5
LBB0_4:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
LBB0_5:
	movq	-32(%rbp), %rdi
	callq	_free
LBB0_6:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_OUT_OF_RESOURCES,8,3       ## @EFI_OUT_OF_RESOURCES
	.comm	_RS,8,3                         ## @RS
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ## @EFI_BUFFER_TOO_SMALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_getenv                     ; -- Begin function efi_getenv
	.p2align	2
_efi_getenv:                            ; @efi_getenv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x3
	mov	x20, x2
	mov	x8, x1
	mov	x21, x0
	str	xzr, [sp, #16]
	add	x1, sp, #16
	add	x2, sp, #24
	mov	x0, x8
	bl	_utf8_to_ucs2
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EFI_OUT_OF_RESOURCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFI_OUT_OF_RESOURCES@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh3:
	adrp	x8, _RS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x0, [sp, #16]
	add	x2, sp, #12
	mov	x3, sp
	mov	x1, x21
	mov	x4, x20
	blr	x8
	mov	x20, x0
Lloh6:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _EFI_BUFFER_TOO_SMALL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EFI_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [sp]
	str	x8, [x19]
LBB0_4:
	ldr	x0, [sp, #16]
	bl	_free
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_OUT_OF_RESOURCES,8,3       ; @EFI_OUT_OF_RESOURCES
	.comm	_RS,8,3                         ; @RS
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ; @EFI_BUFFER_TOO_SMALL
.subsections_via_symbols
