	.file	"934446.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: %s <charset>\n"
.LC1:
	.string	"UCS-2"
.LC2:
	.string	"iconv_open"
.LC3:
	.string	"UCS-2BE"
.LC4:
	.string	"iconv"
	.align 8
.LC5:
	.string	"%d: smth went wrong: %zu %zu %zu\n"
.LC6:
	.string	"/* generated by %s %s */\n"
	.align 8
.LC7:
	.string	"const gunichar2 charset_table_%s[0x%x] = {\n"
.LC8:
	.string	"    "
.LC9:
	.string	"UNREPL, "
.LC10:
	.string	"0x%.4x, "
.LC11:
	.string	"       /* 0x%.2X -      */"
.LC12:
	.string	"       /*      - 0x%.2X */"
.LC13:
	.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, 624
	mov	DWORD PTR -612[rbp], edi
	mov	QWORD PTR -624[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -596[rbp], 1
	mov	DWORD PTR -592[rbp], 1
	cmp	DWORD PTR -612[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -624[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L29
.L2:
	mov	rax, QWORD PTR -624[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	iconv_open@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 2
	jmp	.L29
.L4:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	iconv_close@PLT
	mov	DWORD PTR -604[rbp], 0
	jmp	.L5
.L17:
	mov	QWORD PTR -584[rbp], 1
	mov	QWORD PTR -576[rbp], 2
	lea	rax, -11[rbp]
	mov	QWORD PTR -568[rbp], rax
	lea	rax, -10[rbp]
	mov	QWORD PTR -560[rbp], rax
	mov	eax, DWORD PTR -604[rbp]
	mov	BYTE PTR -11[rbp], al
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	iconv_open@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], -1
	jne	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 2
	jmp	.L29
.L6:
	lea	rdi, -576[rbp]
	lea	rcx, -560[rbp]
	lea	rdx, -584[rbp]
	lea	rsi, -568[rbp]
	mov	rax, QWORD PTR -544[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	iconv@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], -1
	jne	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 84
	jne	.L8
	mov	eax, DWORD PTR -604[rbp]
	cdqe
	mov	WORD PTR -528[rbp+rax*2], -3
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	iconv_close@PLT
	jmp	.L9
.L8:
	cmp	QWORD PTR -536[rbp], -1
	jne	.L10
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	iconv_close@PLT
	mov	eax, 4
	jmp	.L29
.L10:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	iconv_close@PLT
	cmp	QWORD PTR -536[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR -584[rbp]
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR -576[rbp]
	test	rax, rax
	je	.L12
.L11:
	mov	rdi, QWORD PTR -576[rbp]
	mov	rsi, QWORD PTR -584[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -536[rbp]
	mov	edx, DWORD PTR -604[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 3
	jmp	.L29
.L12:
	cmp	DWORD PTR -604[rbp], 127
	jg	.L13
	movzx	eax, BYTE PTR -10[rbp]
	test	al, al
	jne	.L14
	movzx	eax, BYTE PTR -9[rbp]
	movzx	eax, al
	cmp	DWORD PTR -604[rbp], eax
	je	.L13
.L14:
	mov	DWORD PTR -596[rbp], 0
.L13:
	cmp	DWORD PTR -604[rbp], 159
	jg	.L15
	movzx	eax, BYTE PTR -10[rbp]
	test	al, al
	jne	.L16
	movzx	eax, BYTE PTR -9[rbp]
	movzx	eax, al
	cmp	DWORD PTR -604[rbp], eax
	je	.L15
.L16:
	mov	DWORD PTR -592[rbp], 0
.L15:
	movzx	eax, BYTE PTR -10[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -9[rbp]
	movzx	eax, al
	or	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -604[rbp]
	cdqe
	mov	WORD PTR -528[rbp+rax*2], dx
.L9:
	add	DWORD PTR -604[rbp], 1
.L5:
	cmp	DWORD PTR -604[rbp], 255
	jle	.L17
	mov	DWORD PTR -592[rbp], 0
	mov	rax, QWORD PTR -624[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -552[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -592[rbp], 0
	je	.L18
	mov	DWORD PTR -604[rbp], 160
	jmp	.L19
.L18:
	cmp	DWORD PTR -596[rbp], 0
	je	.L20
	mov	DWORD PTR -604[rbp], 128
	jmp	.L19
.L20:
	mov	DWORD PTR -604[rbp], 0
.L19:
	mov	eax, 256
	sub	eax, DWORD PTR -604[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L28:
	mov	eax, DWORD PTR -604[rbp]
	mov	DWORD PTR -588[rbp], eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -600[rbp], 0
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -604[rbp]
	cdqe
	movzx	eax, WORD PTR -528[rbp+rax*2]
	cmp	ax, -3
	jne	.L23
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -604[rbp]
	cdqe
	movzx	eax, WORD PTR -528[rbp+rax*2]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	add	DWORD PTR -600[rbp], 1
	add	DWORD PTR -604[rbp], 1
.L22:
	cmp	DWORD PTR -600[rbp], 7
	jle	.L25
	mov	eax, DWORD PTR -588[rbp]
	and	eax, 15
	test	eax, eax
	jne	.L26
	mov	eax, DWORD PTR -588[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L27
.L26:
	mov	eax, DWORD PTR -604[rbp]
	sub	eax, 1
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L27:
	mov	edi, 10
	call	putchar@PLT
.L21:
	cmp	DWORD PTR -604[rbp], 255
	jle	.L28
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, 0
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	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	"934446.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s <charset>\012\000"
	.align	2
.LC1:
	.ascii	"UCS-2\000"
	.align	2
.LC2:
	.ascii	"iconv_open\000"
	.align	2
.LC3:
	.ascii	"UCS-2BE\000"
	.align	2
.LC4:
	.ascii	"iconv\000"
	.align	2
.LC5:
	.ascii	"%d: smth went wrong: %zu %zu %zu\012\000"
	.align	2
.LC6:
	.ascii	"/* generated by %s %s */\012\000"
	.align	2
.LC7:
	.ascii	"const gunichar2 charset_table_%s[0x%x] = {\012\000"
	.align	2
.LC8:
	.ascii	"    \000"
	.align	2
.LC9:
	.ascii	"UNREPL, \000"
	.align	2
.LC10:
	.ascii	"0x%.4x, \000"
	.align	2
.LC11:
	.ascii	"       /* 0x%.2X -      */\000"
	.align	2
.LC12:
	.ascii	"       /*      - 0x%.2X */\000"
	.align	2
.LC13:
	.ascii	"};\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 584
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #592
	str	r0, [fp, #-584]
	str	r1, [fp, #-588]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-552]
	mov	r3, #1
	str	r3, [fp, #-548]
	ldr	r3, [fp, #-584]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-588]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L31+4
	bl	printf
	mov	r3, #1
	b	.L29
.L2:
	ldr	r3, [fp, #-588]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-544]
	ldr	r1, [fp, #-544]
	ldr	r0, .L31+8
	bl	iconv_open
	str	r0, [fp, #-540]
	ldr	r3, [fp, #-540]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L31+12
	bl	perror
	mov	r3, #2
	b	.L29
.L4:
	ldr	r0, [fp, #-540]
	bl	iconv_close
	mov	r3, #0
	str	r3, [fp, #-560]
	b	.L5
.L17:
	mov	r3, #1
	str	r3, [fp, #-576]
	mov	r3, #2
	str	r3, [fp, #-572]
	sub	r3, fp, #16
	str	r3, [fp, #-568]
	sub	r3, fp, #12
	str	r3, [fp, #-564]
	ldr	r3, [fp, #-560]
	and	r3, r3, #255
	strb	r3, [fp, #-16]
	ldr	r1, [fp, #-544]
	ldr	r0, .L31+16
	bl	iconv_open
	str	r0, [fp, #-540]
	ldr	r3, [fp, #-540]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L31+12
	bl	perror
	mov	r3, #2
	b	.L29
.L6:
	sub	r0, fp, #564
	sub	r2, fp, #576
	sub	r1, fp, #568
	sub	r3, fp, #572
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-540]
	bl	iconv
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmn	r3, #1
	bne	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #84
	bne	.L8
	sub	r3, fp, #4
	sub	r2, r3, #524
	ldr	r3, [fp, #-560]
	lsl	r3, r3, #1
	add	r3, r2, r3
	mvn	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-540]
	bl	iconv_close
	b	.L9
.L8:
	ldr	r3, [fp, #-532]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L31+20
	bl	perror
	ldr	r0, [fp, #-540]
	bl	iconv_close
	mov	r3, #4
	b	.L29
.L10:
	ldr	r0, [fp, #-540]
	bl	iconv_close
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-576]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-572]
	cmp	r3, #0
	beq	.L12
.L11:
	ldr	r3, .L31+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-576]
	ldr	r2, [fp, #-572]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-532]
	ldr	r2, [fp, #-560]
	ldr	r1, .L31+28
	bl	fprintf
	mov	r3, #3
	b	.L29
.L12:
	ldr	r3, [fp, #-560]
	cmp	r3, #127
	bgt	.L13
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-560]
	cmp	r3, r2
	beq	.L13
.L14:
	mov	r3, #0
	str	r3, [fp, #-552]
.L13:
	ldr	r3, [fp, #-560]
	cmp	r3, #159
	bgt	.L15
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-560]
	cmp	r3, r2
	beq	.L15
.L16:
	mov	r3, #0
	str	r3, [fp, #-548]
.L15:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #4
	sub	r1, r3, #524
	ldr	r3, [fp, #-560]
	lsl	r3, r3, #1
	add	r3, r1, r3
	strh	r2, [r3]	@ movhi
.L9:
	ldr	r3, [fp, #-560]
	add	r3, r3, #1
	str	r3, [fp, #-560]
.L5:
	ldr	r3, [fp, #-560]
	cmp	r3, #255
	ble	.L17
	mov	r3, #0
	str	r3, [fp, #-548]
	ldr	r3, [fp, #-588]
	ldr	r3, [r3]
	ldr	r2, [fp, #-544]
	mov	r1, r3
	ldr	r0, .L31+32
	bl	printf
	ldr	r3, [fp, #-548]
	cmp	r3, #0
	beq	.L18
	mov	r3, #160
	str	r3, [fp, #-560]
	b	.L19
.L18:
	ldr	r3, [fp, #-552]
	cmp	r3, #0
	beq	.L20
	mov	r3, #128
	str	r3, [fp, #-560]
	b	.L19
.L20:
	mov	r3, #0
	str	r3, [fp, #-560]
.L19:
	ldr	r3, [fp, #-560]
	rsb	r3, r3, #256
	mov	r2, r3
	ldr	r1, [fp, #-544]
	ldr	r0, .L31+36
	bl	printf
	b	.L21
.L28:
	ldr	r3, [fp, #-560]
	str	r3, [fp, #-536]
	ldr	r0, .L31+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-556]
	b	.L22
.L25:
	sub	r3, fp, #4
	sub	r2, r3, #524
	ldr	r3, [fp, #-560]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	ldr	r2, .L31+44
	cmp	r3, r2
	bne	.L23
	ldr	r0, .L31+48
	bl	printf
	b	.L24
.L23:
	sub	r3, fp, #4
	sub	r2, r3, #524
	ldr	r3, [fp, #-560]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L31+52
	bl	printf
.L24:
	ldr	r3, [fp, #-556]
	add	r3, r3, #1
	str	r3, [fp, #-556]
	ldr	r3, [fp, #-560]
	add	r3, r3, #1
	str	r3, [fp, #-560]
.L22:
	ldr	r3, [fp, #-556]
	cmp	r3, #7
	ble	.L25
	ldr	r3, [fp, #-536]
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L26
	ldr	r1, [fp, #-536]
	ldr	r0, .L31+56
	bl	printf
	b	.L27
.L26:
	ldr	r3, [fp, #-560]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L31+60
	bl	printf
.L27:
	mov	r0, #10
	bl	putchar
.L21:
	ldr	r3, [fp, #-560]
	cmp	r3, #255
	ble	.L28
	ldr	r0, .L31+64
	bl	puts
	mov	r3, #0
.L29:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	65533
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
