	.file	"472705.c"
	.intel_syntax noprefix
	.text
	.globl	data
	.section	.rodata
.LC0:
	.string	"koi8-r.html"
.LC1:
	.string	"koi8-r"
.LC2:
	.string	"KOI8-R"
.LC3:
	.string	"koi8-u.html"
.LC4:
	.string	"koi8-u"
.LC5:
	.string	"KOI8-U"
	.section	.data.rel.local,"aw"
	.align 32
	.type	data, @object
	.size	data, 48
data:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.section	.rodata
.LC6:
	.string	"w"
.LC7:
	.string	"Cannot open %s: %s\n"
	.align 8
.LC8:
	.string	"<html>\n <head>\n  <meta http-equiv=\"Content-Type\" content=\"text/html;charset=%s\">\n  <title>%s</title>\n </head>\n <body>\n  <table>\n   <tr><th>  "
.LC9:
	.string	"<th>%X"
.LC10:
	.string	"\n   <tr><th>%X"
.LC11:
	.string	"<td>%c"
.LC12:
	.string	"\n  </table>\n </body>\n</html>\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -104[rbp], 0
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, data[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	edx, DWORD PTR -104[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -96[rbp+rdx*8], rax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	test	rax, rax
	jne	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -18[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, data[rip+16]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, data[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	mov	edx, DWORD PTR -100[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -100[rbp], 1
.L5:
	cmp	DWORD PTR -100[rbp], 15
	jle	.L6
	add	DWORD PTR -104[rbp], 1
.L2:
	cmp	DWORD PTR -104[rbp], 1
	jle	.L7
	mov	DWORD PTR -104[rbp], 128
	jmp	.L8
.L12:
	mov	DWORD PTR -100[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -104[rbp]
	and	eax, 15
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	mov	edx, DWORD PTR -104[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L10:
	mov	eax, DWORD PTR -104[rbp]
	movsx	edx, al
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -100[rbp], 1
.L9:
	cmp	DWORD PTR -100[rbp], 1
	jle	.L11
	add	DWORD PTR -104[rbp], 1
.L8:
	cmp	DWORD PTR -104[rbp], 255
	jle	.L12
	mov	DWORD PTR -104[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -104[rbp], 1
.L13:
	cmp	DWORD PTR -104[rbp], 1
	jle	.L14
	mov	eax, 0
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"472705.c"
	.text
	.global	data
	.section	.rodata
	.align	2
.LC0:
	.ascii	"koi8-r.html\000"
	.align	2
.LC1:
	.ascii	"koi8-r\000"
	.align	2
.LC2:
	.ascii	"KOI8-R\000"
	.align	2
.LC3:
	.ascii	"koi8-u.html\000"
	.align	2
.LC4:
	.ascii	"koi8-u\000"
	.align	2
.LC5:
	.ascii	"KOI8-U\000"
	.data
	.align	2
	.type	data, %object
	.size	data, 24
data:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.section	.rodata
	.align	2
.LC6:
	.ascii	"w\000"
	.align	2
.LC7:
	.ascii	"Cannot open %s: %s\012\000"
	.align	2
.LC8:
	.ascii	"<html>\012 <head>\012  <meta http-equiv=\"Content-T"
	.ascii	"ype\" content=\"text/html;charset=%s\">\012  <title"
	.ascii	">%s</title>\012 </head>\012 <body>\012  <table>\012"
	.ascii	"   <tr><th>  \000"
	.align	2
.LC9:
	.ascii	"<th>%X\000"
	.align	2
.LC10:
	.ascii	"\012   <tr><th>%X\000"
	.align	2
.LC11:
	.ascii	"<td>%c\000"
	.align	2
.LC12:
	.ascii	"\012  </table>\012 </body>\012</html>\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L2
.L7:
	ldr	r1, .L16+4
	ldr	r2, [fp, #-72]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r1, .L16+8
	mov	r0, r3
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-52]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L16+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	sub	r2, fp, #28
	ldr	r1, .L16+16
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L4
.L3:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r0, [r3, #-52]
	ldr	r1, .L16+4
	ldr	r2, [fp, #-72]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	ip, .L16+4
	ldr	r2, [fp, #-72]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r1
	ldr	r1, .L16+20
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L5
.L6:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	ldr	r2, [fp, #-68]
	ldr	r1, .L16+24
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L5:
	ldr	r3, [fp, #-68]
	cmp	r3, #15
	ble	.L6
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L2:
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	ble	.L7
	mov	r3, #128
	str	r3, [fp, #-72]
	b	.L8
.L12:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L9
.L11:
	ldr	r3, [fp, #-72]
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	ldr	r2, [fp, #-72]
	ldr	r1, .L16+28
	mov	r0, r3
	bl	fprintf
.L10:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r0, [r3, #-52]
	ldr	r3, [fp, #-72]
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, .L16+32
	bl	fprintf
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L9:
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	ble	.L11
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L8:
	ldr	r3, [fp, #-72]
	cmp	r3, #255
	ble	.L12
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L13
.L14:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L16+36
	bl	fwrite
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L13:
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	ble	.L14
	mov	r3, #0
.L4:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC13
	.word	data
	.word	.LC6
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
