	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child_set_env                  ## -- Begin function child_set_env
	.p2align	4, 0x90
_child_set_env:                         ## @child_set_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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.17:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.2:
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	$8, %edi
	callq	_xmalloc
	movq	%rax, (%r14)
	movq	$0, (%rax)
	movq	$1, (%r12)
	movq	(%r14), %rbx
LBB0_5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_strlen
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	movslq	%eax, %r14
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx,%r13,8), %rdi
	incq	%r13
	testq	%rdi, %rdi
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx,%r13,8), %rdi
	cmpb	$61, (%rdi,%r14)
	jne	LBB0_10
## %bb.18:
	callq	_free
	jmp	LBB0_16
LBB0_6:
	xorl	%r13d, %r13d
LBB0_11:
	movq	(%r12), %r14
	leaq	-1(%r14), %rax
	cmpq	%rax, %r13
	jb	LBB0_15
## %bb.12:
	cmpq	$1000, %r14                     ## imm = 0x3E8
	jb	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal
LBB0_14:
	addq	$50, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_xreallocarray
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	%r14, (%r12)
LBB0_15:
	movq	$0, 8(%rbx,%r13,8)
LBB0_16:
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r14,%rax), %edi
	addl	$2, %edi
	callq	_xmalloc
	movq	%rax, %r14
	movq	%rax, (%rbx,%r13,8)
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %esi
	addl	$2, %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	movq	%r12, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid environment variable \"%.100s\""

L_.str.1:                               ## @.str.1
	.asciz	"child_set_env: too many env vars"

L_.str.2:                               ## @.str.2
	.asciz	"%s=%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child_set_env                  ; -- Begin function child_set_env
	.p2align	2
_child_set_env:                         ; @child_set_env
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x2
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	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	_error
LBB0_2:
	ldr	x21, [x23]
	cbnz	x21, LBB0_6
; %bb.3:
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #8
	bl	_xmalloc
	str	x0, [x23]
	str	xzr, [x0]
	mov	w8, #1
	str	x8, [x22]
	ldr	x21, [x23]
LBB0_6:
	mov	x0, x19
	bl	_strlen
	mov	x8, x0
	ldr	x0, [x21]
	cbz	x0, LBB0_12
; %bb.7:
	mov	x26, #0
	sxtw	x24, w8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x26, #1
	add	x8, x21, x26, lsl #3
	ldr	x0, [x8, #8]
	mov	x26, x25
	cbz	x0, LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x19
	mov	x2, x24
	bl	_strncmp
	cbnz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x21, x26, lsl #3]
	ldrb	w8, [x0, x24]
	cmp	w8, #61
	b.ne	LBB0_8
; %bb.11:
	bl	_free
	mov	x25, x26
	b	LBB0_18
LBB0_12:
	mov	x25, #0
LBB0_13:
	ldr	x24, [x22]
	sub	x8, x24, #1
	cmp	x25, x8
	b.lo	LBB0_17
; %bb.14:
	cmp	x24, #1000
	b.lo	LBB0_16
; %bb.15:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_16:
	add	x24, x24, #50
	mov	x0, x21
	mov	x1, x24
	mov	w2, #8
	bl	_xreallocarray
	mov	x21, x0
	str	x0, [x23]
	str	x24, [x22]
LBB0_17:
	add	x8, x21, x25, lsl #3
	str	xzr, [x8, #8]
LBB0_18:
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	mov	x0, x20
	bl	_strlen
	add	w8, w22, w0
	add	w0, w8, #2
	bl	_xmalloc
	mov	x22, x0
	str	x0, [x21, x25, lsl #3]
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	add	w8, w21, w0
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	add	w1, w8, #2
	mov	x0, x22
	mov	x3, x19
	mov	x4, x20
	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	_snprintf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid environment variable \"%.100s\""

l_.str.1:                               ; @.str.1
	.asciz	"child_set_env: too many env vars"

l_.str.2:                               ; @.str.2
	.asciz	"%s=%s"

.subsections_via_symbols
