	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setenv_str_incr                ## -- Begin function setenv_str_incr
	.p2align	4, 0x90
_setenv_str_incr:                       ## @setenv_str_incr
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_strlen
	addl	$5, %eax
	movslq	%eax, %r13
	movl	$1, %r15d
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_gc_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_strcpy
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_env_set_get
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %r14d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r8d
	callq	_openvpn_snprintf
	movl	%eax, %edi
	callq	_ASSERT
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_env_set_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r14), %r15d
	cmpl	$999, %r14d                     ## imm = 0x3E7
	jb	LBB0_1
LBB0_3:
	cmpl	$998, %r14d                     ## imm = 0x3E6
	ja	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_setenv_str
	jmp	LBB0_6
LBB0_5:
	movq	_D_TLS_DEBUG_MED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_msg
LBB0_6:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s_%u"

	.comm	_D_TLS_DEBUG_MED,4,2            ## @D_TLS_DEBUG_MED
L_.str.1:                               ## @.str.1
	.asciz	"Too many same-name env variables, ignoring: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setenv_str_incr                ; -- Begin function setenv_str_incr
	.p2align	2
_setenv_str_incr:                       ; @setenv_str_incr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_strlen
	add	w8, w0, #5
	sxtw	x23, w8
	mov	x0, x23
	mov	w1, #1
	mov	x2, #0
	bl	_gc_malloc
	mov	x21, x0
	mov	x1, x19
	bl	_strcpy
	mov	x0, x22
	mov	x1, x21
	bl	_env_set_get
	cbz	x0, LBB0_5
; %bb.1:
	mov	w8, #1
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	x3, x19
	mov	x4, x8
	bl	_openvpn_snprintf
	bl	_ASSERT
	mov	x0, x22
	mov	x1, x21
	bl	_env_set_get
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w25, #1
	cmp	w25, #999
	b.lo	LBB0_2
LBB0_4:
	cmp	w25, #998
	b.hi	LBB0_6
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_setenv_str
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _D_TLS_DEBUG_MED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D_TLS_DEBUG_MED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_msg
LBB0_7:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s_%u"

	.comm	_D_TLS_DEBUG_MED,4,2            ; @D_TLS_DEBUG_MED
l_.str.1:                               ; @.str.1
	.asciz	"Too many same-name env variables, ignoring: %s"

.subsections_via_symbols
