	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_audit_tiocsti              ## -- Begin function tty_audit_tiocsti
	.p2align	4, 0x90
_tty_audit_tiocsti:                     ## @tty_audit_tiocsti
	.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
	movq	%rdi, %r14
	movb	%sil, -41(%rbp)
	movq	_current@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_spin_lock_irq
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %r13d
	movq	8(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	leaq	12(%rbx), %rdi
	callq	_atomic_inc
	movq	(%r12), %rax
LBB0_2:
	movq	(%rax), %rdi
	callq	_spin_unlock_irq
	movq	8(%r14), %rax
	movl	(%r14), %r15d
	addl	4(%rax), %r15d
	movl	(%rax), %r14d
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpl	%r14d, (%rbx)
	jne	LBB0_6
## %bb.4:
	cmpl	%r15d, 4(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_tty_audit_buf_push_current
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_tty_audit_buf_put
	movq	_current@GOTPCREL(%rip), %r12
LBB0_7:
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.8:
	movq	_audit_enabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	(%r12), %rdi
	callq	_audit_get_loginuid
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_audit_get_sessionid
	movq	(%r12), %rsi
	leaq	-41(%rbp), %r10
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	pushq	$1
	pushq	%r10
	callq	_tty_audit_log
	addq	$16, %rsp
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_audit_enabled,8,3              ## @audit_enabled
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl=TIOCSTI"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_audit_tiocsti              ; -- Begin function tty_audit_tiocsti
	.p2align	2
_tty_audit_tiocsti:                     ; @tty_audit_tiocsti
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	strb	w1, [sp, #15]
Lloh0:
	adrp	x23, _current@GOTPAGE
Lloh1:
	ldr	x23, [x23, _current@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x8]
	bl	_spin_lock_irq
	ldr	x8, [x23]
	ldr	x9, [x8, #8]
	ldr	w24, [x9]
	ldr	x21, [x9, #8]
	cbz	x21, LBB0_2
; %bb.1:
	add	x0, x21, #12
	bl	_atomic_inc
	ldr	x8, [x23]
LBB0_2:
	ldr	x0, [x8]
	bl	_spin_unlock_irq
	ldr	x8, [x20, #8]
	ldp	w19, w8, [x8]
	ldr	w9, [x20]
	add	w20, w9, w8
	cbz	x21, LBB0_7
; %bb.3:
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	w8, [x21]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x21, #4]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_tty_audit_buf_push_current
LBB0_6:
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x21
	bl	_tty_audit_buf_put
LBB0_7:
Lloh2:
	adrp	x8, _audit_enabled@GOTPAGE
Lloh3:
	ldr	x8, [x8, _audit_enabled@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	w24, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_9
; %bb.8:
	ldr	x0, [x23]
	bl	_audit_get_loginuid
	mov	x21, x0
	ldr	x0, [x23]
	bl	_audit_get_sessionid
	mov	x3, x0
	ldr	x1, [x23]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	add	x6, sp, #15
	mov	x2, x21
	mov	x4, x19
	mov	x5, x20
	mov	w7, #1
	bl	_tty_audit_log
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_audit_enabled,8,3              ; @audit_enabled
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl=TIOCSTI"

.subsections_via_symbols
