	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_r_port
_configure_r_port:                      ## @configure_r_port
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %rax
	leaq	32(%rsi), %rbx
	movl	(%rax), %r12d
	movq	_CSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_CS8@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_sSetData8
	movl	$10, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_sSetData7
	movl	$9, %r14d
LBB0_3:
	movq	_CSTOPB@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_sSetStop2
	incl	%r14d
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_sSetStop1
LBB0_6:
	movq	_PARENB@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_sEnParity
	incl	%r14d
	movq	_PARODD@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_sSetOddParity
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_sDisParity
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	callq	_sSetEvenParity
LBB0_11:
	movq	%r15, %rdi
	callq	_tty_get_baud_rate
	testl	%eax, %eax
	movl	$9600, %ebx                     ## imm = 0x2580
	cmovnel	%eax, %ebx
	movq	_rp_baud_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ebx, %eax
	sarl	%eax
	addl	%ecx, %eax
	cltd
	idivl	%ebx
	movl	%eax, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:
	movl	%esi, %eax
	addl	$-8193, %eax                    ## imm = 0xDFFF
	cmpl	$-8193, %eax                    ## imm = 0xDFFF
	ja	LBB0_14
## %bb.13:
	callq	_tty_termios_baud_rate
	testl	%eax, %eax
	movl	$9600, %ebx                     ## imm = 0x2580
	cmovnel	%eax, %ebx
	movq	_rp_baud_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%ebx
	movl	%eax, %esi
LBB0_14:
	decl	%esi
	cmpl	$8192, %esi                     ## imm = 0x2000
	jb	LBB0_16
## %bb.15:
	movslq	%ecx, %rax
	imulq	$458129845, %rax, %rax          ## imm = 0x1B4E81B5
	movq	%rax, %rcx
	sarq	$42, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %esi
	decl	%esi
	movl	$9600, %ebx                     ## imm = 0x2580
LBB0_16:
	movl	%ebx, %eax
	cltd
	idivl	%r14d
	movl	%eax, 8(%r13)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_sSetBaud
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_tty_encode_baud_rate
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	movq	_DELTA_CTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r12d, (%rcx)
	je	LBB0_18
## %bb.17:
	orl	%eax, 44(%r13)
	movq	%r14, %rdi
	callq	_sEnCTSFlowCtl
	jmp	LBB0_19
LBB0_18:
	notl	%eax
	andl	%eax, 44(%r13)
	movq	%r14, %rdi
	callq	_sDisCTSFlowCtl
LBB0_19:
	movq	_CLOCAL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_21
## %bb.20:
	movq	_DELTA_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 44(%r13)
	jmp	LBB0_22
LBB0_21:
	leaq	40(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sGetChanStatus
	movq	_CD_ACT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 12(%r13)
	movq	_DELTA_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 44(%r13)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_22:
	movq	_STMRCVROVRH@GOTPCREL(%rip), %rbx
	movl	$255, %eax
	orl	(%rbx), %eax
	movl	%eax, 16(%r13)
	movq	%r15, %rdi
	callq	_I_INPCK
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	_STMFRAMEH@GOTPCREL(%rip), %rax
	movq	_STMPARITYH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 16(%r13)
LBB0_24:
	movq	%r15, %rdi
	callq	_I_BRKINT
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	movq	%r15, %rdi
	callq	_I_PARMRK
	testq	%rax, %rax
	je	LBB0_27
LBB0_26:
	movq	_STMBREAKH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r13)
LBB0_27:
	movl	$0, 20(%r13)
	movq	%r15, %rdi
	callq	_I_IGNPAR
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	_STMFRAMEH@GOTPCREL(%rip), %rax
	movq	_STMPARITYH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 20(%r13)
LBB0_29:
	movq	%r15, %rdi
	callq	_I_IGNBRK
	testq	%rax, %rax
	je	LBB0_32
## %bb.30:
	movq	_STMBREAKH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r13)
	movq	%r15, %rdi
	callq	_I_IGNPAR
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movl	(%rbx), %eax
	orl	%eax, 20(%r13)
LBB0_32:
	movl	24(%r13), %eax
	movq	_ROCKET_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	%eax, %r15d
	movq	_ROCKET_RTS_TOGGLE@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	jne	LBB0_34
