	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getenv                         ## -- Begin function getenv
	.p2align	4, 0x90
_getenv:                                ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	callq	___strleneq
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_environ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.4:
	movq	_envVars@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_12
## %bb.5:
	movq	_intEnviron@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.6:
	movq	_envVarsTotal@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	movl	%ecx, -12(%rbp)
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$1, %ecx
	callq	___findenv
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___findenv_environ              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_environ,8,3                    ## @environ
	.comm	_envVars,8,3                    ## @envVars
	.comm	_intEnviron,8,3                 ## @intEnviron
	.comm	_envVarsTotal,4,2               ## @envVarsTotal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getenv                         ; -- Begin function getenv
	.p2align	2
_getenv:                                ; @getenv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	bl	___strleneq
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _environ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _environ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.4:
	mov	x1, x0
Lloh3:
	adrp	x9, _envVars@GOTPAGE
Lloh4:
	ldr	x9, [x9, _envVars@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _intEnviron@GOTPAGE
Lloh7:
	ldr	x10, [x10, _intEnviron@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, #0
	ccmp	x8, x10, #0, ne
	b.eq	LBB0_8
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	___findenv_environ
LBB0_6:
	mov	x0, #0
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	b	LBB0_9
LBB0_7:
	mov	x0, #0
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _envVarsTotal@GOTPAGE
Lloh16:
	ldr	x8, [x8, _envVarsTotal@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	sub	w8, w8, #1
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	___findenv
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_environ,8,3                    ; @environ
	.comm	_envVars,8,3                    ; @envVars
	.comm	_intEnviron,8,3                 ; @intEnviron
	.comm	_envVarsTotal,4,2               ; @envVarsTotal
.subsections_via_symbols
