	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function output_csv
_output_csv:                            ## @output_csv
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	8(%r15), %rdi
	callq	_strlen30
	movl	%eax, %r13d
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_12
## %bb.3:
	leaq	1(%rbx), %r14
	movq	_needCsvQuote@GOTPCREL(%rip), %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%r14), %eax
	incq	%r14
	testb	%al, %al
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rcx
	movzbl	%al, %esi
	cmpq	$0, (%rcx,%rsi,8)
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rsi
	cmpb	(%rsi), %al
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %r13d
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdi, %r15
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_memcmp
	movq	%r15, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_8
LBB0_12:
	movl	$34, %edi
	movq	%r12, %rsi
	callq	_putc
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	$34, %edi
	movq	%r12, %rsi
	callq	_putc
	movzbl	(%rbx), %eax
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movsbl	%al, %edi
	movq	%r12, %rsi
	callq	_putc
	incq	%rbx
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$34, %al
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	testb	%al, %al
	jne	LBB0_17
## %bb.15:
	movl	$34, %edi
	movq	%r12, %rsi
	callq	_putc
	testl	%r14d, %r14d
	jne	LBB0_11
	jmp	LBB0_18
LBB0_1:
	movq	(%r15), %rdi
	movq	%r12, %rsi
	callq	_fputs
	testl	%r14d, %r14d
	je	LBB0_18
LBB0_11:
	movq	8(%r15), %rdi
	movq	16(%r15), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fputs                          ## TAILCALL
LBB0_9:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_fputs
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	jne	LBB0_11
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_needCsvQuote,8,3               ## @needCsvQuote
	.no_dead_strip	_output_csv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output_csv
_output_csv:                            ; @output_csv
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	x21, [x0, #16]
	cbz	x1, LBB0_15
; %bb.1:
	mov	x22, x1
	ldr	x0, [x19, #8]
	bl	_strlen30
	ldrb	w8, [x22]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x23, x0
	mov	w24, #1
Lloh0:
	adrp	x25, _needCsvQuote@GOTPAGE
Lloh1:
	ldr	x25, [x25, _needCsvQuote@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x22, x24]
	add	x24, x24, #1
	cbz	w8, LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	and	x10, x8, #0xff
	ldr	x9, [x9, x10, lsl #3]
	cbnz	x9, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x19, #8]
	ldrb	w9, [x1]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #1
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x2, x23
	bl	_memcmp
	cbnz	x0, LBB0_3
LBB0_8:
	mov	w0, #34
	mov	x1, x21
	bl	_putc
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #34
	mov	x1, x21
	bl	_putc
	ldrb	w8, [x22]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	sxtb	w0, w8
	mov	x1, x21
	bl	_putc
	add	x22, x22, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22]
	cmp	w8, #34
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cbnz	w8, LBB0_10
; %bb.13:
	mov	w0, #34
	mov	x1, x21
	bl	_putc
	cbz	w20, LBB0_18
LBB0_14:
	ldp	x0, x1, [x19, #8]
	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
	b	_fputs
LBB0_15:
	ldr	x0, [x19]
	b	LBB0_17
LBB0_16:
	mov	x0, x22
LBB0_17:
	mov	x1, x21
	bl	_fputs
	cbnz	w20, LBB0_14
LBB0_18:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_needCsvQuote,8,3               ; @needCsvQuote
	.no_dead_strip	_output_csv
.subsections_via_symbols
