	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tty_fasync
_tty_fasync:                            ## @tty_fasync
	.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
	movl	%edx, %r12d
	movq	%rsi, %r14
	movl	%edi, %r13d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_lock_kernel
	movq	(%r14), %rax
	movq	8(%r14), %r15
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_tty_paranoia_check
	testq	%rax, %rax
	je	LBB0_1
LBB0_14:
	xorl	%eax, %eax
	callq	_unlock_kernel
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	8(%r15), %rax
	movl	%r13d, %edi
	movq	%rax, %r13
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	%rax, %rcx
	callq	_fasync_helper
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.4:
	leaq	4(%r15), %rdi
	callq	_waitqueue_active
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	$1, (%r15)
LBB0_6:
	leaq	12(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r15), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movq	_PIDTYPE_PGID@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_10:
	cmpl	$0, (%r13)
	jne	LBB0_13
## %bb.11:
	leaq	4(%r15), %rdi
	callq	_waitqueue_active
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_N_TTY_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_13
LBB0_8:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_task_pid
	movq	%rax, %r15
	movq	_PIDTYPE_PID@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_get_pid
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	___f_setown
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_put_pid
	testl	%ebx, %ebx
	jne	LBB0_14
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tty_fasync"

	.comm	_PIDTYPE_PGID,4,2               ## @PIDTYPE_PGID
	.comm	_current,4,2                    ## @current
	.comm	_PIDTYPE_PID,4,2                ## @PIDTYPE_PID
	.comm	_N_TTY_BUF_SIZE,4,2             ## @N_TTY_BUF_SIZE
	.no_dead_strip	_tty_fasync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tty_fasync
_tty_fasync:                            ; @tty_fasync
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_lock_kernel
	ldp	x8, x20, [x19]
	ldr	w1, [x8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_tty_paranoia_check
	cbz	x0, LBB0_3
LBB0_1:
	mov	w22, #0
LBB0_2:
	bl	_unlock_kernel
	mov	x0, x22
	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_3:
	add	x23, x20, #8
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	bl	_fasync_helper
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.4:
	cbz	w21, LBB0_10
; %bb.5:
	add	x0, x20, #4
	bl	_waitqueue_active
	cbnz	w0, LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
	add	x21, x20, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_13
; %bb.8:
Lloh2:
	adrp	x8, _PIDTYPE_PGID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIDTYPE_PGID@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	mov	x22, x0
	b	LBB0_2
LBB0_10:
	ldr	w8, [x23]
	cbnz	w8, LBB0_1
; %bb.11:
	add	x0, x20, #4
	bl	_waitqueue_active
	cbnz	w0, LBB0_1
; %bb.12:
Lloh4:
	adrp	x8, _N_TTY_BUF_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _N_TTY_BUF_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_1
LBB0_13:
Lloh7:
	adrp	x8, _current@GOTPAGE
Lloh8:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_task_pid
	mov	x20, x0
Lloh10:
	adrp	x8, _PIDTYPE_PID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PIDTYPE_PID@GOTPAGEOFF]
LBB0_14:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_get_pid
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	bl	___f_setown
	mov	x22, x0
	mov	x0, x20
	bl	_put_pid
	cbnz	w22, LBB0_2
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tty_fasync"

	.comm	_PIDTYPE_PGID,4,2               ; @PIDTYPE_PGID
	.comm	_current,4,2                    ; @current
	.comm	_PIDTYPE_PID,4,2                ; @PIDTYPE_PID
	.comm	_N_TTY_BUF_SIZE,4,2             ; @N_TTY_BUF_SIZE
	.no_dead_strip	_tty_fasync
.subsections_via_symbols
