	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxser_change_speed
_mxser_change_speed:                    ## @mxser_change_speed
	.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	24(%rdi), %rbx
	cmpq	$0, 32(%rbx)
	je	LBB0_59
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movl	(%rax), %r15d
	movq	_mxser_set_baud_method@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_tty_get_baud_rate
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mxser_set_baud
LBB0_3:
	movq	_CSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movl	$131, %ecx
	subl	%eax, %ecx
	addl	$-128, %eax
	xorl	%edx, %edx
	cmpl	$3, %eax
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	cmovael	%edx, %ecx
	movq	_CSTOPB@GOTPCREL(%rip), %rax
	movl	%ecx, %r12d
	orl	$4, %r12d
	testl	%r15d, (%rax)
	cmovel	%ecx, %r12d
	movq	_PARENB@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%r15d, %r13d
	je	LBB0_5
## %bb.4:
	movq	_UART_LCR_PARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_5:
	movq	_PARODD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_UART_LCR_EPAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_7:
	movq	_CMSPAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r15d, %edx
	je	LBB0_9
## %bb.8:
	movq	_UART_LCR_SPAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_9:
	movq	(%rbx), %rax
	movq	_PORT_8250@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_11
## %bb.10:
	movq	_PORT_16450@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.14:
	movq	_UART_FCR_ENABLE_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	40(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.15:
	movq	_MOXA_MUST_FCR_GDA_MODE_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movq	40(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.13:
	movq	_UART_FCR_ENABLE_FIFO@GOTPCREL(%rip), %rax
	movq	_MOXA_MUST_FCR_GDA_MODE_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_mxser_set_must_fifo_value
	jmp	LBB0_25
LBB0_17:
	movl	8(%rbx), %eax
	cmpl	$8, %eax
	je	LBB0_22
## %bb.18:
	cmpl	$4, %eax
	je	LBB0_21
## %bb.19:
	cmpl	$1, %eax
	jne	LBB0_23
## %bb.20:
	movq	_UART_FCR_TRIGGER_1@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_12:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_25
LBB0_22:
	movq	_UART_FCR_TRIGGER_8@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_21:
	movq	_UART_FCR_TRIGGER_4@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_23:
	movq	_UART_FCR_TRIGGER_14@GOTPCREL(%rip), %rax
LBB0_24:
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_25:
	movq	_UART_IER_MSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %ecx
	notl	%ecx
	movl	12(%rbx), %esi
	movl	16(%rbx), %eax
	andl	%esi, %ecx
	movl	%ecx, 12(%rbx)
	movq	_UART_MCR_AFE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edi
	notl	%edi
	andl	%eax, %edi
	movl	%edi, 16(%rbx)
	movq	_CRTSCTS@GOTPCREL(%rip), %r8
	movq	_ASYNC_CTS_FLOW@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%r15d, (%r8)
	je	LBB0_39
## %bb.26:
	orl	%edi, 48(%rbx)
	orl	%edx, %esi
	movl	%esi, 12(%rbx)
	movq	(%rbx), %rdx
	movq	_PORT_16550A@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_28
## %bb.27:
	movq	40(%rbx), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_29
LBB0_28:
	orl	%ecx, %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_40
LBB0_39:
	notl	%edi
	andl	%edi, 48(%rbx)
LBB0_40:
	movl	16(%rbx), %edi
	movq	_UART_MCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_outb
	movq	_CLOCAL@GOTPCREL(%rip), %rcx
	movq	_ASYNC_CHECK_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, (%rcx)
	je	LBB0_42
## %bb.41:
	notl	%eax
	andl	%eax, 48(%rbx)
	movl	12(%rbx), %edi
	jmp	LBB0_43
LBB0_42:
	orl	%eax, 48(%rbx)
	movl	12(%rbx), %edi
	movq	_UART_IER_MSI@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, 12(%rbx)
LBB0_43:
	movq	_UART_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_outb
	movq	_UART_LSR_OE@GOTPCREL(%rip), %r15
	movq	_UART_LSR_THRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r15), %eax
	movq	_UART_LSR_DR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 20(%rbx)
	movq	%r14, %rdi
	callq	_I_INPCK
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:
	movq	_UART_LSR_FE@GOTPCREL(%rip), %rax
	movq	_UART_LSR_PE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 20(%rbx)
LBB0_45:
	orl	%r12d, %r13d
	movq	%r14, %rdi
	callq	_I_BRKINT
	testq	%rax, %rax
	jne	LBB0_47
## %bb.46:
	movq	%r14, %rdi
	callq	_I_PARMRK
	testq	%rax, %rax
	je	LBB0_48
LBB0_47:
	movq	_UART_LSR_BI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
LBB0_48:
	orl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	movl	$0, 24(%rbx)
	movq	%r14, %rdi
	callq	_I_IGNBRK
	testq	%rax, %rax
	je	LBB0_51
## %bb.49:
	movq	_UART_LSR_BI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
	orl	%eax, 20(%rbx)
	movq	%r14, %rdi
	callq	_I_IGNPAR
	testq	%rax, %rax
	je	LBB0_51
## %bb.50:
	movq	_UART_LSR_PE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r15), %eax
	movq	_UART_LSR_FE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, 24(%rbx)
	orl	%eax, 20(%rbx)
