	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function argv_to_cmdline
_argv_to_cmdline:                       ## @argv_to_cmdline
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	$3, %edi
	addq	%rdx, %rdi
	movq	8(%r14,%r8,8), %rcx
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_24 Depth 3
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rdi, %rdx
	movl	$-1, %ebx
	movl	$1, %r10d
	movq	$-1, %r11
	xorl	%edi, %edi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%rdx
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%rdi
	incl	%ebx
	incq	%r10
	incq	%r11
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_24 Depth 3
	movl	%ebx, %ebx
	movb	(%rcx,%rdi), %al
	cmpb	$34, %al
	je	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	testb	%al, %al
	jne	LBB0_28
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=2
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%rdx,%rbx), %r9
	incq	%r9
	movq	%r10, %rax
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	-2(%rax), %esi
	cmpb	$92, (%rcx,%rsi)
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=3
	incq	%rdx
	decq	%rax
	cmpq	$1, %rax
	jg	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%r9, %rdx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%edi, %edi
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$92, (%rcx,%r11)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rdx
	decq	%r11
	leal	2(%r11), %eax
	cmpl	$1, %eax
	jg	LBB0_7
	jmp	LBB0_9
LBB0_1:
	xorl	%edi, %edi
LBB0_10:
	callq	_xmalloc
	cmpq	$0, (%r14)
	movq	%rax, %rcx
	je	LBB0_21
## %bb.11:
	xorl	%r8d, %r8d
	movq	%r14, %r10
	movq	%rax, %rcx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movw	$8226, (%rcx)                   ## imm = 0x2022
	addq	$2, %rcx
	leaq	(%r14,%r8,8), %r10
	addq	$8, %r10
	cmpq	$0, 8(%r14,%r8,8)
	leaq	1(%r8), %r8
	je	LBB0_21
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_32 Depth 3
                                        ##     Child Loop BB0_18 Depth 2
	movb	$34, (%rcx)
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_13 Depth=2
	movb	$92, (%rcx)
	incq	%rcx
	movq	(%r10), %rdx
	movb	(%rdx,%r11), %dl
LBB0_35:                                ##   in Loop: Header=BB0_13 Depth=2
	movb	%dl, (%rcx)
	incq	%r11
	incl	%r9d
LBB0_13:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_32 Depth 3
	movq	%rcx, %rsi
	incq	%rcx
	movq	(%r10), %rdi
	movb	(%rdi,%r11), %dl
	cmpb	$34, %dl
	je	LBB0_29
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	testb	%dl, %dl
	jne	LBB0_35
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_13 Depth=2
	testq	%r11, %r11
	je	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_13 Depth=2
	leal	-1(%r11), %edx
	cmpb	$92, (%rdi,%rdx)
	jne	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_13 Depth=2
	addq	$2, %rsi
	movq	%r11, %rdi
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rsi, %rcx
	movb	$92, -1(%rsi)
	cmpq	$2, %rdi
	jl	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=3
	movq	(%r10), %rdx
	leal	-2(%rdi), %ebx
	decq	%rdi
	leaq	1(%rcx), %rsi
	cmpb	$92, (%rdx,%rbx)
	je	LBB0_32
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%r11d, %r11d
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r11d, %edx
	cmpb	$92, -1(%rdx,%rdi)
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r9d, %edi
	addq	$2, %rsi
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rsi, %rcx
	movb	$92, -1(%rsi)
	cmpl	$2, %edi
	jl	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	(%r10), %rdx
	cmpb	$92, -2(%rdx,%rdi)
	leaq	-1(%rdi), %rdi
	leaq	1(%rcx), %rsi
	je	LBB0_18
	jmp	LBB0_20
