	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_byte
_input_byte:                            ## @input_byte
	.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	%edi, %ebx
	testb	$-128, %bl
	jne	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_input_partial
LBB0_2:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_efi_term_emu                   ## TAILCALL
LBB0_3:
	movl	%ebx, %eax
	andl	$224, %eax
	cmpl	$192, %eax
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_input_partial
	movq	_utf8_left@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_5
LBB0_6:
	movl	%ebx, %eax
	andl	$240, %eax
	cmpl	$224, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_input_partial
	movq	_utf8_left@GOTPCREL(%rip), %rax
	movl	$2, (%rax)
	jmp	LBB0_5
LBB0_8:
	movl	%ebx, %eax
	andl	$248, %eax
	cmpl	$240, %eax
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_input_partial
	movq	_utf8_left@GOTPCREL(%rip), %rax
	movl	$3, (%rax)
LBB0_5:
	movq	_utf8_partial@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
LBB0_22:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movl	%ebx, %eax
	andl	$192, %eax
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.11:
	movq	_utf8_left@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.12:
	movq	_utf8_partial@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shll	$8, %eax
	orl	%ebx, %eax
	movl	%eax, (%r14)
	decl	%edx
	movl	%edx, (%rcx)
	jne	LBB0_22
## %bb.13:
	cmpl	$16777216, %eax                 ## imm = 0x1000000
	jae	LBB0_14
## %bb.15:
	testl	$16711680, %eax                 ## imm = 0xFF0000
	je	LBB0_17
## %bb.16:
	movl	%eax, %ecx
	shrl	$8, %ecx
	shrl	$10, %eax
	andl	$960, %eax                      ## imm = 0x3C0
	andl	$63, %ecx
	orl	%eax, %ecx
	shll	$6, %ecx
	andl	$63, %ebx
	orl	%ecx, %ebx
	jmp	LBB0_21
LBB0_14:
	movl	%eax, %ecx
	shrl	$16, %ecx
	movl	%eax, %edx
	shrl	$18, %edx
	andl	$448, %edx                      ## imm = 0x1C0
	andl	$63, %ecx
	orl	%edx, %ecx
	shll	$12, %ecx
	shrl	$2, %eax
	andl	$4032, %eax                     ## imm = 0xFC0
	orl	%ecx, %eax
LBB0_20:
	andl	$63, %ebx
	orl	%eax, %ebx
LBB0_21:
	movl	%ebx, %edi
	callq	_efi_cons_efiputchar
	movl	$0, (%r14)
	jmp	LBB0_22
LBB0_17:
	testl	$65280, %eax                    ## imm = 0xFF00
	je	LBB0_18
## %bb.19:
	shrl	$2, %eax
	andl	$1984, %eax                     ## imm = 0x7C0
	jmp	LBB0_20
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_utf8_left,4,2                  ## @utf8_left
	.comm	_utf8_partial,4,2               ## @utf8_partial
	.no_dead_strip	_input_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_byte
_input_byte:                            ; @input_byte
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	tbnz	w0, #7, LBB0_3
LBB0_1:
	bl	_input_partial
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_efi_term_emu
LBB0_3:
	and	w8, w19, #0xe0
	cmp	w8, #192
	b.ne	LBB0_5
; %bb.4:
	bl	_input_partial
Lloh0:
	adrp	x8, _utf8_left@GOTPAGE
Lloh1:
	ldr	x8, [x8, _utf8_left@GOTPAGEOFF]
	mov	w9, #1
	b	LBB0_9
LBB0_5:
	and	w8, w19, #0xf0
	cmp	w8, #224
	b.ne	LBB0_7
; %bb.6:
	bl	_input_partial
Lloh2:
	adrp	x8, _utf8_left@GOTPAGE
Lloh3:
	ldr	x8, [x8, _utf8_left@GOTPAGEOFF]
	mov	w9, #2
	b	LBB0_9
LBB0_7:
	and	w8, w19, #0xf8
	cmp	w8, #240
	b.ne	LBB0_11
; %bb.8:
	bl	_input_partial
Lloh4:
	adrp	x8, _utf8_left@GOTPAGE
Lloh5:
	ldr	x8, [x8, _utf8_left@GOTPAGEOFF]
	mov	w9, #3
LBB0_9:
	str	w9, [x8]
Lloh6:
	adrp	x8, _utf8_partial@GOTPAGE
Lloh7:
	ldr	x8, [x8, _utf8_partial@GOTPAGEOFF]
Lloh8:
	str	w19, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	and	w8, w19, #0xc0
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.12:
Lloh9:
	adrp	x9, _utf8_left@GOTPAGE
Lloh10:
	ldr	x9, [x9, _utf8_left@GOTPAGEOFF]
	ldr	w10, [x9]
	cbz	w10, LBB0_2
; %bb.13:
Lloh11:
	adrp	x20, _utf8_partial@GOTPAGE
Lloh12:
	ldr	x20, [x20, _utf8_partial@GOTPAGEOFF]
	ldr	w8, [x20]
	orr	w8, w19, w8, lsl #8
	str	w8, [x20]
	subs	w10, w10, #1
	str	w10, [x9]
	b.ne	LBB0_10
; %bb.14:
	lsr	w9, w8, #24
	tst	w8, #0xff00
	lsr	w10, w8, #2
	and	w11, w10, #0x7c0
	bfxil	w11, w19, #0, #6
	csel	w11, wzr, w11, eq
	lsr	w12, w8, #10
	bfxil	w12, w8, #8, #6
	and	w13, w19, #0x3f
	bfi	w13, w12, #6, #10
	tst	w8, #0xff0000
	csel	w11, w11, w13, eq
	lsr	w12, w8, #18
	bfxil	w12, w8, #16, #6
	and	w8, w10, #0xfc0
	bfi	w8, w12, #12, #9
	bfxil	w8, w19, #0, #6
	cmp	w9, #0
	csel	w0, w11, w8, eq
	bl	_efi_cons_efiputchar
	str	wzr, [x20]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_utf8_left,4,2                  ; @utf8_left
	.comm	_utf8_partial,4,2               ; @utf8_partial
	.no_dead_strip	_input_byte
.subsections_via_symbols
