	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ofw_cons_getchar               ## -- Begin function ofw_cons_getchar
	.p2align	4, 0x90
_ofw_cons_getchar:                      ## @ofw_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
	subq	$16, %rsp
	movb	$0, -1(%rbp)
	movq	_saved_char@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	movl	$-1, (%rcx)
	jmp	LBB0_3
LBB0_2:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-1(%rbp), %rsi
	movl	$1, %edx
	callq	_OF_read
	movzbl	-1(%rbp), %ecx
	xorl	%edx, %edx
	cmpl	$1, %ecx
	sbbl	%edx, %edx
	orl	%ecx, %edx
	testq	%rax, %rax
	movl	$-1, %eax
	cmovgl	%edx, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_saved_char,4,2                 ## @saved_char
	.comm	_stdin,4,2                      ## @stdin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ofw_cons_getchar               ; -- Begin function ofw_cons_getchar
	.p2align	2
_ofw_cons_getchar:                      ; @ofw_cons_getchar
	.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
	sturb	wzr, [x29, #-1]
Lloh0:
	adrp	x8, _saved_char@GOTPAGE
Lloh1:
	ldr	x8, [x8, _saved_char@GOTPAGEOFF]
	ldr	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #-1
	str	w9, [x8]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _stdin@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	sub	x1, x29, #1
	mov	w2, #1
	bl	_OF_read
	ldurb	w8, [x29, #-1]
	cmp	w8, #0
	ccmp	x0, #0, #4, ne
	csinv	w0, w8, wzr, gt
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_saved_char,4,2                 ; @saved_char
	.comm	_stdin,4,2                      ; @stdin
.subsections_via_symbols
