	.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, %r15
	movq	(%rdi), %rax
	movq	24(%rdi), %r12
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_change_speed
	movl	(%r14), %eax
	movq	_CBAUD@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ecx, %edx
	andl	%ebx, %edx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.1:
	testl	%edx, %edx
	jne	LBB0_3
## %bb.2:
	movq	_SER_DTR@GOTPCREL(%rip), %rax
	movq	_SER_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r12)
	callq	_local_irq_save
	movl	(%r12), %edi
	callq	_rtsdtr_ctrl
	callq	_local_irq_restore
	movl	(%r14), %eax
	movl	(%r13), %ecx
	andl	%ecx, %ebx
	movl	%ebx, %edx
LBB0_3:
	testl	%eax, %ecx
	jne	LBB0_10
## %bb.4:
	testl	%edx, %edx
	je	LBB0_10
## %bb.5:
	movq	_SER_DTR@GOTPCREL(%rip), %rcx
	movl	(%r12), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movq	(%r15), %rcx
	movq	_CRTSCTS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_8
## %bb.6:
	movq	_TTY_THROTTLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	(%r12), %eax
LBB0_8:
	movq	_SER_RTS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
LBB0_9:
	callq	_local_irq_save
	movl	(%r12), %edi
	callq	_rtsdtr_ctrl
	callq	_local_irq_restore
	movl	(%r14), %eax
LBB0_10:
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.11:
	movq	(%r15), %rax
	testl	%ecx, (%rax)
	je	LBB0_13
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	$0, 8(%r15)
	movq	%r15, %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	_SER_DTR,4,2                    ## @SER_DTR
	.comm	_SER_RTS,4,2                    ## @SER_RTS
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.comm	_TTY_THROTTLED,4,2              ## @TTY_THROTTLED
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.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	x21, [x0, #24]
	ldr	x8, [x0]
	ldr	w22, [x8]
	mov	x0, x21
	bl	_change_speed
	ldr	w8, [x20]
Lloh0:
	adrp	x24, _CBAUD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CBAUD@GOTPAGEOFF]
	ldr	w9, [x24]
	and	w11, w9, w8
	and	w10, w9, w22
	cmp	w11, #0
	ccmp	w10, #0, #0, ne
Lloh2:
	adrp	x23, _SER_DTR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SER_DTR@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _SER_RTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SER_RTS@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh6:
	ldr	w8, [x8]
	orr	w8, w8, w9
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	bl	_local_irq_save
	ldr	w0, [x21]
	bl	_rtsdtr_ctrl
	bl	_local_irq_restore
	ldr	w8, [x20]
	ldr	w9, [x24]
	and	w10, w9, w22
LBB0_2:
	and	w9, w9, w8
	cmp	w9, #0
	ccmp	w10, #0, #4, eq
Lloh7:
	adrp	x22, _CRTSCTS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _CRTSCTS@GOTPAGEOFF]
	b.eq	LBB0_8
; %bb.3:
	ldr	w8, [x23]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	x9, [x19]
	ldr	w9, [x9]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _TTY_THROTTLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TTY_THROTTLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x21]
LBB0_6:
Lloh12:
	adrp	x9, _SER_RTS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SER_RTS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21]
LBB0_7:
	bl	_local_irq_save
	ldr	w0, [x21]
	bl	_rtsdtr_ctrl
	bl	_local_irq_restore
	ldr	w8, [x20]
LBB0_8:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19]
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_11
LBB0_10:
	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_11:
	str	xzr, [x19, #8]
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CBAUD,4,2                      ; @CBAUD
	.comm	_SER_DTR,4,2                    ; @SER_DTR
	.comm	_SER_RTS,4,2                    ; @SER_RTS
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.comm	_TTY_THROTTLED,4,2              ; @TTY_THROTTLED
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.no_dead_strip	_rs_set_termios
.subsections_via_symbols
