	.file	"extr_string-processing.c_sp_deunicode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sp_deunicode
	.type	sp_deunicode, @function
sp_deunicode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	strlen@PLT
	mov	edi, eax
	mov	ebx, eax
	call	sp_str_pre_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	DWORD PTR 4[rsp], 0
	test	ebx, ebx
	jle	.L7
	xor	ebp, ebp
	lea	r14, 4[rsp]
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, r14
	mov	rdi, r13
	call	next_character@PLT
	lea	rdx, [r12+r15]
	test	al, al
	je	.L4
	add	ebp, 1
	mov	BYTE PTR [rdx], al
	movsx	r15, ebp
	lea	rdx, [r12+r15]
.L4:
	mov	eax, DWORD PTR 4[rsp]
	add	eax, 1
	mov	DWORD PTR 4[rsp], eax
	cmp	eax, ebx
	jl	.L5
.L3:
	mov	BYTE PTR [rdx], 0
	mov	edi, ebp
	call	sp_str_alloc@PLT
	xor	edi, edi
	cmp	r12, rax
	sete	dil
	call	assert@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdx, rax
	xor	ebp, ebp
	jmp	.L3
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sp_deunicode, .-sp_deunicode
	.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-processing.c_sp_deunicode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sp_deunicode
	.syntax unified
	.arm
	.fpu softvfp
	.type	sp_deunicode, %function
sp_deunicode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L18
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r0
	bl	strlen
	mov	r5, r0
	bl	sp_str_pre_alloc
	subs	r6, r0, #0
	beq	.L1
	mov	r4, #0
	cmp	r5, r4
	str	r4, [sp]
	beq	.L7
	mov	r8, r6
.L5:
	mov	r1, sp
	mov	r0, r7
	bl	next_character
	cmp	r0, #0
	strbne	r0, [r8]
	ldr	r3, [sp]
	addne	r4, r4, #1
	mov	r2, r8
	add	r3, r3, #1
	addne	r8, r6, r4
	movne	r2, r8
	cmp	r3, r5
	str	r3, [sp]
	blt	.L5
.L3:
	mov	r3, #0
	mov	r0, r4
	strb	r3, [r2]
	bl	sp_str_alloc
	sub	r0, r6, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r4, r5
	mov	r2, r6
	b	.L3
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	sp_deunicode, .-sp_deunicode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
