	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_str_UTF8               ## -- Begin function prepare_str_UTF8
	.p2align	4, 0x90
_prepare_str_UTF8:                      ## @prepare_str_UTF8
	.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, %r14
	movq	_prep_ibuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%rdi), %edi
	xorl	%r15d, %r15d
	testl	%edi, %edi
	je	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	callq	_convert_prep
	movl	%eax, (%rbx,%r15,4)
	movl	4(%r14,%r15,4), %edi
	incq	%r15
	testl	%edi, %edi
	jne	LBB0_6
LBB0_2:
	movq	$-1, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$32, 4(%rbx,%rax,4)
	leaq	1(%rax), %rax
	je	LBB0_3
## %bb.4:
	movl	%r15d, %r8d
	xorl	%r14d, %r14d
	cmpl	%eax, %r15d
	jle	LBB0_13
## %bb.5:
	xorl	%r14d, %r14d
	movq	_words_ibuf@GOTPCREL(%rip), %r9
	movabsq	$4294967296, %r10               ## imm = 0x100000000
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	%rax, %rdi
	shlq	$32, %rdi
	movslq	%eax, %rcx
	leaq	(%rbx,%rcx,4), %rdx
	movq	(%r9), %rsi
	movq	%rdx, (%rsi,%r14,8)
	incq	%r14
	decl	%ecx
	testl	$-33, (%rdx)
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	%r10, %rdi
	addq	$4, %rdx
	incl	%ecx
	incl	%eax
	testl	$-33, (%rdx)
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	cltq
	decq	%rax
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$32, 4(%rbx,%rax,4)
	leaq	1(%rax), %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, %r15d
	jg	LBB0_8
LBB0_13:
	movl	$32, (%rbx,%r8,4)
	movq	_words_ibuf@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_stricmp_void@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	movl	$8, %edx
	callq	_qsort
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.15:
	movl	$1, %r9d
	cmpl	$1, %r14d
	je	LBB0_19
## %bb.16:
	movl	%r14d, %r14d
	movl	$1, %ecx
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movslq	%ecx, %r12
	leaq	-1(%r12), %r13
	movq	-8(%rax,%r12,8), %rdi
	movq	(%rax,%rbx,8), %rsi
	callq	_ispref
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdx
	movl	%r12d, %esi
	cmovneq	%r13, %rsi
	addl	%r12d, %ecx
	movq	%rdx, (%rax,%rsi,8)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_17
## %bb.18:
	movl	%ecx, %r9d
LBB0_19:
	movq	_prep_ibuf_res@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	(%r15), %rsi
	cmpl	$1, %r9d
	jne	LBB0_21
## %bb.20:
	xorl	%edi, %edi
	movq	%r8, %rcx
LBB0_29:
	testb	$1, %r9b
	je	LBB0_34
## %bb.30:
	movq	(%rsi,%rdi,8), %rax
	movl	(%rax), %edx
	cmpl	$32, %edx
	je	LBB0_33
## %bb.31:
	addq	$4, %rax
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rcx)
	addq	$4, %rcx
	movl	(%rax), %edx
	addq	$4, %rax
	cmpl	$32, %edx
	jne	LBB0_32
LBB0_33:
	movl	$43, (%rcx)
	addq	$4, %rcx
	jmp	LBB0_34
LBB0_14:
	movq	_prep_ibuf_res@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r8, %rcx
LBB0_34:
	movl	$0, (%rcx)
	subq	%r8, %rcx
	addq	$4, %rcx
	sarq	$2, %rcx
	movq	_MAX_NAME_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	setl	%dil
	callq	_assert
	movq	_prep_ibuf_res@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	%r9d, %edx
	andl	$-2, %edx
	xorl	%edi, %edi
	movq	%r8, %rcx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	$43, (%rcx)
	addq	$4, %rcx
	addq	$2, %rdi
	cmpq	%rdx, %rdi
	je	LBB0_29
LBB0_22:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
	movq	(%rsi,%rdi,8), %rbx
	movl	(%rbx), %eax
	cmpl	$32, %eax
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	addq	$4, %rbx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, (%rcx)
	addq	$4, %rcx
	movl	(%rbx), %eax
	addq	$4, %rbx
	cmpl	$32, %eax
	jne	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	$43, (%rcx)
	addq	$4, %rcx
	leaq	(,%rdi,8), %rax
	orq	$8, %rax
	movq	(%rsi,%rax), %rbx
	movl	(%rbx), %eax
	cmpl	$32, %eax
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	addq	$4, %rbx
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, (%rcx)
	addq	$4, %rcx
	movl	(%rbx), %eax
	addq	$4, %rbx
	cmpl	$32, %eax
	jne	LBB0_27
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_prep_ibuf,8,3                  ## @prep_ibuf
	.comm	_words_ibuf,8,3                 ## @words_ibuf
	.comm	_stricmp_void,4,2               ## @stricmp_void
	.comm	_prep_ibuf_res,8,3              ## @prep_ibuf_res
	.comm	_MAX_NAME_SIZE,4,2              ## @MAX_NAME_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_str_UTF8               ; -- Begin function prepare_str_UTF8
	.p2align	2
