	.file	"extr_psfont.c_cf2_font_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cf2_font_setup, @function
cf2_font_setup:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[rdi]
	mov	r14, QWORD PTR [rdi]
	mov	r13, QWORD PTR 192[rdi]
	mov	rbx, QWORD PTR FALSE[rip]
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR FT_Err_Ok[rip]
	mov	DWORD PTR 168[rdi], eax
	mov	rdi, r13
	call	cf2_getSubfont@PLT
	mov	r15, rax
	cmp	QWORD PTR 184[rbp], rax
	je	.L3
	mov	QWORD PTR 184[rbp], rax
	mov	ebx, DWORD PTR TRUE[rip]
.L3:
	mov	r9d, DWORD PTR 176[rbp]
	test	r9d, r9d
	je	.L25
.L5:
	mov	rdi, r13
	call	cf2_getPpemY@PLT
	cmp	QWORD PTR 16[rbp], rax
	je	.L7
	mov	QWORD PTR 16[rbp], rax
	mov	ebx, DWORD PTR TRUE[rip]
.L7:
	mov	edi, DWORD PTR 24[rbp]
	and	edi, DWORD PTR CF2_FlagsHinted[rip]
	call	FT_BOOL@PLT
	lea	rsi, 116[rbp]
	mov	edx, 32
	mov	rdi, r12
	mov	QWORD PTR 128[rbp], rax
	call	ft_memcmp@PLT
	test	rax, rax
	jne	.L26
.L8:
	mov	edi, DWORD PTR 24[rbp]
	and	edi, DWORD PTR CF2_FlagsDarkened[rip]
	cmp	DWORD PTR 28[rbp], edi
	je	.L9
	call	FT_BOOL@PLT
	mov	ebx, DWORD PTR TRUE[rip]
	mov	DWORD PTR 28[rbp], eax
.L9:
	test	ebx, ebx
	je	.L1
	mov	r15d, DWORD PTR 32[rbp]
	mov	r12, QWORD PTR 16[rbp]
	mov	eax, 1000
	mov	edi, 4
	test	r15d, r15d
	cmove	r15d, eax
	call	cf2_intToFixed@PLT
	mov	rsi, r12
	movsx	rdi, eax
	call	FT_MAX@PLT
	mov	edi, 1000
	mov	rbx, rax
	call	cf2_intToFixed@PLT
	mov	rdi, r13
	cdq
	idiv	r15d
	movsx	r12, eax
	call	cf2_getStdVW@PLT
	mov	QWORD PTR 40[rbp], rax
	test	rax, rax
	jle	.L27
	lea	rcx, 84[rbp]
	test	r14, r14
	jle	.L13
.L28:
	mov	edi, r15d
	mov	QWORD PTR 8[rsp], rcx
	call	cf2_intToFixed@PLT
	mov	rsi, rbx
	mov	edi, eax
	call	FT_DivFix@PLT
	mov	rdi, r14
	mov	rsi, rax
	call	FT_MAX@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rdx, QWORD PTR 40[rbp]
	mov	rdi, r12
	mov	r8, rax
	mov	eax, DWORD PTR 88[rbp]
	mov	r9, QWORD PTR FALSE[rip]
	mov	rsi, rbx
	push	rax
	.cfi_def_cfa_offset 96
	mov	rcx, QWORD PTR 24[rsp]
	call	cf2_computeDarkening@PLT
	pop	rdi
	.cfi_def_cfa_offset 88
	pop	r8
	.cfi_def_cfa_offset 80
.L14:
	mov	rdi, r13
	call	cf2_getStdHW@PLT
	mov	rsi, rax
	test	rax, rax
	jle	.L15
	mov	edi, 2
	mov	r13, QWORD PTR 40[rbp]
	call	MUL_INT32@PLT
	mov	edi, 75
	cmp	r13, rax
	jg	.L23
.L15:
	mov	edi, 110
.L23:
	call	cf2_intToFixed@PLT
	mov	rsi, r12
	mov	edi, eax
	call	FT_DivFix@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	movsx	r9, DWORD PTR 28[rbp]
	mov	rsi, rbx
	mov	rdx, rax
	mov	QWORD PTR 48[rbp], rax
	mov	eax, DWORD PTR 88[rbp]
	lea	rcx, 80[rbp]
	mov	rdi, r12
	push	rax
	.cfi_def_cfa_offset 96
	mov	r8, QWORD PTR 16[rsp]
	call	cf2_computeDarkening@PLT
	cmp	QWORD PTR 80[rbp], 0
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	je	.L17
	mov	rax, QWORD PTR TRUE[rip]
	mov	rdx, QWORD PTR FALSE[rip]
