	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_audit_push                 ## -- Begin function tty_audit_push
	.p2align	4, 0x90
_tty_audit_push:                        ## @tty_audit_push
	.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
	movq	_current@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_spin_lock_irq
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	xorl	%edi, %edi
	cmpl	$0, 8(%rax)
	sete	%dil
	callq	_likely
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	(%rcx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
LBB0_1:
	movq	8(%rcx), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	leaq	12(%r15), %rdi
	callq	_atomic_inc
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_spin_unlock_irq
	movq	8(%r14), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %r12d
	movl	(%r14), %ebx
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	%r13d, (%r15)
	jne	LBB0_5
## %bb.3:
	addl	%r12d, %ebx
	cmpl	%ebx, 4(%r15)
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_tty_audit_buf_push_current
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_audit_buf_put              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_audit_push                 ; -- Begin function tty_audit_push
	.p2align	2
_tty_audit_push:                        ; @tty_audit_push
	.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	x20, x0
Lloh0:
	adrp	x21, _current@GOTPAGE
Lloh1:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_spin_lock_irq
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_likely
	ldr	x8, [x21]
	cbz	x0, LBB0_2
LBB0_1:
	ldr	x0, [x8]
	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
	b	_spin_unlock_irq
LBB0_2:
	ldr	x9, [x8, #8]
	ldr	x19, [x9]
	cbz	x19, LBB0_1
; %bb.3:
	add	x0, x19, #12
	bl	_atomic_inc
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_spin_unlock_irq
	ldr	x8, [x20, #8]
	ldp	w23, w21, [x8]
	ldr	w22, [x20]
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cmp	w8, w23
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19, #4]
	add	w9, w22, w21
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_tty_audit_buf_push_current
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	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
	b	_tty_audit_buf_put
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
.subsections_via_symbols
