	.file	"20449531.c"
	.intel_syntax noprefix
	.text
	.type	row_bytes, @function
row_bytes:
.LFB6:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	add	eax, 7
	shr	eax, 3
	mov	eax, eax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	row_bytes, .-row_bytes
	.type	Bper, @function
Bper:
.LFB7:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	row_bytes
	mov	rdx, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 12[rdx]
	mov	edx, edx
	imul	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 31
	and	rax, -32
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Bper, .-Bper
	.type	get_glyph, @function
get_glyph:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -24
	mov	QWORD PTR -16[rbp], rdi
	mov	DWORD PTR -20[rbp], esi
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -20[rbp], eax
	jb	.L6
	mov	eax, 0
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	rbx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Bper
	mov	edx, DWORD PTR -20[rbp]
	imul	rax, rdx
	add	rax, rbx
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_glyph, .-get_glyph
	.section	.rodata
.LC0:
	.string	"usage: %s [ ttydev ]\n"
	.text
	.type	usage, @function
usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"/dev/tty"
.LC2:
	.string	"Error opening %s (%s)\n"
	.text
	.type	get_tty_fd, @function
get_tty_fd:
.LFB10:
	.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	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L10
	lea	rax, .LC1[rip]
	mov	QWORD PTR -24[rbp], rax
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 524290
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L11:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_tty_fd, .-get_tty_fd
	.section	.rodata
	.align 8
.LC3:
	.string	"Not a Linux console, KDGETMODE failed (%s)\n"
.LC4:
	.string	"graphics"
.LC5:
	.string	"unknown"
.LC6:
	.string	"text"
	.align 8
.LC7:
	.string	"Verified Linux console, %s mode\n"
	.text
	.type	is_linux_console, @function
is_linux_console:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 19259
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L20
.L14:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L17
	lea	rax, .LC4[rip]
	jmp	.L19
.L17:
	lea	rax, .LC5[rip]
	jmp	.L19
.L16:
	lea	rax, .LC6[rip]
.L19:
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	is_linux_console, .-is_linux_console
	.section	.rodata
.LC8:
	.string	"*"
.LC9:
	.string	" "
.LC10:
	.string	"%s"
	.text
	.type	explode_glyph_row, @function
explode_glyph_row:
.LFB12:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	BYTE PTR -1[rbp], -128
	jmp	.L23
.L26:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	and	al, BYTE PTR -1[rbp]
	test	al, al
	je	.L24
	lea	rax, .LC8[rip]
	jmp	.L25
.L24:
	lea	rax, .LC9[rip]
.L25:
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	shr	BYTE PTR -1[rbp]
	cmp	BYTE PTR -1[rbp], 0
	jne	.L23
	cmp	DWORD PTR -28[rbp], 0
	je	.L23
	mov	BYTE PTR -1[rbp], -128
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L23:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -28[rbp], edx
	test	eax, eax
	jne	.L26
	mov	edi, 32
	call	putchar@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	explode_glyph_row, .-explode_glyph_row
	.section	.rodata
.LC11:
	.string	"REWRITING %u with 0x%01x\n"
	.text
	.type	shim_quad_block, @function
