	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_preconv_encode                 ## -- Begin function preconv_encode
	.p2align	4, 0x90
_preconv_encode:                        ## @preconv_encode
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movq	(%rsi), %r15
	movzbl	(%r14,%r15), %edi
	andl	$-128, %edi
	callq	_assert
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movq	_MPARSE_UTF8@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_26
## %bb.1:
	addq	%r15, %r14
	movzbl	(%r14), %edx
	testb	$64, %dl
	jne	LBB0_2
LBB0_26:
	movq	_MPARSE_LATIN1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_27
## %bb.28:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%r12), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r12)
	movzbl	(%rax,%rcx), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$11, %esi
	callq	_snprintf
	addq	%rax, (%rbx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_29:
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movl	$1, %eax
	jmp	LBB0_30
LBB0_27:
	xorl	%eax, %eax
LBB0_30:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testb	$32, %dl
	jne	LBB0_3
## %bb.9:
	movl	%edx, %edi
	andb	$31, %dil
	cmpb	$2, %dil
	jb	LBB0_26
## %bb.10:
	movl	$1, %r8d
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_3:
	testb	$16, %dl
	jne	LBB0_4
## %bb.11:
	movl	%edx, %edi
	andb	$15, %dil
	movl	$2, %r8d
	movb	$1, %bl
	cmpb	$13, %dil
	je	LBB0_25
## %bb.12:
	testb	%dil, %dil
	jne	LBB0_18
## %bb.13:
	testb	$32, 1(%r14)
	je	LBB0_26
## %bb.14:
	xorl	%edi, %edi
	jmp	LBB0_18
LBB0_4:
	testb	$8, %dl
	jne	LBB0_26
## %bb.5:
	movl	%edx, %edi
	andb	$7, %dil
	cmpb	$4, %dil
	ja	LBB0_26
## %bb.6:
	movl	$3, %r8d
	je	LBB0_15
## %bb.7:
	testb	%dil, %dil
	jne	LBB0_17
## %bb.8:
	xorl	%ebx, %ebx
	testb	$48, 1(%r14)
	movl	$0, %edi
	jne	LBB0_18
	jmp	LBB0_26
LBB0_25:
	movb	$13, %dil
	testb	$32, 1(%r14)
	jne	LBB0_26
LBB0_18:
	movzbl	1(%r14), %esi
	movl	%esi, %ecx
	andl	$-64, %ecx
	cmpl	$128, %ecx
	jne	LBB0_26
## %bb.19:
	movzbl	%dil, %ecx
	shll	$6, %ecx
	andl	$63, %esi
	orl	%ecx, %esi
	testb	$32, %dl
	je	LBB0_24
## %bb.20:
	movzbl	2(%r14), %edx
	movl	%edx, %ecx
	andl	$-64, %ecx
	cmpl	$128, %ecx
	jne	LBB0_26
## %bb.21:
	movl	%esi, %ecx
	shll	$6, %ecx
	andl	$63, %edx
	movl	%edx, %esi
	orl	%ecx, %esi
	testb	%bl, %bl
	jne	LBB0_24
## %bb.22:
	movzbl	3(%r14), %edx
	movl	%edx, %ecx
	andl	$-64, %ecx
	cmpl	$128, %ecx
	jne	LBB0_26
## %bb.23:
	shll	$6, %esi
	andl	$63, %edx
	orl	%esi, %edx
	movl	%edx, %esi
LBB0_24:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	addq	%r8, %r14
	incq	%r14
	xorl	%edi, %edi
	cmpl	$127, %esi
	seta	%dil
	movq	%rsi, %r13
	callq	_assert
	xorl	%edi, %edi
	cmpl	$1114112, %r13d                 ## imm = 0x110000
	setb	%dil
	callq	_assert
	leal	-57344(%r13), %eax
	xorl	%edi, %edi
	cmpl	$-2048, %eax                    ## imm = 0xF800
	setb	%dil
	callq	_assert
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	movzbl	%r13b, %ecx
	leaq	L_.str(%rip), %rdx
	movl	$11, %esi
	callq	_snprintf
	addq	%rax, (%r15)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subq	(%rax), %r14
	movq	%r14, (%r12)
	movq	_MPARSE_LATIN1@GOTPCREL(%rip), %r13
	jmp	LBB0_29
LBB0_15:
	testb	$48, 1(%r14)
	jne	LBB0_26
## %bb.16:
	movb	$4, %dil
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MPARSE_UTF8,4,2                ## @MPARSE_UTF8
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\[u%.4X]"

	.comm	_MPARSE_LATIN1,4,2              ## @MPARSE_LATIN1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_preconv_encode                 ; -- Begin function preconv_encode
	.p2align	2
_preconv_encode:                        ; @preconv_encode
	.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	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x9, [x1]
	add	x24, x8, x9
	ldrb	w8, [x24]
	and	w0, w8, #0x80
	bl	_assert
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _MPARSE_UTF8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MPARSE_UTF8@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldrb	w9, [x24]
	tbnz	w9, #6, LBB0_7
LBB0_2:
Lloh3:
	adrp	x9, _MPARSE_LATIN1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPARSE_LATIN1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x23]
	ldr	x9, [x20]
	add	x0, x8, x9
	ldr	x8, [x22]
	ldr	x9, [x21]
	add	x10, x9, #1
	str	x10, [x21]
	ldrb	w3, [x8, x9]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #11
	bl	_snprintf
	ldr	x8, [x20]
	add	x8, x8, x0
	str	x8, [x20]
