	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_env_val
_add_env_val:                           ## @add_env_val
	.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	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r14
	movb	1(%rdx), %r12b
	movsbl	%r12b, %edi
	callq	_IS_VALUE_NAME_CHAR
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	incq	%r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movb	%r12b, (%r14,%rbx)
	movzbl	1(%r15), %r12d
	incq	%r15
	movsbl	%r12b, %edi
	callq	_IS_VALUE_NAME_CHAR
	incq	%rbx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_NUL@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r14,%rbx)
	movq	%r14, %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	incl	%eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jae	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_sprintf
	movl	$1, %r12d
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUL,1,0                        ## @NUL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

	.no_dead_strip	_add_env_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_env_val
_add_env_val:                           ; @add_env_val
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldrsb	w22, [x2, #1]
	mov	x0, x22
	bl	_IS_VALUE_NAME_CHAR
	cbz	w0, LBB0_8
; %bb.1:
	mov	x23, #0
	and	w22, w22, #0xff
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	strb	w22, [x19, x23]
	add	x8, x21, x23
	ldrsb	w0, [x8, #2]
	and	w22, w0, #0xff
	bl	_IS_VALUE_NAME_CHAR
	add	x23, x23, #1
	cbnz	w0, LBB0_2
; %bb.3:
	cbz	x23, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _NUL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUL@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x19, x23]
	mov	x0, x19
	bl	_getenv
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	add	x8, x21, x23
	add	x21, x8, #1
	bl	_strlen
	mov	x23, x0
	mov	x0, x21
	bl	_strlen
	add	w8, w23, w0
	add	w8, w8, #1
	cmp	w8, w20
	b.hs	LBB0_7
; %bb.6:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_sprintf
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUL,1,0                        ; @NUL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.no_dead_strip	_add_env_val
.subsections_via_symbols
