	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_poll
_rs_poll:                               ## @rs_poll
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -56(%rbp)
	movq	_timer_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	leaq	-56(%rbp), %rcx
	movq	_SYS_select_one@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_XTISS_SELECT_ONE_READ@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	xorl	%esi, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	___simc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	-41(%rbp), %r15
	movq	_TTY_NORMAL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SYS_read@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	___simc
	movzbl	-41(%rbp), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_tty_insert_flip_char
	movl	(%r14), %edi
	movq	(%r13), %rdx
	xorl	%esi, %esi
	leaq	-56(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	___simc
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_tty_flip_buffer_push
LBB0_4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_SERIAL_TIMER_VALUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	_serial_timer@GOTPCREL(%rip), %rdi
	callq	_mod_timer
	movq	_timer_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timer_lock,4,2                 ## @timer_lock
	.comm	_SYS_select_one,4,2             ## @SYS_select_one
	.comm	_XTISS_SELECT_ONE_READ,8,3      ## @XTISS_SELECT_ONE_READ
	.comm	_SYS_read,4,2                   ## @SYS_read
	.comm	_TTY_NORMAL,4,2                 ## @TTY_NORMAL
	.comm	_serial_timer,4,2               ## @serial_timer
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SERIAL_TIMER_VALUE,8,3         ## @SERIAL_TIMER_VALUE
	.no_dead_strip	_rs_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_poll
_rs_poll:                               ; @rs_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x0, _timer_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _timer_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh2:
	adrp	x20, _SYS_select_one@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SYS_select_one@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh4:
	adrp	x21, _XTISS_SELECT_ONE_READ@GOTPAGE
Lloh5:
	ldr	x21, [x21, _XTISS_SELECT_ONE_READ@GOTPAGEOFF]
	ldr	x2, [x21]
	add	x3, sp, #8
	mov	w1, #0
	mov	w4, #0
	mov	w5, #0
	bl	___simc
	cbz	x0, LBB0_4
; %bb.1:
Lloh6:
	adrp	x22, _SYS_read@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SYS_read@GOTPAGEOFF]
Lloh8:
	adrp	x23, _TTY_NORMAL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _TTY_NORMAL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	add	x2, sp, #7
	mov	w1, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	___simc
	ldrb	w1, [sp, #7]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_tty_insert_flip_char
	ldr	w0, [x20]
	ldr	x2, [x21]
	add	x3, sp, #8
	mov	w1, #0
	mov	w4, #0
	mov	w5, #0
	bl	___simc
	cbnz	x0, LBB0_2
; %bb.3:
	mov	x0, x19
	bl	_tty_flip_buffer_push
LBB0_4:
Lloh10:
	adrp	x8, _jiffies@GOTPAGE
Lloh11:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _SERIAL_TIMER_VALUE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SERIAL_TIMER_VALUE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh16:
	adrp	x0, _serial_timer@GOTPAGE
Lloh17:
	ldr	x0, [x0, _serial_timer@GOTPAGEOFF]
	bl	_mod_timer
Lloh18:
	adrp	x0, _timer_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _timer_lock@GOTPAGEOFF]
	bl	_spin_unlock
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_timer_lock,4,2                 ; @timer_lock
	.comm	_SYS_select_one,4,2             ; @SYS_select_one
	.comm	_XTISS_SELECT_ONE_READ,8,3      ; @XTISS_SELECT_ONE_READ
	.comm	_SYS_read,4,2                   ; @SYS_read
	.comm	_TTY_NORMAL,4,2                 ; @TTY_NORMAL
	.comm	_serial_timer,4,2               ; @serial_timer
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SERIAL_TIMER_VALUE,8,3         ; @SERIAL_TIMER_VALUE
	.no_dead_strip	_rs_poll
.subsections_via_symbols
