	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prom_nbgetchar                 ## -- Begin function prom_nbgetchar
	.p2align	4, 0x90
_prom_nbgetchar:                        ## @prom_nbgetchar
	.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
	movq	_prom_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_prom_vers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, %ebx
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movq	_romvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %edi
	leaq	_prom_nbgetchar.inc(%rip), %rsi
	movl	$1, %edx
	callq	*16(%rax)
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movsbl	_prom_nbgetchar.inc(%rip), %ebx
	jmp	LBB0_5
LBB0_1:
	cmpl	$130, %eax
	jne	LBB0_5
## %bb.2:
	movq	_romvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	movl	%eax, %ebx
LBB0_5:
	xorl	%eax, %eax
	callq	_restore_current
	movq	_prom_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_prom_nbgetchar.inc,1,0 ## @prom_nbgetchar.inc
	.comm	_prom_lock,4,2                  ## @prom_lock
	.comm	_prom_vers,4,2                  ## @prom_vers
	.comm	_romvec,8,3                     ## @romvec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prom_nbgetchar                 ; -- Begin function prom_nbgetchar
	.p2align	2
_prom_nbgetchar:                        ; @prom_nbgetchar
	.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
Lloh0:
	adrp	x0, _prom_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _prom_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _prom_vers@GOTPAGE
Lloh3:
	ldr	x8, [x8, _prom_vers@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _romvec@GOTPAGE
Lloh6:
	ldr	x8, [x8, _romvec@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldp	x8, x9, [x8, #8]
	ldr	w0, [x8]
Lloh8:
	adrp	x1, _prom_nbgetchar.inc@PAGE
Lloh9:
	add	x1, x1, _prom_nbgetchar.inc@PAGEOFF
	mov	w2, #1
	blr	x9
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.2:
	adrp	x8, _prom_nbgetchar.inc@PAGE
	ldrsb	w19, [x8, _prom_nbgetchar.inc@PAGEOFF]
	b	LBB0_6
LBB0_3:
	cmp	w8, #130
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _romvec@GOTPAGE
Lloh11:
	ldr	x8, [x8, _romvec@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	mov	x19, x0
	b	LBB0_6
LBB0_5:
	mov	w19, #-1
LBB0_6:
	bl	_restore_current
Lloh13:
	adrp	x0, _prom_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _prom_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_prom_nbgetchar.inc,1,0 ; @prom_nbgetchar.inc
	.comm	_prom_lock,4,2                  ; @prom_lock
	.comm	_prom_vers,4,2                  ; @prom_vers
	.comm	_romvec,8,3                     ; @romvec
.subsections_via_symbols
