	.file	"extr_string.c_ME_ToUnicode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ME_ToUnicode
	.type	ME_ToUnicode, @function
ME_ToUnicode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	QWORD PTR [rdx], 0
	test	rsi, rsi
	je	.L5
	cmp	QWORD PTR CP_UNICODE[rip], rdi
	mov	rbp, rdi
	mov	r12, rsi
	mov	rbx, rdx
	je	.L11
	mov	rdx, rsi
	xor	r9d, r9d
	xor	r8d, r8d
	mov	ecx, -1
	xor	esi, esi
	call	MultiByteToWideChar@PLT
	mov	r13, rax
	test	eax, eax
	je	.L5
	lea	edi, 0[0+rax*4]
	call	heap_alloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L1
	mov	r9d, r13d
	mov	r8, rax
	mov	ecx, -1
	mov	rdx, r12
	xor	esi, esi
	mov	rdi, rbp
	call	MultiByteToWideChar@PLT
	sub	rax, 1
	mov	QWORD PTR [rbx], rax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	r14d, r14d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r14
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rsi
	mov	r14, r12
	call	lstrlenW@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ME_ToUnicode, .-ME_ToUnicode
	.comm	CP_UNICODE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_string.c_ME_ToUnicode.c"
	.text
	.align	2
	.global	ME_ToUnicode
	.syntax unified
	.arm
	.fpu softvfp
	.type	ME_ToUnicode, %function
ME_ToUnicode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r9, #0
	subs	r7, r1, #0
	sub	sp, sp, #12
	str	r9, [r2]
	beq	.L5
	ldr	r3, .L15
	mov	r8, r2
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, r0
	beq	.L14
	mvn	r3, #0
	mov	r2, r7
	mov	r1, r9
	str	r9, [sp, #4]
	str	r9, [sp]
	bl	MultiByteToWideChar
	subs	r6, r0, #0
	beq	.L5
	lsl	r0, r6, #2
	bl	heap_alloc
	subs	r5, r0, #0
	beq	.L1
	mov	r2, r7
	mov	r1, r9
	mov	r0, r4
	mvn	r3, #0
	stm	sp, {r5, r6}
	bl	MultiByteToWideChar
	sub	r0, r0, #1
	str	r0, [r8]
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	mov	r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	mov	r0, r7
	bl	lstrlenW
	mov	r5, r7
	str	r0, [r8]
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	.align	2
.L15:
	.word	CP_UNICODE
	.size	ME_ToUnicode, .-ME_ToUnicode
	.comm	CP_UNICODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
