	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function riscv_timeout
_riscv_timeout:                         ## @riscv_timeout
	.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	_tp@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_tty_lock
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_riscv_cngetc
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_ttydisc_rint
	jmp	LBB0_2
LBB0_3:
	movl	(%rbx), %edi
	callq	_ttydisc_rint_done
	movl	(%rbx), %edi
	callq	_tty_unlock
	movq	_polltime@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_riscv_callout@GOTPCREL(%rip), %rdi
	leaq	_riscv_timeout(%rip), %rdx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_callout_reset                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tp,4,2                         ## @tp
	.comm	_riscv_callout,4,2              ## @riscv_callout
	.comm	_polltime,4,2                   ## @polltime
	.no_dead_strip	_riscv_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function riscv_timeout
_riscv_timeout:                         ; @riscv_timeout
	.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	x19, _tp@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tp@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_tty_lock
	mov	x0, #0
	bl	_riscv_cngetc
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x1, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	w2, #0
	bl	_ttydisc_rint
	mov	x0, #0
	bl	_riscv_cngetc
	mov	x1, x0
	cmn	w0, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w0, [x19]
	bl	_ttydisc_rint_done
	ldr	w0, [x19]
	bl	_tty_unlock
Lloh2:
	adrp	x8, _polltime@GOTPAGE
Lloh3:
	ldr	x8, [x8, _polltime@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, _riscv_callout@GOTPAGE
Lloh6:
	ldr	x0, [x0, _riscv_callout@GOTPAGEOFF]
Lloh7:
	adrp	x2, _riscv_timeout@PAGE
Lloh8:
	add	x2, x2, _riscv_timeout@PAGEOFF
	mov	x3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_callout_reset
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_tp,4,2                         ; @tp
	.comm	_riscv_callout,4,2              ; @riscv_callout
	.comm	_polltime,4,2                   ; @polltime
	.no_dead_strip	_riscv_timeout
.subsections_via_symbols
