	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_utf8
_to_utf8:                               ## @to_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$128, %esi
	jl	LBB0_11
## %bb.1:
	cmpl	$2047, %ebx                     ## imm = 0x7FF
	ja	LBB0_3
## %bb.2:
	movl	%ebx, %esi
	shrl	$6, %esi
	orl	$192, %esi
	jmp	LBB0_10
LBB0_3:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	ja	LBB0_7
## %bb.4:
	je	LBB0_12
## %bb.5:
	movl	%ebx, %eax
	andl	$-2048, %eax                    ## imm = 0xF800
	cmpl	$55296, %eax                    ## imm = 0xD800
	je	LBB0_12
## %bb.6:
	movl	%ebx, %esi
	shrl	$12, %esi
	orl	$224, %esi
	jmp	LBB0_9
LBB0_7:
	cmpl	$1114111, %ebx                  ## imm = 0x10FFFF
	ja	LBB0_12
## %bb.8:
	movl	%ebx, %esi
	shrl	$18, %esi
	orl	$240, %esi
	movq	%r14, %rdi
	callq	_put_queue
	movl	%ebx, %esi
	shrl	$12, %esi
	andl	$63, %esi
	orl	$128, %esi
LBB0_9:
	movq	%r14, %rdi
	callq	_put_queue
	movl	%ebx, %esi
	shrl	$6, %esi
	andl	$63, %esi
	orl	$128, %esi
LBB0_10:
	movq	%r14, %rdi
	callq	_put_queue
	andl	$63, %ebx
	orl	$128, %ebx
LBB0_11:
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_put_queue                      ## TAILCALL
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_to_utf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_utf8
_to_utf8:                               ; @to_utf8
	.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	x20, x1
	mov	x19, x0
	cmp	w1, #128
	b.lt	LBB0_11
; %bb.1:
	cmp	w20, #2047
	b.hi	LBB0_3
; %bb.2:
	lsr	w8, w20, #6
	orr	w21, w8, #0xc0
	b	LBB0_10
LBB0_3:
	lsr	w8, w20, #16
	cbnz	w8, LBB0_7
; %bb.4:
	mov	w8, #65535
	cmp	w20, w8
	b.eq	LBB0_12
; %bb.5:
	and	w8, w20, #0xfffff800
	mov	w9, #55296
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.6:
	lsr	w8, w20, #12
	orr	w1, w8, #0xe0
	mov	x0, x19
	bl	_put_queue
	mov	w21, #128
	b	LBB0_9
LBB0_7:
	cmp	w8, #16
	b.hi	LBB0_12
; %bb.8:
	lsr	w8, w20, #18
	orr	w1, w8, #0xf0
	mov	x0, x19
	bl	_put_queue
	mov	w21, #128
	mov	w1, #128
	bfxil	w1, w20, #12, #6
	mov	x0, x19
	bl	_put_queue
LBB0_9:
	bfxil	w21, w20, #6, #6
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_put_queue
	mov	w8, #128
	bfxil	w8, w20, #0, #6
	mov	x20, x8
LBB0_11:
	mov	x0, x19
	mov	x1, 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
	b	_put_queue
LBB0_12:
	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	_to_utf8
.subsections_via_symbols
