	.file	"extr_archive_string.c_cesu8_to_unicode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cesu8_to_unicode, @function
cesu8_to_unicode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, rsp
	mov	DWORD PTR [rsp], 0
	call	_utf8_to_unicode@PLT
	mov	edi, DWORD PTR [rsp]
	mov	r12d, eax
	cmp	eax, 3
	je	.L14
.L7:
	mov	DWORD PTR 0[rbp], edi
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L14:
	.cfi_restore_state
	call	IS_HIGH_SURROGATE_LA@PLT
	test	rax, rax
	jne	.L16
	mov	edi, DWORD PTR [rsp]
	call	IS_LOW_SURROGATE_LA@PLT
	mov	edi, DWORD PTR [rsp]
	test	rax, rax
	je	.L7
.L6:
	mov	eax, DWORD PTR UNICODE_R_CHAR[rip]
	mov	r12d, -3
	mov	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdx, -3[rbx]
	mov	DWORD PTR 4[rsp], 0
	cmp	rdx, 2
	jbe	.L6
	lea	rsi, 3[r13]
	lea	rdi, 4[rsp]
	call	_utf8_to_unicode@PLT
	mov	r12d, eax
	cmp	eax, 3
	je	.L17
	mov	eax, DWORD PTR UNICODE_R_CHAR[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, r12d
	sar	eax, 31
	xor	r12d, eax
	sub	eax, r12d
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR 4[rsp]
	call	IS_LOW_SURROGATE_LA@PLT
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR [rsp]
	mov	esi, DWORD PTR 4[rsp]
	mov	r12d, 6
	call	combine_surrogate_pair@PLT
	mov	edi, eax
	jmp	.L7
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cesu8_to_unicode, .-cesu8_to_unicode
	.comm	UNICODE_R_CHAR,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_archive_string.c_cesu8_to_unicode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cesu8_to_unicode, %function
cesu8_to_unicode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	sub	sp, sp, #16
	ldr	r3, .L18
	mov	r6, r0
	add	r0, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r8, r1
	mov	r5, r2
	str	r7, [sp, #4]
	bl	_utf8_to_unicode
	cmp	r0, #3
	mov	r4, r0
	ldr	r0, [sp, #4]
	beq	.L14
.L7:
	str	r0, [r6]
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	bl	IS_HIGH_SURROGATE_LA
	cmp	r0, r7
	beq	.L3
	sub	r2, r5, #3
	cmp	r2, #2
	str	r7, [sp, #8]
	bhi	.L16
.L6:
	ldr	r3, .L18+4
	mvn	r4, #2
	ldr	r3, [r3]
	str	r3, [r6]
	b	.L1
.L3:
	ldr	r0, [sp, #4]
	bl	IS_LOW_SURROGATE_LA
	cmp	r0, #0
	bne	.L6
	ldr	r0, [sp, #4]
	b	.L7
.L16:
	add	r1, r8, #3
	add	r0, sp, #8
	bl	_utf8_to_unicode
	cmp	r0, #3
	mov	r4, r0
	beq	.L17
	ldr	r3, .L18+4
	cmp	r0, #0
	ldr	r3, [r3]
	rsbgt	r4, r0, #0
	str	r3, [r6]
	b	.L1
.L17:
	ldr	r0, [sp, #8]
	bl	IS_LOW_SURROGATE_LA
	cmp	r0, r7
	beq	.L6
	ldmib	sp, {r0, r1}
	bl	combine_surrogate_pair
	mov	r4, #6
	b	.L7
.L15:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	UNICODE_R_CHAR
	.size	cesu8_to_unicode, .-cesu8_to_unicode
	.comm	UNICODE_R_CHAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
