	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_env_opt_add                    ## -- Begin function env_opt_add
	.p2align	4, 0x90
_env_opt_add:                           ## @env_opt_add
	.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	_opt_reply@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	cmpb	$0, (%rbx)
	je	LBB0_3
## %bb.9:
	movq	%rbx, %rdi
	callq	_env_getvalue
	movq	%rax, %r14
	movq	_opt_replyp@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	callq	_strlen
	addl	%eax, %eax
	cltq
	jmp	LBB0_12
LBB0_3:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_env_default
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_env_default
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	callq	_env_opt_add
	jmp	LBB0_5
LBB0_6:
	movl	$1, %edi
	movl	$1, %esi
	callq	_env_default
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_env_default
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rdi
	callq	_env_opt_add
	jmp	LBB0_8
LBB0_10:
	xorl	%eax, %eax
LBB0_12:
	addq	%rax, %r15
	movq	%rbx, %rdi
	callq	_strlen
	addl	%eax, %eax
	cltq
	addq	%r15, %rax
	addq	$6, %rax
	movq	_opt_replyend@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	cmpq	%r15, %rax
	jbe	LBB0_17
## %bb.13:
	movq	_OPT_REPLY_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %r15
	movq	%r15, (%r13)
	movq	_opt_reply@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	%rdi, %r15
	movl	%r15d, %esi
	callq	_realloc
	movq	_opt_reply@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.16:
	movslq	%r15d, %rcx
	movq	(%r12), %rdx
	subq	(%r13), %rdx
	addq	%rcx, %rax
	addq	%rax, %rdx
	movq	%rdx, (%r12)
	movq	%rax, (%r13)
LBB0_17:
	movq	%rbx, %rdi
	callq	_opt_welldefined
	movq	(%r12), %rcx
	leaq	1(%rcx), %rdx
	xorl	%esi, %esi
	testq	%rax, %rax
	movq	%rdx, (%r12)
	sete	%sil
	leal	(%rsi,%rsi,2), %eax
	addl	$128, %eax
	movb	%al, (%rcx)
	movabsq	$569158829188, %rdx             ## imm = 0x8484828484
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movq	%r14, %r8
	movb	(%rbx), %sil
	testb	%sil, %sil
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	(%r12), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r12)
	movb	%sil, (%rax)
	movzbl	(%rbx), %esi
	incq	%rbx
	testb	%sil, %sil
	je	LBB0_24
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rdi
	leaq	4(%rdi), %rcx
	cmpq	(%r13), %rcx
	ja	LBB0_15
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	leal	-128(%rsi), %ecx
	cmpb	$4, %cl
	ja	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=2
	movzbl	%cl, %ecx
	shll	$3, %ecx
	movq	%rdx, %rax
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rax
	leaq	1(%rdi), %rcx
	movq	%rcx, (%r12)
	movb	%al, (%rdi)
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	testq	%r8, %r8
	je	LBB0_15
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r12), %rcx
	leaq	5(%rcx), %rax
	cmpq	(%r13), %rax
	ja	LBB0_15
## %bb.26:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	1(%rcx), %rax
	movq	%rax, (%r12)
	movb	$-127, (%rcx)
	xorl	%r14d, %r14d
	movq	%r8, %rbx
	jmp	LBB0_18
LBB0_14:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	$0, (%r13)
	movq	$0, (%r12)
	movq	_opt_reply@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_opt_reply,8,3                  ## @opt_reply
	.comm	_opt_replyp,8,3                 ## @opt_replyp
	.comm	_opt_replyend,8,3               ## @opt_replyend
	.comm	_OPT_REPLY_SIZE,4,2             ## @OPT_REPLY_SIZE
	.comm	_TELOPT_OLD_ENVIRON,8,3         ## @TELOPT_OLD_ENVIRON
	.comm	_old_env_value,4,2              ## @old_env_value
	.comm	_old_env_var,4,2                ## @old_env_var
	.comm	_telopt_environ,8,3             ## @telopt_environ
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"env_opt_add: realloc() failed!!!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_env_opt_add                    ; -- Begin function env_opt_add
	.p2align	2
