	.file	"98576158.c"
	.intel_syntax noprefix
	.text
	.globl	testcode
	.section	.rodata
.LC0:
	.string	"ASCII"
.LC1:
	.string	"UTF-8"
.LC2:
	.string	"UCS-2BE"
.LC3:
	.string	"UCS-2LE"
.LC4:
	.string	"UCS-4BE"
.LC5:
	.string	"UCS-4LE"
	.section	.data.rel.local,"aw"
	.align 32
	.type	testcode, @object
	.size	testcode, 96
testcode:
	.quad	.LC0
	.quad	.LC0
	.quad	.LC1
	.quad	.LC0
	.quad	.LC2
	.quad	.LC0
	.quad	.LC3
	.quad	.LC0
	.quad	.LC4
	.quad	.LC0
	.quad	.LC5
	.quad	.LC0
	.globl	number
	.data
	.align 4
	.type	number, @object
	.size	number, 4
number:
	.long	6
	.section	.rodata
	.align 8
.LC6:
	.string	"iconv_open failed: from: %s, to: %s: %s"
	.align 8
.LC7:
	.string	"iconv failed: from: %s, to: %s: %s"
	.align 8
.LC8:
	.string	"iconv_close failed: from: %s, to: %s: %s"
	.text
	.globl	convert
	.type	convert, @function
convert:
.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, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	QWORD PTR -80[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	iconv_open@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L7
.L5:
	lea	rdi, -24[rbp]
	lea	rcx, -72[rbp]
	lea	rdx, -64[rbp]
	lea	rsi, -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	iconv@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L7
.L4:
	mov	rax, QWORD PTR -64[rbp]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	iconv_close@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
.L7:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	convert, .-convert
	.section	.rodata
.LC9:
	.string	"no memory available"
	.text
	.globl	test_unalign
	.type	test_unalign, @function
test_unalign:
.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, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -84[rbp], edx
	mov	edi, 257
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L10
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	QWORD PTR -40[rbp], rax
	mov	edi, 257
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L11
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 257
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8, QWORD PTR -8[rbp]
	mov	rdi, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	convert
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L12
	mov	eax, 1
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 257
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	r8, QWORD PTR -8[rbp]
	mov	rdi, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	convert
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L14
	mov	eax, 1
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test_unalign, .-test_unalign
	.section	.rodata
.LC10:
	.string	"abc"
.LC11:
	.string	"iconv: %s <-> %s: ok\n"
.LC12:
	.string	"Succeeded."
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L16
.L19:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, testcode[rip]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	test_unalign
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L21
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, testcode[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rax, testcode[rip+8]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L16:
	mov	eax, DWORD PTR number[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L19
	jmp	.L18
.L21:
	nop
.L18:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"98576158.c"
	.text
	.global	testcode
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ASCII\000"
	.align	2
.LC1:
	.ascii	"UTF-8\000"
	.align	2
.LC2:
	.ascii	"UCS-2BE\000"
	.align	2
.LC3:
	.ascii	"UCS-2LE\000"
	.align	2
.LC4:
	.ascii	"UCS-4BE\000"
	.align	2
.LC5:
	.ascii	"UCS-4LE\000"
	.data
	.align	2
	.type	testcode, %object
	.size	testcode, 48
testcode:
	.word	.LC0
	.word	.LC0
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	.LC0
	.word	.LC3
	.word	.LC0
	.word	.LC4
	.word	.LC0
	.word	.LC5
	.word	.LC0
	.global	number
	.align	2
	.type	number, %object
	.size	number, 4
number:
	.word	6
	.section	.rodata
	.align	2
.LC6:
	.ascii	"iconv_open failed: from: %s, to: %s: %s\000"
	.align	2
.LC7:
	.ascii	"iconv failed: from: %s, to: %s: %s\000"
	.align	2
.LC8:
	.ascii	"iconv_close failed: from: %s, to: %s: %s\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	convert
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert, %function
convert:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-40]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #8]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	iconv_open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, .L9+4
	bl	printf
	mvn	r3, #0
	b	.L7
.L5:
	sub	r0, fp, #40
	sub	r2, fp, #36
	sub	r1, fp, #32
	sub	r3, fp, #20
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-16]
	bl	iconv
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, .L9+8
	bl	printf
	mvn	r3, #0
	b	.L7
.L4:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L5
	ldr	r0, [fp, #-16]
	bl	iconv_close
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, .L9+12
	bl	printf
	mvn	r3, #0
	b	.L7
.L6:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #8]
	sub	r3, r2, r3
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC9
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	convert, .-convert
	.section	.rodata
	.align	2
.LC10:
	.ascii	"no memory available\000"
	.text
	.align	2
	.global	test_unalign
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_unalign, %function
test_unalign:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r0, .L17
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L17+4
	bl	puts
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r0, .L17
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L17+4
	bl	puts
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-28]
	bl	memcpy
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	ldr	r3, .L17
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-12]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	bl	convert
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L14
	mov	r3, #1
	b	.L15
.L14:
	ldr	r3, [fp, #-8]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	memcpy
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r3, .L17
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-40]
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	bl	convert
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L16
	mov	r3, #1
	b	.L15
.L16:
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	mov	r3, #0
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	257
	.word	.LC10
	.size	test_unalign, .-test_unalign
	.section	.rodata
	.align	2
.LC11:
	.ascii	"abc\000"
	.align	2
.LC12:
	.ascii	"iconv: %s <-> %s: ok\012\000"
	.align	2
.LC13:
	.ascii	"Succeeded.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L23:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, .L26
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L26+4
	mov	r0, r3
	bl	test_unalign
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L25
	ldr	r2, .L26
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r2, .L26
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #3]
	mov	r2, r3
	ldr	r0, .L26+8
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L23
	b	.L22
.L25:
	nop
.L22:
	ldr	r0, .L26+16
	bl	puts
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	testcode
	.word	.LC11
	.word	.LC12
	.word	number
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
