	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_cons_getchar               ## -- Begin function efi_cons_getchar
	.p2align	4, 0x90
_efi_cons_getchar:                      ## @efi_cons_getchar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_keybuf_getchar
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	popq	%rbp
	retq
LBB0_1:
	movq	_key_pending@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_coninex@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	callq	_efi_readkey_ex
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_keybuf_getchar                 ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	callq	_efi_readkey
	testq	%rax, %rax
	jne	LBB0_4
LBB0_6:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_key_pending,8,3                ## @key_pending
	.comm	_coninex,8,3                    ## @coninex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_cons_getchar               ; -- Begin function efi_cons_getchar
	.p2align	2
_efi_cons_getchar:                      ; @efi_cons_getchar
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_keybuf_getchar
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _key_pending@GOTPAGE
Lloh1:
	ldr	x8, [x8, _key_pending@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _coninex@GOTPAGE
Lloh4:
	ldr	x8, [x8, _coninex@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	bl	_efi_readkey_ex
	cbz	x0, LBB0_6
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_keybuf_getchar
LBB0_5:
	bl	_efi_readkey
	cbnz	x0, LBB0_4
LBB0_6:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_key_pending,8,3                ; @key_pending
	.comm	_coninex,8,3                    ; @coninex
.subsections_via_symbols
