	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Platform_getProcessEnv         ## -- Begin function Platform_getProcessEnv
	.p2align	4, 0x90
_Platform_getProcessEnv:                ## @Platform_getProcessEnv
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__POSIX2_LINE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r8
	movq	_KVM_NO_FILES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_kvm_openfiles
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %rbx
	movq	_KERN_PROC_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-68(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	$4, %ecx
	callq	_kvm_getprocs
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_kvm_getenvv
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r13
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_xMalloc
	movq	%rax, %r12
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	$8, %r13
	movl	$4096, %eax                     ## imm = 0x1000
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	%rsi, %rsi
	movq	%r12, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_xRealloc
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r12
	addq	%rax, %rbx
	movq	-8(%r13), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_strlcpy
	movq	(%r13), %rdi
	addq	$8, %r13
	movq	%r15, %rbx
	testq	%rdi, %rdi
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	callq	_strlen
	movslq	%eax, %r14
	leaq	(%rbx,%r14), %r15
	incq	%r15
	incq	%r14
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %r15
	ja	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rax
	jmp	LBB0_6
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_10:
	cmpq	$2, %r15
	jae	LBB0_14
## %bb.11:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_13:
	movl	$4096, %eax                     ## imm = 0x1000
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_14:
	cmpb	$0, -1(%r15,%r12)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_16
## %bb.15:
	cmpb	$0, -2(%r15,%r12)
	je	LBB0_19
LBB0_16:
	leaq	2(%r15), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %rax
	jae	LBB0_18
## %bb.17:
	addq	$2, %rsi
	movq	%r12, %rdi
	callq	_xRealloc
	movq	%rax, %r12
LBB0_18:
	movw	$0, (%r12,%r15)
LBB0_19:
	movq	%rbx, %rdi
	callq	_kvm_close
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__POSIX2_LINE_MAX,4,2           ## @_POSIX2_LINE_MAX
	.comm	_KVM_NO_FILES,4,2               ## @KVM_NO_FILES
	.comm	_KERN_PROC_PID,4,2              ## @KERN_PROC_PID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Platform_getProcessEnv         ; -- Begin function Platform_getProcessEnv
	.p2align	2
_Platform_getProcessEnv:                ; @Platform_getProcessEnv
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, __POSIX2_LINE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, __POSIX2_LINE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x4, x9, x8
	mov	sp, x4
Lloh8:
	adrp	x8, _KVM_NO_FILES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KVM_NO_FILES@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	bl	_kvm_openfiles
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh11:
	adrp	x8, _KERN_PROC_PID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KERN_PROC_PID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	sub	x4, x29, #76
	mov	x2, x20
	mov	w3, #4
	bl	_kvm_getprocs
	cbz	x0, LBB0_8
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_kvm_getenvv
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, x0
	mov	w21, #4096
	mov	w0, #4096
	bl	_xMalloc
	mov	x20, x0
	ldr	x0, [x22]
	cbz	x0, LBB0_13
; %bb.4:
	mov	x25, #0
	add	x24, x22, #8
	mov	w21, #4096
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x20, x25
	ldur	x1, [x24, #-8]
	mov	x2, x22
	bl	_strlcpy
	ldr	x0, [x24], #8
	mov	x25, x23
	cbz	x0, LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_strlen
	add	w8, w0, #1
	sxtw	x22, w8
	add	x23, x25, x22
	cmp	x23, x21
	b.ls	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	x21, x21, #1
	mov	x0, x20
	mov	x1, x21
	bl	_xRealloc
	mov	x20, x0
	b	LBB0_5
LBB0_8:
	mov	x20, #0
	b	LBB0_17
LBB0_9:
	mov	x20, #0
	b	LBB0_18
LBB0_10:
	cmp	x23, #2
	b.lo	LBB0_14
; %bb.11:
	add	x8, x23, x20
	ldurb	w9, [x8, #-1]
	cbnz	w9, LBB0_14
; %bb.12:
	ldurb	w8, [x8, #-2]
	cbnz	w8, LBB0_14
	b	LBB0_17
LBB0_13:
	mov	x23, #0
LBB0_14:
	add	x8, x23, #2
	cmp	x8, x21
	b.hs	LBB0_16
; %bb.15:
	add	x1, x21, #2
	mov	x0, x20
	bl	_xRealloc
	mov	x20, x0
LBB0_16:
	strh	wzr, [x20, x23]
LBB0_17:
	mov	x0, x19
	bl	_kvm_close
LBB0_18:
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x20
	sub	sp, x29, #64
	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
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	__POSIX2_LINE_MAX,4,2           ; @_POSIX2_LINE_MAX
	.comm	_KVM_NO_FILES,4,2               ; @KVM_NO_FILES
	.comm	_KERN_PROC_PID,4,2              ; @KERN_PROC_PID
.subsections_via_symbols
