	.file	"extr_process.c_uv_utf8_to_utf16_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uv_utf8_to_utf16_alloc, @function
uv_utf8_to_utf16_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdx, rdi
	mov	r13, rsi
	xor	r9d, r9d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	xor	r8d, r8d
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ecx, -1
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR CP_UTF8[rip]
	call	MultiByteToWideChar@PLT
	test	eax, eax
	jle	.L7
	lea	edi, 0[0+rax*4]
	mov	ebx, eax
	call	uv__malloc@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR ERROR_OUTOFMEMORY[rip]
	test	rbp, rbp
	jne	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR CP_UTF8[rip]
	mov	r9d, ebx
	mov	r8, rbp
	mov	rdx, r12
	xor	esi, esi
	mov	ecx, -1
	call	MultiByteToWideChar@PLT
	xor	edi, edi
	cmp	ebx, eax
	sete	dil
	call	assert@PLT
	mov	QWORD PTR 0[r13], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	GetLastError@PLT
	.cfi_endproc
.LFE0:
	.size	uv_utf8_to_utf16_alloc, .-uv_utf8_to_utf16_alloc
	.comm	ERROR_OUTOFMEMORY,4,4
	.comm	CP_UTF8,4,4
	.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_process.c_uv_utf8_to_utf16_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uv_utf8_to_utf16_alloc, %function
uv_utf8_to_utf16_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, #0
	ldr	r9, .L8
	sub	sp, sp, #12
	mov	r2, r0
	mov	r6, r0
	mov	r8, r1
	mvn	r3, #0
	mov	r1, r4
	ldr	r0, [r9]
	str	r4, [sp, #4]
	str	r4, [sp]
	bl	MultiByteToWideChar
	subs	r5, r0, #0
	ble	.L7
	lsl	r0, r5, #2
	bl	uv__malloc
	subs	r7, r0, #0
	bne	.L3
	ldr	r3, .L8+4
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	mov	r2, r6
	mvn	r3, #0
	mov	r1, r4
	ldr	r0, [r9]
	str	r5, [sp, #4]
	str	r7, [sp]
	bl	MultiByteToWideChar
	sub	r0, r5, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r0, r4
	str	r7, [r8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	GetLastError
.L9:
	.align	2
.L8:
	.word	CP_UTF8
	.word	ERROR_OUTOFMEMORY
	.size	uv_utf8_to_utf16_alloc, .-uv_utf8_to_utf16_alloc
	.comm	ERROR_OUTOFMEMORY,4,4
	.comm	CP_UTF8,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
