	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lb_get_next_char_utf16         ## -- Begin function lb_get_next_char_utf16
	.p2align	4, 0x90
_lb_get_next_char_utf16:                ## @lb_get_next_char_utf16
	.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
	je	LBB0_1
## %bb.2:
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r15)
	movl	(%r14,%rcx,4), %eax
	leal	-56320(%rax), %esi
	cmpl	$-1024, %esi                    ## imm = 0xFC00
	jb	LBB0_7
## %bb.3:
	cmpq	%rbx, %rdx
	jne	LBB0_5
## %bb.4:
	movq	%rcx, (%r15)
LBB0_1:
	movq	_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	4(%r14,%rcx,4), %edx
	leal	-57344(%rdx), %esi
	cmpl	$-1024, %esi                    ## imm = 0xFC00
	jb	LBB0_7
## %bb.6:
	shll	$10, %eax
	andl	$1047552, %eax                  ## imm = 0xFFC00
	addq	$2, %rcx
	movq	%rcx, (%r15)
	andl	$1023, %edx                     ## imm = 0x3FF
	addl	%edx, %eax
	addl	$65536, %eax                    ## imm = 0x10000
	jmp	LBB0_7
	.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_utf16         ; -- Begin function lb_get_next_char_utf16
	.p2align	2
_lb_get_next_char_utf16:                ; @lb_get_next_char_utf16
	.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.eq	LBB0_4
; %bb.1:
	add	x9, x8, #1
	str	x9, [x19]
	ldr	w0, [x20, x8, lsl #2]
	mov	w10, #-56320
	add	w10, w0, w10
	cmn	w10, #1024
	b.lo	LBB0_5
; %bb.2:
	cmp	x9, x21
	b.ne	LBB0_6
; %bb.3:
	str	x8, [x19]
LBB0_4:
Lloh0:
	adrp	x8, _EOS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_5:
	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
LBB0_6:
	ldr	w9, [x20, x9, lsl #2]
	sub	w10, w9, #14, lsl #12           ; =57344
	cmn	w10, #1024
	b.lo	LBB0_5
; %bb.7:
	add	x8, x8, #2
	str	x8, [x19]
	and	w8, w9, #0x3ff
	bfi	w8, w0, #10, #10
	add	w0, w8, #16, lsl #12            ; =65536
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EOS,4,2                        ; @EOS
.subsections_via_symbols