_env_opt_add:                           ; @env_opt_add
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x24, _opt_reply@GOTPAGE
Lloh1:
	ldr	x24, [x24, _opt_reply@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_26
; %bb.1:
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.2:
	ldrb	w8, [x19]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_env_getvalue
	mov	x20, x0
Lloh2:
	adrp	x22, _opt_replyp@GOTPAGE
Lloh3:
	ldr	x22, [x22, _opt_replyp@GOTPAGEOFF]
	ldr	x21, [x22]
	cbz	x0, LBB0_11
; %bb.4:
	mov	x0, x20
	bl	_strlen
	lsl	w8, w0, #1
	sxtw	x8, w8
	b	LBB0_12
LBB0_5:
	mov	w0, #1
	mov	w1, #0
	bl	_env_default
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	w1, #0
	bl	_env_default
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_env_opt_add
	b	LBB0_6
LBB0_8:
	mov	w0, #1
	mov	w1, #1
	bl	_env_default
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	w1, #1
	bl	_env_default
	cbz	x0, LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_env_opt_add
	b	LBB0_9
LBB0_11:
	mov	x8, #0
LBB0_12:
	add	x21, x21, x8
	mov	x0, x19
	bl	_strlen
	lsl	w8, w0, #1
	add	x8, x21, w8, sxtw
	add	x9, x8, #6
Lloh4:
	adrp	x23, _opt_replyend@GOTPAGE
Lloh5:
	ldr	x23, [x23, _opt_replyend@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x9, x8
	b.ls	LBB0_15
; %bb.13:
Lloh6:
	adrp	x9, _OPT_REPLY_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OPT_REPLY_SIZE@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	ldr	x0, [x24]
	add	x8, x8, x9
	sub	x21, x8, x0
	str	x8, [x23]
	mov	x1, x21
	bl	_realloc
	str	x0, [x24]
	cbz	x0, LBB0_25
; %bb.14:
	add	x8, x0, w21, sxtw
	ldr	x9, [x23]
	ldr	x10, [x22]
	sub	x9, x10, x9
	add	x9, x8, x9
	str	x9, [x22]
	str	x8, [x23]
LBB0_15:
	mov	x0, x19
	bl	_opt_welldefined
	ldr	x8, [x22]
	add	x9, x8, #1
	str	x9, [x22]
	cmp	x0, #0
	mov	w9, #-128
	mov	w10, #-125
	csel	w9, w10, w9, eq
	strb	w9, [x8]
	mov	w8, #129
	mov	x9, #33924
	movk	x9, #33922, lsl #16
	movk	x9, #132, lsl #32
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	mov	x10, x20
	ldrb	w11, [x19]
	cbz	w11, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x12, x19, #1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	ldr	x13, [x22]
	add	x14, x13, #1
	str	x14, [x22]
	strb	w11, [x13]
	ldrb	w11, [x12], #1
	cbz	w11, LBB0_22
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x22]
	add	x14, x13, #4
	ldr	x15, [x23]
	cmp	x14, x15
	b.hi	LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	eor	w14, w11, #0x80
	cmp	w14, #4
	b.hi	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	and	x14, x14, #0xff
	lsl	x14, x14, #3
	lsr	x14, x9, x14
	add	x15, x13, #1
	str	x15, [x22]
	strb	w14, [x13]
	b	LBB0_18
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	x10, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x11, [x22]
	add	x12, x11, #5
	ldr	x13, [x23]
	cmp	x12, x13
	b.hi	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x20, #0
	add	x12, x11, #1
	str	x12, [x22]
	strb	w8, [x11]
	mov	x19, x10
	b	LBB0_16
LBB0_25:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	str	xzr, [x23]
	str	xzr, [x22]
	str	xzr, [x24]
LBB0_26:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_opt_reply,8,3                  ; @opt_reply
	.comm	_opt_replyp,8,3                 ; @opt_replyp
	.comm	_opt_replyend,8,3               ; @opt_replyend
	.comm	_OPT_REPLY_SIZE,4,2             ; @OPT_REPLY_SIZE
	.comm	_TELOPT_OLD_ENVIRON,8,3         ; @TELOPT_OLD_ENVIRON
	.comm	_old_env_value,4,2              ; @old_env_value
	.comm	_old_env_var,4,2                ; @old_env_var
	.comm	_telopt_environ,8,3             ; @telopt_environ
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"env_opt_add: realloc() failed!!!"

.subsections_via_symbols
