	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audit_syscall_enter            ## -- Begin function audit_syscall_enter
	.p2align	4, 0x90
_audit_syscall_enter:                   ## @audit_syscall_enter
	.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	%rsi, %r12
	movl	%edi, %ebx
	xorl	%edi, %edi
	cmpq	$0, 8(%rsi)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_TDP_AUDITREC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r12), %eax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	24(%r12), %rax
	movq	(%rax), %rax
	cmpw	%bx, (%rax)
	jbe	LBB0_13
## %bb.1:
	movq	8(%rax), %rax
	movzwl	%bx, %ecx
	movq	(%rax,%rcx,8), %r14
	movq	_AUE_NULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_13
## %bb.2:
	movq	16(%r12), %rbx
	movq	(%rbx), %r15
	movq	_AU_DEFAUDITID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_3
## %bb.4:
	movq	_audit_nae_mask@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	addq	$8, %rbx
LBB0_5:
	movq	%r14, %rdi
	callq	_au_event_class
	movl	%eax, %r13d
	movq	_AU_PRS_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_au_preselect
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	_audit_in_failure@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_TDP_AUDITREC@GOTPCREL(%rip), %rbx
	je	LBB0_10
## %bb.7:
	movq	_PRIV_AUDIT_FAILSTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_priv_check
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_audit_fail_cv@GOTPCREL(%rip), %rdi
	movq	_audit_mtx@GOTPCREL(%rip), %rsi
	callq	_cv_wait
	leaq	L_.str.2(%rip), %rdi
	callq	_panic
	jmp	LBB0_10
LBB0_9:
	movq	_AU_PRS_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	xorl	%r8d, %r8d
	callq	_audit_pipe_preselect
	testq	%rax, %rax
	movq	_TDP_AUDITREC@GOTPCREL(%rip), %rbx
	je	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_audit_new
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	(%rbx), %eax
	orl	%eax, (%r12)
	jmp	LBB0_13
LBB0_12:
	movq	$0, 8(%r12)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audit_syscall_enter: td->td_ar != NULL"

	.comm	_TDP_AUDITREC,4,2               ## @TDP_AUDITREC
L_.str.1:                               ## @.str.1
	.asciz	"audit_syscall_enter: TDP_AUDITREC set"

	.comm	_AUE_NULL,8,3                   ## @AUE_NULL
	.comm	_AU_DEFAUDITID,8,3              ## @AU_DEFAUDITID
	.comm	_audit_nae_mask,4,2             ## @audit_nae_mask
	.comm	_AU_PRS_BOTH,4,2                ## @AU_PRS_BOTH
	.comm	_audit_in_failure,8,3           ## @audit_in_failure
	.comm	_PRIV_AUDIT_FAILSTOP,4,2        ## @PRIV_AUDIT_FAILSTOP
	.comm	_audit_fail_cv,4,2              ## @audit_fail_cv
	.comm	_audit_mtx,4,2                  ## @audit_mtx
L_.str.2:                               ## @.str.2
	.asciz	"audit_failing_stop: thread continued"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audit_syscall_enter            ; -- Begin function audit_syscall_enter
	.p2align	2
_audit_syscall_enter:                   ; @audit_syscall_enter
	.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, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	cmp	x8, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w8, [x19]
Lloh2:
	adrp	x24, _TDP_AUDITREC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TDP_AUDITREC@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	cset	w0, eq
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldrh	w9, [x8]
	cmp	w9, w20
	b.ls	LBB0_10
; %bb.1:
	ldr	x8, [x8, #8]
	ldr	x20, [x8, w20, uxtw #3]
Lloh6:
	adrp	x8, _AUE_NULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUE_NULL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_10
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x21, [x8], #8
Lloh9:
	adrp	x9, _AU_DEFAUDITID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AU_DEFAUDITID@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _audit_nae_mask@GOTPAGE
Lloh13:
	ldr	x10, [x10, _audit_nae_mask@GOTPAGEOFF]
	cmp	x21, x9
	csel	x23, x10, x8, eq
	mov	x0, x20
	bl	_au_event_class
	mov	x22, x0
Lloh14:
	adrp	x25, _AU_PRS_BOTH@GOTPAGE
Lloh15:
	ldr	x25, [x25, _AU_PRS_BOTH@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_au_preselect
	cbz	x0, LBB0_6
; %bb.3:
Lloh16:
	adrp	x8, _audit_in_failure@GOTPAGE
Lloh17:
	ldr	x8, [x8, _audit_in_failure@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
Lloh19:
	adrp	x8, _PRIV_AUDIT_FAILSTOP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PRIV_AUDIT_FAILSTOP@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_priv_check
	cbz	x0, LBB0_7
; %bb.5:
Lloh22:
	adrp	x0, _audit_fail_cv@GOTPAGE
Lloh23:
	ldr	x0, [x0, _audit_fail_cv@GOTPAGEOFF]
Lloh24:
	adrp	x1, _audit_mtx@GOTPAGE
Lloh25:
	ldr	x1, [x1, _audit_mtx@GOTPAGEOFF]
	bl	_cv_wait
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_panic
	b	LBB0_7
LBB0_6:
	ldr	w3, [x25]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	w4, #0
	bl	_audit_pipe_preselect
	cbz	x0, LBB0_9
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_audit_new
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	str	xzr, [x19, #8]
LBB0_10:
	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
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audit_syscall_enter: td->td_ar != NULL"

	.comm	_TDP_AUDITREC,4,2               ; @TDP_AUDITREC
l_.str.1:                               ; @.str.1
	.asciz	"audit_syscall_enter: TDP_AUDITREC set"

	.comm	_AUE_NULL,8,3                   ; @AUE_NULL
	.comm	_AU_DEFAUDITID,8,3              ; @AU_DEFAUDITID
	.comm	_audit_nae_mask,4,2             ; @audit_nae_mask
	.comm	_AU_PRS_BOTH,4,2                ; @AU_PRS_BOTH
	.comm	_audit_in_failure,8,3           ; @audit_in_failure
	.comm	_PRIV_AUDIT_FAILSTOP,4,2        ; @PRIV_AUDIT_FAILSTOP
	.comm	_audit_fail_cv,4,2              ; @audit_fail_cv
	.comm	_audit_mtx,4,2                  ; @audit_mtx
l_.str.2:                               ; @.str.2
	.asciz	"audit_failing_stop: thread continued"

.subsections_via_symbols
