	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$4, -96(%rbp)
	movq	_CTL_KERN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -60(%rbp)
	movq	_KERN_ARGMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	xorl	%r15d, %r15d
	leaq	-60(%rbp), %rdi
	leaq	-64(%rbp), %rdx
	leaq	-96(%rbp), %rcx
	movl	$2, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_sysctl
	testq	%rax, %rax
	jne	LBB0_18
## %bb.1:
	movslq	-64(%rbp), %rdi
	callq	_xMalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movl	(%rbx), %eax
	movl	%eax, -60(%rbp)
	movq	_KERN_PROCARGS2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%r12d, -52(%rbp)
	movslq	-64(%rbp), %rax
	movq	%rax, -72(%rbp)
	xorl	%r15d, %r15d
	leaq	-60(%rbp), %rdi
	leaq	-72(%rbp), %rcx
	movl	$3, %esi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_sysctl
	testq	%rax, %rax
	jne	LBB0_17
## %bb.4:
	movq	-72(%rbp), %r13
	cmpq	$5, %r13
	jb	LBB0_17
## %bb.5:
	addq	%r14, %r13
	movl	(%r14), %r15d
	leaq	4(%r14), %rdi
	callq	_strlen
	leaq	(%rax,%r14), %rbx
	addq	$5, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	incq	%rbx
	cmpb	$0, (%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r13, %rax
	jb	LBB0_6
LBB0_8:
	decq	%rbx
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.9:
	cmpq	%r13, %rax
	jae	LBB0_13
## %bb.10:
	decl	%r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rax, %rbx
	incq	%rbx
	addl	$-1, %r15d
	jae	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r13, %rbx
	jb	LBB0_11
LBB0_13:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	$2, %r12d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %r14
	decq	%r12
	cmpb	$0, (%rbx,%rax)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	addq	%rbx, %rax
	cmpq	%r13, %rax
	movq	%r14, %rax
	jb	LBB0_14
LBB0_16:
	subq	%rbx, %r13
	movq	%r13, %rdi
	subq	%r14, %rdi
	leaq	1(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addq	$3, %rdi
	callq	_xMalloc
	movq	%rax, %r15
	leaq	(%rbx,%r14), %rsi
	decq	%rsi
	movq	%rax, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
	addq	%r15, %r13
	movw	$0, -1(%r12,%r13)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_17:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_18
LBB0_2:
	xorl	%r15d, %r15d
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_ARGMAX,4,2                ## @KERN_ARGMAX
	.comm	_KERN_PROCARGS2,4,2             ## @KERN_PROCARGS2
.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:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	mov	w8, #4
	str	x8, [sp, #48]
Lloh3:
	adrp	x22, _CTL_KERN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CTL_KERN@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _KERN_ARGMAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KERN_ARGMAX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #60]
	stp	xzr, xzr, [sp, #16]
	add	x8, sp, #48
	add	x9, sp, #56
	stp	x9, x8, [sp]
	add	x0, sp, #60
	mov	w1, #2
	bl	_sysctl
	mov	x21, #0
	cbnz	x0, LBB0_16
; %bb.1:
	ldrsw	x0, [sp, #56]
	bl	_xMalloc
	cbz	x0, LBB0_15
; %bb.2:
	mov	x19, x0
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _KERN_PROCARGS2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _KERN_PROCARGS2@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #60]
	str	w20, [sp, #68]
	ldrsw	x8, [sp, #56]
	str	x8, [sp, #40]
	stp	xzr, xzr, [sp, #16]
	add	x8, sp, #40
	stp	x0, x8, [sp]
	add	x0, sp, #60
	mov	w1, #3
	bl	_sysctl
	mov	x21, #0
	cbnz	x0, LBB0_14
; %bb.3:
	ldr	x22, [sp, #40]
	cmp	x22, #5
	b.lo	LBB0_14
; %bb.4:
	add	x21, x19, x22
	mov	x0, x19
	ldr	w23, [x0], #4
	bl	_strlen
	add	x8, x0, x19
	add	x9, x8, #5
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldrb	w10, [x9], #1
	cmp	w10, #0
	ccmp	x8, x21, #2, eq
	b.lo	LBB0_5
; %bb.6:
	sub	x20, x9, #1
	cbz	w23, LBB0_11
; %bb.7:
	cmp	x8, x21
	b.hs	LBB0_11
; %bb.8:
	sub	w23, w23, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_strlen
	add	x8, x20, x0
	add	x20, x8, #1
	subs	w23, w23, #1
	b.lo	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x20, x21
	b.lo	LBB0_9
LBB0_11:
	mov	x23, #0
	mov	x24, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x20, x24
	ldrb	w9, [x8]
	add	x24, x24, #1
	sub	x23, x23, #1
	cmp	w9, #0
	ccmp	x8, x21, #2, eq
	b.lo	LBB0_12
; %bb.13:
	add	x8, x22, x19
	sub	x25, x8, x20
	sub	x8, x25, x24
	add	x22, x8, #1
	add	x0, x8, #3
	bl	_xMalloc
	mov	x21, x0
	add	x8, x20, x24
	sub	x1, x8, #1
	mov	x2, x22
	bl	_memcpy
	add	x8, x21, x25
	add	x8, x8, x23
	sturh	wzr, [x8, #1]
LBB0_14:
	mov	x0, x19
	bl	_free
	b	LBB0_16
LBB0_15:
	mov	x21, #0
LBB0_16:
	ldr	x8, [sp, #72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_ARGMAX,4,2                ; @KERN_ARGMAX
	.comm	_KERN_PROCARGS2,4,2             ; @KERN_PROCARGS2
.subsections_via_symbols
