	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ftree_add                      ## -- Begin function ftree_add
	.p2align	4, 0x90
_ftree_add:                             ## @ftree_add
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$0, (%rdi)
	je	LBB0_2
## %bb.4:
	movl	%esi, %r14d
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.7:
	decl	%eax
	cmpb	$47, (%rbx,%rax)
	jne	LBB0_9
## %bb.8:
	movb	$0, (%rbx,%rax)
LBB0_9:
	movq	%rbx, (%r15)
	movl	%r14d, 8(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	movq	_fthead@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.11:
	movq	_fttail@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, 16(%rcx)
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	xorl	%edi, %edi
	callq	_paxwarn
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_10:
	movq	%r15, (%rax)
	movq	_fttail@GOTPCREL(%rip), %rax
LBB0_12:
	movq	%r15, (%rax)
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid file name argument"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate memory for filename"

	.comm	_fthead,8,3                     ## @fthead
	.comm	_fttail,8,3                     ## @fttail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ftree_add                      ; -- Begin function ftree_add
	.p2align	2
_ftree_add:                             ; @ftree_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x20, x1
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	mov	x0, x21
	bl	_strlen
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.4:
	sub	w8, w0, #1
	ldrb	w9, [x21, x8]
	cmp	w9, #47
	b.ne	LBB0_6
; %bb.5:
	strb	wzr, [x21, x8]
LBB0_6:
	str	x21, [x19]
	str	w20, [x19, #8]
	stp	xzr, xzr, [x19, #16]
Lloh0:
	adrp	x8, _fthead@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fthead@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_11
; %bb.7:
	mov	w0, #0
Lloh2:
	adrp	x8, _fttail@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fttail@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x19, [x9, #16]
	b	LBB0_12
LBB0_8:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	bl	_paxwarn
	mov	w0, #-1
	b	LBB0_13
LBB0_11:
	mov	w0, #0
	str	x19, [x8]
Lloh8:
	adrp	x8, _fttail@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fttail@GOTPAGEOFF]
LBB0_12:
	str	x19, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid file name argument"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate memory for filename"

	.comm	_fthead,8,3                     ; @fthead
	.comm	_fttail,8,3                     ; @fttail
.subsections_via_symbols
