	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n_tty_set_termios
_n_tty_set_termios:                     ## @n_tty_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_BUG_ON
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	88(%r14), %rax
	movl	(%rax), %eax
	xorl	(%rbx), %eax
	movq	_ICANON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_2:
	leaq	80(%r14), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	72(%r14), %eax
	movl	%eax, 76(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r14)
	movq	%r14, %rdi
	callq	_L_ICANON
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 48(%r14)
	je	LBB0_5
## %bb.4:
	leaq	12(%r14), %rdi
	callq	_wake_up_interruptible
LBB0_5:
	movq	%r14, %rdi
	callq	_L_ICANON
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, (%r14)
	movq	_TTY_HW_COOK_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.38:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%r14)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_n_tty_set_room                 ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	callq	_I_ISTRIP
	testq	%rax, %rax
	jne	LBB0_16
## %bb.7:
	movq	%r14, %rdi
	callq	_I_IUCLC
	testq	%rax, %rax
	jne	LBB0_16
## %bb.8:
	movq	%r14, %rdi
	callq	_I_IGNCR
	testq	%rax, %rax
	jne	LBB0_16
## %bb.9:
	movq	%r14, %rdi
	callq	_I_ICRNL
	testq	%rax, %rax
	jne	LBB0_16
## %bb.10:
	movq	%r14, %rdi
	callq	_I_INLCR
	testq	%rax, %rax
	jne	LBB0_16
## %bb.11:
	movq	%r14, %rdi
	callq	_L_ICANON
	testq	%rax, %rax
	jne	LBB0_16
## %bb.12:
	movq	%r14, %rdi
	callq	_I_IXON
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:
	movq	%r14, %rdi
	callq	_L_ISIG
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_L_ECHO
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_I_PARMRK
	testq	%rax, %rax
	je	LBB0_30
LBB0_16:
	movq	32(%r14), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_I_IGNCR
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_I_ICRNL
	testq	%rax, %rax
	je	LBB0_19
LBB0_18:
	movq	32(%r14), %rsi
	movl	$13, %edi
	callq	_set_bit
LBB0_19:
	movq	%r14, %rdi
	callq	_I_INLCR
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	32(%r14), %rsi
	movl	$10, %edi
	callq	_set_bit
LBB0_21:
	movq	%r14, %rdi
	callq	_L_ICANON
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:
	movq	%r14, %rdi
	callq	_ERASE_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_KILL_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_EOF_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
	movq	32(%r14), %rsi
	movl	$10, %edi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_EOL_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_L_IEXTEN
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	movq	%r14, %rdi
	callq	_WERASE_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_LNEXT_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_EOL2_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_L_ECHO
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	callq	_REPRINT_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
LBB0_25:
	movq	%r14, %rdi
	callq	_I_IXON
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	callq	_START_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_STOP_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
LBB0_27:
	movq	%r14, %rdi
	callq	_L_ISIG
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	%r14, %rdi
	callq	_INTR_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_QUIT_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_SUSP_CHAR
	movq	32(%r14), %rsi
	movsbl	%al, %edi
	callq	_set_bit
LBB0_29:
	movq	___DISABLED_CHAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r14), %rsi
	callq	_clear_bit
	movl	$0, 4(%r14)
LBB0_36:
	xorl	%eax, %eax
LBB0_37:
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_n_tty_set_room
	leaq	16(%r14), %rdi
	callq	_wake_up_interruptible
	addq	$12, %r14
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
LBB0_30:
	movl	$1, 4(%r14)
	movq	%r14, %rdi
	callq	_I_IGNBRK
	testq	%rax, %rax
	je	LBB0_31
LBB0_33:
	movq	%r14, %rdi
	callq	_I_IGNPAR
	testq	%rax, %rax
	je	LBB0_34
LBB0_35:
	movq	24(%r14), %rcx
	movq	_TTY_DRIVER_REAL_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %eax
	testl	%edx, (%rcx)
	jne	LBB0_37
	jmp	LBB0_36
LBB0_31:
	movq	%r14, %rdi
	callq	_I_BRKINT
	testl	%eax, %eax
	jne	LBB0_36
## %bb.32:
	movq	%r14, %rdi
	callq	_I_PARMRK
	testq	%rax, %rax
	jne	LBB0_36
	jmp	LBB0_33
LBB0_34:
	movq	%r14, %rdi
	callq	_I_INPCK
	testl	%eax, %eax
	jne	LBB0_36
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_TTY_HW_COOK_IN,4,2             ## @TTY_HW_COOK_IN
	.comm	___DISABLED_CHAR,4,2            ## @__DISABLED_CHAR
	.comm	_TTY_DRIVER_REAL_RAW,4,2        ## @TTY_DRIVER_REAL_RAW
	.no_dead_strip	_n_tty_set_termios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n_tty_set_termios