Lloh8:
	adrp	x8, _MPARSE_UTF8@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MPARSE_UTF8@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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_7:
	tbnz	w9, #5, LBB0_10
; %bb.8:
	and	w10, w9, #0x1f
	cmp	w10, #2
	b.lo	LBB0_2
; %bb.9:
	mov	w11, #0
	mov	w12, #1
	b	LBB0_24
LBB0_10:
	tbnz	w9, #4, LBB0_15
; %bb.11:
	and	w10, w9, #0xf
	cmp	w10, #13
	b.eq	LBB0_21
; %bb.12:
	cbnz	w10, LBB0_23
; %bb.13:
	ldrb	w10, [x24, #1]
	tbz	w10, #5, LBB0_2
; %bb.14:
	mov	w10, #0
	b	LBB0_23
LBB0_15:
	tbnz	w9, #3, LBB0_2
; %bb.16:
	and	w10, w9, #0x7
	cmp	w10, #4
	b.hi	LBB0_2
; %bb.17:
	cmp	w10, #4
	b.eq	LBB0_31
; %bb.18:
	cbnz	w10, LBB0_33
; %bb.19:
	ldrb	w10, [x24, #1]
	tst	w10, #0x30
	b.eq	LBB0_2
; %bb.20:
	mov	w11, #0
	mov	w10, #0
	b	LBB0_34
LBB0_21:
	ldrb	w10, [x24, #1]
	tbnz	w10, #5, LBB0_2
; %bb.22:
	mov	w10, #13
LBB0_23:
	mov	w11, #1
	mov	w12, #2
LBB0_24:
	mov	x13, x24
	ldrb	w14, [x13, #1]!
	and	w15, w14, #0xc0
	cmp	w15, #128
	b.ne	LBB0_2
; %bb.25:
	and	w25, w14, #0x3f
	bfi	w25, w10, #6, #5
	tbz	w9, #5, LBB0_30
; %bb.26:
	ldrb	w9, [x24, #2]
	and	w10, w9, #0xc0
	cmp	w10, #128
	b.ne	LBB0_2
; %bb.27:
	and	w9, w9, #0x3f
	bfi	w9, w25, #6, #11
	mov	x25, x9
	tbnz	w11, #0, LBB0_30
; %bb.28:
	ldrb	w10, [x24, #3]
	and	w11, w10, #0xc0
	cmp	w11, #128
	b.ne	LBB0_2
; %bb.29:
	and	w25, w10, #0x3f
	bfi	w25, w9, #6, #17
LBB0_30:
	add	x24, x13, x12
	cmp	w25, #127
	cset	w0, hi
	bl	_assert
	cmp	w25, #272, lsl #12              ; =1114112
	cset	w0, lo
	bl	_assert
	sub	w8, w25, #14, lsl #12           ; =57344
	cmn	w8, #2048
	cset	w0, lo
	bl	_assert
	ldr	x8, [x23]
	ldr	x9, [x20]
	add	x0, x8, x9
	and	w3, w25, #0xff
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #11
	bl	_snprintf
	ldr	x8, [x20]
	add	x8, x8, x0
	str	x8, [x20]
	ldr	x8, [x22]
	sub	x8, x24, x8
	str	x8, [x21]
Lloh12:
	adrp	x8, _MPARSE_LATIN1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MPARSE_LATIN1@GOTPAGEOFF]
	b	LBB0_4
LBB0_31:
	ldrb	w10, [x24, #1]
	tst	w10, #0x30
	b.ne	LBB0_2
; %bb.32:
	mov	w11, #0
	mov	w10, #4
	b	LBB0_34
LBB0_33:
	mov	w11, #0
LBB0_34:
	mov	w12, #3
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MPARSE_UTF8,4,2                ; @MPARSE_UTF8
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\[u%.4X]"

	.comm	_MPARSE_LATIN1,4,2              ; @MPARSE_LATIN1
.subsections_via_symbols
