	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function change_params
_change_params:                         ## @change_params
	.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	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_30
## %bb.2:
	movq	%rdi, %rbx
	movslq	52(%rdi), %rdi
	callq	_DBGINFO
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %r14d
	movq	_CBAUD@GOTPCREL(%rip), %rcx
	movq	_SerialSignal_RTS@GOTPCREL(%rip), %rdx
	movq	_SerialSignal_DTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rdx), %eax
	testl	%r14d, (%rcx)
	je	LBB0_4
## %bb.3:
	orl	%eax, 48(%rbx)
	jmp	LBB0_5
LBB0_30:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	notl	%eax
	andl	%eax, 48(%rbx)
LBB0_5:
	movq	_CSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movl	$136, %ecx
	subl	%eax, %ecx
	andl	$-4, %eax
	cmpl	$128, %eax
	movl	$7, %r15d
	cmovel	%ecx, %r15d
	movl	%r15d, 32(%rbx)
	movq	_CSTOPB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	cmpl	$1, %eax
	movl	$2, %r12d
	sbbl	$0, %r12d
	movl	%r12d, 36(%rbx)
	movq	_PARENB@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.6:
	movq	_PARODD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_7
## %bb.8:
	movq	_ASYNC_PARITY_EVEN@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ASYNC_PARITY_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_ASYNC_PARITY_ODD@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	callq	_tty_get_baud_rate
	movl	%eax, 40(%rbx)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ecx
	leal	(%r12,%r15), %eax
	incl	%eax
	movq	_HZ@GOTPCREL(%rip), %rdx
	imull	(%rdx), %eax
	shll	$5, %eax
	cltd
	idivl	%ecx
	movl	%eax, (%rbx)
	jmp	LBB0_13
LBB0_11:
	movl	(%rbx), %eax
LBB0_13:
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$36, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	movq	_ASYNC_CTS_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, (%rcx)
	je	LBB0_15
## %bb.14:
	orl	24(%rbx), %eax
	jmp	LBB0_16
LBB0_15:
	notl	%eax
	andl	24(%rbx), %eax
LBB0_16:
	movq	_CLOCAL@GOTPCREL(%rip), %rdx
	movq	_ASYNC_CHECK_CD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r14d, (%rdx)
	je	LBB0_18
## %bb.17:
	notl	%ecx
	andl	%ecx, %eax
	jmp	LBB0_19
LBB0_18:
	orl	%ecx, %eax
LBB0_19:
	movl	%eax, 24(%rbx)
	movq	_IRQ_RXOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	16(%rbx), %rdi
	callq	_I_INPCK
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_MASK_PARITY@GOTPCREL(%rip), %rax
	movq	_MASK_FRAMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 4(%rbx)
LBB0_21:
	movq	16(%rbx), %rdi
	callq	_I_BRKINT
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:
	movq	16(%rbx), %rdi
	callq	_I_PARMRK
	testq	%rax, %rax
	je	LBB0_24
LBB0_23:
	movq	_MASK_BREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_24:
	movq	16(%rbx), %rdi
	callq	_I_IGNPAR
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_MASK_PARITY@GOTPCREL(%rip), %rax
	movq	_MASK_FRAMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 8(%rbx)
LBB0_26:
	movq	16(%rbx), %rdi
	callq	_I_IGNBRK
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:
	movq	_MASK_BREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	16(%rbx), %rdi
	callq	_I_IGNPAR
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	_MASK_OVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_29:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_program_hw                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CBAUD,4,2                      ## @CBAUD
	.comm	_SerialSignal_RTS,4,2           ## @SerialSignal_RTS
	.comm	_SerialSignal_DTR,4,2           ## @SerialSignal_DTR
	.comm	_CSIZE,4,2                      ## @CSIZE
	.comm	_CSTOPB,4,2                     ## @CSTOPB
	.comm	_PARENB,4,2                     ## @PARENB
	.comm	_PARODD,4,2                     ## @PARODD
	.comm	_ASYNC_PARITY_ODD,4,2           ## @ASYNC_PARITY_ODD
	.comm	_ASYNC_PARITY_EVEN,4,2          ## @ASYNC_PARITY_EVEN
	.comm	_ASYNC_PARITY_NONE,4,2          ## @ASYNC_PARITY_NONE
	.comm	_HZ,4,2                         ## @HZ
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.comm	_ASYNC_CTS_FLOW,4,2             ## @ASYNC_CTS_FLOW
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.comm	_ASYNC_CHECK_CD,4,2             ## @ASYNC_CHECK_CD
	.comm	_IRQ_RXOVER,4,2                 ## @IRQ_RXOVER
	.comm	_MASK_PARITY,4,2                ## @MASK_PARITY
	.comm	_MASK_FRAMING,4,2               ## @MASK_FRAMING
	.comm	_MASK_BREAK,4,2                 ## @MASK_BREAK
	.comm	_MASK_OVERRUN,4,2               ## @MASK_OVERRUN
	.no_dead_strip	_change_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function change_params
