	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxa_set_tty_param
_moxa_set_tty_param:                    ## @moxa_set_tty_param
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	8(%rdi), %rbx
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	movl	(%rbx), %eax
	movl	4(%rbx), %esi
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movq	_IXON@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	movl	(%rdi), %edi
	andl	%esi, %edi
	setne	%cl
	movq	_IXOFF@GOTPCREL(%rip), %rdi
	xorl	%r8d, %r8d
	movl	(%rdi), %edi
	andl	%esi, %edi
	setne	%r8b
	movq	_IXANY@GOTPCREL(%rip), %rdi
	xorl	%r9d, %r9d
	andl	(%rdi), %esi
	setne	%r9b
	movq	_CMSPAR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%esi, (%rbx)
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_MoxaPortFlowCtrl
	movq	%r12, %rdi
	callq	_tty_get_baud_rate
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_MoxaPortSetTermio
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_tty_termios_baud_rate
LBB0_2:
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_encode_baud_rate           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.comm	_IXON,4,2                       ## @IXON
	.comm	_IXOFF,4,2                      ## @IXOFF
	.comm	_IXANY,4,2                      ## @IXANY
	.comm	_CMSPAR,4,2                     ## @CMSPAR
	.no_dead_strip	_moxa_set_tty_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moxa_set_tty_param
_moxa_set_tty_param:                    ; @moxa_set_tty_param
	.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	x20, x1
	mov	x19, x0
	ldp	x22, x21, [x0]
Lloh0:
	adrp	x8, _CRTSCTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRTSCTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x21]
	tst	w8, w9
	cset	w1, ne
Lloh3:
	adrp	x8, _IXON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXON@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w10
	cset	w3, ne
Lloh6:
	adrp	x8, _IXOFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXOFF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w10
	cset	w4, ne
Lloh9:
	adrp	x8, _IXANY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IXANY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w10
	cset	w5, ne
Lloh12:
	adrp	x8, _CMSPAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMSPAR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w8, w9, w8
	str	w8, [x21]
	mov	x0, x22
	mov	x2, x1
	bl	_MoxaPortFlowCtrl
	mov	x0, x19
	bl	_tty_get_baud_rate
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_MoxaPortSetTermio
	mov	x1, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_tty_termios_baud_rate
	mov	x1, x0
LBB0_2:
	mov	x0, x19
	mov	x2, x1
	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_encode_baud_rate
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.comm	_IXON,4,2                       ; @IXON
	.comm	_IXOFF,4,2                      ; @IXOFF
	.comm	_IXANY,4,2                      ; @IXANY
	.comm	_CMSPAR,4,2                     ; @CMSPAR
	.no_dead_strip	_moxa_set_tty_param
.subsections_via_symbols
