	.file	"31386926.c"
	.intel_syntax noprefix
	.text
	.local	bmp_only
	.comm	bmp_only,4,4
	.section	.rodata
.LC0:
	.string	"0x%02X"
.LC1:
	.string	"0x%02X%02X"
.LC2:
	.string	"0x%02X%02X%02X"
.LC3:
	.string	"0x%02X%02X%02X%02X"
	.text
	.type	hexbuf, @function
hexbuf:
.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
	cmp	DWORD PTR -12[rbp], 4
	je	.L2
	cmp	DWORD PTR -12[rbp], 4
	ja	.L3
	cmp	DWORD PTR -12[rbp], 3
	je	.L4
	cmp	DWORD PTR -12[rbp], 3
	ja	.L3
	cmp	DWORD PTR -12[rbp], 1
	je	.L5
	cmp	DWORD PTR -12[rbp], 2
	je	.L6
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edx, eax
	lea	rsi, .LC0[rip]
	lea	rdi, msg.1[rip]
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC1[rip]
	lea	rdi, msg.1[rip]
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L7
.L4:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC2[rip]
	lea	rdi, msg.1[rip]
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L7
.L2:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	esi, al
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	r9d, esi
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC3[rip]
	lea	rdi, msg.1[rip]
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L7
.L3:
	call	abort@PLT
