	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_tty                      ## -- Begin function start_tty
	.p2align	4, 0x90
_start_tty:                             ## @start_tty
	.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	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.1:
	cmpq	$0, 40(%rbx)
	je	LBB0_2
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_2:
	movq	$0, 32(%rbx)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.4:
	movq	_TIOCPKT_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	24(%rbx), %eax
	movq	_TIOCPKT_START@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 24(%rbx)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wake_up_interruptible_poll
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tty_wakeup                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TIOCPKT_STOP,4,2               ## @TIOCPKT_STOP
	.comm	_TIOCPKT_START,4,2              ## @TIOCPKT_START
	.comm	_POLLIN,4,2                     ## @POLLIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_tty                      ; -- Begin function start_tty
	.p2align	2
_start_tty:                             ; @start_tty
	.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	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_3:
	str	xzr, [x19, #32]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _TIOCPKT_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIOCPKT_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
Lloh3:
	adrp	x9, _TIOCPKT_START@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TIOCPKT_START@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #24]
Lloh6:
	adrp	x8, _POLLIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_wake_up_interruptible_poll
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	blr	x8
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tty_wakeup
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TIOCPKT_STOP,4,2               ; @TIOCPKT_STOP
	.comm	_TIOCPKT_START,4,2              ; @TIOCPKT_START
	.comm	_POLLIN,4,2                     ; @POLLIN
.subsections_via_symbols