_prepare_str_UTF8:                      ; @prepare_str_UTF8
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x8, x0
Lloh0:
	adrp	x9, _prep_ibuf@GOTPAGE
Lloh1:
	ldr	x9, [x9, _prep_ibuf@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x9]
	ldr	w0, [x0]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, #0
	add	x19, x8, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_convert_prep
	lsl	x8, x22, #2
	str	w0, [x21, x8]
	add	x22, x22, #1
	ldr	w0, [x19, x8]
	cbnz	w0, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	mov	x9, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, x9, lsl #2]
	add	x9, x9, #1
	cmp	w8, #32
	b.eq	LBB0_5
; %bb.6:
	mov	w8, w22
	sub	x12, x9, #1
Lloh3:
	adrp	x20, _words_ibuf@GOTPAGE
Lloh4:
	ldr	x20, [x20, _words_ibuf@GOTPAGEOFF]
	cmp	w22, w12
	b.le	LBB0_14
; %bb.7:
	mov	x19, #0
	mov	x9, #4294967296
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	lsl	x11, x12, #32
	add	x13, x21, w12, sxtw #2
	ldr	x10, [x20]
	str	x13, [x10, x19, lsl #3]
	add	x19, x19, #1
	sub	w10, w12, #1
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x13]
	orr	w12, w12, #0x20
	cmp	w12, #32
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x11, x11, x9
	add	x13, x13, #4
	add	w10, w10, #1
	b	LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	asr	x11, x11, #32
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x21, x11, lsl #2]
	add	x11, x11, #1
	add	w10, w10, #1
	cmp	w12, #32
	b.eq	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	x12, x11, #1
	cmp	w22, w10
	b.gt	LBB0_8
	b	LBB0_15
LBB0_14:
	mov	w19, #0
LBB0_15:
	mov	w9, #32
	str	w9, [x21, x8, lsl #2]
	ldr	x0, [x20]
Lloh5:
	adrp	x8, _stricmp_void@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stricmp_void@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x1, x19
	mov	w2, #8
	bl	_qsort
Lloh8:
	adrp	x21, _prep_ibuf_res@GOTPAGE
Lloh9:
	ldr	x21, [x21, _prep_ibuf_res@GOTPAGEOFF]
	cbz	w19, LBB0_18
; %bb.16:
	cmp	w19, #1
	b.ne	LBB0_20
; %bb.17:
	mov	w19, #1
	b	LBB0_22
LBB0_18:
	ldr	x8, [x21]
	mov	x9, x8
LBB0_19:
	str	wzr, [x9]
	sub	x8, x9, x8
	add	x8, x8, #4
Lloh10:
	adrp	x9, _MAX_NAME_SIZE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAX_NAME_SIZE@GOTPAGEOFF]
Lloh12:
	ldrsw	x9, [x9]
	cmp	x9, x8, asr #2
	cset	w0, gt
	bl	_assert
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	w22, w19
	mov	w23, #1
	mov	x19, x23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	sub	w9, w19, #1
	sxtw	x24, w9
	ldr	x0, [x8, w9, sxtw #3]
	lsl	x25, x23, #3
	ldr	x1, [x8, x25]
	bl	_ispref
	ldr	x8, [x20]
	ldr	x9, [x8, x25]
	mov	w10, w19
	cmp	w0, #0
	csel	x10, x10, x24, eq
	cinc	w19, w19, eq
	str	x9, [x8, x10, lsl #3]
	add	x23, x23, #1
	cmp	x22, x23
	b.ne	LBB0_21
LBB0_22:
	mov	x10, #0
	ldr	x8, [x21]
	ldr	x11, [x20]
	mov	w12, #43
	mov	x9, x8
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	str	w12, [x9], #4
	add	x10, x10, #1
	cmp	x10, x19
	b.eq	LBB0_19
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	ldr	x14, [x11, x10, lsl #3]
	ldr	w13, [x14]
	cmp	w13, #32
	b.eq	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x14, x14, #4
LBB0_26:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w13, [x9], #4
	ldr	w13, [x14], #4
	cmp	w13, #32
	b.ne	LBB0_26
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_prep_ibuf,8,3                  ; @prep_ibuf
	.comm	_words_ibuf,8,3                 ; @words_ibuf
	.comm	_stricmp_void,4,2               ; @stricmp_void
	.comm	_prep_ibuf_res,8,3              ; @prep_ibuf_res
	.comm	_MAX_NAME_SIZE,4,2              ; @MAX_NAME_SIZE
.subsections_via_symbols