_change_params:                         ; @change_params
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x19, x0
	ldrsw	x0, [x0, #52]
	bl	_DBGINFO
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w20, [x8]
Lloh0:
	adrp	x8, _CBAUD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CBAUD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _SerialSignal_RTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SerialSignal_RTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _SerialSignal_DTR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SerialSignal_DTR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	add	w8, w10, w8
	tst	w9, w20
	b.eq	LBB0_5
; %bb.3:
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_4:
	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
	ret
LBB0_5:
	ldr	w9, [x19, #48]
	bic	w8, w9, w8
LBB0_6:
	str	w8, [x19, #48]
Lloh9:
	adrp	x8, _CSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CSIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w20
	and	w9, w8, #0xfffffffc
	mov	w10, #136
	sub	w8, w10, w8
	mov	w10, #7
	cmp	w9, #128
	csel	w21, w8, w10, eq
Lloh12:
	adrp	x8, _CSTOPB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CSTOPB@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	mov	w8, #1
	cinc	w22, w8, ne
	stp	w21, w22, [x19, #32]
Lloh15:
	adrp	x8, _PARENB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PARENB@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _PARODD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PARODD@GOTPAGEOFF]
Lloh20:
	adrp	x9, _ASYNC_PARITY_ODD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ASYNC_PARITY_ODD@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x10, _ASYNC_PARITY_EVEN@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ASYNC_PARITY_EVEN@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, eq
	b	LBB0_9
LBB0_8:
Lloh25:
	adrp	x8, _ASYNC_PARITY_NONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ASYNC_PARITY_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	bl	_tty_get_baud_rate
	str	w0, [x19, #40]
Lloh27:
	adrp	x8, _HZ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
	cbz	w0, LBB0_11
; %bb.10:
	add	w9, w22, w21
	ldr	w10, [x8]
	madd	w9, w10, w9, w10
	lsl	w9, w9, #5
	sdiv	w9, w9, w0
	str	w9, [x19]
	b	LBB0_12
LBB0_11:
	ldr	w9, [x19]
LBB0_12:
	ldrsw	x8, [x8]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x8, x8, x10
	lsr	x10, x8, #63
	asr	x8, x8, #36
	add	w8, w8, w10
	add	w8, w9, w8
Lloh29:
	adrp	x9, _CRTSCTS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CRTSCTS@GOTPAGEOFF]
	str	w8, [x19]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x8, _ASYNC_CTS_FLOW@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ASYNC_CTS_FLOW@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w9, w20
	b.eq	LBB0_14
; %bb.13:
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	b	LBB0_15
LBB0_14:
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
LBB0_15:
Lloh35:
	adrp	x9, _CLOCAL@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CLOCAL@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x9]
Lloh38:
	adrp	x9, _ASYNC_CHECK_CD@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ASYNC_CHECK_CD@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w10, w20
	b.eq	LBB0_17
; %bb.16:
	bic	w8, w8, w9
	b	LBB0_18
LBB0_17:
	orr	w8, w8, w9
LBB0_18:
	str	w8, [x19, #24]
Lloh41:
	adrp	x8, _IRQ_RXOVER@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQ_RXOVER@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	x0, [x19, #16]
	bl	_I_INPCK
Lloh44:
	adrp	x20, _MASK_PARITY@GOTPAGE
Lloh45:
	ldr	x20, [x20, _MASK_PARITY@GOTPAGEOFF]
Lloh46:
	adrp	x21, _MASK_FRAMING@GOTPAGE
Lloh47:
	ldr	x21, [x21, _MASK_FRAMING@GOTPAGEOFF]
	cbz	x0, LBB0_20
; %bb.19:
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
	orr	w8, w8, w9
	str	w8, [x19, #4]
LBB0_20:
	ldr	x0, [x19, #16]
	bl	_I_BRKINT
Lloh48:
	adrp	x22, _MASK_BREAK@GOTPAGE
Lloh49:
	ldr	x22, [x22, _MASK_BREAK@GOTPAGEOFF]
	cbnz	x0, LBB0_22
; %bb.21:
	ldr	x0, [x19, #16]
	bl	_I_PARMRK
	cbz	x0, LBB0_23
LBB0_22:
	ldr	w8, [x22]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_23:
	ldr	x0, [x19, #16]
	bl	_I_IGNPAR
	cbz	x0, LBB0_25
; %bb.24:
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
LBB0_25:
	ldr	x0, [x19, #16]
	bl	_I_IGNBRK
	cbz	x0, LBB0_28
; %bb.26:
	ldr	w8, [x22]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_I_IGNPAR
	cbz	x0, LBB0_28
; %bb.27:
Lloh50:
	adrp	x8, _MASK_OVERRUN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MASK_OVERRUN@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_28:
	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	_program_hw
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_CBAUD,4,2                      ; @CBAUD
	.comm	_SerialSignal_RTS,4,2           ; @SerialSignal_RTS
	.comm	_SerialSignal_DTR,4,2           ; @SerialSignal_DTR
	.comm	_CSIZE,4,2                      ; @CSIZE
	.comm	_CSTOPB,4,2                     ; @CSTOPB
	.comm	_PARENB,4,2                     ; @PARENB
	.comm	_PARODD,4,2                     ; @PARODD
	.comm	_ASYNC_PARITY_ODD,4,2           ; @ASYNC_PARITY_ODD
	.comm	_ASYNC_PARITY_EVEN,4,2          ; @ASYNC_PARITY_EVEN
	.comm	_ASYNC_PARITY_NONE,4,2          ; @ASYNC_PARITY_NONE
	.comm	_HZ,4,2                         ; @HZ
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.comm	_ASYNC_CTS_FLOW,4,2             ; @ASYNC_CTS_FLOW
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.comm	_ASYNC_CHECK_CD,4,2             ; @ASYNC_CHECK_CD
	.comm	_IRQ_RXOVER,4,2                 ; @IRQ_RXOVER
	.comm	_MASK_PARITY,4,2                ; @MASK_PARITY
	.comm	_MASK_FRAMING,4,2               ; @MASK_FRAMING
	.comm	_MASK_BREAK,4,2                 ; @MASK_BREAK
	.comm	_MASK_OVERRUN,4,2               ; @MASK_OVERRUN
	.no_dead_strip	_change_params
.subsections_via_symbols
