	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_collect_list                   ## -- Begin function collect_list
	.p2align	4, 0x90
_collect_list:                          ## @collect_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_33
## %bb.1:
	movq	%rdi, %r12
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_33
## %bb.2:
	movq	%rax, %rdi
	movb	$0, (%rax)
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r12,%r13,8)
	leaq	1(%r13), %r13
	jne	LBB0_3
## %bb.4:
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_34
## %bb.5:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12,%r15,8), %rbx
	incq	%r15
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcat
	movq	(%r12,%r15,8), %rsi
	movq	%rbx, %rdi
	callq	_strcat
	movq	(%r12,%r15,8), %rbx
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$123, (%rbx)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_strcat
	movq	(%r12,%r15,8), %rbx
	movl	$1, %r14d
	movl	%r15d, %eax
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	xorl	%ecx, %ecx
	cmpb	$125, -1(%rax,%rbx)
	sete	%cl
	testl	%ecx, %r14d
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
	movl	%r15d, %eax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_12
LBB0_13:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_34
## %bb.14:
	movl	-60(%rbp), %r11d                ## 4-byte Reload
	movslq	%r11d, %rax
	movq	%rdi, (%r12,%rax,8)
	incl	%eax
	cmpl	%r13d, %eax
	jge	LBB0_32
## %bb.15:
	subl	%r11d, %ecx
	cltq
	movslq	%ecx, %r10
	movl	%r11d, %ecx
	negl	%ecx
	leaq	(%rcx,%r13), %rdx
	addq	$-2, %rdx
	cmpl	$3, %edx
	jb	LBB0_25
## %bb.16:
	leaq	(%r12,%rax,8), %rcx
	leaq	(%r10,%rax), %rsi
	leaq	(%r12,%rsi,8), %rsi
	movq	%rcx, %rdi
	subq	%rsi, %rdi
	cmpq	$32, %rdi
	jb	LBB0_25
## %bb.17:
	movl	%edx, %r8d
	incq	%r8
	movq	%r8, %r9
	andq	$-4, %r9
	leaq	-4(%r9), %rdx
	movq	%rdx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.19:
	leaq	(%r12,%rax,8), %rbx
	addq	$48, %rbx
	leaq	(%rcx,%r10,8), %rdx
	addq	$48, %rdx
	movl	%r13d, %esi
	subl	%r11d, %esi
	addl	$-2, %esi
	incq	%rsi
	andq	$-4, %rsi
	addq	$-4, %rsi
	shrq	$2, %rsi
	incq	%rsi
	andq	$-2, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movups	-48(%rdx,%rcx,8), %xmm0
	movups	-32(%rdx,%rcx,8), %xmm1
	movups	%xmm0, -48(%rbx,%rcx,8)
	movups	%xmm1, -32(%rbx,%rcx,8)
	movups	-16(%rdx,%rcx,8), %xmm0
	movups	(%rdx,%rcx,8), %xmm1
	movups	%xmm0, -16(%rbx,%rcx,8)
	movups	%xmm1, (%rbx,%rcx,8)
	addq	$8, %rcx
	addq	$-2, %rsi
	jne	LBB0_20
	jmp	LBB0_21
LBB0_34:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_18:
	xorl	%ecx, %ecx
LBB0_21:
	testb	$1, %dil
	je	LBB0_23
## %bb.22:
	addq	%rax, %rcx
	leaq	(%rcx,%r10), %rdx
	movups	(%r12,%rdx,8), %xmm0
	movups	16(%r12,%rdx,8), %xmm1
	movups	%xmm0, (%r12,%rcx,8)
	movups	%xmm1, 16(%r12,%rcx,8)
LBB0_23:
	cmpq	%r9, %r8
	je	LBB0_31
## %bb.24:
	addq	%r9, %rax
LBB0_25:
	movl	%eax, %ecx
	negl	%ecx
	movl	%r13d, %edx
	subl	%eax, %edx
	addq	%r13, %rcx
	decq	%rcx
	testb	$3, %dl
	je	LBB0_28
## %bb.26:
	leaq	(%r12,%r10,8), %rdx
	movl	%r13d, %ebx
	subb	%al, %bl
	movzbl	%bl, %esi
	andl	$3, %esi
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rax,8), %rdi
	movq	%rdi, (%r12,%rax,8)
	incq	%rax
	decl	%esi
	jne	LBB0_27
