	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_all
_close_all:                             ## @close_all
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_TIMESTAMP_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_AUE_audit_shutdown@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_auditd_gen_record
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %edi
	callq	_auditd_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_auditd_log_err
LBB0_2:
	movq	_AUC_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	-36(%rbp), %rdi
	callq	_audit_set_cond
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_auditd_log_err
	movl	$1, %r15d
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movq	_AUD_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_auditd_set_state
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_getTSstr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_close_lastfile
LBB0_7:
	movq	_lastfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_free
LBB0_9:
	xorl	%eax, %eax
	callq	_close_misc
	movq	%rax, %rbx
	addl	%r15d, %ebx
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_auditd_log_err
	xorl	%eax, %eax
	callq	_audit_warn_postsigterm
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	callq	_auditd_log_info
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMESTAMP_LEN,4,2              ## @TIMESTAMP_LEN
	.comm	_AUE_audit_shutdown,4,2         ## @AUE_audit_shutdown
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auditd_gen_record(AUE_audit_shutdown) %s: %m"

	.comm	_AUC_DISABLED,4,2               ## @AUC_DISABLED
L_.str.1:                               ## @.str.1
	.asciz	"Disabling audit failed! : %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_AUD_STATE_DISABLED,4,2         ## @AUD_STATE_DISABLED
	.comm	_lastfile,8,3                   ## @lastfile
L_.str.2:                               ## @.str.2
	.asciz	"Could not unregister"

L_.str.3:                               ## @.str.3
	.asciz	"Finished"

	.no_dead_strip	_close_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_all
_close_all:                             ; @close_all
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _TIMESTAMP_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIMESTAMP_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w20, w8, #1
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x8, _AUE_audit_shutdown@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AUE_audit_shutdown@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_auditd_gen_record
	cbz	w0, LBB0_2
; %bb.1:
	bl	_auditd_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_auditd_log_err
	add	sp, sp, #16
LBB0_2:
Lloh13:
	adrp	x8, _AUC_DISABLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AUC_DISABLED@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	stur	w8, [x29, #-44]
	sub	x0, x29, #44
	bl	_audit_set_cond
	cbz	w0, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_auditd_log_err
	add	sp, sp, #16
	mov	w21, #1
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
Lloh21:
	adrp	x8, _AUD_STATE_DISABLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AUD_STATE_DISABLED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_auditd_set_state
	mov	x1, x19
	mov	x2, x20
	bl	_getTSstr
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_close_lastfile
LBB0_7:
Lloh24:
	adrp	x8, _lastfile@GOTPAGE
Lloh25:
	ldr	x8, [x8, _lastfile@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_free
LBB0_9:
	bl	_close_misc
	adds	w19, w0, w21
	b.eq	LBB0_11
; %bb.10:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_auditd_log_err
	bl	_audit_warn_postsigterm
LBB0_11:
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_auditd_log_info
	ldur	x8, [x29, #-40]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	sub	sp, x29, #32
	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
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMESTAMP_LEN,4,2              ; @TIMESTAMP_LEN
	.comm	_AUE_audit_shutdown,4,2         ; @AUE_audit_shutdown
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auditd_gen_record(AUE_audit_shutdown) %s: %m"

	.comm	_AUC_DISABLED,4,2               ; @AUC_DISABLED
l_.str.1:                               ; @.str.1
	.asciz	"Disabling audit failed! : %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_AUD_STATE_DISABLED,4,2         ; @AUD_STATE_DISABLED
	.comm	_lastfile,8,3                   ; @lastfile
l_.str.2:                               ; @.str.2
	.asciz	"Could not unregister"

l_.str.3:                               ; @.str.3
	.asciz	"Finished"

	.no_dead_strip	_close_all
.subsections_via_symbols
