	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_audit_add_data             ## -- Begin function tty_audit_add_data
	.p2align	4, 0x90
_tty_audit_add_data:                    ## @tty_audit_add_data
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_current@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %rax
	movl	(%rax), %ebx
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	je	LBB0_2
LBB0_4:
	movq	16(%r15), %rax
	movq	(%rax), %rcx
	movq	_TTY_DRIVER_TYPE_PTY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	8(%rax), %rax
	movq	_PTY_TYPE_MASTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
LBB0_6:
	movq	%r15, %rdi
	callq	_tty_audit_buf_get
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %r13
	movq	%rax, %rdi
	addq	$32, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	16(%r15), %rax
	movl	16(%rax), %ecx
	movl	8(%r15), %ebx
	addl	20(%rax), %ebx
	cmpl	%ecx, (%r13)
	jne	LBB0_10
## %bb.8:
	cmpl	%ebx, 4(%r13)
	jne	LBB0_10
## %bb.9:
	movq	8(%r13), %rax
	cmpq	(%r15), %rax
	je	LBB0_11
LBB0_10:
	movq	%r13, %rdi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_tty_audit_buf_push_current
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	movl	%ebx, 4(%r13)
	movq	(%r15), %rax
	movq	%rax, 8(%r13)
LBB0_11:
	movq	_N_TTY_BUF_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	%rbx, %r12
	testq	%r14, %r14
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	movq	16(%r13), %rdi
	subq	%rdi, %rbx
	cmpq	%r14, %rbx
	cmovaeq	%r14, %rbx
	addq	24(%r13), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	16(%r13), %rax
	addq	%rbx, %rax
	movq	%rax, 16(%r13)
	subq	%rbx, %r14
	cmpq	(%r15), %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	callq	_tty_audit_buf_push_current
	jmp	LBB0_14
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_audit_buf_put              ## TAILCALL
LBB0_2:
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_L_ECHO
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_TTY_DRIVER_TYPE_PTY,8,3        ## @TTY_DRIVER_TYPE_PTY
	.comm	_PTY_TYPE_MASTER,8,3            ## @PTY_TYPE_MASTER
	.comm	_N_TTY_BUF_SIZE,8,3             ## @N_TTY_BUF_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_audit_add_data             ; -- Begin function tty_audit_add_data
	.p2align	2
_tty_audit_add_data:                    ; @tty_audit_add_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x2, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x22, _current@GOTPAGE
Lloh1:
	ldr	x22, [x22, _current@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x8]
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	ldp	x0, x9, [x8]
	ldr	w22, [x9]
	bl	_spin_unlock_irqrestore
	cbz	w22, LBB0_15
LBB0_3:
	ldr	x8, [x21, #16]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _TTY_DRIVER_TYPE_PTY@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TTY_DRIVER_TYPE_PTY@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x8, #8]
Lloh5:
	adrp	x9, _PTY_TYPE_MASTER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PTY_TYPE_MASTER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_1
LBB0_5:
	mov	x0, x21
	bl	_tty_audit_buf_get
	cbz	x0, LBB0_1
; %bb.6:
	mov	x22, x0
	add	x23, x0, #32
	mov	x0, x23
	bl	_mutex_lock
	ldr	x8, [x21, #16]
	ldp	w24, w8, [x8, #16]
	ldr	w9, [x21, #8]
	add	w25, w9, w8
	ldr	w8, [x22]
	cmp	w8, w24
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x22, #4]
	cmp	w8, w25
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_9:
	mov	x0, x22
	bl	_tty_audit_buf_push_current
	stp	w24, w25, [x22]
	ldr	x8, [x21]
	str	x8, [x22, #8]
LBB0_10:
Lloh8:
	adrp	x24, _N_TTY_BUF_SIZE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _N_TTY_BUF_SIZE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x20, x21
	cbz	x19, LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldp	x9, x10, [x22, #16]
	sub	x8, x8, x9
	cmp	x8, x19
	csel	x21, x8, x19, lo
	add	x0, x10, x9
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x22, #16]
	ldr	x9, [x24]
	add	x8, x8, x21
	cmp	x8, x9
	str	x8, [x22, #16]
	sub	x19, x19, x21
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	bl	_tty_audit_buf_push_current
	b	LBB0_11
LBB0_14:
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_tty_audit_buf_put
LBB0_15:
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.16:
	mov	x0, x21
	bl	_L_ECHO
	cbnz	w0, LBB0_3
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_TTY_DRIVER_TYPE_PTY,8,3        ; @TTY_DRIVER_TYPE_PTY
	.comm	_PTY_TYPE_MASTER,8,3            ; @PTY_TYPE_MASTER
	.comm	_N_TTY_BUF_SIZE,8,3             ; @N_TTY_BUF_SIZE
.subsections_via_symbols