LBB0_28:
	cmpl	$2, %ecx
	jbe	LBB0_31
## %bb.29:
	leaq	24(%r12), %rcx
	leaq	(%r12,%r10,8), %rdx
	addq	$24, %rdx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	-24(%rdx,%rax,8), %rsi
	movq	%rsi, -24(%rcx,%rax,8)
	movq	-16(%rdx,%rax,8), %rsi
	movq	%rsi, -16(%rcx,%rax,8)
	movq	-8(%rdx,%rax,8), %rsi
	movq	%rsi, -8(%rcx,%rax,8)
	movq	(%rdx,%rax,8), %rsi
	movq	%rsi, (%rcx,%rax,8)
	addq	$4, %rax
	cmpl	%eax, %r13d
	jne	LBB0_30
LBB0_31:
	movl	%r13d, %eax
LBB0_32:
	cltq
	movq	$0, (%r12,%rax,8)
LBB0_33:
	addq	$24, %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	_collect_list                   ; -- Begin function collect_list
	.p2align	2
_collect_list:                          ; @collect_list
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	cbz	x8, LBB0_22
; %bb.1:
	mov	x19, x0
	mov	w0, #500
	bl	_malloc
	cbz	x0, LBB0_22
; %bb.2:
	mov	x20, x0
	mov	x23, #0
	strb	wzr, [x0]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x19, x23, lsl #3
	ldr	x8, [x8, #8]
	add	x23, x23, #1
	cbnz	x8, LBB0_3
; %bb.4:
	ldr	x22, [x19]
	cbz	x22, LBB0_23
; %bb.5:
	mov	x26, #0
	mov	w25, #0
	mov	w27, #0
                                        ; implicit-def: $w24
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_strlen
	add	x8, x22, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #125
	cset	w8, eq
	tst	w27, w8
	csel	w27, w27, wzr, eq
	csel	w25, w25, w26, eq
	add	x8, x19, x26, lsl #3
	add	x26, x26, #1
	ldr	x22, [x8, #8]
	cbz	x22, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w27, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_strcat
	lsl	x22, x26, #3
	ldr	x1, [x19, x22]
	mov	x0, x20
	bl	_strcat
	ldr	x22, [x19, x22]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x22]
	cmp	w8, #123
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_strcat
	ldr	x22, [x19, x26, lsl #3]
	mov	w27, #1
	mov	x24, x26
	b	LBB0_6
LBB0_11:
	cbz	w25, LBB0_23
; %bb.12:
	str	x20, [x19, w24, sxtw #3]
	add	w8, w24, #1
	cmp	w8, w23
	b.ge	LBB0_21
; %bb.13:
	sub	w10, w25, w24
	sxtw	x9, w8
	sxtw	x8, w10
	neg	w10, w24
	add	x10, x10, x23
	sub	x10, x10, #2
	cmp	w10, #7
	b.lo	LBB0_18
; %bb.14:
	add	x11, x19, x9, lsl #3
	add	x14, x8, x9
	add	x12, x19, x14, lsl #3
	sub	x11, x11, x12
	cmp	x11, #64
	b.lo	LBB0_18
; %bb.15:
	and	x10, x10, #0xffffffff
	add	x10, x10, #1
	and	x11, x10, #0x1fffffff8
	add	x12, x11, x9
	sub	w13, w23, w24
	sub	w13, w13, #2
	add	x13, x13, #1
	and	x13, x13, #0x1fffffff8
	add	x15, x19, #32
	add	x9, x15, x9, lsl #3
	add	x14, x15, x14, lsl #3
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	stp	q0, q1, [x9, #-32]
	stp	q2, q3, [x9], #64
	subs	x13, x13, #8
	b.ne	LBB0_16
; %bb.17:
	mov	x9, x12
	cmp	x10, x11
	b.eq	LBB0_20
LBB0_18:
	add	x8, x19, x8, lsl #3
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x9, #3
	ldr	x11, [x8, x10]
	str	x11, [x19, x10]
	add	x9, x9, #1
	cmp	w23, w9
	b.ne	LBB0_19
LBB0_20:
	mov	x8, x23
LBB0_21:
	str	xzr, [x19, w8, sxtw #3]
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	", "

.subsections_via_symbols
