	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_installed_font
_find_installed_font:                   ## @find_installed_font
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_CreateCompatibleDC
	movl	%eax, %r13d
	movq	_FontFamilyNotFound@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_is_font_installed_proc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movl	%r13d, %edi
	movq	%rbx, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_EnumFontFamiliesW
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	(%r14), %edi
	movl	-48(%rbp), %esi
	callq	_strcpyW
	leaq	-48(%rbp), %rdi
	callq	_CreateFontIndirectW
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_SelectObject
	movl	%eax, %ebx
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_get_font_metrics
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_NotTrueTypeFont@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_Ok@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r15d
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_SelectObject
	movl	%r12d, %edi
	callq	_DeleteObject
LBB0_5:
	movl	%r13d, %edi
	callq	_DeleteDC
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FontFamilyNotFound,4,2         ## @FontFamilyNotFound
	.comm	_is_font_installed_proc,4,2     ## @is_font_installed_proc
	.comm	_Ok,4,2                         ## @Ok
	.comm	_NotTrueTypeFont,4,2            ## @NotTrueTypeFont
	.no_dead_strip	_find_installed_font
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_installed_font
_find_installed_font:                   ; @find_installed_font
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x22, x0
	mov	w0, #0
	bl	_CreateCompatibleDC
	mov	x19, x0
Lloh0:
	adrp	x8, _FontFamilyNotFound@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FontFamilyNotFound@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _is_font_installed_proc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _is_font_installed_proc@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x1, x22
	bl	_EnumFontFamiliesW
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [sp, #8]
	bl	_strcpyW
	add	x0, sp, #8
	bl	_CreateFontIndirectW
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_SelectObject
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	bl	_get_font_metrics
Lloh6:
	adrp	x8, _Ok@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
Lloh8:
	adrp	x9, _NotTrueTypeFont@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NotTrueTypeFont@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_SelectObject
	mov	x0, x22
	bl	_DeleteObject
LBB0_2:
	mov	x0, x19
	bl	_DeleteDC
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FontFamilyNotFound,4,2         ; @FontFamilyNotFound
	.comm	_is_font_installed_proc,4,2     ; @is_font_installed_proc
	.comm	_Ok,4,2                         ; @Ok
	.comm	_NotTrueTypeFont,4,2            ; @NotTrueTypeFont
	.no_dead_strip	_find_installed_font
.subsections_via_symbols
