	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lb_get_next_char_utf8          ## -- Begin function lb_get_next_char_utf8
	.p2align	4, 0x90
_lb_get_next_char_utf8:                 ## @lb_get_next_char_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpq	%rsi, (%rdx)
	setbe	%dil
	callq	_assert
	movq	(%r15), %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_2
LBB0_1:
	movq	_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_2:
	movl	(%r14,%rcx,4), %eax
	leal	-245(%rax), %edx
	cmpl	$-52, %edx
	ja	LBB0_4
## %bb.3:
	incq	%rcx
	movq	%rcx, (%r15)
	jmp	LBB0_13
LBB0_4:
	cmpl	$223, %eax
	ja	LBB0_7
## %bb.5:
	leaq	2(%rcx), %rdx
	cmpq	%rbx, %rdx
	ja	LBB0_1
## %bb.6:
	andl	$31, %eax
	shll	$6, %eax
	movl	4(%r14,%rcx,4), %ecx
	andl	$63, %ecx
	orl	%eax, %ecx
	movq	%rdx, (%r15)
	movl	%ecx, %eax
	jmp	LBB0_13
LBB0_7:
	cmpl	$239, %eax
	ja	LBB0_10
## %bb.8:
	leaq	3(%rcx), %rdx
	cmpq	%rbx, %rdx
	ja	LBB0_1
## %bb.9:
	shll	$12, %eax
	movzwl	%ax, %esi
	movl	4(%r14,%rcx,4), %edi
	movl	8(%r14,%rcx,4), %eax
	andl	$63, %edi
	shll	$6, %edi
	orl	%esi, %edi
	jmp	LBB0_12
LBB0_10:
	leaq	4(%rcx), %rdx
	cmpq	%rbx, %rdx
	ja	LBB0_1
## %bb.11:
	andl	$7, %eax
	shll	$18, %eax
	movl	4(%r14,%rcx,4), %esi
	movl	8(%r14,%rcx,4), %edi
	andl	$63, %esi
	shll	$12, %esi
	orl	%eax, %esi
	andl	$63, %edi
	shll	$6, %edi
	orl	%esi, %edi
	movl	12(%r14,%rcx,4), %eax
LBB0_12:
	andl	$63, %eax
	orl	%edi, %eax
	movq	%rdx, (%r15)
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOS,4,2                        ## @EOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lb_get_next_char_utf8          ; -- Begin function lb_get_next_char_utf8
	.p2align	2
_lb_get_next_char_utf8:                 ; @lb_get_next_char_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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x2]
	cmp	x8, x1
	cset	w0, ls
	bl	_assert
	ldr	x8, [x19]
	cmp	x8, x21
	b.ne	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EOS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_2:
	ldr	w0, [x20, x8, lsl #2]
	sub	w9, w0, #245
	cmn	w9, #52
	b.hi	LBB0_4
; %bb.3:
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_13
LBB0_4:
	cmp	w0, #223
	b.hi	LBB0_7
; %bb.5:
	add	x9, x8, #2
	cmp	x9, x21
	b.hi	LBB0_1
; %bb.6:
	add	x8, x20, x8, lsl #2
	ldr	w8, [x8, #4]
	and	w8, w8, #0x3f
	bfi	w8, w0, #6, #5
	str	x9, [x19]
	mov	x0, x8
	b	LBB0_13
LBB0_7:
	cmp	w0, #239
	b.hi	LBB0_10
; %bb.8:
	add	x9, x8, #3
	cmp	x9, x21
	b.hi	LBB0_1
; %bb.9:
	ubfiz	w0, w0, #12, #4
	add	x8, x20, x8, lsl #2
	ldp	w10, w8, [x8, #4]
	bfi	w0, w10, #6, #6
	b	LBB0_12
LBB0_10:
	add	x9, x8, #4
	cmp	x9, x21
	b.hi	LBB0_1
; %bb.11:
	ubfiz	w0, w0, #18, #3
	add	x8, x20, x8, lsl #2
	ldp	w10, w11, [x8, #4]
	bfi	w0, w10, #12, #6
	bfi	w0, w11, #6, #6
	ldr	w8, [x8, #12]
LBB0_12:
	bfxil	w0, w8, #0, #6
	str	x9, [x19]
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EOS,4,2                        ; @EOS
.subsections_via_symbols
