	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sp_deunicode                   ## -- Begin function sp_deunicode
	.p2align	4, 0x90
_sp_deunicode:                          ## @sp_deunicode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_strlen
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_sp_str_pre_alloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	$0, -44(%rbp)
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	jle	LBB0_6
## %bb.2:
	leaq	-44(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax
	incl	%eax
	movl	%eax, -44(%rbp)
	cmpl	%r13d, %eax
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_next_character
	testb	%al, %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %rcx
	incl	%ebx
	movb	%al, (%r14,%rcx)
	jmp	LBB0_5
LBB0_6:
	movslq	%ebx, %rdi
	movb	$0, (%r14,%rdi)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_sp_str_alloc
	xorl	%edi, %edi
	cmpq	%rax, %r14
	sete	%dil
	callq	_assert
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sp_deunicode                   ; -- Begin function sp_deunicode
	.p2align	2
_sp_deunicode:                          ; @sp_deunicode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_strlen
	mov	x21, x0
	bl	_sp_str_pre_alloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	str	wzr, [sp, #12]
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.2:
	mov	w22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	add	w8, w8, #1
	str	w8, [sp, #12]
	cmp	w8, w21
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x20
	bl	_next_character
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w0, [x19, w22, sxtw]
	add	w22, w22, #1
	b	LBB0_3
LBB0_6:
	mov	w22, #0
LBB0_7:
	strb	wzr, [x19, w22, sxtw]
	mov	x0, x22
	bl	_sp_str_alloc
	cmp	x19, x0
	cset	w0, eq
	bl	_assert
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