.L7:
	lea	rax, msg.1[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	hexbuf, .-hexbuf
	.section	.rodata
.LC4:
	.string	"%s: iconv error: "
.LC5:
	.string	""
	.align 8
.LC6:
	.string	"%s: inbytes = %ld, outbytes = %ld\n"
	.text
	.type	try, @function
try:
.LFB7:
	.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, 96
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -100[rbp], edx
	mov	QWORD PTR -112[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], 12
	mov	rax, QWORD PTR -88[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	iconv@PLT
	lea	rdi, -40[rbp]
	lea	rcx, -48[rbp]
	lea	rdx, -56[rbp]
	lea	rsi, -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	iconv@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], -1
	je	.L10
	lea	rcx, -40[rbp]
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	iconv@PLT
	mov	QWORD PTR -32[rbp], rax
.L10:
	cmp	QWORD PTR -32[rbp], -1
	jne	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 84
	jne	.L12
	mov	eax, -1
	jmp	.L16
.L12:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L14
	mov	eax, 0
	jmp	.L16
.L14:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -68[rbp], eax
	mov	edx, DWORD PTR -100[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	hexbuf
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	edx, DWORD PTR -68[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	je	.L15
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, 12
	sub	rax, rdx
	mov	r12, rax
	mov	eax, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	sub	rax, rdx
	mov	rbx, rax
	mov	edx, DWORD PTR -100[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	hexbuf
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, r12
	mov	rcx, rbx
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, eax
	mov	eax, 12
	sub	eax, edx
.L16:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	add	rsp, 96
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	try, .-try
	.section	.rodata
.LC7:
	.string	"0x%04X"
.LC8:
	.string	"0x????"
	.text
	.type	utf8_decode, @function
utf8_decode:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	lea	rax, hexbuf.0[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L19
.L30:
	lea	rax, hexbuf.0[rip]
	cmp	QWORD PTR -8[rbp], rax
	jbe	.L20
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 32
.L20:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	js	.L21
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	QWORD PTR -24[rbp], 1
	sub	DWORD PTR -28[rbp], 1
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, -65
	jbe	.L23
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, -33
	ja	.L23
	cmp	DWORD PTR -28[rbp], 1
	jbe	.L23
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 6
	and	eax, 1984
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 63
	or	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	QWORD PTR -24[rbp], 2
	sub	DWORD PTR -28[rbp], 2
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, -33
	jbe	.L24
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, -17
	ja	.L24
	cmp	DWORD PTR -28[rbp], 2
	jbe	.L24
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 12
	movzx	edx, ax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 6
	and	eax, 4032
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 63
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	QWORD PTR -24[rbp], 3
	sub	DWORD PTR -28[rbp], 3
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, -17
	jbe	.L25
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, -9
	ja	.L25
	cmp	DWORD PTR -28[rbp], 3
	jbe	.L25
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 18
	and	eax, 1835008
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 12
	and	eax, 258048
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 6
	and	eax, 4032
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 63
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	QWORD PTR -24[rbp], 4
	sub	DWORD PTR -28[rbp], 4
	jmp	.L22
.L25:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, -9
	jbe	.L26
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, -5
	ja	.L26
	cmp	DWORD PTR -28[rbp], 4
	jbe	.L26
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	and	eax, 50331648
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 18
	and	eax, 16515072
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 12
	and	eax, 258048
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 6
	and	eax, 4032
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 63
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	QWORD PTR -24[rbp], 5
	sub	DWORD PTR -28[rbp], 5
	jmp	.L22
.L26:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, -5
	jbe	.L27
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, -3
	ja	.L27
	cmp	DWORD PTR -28[rbp], 5
	jbe	.L27
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 30
	and	eax, 1073741824
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	and	eax, 1056964608
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 18
	and	eax, 16515072
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 12
	and	eax, 258048
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 6
	and	eax, 4032
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 63
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	QWORD PTR -24[rbp], 6
	sub	DWORD PTR -28[rbp], 6
	jmp	.L22
.L27:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	QWORD PTR -24[rbp], 1
	sub	DWORD PTR -28[rbp], 1
.L22:
	mov	eax, DWORD PTR bmp_only[rip]
	test	eax, eax
	je	.L28
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 6
	jbe	.L28
	mov	eax, 0
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -8[rbp], rax
.L19:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L30
	lea	rax, hexbuf.0[rip]
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	utf8_decode, .-utf8_decode
	.section	.rodata
	.align 8
.LC9:
	.string	"Usage: tst-table-from charset\n"
.LC10:
	.string	"UTF-8"
.LC11:
	.string	"iconv_open"
.LC12:
	.string	"GB18030"
.LC13:
	.string	"0x%02X\t%s\n"
.LC14:
	.string	"0x%02X%02X\t%s\n"
.LC15:
	.string	"0x%02X%02X%02X\t%s\n"
.LC16:
	.string	"0x%02X%02X%02X%02X\t%s\n"
.LC17:
	.string	"%s: incomplete byte sequence\n"
.LC18:
	.string	"iconv_close"
.LC19:
	.string	"I/O error\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 2
	je	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	call	iconv_open@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], -1
	jne	.L33
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L34
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L35
.L34:
	mov	eax, 1
	jmp	.L36
.L35:
	mov	eax, 0
.L36:
	mov	DWORD PTR bmp_only[rip], eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L37
	mov	eax, 3
	jmp	.L38
.L37:
	mov	eax, 4
.L38:
	mov	DWORD PTR -80[rbp], eax
	mov	DWORD PTR -96[rbp], 0
	jmp	.L39
.L54:
	mov	eax, DWORD PTR -96[rbp]
	mov	BYTE PTR -24[rbp], al
	lea	rdx, -20[rbp]
	lea	rsi, -24[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	try
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	js	.L40
	cmp	DWORD PTR -76[rbp], 0
	jle	.L41
	mov	edx, DWORD PTR -76[rbp]
	lea	rax, -20[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	utf8_decode
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L40
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L40
.L41:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L42
.L53:
	mov	eax, DWORD PTR -92[rbp]
	mov	BYTE PTR -23[rbp], al
	lea	rdx, -20[rbp]
	lea	rsi, -24[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, 2
	mov	rdi, rax
	call	try
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	js	.L43
	cmp	DWORD PTR -76[rbp], 0
	jle	.L44
	mov	edx, DWORD PTR -76[rbp]
	lea	rax, -20[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	utf8_decode
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L43
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L43
.L44:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L45
.L52:
	mov	eax, DWORD PTR -88[rbp]
	mov	BYTE PTR -22[rbp], al
	lea	rdx, -20[rbp]
	lea	rsi, -24[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, 3
	mov	rdi, rax
	call	try
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	js	.L46
	cmp	DWORD PTR -76[rbp], 0
	jle	.L47
	mov	edx, DWORD PTR -76[rbp]
	lea	rax, -20[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	utf8_decode
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L46
	mov	rsi, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -88[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L46
.L47:
	cmp	DWORD PTR -80[rbp], 3
	jle	.L46
	mov	DWORD PTR -84[rbp], 0
	jmp	.L48
.L51:
	mov	eax, DWORD PTR -84[rbp]
	mov	BYTE PTR -21[rbp], al
	lea	rdx, -20[rbp]
	lea	rsi, -24[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	rdi, rax
	call	try
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	js	.L49
	cmp	DWORD PTR -76[rbp], 0
	jle	.L50
	mov	edx, DWORD PTR -76[rbp]
	lea	rax, -20[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	utf8_decode
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L49
	mov	rdi, QWORD PTR -56[rbp]
	mov	esi, DWORD PTR -84[rbp]
	mov	ecx, DWORD PTR -88[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	r9, rdi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L49
.L50:
	lea	rax, -24[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	hexbuf
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L49:
	add	DWORD PTR -84[rbp], 1
.L48:
	cmp	DWORD PTR -84[rbp], 255
	jbe	.L51
.L46:
	add	DWORD PTR -88[rbp], 1
.L45:
	cmp	DWORD PTR -88[rbp], 255
	jbe	.L52
.L43:
	add	DWORD PTR -92[rbp], 1
.L42:
	cmp	DWORD PTR -92[rbp], 255
	jbe	.L53
.L40:
	add	DWORD PTR -96[rbp], 1
.L39:
	cmp	DWORD PTR -96[rbp], 255
	jbe	.L54
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	iconv_close@PLT
	test	eax, eax
	jns	.L55
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L55:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	jne	.L56
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	test	eax, eax
	jne	.L56
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L57
.L56:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L57:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.local	msg.1
	.comm	msg.1,50,32
	.local	hexbuf.0
	.comm	hexbuf.0,84,32
	.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	"31386926.c"
	.text
	.local	bmp_only
	.comm	bmp_only,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0x%02X\000"
	.align	2
.LC1:
	.ascii	"0x%02X%02X\000"
	.align	2
.LC2:
	.ascii	"0x%02X%02X%02X\000"
	.align	2
.LC3:
	.ascii	"0x%02X%02X%02X%02X\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hexbuf, %function
hexbuf:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L10
	ldr	r0, .L10+4
	bl	sprintf
	b	.L8
.L6:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L10+8
	ldr	r0, .L10+4
	bl	sprintf
	b	.L8
.L5:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L10+12
	ldr	r0, .L10+4
	bl	sprintf
	b	.L8
.L3:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L10+16
	ldr	r0, .L10+4
	bl	sprintf
	b	.L8
.L2:
	bl	abort
.L8:
	ldr	r3, .L10+4
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	msg.5319
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	hexbuf, .-hexbuf
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%s: iconv error: \000"
	.align	2
.LC5:
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"%s: inbytes = %ld, outbytes = %ld\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	try, %function
try:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-32]
	mov	r3, #12
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	iconv
	sub	r0, fp, #32
	sub	r2, fp, #36
	sub	r1, fp, #40
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-48]
	bl	iconv
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	beq	.L13
	sub	r2, fp, #32
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	iconv
	str	r0, [fp, #-24]
.L13:
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #84
	bne	.L15
	mvn	r3, #0
	b	.L19
.L15:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L17
	mov	r3, #0
	b	.L19
.L17:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, .L21+4
	ldr	r4, [r3]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-52]
	bl	hexbuf
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L21+8
	mov	r0, r4
	bl	fprintf
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r0, .L21+12
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L21+4
	ldr	r4, [r3]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-52]
	bl	hexbuf
	mov	r1, r0
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-56]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #12
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, .L21+16
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #12
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC7
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	try, .-try
	.section	.rodata
	.align	2
.LC8:
	.ascii	"0x%04X\000"
	.align	2
.LC9:
	.ascii	"0x????\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	utf8_decode, %function
utf8_decode:
	@ 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]
	ldr	r3, .L36
	str	r3, [fp, #-8]
	b	.L24
.L35:
	ldr	r3, [fp, #-8]
	ldr	r2, .L36
	cmp	r3, r2
	bls	.L25
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, #32
	strb	r2, [r3]
.L25:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	blt	.L26
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L36+4
	ldr	r0, [fp, #-8]
	bl	sprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L27
.L26:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #191
	bls	.L28
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #223
	bhi	.L28
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bls	.L28
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #6
	and	r2, r3, #1984
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #63
	orr	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L36+4
	ldr	r0, [fp, #-8]
	bl	sprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	str	r3, [fp, #-20]
	b	.L27
.L28:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #223
	bls	.L29
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #239
	bhi	.L29
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bls	.L29
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #12
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, [fp, #-16]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #6
	and	r2, r2, #4032
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #63
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L36+4
	ldr	r0, [fp, #-8]
	bl	sprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #3
	str	r3, [fp, #-20]
	b	.L27
.L29:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #239
	bls	.L30
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #247
	bhi	.L30
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bls	.L30
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #18
	and	r2, r3, #1835008
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #12
	and	r3, r3, #258048
	orr	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #6
	and	r3, r3, #4032
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #63
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L36+4
	ldr	r0, [fp, #-8]
	bl	sprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #4
	str	r3, [fp, #-20]
	b	.L27
.L30:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #247
	bls	.L31
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #251
	bhi	.L31
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	bls	.L31
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	and	r2, r3, #50331648
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #18
	and	r3, r3, #16515072
	orr	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #12
	and	r3, r3, #258048
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #6
	and	r3, r3, #4032
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #63
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L36+4
	ldr	r0, [fp, #-8]
	bl	sprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #5
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #5
	str	r3, [fp, #-20]
	b	.L27
.L31:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #251
	bls	.L32
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #253
	bhi	.L32
	ldr	r3, [fp, #-20]
	cmp	r3, #5
	bls	.L32
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #30
	and	r2, r3, #1073741824
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	and	r3, r3, #1056964608
	orr	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #18
	and	r3, r3, #16515072
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #12
	and	r3, r3, #258048
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #6
	and	r3, r3, #4032
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #63
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L36+4
	ldr	r0, [fp, #-8]
	bl	sprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #6
	str	r3, [fp, #-20]
	b	.L27
.L32:
	ldr	r1, .L36+8
	ldr	r0, [fp, #-8]
	bl	sprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L27:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L33
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	cmp	r3, #6
	bls	.L33
	mov	r3, #0
	b	.L34
.L33:
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L36
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	hexbuf.5342
	.word	.LC8
	.word	.LC9
	.word	bmp_only
	.size	utf8_decode, .-utf8_decode
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Usage: tst-table-from charset\012\000"
	.align	2
.LC11:
	.ascii	"UTF-8\000"
	.align	2
.LC12:
	.ascii	"iconv_open\000"
	.align	2
.LC13:
	.ascii	"GB18030\000"
	.align	2
.LC14:
	.ascii	"0x%02X\011%s\012\000"
	.align	2
.LC15:
	.ascii	"0x%02X%02X\011%s\012\000"
	.align	2
.LC16:
	.ascii	"0x%02X%02X%02X\011%s\012\000"
	.align	2
.LC17:
	.ascii	"0x%02X%02X%02X%02X\011%s\012\000"
	.align	2
.LC18:
	.ascii	"%s: incomplete byte sequence\012\000"
	.align	2
.LC19:
	.ascii	"iconv_close\000"
	.align	2
.LC20:
	.ascii	"I/O error\012\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	beq	.L39
	ldr	r3, .L67+4
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L67+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L39:
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-64]
	ldr	r1, [fp, #-64]
	ldr	r0, .L67+12
	bl	iconv_open
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L40
	ldr	r0, .L67+16
	bl	perror
	mov	r0, #1
	bl	exit
.L40:
	ldr	r1, .L67+12
	ldr	r0, [fp, #-64]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r1, .L67+20
	ldr	r0, [fp, #-64]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
.L41:
	mov	r3, #1
	b	.L43
.L42:
	mov	r3, #0
.L43:
	ldr	r2, .L67+24
	str	r3, [r2]
	ldr	r1, .L67+12
	ldr	r0, [fp, #-64]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	mov	r3, #3
	b	.L45
.L44:
	mov	r3, #4
.L45:
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L46
.L61:
	ldr	r3, [fp, #-80]
	and	r3, r3, #255
	strb	r3, [fp, #-32]
	sub	r3, fp, #28
	sub	r1, fp, #32
	mov	r2, #1
	ldr	r0, [fp, #-60]
	bl	try
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	blt	.L47
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	ble	.L48
	ldr	r2, [fp, #-52]
	sub	r3, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	utf8_decode
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L47
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-80]
	ldr	r0, .L67+28
	bl	printf
	b	.L47
.L48:
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L49
.L60:
	ldr	r3, [fp, #-76]
	and	r3, r3, #255
	strb	r3, [fp, #-31]
	sub	r3, fp, #28
	sub	r1, fp, #32
	mov	r2, #2
	ldr	r0, [fp, #-60]
	bl	try
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	blt	.L50
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	ble	.L51
	ldr	r2, [fp, #-52]
	sub	r3, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	utf8_decode
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-80]
	ldr	r0, .L67+32
	bl	printf
	b	.L50
.L51:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L52
.L59:
	ldr	r3, [fp, #-72]
	and	r3, r3, #255
	strb	r3, [fp, #-30]
	sub	r3, fp, #28
	sub	r1, fp, #32
	mov	r2, #3
	ldr	r0, [fp, #-60]
	bl	try
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	blt	.L53
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	ble	.L54
	ldr	r2, [fp, #-52]
	sub	r3, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	utf8_decode
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-80]
	ldr	r0, .L67+36
	bl	printf
	b	.L53
.L54:
	ldr	r3, [fp, #-56]
	cmp	r3, #3
	ble	.L53
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L55
.L58:
	ldr	r3, [fp, #-68]
	and	r3, r3, #255
	strb	r3, [fp, #-29]
	sub	r3, fp, #28
	sub	r1, fp, #32
	mov	r2, #4
	ldr	r0, [fp, #-60]
	bl	try
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	blt	.L56
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	ble	.L57
	ldr	r2, [fp, #-52]
	sub	r3, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	utf8_decode
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-48]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-68]
	str	r3, [sp]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-80]
	ldr	r0, .L67+40
	bl	printf
	b	.L56
.L57:
	ldr	r3, .L67+4
	ldr	r4, [r3]
	sub	r3, fp, #32
	mov	r1, #4
	mov	r0, r3
	bl	hexbuf
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L67+44
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L56:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L55:
	ldr	r3, [fp, #-68]
	cmp	r3, #255
	bls	.L58
.L53:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L52:
	ldr	r3, [fp, #-72]
	cmp	r3, #255
	bls	.L59
.L50:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L49:
	ldr	r3, [fp, #-76]
	cmp	r3, #255
	bls	.L60
.L47:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L46:
	ldr	r3, [fp, #-80]
	cmp	r3, #255
	bls	.L61
	ldr	r0, [fp, #-60]
	bl	iconv_close
	mov	r3, r0
	cmp	r3, #0
	bge	.L62
	ldr	r0, .L67+48
	bl	perror
	mov	r0, #1
	bl	exit
.L62:
	ldr	r3, .L67+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	ldr	r3, .L67+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	ldr	r3, .L67+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
.L63:
	ldr	r3, .L67+4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L67+60
	bl	fwrite
	mov	r0, #1
	bl	exit
.L64:
	mov	r3, #0
	ldr	r2, .L67
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC21
	.word	stderr
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	bmp_only
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	stdin
	.word	stdout
	.word	.LC20
	.size	main, .-main
	.local	msg.5319
	.comm	msg.5319,50,4
	.local	hexbuf.5342
	.comm	hexbuf.5342,84,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
