	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prom_nbputchar                 ## -- Begin function prom_nbputchar
	.p2align	4, 0x90
_prom_nbputchar:                        ## @prom_nbputchar
	.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, %r14d
	movq	_prom_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_prom_vers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movb	%r14b, _prom_nbputchar.outc(%rip)
	leaq	_prom_nbputchar.outc(%rip), %rsi
	movq	_romvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %edi
	movl	$1, %edx
	callq	*16(%rax)
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	setne	%bl
	negl	%ebx
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %ebx
	cmpl	$130, %eax
	jne	LBB0_4
## %bb.2:
	movq	_romvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movsbl	%r14b, %edi
	callq	*(%rax)
	movl	%eax, %ebx
LBB0_4:
	xorl	%eax, %eax
	callq	_restore_current
	movq	_prom_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_prom_nbputchar.outc,1,0 ## @prom_nbputchar.outc
	.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_nbputchar                 ; -- Begin function prom_nbputchar
	.p2align	2
_prom_nbputchar:                        ; @prom_nbputchar
	.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
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_2
; %bb.1:
Lloh5:
	adrp	x1, _prom_nbputchar.outc@PAGE
Lloh6:
	add	x1, x1, _prom_nbputchar.outc@PAGEOFF
	strb	w19, [x1]
Lloh7:
	adrp	x8, _romvec@GOTPAGE
Lloh8:
	ldr	x8, [x8, _romvec@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldp	x8, x9, [x8, #8]
	ldr	w0, [x8]
	mov	w2, #1
	blr	x9
	cmp	w0, #1
	csetm	w19, ne
	b	LBB0_5
LBB0_2:
	cmp	w8, #130
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _romvec@GOTPAGE
Lloh11:
	ldr	x8, [x8, _romvec@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x19, x0
	b	LBB0_5
LBB0_4:
	mov	w19, #-1
LBB0_5:
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_prom_nbputchar.outc,1,0 ; @prom_nbputchar.outc
	.comm	_prom_lock,4,2                  ; @prom_lock
	.comm	_prom_vers,4,2                  ; @prom_vers
	.comm	_romvec,8,3                     ; @romvec
.subsections_via_symbols
