	.file	"160451.c"
	.intel_syntax noprefix
	.text
	.local	vt_fontmap
	.comm	vt_fontmap,131072,32
	.local	vt_font_data
	.comm	vt_font_data,8,8
	.local	vt_font_size
	.comm	vt_font_size,4,4
	.local	vt_font_maxsize
	.comm	vt_font_maxsize,4,4
	.type	font_add_glyph, @function
font_add_glyph:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR vt_font_size[rip]
	mov	eax, DWORD PTR vt_font_maxsize[rip]
	cmp	edx, eax
	jl	.L2
	mov	eax, DWORD PTR vt_font_maxsize[rip]
	add	eax, 256
	mov	DWORD PTR vt_font_maxsize[rip], eax
	mov	eax, DWORD PTR vt_font_maxsize[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR vt_font_data[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR vt_font_data[rip], rax
.L2:
	mov	edx, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR vt_font_data[rip]
	mov	eax, DWORD PTR vt_font_size[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	eax, eax
	add	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR vt_font_size[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR vt_font_size[rip], edx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	font_add_glyph, .-font_add_glyph
	.type	utf8_2_unicode, @function
utf8_2_unicode:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -40[rbp], rdx
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsx	dx, BYTE PTR -28[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, -1
	jne	.L5
	mov	eax, -2
	jmp	.L11
.L5:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, -2
	jne	.L7
	mov	eax, -1
	jmp	.L11
.L7:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 128
	test	eax, eax
	jne	.L8
	mov	eax, 0
	jmp	.L11
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], 0
	movsx	eax, BYTE PTR -28[rbp]
	and	eax, 224
	cmp	eax, 192
	jne	.L9
	lea	rcx, -10[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	gzread@PLT
	movsx	eax, BYTE PTR -28[rbp]
	sal	eax, 6
	and	ax, 1984
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	mov	edx, eax
	movzx	eax, BYTE PTR -10[rbp]
	cbw
	and	eax, 63
	or	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], dx
	jmp	.L10
.L9:
	movsx	eax, BYTE PTR -28[rbp]
	and	eax, 240
	cmp	eax, 224
	jne	.L10
	lea	rcx, -10[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	gzread@PLT
	lea	rcx, -9[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	gzread@PLT
	movsx	eax, BYTE PTR -28[rbp]
	sal	eax, 12
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	mov	edx, eax
	movzx	eax, BYTE PTR -10[rbp]
	movsx	eax, al
	sal	eax, 6
	and	ax, 4032
	or	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	mov	edx, eax
	movzx	eax, BYTE PTR -9[rbp]
	cbw
	and	eax, 63
	or	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], dx
.L10:
	mov	eax, 0
.L11:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	utf8_2_unicode, .-utf8_2_unicode
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"unable to read file %s\n"
	.align 8
.LC2:
	.string	"Wrong header in psf2 font file (%s)\n"
.LC3:
	.string	"File %s not in PSFv2 format\n"
	.align 8
.LC4:
	.string	"File %s does not include Unicode glyphs\n"
	.align 8
.LC5:
	.string	"File %s does not include 8x16 font\n"
	.align 8
.LC6:
	.string	"Cannot read font character data from %s\n"
	.text
	.type	load_psf_font, @function
load_psf_font:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -72[rbp], 32
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	gzopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L32
.L14:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, eax
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	gzread@PLT
	cdqe
	cmp	QWORD PTR -72[rbp], rax
	je	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	gzclose@PLT
	mov	eax, -1
	jmp	.L32
.L16:
	movzx	eax, BYTE PTR -48[rbp]
	cmp	al, 114
	jne	.L17
	movzx	eax, BYTE PTR -47[rbp]
	cmp	al, -75
	jne	.L17
	movzx	eax, BYTE PTR -46[rbp]
	cmp	al, 74
	jne	.L17
	movzx	eax, BYTE PTR -45[rbp]
	cmp	al, -122
	je	.L18
.L17:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	gzclose@PLT
	mov	eax, -1
	jmp	.L32
.L18:
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	gzclose@PLT
	mov	eax, -1
	jmp	.L32
.L19:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 16
	je	.L20
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 8
	je	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	gzclose@PLT
	mov	eax, -1
	jmp	.L32
.L20:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, edx
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	edx, DWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	gzread@PLT
	cmp	DWORD PTR -80[rbp], eax
	je	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	gzclose@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L32
.L21:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L22
.L31:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L23
.L30:
	movzx	eax, BYTE PTR -95[rbp]
	movsx	ecx, al
	lea	rdx, -94[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	utf8_2_unicode
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], -1
	jne	.L24
	jmp	.L23
.L24:
	cmp	DWORD PTR -76[rbp], -2
	je	.L34
	movzx	eax, WORD PTR -94[rbp]
	movzx	eax, ax
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, vt_fontmap[rip]
	movzx	eax, WORD PTR [rdx+rax]
	test	ax, ax
	jne	.L27
	movzx	eax, WORD PTR -94[rbp]
	test	ax, ax
	je	.L27
	cmp	DWORD PTR -88[rbp], 0
	jne	.L28
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, DWORD PTR -92[rbp]
	imul	edx, DWORD PTR -84[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	esi, eax
	mov	rdi, rdx
	call	font_add_glyph
	mov	DWORD PTR -88[rbp], eax
.L28:
	movzx	eax, WORD PTR -94[rbp]
	movzx	eax, ax
	mov	edx, DWORD PTR -88[rbp]
	mov	ecx, edx
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, vt_fontmap[rip]
	mov	WORD PTR [rdx+rax], cx
.L27:
	cmp	DWORD PTR -108[rbp], 0
	je	.L23
	cmp	DWORD PTR -88[rbp], 0
	je	.L23
	cmp	DWORD PTR -92[rbp], 255
	jg	.L23
	mov	eax, DWORD PTR -92[rbp]
	lea	edx, 61440[rax]
	mov	eax, DWORD PTR -88[rbp]
	mov	ecx, eax
	movsx	rax, edx
	lea	rdx, [rax+rax]
	lea	rax, vt_fontmap[rip]
	mov	WORD PTR [rdx+rax], cx
.L23:
	lea	rcx, -95[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	gzread@PLT
	cmp	eax, 1
	je	.L30
	jmp	.L26
.L34:
	nop
.L26:
	add	DWORD PTR -92[rbp], 1
.L22:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -92[rbp]
	cmp	edx, eax
	ja	.L31
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	gzclose@PLT
	mov	eax, 0
.L32:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	load_psf_font, .-load_psf_font
	.section	.rodata
	.align 8
.LC7:
	.string	"static int vt_font_size = %d;\n\n"
	.align 8
.LC8:
	.string	"static unsigned char vt_font_data[] = {"
.LC9:
	.string	"\t/* %d 0x%02x */\n"
.LC10:
	.string	"\t0x%02X, /* "
.LC11:
	.string	" */"
.LC12:
	.string	"};\n"
	.align 8
.LC13:
	.string	"static unsigned short vt_fontmap[65536] = {"
.LC14:
	.string	"\t/* 0x%04X => */ %d,\n"
	.text
	.globl	print_glyphs
	.type	print_glyphs, @function
print_glyphs:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	eax, DWORD PTR vt_font_size[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L36
.L43:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L37
.L42:
	mov	rdx, QWORD PTR vt_font_data[rip]
	mov	eax, DWORD PTR -16[rbp]
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -17[rbp], al
	movzx	eax, BYTE PTR -17[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 128
	jmp	.L38
.L41:
	movzx	eax, BYTE PTR -17[rbp]
	and	eax, DWORD PTR -8[rbp]
	test	eax, eax
	je	.L39
	mov	eax, 49
	jmp	.L40
.L39:
	mov	eax, 48
.L40:
	mov	edi, eax
	call	putchar@PLT
	sar	DWORD PTR -8[rbp]
.L38:
	cmp	DWORD PTR -8[rbp], 0
	jg	.L41
	lea	rdi, .LC11[rip]
	call	puts@PLT
	add	DWORD PTR -12[rbp], 1
.L37:
	cmp	DWORD PTR -12[rbp], 15
	jle	.L42
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L36:
	mov	eax, DWORD PTR vt_font_size[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L43
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L44
.L45:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, vt_fontmap[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	edx, ax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L44:
	cmp	DWORD PTR -4[rbp], 65534
	jle	.L45
	lea	rdi, .LC12[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_glyphs, .-print_glyphs
	.section	.rodata
	.align 8
.LC15:
	.string	"Usage: genfont [-d font_path] [font1 font2...]\n"
	.align 8
.LC16:
	.string	"Generate Glyph Bitmaps and associated Unicode mapping\n\n"
	.align 8
.LC17:
	.string	"\tfont1... List of fonts, the first one is the default\n\n"
	.align 8
.LC18:
	.string	"\t-d path: Font path defaults to /usr/share/consolefonts\n\n"
	.align 8
.LC19:
	.string	"Example: genfont default8x16.psf.gz lat1u-16.psf.gz lat2u-16.psf.gz\n"
	.text
	.type	print_usage, @function
print_usage:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 47
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 55
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 55
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 57
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 68
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	print_usage, .-print_usage
	.section	.rodata
.LC20:
	.string	"hd:"
.LC21:
	.string	"%s/%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3904
	mov	DWORD PTR -7988[rbp], edi
	mov	QWORD PTR -8000[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -7968[rbp], 0
	mov	QWORD PTR -7960[rbp], 0
	movabs	rax, 7018986666877744431
	movabs	rdx, 8030883985216202098
	mov	QWORD PTR -7952[rbp], rax
	mov	QWORD PTR -7944[rbp], rdx
	movabs	rax, 32497639985931628
	mov	edx, 0
	mov	QWORD PTR -7936[rbp], rax
	mov	QWORD PTR -7928[rbp], rdx
	lea	rdx, -7920[rbp]
	mov	eax, 0
	mov	ecx, 476
	mov	rdi, rdx
	rep stosq
	jmp	.L48
.L51:
	cmp	DWORD PTR -7972[rbp], 100
	je	.L49
	cmp	DWORD PTR -7972[rbp], 104
	jne	.L50
	mov	eax, 0
	call	print_usage
	mov	edi, 0
	call	exit@PLT
.L49:
	mov	rcx, QWORD PTR optarg[rip]
	lea	rax, -7952[rbp]
	mov	edx, 3839
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	jmp	.L48
.L50:
	mov	eax, 0
	call	print_usage
	mov	edi, 1
	call	exit@PLT
.L48:
	mov	rcx, QWORD PTR -8000[rbp]
	mov	eax, DWORD PTR -7988[rbp]
	lea	rdx, .LC20[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -7972[rbp], eax
	cmp	DWORD PTR -7972[rbp], -1
	jne	.L51
	lea	rax, -7968[rbp]
	mov	esi, 16
	mov	rdi, rax
	call	font_add_glyph
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -7988[rbp], eax
	jg	.L52
	mov	eax, 0
	call	print_usage
	mov	edi, 1
	call	exit@PLT
.L52:
	mov	eax, DWORD PTR optind[rip]
	mov	DWORD PTR -7976[rbp], eax
	jmp	.L53
.L54:
	mov	eax, DWORD PTR -7976[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8000[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rdx, -7952[rbp]
	lea	rax, -4112[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC21[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -7976[rbp], eax
	sete	al
	movzx	edx, al
	lea	rax, -4112[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	load_psf_font
	add	DWORD PTR -7976[rbp], 1
.L53:
	mov	eax, DWORD PTR -7976[rbp]
	cmp	eax, DWORD PTR -7988[rbp]
	jl	.L54
	mov	eax, 0
	call	print_glyphs
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"160451.c"
	.text
	.local	vt_fontmap
	.comm	vt_fontmap,131072,4
	.local	vt_font_data
	.comm	vt_font_data,4,4
	.local	vt_font_size
	.comm	vt_font_size,4,4
	.local	vt_font_maxsize
	.comm	vt_font_maxsize,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	font_add_glyph, %function
font_add_glyph:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L2
	ldr	r3, .L4+4
	ldr	r3, [r3]
	add	r3, r3, #256
	ldr	r2, .L4+4
	str	r3, [r2]
	ldr	r3, .L4+8
	ldr	r2, [r3]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	ldr	r2, .L4+8
	str	r3, [r2]
.L2:
	ldr	r3, .L4+8
	ldr	r2, [r3]
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-12]
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L4
	str	r2, [r1]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	vt_font_size
	.word	vt_font_maxsize
	.word	vt_font_data
	.size	font_add_glyph, .-font_add_glyph
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	utf8_2_unicode, %function
utf8_2_unicode:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	mov	r3, r1
	str	r2, [fp, #-24]
	strb	r3, [fp, #-17]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3]
	ldr	r2, .L15+4
	cmp	r3, r2
	bne	.L7
	mvn	r3, #1
	b	.L13
.L7:
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3]
	ldr	r2, .L15+8
	cmp	r3, r2
	bne	.L9
	mvn	r3, #0
	b	.L13
.L9:
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3]
	and	r3, r3, #128
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
	b	.L13
.L10:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	and	r3, r3, #224
	cmp	r3, #192
	bne	.L11
	sub	r3, fp, #10
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	gzread
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	lsl	r3, r3, #6
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1984
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	and	r3, r3, #63
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
	b	.L12
.L11:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	and	r3, r3, #240
	cmp	r3, #224
	bne	.L12
	sub	r3, fp, #10
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	gzread
	sub	r3, fp, #9
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	gzread
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	lsl	r3, r3, #12
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	lsl	r3, r3, #6
	lsl	r3, r3, #16
	asr	r3, r3, #16
	and	r3, r3, #4032
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	and	r3, r3, #63
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
.L12:
	mov	r3, #0
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	65535
	.word	65534
	.size	utf8_2_unicode, .-utf8_2_unicode
	.section	.rodata
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"unable to read file %s\012\000"
	.align	2
.LC3:
	.ascii	"Wrong header in psf2 font file (%s)\012\000"
	.align	2
.LC4:
	.ascii	"File %s not in PSFv2 format\012\000"
	.align	2
.LC5:
	.ascii	"File %s does not include Unicode glyphs\012\000"
	.align	2
.LC6:
	.ascii	"File %s does not include 8x16 font\012\000"
	.align	2
.LC7:
	.ascii	"Cannot read font character data from %s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_psf_font, %function
load_psf_font:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #32
	str	r3, [fp, #-64]
	ldr	r1, .L39+4
	ldr	r0, [fp, #-80]
	bl	gzopen
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L39+12
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L36
.L18:
	sub	r3, fp, #40
	ldr	r2, [fp, #-64]
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	gzread
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-64]
	cmp	r3, r2
	beq	.L20
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L39+16
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	gzclose
	mvn	r3, #0
	b	.L36
.L20:
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L21
	ldrb	r3, [fp, #-39]	@ zero_extendqisi2
	cmp	r3, #181
	bne	.L21
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #74
	bne	.L21
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #134
	beq	.L22
.L21:
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L39+20
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	gzclose
	mvn	r3, #0
	b	.L36
.L22:
	ldr	r3, [fp, #-28]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L39+24
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	gzclose
	mvn	r3, #0
	b	.L36
.L23:
	ldr	r3, [fp, #-16]
	cmp	r3, #16
	beq	.L24
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	beq	.L24
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L39+28
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	gzclose
	mvn	r3, #0
	b	.L36
.L24:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-56]
	mul	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-60]
	bl	gzread
	mov	r2, r0
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	beq	.L25
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L39+32
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	gzclose
	ldr	r0, [fp, #-48]
	bl	free
	mvn	r3, #0
	b	.L36
.L25:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L26
.L35:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L27
.L34:
	ldrb	r3, [fp, #-75]	@ zero_extendqisi2
	sub	r2, fp, #74
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	utf8_2_unicode
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L28
	b	.L27
.L28:
	ldr	r3, [fp, #-44]
	cmn	r3, #2
	beq	.L38
	ldrh	r3, [fp, #-74]
	ldr	r2, .L39+36
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	cmp	r3, #0
	bne	.L31
	ldrh	r3, [fp, #-74]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-56]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	ldr	r2, [fp, #-56]
	mov	r1, r2
	mov	r0, r3
	bl	font_add_glyph
	str	r0, [fp, #-68]
.L32:
	ldrh	r3, [fp, #-74]
	mov	r0, r3
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r1, .L39+36
	lsl	r3, r0, #1
	add	r3, r1, r3
	strh	r2, [r3]	@ movhi
.L31:
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-72]
	cmp	r3, #255
	bgt	.L27
	ldr	r3, [fp, #-72]
	add	r3, r3, #61440
	ldr	r2, [fp, #-68]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	ldr	r1, .L39+36
	lsl	r3, r3, #1
	add	r3, r1, r3
	strh	r2, [r3]	@ movhi
.L27:
	sub	r3, fp, #75
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	gzread
	mov	r3, r0
	cmp	r3, #1
	beq	.L34
	b	.L30
.L38:
	nop
.L30:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L26:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bhi	.L35
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r0, [fp, #-60]
	bl	gzclose
	mov	r3, #0
.L36:
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC8
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	vt_fontmap
	.size	load_psf_font, .-load_psf_font
	.section	.rodata
	.align	2
.LC9:
	.ascii	"static int vt_font_size = %d;\012\012\000"
	.align	2
.LC10:
	.ascii	"static unsigned char vt_font_data[] = {\000"
	.align	2
.LC11:
	.ascii	"\011/* %d 0x%02x */\012\000"
	.align	2
.LC12:
	.ascii	"\0110x%02X, /* \000"
	.align	2
.LC13:
	.ascii	" */\000"
	.align	2
.LC14:
	.ascii	"};\012\000"
	.align	2
.LC15:
	.ascii	"static unsigned short vt_fontmap[65536] = {\000"
	.align	2
.LC16:
	.ascii	"\011/* 0x%04X => */ %d,\012\000"
	.text
	.align	2
	.global	print_glyphs
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_glyphs, %function
print_glyphs:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L52
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L52+4
	bl	printf
	ldr	r0, .L52+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L42
.L49:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L52+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L43
.L48:
	ldr	r3, .L52+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	lsl	r1, r2, #4
	ldr	r2, [fp, #-16]
	add	r2, r1, r2
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L52+20
	bl	printf
	mov	r3, #128
	str	r3, [fp, #-12]
	b	.L44
.L47:
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L45
	mov	r3, #49
	b	.L46
.L45:
	mov	r3, #48
.L46:
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-12]
	asr	r3, r3, #1
	str	r3, [fp, #-12]
.L44:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L47
	ldr	r0, .L52+24
	bl	puts
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L43:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	ble	.L48
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L42:
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L49
	ldr	r0, .L52+28
	bl	puts
	ldr	r0, .L52+32
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L50
.L51:
	ldr	r2, .L52+36
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L52+40
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L50:
	ldr	r3, [fp, #-8]
	ldr	r2, .L52+44
	cmp	r3, r2
	ble	.L51
	ldr	r0, .L52+28
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	vt_font_size
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	vt_font_data
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	vt_fontmap
	.word	.LC16
	.word	65534
	.size	print_glyphs, .-print_glyphs
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Usage: genfont [-d font_path] [font1 font2...]\012\000"
	.align	2
.LC18:
	.ascii	"Generate Glyph Bitmaps and associated Unicode mappi"
	.ascii	"ng\012\012\000"
	.align	2
.LC19:
	.ascii	"\011font1... List of fonts, the first one is the de"
	.ascii	"fault\012\012\000"
	.align	2
.LC20:
	.ascii	"\011-d path: Font path defaults to /usr/share/conso"
	.ascii	"lefonts\012\012\000"
	.align	2
.LC21:
	.ascii	"Example: genfont default8x16.psf.gz lat1u-16.psf.gz"
	.ascii	" lat2u-16.psf.gz\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L55
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L55+4
	bl	fwrite
	ldr	r3, .L55
	ldr	r3, [r3]
	mov	r2, #55
	mov	r1, #1
	ldr	r0, .L55+8
	bl	fwrite
	ldr	r3, .L55
	ldr	r3, [r3]
	mov	r2, #55
	mov	r1, #1
	ldr	r0, .L55+12
	bl	fwrite
	ldr	r3, .L55
	ldr	r3, [r3]
	mov	r2, #57
	mov	r1, #1
	ldr	r0, .L55+16
	bl	fwrite
	ldr	r3, .L55
	ldr	r3, [r3]
	mov	r2, #68
	mov	r1, #1
	ldr	r0, .L55+20
	bl	fwrite
	nop
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	stderr
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	print_usage, .-print_usage
	.section	.rodata
	.align	2
.LC24:
	.ascii	"hd:\000"
	.align	2
.LC25:
	.ascii	"%s/%s\000"
	.align	2
.LC22:
	.ascii	"\000\000\000\000\000\000\000\000\000\000\000\000\000"
	.ascii	"\000\000\000"
	.align	2
.LC23:
	.ascii	"/usr/share/consolefonts\000"
	.space	3816
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 7976
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #7936
	sub	sp, sp, #52
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-3876]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-3880]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, .L66+4
	sub	ip, r3, #3856
	sub	ip, ip, #4
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r3, .L66+8
	sub	ip, r4, #3840
	sub	ip, ip, #4
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, r4, #3808
	sub	r3, r3, #12
	ldr	r2, .L66+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L58
.L61:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3864]
	cmp	r3, #100
	beq	.L59
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3864]
	cmp	r3, #104
	bne	.L60
	bl	print_usage
	mov	r0, #0
	bl	exit
.L59:
	ldr	r3, .L66+16
	ldr	r1, [r3]
	sub	r3, fp, #7936
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L66+20
	mov	r0, r3
	bl	strncpy
	b	.L58
.L60:
	bl	print_usage
	mov	r0, #1
	bl	exit
.L58:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, .L66+24
	ldr	r1, [r1, #-3880]
	ldr	r0, [r3, #-3876]
	bl	getopt
	str	r0, [r4, #-3864]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3864]
	cmn	r3, #1
	bne	.L61
	sub	r3, fp, #7936
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, #16
	mov	r0, r3
	bl	font_add_glyph
	ldr	r3, .L66+28
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3876]
	cmp	r2, r3
	bgt	.L62
	bl	print_usage
	mov	r0, #1
	bl	exit
.L62:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L66+28
	ldr	r3, [r3]
	str	r3, [r2, #-3868]
	b	.L63
.L64:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3868]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3880]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #7936
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	str	r2, [sp]
	ldr	r2, .L66+32
	mov	r1, #4096
	bl	snprintf
	ldr	r3, .L66+28
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3868]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	load_psf_font
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3868]
	add	r3, r3, #1
	str	r3, [r2, #-3868]
.L63:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-3868]
	ldr	r3, [r3, #-3876]
	cmp	r2, r3
	blt	.L64
	bl	print_glyphs
	mov	r0, #0
	bl	exit
.L67:
	.align	2
.L66:
	.word	.LC26
	.word	.LC22
	.word	.LC23
	.word	3816
	.word	optarg
	.word	3839
	.word	.LC24
	.word	optind
	.word	.LC25
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
