	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_set_termios
_rs_set_termios:                        ## @rs_set_termios
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_change_speed
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%r14), %ecx
	movq	_CBAUD@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%ecx, %eax
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rdx
	testl	%eax, (%rdx)
	je	LBB0_2
LBB0_3:
	testl	%ecx, %eax
	jne	LBB0_6
	jmp	LBB0_4
LBB0_2:
	movq	_UART_MCR_DTR@GOTPCREL(%rip), %rax
	movq	_UART_MCR_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	movq	_UART_ESI_CMD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ESI_WRITE_UART@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movq	_UART_ESI_CMD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UART_MCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movq	_UART_ESI_CMD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r14), %ecx
	movl	(%r13), %eax
	testl	%ecx, %eax
	jne	LBB0_6
LBB0_4:
	movq	(%r12), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_UART_MCR_DTR@GOTPCREL(%rip), %rax
	movq	_UART_MCR_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
	movq	_UART_ESI_CMD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ESI_WRITE_UART@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movq	_UART_ESI_CMD2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_UART_MCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_serial_out
LBB0_6:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_CRTSCTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.7:
	movq	(%r12), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rs_start                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CBAUD,4,2                      ## @CBAUD
	.comm	_UART_MCR_DTR,4,2               ## @UART_MCR_DTR
	.comm	_UART_MCR_RTS,4,2               ## @UART_MCR_RTS
	.comm	_UART_ESI_CMD1,4,2              ## @UART_ESI_CMD1
	.comm	_ESI_WRITE_UART,4,2             ## @ESI_WRITE_UART
	.comm	_UART_ESI_CMD2,4,2              ## @UART_ESI_CMD2
	.comm	_UART_MCR,4,2                   ## @UART_MCR
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.no_dead_strip	_rs_set_termios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_set_termios
_rs_set_termios:                        ; @rs_set_termios
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	mov	x0, x22
	bl	_change_speed
	add	x21, x22, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w9, [x20]
Lloh0:
	adrp	x23, _CBAUD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CBAUD@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	x10, [x19]
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_3
LBB0_2:
	tst	w8, w9
	b.ne	LBB0_6
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _UART_MCR_DTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UART_MCR_DTR@GOTPAGEOFF]
Lloh4:
	adrp	x9, _UART_MCR_RTS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _UART_MCR_RTS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
Lloh8:
	adrp	x8, _UART_ESI_CMD1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UART_ESI_CMD1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ESI_WRITE_UART@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ESI_WRITE_UART@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_serial_out
Lloh14:
	adrp	x24, _UART_ESI_CMD2@GOTPAGE
Lloh15:
	ldr	x24, [x24, _UART_ESI_CMD2@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh16:
	adrp	x8, _UART_MCR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UART_MCR@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_serial_out
	ldr	w1, [x24]
	ldr	w2, [x22]
	mov	x0, x22
	bl	_serial_out
	ldr	w9, [x20]
	ldr	w8, [x23]
	tst	w8, w9
	b.ne	LBB0_6
LBB0_4:
	ldr	x9, [x19]
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _UART_MCR_DTR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _UART_MCR_DTR@GOTPAGEOFF]
Lloh21:
	adrp	x9, _UART_MCR_RTS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _UART_MCR_RTS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w8, w8, w9
	str	w8, [x22]
Lloh25:
	adrp	x8, _UART_ESI_CMD1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _UART_ESI_CMD1@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _ESI_WRITE_UART@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ESI_WRITE_UART@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_serial_out
Lloh31:
	adrp	x23, _UART_ESI_CMD2@GOTPAGE
Lloh32:
	ldr	x23, [x23, _UART_ESI_CMD2@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh33:
	adrp	x8, _UART_MCR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _UART_MCR@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_serial_out
	ldr	w1, [x23]
	ldr	w2, [x22]
	mov	x0, x22
	bl	_serial_out
LBB0_6:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w9, [x20]
Lloh36:
	adrp	x8, _CRTSCTS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CRTSCTS@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_8
; %bb.7:
	ldr	x9, [x19]
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rs_start
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_CBAUD,4,2                      ; @CBAUD
	.comm	_UART_MCR_DTR,4,2               ; @UART_MCR_DTR
	.comm	_UART_MCR_RTS,4,2               ; @UART_MCR_RTS
	.comm	_UART_ESI_CMD1,4,2              ; @UART_ESI_CMD1
	.comm	_ESI_WRITE_UART,4,2             ; @ESI_WRITE_UART
	.comm	_UART_ESI_CMD2,4,2              ; @UART_ESI_CMD2
	.comm	_UART_MCR,4,2                   ; @UART_MCR
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.no_dead_strip	_rs_set_termios
.subsections_via_symbols
