	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_termios
_set_termios:                           ## @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	24(%rdi), %rax
	movq	32(%rdi), %r15
	movslq	(%rax), %rdi
	callq	_DBGINFO
	movq	%r15, %rdi
	callq	_change_params
	movl	(%r14), %eax
	movq	_CBAUD@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_2
LBB0_3:
	testl	%eax, %ecx
	jne	LBB0_10
LBB0_4:
	movq	8(%rbx), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_10
## %bb.5:
	movq	_SerialSignal_DTR@GOTPCREL(%rip), %rcx
	movl	4(%r15), %eax
	orl	(%rcx), %eax
	movl	%eax, 4(%r15)
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_8
## %bb.6:
	movq	_TTY_THROTTLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	4(%r15), %eax
LBB0_8:
	movq	_SerialSignal_RTS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r15)
LBB0_9:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_set_signals
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r14), %eax
	jmp	LBB0_10
LBB0_2:
	movq	_SerialSignal_RTS@GOTPCREL(%rip), %rax
	movq	_SerialSignal_DTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 4(%r15)
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_set_signals
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r14), %eax
	movl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_4
LBB0_10:
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.11:
	movq	8(%rbx), %rax
	testl	%ecx, (%rax)
	je	LBB0_13
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tx_release                     ## 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	_CRTSCTS,4,2                    ## @CRTSCTS
	.comm	_TTY_THROTTLED,4,2              ## @TTY_THROTTLED
	.no_dead_strip	_set_termios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_termios
_set_termios:                           ; @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
	ldp	x8, x21, [x0, #24]
	ldrsw	x0, [x8]
	bl	_DBGINFO
	mov	x0, x21
	bl	_change_params
	ldr	w8, [x20]
Lloh0:
	adrp	x22, _CBAUD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CBAUD@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x10, [x19, #8]
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _SerialSignal_RTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SerialSignal_RTS@GOTPAGEOFF]
Lloh4:
	adrp	x9, _SerialSignal_DTR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SerialSignal_DTR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	ldr	w10, [x21, #4]
	add	w8, w9, w8
	bic	w8, w10, w8
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_set_signals
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w8, [x20]
	ldr	w9, [x22]
LBB0_3:
Lloh8:
	adrp	x22, _CRTSCTS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _CRTSCTS@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.4:
	ldr	x10, [x19, #8]
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.5:
Lloh10:
	adrp	x8, _SerialSignal_DTR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SerialSignal_DTR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	ldr	w9, [x22]
	tst	w9, w10
	b.eq	LBB0_8
; %bb.6:
Lloh13:
	adrp	x8, _TTY_THROTTLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TTY_THROTTLED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w8, [x21, #4]
LBB0_8:
Lloh16:
	adrp	x9, _SerialSignal_RTS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SerialSignal_RTS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21, #4]
LBB0_9:
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_set_signals
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w8, [x20]
LBB0_10:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_13
LBB0_12:
	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_13:
	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	_tx_release
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CBAUD,4,2                      ; @CBAUD
	.comm	_SerialSignal_RTS,4,2           ; @SerialSignal_RTS
	.comm	_SerialSignal_DTR,4,2           ; @SerialSignal_DTR
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.comm	_TTY_THROTTLED,4,2              ; @TTY_THROTTLED
	.no_dead_strip	_set_termios
.subsections_via_symbols
