	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function change_termios
_change_termios:                        ## @change_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%r15), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rax)
	movq	8(%r15), %rdi
	movl	36(%r15), %edx
	leaq	-48(%rbp), %rsi
	callq	_unset_locked_termios
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	cmpq	$0, 8(%rax)
	je	LBB0_12
## %bb.2:
	movq	_IXON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%eax, -48(%rbp)
	je	LBB0_5
## %bb.3:
	movq	-40(%rbp), %rax
	movq	_VSTOP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpb	$19, (%rax,%rcx)
	jne	LBB0_5
## %bb.4:
	movq	_VSTART@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r12d, %r12d
	cmpb	$17, (%rax,%rcx)
	sete	%r12b
LBB0_5:
	movq	%r15, %rdi
	callq	_I_IXON
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	callq	_STOP_CHAR
	cmpb	$19, %al
	jne	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	callq	_START_CHAR
	cmpb	$17, %al
	sete	%bl
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movzbl	%bl, %eax
	cmpl	%eax, %r12d
	je	LBB0_12
## %bb.11:
	leaq	32(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_TIOCPKT_DOSTOP@GOTPCREL(%rip), %rax
	movq	_TIOCPKT_NOSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	(%r15), %edx
	testb	%bl, %bl
	cmovneq	%rax, %rcx
	movl	%edx, (%r15)
	orl	(%rcx), %edx
	movl	%edx, (%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%r15), %rdi
	callq	_wake_up_interruptible
LBB0_12:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	*%rax
	jmp	LBB0_15
LBB0_14:
	movq	8(%r15), %rdi
	leaq	-48(%rbp), %rsi
	callq	_tty_termios_copy_hw
LBB0_15:
	movq	%r15, %rdi
	callq	_tty_ldisc_ref
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	*%rax
LBB0_18:
	movq	%rbx, %rdi
	callq	_tty_ldisc_deref
LBB0_19:
	movq	%r14, %rdi
	callq	_mutex_unlock
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXON,4,2                       ## @IXON
	.comm	_VSTOP,8,3                      ## @VSTOP
	.comm	_VSTART,8,3                     ## @VSTART
	.comm	_TIOCPKT_DOSTOP,4,2             ## @TIOCPKT_DOSTOP
	.comm	_TIOCPKT_NOSTOP,4,2             ## @TIOCPKT_NOSTOP
	.no_dead_strip	_change_termios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function change_termios
_change_termios:                        ; @change_termios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20, #8]
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	q0, [x21]
	str	q0, [x8]
	ldr	x0, [x20, #8]
	ldr	w2, [x20, #36]
	mov	x1, sp
	bl	_unset_locked_termios
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.1:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
; %bb.2:
	ldr	w8, [sp]
Lloh0:
	adrp	x9, _IXON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IXON@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _VSTOP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VSTOP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldrb	w9, [x8, x9]
	cmp	w9, #19
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x9, _VSTART@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VSTART@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldrb	w8, [x8, x9]
	cmp	w8, #17
	cset	w21, eq
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x20
	bl	_I_IXON
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_STOP_CHAR
	cmp	w0, #19
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_START_CHAR
	cmp	w0, #17
	cset	w22, eq
	cmp	w21, w22
	b.ne	LBB0_10
	b	LBB0_11
LBB0_9:
	mov	w22, #0
	cmp	w21, w22
	b.eq	LBB0_11
LBB0_10:
	add	x21, x20, #32
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh9:
	adrp	x8, _TIOCPKT_DOSTOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TIOCPKT_DOSTOP@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh11:
	adrp	x10, _TIOCPKT_NOSTOP@GOTPAGE
Lloh12:
	ldr	x10, [x10, _TIOCPKT_NOSTOP@GOTPAGEOFF]
	ldr	w11, [x10]
	orr	w9, w11, w9
	ldr	w11, [x20]
	bic	w9, w11, w9
	str	w9, [x20]
	cmp	w22, #0
	csel	x8, x8, x10, ne
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x20]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x0, [x20, #24]
	bl	_wake_up_interruptible
LBB0_11:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x1, sp
	mov	x0, x20
	blr	x8
	b	LBB0_14
LBB0_13:
	ldr	x0, [x20, #8]
	mov	x1, sp
	bl	_tty_termios_copy_hw
LBB0_14:
	mov	x0, x20
	bl	_tty_ldisc_ref
	cbz	x0, LBB0_18
; %bb.15:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x1, sp
	mov	x0, x20
	blr	x8
LBB0_17:
	mov	x0, x21
	bl	_tty_ldisc_deref
LBB0_18:
	mov	x0, x19
	bl	_mutex_unlock
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IXON,4,2                       ; @IXON
	.comm	_VSTOP,8,3                      ; @VSTOP
	.comm	_VSTART,8,3                     ; @VSTART
	.comm	_TIOCPKT_DOSTOP,4,2             ; @TIOCPKT_DOSTOP
	.comm	_TIOCPKT_NOSTOP,4,2             ; @TIOCPKT_NOSTOP
	.no_dead_strip	_change_termios
.subsections_via_symbols
