	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Platform_buildenv
_Platform_buildenv:                     ## @Platform_buildenv
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %rbx
	movq	%rcx, %rdi
	callq	_strlen
	movq	%rax, %r14
	leaq	2(%rax), %r12
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	movq	%rsi, %rdx
	subq	%rdi, %rdx
	cmpq	%rdx, %r12
	jbe	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdi
	addq	%rsi, %rsi
	movq	%rsi, (%rbx)
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_xRealloc
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rdx
	movq	8(%rbx), %rdi
	subq	%rdi, %rdx
LBB0_2:
	movl	$1, %eax
	cmpq	%rdx, %r12
	ja	LBB0_4
## %bb.3:
	addq	16(%rbx), %rdi
	movq	%r15, %rsi
	callq	_strlcpy
	incq	%r14
	movq	16(%rbx), %rdi
	addq	%r14, %rdi
	addq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_strncpy
	addq	%r14, 8(%rbx)
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.no_dead_strip	_Platform_buildenv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Platform_buildenv
_Platform_buildenv:                     ; @Platform_buildenv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x19, x0
	mov	x0, x3
	bl	_strlen
	mov	x21, x0
	add	x22, x0, #2
	ldp	x9, x8, [x19]
	sub	x2, x9, x8
	cmp	x22, x2
	b.ls	LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	lsl	x1, x9, #1
	str	x1, [x19]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_xRealloc
	str	x0, [x19, #16]
	ldp	x9, x8, [x19]
	sub	x2, x9, x8
LBB0_2:
	cmp	x22, x2
	b.ls	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	mov	x1, x20
	bl	_strlcpy
	ldp	x9, x8, [x19, #8]
	add	x20, x21, #1
	add	x8, x20, x8
	add	x0, x8, x9
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_strncpy
	mov	w0, #0
	ldr	x8, [x19, #8]
	add	x8, x20, x8
	str	x8, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.no_dead_strip	_Platform_buildenv
.subsections_via_symbols
