	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_filename_to_list
_add_filename_to_list:                  ## @add_filename_to_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
	movq	%r9, %r13
	movq	%r8, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_strlen
	movq	%rax, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	incl	%eax
	movl	(%r13), %esi
	cmpl	%esi, %eax
	jl	LBB0_2
## %bb.1:
	leal	(%rsi,%rsi), %eax
	movl	%eax, (%r13)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	shll	$4, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_xrealloc
	movq	%rax, (%rbx)
LBB0_2:
	movq	%r12, %r13
	subq	%r15, %r13
	je	LBB0_3
## %bb.4:
	jbe	LBB0_6
## %bb.5:
	addq	$5, %r14
	movq	%r14, %rdi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	%r13, %rsi
	movq	%rax, %rdi
	callq	_strcpy
	jmp	LBB0_7
LBB0_3:
	addq	$5, %r14
	movq	%r14, %rdi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcpy
	jmp	LBB0_7
LBB0_6:
	subq	%r12, %r15
	leaq	(%r14,%r15), %rdi
	addq	$5, %rdi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_strncpy
	movb	$0, (%rbx,%r15)
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcat
LBB0_7:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%rsi), %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	(%rdx), %rax
	leaq	1(%rcx), %rdx
	movl	%edx, (%rsi)
	movq	$0, 8(%rax,%rcx,8)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_filename_to_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_filename_to_list
_add_filename_to_list:                  ; @add_filename_to_list
	.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	x25, x5
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	bl	_strlen
	mov	x24, x0
	ldr	w8, [x19]
	add	w9, w8, #1
	ldr	w8, [x25]
	cmp	w9, w8
	b.lt	LBB0_2
; %bb.1:
	lsl	w9, w8, #1
	str	w9, [x25]
	ldr	x0, [x20]
	lsl	w1, w8, #4
	bl	_xrealloc
	str	x0, [x20]
LBB0_2:
	subs	x25, x22, x23
	b.eq	LBB0_5
; %bb.3:
	b.ls	LBB0_6
; %bb.4:
	add	x0, x24, #5
	bl	_xmalloc
	mov	x23, x0
	add	x1, x21, x25
	bl	_strcpy
	b	LBB0_7
LBB0_5:
	add	x0, x24, #5
	bl	_xmalloc
	mov	x23, x0
	mov	x1, x21
	bl	_strcpy
	b	LBB0_7
LBB0_6:
	sub	x25, x23, x22
	add	x8, x24, x25
	add	x0, x8, #5
	bl	_xmalloc
	mov	x23, x0
	mov	x1, x22
	mov	x2, x25
	bl	_strncpy
	strb	wzr, [x23, x25]
	mov	x0, x23
	mov	x1, x21
	bl	_strcat
LBB0_7:
	ldr	x8, [x20]
	ldrsw	x9, [x19]
	str	x23, [x8, x9, lsl #3]
	ldr	x8, [x20]
	add	x9, x9, #1
	str	w9, [x19]
	str	xzr, [x8, x9, lsl #3]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_filename_to_list
.subsections_via_symbols