## %bb.33:
	cmpl	$128, %r15d
	je	LBB0_34
## %bb.35:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_sDisRTSToggle
	jmp	LBB0_36
LBB0_34:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_sEnRTSToggle
LBB0_36:
	movq	%rbx, %rdi
	callq	_sSetRTS
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_ROCKET_TYPE_PC104@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_45
## %bb.37:
	cmpl	$128, %r15d
	je	LBB0_38
## %bb.39:
	cmpl	$129, %r15d
	jne	LBB0_41
## %bb.40:
	movq	_InterfaceModeRS422@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_45:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	movq	_InterfaceModeRS485@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_41:
	movl	(%r14), %eax
	testl	%eax, 24(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_42
## %bb.43:
	movq	_InterfaceModeRS232@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_42:
	movq	_InterfaceModeRS232T@GOTPCREL(%rip), %rax
LBB0_44:
	movl	(%rax), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sSetInterfaceMode              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CSIZE,4,2                      ## @CSIZE
	.comm	_CS8,4,2                        ## @CS8
	.comm	_CSTOPB,4,2                     ## @CSTOPB
	.comm	_PARENB,4,2                     ## @PARENB
	.comm	_PARODD,4,2                     ## @PARODD
	.comm	_rp_baud_base,8,3               ## @rp_baud_base
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.comm	_DELTA_CTS,4,2                  ## @DELTA_CTS
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.comm	_DELTA_CD,4,2                   ## @DELTA_CD
	.comm	_CD_ACT,4,2                     ## @CD_ACT
	.comm	_STMRCVROVRH,4,2                ## @STMRCVROVRH
	.comm	_STMFRAMEH,4,2                  ## @STMFRAMEH
	.comm	_STMPARITYH,4,2                 ## @STMPARITYH
	.comm	_STMBREAKH,4,2                  ## @STMBREAKH
	.comm	_ROCKET_MODE_MASK,4,2           ## @ROCKET_MODE_MASK
	.comm	_ROCKET_RTS_TOGGLE,4,2          ## @ROCKET_RTS_TOGGLE
	.comm	_ROCKET_TYPE_PC104,8,3          ## @ROCKET_TYPE_PC104
	.comm	_InterfaceModeRS485,4,2         ## @InterfaceModeRS485
	.comm	_InterfaceModeRS422,4,2         ## @InterfaceModeRS422
	.comm	_InterfaceModeRS232T,4,2        ## @InterfaceModeRS232T
	.comm	_InterfaceModeRS232,4,2         ## @InterfaceModeRS232
	.no_dead_strip	_configure_r_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_r_port
_configure_r_port:                      ; @configure_r_port
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	add	x19, x1, #32
	ldr	w23, [x8]
Lloh0:
	adrp	x8, _CSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh3:
	adrp	x9, _CS8@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CS8@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	bl	_sSetData8
	mov	w24, #10
	b	LBB0_3
LBB0_2:
	bl	_sSetData7
	mov	w24, #9
LBB0_3:
Lloh6:
	adrp	x8, _CSTOPB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSTOPB@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x0, x19
	tst	w8, w23
	b.eq	LBB0_5
; %bb.4:
	bl	_sSetStop2
	add	w24, w24, #1
	b	LBB0_6
LBB0_5:
	bl	_sSetStop1
LBB0_6:
Lloh9:
	adrp	x8, _PARENB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PARENB@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x0, x19
	tst	w8, w23
	b.eq	LBB0_9
; %bb.7:
	bl	_sEnParity
	add	w24, w24, #1
Lloh12:
	adrp	x8, _PARODD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PARODD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	x0, x19
	tst	w8, w23
	b.eq	LBB0_10
; %bb.8:
	bl	_sSetOddParity
	b	LBB0_11
LBB0_9:
	bl	_sDisParity
	b	LBB0_11
LBB0_10:
	bl	_sSetEvenParity
LBB0_11:
	mov	x0, x21
	bl	_tty_get_baud_rate
	mov	w8, #9600
	cmp	w0, #0
	csel	w8, w8, w0, eq
Lloh15:
	adrp	x25, _rp_baud_base@GOTPAGE
Lloh16:
	ldr	x25, [x25, _rp_baud_base@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	x10, [x20]
	ldr	w9, [x9, x10, lsl #2]
	add	w10, w9, w8, asr #1
	sdiv	w10, w10, w8
	cbz	x22, LBB0_14
; %bb.12:
	mov	w11, #-8193
	add	w12, w10, w11
	cmp	w12, w11
	b.hi	LBB0_14
; %bb.13:
	mov	x0, x22
	bl	_tty_termios_baud_rate
	mov	w8, #9600
	cmp	w0, #0
	csel	w8, w8, w0, eq
	ldr	x9, [x25]
	ldr	x10, [x20]
	ldr	w9, [x9, x10, lsl #2]
	sdiv	w10, w9, w8
LBB0_14:
	sub	w10, w10, #1
	mov	w11, #33205
	movk	w11, #6990, lsl #16
	smull	x9, w9, w11
	lsr	x11, x9, #63
	asr	x9, x9, #42
	add	w9, w9, w11
	sub	w9, w9, #1
	mov	w11, #9600
	cmp	w10, #2, lsl #12                ; =8192
	csel	w22, w8, w11, lo
	csel	w1, w10, w9, lo
	sdiv	w8, w22, w24
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_sSetBaud
	mov	x0, x21
	mov	x1, x22
	mov	x2, x22
	bl	_tty_encode_baud_rate
Lloh17:
	adrp	x8, _CRTSCTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CRTSCTS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x8]
Lloh20:
	adrp	x8, _DELTA_CTS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DELTA_CTS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w9, w23
	b.eq	LBB0_16
; %bb.15:
	ldr	w9, [x20, #44]
	orr	w8, w9, w8
	str	w8, [x20, #44]
	mov	x0, x19
	bl	_sEnCTSFlowCtl
	b	LBB0_17
LBB0_16:
	ldr	w9, [x20, #44]
	bic	w8, w9, w8
	str	w8, [x20, #44]
	mov	x0, x19
	bl	_sDisCTSFlowCtl
LBB0_17:
Lloh23:
	adrp	x8, _CLOCAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CLOCAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_19
; %bb.18:
Lloh26:
	adrp	x8, _DELTA_CD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DELTA_CD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x20, #44]
	bic	w8, w9, w8
	str	w8, [x20, #44]
	b	LBB0_20
LBB0_19:
	add	x22, x20, #40
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_sGetChanStatus
Lloh29:
	adrp	x8, _CD_ACT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CD_ACT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	str	w8, [x20, #12]
Lloh32:
	adrp	x8, _DELTA_CD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DELTA_CD@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x20, #44]
	orr	w8, w9, w8
	str	w8, [x20, #44]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_20:
Lloh35:
	adrp	x22, _STMRCVROVRH@GOTPAGE
Lloh36:
	ldr	x22, [x22, _STMRCVROVRH@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w8, w8, #0xff
	str	w8, [x20, #16]
	mov	x0, x21
	bl	_I_INPCK
Lloh37:
	adrp	x23, _STMFRAMEH@GOTPAGE
Lloh38:
	ldr	x23, [x23, _STMFRAMEH@GOTPAGEOFF]
Lloh39:
	adrp	x24, _STMPARITYH@GOTPAGE
Lloh40:
	ldr	x24, [x24, _STMPARITYH@GOTPAGEOFF]
	cbz	x0, LBB0_22
; %bb.21:
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x20, #16]
	orr	w8, w8, w9
	str	w8, [x20, #16]
LBB0_22:
	mov	x0, x21
	bl	_I_BRKINT
Lloh41:
	adrp	x25, _STMBREAKH@GOTPAGE
Lloh42:
	ldr	x25, [x25, _STMBREAKH@GOTPAGEOFF]
	cbnz	x0, LBB0_24
; %bb.23:
	mov	x0, x21
	bl	_I_PARMRK
	cbz	x0, LBB0_25
LBB0_24:
	ldr	w8, [x25]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
LBB0_25:
	str	wzr, [x20, #20]
	mov	x0, x21
	bl	_I_IGNPAR
	cbz	x0, LBB0_27
; %bb.26:
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x20, #20]
	orr	w8, w8, w9
	str	w8, [x20, #20]
LBB0_27:
	mov	x0, x21
	bl	_I_IGNBRK
	cbz	x0, LBB0_30
; %bb.28:
	ldr	w8, [x25]
	ldr	w9, [x20, #20]
	orr	w8, w9, w8
	str	w8, [x20, #20]
	mov	x0, x21
	bl	_I_IGNPAR
	cbz	x0, LBB0_30
; %bb.29:
	ldr	w8, [x22]
	ldr	w9, [x20, #20]
	orr	w8, w9, w8
	str	w8, [x20, #20]
LBB0_30:
	ldr	w8, [x20, #24]
Lloh43:
	adrp	x9, _ROCKET_MODE_MASK@GOTPAGE
Lloh44:
	ldr	x9, [x9, _ROCKET_MODE_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	and	w22, w9, w8
Lloh46:
	adrp	x21, _ROCKET_RTS_TOGGLE@GOTPAGE
Lloh47:
	ldr	x21, [x21, _ROCKET_RTS_TOGGLE@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_33
; %bb.31:
	cmp	w22, #128
	b.eq	LBB0_33
; %bb.32:
	mov	x0, x19
	bl	_sDisRTSToggle
	b	LBB0_34
LBB0_33:
	mov	x0, x19
	bl	_sEnRTSToggle
LBB0_34:
	mov	x0, x19
	bl	_sSetRTS
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh48:
	adrp	x9, _ROCKET_TYPE_PC104@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ROCKET_TYPE_PC104@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.35:
	cmp	w22, #128
	b.eq	LBB0_39
; %bb.36:
	cmp	w22, #129
	b.ne	LBB0_40
; %bb.37:
Lloh51:
	adrp	x8, _InterfaceModeRS422@GOTPAGE
Lloh52:
	ldr	x8, [x8, _InterfaceModeRS422@GOTPAGEOFF]
	b	LBB0_41
LBB0_38:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_39:
Lloh53:
	adrp	x8, _InterfaceModeRS485@GOTPAGE
Lloh54:
	ldr	x8, [x8, _InterfaceModeRS485@GOTPAGEOFF]
	b	LBB0_41
LBB0_40:
	ldr	w8, [x20, #24]
	ldr	w9, [x21]
Lloh55:
	adrp	x10, _InterfaceModeRS232T@GOTPAGE
Lloh56:
	ldr	x10, [x10, _InterfaceModeRS232T@GOTPAGEOFF]
Lloh57:
	adrp	x11, _InterfaceModeRS232@GOTPAGE
Lloh58:
	ldr	x11, [x11, _InterfaceModeRS232@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
LBB0_41:
	ldr	w1, [x8]
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_sSetInterfaceMode
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_CSIZE,4,2                      ; @CSIZE
	.comm	_CS8,4,2                        ; @CS8
	.comm	_CSTOPB,4,2                     ; @CSTOPB
	.comm	_PARENB,4,2                     ; @PARENB
	.comm	_PARODD,4,2                     ; @PARODD
	.comm	_rp_baud_base,8,3               ; @rp_baud_base
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.comm	_DELTA_CTS,4,2                  ; @DELTA_CTS
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.comm	_DELTA_CD,4,2                   ; @DELTA_CD
	.comm	_CD_ACT,4,2                     ; @CD_ACT
	.comm	_STMRCVROVRH,4,2                ; @STMRCVROVRH
	.comm	_STMFRAMEH,4,2                  ; @STMFRAMEH
	.comm	_STMPARITYH,4,2                 ; @STMPARITYH
	.comm	_STMBREAKH,4,2                  ; @STMBREAKH
	.comm	_ROCKET_MODE_MASK,4,2           ; @ROCKET_MODE_MASK
	.comm	_ROCKET_RTS_TOGGLE,4,2          ; @ROCKET_RTS_TOGGLE
	.comm	_ROCKET_TYPE_PC104,8,3          ; @ROCKET_TYPE_PC104
	.comm	_InterfaceModeRS485,4,2         ; @InterfaceModeRS485
	.comm	_InterfaceModeRS422,4,2         ; @InterfaceModeRS422
	.comm	_InterfaceModeRS232T,4,2        ; @InterfaceModeRS232T
	.comm	_InterfaceModeRS232,4,2         ; @InterfaceModeRS232
	.no_dead_strip	_configure_r_port
.subsections_via_symbols
