	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convertLatin1toUTF8
_convertLatin1toUTF8:                   ## @convertLatin1toUTF8
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movb	(%rdi), %cl
	testb	%cl, %cl
	je	LBB0_1
## %bb.2:
	leaq	1(%r15), %rax
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	testb	%cl, %cl
	setns	%dl
	subq	%rdx, %rdi
	addq	$2, %rdi
	movzbl	(%rax), %ecx
	incq	%rax
	testb	%cl, %cl
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	$1, %edi
LBB0_4:
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r14
	movb	(%r15), %al
	testb	%al, %al
	je	LBB0_7
## %bb.5:
	incq	%r15
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_encodeUTF8
	cltq
	addq	%rax, %rbx
	movzbl	(%r15), %eax
	incq	%r15
	testb	%al, %al
	jne	LBB0_6
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convertLatin1toUTF8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convertLatin1toUTF8
_convertLatin1toUTF8:                   ; @convertLatin1toUTF8
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldrb	w10, [x0]
	cbz	w10, LBB0_3
; %bb.1:
	add	x8, x19, #1
	mov	w9, #1
	mov	w0, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w10, w10
	cmp	w10, #0
	cinc	x10, x9, lt
	add	x0, x10, x0
	ldrb	w10, [x8], #1
	cbnz	w10, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	mov	w1, #1
	bl	_calloc
	mov	x20, x0
	ldrb	w8, [x19]
	cbz	w8, LBB0_7
; %bb.5:
	add	x21, x19, #1
	mov	x19, x20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w1, w8
	mov	x0, x19
	bl	_encodeUTF8
	add	x19, x19, w0, sxtw
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_6
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convertLatin1toUTF8
.subsections_via_symbols
