	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_env                        ## -- Begin function add_env
	.p2align	4, 0x90
_add_env:                               ## @add_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rcx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r14, %rdx
	callq	_asprintf
	cmpq	$0, -48(%rbp)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	movq	_num_env@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movq	_env@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %r15
	movq	%r14, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %r15
	movq	%r14, %rdi
	callq	_strlen
	cmpb	$61, (%r15,%rax)
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_free
	movq	-48(%rbp), %rax
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	jmp	LBB0_9
LBB0_8:
	movq	-48(%rbp), %rdi
	callq	_extend_env
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s=%s"

L_.str.1:                               ## @.str.1
	.asciz	"Out of memory!"

	.comm	_num_env,4,2                    ## @num_env
	.comm	_env,8,3                        ## @env
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_env                        ; -- Begin function add_env
	.p2align	2
_add_env:                               ; @add_env
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x3, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	bl	_asprintf
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
Lloh4:
	adrp	x22, _num_env@GOTPAGE
Lloh5:
	ldr	x22, [x22, _num_env@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x21, #0
Lloh6:
	adrp	x23, _env@GOTPAGE
Lloh7:
	ldr	x23, [x23, _env@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x20, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	x20, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_strlen
	ldrb	w8, [x20, x0]
	cmp	w8, #61
	b.ne	LBB0_4
; %bb.7:
	mov	x0, x20
	bl	_free
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	str	x8, [x9, x21, lsl #3]
	b	LBB0_9
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_extend_env
LBB0_9:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s=%s"

l_.str.1:                               ; @.str.1
	.asciz	"Out of memory!"

	.comm	_num_env,4,2                    ; @num_env
	.comm	_env,8,3                        ; @env
.subsections_via_symbols