LBB0_51:
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	orl	%r13d, %r15d
	movq	40(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_58
## %bb.52:
	movq	32(%rbx), %r13
	movq	%r14, %rdi
	callq	_START_CHAR
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mxser_set_must_xon1_value
	movq	32(%rbx), %r13
	movq	%r14, %rdi
	callq	_STOP_CHAR
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mxser_set_must_xoff1_value
	movq	%r14, %rdi
	callq	_I_IXON
	movq	32(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_54
## %bb.53:
	callq	_mxser_enable_must_rx_software_flow_control
	jmp	LBB0_55
LBB0_54:
	callq	_mxser_disable_must_rx_software_flow_control
LBB0_55:
	movq	%r14, %rdi
	callq	_I_IXOFF
	movq	32(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_57
## %bb.56:
	callq	_mxser_enable_must_tx_software_flow_control
	jmp	LBB0_58
LBB0_57:
	callq	_mxser_disable_must_tx_software_flow_control
LBB0_58:
	movq	_UART_FCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_outb
	movq	_UART_LCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	movl	%r15d, %edi
	callq	_outb
LBB0_59:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_UART_MSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%rbx), %rdi
	callq	_inb
	movq	_UART_MSR_CTS@GOTPCREL(%rip), %rcx
	andb	(%rcx), %al
	cmpl	$0, 8(%r14)
	je	LBB0_35
## %bb.30:
	testb	%al, %al
	je	LBB0_40
## %bb.31:
	movl	$0, 8(%r14)
	movq	(%rbx), %rax
	movq	_PORT_16550A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_34
## %bb.32:
	movq	40(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_34
## %bb.33:
	movq	_UART_IER_THRI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	12(%rbx), %edi
	movq	_UART_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_outb
	movl	12(%rbx), %edi
	movq	_UART_IER_THRI@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, 12(%rbx)
	movq	_UART_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_outb
LBB0_34:
	movq	%r14, %rdi
	callq	_tty_wakeup
	jmp	LBB0_40
LBB0_35:
	testb	%al, %al
	jne	LBB0_40
## %bb.36:
	movl	$1, 8(%r14)
	movq	(%rbx), %rax
	movq	_PORT_16550A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_40
## %bb.37:
	movq	40(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_40
## %bb.38:
	movq	_UART_IER_THRI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	12(%rbx), %edi
	movl	%edi, 12(%rbx)
	movq	_UART_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_outb
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_mxser_set_baud_method,8,3      ## @mxser_set_baud_method
	.comm	_CSIZE,4,2                      ## @CSIZE
	.comm	_CSTOPB,4,2                     ## @CSTOPB
	.comm	_PARENB,4,2                     ## @PARENB
	.comm	_UART_LCR_PARITY,4,2            ## @UART_LCR_PARITY
	.comm	_PARODD,4,2                     ## @PARODD
	.comm	_UART_LCR_EPAR,4,2              ## @UART_LCR_EPAR
	.comm	_CMSPAR,4,2                     ## @CMSPAR
	.comm	_UART_LCR_SPAR,4,2              ## @UART_LCR_SPAR
	.comm	_PORT_8250,8,3                  ## @PORT_8250
	.comm	_PORT_16450,8,3                 ## @PORT_16450
	.comm	_UART_FCR_ENABLE_FIFO,4,2       ## @UART_FCR_ENABLE_FIFO
	.comm	_MOXA_MUST_FCR_GDA_MODE_ENABLE,4,2 ## @MOXA_MUST_FCR_GDA_MODE_ENABLE
	.comm	_UART_FCR_TRIGGER_1,4,2         ## @UART_FCR_TRIGGER_1
	.comm	_UART_FCR_TRIGGER_4,4,2         ## @UART_FCR_TRIGGER_4
	.comm	_UART_FCR_TRIGGER_8,4,2         ## @UART_FCR_TRIGGER_8
	.comm	_UART_FCR_TRIGGER_14,4,2        ## @UART_FCR_TRIGGER_14
	.comm	_UART_IER_MSI,4,2               ## @UART_IER_MSI
	.comm	_UART_MCR_AFE,4,2               ## @UART_MCR_AFE
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.comm	_ASYNC_CTS_FLOW,4,2             ## @ASYNC_CTS_FLOW
	.comm	_PORT_16550A,8,3                ## @PORT_16550A
	.comm	_UART_MSR,8,3                   ## @UART_MSR
	.comm	_UART_MSR_CTS,1,0               ## @UART_MSR_CTS
	.comm	_UART_IER_THRI,4,2              ## @UART_IER_THRI
	.comm	_UART_IER,8,3                   ## @UART_IER
	.comm	_UART_MCR,8,3                   ## @UART_MCR
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.comm	_ASYNC_CHECK_CD,4,2             ## @ASYNC_CHECK_CD
	.comm	_UART_LSR_OE,4,2                ## @UART_LSR_OE
	.comm	_UART_LSR_THRE,4,2              ## @UART_LSR_THRE
	.comm	_UART_LSR_DR,4,2                ## @UART_LSR_DR
	.comm	_UART_LSR_FE,4,2                ## @UART_LSR_FE
	.comm	_UART_LSR_PE,4,2                ## @UART_LSR_PE
	.comm	_UART_LSR_BI,4,2                ## @UART_LSR_BI
	.comm	_UART_FCR,8,3                   ## @UART_FCR
	.comm	_UART_LCR,8,3                   ## @UART_LCR
	.no_dead_strip	_mxser_change_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxser_change_speed
_mxser_change_speed:                    ; @mxser_change_speed
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x19, [x0, #24]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_42
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	w24, [x8]
Lloh0:
	adrp	x8, _mxser_set_baud_method@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mxser_set_baud_method@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_tty_get_baud_rate
	mov	x1, x0
	mov	x0, x20
	bl	_mxser_set_baud
LBB0_3:
Lloh3:
	adrp	x8, _CSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w24
	sub	w9, w8, #128
	mov	w10, #131
	sub	w8, w10, w8
	cmp	w9, #3
	csel	w8, w8, wzr, lo
Lloh6:
	adrp	x9, _CSTOPB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CSTOPB@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w10, w8, #0x4
	tst	w9, w24
	csel	w25, w8, w10, eq
Lloh9:
	adrp	x8, _PARENB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PARENB@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _UART_LCR_PARITY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UART_LCR_PARITY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w8, w24
	csel	w26, wzr, w9, eq
Lloh15:
	adrp	x8, _PARODD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PARODD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _UART_LCR_EPAR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _UART_LCR_EPAR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w8, w24
Lloh21:
	adrp	x8, _CMSPAR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CMSPAR@GOTPAGEOFF]
	csel	w23, w9, wzr, eq
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _UART_LCR_SPAR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _UART_LCR_SPAR@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w8, w24
	csel	w22, wzr, w9, eq
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _PORT_8250@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PORT_8250@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.4:
Lloh30:
	adrp	x9, _PORT_16450@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PORT_16450@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.5:
Lloh33:
	adrp	x8, _UART_FCR_ENABLE_FIFO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _UART_FCR_ENABLE_FIFO@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	x9, [x19, #40]
	ldr	x9, [x9]
	cbnz	x9, LBB0_12
; %bb.6:
	ldr	w9, [x19, #8]
	cmp	w9, #8
	b.eq	LBB0_14
; %bb.7:
	cmp	w9, #4
	b.eq	LBB0_15
; %bb.8:
	cmp	w9, #1
	b.ne	LBB0_16
; %bb.9:
Lloh36:
	adrp	x9, _UART_FCR_TRIGGER_1@GOTPAGE
Lloh37:
	ldr	x9, [x9, _UART_FCR_TRIGGER_1@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.11:
Lloh38:
	adrp	x8, _UART_FCR_ENABLE_FIFO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _UART_FCR_ENABLE_FIFO@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
LBB0_12:
Lloh41:
	adrp	x9, _MOXA_MUST_FCR_GDA_MODE_ENABLE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _MOXA_MUST_FCR_GDA_MODE_ENABLE@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w28, w9, w8
	mov	x0, x19
	bl	_mxser_set_must_fifo_value
	b	LBB0_18
LBB0_13:
	mov	w28, #0
	b	LBB0_18
LBB0_14:
Lloh44:
	adrp	x9, _UART_FCR_TRIGGER_8@GOTPAGE
Lloh45:
	ldr	x9, [x9, _UART_FCR_TRIGGER_8@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh46:
	adrp	x9, _UART_FCR_TRIGGER_4@GOTPAGE
Lloh47:
	ldr	x9, [x9, _UART_FCR_TRIGGER_4@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh48:
	adrp	x9, _UART_FCR_TRIGGER_14@GOTPAGE
Lloh49:
	ldr	x9, [x9, _UART_FCR_TRIGGER_14@GOTPAGEOFF]
LBB0_17:
	ldr	w9, [x9]
	orr	w28, w9, w8
LBB0_18:
Lloh50:
	adrp	x27, _UART_IER_MSI@GOTPAGE
Lloh51:
	ldr	x27, [x27, _UART_IER_MSI@GOTPAGEOFF]
	ldr	w10, [x27]
	ldp	w11, w8, [x19, #12]
	bic	w12, w11, w10
Lloh52:
	adrp	x9, _UART_MCR_AFE@GOTPAGE
Lloh53:
	ldr	x9, [x9, _UART_MCR_AFE@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	bic	w13, w8, w9
	stp	w12, w13, [x19, #12]
Lloh55:
	adrp	x12, _CRTSCTS@GOTPAGE
Lloh56:
	ldr	x12, [x12, _CRTSCTS@GOTPAGEOFF]
Lloh57:
	ldr	w13, [x12]
Lloh58:
	adrp	x12, _ASYNC_CTS_FLOW@GOTPAGE
Lloh59:
	ldr	x12, [x12, _ASYNC_CTS_FLOW@GOTPAGEOFF]
Lloh60:
	ldr	w12, [x12]
	tst	w13, w24
	b.eq	LBB0_22
; %bb.19:
	ldr	w13, [x19, #48]
	orr	w12, w13, w12
	str	w12, [x19, #48]
	orr	w10, w11, w10
	str	w10, [x19, #12]
	ldr	x10, [x19]
Lloh61:
	adrp	x21, _PORT_16550A@GOTPAGE
Lloh62:
	ldr	x21, [x21, _PORT_16550A@GOTPAGEOFF]
	ldr	x11, [x21]
	cmp	x10, x11
	b.eq	LBB0_21
; %bb.20:
	ldr	x10, [x19, #40]
	ldr	x10, [x10]
	cbz	x10, LBB0_43
LBB0_21:
	orr	w8, w8, w9
	str	w8, [x19, #16]
	b	LBB0_23
LBB0_22:
	ldr	w8, [x19, #48]
	bic	w8, w8, w12
	str	w8, [x19, #48]
LBB0_23:
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #32]
Lloh63:
	adrp	x9, _UART_MCR@GOTPAGE
Lloh64:
	ldr	x9, [x9, _UART_MCR@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
Lloh66:
	adrp	x8, _CLOCAL@GOTPAGE
Lloh67:
	ldr	x8, [x8, _CLOCAL@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x8]
Lloh69:
	adrp	x8, _ASYNC_CHECK_CD@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ASYNC_CHECK_CD@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	tst	w9, w24
	b.eq	LBB0_25
; %bb.24:
	ldr	w9, [x19, #48]
	bic	w8, w9, w8
	str	w8, [x19, #48]
	ldr	w0, [x19, #12]
	b	LBB0_26
LBB0_25:
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #48]
	ldr	w8, [x27]
	ldr	w9, [x19, #12]
	orr	w0, w9, w8
	str	w0, [x19, #12]
LBB0_26:
	orr	w21, w26, w25
	ldr	x8, [x19, #32]
Lloh72:
	adrp	x9, _UART_IER@GOTPAGE
Lloh73:
	ldr	x9, [x9, _UART_IER@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
Lloh75:
	adrp	x24, _UART_LSR_OE@GOTPAGE
Lloh76:
	ldr	x24, [x24, _UART_LSR_OE@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh77:
	adrp	x9, _UART_LSR_THRE@GOTPAGE
Lloh78:
	ldr	x9, [x9, _UART_LSR_THRE@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh80:
	adrp	x9, _UART_LSR_DR@GOTPAGE
Lloh81:
	ldr	x9, [x9, _UART_LSR_DR@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #20]
	mov	x0, x20
	bl	_I_INPCK
Lloh83:
	adrp	x26, _UART_LSR_PE@GOTPAGE
Lloh84:
	ldr	x26, [x26, _UART_LSR_PE@GOTPAGEOFF]
Lloh85:
	adrp	x25, _UART_LSR_FE@GOTPAGE
Lloh86:
	ldr	x25, [x25, _UART_LSR_FE@GOTPAGEOFF]
	cbz	x0, LBB0_28
; %bb.27:
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x19, #20]
	orr	w8, w8, w9
	str	w8, [x19, #20]
LBB0_28:
	orr	w23, w21, w23
	mov	x0, x20
	bl	_I_BRKINT
Lloh87:
	adrp	x21, _UART_LSR_BI@GOTPAGE
Lloh88:
	ldr	x21, [x21, _UART_LSR_BI@GOTPAGEOFF]
	cbnz	x0, LBB0_30
; %bb.29:
	mov	x0, x20
	bl	_I_PARMRK
	cbz	x0, LBB0_31
LBB0_30:
	ldr	w8, [x21]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_31:
	orr	w22, w23, w22
	str	wzr, [x19, #24]
	mov	x0, x20
	bl	_I_IGNBRK
	cbz	x0, LBB0_34
; %bb.32:
	ldur	d0, [x19, #20]
	ld1r.2s	{ v1 }, [x21]
	orr.8b	v0, v0, v1
	stur	d0, [x19, #20]
	mov	x0, x20
	bl	_I_IGNPAR
	cbz	x0, LBB0_34
; %bb.33:
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldur	d0, [x19, #20]
	dup.2s	v1, w8
	orr.8b	v0, v0, v1
	stur	d0, [x19, #20]
LBB0_34:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_41
; %bb.35:
	ldr	x23, [x19, #32]
	mov	x0, x20
	bl	_START_CHAR
	mov	x1, x0
	mov	x0, x23
	bl	_mxser_set_must_xon1_value
	ldr	x23, [x19, #32]
	mov	x0, x20
	bl	_STOP_CHAR
	mov	x1, x0
	mov	x0, x23
	bl	_mxser_set_must_xoff1_value
	mov	x0, x20
	bl	_I_IXON
	mov	x8, x0
	ldr	x0, [x19, #32]
	cbz	x8, LBB0_37
; %bb.36:
	bl	_mxser_enable_must_rx_software_flow_control
	b	LBB0_38
LBB0_37:
	bl	_mxser_disable_must_rx_software_flow_control
LBB0_38:
	mov	x0, x20
	bl	_I_IXOFF
	mov	x8, x0
	ldr	x0, [x19, #32]
	cbz	x8, LBB0_40
; %bb.39:
	bl	_mxser_enable_must_tx_software_flow_control
	b	LBB0_41
LBB0_40:
	bl	_mxser_disable_must_tx_software_flow_control
LBB0_41:
	ldr	x8, [x19, #32]
Lloh89:
	adrp	x9, _UART_FCR@GOTPAGE
Lloh90:
	ldr	x9, [x9, _UART_FCR@GOTPAGEOFF]
Lloh91:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x28
	bl	_outb
	ldr	x8, [x19, #32]
Lloh92:
	adrp	x9, _UART_LCR@GOTPAGE
Lloh93:
	ldr	x9, [x9, _UART_LCR@GOTPAGEOFF]
Lloh94:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_outb
LBB0_42:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_43:
	ldr	x8, [x19, #32]
Lloh95:
	adrp	x9, _UART_MSR@GOTPAGE
Lloh96:
	ldr	x9, [x9, _UART_MSR@GOTPAGEOFF]
Lloh97:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
	ldr	w9, [x20, #8]
Lloh98:
	adrp	x8, _UART_MSR_CTS@GOTPAGE
Lloh99:
	ldr	x8, [x8, _UART_MSR_CTS@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w8, w0
	cbz	w9, LBB0_49
; %bb.44:
	cbz	w8, LBB0_23
; %bb.45:
	str	wzr, [x20, #8]
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_48
; %bb.46:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	cbnz	x8, LBB0_48
; %bb.47:
Lloh100:
	adrp	x21, _UART_IER_THRI@GOTPAGE
Lloh101:
	ldr	x21, [x21, _UART_IER_THRI@GOTPAGEOFF]
	ldr	w8, [x19, #12]
	ldr	w9, [x21]
	bic	w0, w8, w9
	ldr	x8, [x19, #32]
Lloh102:
	adrp	x9, _UART_IER@GOTPAGE
Lloh103:
	ldr	x9, [x9, _UART_IER@GOTPAGEOFF]
Lloh104:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	w8, [x21]
	ldr	w9, [x19, #12]
	orr	w0, w9, w8
	str	w0, [x19, #12]
	ldr	x8, [x19, #32]
Lloh105:
	adrp	x9, _UART_IER@GOTPAGE
Lloh106:
	ldr	x9, [x9, _UART_IER@GOTPAGEOFF]
Lloh107:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
LBB0_48:
	mov	x0, x20
	bl	_tty_wakeup
	b	LBB0_23
LBB0_49:
	cbnz	w8, LBB0_23
; %bb.50:
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_23
; %bb.51:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	cbnz	x8, LBB0_23
; %bb.52:
Lloh108:
	adrp	x8, _UART_IER_THRI@GOTPAGE
Lloh109:
	ldr	x8, [x8, _UART_IER_THRI@GOTPAGEOFF]
Lloh110:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	bic	w0, w9, w8
	str	w0, [x19, #12]
	ldr	x8, [x19, #32]
Lloh111:
	adrp	x9, _UART_IER@GOTPAGE
Lloh112:
	ldr	x9, [x9, _UART_IER@GOTPAGEOFF]
Lloh113:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.cfi_endproc
                                        ; -- End function
	.comm	_mxser_set_baud_method,8,3      ; @mxser_set_baud_method
	.comm	_CSIZE,4,2                      ; @CSIZE
	.comm	_CSTOPB,4,2                     ; @CSTOPB
	.comm	_PARENB,4,2                     ; @PARENB
	.comm	_UART_LCR_PARITY,4,2            ; @UART_LCR_PARITY
	.comm	_PARODD,4,2                     ; @PARODD
	.comm	_UART_LCR_EPAR,4,2              ; @UART_LCR_EPAR
	.comm	_CMSPAR,4,2                     ; @CMSPAR
	.comm	_UART_LCR_SPAR,4,2              ; @UART_LCR_SPAR
	.comm	_PORT_8250,8,3                  ; @PORT_8250
	.comm	_PORT_16450,8,3                 ; @PORT_16450
	.comm	_UART_FCR_ENABLE_FIFO,4,2       ; @UART_FCR_ENABLE_FIFO
	.comm	_MOXA_MUST_FCR_GDA_MODE_ENABLE,4,2 ; @MOXA_MUST_FCR_GDA_MODE_ENABLE
	.comm	_UART_FCR_TRIGGER_1,4,2         ; @UART_FCR_TRIGGER_1
	.comm	_UART_FCR_TRIGGER_4,4,2         ; @UART_FCR_TRIGGER_4
	.comm	_UART_FCR_TRIGGER_8,4,2         ; @UART_FCR_TRIGGER_8
	.comm	_UART_FCR_TRIGGER_14,4,2        ; @UART_FCR_TRIGGER_14
	.comm	_UART_IER_MSI,4,2               ; @UART_IER_MSI
	.comm	_UART_MCR_AFE,4,2               ; @UART_MCR_AFE
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.comm	_ASYNC_CTS_FLOW,4,2             ; @ASYNC_CTS_FLOW
	.comm	_PORT_16550A,8,3                ; @PORT_16550A
	.comm	_UART_MSR,8,3                   ; @UART_MSR
	.comm	_UART_MSR_CTS,1,0               ; @UART_MSR_CTS
	.comm	_UART_IER_THRI,4,2              ; @UART_IER_THRI
	.comm	_UART_IER,8,3                   ; @UART_IER
	.comm	_UART_MCR,8,3                   ; @UART_MCR
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.comm	_ASYNC_CHECK_CD,4,2             ; @ASYNC_CHECK_CD
	.comm	_UART_LSR_OE,4,2                ; @UART_LSR_OE
	.comm	_UART_LSR_THRE,4,2              ; @UART_LSR_THRE
	.comm	_UART_LSR_DR,4,2                ; @UART_LSR_DR
	.comm	_UART_LSR_FE,4,2                ; @UART_LSR_FE
	.comm	_UART_LSR_PE,4,2                ; @UART_LSR_PE
	.comm	_UART_LSR_BI,4,2                ; @UART_LSR_BI
	.comm	_UART_FCR,8,3                   ; @UART_FCR
	.comm	_UART_LCR,8,3                   ; @UART_LCR
	.no_dead_strip	_mxser_change_speed
.subsections_via_symbols