shim_quad_block:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -64[rbp]
	mov	edx, DWORD PTR -60[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_glyph
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L29
	mov	eax, -1
	jmp	.L30
.L29:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L31
.L42:
	mov	BYTE PTR -38[rbp], -128
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	row_bytes
	mov	edx, DWORD PTR -36[rbp]
	imul	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L32
.L36:
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 8
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	or	al, BYTE PTR -38[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 42
	call	fputc@PLT
	jmp	.L34
.L33:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 32
	call	fputc@PLT
.L34:
	shr	BYTE PTR -38[rbp]
	cmp	BYTE PTR -38[rbp], 0
	jne	.L35
	mov	BYTE PTR -38[rbp], -128
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
.L35:
	add	DWORD PTR -32[rbp], 1
.L32:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	shr	eax
	cmp	DWORD PTR -32[rbp], eax
	jb	.L36
	jmp	.L37
.L41:
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 4
	test	eax, eax
	je	.L38
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	or	al, BYTE PTR -38[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 42
	call	fputc@PLT
	jmp	.L39
.L38:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 32
	call	fputc@PLT
.L39:
	shr	BYTE PTR -38[rbp]
	cmp	BYTE PTR -38[rbp], 0
	jne	.L40
	mov	BYTE PTR -38[rbp], -128
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
.L40:
	add	DWORD PTR -32[rbp], 1
.L37:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -32[rbp], eax
	jb	.L41
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -36[rbp], 1
.L31:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 12[rax]
	shr	eax
	cmp	DWORD PTR -36[rbp], eax
	jb	.L42
	jmp	.L43
.L54:
	mov	BYTE PTR -37[rbp], -128
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	row_bytes
	mov	edx, DWORD PTR -36[rbp]
	imul	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L44
.L48:
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 2
	test	eax, eax
	je	.L45
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	or	al, BYTE PTR -37[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 42
	call	fputc@PLT
	jmp	.L46
.L45:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 32
	call	fputc@PLT
.L46:
	shr	BYTE PTR -37[rbp]
	cmp	BYTE PTR -37[rbp], 0
	jne	.L47
	mov	BYTE PTR -37[rbp], -128
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
.L47:
	add	DWORD PTR -28[rbp], 1
.L44:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	shr	eax
	cmp	DWORD PTR -28[rbp], eax
	jb	.L48
	jmp	.L49
.L53:
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 1
	test	eax, eax
	je	.L50
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	or	al, BYTE PTR -37[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 42
	call	fputc@PLT
	jmp	.L51
.L50:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 32
	call	fputc@PLT
.L51:
	shr	BYTE PTR -37[rbp]
	cmp	BYTE PTR -37[rbp], 0
	jne	.L52
	mov	BYTE PTR -37[rbp], -128
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
.L52:
	add	DWORD PTR -28[rbp], 1
.L49:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -28[rbp], eax
	jb	.L53
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -36[rbp], 1
.L43:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -36[rbp], eax
	jb	.L54
	mov	eax, 0
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	shim_quad_block, .-shim_quad_block
	.section	.rodata
	.align 8
.LC12:
	.string	"Error reading Linux kernelfont (%s)\n"
	.align 8
.LC13:
	.string	"Kernel font size (glyphcount): %hu\n"
	.align 8
.LC14:
	.string	"Kernel font character geometry: %hux%hu\n"
	.align 8
.LC15:
	.string	"Warning: kernel returned excess charcount\n"
.LC16:
	.string	"Failed to shim font\n"
.LC17:
	.string	"Failed to set font (%s)\n"
.LC18:
	.string	"Bper: %zu %d at %p\n"
	.text
	.type	jam_linux_consolefont, @function
jam_linux_consolefont:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 112
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -100[rbp], edi
	mov	DWORD PTR -104[rbp], esi
	mov	QWORD PTR -112[rbp], rdx
	mov	QWORD PTR -120[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -48[rbp], 512
	mov	eax, DWORD PTR -48[rbp]
	sal	eax, 7
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -56[rbp], 32
	mov	DWORD PTR -52[rbp], 32
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	jne	.L56
	mov	eax, -1
	jmp	.L72
.L56:
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, 19314
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L58
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L72
.L58:
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 512
	jbe	.L59
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L72
.L59:
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, -2[rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -112[rbp]
	mov	ecx, DWORD PTR [rax]
	lea	rax, -64[rbp]
	mov	edx, 12
	mov	esi, ecx
	mov	rdi, rax
	call	shim_quad_block
	test	eax, eax
	jne	.L60
	mov	rax, QWORD PTR -120[rbp]
	mov	ecx, DWORD PTR [rax]
	lea	rax, -64[rbp]
	mov	edx, 3
	mov	esi, ecx
	mov	rdi, rax
	call	shim_quad_block
	test	eax, eax
	je	.L61
.L60:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L72
.L61:
	mov	DWORD PTR -64[rbp], 0
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, 19314
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L62
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L72
.L62:
	cmp	DWORD PTR -104[rbp], 0
	je	.L63
	mov	eax, DWORD PTR -56[rbp]
	lea	ebx, 1[rax]
	mov	eax, 80
	mov	edx, 0
	div	ebx
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L64
.L71:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L65
.L66:
	mov	rbx, QWORD PTR -40[rbp]
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	Bper
	mov	ecx, DWORD PTR -88[rbp]
	mov	edx, DWORD PTR -92[rbp]
	add	edx, ecx
	mov	edx, edx
	imul	rdx, rax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rcx
	add	rdx, rbx
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	r12, QWORD PTR [rax]
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -92[rbp]
	lea	ebx, [rdx+rax]
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	Bper
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, r12
	mov	ecx, ebx
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -88[rbp], 1
.L65:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L66
	mov	DWORD PTR -84[rbp], 0
	jmp	.L67
.L70:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L68
.L69:
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -72[rbp]
	add	rdx, rcx
	mov	esi, eax
	mov	rdi, rdx
	call	explode_glyph_row
	add	DWORD PTR -80[rbp], 1
.L68:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L69
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -84[rbp], 1
.L67:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jb	.L70
	mov	eax, DWORD PTR -76[rbp]
	add	DWORD PTR -92[rbp], eax
.L64:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -92[rbp], eax
	jb	.L71
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
.L63:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L72:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	add	rsp, 112
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	jam_linux_consolefont, .-jam_linux_consolefont
	.section	.rodata
	.align 8
.LC19:
	.string	"Error reading Unicode->font map (%s)\n"
.LC20:
	.string	"Unicode->font entries: %hu\n"
	.align 8
.LC21:
	.string	"Too many damn entries (need %d)!\n"
	.align 8
.LC22:
	.string	"Error writing Unicode->font map (%s)\n"
.LC23:
	.string	" %05hx (%lc)->%3hu "
	.text
	.type	jam_linux_consolemap, @function
jam_linux_consolemap:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	DWORD PTR -92[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	WORD PTR -48[rbp], -1
	movzx	eax, WORD PTR -48[rbp]
	movzx	eax, ax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 19302
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L75
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L91
.L75:
	movzx	eax, WORD PTR -48[rbp]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	jmp	.L77
.L80:
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cmp	ax, 9600
	jne	.L78
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -88[rbp]
	mov	WORD PTR 2[rax], dx
	mov	DWORD PTR -72[rbp], 1
	jmp	.L79
.L78:
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cmp	ax, 9604
	jne	.L79
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -92[rbp]
	mov	WORD PTR 2[rax], dx
	mov	DWORD PTR -68[rbp], 1
.L79:
	add	DWORD PTR -64[rbp], 1
.L77:
	movzx	eax, WORD PTR -48[rbp]
	movzx	eax, ax
	cmp	DWORD PTR -64[rbp], eax
	jl	.L80
	cmp	DWORD PTR -72[rbp], 0
	sete	al
	movzx	edx, al
	cmp	DWORD PTR -68[rbp], 0
	sete	al
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -56[rbp], eax
	movzx	eax, WORD PTR -48[rbp]
	movzx	edx, ax
	mov	eax, 65535
	sub	eax, DWORD PTR -56[rbp]
	cmp	edx, eax
	jle	.L81
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -56[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L91
.L81:
	cmp	DWORD PTR -72[rbp], 0
	jne	.L82
	mov	rdx, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR -48[rbp]
	movzx	eax, ax
	sal	rax, 2
	add	rax, rdx
	mov	WORD PTR [rax], 9600
	mov	rdx, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR -48[rbp]
	movzx	eax, ax
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -88[rbp]
	mov	WORD PTR 2[rax], dx
	movzx	eax, WORD PTR -48[rbp]
	add	eax, 1
	mov	WORD PTR -48[rbp], ax
.L82:
	cmp	DWORD PTR -68[rbp], 0
	jne	.L83
	mov	rdx, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR -48[rbp]
	movzx	eax, ax
	sal	rax, 2
	add	rax, rdx
	mov	WORD PTR [rax], 9604
	mov	rdx, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR -48[rbp]
	movzx	eax, ax
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -92[rbp]
	mov	WORD PTR 2[rax], dx
	movzx	eax, WORD PTR -48[rbp]
	add	eax, 1
	mov	WORD PTR -48[rbp], ax
.L83:
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 19303
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L84
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L91
.L84:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L85
.L89:
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -52[rbp], eax
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	movzx	eax, WORD PTR 2[rax]
	movzx	ebx, ax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	iswprint@PLT
	test	eax, eax
	je	.L86
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L87
.L86:
	mov	eax, 32
.L87:
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	movzx	edx, WORD PTR [rdx]
	movzx	esi, dx
	mov	ecx, ebx
	mov	edx, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -60[rbp]
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	cmp	eax, 3
	jne	.L88
	mov	edi, 10
	call	putchar@PLT
.L88:
	add	DWORD PTR -60[rbp], 1
.L85:
	movzx	eax, WORD PTR -48[rbp]
	movzx	eax, ax
	cmp	DWORD PTR -60[rbp], eax
	jl	.L89
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	movzx	eax, WORD PTR -48[rbp]
	and	eax, 3
	test	ax, ax
	je	.L90
	mov	edi, 10
	call	putchar@PLT
.L90:
	mov	eax, 0
.L91:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L92
	call	__stack_chk_fail@PLT
.L92:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	jam_linux_consolemap, .-jam_linux_consolemap
	.section	.rodata
.LC24:
	.string	""
.LC25:
	.string	"Error setting locale\n"
.LC26:
	.string	"Error closing %d (%s)\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC24[rip]
	mov	edi, 6
	call	setlocale@PLT
	test	rax, rax
	jne	.L94
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L101
.L94:
	cmp	DWORD PTR -36[rbp], 2
	jle	.L96
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	mov	eax, 1
	jmp	.L101
.L96:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	get_tty_fd
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L97
	mov	eax, 1
	jmp	.L101
.L97:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	is_linux_console
	xor	eax, 1
	test	al, al
	je	.L98
	mov	eax, 1
	jmp	.L101
.L98:
	mov	DWORD PTR -16[rbp], -1
	lea	rcx, -20[rbp]
	lea	rdx, -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1
	mov	edi, eax
	call	jam_linux_consolefont
	test	eax, eax
	jne	.L99
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	jam_linux_consolemap
	test	eax, eax
	jne	.L99
	mov	DWORD PTR -16[rbp], 0
.L99:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L100
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -12[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L100:
	cmp	DWORD PTR -16[rbp], 0
	setne	al
	movzx	eax, al
.L101:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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	"20449531.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	row_bytes, %function
row_bytes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	add	r3, r3, #7
	lsr	r3, r3, #3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	row_bytes, .-row_bytes
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Bper, %function
Bper:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	row_bytes
	mov	r2, r0
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #31
	bic	r3, r3, #31
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Bper, .-Bper
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_glyph, %function
get_glyph:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L6
	mov	r3, #0
	b	.L7
.L6:
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #20]
	ldr	r0, [fp, #-16]
	bl	Bper
	mov	r2, r0
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	add	r3, r4, r3
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	get_glyph, .-get_glyph
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s [ ttydev ]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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]
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L9+4
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/dev/tty\000"
	.align	2
.LC2:
	.ascii	"Error opening %s (%s)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_tty_fd, %function
get_tty_fd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L15
	str	r3, [fp, #-24]
.L12:
	ldr	r1, .L15+4
	ldr	r0, [fp, #-24]
	bl	open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L13
	ldr	r3, .L15+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, .L15+12
	mov	r0, r4
	bl	fprintf
.L13:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	524290
	.word	stderr
	.word	.LC2
	.size	get_tty_fd, .-get_tty_fd
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Not a Linux console, KDGETMODE failed (%s)\012\000"
	.align	2
.LC4:
	.ascii	"graphics\000"
	.align	2
.LC5:
	.ascii	"unknown\000"
	.align	2
.LC6:
	.ascii	"text\000"
	.align	2
.LC7:
	.ascii	"Verified Linux console, %s mode\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_linux_console, %function
is_linux_console:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #20
	mov	r2, r3
	ldr	r1, .L26+4
	ldr	r0, [fp, #-24]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L26+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L26+12
	mov	r0, r4
	bl	fprintf
	mov	r3, #0
	b	.L24
.L18:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L21
	ldr	r3, .L26+16
	b	.L23
.L21:
	ldr	r3, .L26+20
	b	.L23
.L20:
	ldr	r3, .L26+24
.L23:
	mov	r1, r3
	ldr	r0, .L26+28
	bl	printf
	mov	r3, #1
.L24:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC8
	.word	19259
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	is_linux_console, .-is_linux_console
	.section	.rodata
	.align	2
.LC9:
	.ascii	"*\000"
	.align	2
.LC10:
	.ascii	" \000"
	.align	2
.LC11:
	.ascii	"%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	explode_glyph_row, %function
explode_glyph_row:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mvn	r3, #127
	strb	r3, [fp, #-5]
	b	.L29
.L32:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]
	and	r3, r3, r2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L34
	b	.L31
.L30:
	ldr	r3, .L34+4
.L31:
	mov	r1, r3
	ldr	r0, .L34+8
	bl	printf
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsr	r3, r3, #1
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L29
	mvn	r3, #127
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L29:
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #0
	bne	.L32
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	explode_glyph_row, .-explode_glyph_row
	.section	.rodata
	.align	2
.LC12:
	.ascii	"REWRITING %u with 0x%01x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	shim_quad_block, %function
shim_quad_block:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L63
	ldr	r0, [r3]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	ldr	r1, .L63+4
	bl	fprintf
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	get_glyph
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L37
	mvn	r3, #0
	b	.L38
.L37:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L39
.L50:
	mvn	r3, #127
	strb	r3, [fp, #-30]
	ldr	r0, [fp, #-40]
	bl	row_bytes
	mov	r2, r0
	ldr	r3, [fp, #-28]
	mul	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L40
.L44:
	ldr	r3, [fp, #-48]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-24]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-30]
	orr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3]
	ldr	r3, .L63
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #42
	bl	fputc
	b	.L42
.L41:
	ldr	r3, .L63
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #32
	bl	fputc
.L42:
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	lsr	r3, r3, #1
	strb	r3, [fp, #-30]
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L43
	mvn	r3, #127
	strb	r3, [fp, #-30]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
.L43:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L40:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	lsr	r3, r3, #1
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L44
	b	.L45
.L49:
	ldr	r3, [fp, #-48]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-24]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-30]
	orr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3]
	ldr	r3, .L63
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #42
	bl	fputc
	b	.L47
.L46:
	ldr	r3, .L63
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #32
	bl	fputc
.L47:
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	lsr	r3, r3, #1
	strb	r3, [fp, #-30]
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L48
	mvn	r3, #127
	strb	r3, [fp, #-30]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
.L48:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L45:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L49
	ldr	r3, .L63
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L39:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #12]
	lsr	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bcc	.L50
	b	.L51
.L62:
	mvn	r3, #127
	strb	r3, [fp, #-29]
	ldr	r0, [fp, #-40]
	bl	row_bytes
	mov	r2, r0
	ldr	r3, [fp, #-28]
	mul	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L52
.L56:
	ldr	r3, [fp, #-48]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-29]
	orr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, .L63
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #42
	bl	fputc
	b	.L54
.L53:
	ldr	r3, .L63
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #32
	bl	fputc
.L54:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsr	r3, r3, #1
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L55
	mvn	r3, #127
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
.L55:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L52:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	lsr	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L56
	b	.L57
.L61:
	ldr	r3, [fp, #-48]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L58
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-29]
	orr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, .L63
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #42
	bl	fputc
	b	.L59
.L58:
	ldr	r3, .L63
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #32
	bl	fputc
.L59:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsr	r3, r3, #1
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L60
	mvn	r3, #127
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
.L60:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L57:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L61
	ldr	r3, .L63
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L51:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bcc	.L62
	mov	r3, #0
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	stderr
	.word	.LC12
	.size	shim_quad_block, .-shim_quad_block
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Error reading Linux kernelfont (%s)\012\000"
	.align	2
.LC14:
	.ascii	"Kernel font size (glyphcount): %hu\012\000"
	.align	2
.LC15:
	.ascii	"Kernel font character geometry: %hux%hu\012\000"
	.align	2
.LC16:
	.ascii	"Warning: kernel returned excess charcount\012\000"
	.align	2
.LC17:
	.ascii	"Failed to shim font\012\000"
	.align	2
.LC18:
	.ascii	"Failed to set font (%s)\012\000"
	.global	__aeabi_uidiv
	.align	2
.LC19:
	.ascii	"Bper: %zu %d at %p\012\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	jam_linux_consolefont, %function
jam_linux_consolefont:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L84
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	mov	r3, #1
	str	r3, [fp, #-40]
	mov	r3, #512
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #7
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #32
	str	r3, [fp, #-32]
	mov	r3, #32
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L66
	mvn	r3, #0
	b	.L82
.L66:
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L84+4
	ldr	r0, [fp, #-72]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	ldr	r3, .L84+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L84+12
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	mvn	r3, #0
	b	.L82
.L68:
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L84+16
	bl	printf
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	mov	r1, r3
	ldr	r0, .L84+20
	bl	printf
	ldr	r3, [fp, #-24]
	cmp	r3, #512
	bls	.L69
	ldr	r3, .L84+8
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L84+24
	bl	fwrite
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	mvn	r3, #0
	b	.L82
.L69:
	ldr	r3, [fp, #-24]
	sub	r2, r3, #2
	ldr	r3, [fp, #-80]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	ldr	r3, [fp, #-84]
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	ldr	r1, [r3]
	sub	r3, fp, #40
	mov	r2, #12
	mov	r0, r3
	bl	shim_quad_block
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	ldr	r3, [fp, #-84]
	ldr	r1, [r3]
	sub	r3, fp, #40
	mov	r2, #3
	mov	r0, r3
	bl	shim_quad_block
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
.L70:
	ldr	r3, .L84+8
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L84+28
	bl	fwrite
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	mvn	r3, #0
	b	.L82
.L71:
	mov	r3, #0
	str	r3, [fp, #-40]
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L84+4
	ldr	r0, [fp, #-72]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	ldr	r3, .L84+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L84+32
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	mvn	r3, #0
	b	.L82
.L72:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L73
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, #80
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L74
.L81:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L75
.L76:
	ldr	r4, [fp, #-20]
	sub	r3, fp, #40
	mov	r0, r3
	bl	Bper
	mov	r1, r0
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mul	r2, r3, r1
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-44]
	add	r3, r1, r3
	add	r2, r4, r2
	str	r2, [r3]
	ldr	r3, .L84+8
	ldr	r4, [r3]
	sub	r3, fp, #40
	mov	r0, r3
	bl	Bper
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-64]
	add	r1, r2, r3
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	mov	r2, r0
	ldr	r1, .L84+36
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L75:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L76
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L77
.L80:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L78
.L79:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	mov	r1, r2
	mov	r0, r3
	bl	explode_glyph_row
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L78:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L79
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L77:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bcc	.L80
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-64]
.L74:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	bcc	.L81
	ldr	r0, [fp, #-44]
	bl	free
.L73:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	mov	r3, #0
.L82:
	ldr	r2, .L84
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L83
	bl	__stack_chk_fail
.L83:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC20
	.word	19314
	.word	stderr
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	jam_linux_consolefont, .-jam_linux_consolefont
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Error reading Unicode->font map (%s)\012\000"
	.align	2
.LC22:
	.ascii	"Unicode->font entries: %hu\012\000"
	.align	2
.LC23:
	.ascii	"Too many damn entries (need %d)!\012\000"
	.align	2
.LC24:
	.ascii	"Error writing Unicode->font map (%s)\012\000"
	.align	2
.LC25:
	.ascii	" %05hx (%lc)->%3hu \000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	jam_linux_consolemap, %function
jam_linux_consolemap:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, .L105
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	mvn	r3, #0
	strh	r3, [fp, #-24]	@ movhi
	ldrh	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L105+4
	ldr	r0, [fp, #-56]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L87
	ldr	r3, .L105+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L105+12
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	mvn	r3, #0
	b	.L103
.L87:
	ldrh	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L105+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L89
.L92:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldrh	r3, [r3]
	cmp	r3, #9600
	bne	.L90
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-60]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L91
.L90:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldrh	r3, [r3]
	ldr	r2, .L105+20
	cmp	r3, r2
	bne	.L91
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-64]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #1
	str	r3, [fp, #-44]
.L91:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L89:
	ldrh	r3, [fp, #-24]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	blt	.L92
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldrh	r3, [fp, #-24]
	mov	r2, r3
	ldr	r3, [fp, #-32]
	rsb	r3, r3, #65280
	add	r3, r3, #255
	cmp	r2, r3
	ble	.L93
	ldr	r3, .L105+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L105+24
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	mvn	r3, #0
	b	.L103
.L93:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L94
	ldr	r2, [fp, #-20]
	ldrh	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #9600
	strh	r2, [r3]	@ movhi
	ldr	r2, [fp, #-20]
	ldrh	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-60]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3, #2]	@ movhi
	ldrh	r3, [fp, #-24]
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-24]	@ movhi
.L94:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L95
	ldr	r2, [fp, #-20]
	ldrh	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L105+20
	strh	r2, [r3]	@ movhi
	ldr	r2, [fp, #-20]
	ldrh	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-64]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3, #2]	@ movhi
	ldrh	r3, [fp, #-24]
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-24]	@ movhi
.L95:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L105+28
	ldr	r0, [fp, #-56]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L96
	ldr	r3, .L105+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L105+32
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	mvn	r3, #0
	b	.L103
.L96:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L97
.L101:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r4, r3
	ldr	r0, [fp, #-28]
	bl	iswprint
	mov	r3, r0
	cmp	r3, #0
	beq	.L98
	ldr	r2, [fp, #-28]
	b	.L99
.L98:
	mov	r2, #32
.L99:
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldrh	r3, [r3, #2]
	mov	r1, r4
	ldr	r0, .L105+36
	bl	printf
	ldr	r3, [fp, #-36]
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	cmp	r3, #3
	bne	.L100
	mov	r0, #10
	bl	putchar
.L100:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L97:
	ldrh	r3, [fp, #-24]
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	blt	.L101
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	ldrh	r3, [fp, #-24]
	and	r3, r3, #3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L102
	mov	r0, #10
	bl	putchar
.L102:
	mov	r3, #0
.L103:
	ldr	r2, .L105
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L104
	bl	__stack_chk_fail
.L104:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L106:
	.align	2
.L105:
	.word	.LC26
	.word	19302
	.word	stderr
	.word	.LC21
	.word	.LC22
	.word	9604
	.word	.LC23
	.word	19303
	.word	.LC24
	.word	.LC25
	.size	jam_linux_consolemap, .-jam_linux_consolemap
	.section	.rodata
	.align	2
.LC27:
	.ascii	"\000"
	.align	2
.LC28:
	.ascii	"Error setting locale\012\000"
	.align	2
.LC29:
	.ascii	"Error closing %d (%s)\012\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L117
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L117+4
	mov	r0, #6
	bl	setlocale
	mov	r3, r0
	cmp	r3, #0
	bne	.L108
	ldr	r3, .L117+8
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L117+12
	bl	fwrite
	mov	r3, #1
	b	.L115
.L108:
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	ble	.L110
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	mov	r3, #1
	b	.L115
.L110:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	get_tty_fd
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L111
	mov	r3, #1
	b	.L115
.L111:
	ldr	r0, [fp, #-20]
	bl	is_linux_console
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L112
	mov	r3, #1
	b	.L115
.L112:
	mvn	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	sub	r2, fp, #32
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	jam_linux_consolefont
	mov	r3, r0
	cmp	r3, #0
	bne	.L113
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	jam_linux_consolemap
	mov	r3, r0
	cmp	r3, #0
	bne	.L113
	mov	r3, #0
	str	r3, [fp, #-24]
.L113:
	ldr	r0, [fp, #-20]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L114
	ldr	r3, .L117+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-20]
	ldr	r1, .L117+16
	mov	r0, r4
	bl	fprintf
.L114:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
.L115:
	ldr	r2, .L117
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L116
	bl	__stack_chk_fail
.L116:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L118:
	.align	2
.L117:
	.word	.LC30
	.word	.LC27
	.word	stderr
	.word	.LC28
	.word	.LC29
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
