	.file	"26700659.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: %s ENCODING\n"
	.align 8
.LC1:
	.string	"Output a charset map for the 8-bit ENCODING."
.LC2:
	.string	"UCS-4"
.LC3:
	.string	"iconv_open"
.LC4:
	.string	"Dodgy value."
.LC5:
	.string	"Non-standard iconv."
.LC6:
	.string	"  "
.LC7:
	.string	"0x%04x"
.LC8:
	.string	","
.LC9:
	.string	", "
	.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -84[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L15
.L2:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	iconv_open@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], -1
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L15
.L4:
	mov	DWORD PTR -72[rbp], 0
	jmp	.L5
.L14:
	mov	eax, DWORD PTR -72[rbp]
	mov	BYTE PTR -73[rbp], al
	lea	rax, -73[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -48[rbp], 1
	lea	rax, -12[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -40[rbp], 4
	lea	rdi, -40[rbp]
	lea	rcx, -56[rbp]
	lea	rdx, -48[rbp]
	lea	rsi, -64[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	iconv@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	jne	.L6
	movzx	eax, BYTE PTR -12[rbp]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	movzx	eax, BYTE PTR -11[rbp]
	movzx	eax, al
	sal	eax, 16
	add	edx, eax
	movzx	eax, BYTE PTR -10[rbp]
	movzx	eax, al
	sal	eax, 8
	add	edx, eax
	movzx	eax, BYTE PTR -9[rbp]
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 65534
	jle	.L8
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L15
.L6:
	cmp	QWORD PTR -24[rbp], -1
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 84
	jne	.L9
	mov	DWORD PTR -68[rbp], 65535
	jmp	.L8
.L9:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L15
.L8:
	mov	eax, DWORD PTR -72[rbp]
	and	eax, 7
	test	eax, eax
	jne	.L10
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -72[rbp], 255
	jne	.L11
	mov	edi, 10
	call	putchar@PLT
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -72[rbp]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	cmp	eax, 7
	jne	.L13
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L12
.L13:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	add	DWORD PTR -72[rbp], 1
.L5:
	cmp	DWORD PTR -72[rbp], 255
	jle	.L14
	mov	eax, 0
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"26700659.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s ENCODING\012\000"
	.align	2
.LC1:
	.ascii	"Output a charset map for the 8-bit ENCODING.\000"
	.align	2
.LC2:
	.ascii	"UCS-4\000"
	.align	2
.LC3:
	.ascii	"iconv_open\000"
	.align	2
.LC4:
	.ascii	"Dodgy value.\000"
	.align	2
.LC5:
	.ascii	"Non-standard iconv.\000"
	.align	2
.LC6:
	.ascii	"  \000"
	.align	2
.LC7:
	.ascii	"0x%04x\000"
	.align	2
.LC8:
	.ascii	",\000"
	.align	2
.LC9:
	.ascii	", \000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	ldr	r0, .L17+8
	bl	puts
	mov	r3, #1
	b	.L15
.L2:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+12
	bl	iconv_open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L17+16
	bl	perror
	mov	r3, #1
	b	.L15
.L4:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L5
.L14:
	ldr	r3, [fp, #-28]
	and	r3, r3, #255
	strb	r3, [fp, #-45]
	sub	r3, fp, #45
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-36]
	sub	r3, fp, #12
	str	r3, [fp, #-40]
	mov	r3, #4
	str	r3, [fp, #-32]
	sub	r0, fp, #40
	sub	r2, fp, #36
	sub	r1, fp, #44
	sub	r3, fp, #32
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-20]
	bl	iconv
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L6
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	lsl	r3, r3, #16
	add	r2, r2, r3
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r3, r2, r3
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, .L17+20
	cmp	r3, r2
	ble	.L8
	ldr	r0, .L17+24
	bl	puts
	mov	r3, #1
	b	.L15
.L6:
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #84
	bne	.L9
	ldr	r3, .L17+28
	str	r3, [fp, #-24]
	b	.L8
.L9:
	ldr	r0, .L17+32
	bl	puts
	mov	r3, #1
	b	.L15
.L8:
	ldr	r3, [fp, #-28]
	and	r3, r3, #7
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L17+36
	bl	printf
.L10:
	ldr	r1, [fp, #-24]
	ldr	r0, .L17+40
	bl	printf
	ldr	r3, [fp, #-28]
	cmp	r3, #255
	bne	.L11
	mov	r0, #10
	bl	putchar
	b	.L12
.L11:
	ldr	r3, [fp, #-28]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	cmp	r3, #7
	bne	.L13
	ldr	r0, .L17+44
	bl	puts
	b	.L12
.L13:
	ldr	r0, .L17+48
	bl	printf
.L12:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L5:
	ldr	r3, [fp, #-28]
	cmp	r3, #255
	ble	.L14
	mov	r3, #0
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	65534
	.word	.LC4
	.word	65535
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
