	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __build_env
___build_env:                           ## @__build_env
	.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	_environ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_17
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_17
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r12d
	cmpq	$0, 8(%r15,%rdi,4)
	leaq	2(%rdi), %rdi
	jne	LBB0_3
## %bb.4:
	movl	%r12d, %eax
	negl	%eax
	movq	_envVarsTotal@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_envVarsSize@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$48, %esi
	callq	_calloc
	movq	%rax, %rdx
	movq	_envVars@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.5:
	movl	%r12d, %r13d
	notl	%r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r13d
	movq	%r13, %rax
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %rbx
	movl	$0, (%rdx,%rbx)
	movq	_envVarsTotal@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leal	(%r12,%r14), %eax
	cltq
	movq	(%r15,%rax,8), %rdi
	movq	%rdx, %r15
	callq	_strdup
	movq	%rax, 32(%r15,%rbx)
	movq	_envVars@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	32(%r15,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$61, %esi
	callq	_strchr
	movq	_envVars@GOTPCREL(%rip), %rdx
	movq	%rax, 40(%r15,%rbx)
	movq	(%rdx), %rax
	movq	40(%rax,%rbx), %rcx
	leaq	(,%r13,2), %r15
	addq	%r13, %r15
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	addq	%rbx, %rax
	addq	$40, %rax
	addq	$4, %rcx
	movq	%rcx, (%rax)
	movq	(%rdx), %r13
	shlq	$4, %r15
	movq	40(%r13,%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, 8(%r13,%r15)
	movq	32(%r13,%r15), %rdi
	subq	%rdi, %rbx
	sarq	$2, %rbx
	decq	%rbx
	movq	%rbx, 16(%r13,%r15)
	decl	%r14d
	movl	%r14d, -44(%rbp)
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	___findenv
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_envVars@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	-44(%rbp), %rax
	leaq	(%rax,%rax,2), %rax
	shlq	$4, %rax
	movl	$1, 24(%rdx,%rax)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	decl	%r13d
	movq	_environ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	incl	%r12d
	jmp	LBB0_6
LBB0_14:
	movq	_CorruptEnvValueMsg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	shlq	$4, %r15
	movq	32(%rax,%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	jmp	LBB0_15
LBB0_9:
	movq	_CorruptEnvFindMsg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_envVars@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%rax,%r15), %rsi
	movq	%rbx, %rdx
LBB0_15:
	callq	___env_warnx
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_16
LBB0_12:
	movq	_environ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	_envVarsTotal@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_origEnviron@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	$0, (%rdx)
	callq	___rebuild_environ
	testq	%rax, %rax
	je	LBB0_13
LBB0_16:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	$1, %edi
	callq	___clean_env
	movl	%ebx, (%r14)
	movl	$-1, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_environ,8,3                    ## @environ
	.comm	_envVarsTotal,4,2               ## @envVarsTotal
	.comm	_envVarsSize,4,2                ## @envVarsSize
	.comm	_envVars,8,3                    ## @envVars
	.comm	_CorruptEnvValueMsg,4,2         ## @CorruptEnvValueMsg
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_errno,4,2                      ## @errno
	.comm	_CorruptEnvFindMsg,4,2          ## @CorruptEnvFindMsg
	.comm	_origEnviron,8,3                ## @origEnviron
	.no_dead_strip	___build_env
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __build_env
___build_env:                           ; @__build_env
	.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
Lloh0:
	adrp	x20, _environ@GOTPAGE
Lloh1:
	ldr	x20, [x20, _environ@GOTPAGEOFF]
	ldr	x21, [x20]
	cbz	x21, LBB0_11
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.2:
	mov	w0, #0
	mov	x19, #0
	add	x8, x21, #8
	mov	x22, #-16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, x19, lsl #3]
	add	x19, x19, #1
	add	x22, x22, #48
	add	w0, w0, #2
	cbnz	x9, LBB0_3
; %bb.4:
Lloh2:
	adrp	x23, _envVarsTotal@GOTPAGE
Lloh3:
	ldr	x23, [x23, _envVarsTotal@GOTPAGEOFF]
	str	w19, [x23]
Lloh4:
	adrp	x8, _envVarsSize@GOTPAGE
Lloh5:
	ldr	x8, [x8, _envVarsSize@GOTPAGEOFF]
Lloh6:
	str	w0, [x8]
	mov	w1, #48
	bl	_calloc
Lloh7:
	adrp	x24, _envVars@GOTPAGE
Lloh8:
	ldr	x24, [x24, _envVars@GOTPAGEOFF]
	str	x0, [x24]
	cbz	x0, LBB0_16
; %bb.5:
	add	x25, x0, x22
	stur	wzr, [x25, #-32]
	ldr	w28, [x23]
	sub	w8, w28, w19
	ldr	x0, [x21, w8, sxtw #3]
	bl	_strdup
	str	x0, [x25]
	ldr	x26, [x24]
	ldr	x0, [x26, x22]
	cbz	x0, LBB0_16
; %bb.6:
	sub	x25, x19, #2
	mov	w8, #1
	sub	w27, w8, w19
	mov	w21, #48
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w1, #61
	bl	_strchr
	add	x8, x26, x22
	str	x0, [x8, #8]
	ldr	x8, [x24]
	add	x9, x8, x22
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x10, #4
	str	x8, [x9, #8]
	ldr	x8, [x24]
	add	x26, x8, x22
	ldr	x19, [x26, #8]
	mov	x0, x19
	bl	_strlen
	ldr	x8, [x26]
	sub	x9, x19, x8
	asr	x9, x9, #2
	sub	x19, x9, #1
	stp	x0, x19, [x26, #-24]
	sub	w9, w28, #1
	str	w9, [sp, #12]
	add	x2, sp, #12
	mov	x0, x8
	mov	x1, x19
	mov	w3, #0
	bl	___findenv
	cbz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w9, w25, #1
	ldr	x8, [x24]
	ldrsw	x10, [sp, #12]
	madd	x10, x10, x21, x8
	mov	w11, #1
	str	w11, [x10, #24]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x20]
	umaddl	x19, w25, w21, x8
	str	wzr, [x19]
	ldr	w28, [x23]
	add	w8, w27, w28
	ldr	x0, [x9, w8, sxtw #3]
	bl	_strdup
	str	x0, [x19, #32]
	ldr	x26, [x24]
	umaddl	x8, w25, w21, x26
	ldr	x0, [x8, #32]
	sub	x22, x22, #48
	sub	w25, w25, #1
	add	w27, w27, #1
	cbnz	x0, LBB0_7
	b	LBB0_16
LBB0_11:
	mov	w0, #0
	b	LBB0_17
LBB0_12:
Lloh9:
	adrp	x9, _CorruptEnvValueMsg@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CorruptEnvValueMsg@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x9]
	ldr	x20, [x8, x22]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	b	LBB0_14
LBB0_13:
Lloh12:
	adrp	x8, _CorruptEnvFindMsg@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CorruptEnvFindMsg@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x24]
	ldr	x1, [x8, x22]
	mov	x2, x19
LBB0_14:
	bl	___env_warnx
Lloh15:
	adrp	x8, _EFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _errno@GOTPAGE
Lloh19:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	b	LBB0_16
LBB0_15:
	ldr	x8, [x20]
	ldr	w0, [x23]
Lloh21:
	adrp	x9, _origEnviron@GOTPAGE
Lloh22:
	ldr	x9, [x9, _origEnviron@GOTPAGEOFF]
Lloh23:
	str	x8, [x9]
	str	xzr, [x20]
	bl	___rebuild_environ
	cbz	x0, LBB0_17
LBB0_16:
Lloh24:
	adrp	x20, _errno@GOTPAGE
Lloh25:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w19, [x20]
	mov	w0, #1
	bl	___clean_env
	str	w19, [x20]
	mov	w0, #-1
LBB0_17:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_environ,8,3                    ; @environ
	.comm	_envVarsTotal,4,2               ; @envVarsTotal
	.comm	_envVarsSize,4,2                ; @envVarsSize
	.comm	_envVars,8,3                    ; @envVars
	.comm	_CorruptEnvValueMsg,4,2         ; @CorruptEnvValueMsg
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_errno,4,2                      ; @errno
	.comm	_CorruptEnvFindMsg,4,2          ; @CorruptEnvFindMsg
	.comm	_origEnviron,8,3                ; @origEnviron
	.no_dead_strip	___build_env
.subsections_via_symbols
