	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_cons_poll                  ## -- Begin function efi_cons_poll
	.p2align	4, 0x90
_efi_cons_poll:                         ## @efi_cons_poll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_keybuf_ischar
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.1:
	movq	_key_pending@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_9
## %bb.2:
	movq	_coninex@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.4:
	xorl	%eax, %eax
	callq	_efi_readkey_ex
	jmp	LBB0_8
LBB0_5:
	movq	_conin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
LBB0_7:
	movq	_BS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	callq	*(%rax)
	movq	%rax, %rcx
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	sete	%al
LBB0_8:
	movl	%eax, (%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	callq	_efi_readkey
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_key_pending,4,2                ## @key_pending
	.comm	_coninex,8,3                    ## @coninex
	.comm	_BS,8,3                         ## @BS
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_conin,8,3                      ## @conin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_cons_poll                  ; -- Begin function efi_cons_poll
	.p2align	2
_efi_cons_poll:                         ; @efi_cons_poll
	.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
	bl	_keybuf_ischar
	mov	x8, x0
	mov	w0, #1
	cbnz	x8, LBB0_8
; %bb.1:
Lloh0:
	adrp	x19, _key_pending@GOTPAGE
Lloh1:
	ldr	x19, [x19, _key_pending@GOTPAGEOFF]
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, _coninex@GOTPAGE
Lloh3:
	ldr	x8, [x8, _coninex@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [x8]
	cbnz	x0, LBB0_6
; %bb.4:
	bl	_efi_readkey_ex
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _conin@GOTPAGE
Lloh6:
	ldr	x8, [x8, _conin@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbz	x0, LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _BS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
Lloh11:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
LBB0_7:
	str	w0, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	_efi_readkey
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_key_pending,4,2                ; @key_pending
	.comm	_coninex,8,3                    ; @coninex
	.comm	_BS,8,3                         ; @BS
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_conin,8,3                      ; @conin
.subsections_via_symbols
