	.file	"671148.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"UTF-8"
.LC1:
	.string	"cannot convert from %s\n"
	.align 8
.LC2:
	.string	"%s: wrong iconv result: %d/%d (%m)\n"
.LC3:
	.string	"%s: ate %td input bytes\n"
	.align 8
.LC4:
	.string	"%s: produced %td output bytes\n"
	.text
	.globl	test
	.type	test, @function
test:
.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, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -96[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, 8[rax]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 15
	shr	rax, 4
	sal	rax, 4
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	iconv_open@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -32[rbp], rax
	lea	rdi, -32[rbp]
	lea	rcx, -40[rbp]
	lea	rdx, -48[rbp]
	lea	rsi, -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	iconv@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 7
	je	.L7
.L6:
	call	__errno_location@PLT
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -60[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	r8d, esi
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -56[rbp]
	cmp	QWORD PTR -80[rbp], rax
	jne	.L8
	mov	rax, QWORD PTR -48[rbp]
	cmp	QWORD PTR -88[rbp], rax
	jne	.L8
	mov	eax, 1
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	mov	BYTE PTR -62[rbp], al
	and	BYTE PTR -62[rbp], 1
	mov	rax, QWORD PTR -40[rbp]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L10
	mov	rax, QWORD PTR -32[rbp]
	cmp	QWORD PTR -96[rbp], rax
	jne	.L10
	mov	eax, 1
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	mov	BYTE PTR -61[rbp], al
	and	BYTE PTR -61[rbp], 1
	movzx	eax, BYTE PTR -62[rbp]
	xor	eax, 1
	test	al, al
	je	.L12
	cmp	BYTE PTR -61[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -80[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	cmp	BYTE PTR -62[rbp], 0
	je	.L13
	movzx	eax, BYTE PTR -61[rbp]
	xor	eax, 1
	test	al, al
	je	.L13
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	iconv_close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	test, .-test
	.section	.rodata
.LC5:
	.string	"EUC-JISX0213"
	.text
	.globl	test_euc_jisx0213
	.type	test_euc_jisx0213, @function
test_euc_jisx0213:
.LFB7:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -10[rbp], -2140
	lea	rax, -10[rbp]
	mov	ecx, 3
	mov	edx, 2
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	test
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test_euc_jisx0213, .-test_euc_jisx0213
	.section	.rodata
.LC6:
	.string	"TSCII"
	.text
	.globl	test_tscii
	.type	test_tscii, @function
test_tscii:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -9[rbp], -126
	lea	rax, -9[rbp]
	mov	ecx, 3
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	test
	lea	rax, -9[rbp]
	mov	ecx, 6
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	test
	lea	rax, -9[rbp]
	mov	ecx, 9
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	test
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	test_tscii, .-test_tscii
	.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
	call	test_euc_jisx0213
	call	test_tscii
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"671148.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"UTF-8\000"
	.align	2
.LC1:
	.ascii	"cannot convert from %s\012\000"
	.align	2
.LC2:
	.ascii	"%s: wrong iconv result: %d/%d (%m)\012\000"
	.align	2
.LC3:
	.ascii	"%s: ate %td input bytes\012\000"
	.align	2
.LC4:
	.ascii	"%s: produced %td output bytes\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-68]
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-56]
	ldr	r0, .L12+4
	bl	iconv_open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	ldr	r1, .L12+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-32]
	sub	r0, fp, #36
	sub	r2, fp, #40
	sub	r1, fp, #44
	sub	r3, fp, #32
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-24]
	bl	iconv
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #7
	beq	.L4
.L3:
	ldr	r3, .L12+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-56]
	ldr	r1, .L12+16
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	bne	.L5
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	bne	.L5
	mov	r3, #1
	b	.L6
.L5:
	mov	r3, #0
.L6:
	strb	r3, [fp, #-46]
	ldrb	r3, [fp, #-46]
	and	r3, r3, #1
	strb	r3, [fp, #-46]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	bne	.L7
	mov	r3, #1
	b	.L8
.L7:
	mov	r3, #0
.L8:
	strb	r3, [fp, #-45]
	ldrb	r3, [fp, #-45]
	and	r3, r3, #1
	strb	r3, [fp, #-45]
	ldrb	r3, [fp, #-46]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L9
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L12+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	sub	r3, r2, r3
	ldr	r2, [fp, #-56]
	ldr	r1, .L12+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L9:
	ldrb	r3, [fp, #-46]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
	ldrb	r3, [fp, #-45]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L12+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	ldr	r2, [fp, #-56]
	ldr	r1, .L12+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L10:
	ldr	r0, [fp, #-24]
	bl	iconv_close
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC5
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	test, .-test
	.section	.rodata
	.align	2
.LC6:
	.ascii	"EUC-JISX0213\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_euc_jisx0213
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_euc_jisx0213, %function
test_euc_jisx0213:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L16+4
	strh	r3, [fp, #-12]	@ movhi
	sub	r1, fp, #12
	mov	r3, #3
	mov	r2, #2
	ldr	r0, .L16+8
	bl	test
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC7
	.word	-2140
	.word	.LC6
	.size	test_euc_jisx0213, .-test_euc_jisx0213
	.section	.rodata
	.align	2
.LC8:
	.ascii	"TSCII\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_tscii
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_tscii, %function
test_tscii:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #125
	strb	r3, [fp, #-12]
	sub	r1, fp, #12
	mov	r3, #3
	mov	r2, #1
	ldr	r0, .L20+4
	bl	test
	sub	r1, fp, #12
	mov	r3, #6
	mov	r2, #1
	ldr	r0, .L20+4
	bl	test
	sub	r1, fp, #12
	mov	r3, #9
	mov	r2, #1
	ldr	r0, .L20+4
	bl	test
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC9
	.word	.LC8
	.size	test_tscii, .-test_tscii
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	test_euc_jisx0213
	bl	test_tscii
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
