	.file	"extr_platform_fonts.c_GetBestFont.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	GetBestFont, @function
GetBestFont:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rsi]
	mov	QWORD PTR 8[rsp], rdi
	test	rbp, rbp
	je	.L1
	test	edx, edx
	mov	r13, r8
	mov	rbx, rbp
	setne	r15b
	test	ecx, ecx
	setne	r14b
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L8:
	test	r13, r13
	jne	.L22
.L3:
	xor	eax, eax
.L4:
	mov	edx, DWORD PTR 4[rbx]
	test	edx, edx
	lea	edx, 100[rax]
	sete	cl
	cmp	cl, r15b
	mov	ecx, DWORD PTR [rbx]
	cmovne	eax, edx
	test	ecx, ecx
	sete	cl
	lea	edx, 10[rax]
	cmp	cl, r14b
	cmovne	eax, edx
	cmp	eax, r12d
	jle	.L7
	mov	rbp, rbx
	mov	r12d, eax
.L7:
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	jne	.L8
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, rbp
	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
.L22:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, rbx
	call	GetFace@PLT
	test	rax, rax
	je	.L3
	mov	rsi, r13
	mov	rdi, rax
	call	FT_Get_Char_Index@PLT
	mov	r9, rax
	mov	eax, 1000
	test	r9, r9
	jne	.L4
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	GetBestFont, .-GetBestFont
	.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_platform_fonts.c_GetBestFont.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetBestFont, %function
GetBestFont:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [r1]
	ldr	r10, [sp, #32]
	cmp	r6, #0
	beq	.L1
	subs	r9, r2, #0
	movne	r9, #1
	subs	r7, r3, #0
	mov	r8, r0
	movne	r7, #1
	mov	r4, r6
	mov	r5, #0
	b	.L8
.L3:
	mov	r2, #0
.L4:
	ldr	r3, [r4, #4]
	clz	r3, r3
	lsr	r3, r3, #5
	cmp	r3, r9
	ldr	r3, [r4]
	addne	r2, r2, #100
	clz	r3, r3
	lsr	r3, r3, #5
	cmp	r3, r7
	addne	r2, r2, #10
	cmp	r2, r5
	movgt	r6, r4
	ldr	r4, [r4, #8]
	movgt	r5, r2
	cmp	r4, #0
	beq	.L1
.L8:
	cmp	r10, #0
	beq	.L3
	mov	r1, r4
	mov	r0, r8
	bl	GetFace
	cmp	r0, #0
	beq	.L3
	mov	r1, r10
	bl	FT_Get_Char_Index
	cmp	r0, #0
	movne	r2, #1000
	bne	.L4
	b	.L3
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	GetBestFont, .-GetBestFont
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
