	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_argv                      ## -- Begin function copy_argv
	.p2align	4, 0x90
_copy_argv:                             ## @copy_argv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_12
## %bb.2:
	leaq	8(%r14), %rbx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_strlen
	addq	%rax, %r13
	incq	%r13
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.4:
	testq	%r13, %r13
	je	LBB0_12
## %bb.5:
	movq	%r13, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_strlcpy
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.7:
	addq	$16, %r14
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_strlcat
	movq	-8(%r14), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_strlcat
	cmpq	$0, (%r14)
	leaq	8(%r14), %r14
	jne	LBB0_8
	jmp	LBB0_13
LBB0_12:
	xorl	%r15d, %r15d
LBB0_13:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_argv                      ; -- Begin function copy_argv
	.p2align	2
_copy_argv:                             ; @copy_argv
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	x22, [x0]
	cbz	x22, LBB0_9
; %bb.2:
	mov	x19, #0
	add	x21, x20, #8
	mov	x0, x22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_strlen
	add	x8, x19, x0
	add	x19, x8, #1
	ldr	x0, [x21], #8
	cbnz	x0, LBB0_3
; %bb.4:
	cbz	x19, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_strlcpy
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.7:
	add	x22, x20, #16
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_strlcat
	ldur	x1, [x22, #-8]
	mov	x0, x21
	mov	x2, x19
	bl	_strlcat
	ldr	x8, [x22], #8
	cbnz	x8, LBB0_8
	b	LBB0_10
LBB0_9:
	mov	x21, #0
LBB0_10:
	mov	x0, x21
	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	" "

.subsections_via_symbols
