	.file	"extr_audit.c_audit_syscall_enter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"audit_syscall_enter: td->td_ar != NULL"
	.align 8
.LC1:
	.string	"audit_syscall_enter: TDP_AUDITREC set"
	.align 8
.LC2:
	.string	"audit_failing_stop: thread continued"
	.text
	.p2align 4
	.globl	audit_syscall_enter
	.type	audit_syscall_enter, @function
audit_syscall_enter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movzx	r12d, di
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	QWORD PTR 8[rsi], 0
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	sete	dil
	call	KASSERT@PLT
	mov	eax, DWORD PTR [rbx]
	xor	edi, edi
	test	DWORD PTR TDP_AUDITREC[rip], eax
	sete	dil
	lea	rsi, .LC1[rip]
	call	KASSERT@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	rax, QWORD PTR [rax]
	cmp	WORD PTR [rax], bp
	jbe	.L1
	mov	rax, QWORD PTR 8[rax]
	mov	rbp, QWORD PTR [rax+r12*8]
	cmp	QWORD PTR AUE_NULL[rip], rbp
	je	.L1
	mov	rax, QWORD PTR 16[rbx]
	lea	r13, audit_nae_mask[rip]
	mov	r14, QWORD PTR [rax]
	cmp	QWORD PTR AU_DEFAUDITID[rip], r14
	je	.L5
	lea	r13, 8[rax]
.L5:
	mov	rdi, rbp
	call	au_event_class@PLT
	mov	ecx, DWORD PTR AU_PRS_BOTH[rip]
	mov	rdx, r13
	mov	rdi, rbp
	mov	esi, eax
	mov	r12d, eax
	call	au_preselect@PLT
	test	rax, rax
	je	.L6
	cmp	QWORD PTR audit_in_failure[rip], 0
	jne	.L18
.L8:
	mov	rsi, rbx
	mov	rdi, rbp
	call	audit_new@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR TDP_AUDITREC[rip]
	or	DWORD PTR [rbx], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	ecx, DWORD PTR AU_PRS_BOTH[rip]
	xor	r8d, r8d
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r14
	call	audit_pipe_preselect@PLT
	test	rax, rax
	jne	.L8
	mov	QWORD PTR 8[rbx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	esi, DWORD PTR PRIV_AUDIT_FAILSTOP[rip]
	mov	rdi, rbx
	call	priv_check@PLT
	test	rax, rax
	je	.L8
	lea	rsi, audit_mtx[rip]
	lea	rdi, audit_fail_cv[rip]
	call	cv_wait@PLT
	lea	rdi, .LC2[rip]
	call	panic@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	audit_syscall_enter, .-audit_syscall_enter
	.comm	audit_nae_mask,4,4
	.comm	audit_mtx,4,4
	.comm	audit_in_failure,8,8
	.comm	audit_fail_cv,4,4
	.comm	TDP_AUDITREC,4,4
	.comm	PRIV_AUDIT_FAILSTOP,4,4
	.comm	AU_PRS_BOTH,4,4
	.comm	AU_DEFAUDITID,8,8
	.comm	AUE_NULL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_audit.c_audit_syscall_enter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"audit_syscall_enter: td->td_ar != NULL\000"
	.align	2
.LC1:
	.ascii	"audit_syscall_enter: TDP_AUDITREC set\000"
	.align	2
.LC2:
	.ascii	"audit_failing_stop: thread continued\000"
	.text
	.align	2
	.global	audit_syscall_enter
	.syntax unified
	.arm
	.fpu softvfp
	.type	audit_syscall_enter, %function
audit_syscall_enter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	clz	r0, r3
	mov	r4, r1
	ldr	r7, .L22
	ldr	r1, .L22+4
	sub	sp, sp, #8
	lsr	r0, r0, #5
	bl	KASSERT
	ldr	r2, [r4]
	ldr	r3, [r7]
	ldr	r1, .L22+8
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
	bl	KASSERT
	ldr	r3, [r4, #12]
	ldr	r3, [r3]
	ldrh	r2, [r3]
	cmp	r2, r5
	bls	.L1
	ldr	r2, [r3, #4]
	ldr	r3, .L22+12
	ldr	r5, [r2, r5, lsl #2]
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L1
	ldr	r2, [r4, #8]
	ldr	r3, .L22+16
	ldr	r9, [r2]
	ldr	r3, [r3]
	mov	r0, r5
	cmp	r3, r9
	ldreq	r6, .L22+20
	addne	r6, r2, #4
	bl	au_event_class
	ldr	r10, .L22+24
	mov	r1, r0
	mov	r8, r0
	mov	r2, r6
	mov	r0, r5
	ldr	r3, [r10]
	bl	au_preselect
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L22+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
.L8:
	mov	r0, r5
	mov	r1, r4
	bl	audit_new
	cmp	r0, #0
	ldrne	r2, [r7]
	ldrne	r3, [r4]
	str	r0, [r4, #4]
	orrne	r3, r3, r2
	strne	r3, [r4]
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	str	r0, [sp]
	mov	r2, r8
	mov	r0, r9
	mov	r1, r5
	ldr	r3, [r10]
	bl	audit_pipe_preselect
	cmp	r0, #0
	streq	r0, [r4, #4]
	beq	.L1
	b	.L8
.L21:
	ldr	r3, .L22+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	priv_check
	cmp	r0, #0
	beq	.L8
	ldr	r1, .L22+36
	ldr	r0, .L22+40
	bl	cv_wait
	ldr	r0, .L22+44
	bl	panic
	b	.L8
.L23:
	.align	2
.L22:
	.word	TDP_AUDITREC
	.word	.LC0
	.word	.LC1
	.word	AUE_NULL
	.word	AU_DEFAUDITID
	.word	audit_nae_mask
	.word	AU_PRS_BOTH
	.word	audit_in_failure
	.word	PRIV_AUDIT_FAILSTOP
	.word	audit_mtx
	.word	audit_fail_cv
	.word	.LC2
	.size	audit_syscall_enter, .-audit_syscall_enter
	.comm	audit_nae_mask,4,4
	.comm	audit_mtx,4,4
	.comm	audit_in_failure,4,4
	.comm	audit_fail_cv,4,4
	.comm	TDP_AUDITREC,4,4
	.comm	PRIV_AUDIT_FAILSTOP,4,4
	.comm	AU_PRS_BOTH,4,4
	.comm	AU_DEFAUDITID,4,4
	.comm	AUE_NULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
