	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rp_set_termios
_rp_set_termios:                        ## @rp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_rocket_paranoia_check
	testq	%rax, %rax
	je	LBB0_1
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movq	_CSIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	andl	%ecx, %esi
	movq	_CS5@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	je	LBB0_3
## %bb.2:
	movq	_CS6@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	jne	LBB0_4
LBB0_3:
	movl	(%r14), %esi
	xorl	%ecx, %esi
	andl	%edx, %esi
	xorl	%esi, %ecx
	movl	%ecx, (%rax)
LBB0_4:
	movq	_CMSPAR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_configure_r_port
	movl	(%r14), %eax
	movq	_CBAUD@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.5:
	movq	8(%rbx), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
LBB0_7:
	testl	%eax, %ecx
	jne	LBB0_13
LBB0_8:
	movq	8(%rbx), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_13
## %bb.9:
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.10:
	movq	_CRTSCTS@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	callq	_sSetRTS
LBB0_12:
	movq	%r15, %rdi
	callq	_sSetDTR
	movl	(%r14), %eax
	jmp	LBB0_13
LBB0_6:
	movq	%r15, %rdi
	callq	_sClrDTR
	movq	%r15, %rdi
	callq	_sClrRTS
	movl	(%r14), %eax
	movl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_8
LBB0_13:
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_15
## %bb.14:
	movq	8(%rbx), %rax
	testl	%ecx, (%rax)
	jne	LBB0_15
## %bb.16:
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rp_start                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rp_set_termios"

	.comm	_CSIZE,4,2                      ## @CSIZE
	.comm	_CS5,4,2                        ## @CS5
	.comm	_CS6,4,2                        ## @CS6
	.comm	_CMSPAR,4,2                     ## @CMSPAR
	.comm	_CBAUD,4,2                      ## @CBAUD
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.no_dead_strip	_rp_set_termios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rp_set_termios
_rp_set_termios:                        ; @rp_set_termios
	.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
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_rocket_paranoia_check
	cbz	x0, LBB0_2
LBB0_1:
	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_2:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _CSIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	and	w11, w10, w9
Lloh5:
	adrp	x12, _CS5@GOTPAGE
Lloh6:
	ldr	x12, [x12, _CS5@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
Lloh8:
	adrp	x13, _CS6@GOTPAGE
Lloh9:
	ldr	x13, [x13, _CS6@GOTPAGEOFF]
Lloh10:
	ldr	w13, [x13]
	cmp	w11, w12
	ccmp	w11, w13, #4, ne
	b.ne	LBB0_4
; %bb.3:
	bic	w9, w9, w10
	ldr	w11, [x20]
	and	w10, w11, w10
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_4:
Lloh11:
	adrp	x10, _CMSPAR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CMSPAR@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	bic	w9, w9, w10
	str	w9, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_configure_r_port
	ldr	w8, [x20]
Lloh14:
	adrp	x22, _CBAUD@GOTPAGE
Lloh15:
	ldr	x22, [x22, _CBAUD@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	x10, [x19, #8]
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_sClrDTR
	mov	x0, x21
	bl	_sClrRTS
	ldr	w8, [x20]
	ldr	w9, [x22]
LBB0_7:
Lloh16:
	adrp	x22, _CRTSCTS@GOTPAGE
Lloh17:
	ldr	x22, [x22, _CRTSCTS@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.8:
	ldr	x10, [x19, #8]
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.9:
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w8, [x22]
	tst	w8, w10
	b.ne	LBB0_12
LBB0_11:
	mov	x0, x21
	bl	_sSetRTS
LBB0_12:
	mov	x0, x21
	bl	_sSetDTR
	ldr	w8, [x20]
LBB0_13:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.14:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_1
; %bb.15:
	str	xzr, [x19]
	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	_rp_start
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rp_set_termios"

	.comm	_CSIZE,4,2                      ; @CSIZE
	.comm	_CS5,4,2                        ; @CS5
	.comm	_CS6,4,2                        ; @CS6
	.comm	_CMSPAR,4,2                     ; @CMSPAR
	.comm	_CBAUD,4,2                      ; @CBAUD
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.no_dead_strip	_rp_set_termios
.subsections_via_symbols