_n_tty_set_termios:                     ; @n_tty_set_termios
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	ldr	x9, [x19, #88]
	ldr	w9, [x9]
	eor	w8, w9, w8
Lloh0:
	adrp	x9, _ICANON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICANON@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_5
LBB0_2:
	add	x0, x19, #80
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x19, #72]
	str	w8, [x19, #76]
	stp	xzr, xzr, [x19, #56]
	mov	x0, x19
	bl	_L_ICANON
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_5
; %bb.4:
	add	x0, x19, #12
	bl	_wake_up_interruptible
LBB0_5:
	mov	x0, x19
	bl	_L_ICANON
	cmp	x0, #0
	cset	w8, ne
	mov	x1, x19
	str	w8, [x1], #40
Lloh3:
	adrp	x8, _TTY_HW_COOK_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TTY_HW_COOK_IN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.6:
	movi.2s	v0, #1
	stur	d0, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_n_tty_set_room
LBB0_7:
	mov	x0, x19
	bl	_I_ISTRIP
	cbnz	x0, LBB0_17
; %bb.8:
	mov	x0, x19
	bl	_I_IUCLC
	cbnz	x0, LBB0_17
; %bb.9:
	mov	x0, x19
	bl	_I_IGNCR
	cbnz	x0, LBB0_17
; %bb.10:
	mov	x0, x19
	bl	_I_ICRNL
	cbnz	x0, LBB0_17
; %bb.11:
	mov	x0, x19
	bl	_I_INLCR
	cbnz	x0, LBB0_17
; %bb.12:
	mov	x0, x19
	bl	_L_ICANON
	cbnz	x0, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_I_IXON
	cbnz	x0, LBB0_17
; %bb.14:
	mov	x0, x19
	bl	_L_ISIG
	cbnz	x0, LBB0_17
; %bb.15:
	mov	x0, x19
	bl	_L_ECHO
	cbnz	x0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_I_PARMRK
	cbz	x0, LBB0_32
LBB0_17:
	ldr	x0, [x19, #32]
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x19
	bl	_I_IGNCR
	cbnz	x0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_I_ICRNL
	cbz	x0, LBB0_20
LBB0_19:
	ldr	x1, [x19, #32]
	mov	w0, #13
	bl	_set_bit
LBB0_20:
	mov	x0, x19
	bl	_I_INLCR
	cbz	x0, LBB0_22
; %bb.21:
	ldr	x1, [x19, #32]
	mov	w0, #10
	bl	_set_bit
LBB0_22:
	mov	x0, x19
	bl	_L_ICANON
	cbz	x0, LBB0_26
; %bb.23:
	mov	x0, x19
	bl	_ERASE_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
	mov	x0, x19
	bl	_KILL_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
	mov	x0, x19
	bl	_EOF_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
	ldr	x1, [x19, #32]
	mov	w0, #10
	bl	_set_bit
	mov	x0, x19
	bl	_EOL_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
	mov	x0, x19
	bl	_L_IEXTEN
	cbz	x0, LBB0_26
; %bb.24:
	mov	x0, x19
	bl	_WERASE_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
	mov	x0, x19
	bl	_LNEXT_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
	mov	x0, x19
	bl	_EOL2_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
	mov	x0, x19
	bl	_L_ECHO
	cbz	x0, LBB0_26
; %bb.25:
	mov	x0, x19
	bl	_REPRINT_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
LBB0_26:
	mov	x0, x19
	bl	_I_IXON
	cbz	x0, LBB0_28
; %bb.27:
	mov	x0, x19
	bl	_START_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
	mov	x0, x19
	bl	_STOP_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
LBB0_28:
	mov	x0, x19
	bl	_L_ISIG
	cbz	x0, LBB0_30
; %bb.29:
	mov	x0, x19
	bl	_INTR_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
	mov	x0, x19
	bl	_QUIT_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
	mov	x0, x19
	bl	_SUSP_CHAR
	ldr	x1, [x19, #32]
	bl	_set_bit
LBB0_30:
Lloh6:
	adrp	x8, ___DISABLED_CHAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___DISABLED_CHAR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x1, [x19, #32]
	bl	_clear_bit
	mov	w8, #0
	str	wzr, [x19, #4]
LBB0_31:
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_n_tty_set_room
	add	x0, x19, #16
	bl	_wake_up_interruptible
	add	x0, x19, #12
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up_interruptible
LBB0_32:
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_I_IGNBRK
	cbz	x0, LBB0_36
LBB0_33:
	mov	x0, x19
	bl	_I_IGNPAR
	cbz	x0, LBB0_38
LBB0_34:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _TTY_DRIVER_REAL_RAW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TTY_DRIVER_REAL_RAW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_39
; %bb.35:
	mov	w8, #1
	b	LBB0_31
LBB0_36:
	mov	x0, x19
	bl	_I_BRKINT
	cbnz	w0, LBB0_39
; %bb.37:
	mov	x0, x19
	bl	_I_PARMRK
	cbnz	x0, LBB0_39
	b	LBB0_33
LBB0_38:
	mov	x0, x19
	bl	_I_INPCK
	cbz	w0, LBB0_34
LBB0_39:
	mov	w8, #0
	b	LBB0_31
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_TTY_HW_COOK_IN,4,2             ; @TTY_HW_COOK_IN
	.comm	___DISABLED_CHAR,4,2            ; @__DISABLED_CHAR
	.comm	_TTY_DRIVER_REAL_RAW,4,2        ; @TTY_DRIVER_REAL_RAW
	.no_dead_strip	_n_tty_set_termios
.subsections_via_symbols
