	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_to_tab_list
_add_to_tab_list:                       ## @add_to_tab_list
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_trimmed_tab_list
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	movb	(%rax), %r12b
	testb	%r12b, %r12b
	je	LBB0_12
## %bb.2:
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r13
	incq	%r13
	cmpb	$44, %r12b
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	movq	(%r14), %rdi
	callq	_comma_is_needed
	testl	%eax, %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
LBB0_5:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_strlen
	addq	%rax, %r13
	movq	(%r14), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_strlen
	addq	%rax, %r13
LBB0_7:
	movq	%r13, %rdi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	_failed
	movq	(%r14), %r12
LBB0_9:
	movb	$0, (%rbx)
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	__nc_STRCPY
	movq	(%r14), %rdi
	callq	_free
LBB0_11:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	__nc_STRCAT
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	__nc_STRCAT
	movq	%rbx, (%r14)
LBB0_12:
	movq	%rbx, %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	","

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"add_to_tab_list"

	.no_dead_strip	_add_to_tab_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_to_tab_list
_add_to_tab_list:                       ; @add_to_tab_list
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x22, [x0]
	mov	x0, x1
	bl	_trimmed_tab_list
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldrb	w23, [x0]
	cbz	w23, LBB0_11
; %bb.2:
	mov	x0, x20
	bl	_strlen
	add	x22, x0, #1
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
	cmp	w23, #44
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x19]
	bl	_comma_is_needed
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	cmp	w0, #0
	csel	x21, x21, x8, eq
LBB0_4:
	mov	x0, x21
	bl	_strlen
	add	x23, x22, x0
	ldr	x24, [x19]
	cbz	x24, LBB0_6
; %bb.5:
	mov	x0, x24
	bl	_strlen
	add	x23, x0, x23
LBB0_6:
	mov	x0, x23
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_failed
	ldr	x24, [x19]
LBB0_8:
	strb	wzr, [x22]
	cbz	x24, LBB0_10
; %bb.9:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	__nc_STRCPY
	ldr	x0, [x19]
	bl	_free
LBB0_10:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	__nc_STRCAT
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	__nc_STRCAT
	str	x22, [x19]
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	","

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"add_to_tab_list"

	.no_dead_strip	_add_to_tab_list
.subsections_via_symbols
