	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rn42_gets                      ## -- Begin function rn42_gets
	.p2align	4, 0x90
_rn42_gets:                             ## @rn42_gets
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_timer_read
	movq	%rax, %rbx
	leaq	_rn42_gets.s(%rip), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_timer_elapsed
	cmpq	%r15, %rax
	jge	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_rn42_getc
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ecx
	shll	$24, %ecx
	cmpl	$218103808, %ecx                ## imm = 0xD000000
	je	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$167772160, %ecx                ## imm = 0xA000000
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %rcx
	incl	%r12d
	movb	%al, (%rcx,%r14)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$23, %r12d
	jl	LBB0_1
LBB0_7:
	movslq	%r12d, %rax
	movb	$0, (%rax,%r14)
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_rn42_gets.s,24,4 ## @rn42_gets.s
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rn42_gets                      ; -- Begin function rn42_gets
	.p2align	2
_rn42_gets:                             ; @rn42_gets
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_timer_read
	mov	x21, x0
	mov	w22, #0
	mov	w23, #218103808
	mov	w24, #167772160
Lloh0:
	adrp	x19, _rn42_gets.s@PAGE
Lloh1:
	add	x19, x19, _rn42_gets.s@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_timer_elapsed
	cmp	x0, x20
	b.ge	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_rn42_getc
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	w8, w0, #24
	cmp	w8, w23
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, w24
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	strb	w0, [x19, w22, sxtw]
	add	w22, w22, #1
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w22, #23
	b.lt	LBB0_1
LBB0_7:
	strb	wzr, [x19, w22, sxtw]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_rn42_gets.s,24,0 ; @rn42_gets.s
.subsections_via_symbols
