	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poll_uart6850
_poll_uart6850:                         ## @poll_uart6850
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_uart6850_opened@GOTPCREL(%rip), %rax
	movq	_OPEN_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	xorl	%eax, %eax
	callq	_input_avail
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_uart6850_input_loop
LBB0_3:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	_uart6850_timer@GOTPCREL(%rip), %rdi
	movq	%rax, (%rdi)
	callq	_add_timer
	movq	_lock@GOTPCREL(%rip), %rdi
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uart6850_opened,4,2            ## @uart6850_opened
	.comm	_OPEN_READ,4,2                  ## @OPEN_READ
	.comm	_lock,4,2                       ## @lock
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_uart6850_timer,8,3             ## @uart6850_timer
	.no_dead_strip	_poll_uart6850
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poll_uart6850
_poll_uart6850:                         ; @poll_uart6850
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _uart6850_opened@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uart6850_opened@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _OPEN_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPEN_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x0, _lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	bl	_input_avail
	cbz	x0, LBB0_3
; %bb.2:
	bl	_uart6850_input_loop
LBB0_3:
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x8, x8, #1
Lloh11:
	adrp	x0, _uart6850_timer@GOTPAGE
Lloh12:
	ldr	x0, [x0, _uart6850_timer@GOTPAGEOFF]
	str	x8, [x0]
	bl	_add_timer
Lloh13:
	adrp	x0, _lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_uart6850_opened,4,2            ; @uart6850_opened
	.comm	_OPEN_READ,4,2                  ; @OPEN_READ
	.comm	_lock,4,2                       ; @lock
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_uart6850_timer,8,3             ; @uart6850_timer
	.no_dead_strip	_poll_uart6850
.subsections_via_symbols
