	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxser_flush_buffer
_mxser_flush_buffer:                    ## @mxser_flush_buffer
	.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, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	_UART_FCR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_inb
	movl	%eax, %r15d
	movq	_UART_FCR_CLEAR_RCVR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	%r15b, %al
	movq	_UART_FCR_CLEAR_XMIT@GOTPCREL(%rip), %rcx
	orb	(%rcx), %al
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	movsbl	%al, %edi
	callq	_outb
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	movsbl	%r15b, %edi
	callq	_outb
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_wakeup                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_FCR,8,3                   ## @UART_FCR
	.comm	_UART_FCR_CLEAR_RCVR,1,0        ## @UART_FCR_CLEAR_RCVR
	.comm	_UART_FCR_CLEAR_XMIT,1,0        ## @UART_FCR_CLEAR_XMIT
	.no_dead_strip	_mxser_flush_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxser_flush_buffer
_mxser_flush_buffer:                    ; @mxser_flush_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_spin_lock_irqsave
	stp	xzr, xzr, [x20, #24]
	str	xzr, [x20, #16]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x22, _UART_FCR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _UART_FCR@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_inb
	mov	x21, x0
Lloh2:
	adrp	x8, _UART_FCR_CLEAR_RCVR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UART_FCR_CLEAR_RCVR@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w0
Lloh4:
	adrp	x9, _UART_FCR_CLEAR_XMIT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _UART_FCR_CLEAR_XMIT@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x20, #8]
	ldr	x10, [x22]
	add	x1, x10, x9
	sxtb	w0, w8
	bl	_outb
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x21
	bl	_outb
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tty_wakeup
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_FCR,8,3                   ; @UART_FCR
	.comm	_UART_FCR_CLEAR_RCVR,1,0        ; @UART_FCR_CLEAR_RCVR
	.comm	_UART_FCR_CLEAR_XMIT,1,0        ; @UART_FCR_CLEAR_XMIT
	.no_dead_strip	_mxser_flush_buffer
.subsections_via_symbols
