	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_line_readchar_utf8
_r_line_readchar_utf8:                  ## @r_line_readchar_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_r_cons_readchar
	movl	$-1, %ecx
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.3:
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_r_cons_controlz
	movl	%eax, (%r14)
	movl	$1, %ecx
	cmpl	$128, %eax
	jl	LBB0_16
## %bb.4:
	movl	%eax, %ecx
	andl	$224, %ecx
	movl	$2, %r15d
	cmpl	$192, %ecx
	je	LBB0_7
## %bb.5:
	movl	%eax, %ecx
	andl	$240, %ecx
	movl	$3, %r15d
	cmpl	$224, %ecx
	je	LBB0_7
## %bb.6:
	andl	$248, %eax
	movl	$4, %r15d
	movl	$-1, %ecx
	cmpl	$240, %eax
	jne	LBB0_16
LBB0_7:
	movl	$-1, %ecx
	cmpl	%ebx, %r15d
	cmovbel	%r15d, %ecx
	ja	LBB0_16
## %bb.8:
	movl	%r15d, %r12d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_r_cons_readchar
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, (%r14,%rbx,4)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14,%rbx,4), %eax
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	andl	$192, %eax
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_9
## %bb.12:
	movl	%r15d, %ecx
	jmp	LBB0_16
LBB0_1:
	xorl	%ecx, %ecx
LBB0_16:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	$-1, %ecx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_t,4,2                          ## @t
	.no_dead_strip	_r_line_readchar_utf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_line_readchar_utf8
_r_line_readchar_utf8:                  ; @r_line_readchar_utf8
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_r_cons_readchar
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	str	w0, [x19]
	bl	_r_cons_controlz
	str	w0, [x19]
	cmp	w0, #128
	b.ge	LBB0_6
; %bb.3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	and	w23, w0, #0xe0
	cmp	w23, #192
	b.ne	LBB0_8
; %bb.7:
	mov	w22, #0
	mov	w21, #2
	b	LBB0_12
LBB0_8:
	and	w8, w0, #0xf0
	cmp	w8, #224
	b.ne	LBB0_10
; %bb.9:
	mov	w21, #3
	mov	w22, #1
	b	LBB0_12
LBB0_10:
	and	w8, w0, #0xf8
	cmp	w8, #240
	b.ne	LBB0_20
; %bb.11:
	mov	w22, #0
	mov	w21, #4
LBB0_12:
	cmp	w21, w20
	csinv	w0, w21, wzr, ls
	b.hi	LBB0_5
; %bb.13:
	bl	_r_cons_readchar
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.14:
	str	w0, [x19, #4]
	b	LBB0_16
LBB0_15:
	ldr	w0, [x19, #4]
LBB0_16:
	and	w8, w0, #0xc0
	cmp	w8, #128
	csinv	w0, w21, wzr, eq
	b.ne	LBB0_5
; %bb.17:
	cmp	w23, #192
	b.eq	LBB0_5
; %bb.18:
	bl	_r_cons_readchar
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.19:
	str	w0, [x19, #8]
	b	LBB0_22
LBB0_20:
	mov	w0, #-1
	b	LBB0_5
LBB0_21:
	ldr	w0, [x19, #8]
LBB0_22:
	and	w8, w0, #0xc0
	cmp	w8, #128
	cset	w8, ne
	orr	w8, w8, w22
	csinv	w0, w21, wzr, eq
	tbnz	w8, #0, LBB0_5
; %bb.23:
	bl	_r_cons_readchar
	cmn	w0, #1
	b.eq	LBB0_25
; %bb.24:
	str	w0, [x19, #12]
	b	LBB0_26
LBB0_25:
	ldr	w0, [x19, #12]
LBB0_26:
	and	w8, w0, #0xc0
	cmp	w8, #128
	csinv	w0, w21, wzr, eq
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.comm	_t,4,2                          ; @t
	.no_dead_strip	_r_line_readchar_utf8
.subsections_via_symbols