LBB0_21:
	movb	$0, -1(%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_argv_to_cmdline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function argv_to_cmdline
_argv_to_cmdline:                       ; @argv_to_cmdline
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x9, [x0]
	cbz	x9, LBB0_16
; %bb.1:
	mov	x8, #0
	mov	x0, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w10, #3
	add	x0, x0, x9
	add	x8, x8, #1
	ldr	x9, [x19, x8, lsl #3]
	cbz	x9, LBB0_17
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;     Child Loop BB0_14 Depth 2
	mov	x10, #0
	mov	w13, #-1
	mov	x11, #-1
	mov	w12, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x0, x0, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x10, x10, #1
	add	w13, w13, #1
	add	x12, x12, #1
	add	x11, x11, #1
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	mov	w13, w13
	ldrb	w14, [x9, x10]
	cmp	w14, #34
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	cbnz	w14, LBB0_5
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	cbz	x10, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x14, x0, x13
	add	x14, x14, #1
	mov	x15, x12
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sub	w16, w15, #2
	ldrb	w16, [x9, w16, uxtw]
	cmp	w16, #92
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	add	x0, x0, #1
	sub	x15, x15, #1
	cmp	x15, #1
	b.gt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x14
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w10, LBB0_2
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w12, [x9, x11]
	cmp	w12, #92
	b.ne	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	add	x0, x0, #1
	sub	x11, x11, #1
	add	w12, w11, #2
	cmp	w12, #1
	b.gt	LBB0_14
	b	LBB0_2
LBB0_16:
	mov	x0, #0
LBB0_17:
	bl	_xmalloc
	ldr	x8, [x19]
	mov	x13, x0
	cbz	x8, LBB0_35
; %bb.18:
	mov	x8, #0
	mov	w9, #34
	mov	w10, #92
	mov	w11, #8226
	mov	x12, x19
	mov	x13, x0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	strh	w11, [x13], #2
	add	x8, x8, #1
	add	x12, x19, x8, lsl #3
	ldr	x14, [x12]
	cbz	x14, LBB0_35
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
                                        ;       Child Loop BB0_28 Depth 3
                                        ;     Child Loop BB0_33 Depth 2
	mov	w15, #0
	mov	x14, #0
	strb	w9, [x13]
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=2
	strb	w10, [x13], #1
	ldr	x16, [x12]
	ldrb	w1, [x16, x14]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	strb	w1, [x13]
	add	x14, x14, #1
	add	w15, w15, #1
LBB0_23:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_28 Depth 3
	mov	x16, x13
	add	x13, x13, #1
	ldr	x17, [x12]
	ldrb	w1, [x17, x14]
	cmp	w1, #34
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	cbnz	w1, LBB0_22
	b	LBB0_30
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=2
	cbz	x14, LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=2
	sub	w1, w14, #1
	ldrb	w17, [x17, w1, uxtw]
	cmp	w17, #92
	b.ne	LBB0_21
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=2
	add	x17, x16, #2
	mov	x16, x14
LBB0_28:                                ;   Parent Loop BB0_20 Depth=1
                                        ;     Parent Loop BB0_23 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x13, x17
	sturb	w10, [x17, #-1]
	cmp	x16, #2
	b.lt	LBB0_21
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=3
	ldr	x17, [x12]
	sub	w1, w16, #2
	ldrb	w1, [x17, w1, uxtw]
	sub	x16, x16, #1
	add	x17, x13, #1
	cmp	w1, #92
	b.eq	LBB0_28
	b	LBB0_21
LBB0_30:                                ;   in Loop: Header=BB0_20 Depth=1
	cbz	w14, LBB0_19
; %bb.31:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x17, x17, w14, uxtw
	ldurb	w17, [x17, #-1]
	cmp	w17, #92
	b.ne	LBB0_19
; %bb.32:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x17, #0
	mov	w13, w15
	sub	x15, x13, #2
	add	x16, x16, #2
LBB0_33:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x13, x16
	sturb	w10, [x16, #-1]
	add	w16, w14, w17
	cmp	w16, #2
	b.lt	LBB0_19
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	ldr	x16, [x12]
	add	x16, x16, x15
	ldrb	w1, [x16, x17]
	sub	x17, x17, #1
	add	x16, x13, #1
	cmp	w1, #92
	b.eq	LBB0_33
	b	LBB0_19
LBB0_35:
	sturb	wzr, [x13, #-1]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_argv_to_cmdline
.subsections_via_symbols