.L18:
	mov	QWORD PTR 72[rbp], rax
	lea	rdi, 56[rbp]
	mov	rsi, rbp
	mov	QWORD PTR 64[rbp], rdx
	add	rsp, 24
	.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
	jmp	cf2_blues_init@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR 88[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rdx, QWORD PTR 40[rbp]
	mov	rsi, rbx
	movsx	r9, DWORD PTR 28[rbp]
	xor	r8d, r8d
	mov	rdi, r12
	push	rax
	.cfi_def_cfa_offset 96
	call	cf2_computeDarkening@PLT
	pop	rcx
	.cfi_def_cfa_offset 88
	pop	rsi
	.cfi_def_cfa_offset 80
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 24
	.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
.L26:
	.cfi_restore_state
	mov	rax, QWORD PTR [r12]
	xor	edi, edi
	mov	QWORD PTR 116[rbp], rax
	call	cf2_intToFixed@PLT
	mov	edi, 1
	mov	DWORD PTR 120[rbp], eax
	mov	DWORD PTR 116[rbp], eax
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 108[rbp], rax
	call	cf2_intToFixed@PLT
	xor	edi, edi
	mov	DWORD PTR 96[rbp], eax
	mov	DWORD PTR 92[rbp], eax
	call	cf2_intToFixed@PLT
	mov	ebx, DWORD PTR TRUE[rip]
	mov	DWORD PTR 104[rbp], eax
	mov	DWORD PTR 100[rbp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, r13
	call	cf2_getVStore@PLT
	cmp	QWORD PTR [rax], 0
	je	.L5
	mov	eax, DWORD PTR 4[r15]
	mov	DWORD PTR 160[rbp], eax
	mov	rax, QWORD PTR FALSE[rip]
	mov	QWORD PTR 152[rbp], rax
	mov	eax, DWORD PTR [r15]
	mov	DWORD PTR 144[rbp], 0
	mov	DWORD PTR 148[rbp], eax
	mov	QWORD PTR 136[rbp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR FALSE[rip]
	mov	rdx, rax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, 75
	call	cf2_intToFixed@PLT
	mov	rsi, r12
	mov	edi, eax
	call	FT_DivFix@PLT
	lea	rcx, 84[rbp]
	mov	QWORD PTR 40[rbp], rax
	test	r14, r14
	jg	.L28
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	cf2_font_setup, .-cf2_font_setup
	.comm	fontMatrix,8,8
	.comm	TRUE,8,8
	.comm	FT_Err_Ok,4,4
	.comm	FALSE,8,8
	.comm	CF2_FlagsHinted,4,4
	.comm	CF2_FlagsDarkened,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_psfont.c_cf2_font_setup.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cf2_font_setup, %function
cf2_font_setup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r3, .L35
	ldr	r8, [r0, #128]
	ldr	r3, [r3]
	ldr	r9, .L35+4
	str	r3, [r0, #112]
	sub	sp, sp, #28
	mov	r0, r8
	ldm	r4, {r10, fp}
	ldr	r7, [r9]
	mov	r5, r1
	bl	cf2_getSubfont
	ldr	r3, [r4, #124]
	mov	r6, r0
	cmp	r3, r0
	ldrne	r3, .L35+8
	strne	r0, [r4, #124]
	ldrne	r7, [r3]
	ldr	r3, [r4, #120]
	cmp	r3, #0
	beq	.L31
.L5:
	mov	r0, r8
	bl	cf2_getPpemY
	ldr	r3, [r4, #8]
	add	r6, r4, #80
	cmp	r3, r0
	ldrne	r3, .L35+8
	strne	r0, [r4, #8]
	ldrne	r7, [r3]
	ldr	r3, .L35+12
	ldr	r0, [r4, #12]
	ldr	r3, [r3]
	and	r0, r0, r3
	bl	FT_BOOL
	mov	r1, r6
	str	r0, [r4, #88]
	mov	r2, #16
	mov	r0, r5
	bl	ft_memcmp
	cmp	r0, #0
	bne	.L32
.L8:
	ldr	r3, .L35+16
	ldr	r0, [r4, #12]
	ldr	r2, [r3]
	ldr	r3, [r4, #16]
	and	r0, r0, r2
	cmp	r3, r0
	beq	.L9
	bl	FT_BOOL
	ldr	r3, .L35+8
	str	r0, [r4, #16]
	ldr	r7, [r3]
.L9:
	cmp	r7, #0
	beq	.L1
	ldr	r7, [r4, #20]
	mov	r0, #4
	cmp	r7, #0
	moveq	r7, #1000
	bl	cf2_intToFixed
	ldr	r1, [r4, #8]
	bl	FT_MAX
	mov	r6, r0
	mov	r0, #1000
	bl	cf2_intToFixed
	mov	r1, r7
	bl	__aeabi_idiv
	mov	r5, r0
	mov	r0, r8
	bl	cf2_getStdVW
	cmp	r0, #0
	str	r0, [r4, #24]
	ble	.L33
	cmp	r10, #0
	add	r3, r4, #48
	ble	.L13
.L34:
	mov	r0, r7
	str	r3, [sp, #20]
	bl	cf2_intToFixed
	mov	r1, r6
	bl	FT_DivFix
	mov	r1, r0
	mov	r0, r10
	bl	FT_MAX
	ldr	r2, [r9]
	ldr	r3, [sp, #20]
	ldr	r1, [r4, #52]
	str	r0, [sp]
.L28:
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r1, r6
	ldr	r2, [r4, #24]
	mov	r0, r5
	bl	cf2_computeDarkening
	mov	r0, r8
	bl	cf2_getStdHW
	subs	r1, r0, #0
	ble	.L15
	mov	r0, #2
	ldr	r7, [r4, #24]
	bl	MUL_INT32
	cmp	r7, r0
	movgt	r0, #75
	bgt	.L29
.L15:
	mov	r0, #110
.L29:
	bl	cf2_intToFixed
	mov	r1, r5
	bl	FT_DivFix
	ldr	ip, [r4, #52]
	str	r0, [r4, #28]
	str	fp, [sp]
	ldr	r3, [r4, #16]
	mov	r2, r0
	stmib	sp, {r3, ip}
	mov	r1, r6
	add	r3, r4, #44
	mov	r0, r5
	bl	cf2_computeDarkening
	ldr	r3, [r4, #48]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [r9]
.L18:
	ldr	r2, .L35+8
	ldr	r2, [r2]
.L19:
	mov	r1, r4
	add	r0, r4, #32
	str	r2, [r4, #40]
	str	r3, [r4, #36]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	cf2_blues_init
.L13:
	mov	r0, #0
	ldr	r1, [r4, #52]
	ldr	r2, [r4, #16]
	str	r0, [sp]
	b	.L28
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	ldm	r5, {r0, r1}
	stm	r6, {r0, r1}
	mov	r0, #0
	bl	cf2_intToFixed
	add	r3, r4, #72
	str	r0, [r4, #84]
	str	r0, [r4, #80]
	ldm	r5, {r0, r1}
	stm	r3, {r0, r1}
	mov	r0, #1
	bl	cf2_intToFixed
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4, #60]
	str	r3, [r4, #56]
	bl	cf2_intToFixed
	ldr	r3, .L35+8
	str	r0, [r4, #68]
	ldr	r7, [r3]
	str	r0, [r4, #64]
	b	.L8
.L31:
	mov	r0, r8
	str	r3, [sp, #20]
	bl	cf2_getVStore
	ldr	r2, [r0]
	cmp	r2, #0
	beq	.L5
	ldr	r0, [r6, #4]
	ldr	r1, [r6]
	ldr	r3, [sp, #20]
	ldr	r2, [r9]
	str	r0, [r4, #108]
	str	r1, [r4, #100]
	str	r3, [r4, #96]
	str	r3, [r4, #92]
	str	r2, [r4, #104]
	b	.L5
.L17:
	ldr	r2, [r4, #44]
	ldr	r3, [r9]
	cmp	r2, #0
	moveq	r2, r3
	beq	.L19
	b	.L18
.L33:
	mov	r0, #75
	bl	cf2_intToFixed
	mov	r1, r5
	bl	FT_DivFix
	cmp	r10, #0
	str	r0, [r4, #24]
	add	r3, r4, #48
	bgt	.L34
	b	.L13
.L36:
	.align	2
.L35:
	.word	FT_Err_Ok
	.word	FALSE
	.word	TRUE
	.word	CF2_FlagsHinted
	.word	CF2_FlagsDarkened
	.size	cf2_font_setup, .-cf2_font_setup
	.comm	fontMatrix,4,4
	.comm	TRUE,4,4
	.comm	FT_Err_Ok,4,4
	.comm	FALSE,4,4
	.comm	CF2_FlagsHinted,4,4
	.comm	CF2_FlagsDarkened,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
