	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audit_close
_audit_close:                           ## @audit_close
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_audit_trigger_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_audit_isopen@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_trigger_list@GOTPCREL(%rip), %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_trigger_list@GOTPCREL(%rip), %r14
	movq	_list@GOTPCREL(%rip), %r15
	movq	_M_AUDITTRIGGER@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_TAILQ_REMOVE
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_audit_trigger_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audit_trigger_mtx,4,2          ## @audit_trigger_mtx
	.comm	_audit_isopen,8,3               ## @audit_isopen
	.comm	_trigger_list,4,2               ## @trigger_list
	.comm	_list,4,2                       ## @list
	.comm	_M_AUDITTRIGGER,4,2             ## @M_AUDITTRIGGER
	.no_dead_strip	_audit_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audit_close
_audit_close:                           ; @audit_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x0, _audit_trigger_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _audit_trigger_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x8, _audit_isopen@GOTPAGE
Lloh3:
	ldr	x8, [x8, _audit_isopen@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	adrp	x0, _trigger_list@GOTPAGE
Lloh6:
	ldr	x0, [x0, _trigger_list@GOTPAGEOFF]
	bl	_TAILQ_EMPTY
	cbnz	w0, LBB0_3
; %bb.1:
Lloh7:
	adrp	x19, _trigger_list@GOTPAGE
Lloh8:
	ldr	x19, [x19, _trigger_list@GOTPAGEOFF]
Lloh9:
	adrp	x21, _list@GOTPAGE
Lloh10:
	ldr	x21, [x21, _list@GOTPAGEOFF]
Lloh11:
	adrp	x22, _M_AUDITTRIGGER@GOTPAGE
Lloh12:
	ldr	x22, [x22, _M_AUDITTRIGGER@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TAILQ_FIRST
	mov	x20, x0
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_TAILQ_REMOVE
	ldr	w1, [x22]
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_TAILQ_EMPTY
	cbz	w0, LBB0_2
LBB0_3:
Lloh13:
	adrp	x0, _audit_trigger_mtx@GOTPAGE
Lloh14:
	ldr	x0, [x0, _audit_trigger_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_audit_trigger_mtx,4,2          ; @audit_trigger_mtx
	.comm	_audit_isopen,8,3               ; @audit_isopen
	.comm	_trigger_list,4,2               ; @trigger_list
	.comm	_list,4,2                       ; @list
	.comm	_M_AUDITTRIGGER,4,2             ; @M_AUDITTRIGGER
	.no_dead_strip	_audit_close
.subsections_via_symbols
