	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FindFonts
_FindFonts:                             ## @FindFonts
	.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	$1112, %rsp                     ## imm = 0x458
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -1120(%rbp)               ## 8-byte Spill
	movq	%rdi, %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_fcnt@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	xorl	%eax, %eax
	leaq	L_.str.1(%rip), %r12
	leaq	-1088(%rbp), %rbx
	leaq	-1128(%rbp), %r13
	movq	%rcx, %r15
	xorl	%edx, %edx
	movq	%rdx, -1104(%rbp)               ## 8-byte Spill
	movq	%rcx, -1136(%rbp)               ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_closedir
	movq	-1136(%rbp), %rcx               ## 8-byte Reload
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r15
	addq	$8, %r15
	movq	8(%rcx,%rax,8), %rdi
	incq	%rax
	testq	%rdi, %rdi
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rax, -1144(%rbp)               ## 8-byte Spill
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r15), %rcx
	movq	(%rax), %r8
	movq	%rbx, %rdi
	movl	$1025, %esi                     ## imm = 0x401
	movq	%r12, %rdx
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	-1124(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpq	$0, -1120(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rbx, %rdi
	movq	-1120(%rbp), %rsi               ## 8-byte Reload
	callq	_extmatch
	testq	%rax, %rax
	je	LBB0_7
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	_fcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-1104(%rbp), %rcx               ## 8-byte Reload
	cmpl	%ecx, %eax
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_fontlist@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -1112(%rbp)               ## 8-byte Spill
	movl	%eax, -1092(%rbp)               ## 4-byte Spill
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	_fontlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leal	400(,%rcx,4), %esi
	movq	%rcx, -1104(%rbp)               ## 8-byte Spill
	callq	_realloc
	movq	_fontlist@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, %rcx
	movq	-1104(%rbp), %rax               ## 8-byte Reload
	addl	$100, %eax
	movq	%rax, -1104(%rbp)               ## 8-byte Spill
	movq	_fcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1092(%rbp)               ## 4-byte Spill
	movq	%rcx, -1112(%rbp)               ## 8-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rbx, %rdi
	callq	_strdup
	movl	-1092(%rbp), %ecx               ## 4-byte Reload
	shlq	$4, %rcx
	movq	-1112(%rbp), %rdx               ## 8-byte Reload
	movq	%rax, (%rdx,%rcx)
	movl	-1128(%rbp), %eax
	movq	_fontlist@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, 8(%rdx,%rcx)
	movq	_fcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shlq	$4, %rdi
	addq	%rdx, %rdi
	callq	_figurefiletype
	movq	_fcnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_7
LBB0_9:
	movq	_fcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_10
## %bb.20:
	movq	_fontlist@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	movq	$0, (%rcx,%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$1112, %rsp                     ## imm = 0x458
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_19
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_19:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_fcnt,4,2                       ## @fcnt
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't open example font directory `%s'\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

	.comm	_fontlist,8,3                   ## @fontlist
L_.str.2:                               ## @.str.2
	.asciz	"Can't allocate memory\n"

L_.str.3:                               ## @.str.3
	.asciz	"Can't find matching font files.\n"

	.no_dead_strip	_FindFonts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FindFonts
_FindFonts:                             ; @FindFonts
	.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
	sub	sp, sp, #1072
	mov	x26, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x23, _fcnt@GOTPAGE
Lloh4:
	ldr	x23, [x23, _fcnt@GOTPAGEOFF]
	str	wzr, [x23]
	ldr	x0, [x0]
	cbz	x0, LBB0_21
; %bb.1:
	mov	x24, x1
	mov	x25, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	x28, x26
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_closedir
	add	x25, x25, #1
	add	x28, x26, x25, lsl #3
	ldr	x0, [x28]
	cbz	x0, LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	bl	_opendir
	cbz	x0, LBB0_18
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_readdir
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x3, [x28]
	ldr	x4, [x0]
	add	x0, sp, #31
	mov	w1, #1025
	mov	x2, x21
	bl	_snprintf
	add	x0, sp, #31
	add	x1, sp, #16
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w0, [sp, #20]
	bl	_S_ISDIR
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	cbz	x24, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x0, sp, #31
	mov	x1, x24
	bl	_extmatch
	cbz	x0, LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x27, x23
	ldr	w20, [x23]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w20, w8
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
Lloh7:
	adrp	x19, _fontlist@GOTPAGE
Lloh8:
	ldr	x19, [x19, _fontlist@GOTPAGEOFF]
	ldr	x23, [x19]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w8, w8, #100
Lloh9:
	adrp	x19, _fontlist@GOTPAGE
Lloh10:
	ldr	x19, [x19, _fontlist@GOTPAGEOFF]
	ldr	x0, [x19]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	lsl	w1, w8, #2
	bl	_realloc
	mov	x8, x19
	str	x0, [x19]
	cbz	x0, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	x23, x0
	ldr	w20, [x27]
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x0, sp, #31
	bl	_strdup
	mov	w8, w20
	lsl	x8, x8, #4
	str	x0, [x23, x8]
	ldr	w9, [sp, #16]
	ldr	x10, [x19]
	add	x8, x10, x8
	str	w9, [x8, #8]
	ldr	w8, [x27]
	add	x0, x10, x8, lsl #4
	bl	_figurefiletype
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
	mov	x23, x27
	b	LBB0_5
LBB0_15:
	ldr	w8, [x23]
	cbz	w8, LBB0_21
; %bb.16:
Lloh11:
	adrp	x9, _fontlist@GOTPAGE
Lloh12:
	ldr	x9, [x9, _fontlist@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	lsl	x8, x8, #4
	str	xzr, [x9, x8]
	ldur	x8, [x29, #-96]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.17:
	add	sp, sp, #1072
	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_18:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x28]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
LBB0_19:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_20:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_21:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_fcnt,4,2                       ; @fcnt
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't open example font directory `%s'\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

	.comm	_fontlist,8,3                   ; @fontlist
l_.str.2:                               ; @.str.2
	.asciz	"Can't allocate memory\n"

l_.str.3:                               ; @.str.3
	.asciz	"Can't find matching font files.\n"

	.no_dead_strip	_FindFonts
.subsections_via_symbols
