	.file	"extr_find-font-windows.c_load_os_font_list.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error finding windows font folder"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"\\*.*"
.LC2:
	.string	"\\"
	.text
	.p2align 4
	.globl	load_os_font_list
	.type	load_os_font_list, @function
load_os_font_list:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	lea	r13, 32[rsp]
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	rdi, r13
	call	dstr_reserve@PLT
	mov	r8d, DWORD PTR 32[rsp]
	xor	edx, edx
	xor	edi, edi
	mov	ecx, DWORD PTR SHGFP_TYPE_CURRENT[rip]
	mov	esi, DWORD PTR CSIDL_FONTS[rip]
	call	SHGetFolderPathA@PLT
	cmp	QWORD PTR S_OK[rip], rax
	je	.L2
	mov	edi, DWORD PTR LOG_WARNING[rip]
	lea	rsi, .LC0[rip]
	call	blog@PLT
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 32[rsp]
	lea	r14, 48[rsp]
	call	strlen@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	mov	QWORD PTR 40[rsp], rax
	call	dstr_cat@PLT
	mov	edi, DWORD PTR 32[rsp]
	mov	rsi, r14
	call	FindFirstFileA@PLT
	cmp	QWORD PTR INVALID_HANDLE_VALUE[rip], rax
	mov	r12, rax
	je	.L4
	mov	rax, QWORD PTR 40[rsp]
	mov	rdi, r13
	lea	rsi, -4[rax]
	call	dstr_resize@PLT
	lea	rax, 64[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, r14
	mov	rdi, r12
	call	FindNextFileA@PLT
	test	rax, rax
	je	.L16
.L9:
	pxor	xmm0, xmm0
	mov	eax, DWORD PTR 48[rsp]
	movaps	XMMWORD PTR 64[rsp], xmm0
	test	DWORD PTR FILE_ATTRIBUTE_DIRECTORY[rip], eax
	jne	.L6
	mov	rbx, QWORD PTR 8[rsp]
	mov	rsi, r13
	xor	r15d, r15d
	lea	rbp, 24[rsp]
	mov	rdi, rbx
	call	dstr_copy_dstr@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	dstr_cat@PLT
	mov	rsi, QWORD PTR 56[rsp]
	mov	rdi, rbx
	call	dstr_cat@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR 64[rsp]
	mov	edi, DWORD PTR ft2_lib[rip]
	mov	rcx, rbp
	mov	rdx, r15
	call	FT_New_Face@PLT
	test	rax, rax
	jne	.L7
	mov	edx, DWORD PTR 64[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	mov	esi, r15d
	add	r15, 1
	call	build_font_path_info@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	rbx, QWORD PTR [rdi]
	call	FT_Done_Face@PLT
	cmp	r15, rbx
	jl	.L8
.L7:
	mov	rdi, QWORD PTR 8[rsp]
	call	dstr_free@PLT
	mov	rsi, r14
	mov	rdi, r12
	call	FindNextFileA@PLT
	test	rax, rax
	jne	.L9
.L16:
	mov	rdi, r12
	call	FindClose@PLT
	xor	eax, eax
	call	save_font_list@PLT
.L4:
	mov	rdi, r13
	call	dstr_free@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	load_os_font_list, .-load_os_font_list
	.comm	ft2_lib,4,4
	.comm	S_OK,8,8
	.comm	SHGFP_TYPE_CURRENT,4,4
	.comm	MAX_PATH,4,4
	.comm	LOG_WARNING,4,4
	.comm	INVALID_HANDLE_VALUE,8,8
	.comm	FILE_ATTRIBUTE_DIRECTORY,4,4
	.comm	CSIDL_FONTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_find-font-windows.c_load_os_font_list.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error finding windows font folder\000"
	.align	2
.LC1:
	.ascii	"\\*.*\000"
	.align	2
.LC2:
	.ascii	"\\\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_os_font_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_os_font_list, %function
load_os_font_list:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, #0
	ldr	r3, .L17
	sub	sp, sp, #48
	ldr	r1, [r3]
	ldr	r3, .L17+4
	add	r0, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	str	r5, [sp, #20]
	str	r5, [sp, #24]
	str	r5, [sp, #28]
	bl	dstr_reserve
	ldr	ip, [sp, #20]
	ldr	r3, .L17+8
	ldr	r1, .L17+12
	ldr	r3, [r3]
	ldr	r1, [r1]
	mov	r2, r5
	mov	r0, r5
	str	ip, [sp]
	bl	SHGetFolderPathA
	ldr	r3, .L17+16
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L17+20
	ldr	r1, .L17+24
	ldr	r0, [r3]
	bl	blog
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r0, [sp, #20]
	bl	strlen
	mov	r3, r0
	ldr	r1, .L17+28
	add	r0, sp, #20
	str	r3, [sp, #28]
	bl	dstr_cat
	ldr	r0, [sp, #20]
	add	r1, sp, #12
	bl	FindFirstFileA
	ldr	r3, .L17+32
	mov	r7, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L4
	ldr	r1, [sp, #28]
	add	r0, sp, #20
	sub	r1, r1, #4
	bl	dstr_resize
	ldr	r8, .L17+36
	ldr	r9, .L17+40
	ldr	r6, .L17+44
	b	.L9
.L6:
	mov	r0, r7
	add	r1, sp, #12
	bl	FindNextFileA
	cmp	r0, #0
	beq	.L16
.L9:
	ldr	r4, [sp, #12]
	ldr	r3, [r8]
	str	r5, [sp, #32]
	ands	r4, r4, r3
	str	r5, [sp, #36]
	str	r5, [sp, #40]
	bne	.L6
	add	r1, sp, #20
	add	r0, sp, #32
	bl	dstr_copy_dstr
	mov	r1, r9
	add	r0, sp, #32
	bl	dstr_cat
	ldr	r1, [sp, #16]
	add	r0, sp, #32
	bl	dstr_cat
.L8:
	mov	r2, r4
	ldr	r1, [sp, #32]
	ldr	r0, [r6]
	add	r3, sp, #8
	bl	FT_New_Face
	cmp	r0, #0
	bne	.L7
	mov	r1, r4
	ldr	r2, [sp, #32]
	ldr	r0, [sp, #8]
	bl	build_font_path_info
	ldr	r0, [sp, #8]
	add	r4, r4, #1
	ldr	r10, [r0]
	bl	FT_Done_Face
	cmp	r4, r10
	blt	.L8
.L7:
	add	r0, sp, #32
	bl	dstr_free
	b	.L6
.L16:
	mov	r0, r7
	bl	FindClose
	bl	save_font_list
.L4:
	add	r0, sp, #20
	bl	dstr_free
	b	.L1
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	MAX_PATH
	.word	.LC3
	.word	SHGFP_TYPE_CURRENT
	.word	CSIDL_FONTS
	.word	S_OK
	.word	LOG_WARNING
	.word	.LC0
	.word	.LC1
	.word	INVALID_HANDLE_VALUE
	.word	FILE_ATTRIBUTE_DIRECTORY
	.word	.LC2
	.word	ft2_lib
	.size	load_os_font_list, .-load_os_font_list
	.comm	ft2_lib,4,4
	.comm	S_OK,4,4
	.comm	SHGFP_TYPE_CURRENT,4,4
	.comm	MAX_PATH,4,4
	.comm	LOG_WARNING,4,4
	.comm	INVALID_HANDLE_VALUE,4,4
	.comm	FILE_ATTRIBUTE_DIRECTORY,4,4
	.comm	CSIDL_FONTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
