	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_readkey_ex
_efi_readkey_ex:                        ## @efi_readkey_ex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_coninex@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	-8(%rbp), %rsi
	callq	*(%rdi)
	movq	%rax, %rcx
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.1:
	movl	-4(%rbp), %eax
	movq	_EFI_SHIFT_STATE_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.2:
	movq	_EFI_RIGHT_CONTROL_PRESSED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_EFI_LEFT_CONTROL_PRESSED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_4:
	movb	-8(%rbp), %al
	leal	-97(%rax), %ecx
	cmpb	$25, %cl
	ja	LBB0_6
## %bb.5:
	addb	$-96, %al
	movb	%al, -8(%rbp)
LBB0_6:
	leaq	-8(%rbp), %rdi
	callq	_keybuf_inschar
	movl	$1, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_coninex,8,3                    ## @coninex
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_EFI_SHIFT_STATE_VALID,4,2      ## @EFI_SHIFT_STATE_VALID
	.comm	_EFI_RIGHT_CONTROL_PRESSED,4,2  ## @EFI_RIGHT_CONTROL_PRESSED
	.comm	_EFI_LEFT_CONTROL_PRESSED,4,2   ## @EFI_LEFT_CONTROL_PRESSED
	.no_dead_strip	_efi_readkey_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_readkey_ex
_efi_readkey_ex:                        ; @efi_readkey_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _coninex@GOTPAGE
Lloh1:
	ldr	x8, [x8, _coninex@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldr	x8, [x0]
	add	x1, sp, #8
	blr	x8
Lloh3:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _EFI_SHIFT_STATE_VALID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EFI_SHIFT_STATE_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
Lloh9:
	adrp	x9, _EFI_RIGHT_CONTROL_PRESSED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EFI_RIGHT_CONTROL_PRESSED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x9, _EFI_LEFT_CONTROL_PRESSED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EFI_LEFT_CONTROL_PRESSED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_4:
	ldrb	w8, [sp, #8]
	sub	w9, w8, #97
	cmp	w9, #25
	b.hi	LBB0_6
; %bb.5:
	sub	w8, w8, #96
	strb	w8, [sp, #8]
LBB0_6:
	add	x0, sp, #8
	bl	_keybuf_inschar
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_coninex,8,3                    ; @coninex
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_EFI_SHIFT_STATE_VALID,4,2      ; @EFI_SHIFT_STATE_VALID
	.comm	_EFI_RIGHT_CONTROL_PRESSED,4,2  ; @EFI_RIGHT_CONTROL_PRESSED
	.comm	_EFI_LEFT_CONTROL_PRESSED,4,2   ; @EFI_LEFT_CONTROL_PRESSED
	.no_dead_strip	_efi_readkey_ex
.subsections_via_symbols
