	.file	"288763.c"
	.intel_syntax noprefix
	.text
	.data
	.align 8
	.type	conversion_descriptor, @object
	.size	conversion_descriptor, 8
conversion_descriptor:
	.quad	-1
	.section	.rodata
.LC0:
	.string	"malloc(%d)"
.LC1:
	.string	"UTF-8"
.LC2:
	.string	"UCS-2BE"
.LC3:
	.string	"icon_open(UCS-2BE, UTF-8)"
.LC4:
	.string	"iconv()"
	.text
	.globl	utf8_to_ucs2
	.type	utf8_to_ucs2, @function
utf8_to_ucs2:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	add	eax, eax
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L2:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR conversion_descriptor[rip]
	cmp	rax, -1
	jne	.L3
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	iconv_open@PLT
	mov	QWORD PTR conversion_descriptor[rip], rax
	mov	rax, QWORD PTR conversion_descriptor[rip]
	cmp	rax, -1
	jne	.L3
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L3:
	mov	rax, QWORD PTR conversion_descriptor[rip]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	iconv@PLT
	mov	rax, QWORD PTR conversion_descriptor[rip]
	lea	rdi, -32[rbp]
	lea	rcx, -24[rbp]
	lea	rdx, -40[rbp]
	lea	rsi, -56[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	iconv@PLT
	cmp	rax, -1
	jne	.L4
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L4:
	cmp	QWORD PTR -64[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	rdx, QWORD PTR -32[rbp]
	sub	rax, rdx
	shr	rax
	sub	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	utf8_to_ucs2, .-utf8_to_ucs2
	.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	"288763.c"
	.text
	.data
	.align	2
	.type	conversion_descriptor, %object
	.size	conversion_descriptor, 4
conversion_descriptor:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc(%d)\000"
	.align	2
.LC1:
	.ascii	"UTF-8\000"
	.align	2
.LC2:
	.ascii	"UCS-2BE\000"
	.align	2
.LC3:
	.ascii	"icon_open(UCS-2BE, UTF-8)\000"
	.align	2
.LC4:
	.ascii	"iconv()\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	utf8_to_ucs2
	.syntax unified
	.arm
	.fpu softvfp
	.type	utf8_to_ucs2, %function
utf8_to_ucs2:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	ldr	r2, [fp, #-16]
	ldr	r1, .L8+4
	mov	r0, #1
	bl	err
.L2:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L3
	ldr	r1, .L8+12
	ldr	r0, .L8+16
	bl	iconv_open
	mov	r3, r0
	ldr	r2, .L8+8
	str	r3, [r2]
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L3
	ldr	r1, .L8+20
	mov	r0, #1
	bl	err
.L3:
	ldr	r3, .L8+8
	ldr	r0, [r3]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	bl	iconv
	ldr	r3, .L8+8
	ldr	r0, [r3]
	sub	ip, fp, #20
	sub	r2, fp, #28
	sub	r1, fp, #32
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, ip
	bl	iconv
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r1, .L8+24
	mov	r0, #1
	bl	err
.L4:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L5
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	lsr	r3, r3, #1
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
.L5:
	ldr	r3, [fp, #-12]
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC5
	.word	.LC0
	.word	conversion_descriptor
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	utf8_to_ucs2, .-utf8_to_ucs2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
