	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audit_record_write
_audit_record_write:                    ## @audit_record_write
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_AUDIT_WORKER_LOCK_ASSERT
	testq	%r14, %r14
	je	LBB0_38
## %bb.1:
	movq	(%r14), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vfs_busy
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_5:
	movq	%r12, %rdi
	movq	%r12, %rsi
	callq	_VFS_STATFS
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_7:
	movq	(%r12), %rdi
	movq	_AUDIT_HARD_LIMIT_FREE_BLOCKS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_14
## %bb.8:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_14:
	movq	_audit_qctrl@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%esi, %esi
	je	LBB0_18
## %bb.15:
	movl	8(%r12), %ecx
	movl	$100, %eax
	xorl	%edx, %edx
	idivl	%esi
	movl	%eax, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cltq
	cmpq	%rax, %rdi
	jge	LBB0_18
## %bb.16:
	leaq	_audit_record_write.last_lowspace_trigger(%rip), %rdi
	leaq	_audit_record_write.cur_lowspace_trigger(%rip), %rsi
	movl	$1, %edx
	callq	_ppsratecheck
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_AUDIT_TRIGGER_LOW_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_audit_send_trigger
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_18:
	movq	_audit_fstat@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	movq	_audit_size@GOTPCREL(%rip), %rcx
	movq	_audit_file_rotate_wait@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	incl	%edx
	imull	%eax, %edx
	cmpl	%edx, (%rcx)
	jl	LBB0_21
## %bb.20:
	xorl	%eax, %eax
	callq	_AUDIT_WORKER_LOCK_ASSERT
	incl	(%r15)
	movq	_AUDIT_TRIGGER_ROTATE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_audit_send_trigger
LBB0_21:
	movq	_audit_fail_stop@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%rbx, %r15
	je	LBB0_29
## %bb.22:
	movq	_audit_q_len@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_audit_pre_q_len@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	incl	%eax
	movq	_MAX_AUDIT_RECORD_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cltq
	imulq	%rcx, %rax
	movq	16(%r12), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_23
## %bb.24:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_25
LBB0_23:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_25:
	cmpq	(%r12), %rax
	jb	LBB0_29
## %bb.26:
	leaq	_audit_record_write.last_fail(%rip), %rdi
	leaq	_audit_record_write.cur_fail(%rip), %rsi
	movl	$1, %edx
	callq	_ppsratecheck
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_28:
	movq	_audit_in_failure@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_29:
	movq	_UIO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UIO_SYSSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_IO_APPEND@GOTPCREL(%rip), %rax
	movq	_IO_UNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movq	%r13, 8(%rsp)
	movl	%ecx, (%rsp)
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_vn_rdwr
	movl	%eax, %r15d
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_30
LBB0_9:
	movq	_audit_fail_stop@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_audit_worker_sync_vp
LBB0_11:
	movq	_AUDIT_TRIGGER_NO_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_audit_send_trigger
	movq	_audit_trail_suspended@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_audit_syscalls_enabled_update
LBB0_12:
	movq	_audit_panic_on_write_fail@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_35
## %bb.13:
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_audit_worker_sync_vp
	jmp	LBB0_37
LBB0_35:
	leaq	_audit_record_write.last_fail(%rip), %rdi
	leaq	_audit_record_write.cur_fail(%rip), %rsi
	movl	$1, %edx
	callq	_ppsratecheck
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_37:
	testq	%r12, %r12
	je	LBB0_38
LBB0_34:
	movq	%r12, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vfs_unbusy                     ## TAILCALL
LBB0_38:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	testl	%r15d, %r15d
	jne	LBB0_12
## %bb.31:
	xorl	%eax, %eax
	callq	_AUDIT_WORKER_LOCK_ASSERT
	movq	_audit_size@GOTPCREL(%rip), %rax
	addl	%ebx, (%rax)
	movq	_audit_in_failure@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_34
## %bb.32:
	movq	_audit_q_len@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_audit_pre_q_len@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jne	LBB0_34
## %bb.33:
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_audit_worker_sync_vp
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_audit_record_write.last_lowspace_trigger,4,2 ## @audit_record_write.last_lowspace_trigger
.zerofill __DATA,__bss,_audit_record_write.last_fail,4,2 ## @audit_record_write.last_fail
.zerofill __DATA,__bss,_audit_record_write.cur_lowspace_trigger,4,2 ## @audit_record_write.cur_lowspace_trigger
.zerofill __DATA,__bss,_audit_record_write.cur_fail,4,2 ## @audit_record_write.cur_fail
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AUDIT_HARD_LIMIT_FREE_BLOCKS,8,3 ## @AUDIT_HARD_LIMIT_FREE_BLOCKS
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_audit_qctrl,4,2                ## @audit_qctrl
	.comm	_AUDIT_TRIGGER_LOW_SPACE,4,2    ## @AUDIT_TRIGGER_LOW_SPACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: disk space low (< %d%% free) on audit log file-system\n"

	.comm	_audit_fstat,4,2                ## @audit_fstat
	.comm	_audit_size,4,2                 ## @audit_size
	.comm	_audit_file_rotate_wait,4,2     ## @audit_file_rotate_wait
	.comm	_AUDIT_TRIGGER_ROTATE_KERNEL,4,2 ## @AUDIT_TRIGGER_ROTATE_KERNEL
	.comm	_audit_fail_stop,8,3            ## @audit_fail_stop
	.comm	_audit_q_len,4,2                ## @audit_q_len
	.comm	_audit_pre_q_len,4,2            ## @audit_pre_q_len
	.comm	_MAX_AUDIT_RECORD_SIZE,4,2      ## @MAX_AUDIT_RECORD_SIZE
	.comm	_audit_in_failure,4,2           ## @audit_in_failure
	.comm	_UIO_WRITE,4,2                  ## @UIO_WRITE
	.comm	_UIO_SYSSPACE,4,2               ## @UIO_SYSSPACE
	.comm	_IO_APPEND,4,2                  ## @IO_APPEND
	.comm	_IO_UNIT,4,2                    ## @IO_UNIT
	.comm	_curthread,4,2                  ## @curthread
L_.str.2:                               ## @.str.2
	.asciz	"Audit store overflow; record queue drained."

L_.str.3:                               ## @.str.3
	.asciz	"Audit log space exhausted and fail-stop set."

	.comm	_AUDIT_TRIGGER_NO_SPACE,4,2     ## @AUDIT_TRIGGER_NO_SPACE
	.comm	_audit_trail_suspended,4,2      ## @audit_trail_suspended
	.comm	_audit_panic_on_write_fail,8,3  ## @audit_panic_on_write_fail
L_.str.4:                               ## @.str.4
	.asciz	"audit_worker: write error %d\n"

L_str:                                  ## @str
	.asciz	"audit_record_write: free space below size of audit queue, failing stop"

	.no_dead_strip	_audit_record_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audit_record_write
_audit_record_write:                    ; @audit_record_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	bl	_AUDIT_WORKER_LOCK_ASSERT
	cbz	x20, LBB0_31
; %bb.1:
	ldr	x19, [x20]
	cbz	x19, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_vfs_busy
	cbz	w0, LBB0_5
; %bb.3:
	mov	x24, x0
	mov	x19, #0
	b	LBB0_25
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	b	LBB0_25
LBB0_5:
	mov	x0, x19
	mov	x1, x19
	bl	_VFS_STATFS
	cbz	w0, LBB0_7
; %bb.6:
	mov	x24, x0
	b	LBB0_25
LBB0_7:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _AUDIT_HARD_LIMIT_FREE_BLOCKS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUDIT_HARD_LIMIT_FREE_BLOCKS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x25, _audit_fail_stop@GOTPAGE
Lloh7:
	ldr	x25, [x25, _audit_fail_stop@GOTPAGEOFF]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	b	LBB0_22
LBB0_9:
Lloh11:
	adrp	x24, _audit_qctrl@GOTPAGE
Lloh12:
	ldr	x24, [x24, _audit_qctrl@GOTPAGEOFF]
	ldr	w9, [x24]
	cbz	w9, LBB0_13
; %bb.10:
	ldr	w10, [x19, #8]
	mov	w11, #100
	sdiv	w9, w11, w9
	sdiv	w9, w10, w9
	cmp	x8, w9, sxtw
	b.ge	LBB0_13
; %bb.11:
Lloh13:
	adrp	x0, _audit_record_write.last_lowspace_trigger@PAGE
Lloh14:
	add	x0, x0, _audit_record_write.last_lowspace_trigger@PAGEOFF
Lloh15:
	adrp	x1, _audit_record_write.cur_lowspace_trigger@PAGE
Lloh16:
	add	x1, x1, _audit_record_write.cur_lowspace_trigger@PAGEOFF
	mov	w2, #1
	bl	_ppsratecheck
	cbz	x0, LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _AUDIT_TRIGGER_LOW_SPACE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AUDIT_TRIGGER_LOW_SPACE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_audit_send_trigger
	ldr	w8, [x24]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_13:
Lloh22:
	adrp	x8, _audit_fstat@GOTPAGE
Lloh23:
	ldr	x8, [x8, _audit_fstat@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cbz	w8, LBB0_16
; %bb.14:
Lloh25:
	adrp	x9, _audit_size@GOTPAGE
Lloh26:
	ldr	x9, [x9, _audit_size@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x24, _audit_file_rotate_wait@GOTPAGE
Lloh29:
	ldr	x24, [x24, _audit_file_rotate_wait@GOTPAGEOFF]
	ldr	w10, [x24]
	madd	w8, w8, w10, w8
	cmp	w9, w8
	b.lt	LBB0_16
; %bb.15:
	bl	_AUDIT_WORKER_LOCK_ASSERT
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
Lloh30:
	adrp	x8, _AUDIT_TRIGGER_ROTATE_KERNEL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AUDIT_TRIGGER_ROTATE_KERNEL@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_audit_send_trigger
LBB0_16:
	ldr	x8, [x25]
	cbz	x8, LBB0_21
; %bb.17:
Lloh33:
	adrp	x8, _audit_q_len@GOTPAGE
Lloh34:
	ldr	x8, [x8, _audit_q_len@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _audit_pre_q_len@GOTPAGE
Lloh37:
	ldr	x9, [x9, _audit_pre_q_len@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	add	w8, w8, w9
	add	w8, w8, #1
Lloh39:
	adrp	x9, _MAX_AUDIT_RECORD_SIZE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MAX_AUDIT_RECORD_SIZE@GOTPAGEOFF]
Lloh41:
	ldrsw	x9, [x9]
	sxtw	x8, w8
	mul	x8, x8, x9
	ldr	x9, [x19, #16]
	udiv	x8, x8, x9
	ldr	x9, [x19]
	cmp	x8, x9
	b.lo	LBB0_21
; %bb.18:
Lloh42:
	adrp	x0, _audit_record_write.last_fail@PAGE
Lloh43:
	add	x0, x0, _audit_record_write.last_fail@PAGEOFF
Lloh44:
	adrp	x1, _audit_record_write.cur_fail@PAGE
Lloh45:
	add	x1, x1, _audit_record_write.cur_fail@PAGEOFF
	mov	w24, #1
	mov	w2, #1
	bl	_ppsratecheck
	cbz	x0, LBB0_20
; %bb.19:
Lloh46:
	adrp	x0, l_str@PAGE
Lloh47:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_20:
Lloh48:
	adrp	x8, _audit_in_failure@GOTPAGE
Lloh49:
	ldr	x8, [x8, _audit_in_failure@GOTPAGEOFF]
Lloh50:
	str	w24, [x8]
LBB0_21:
Lloh51:
	adrp	x8, _UIO_WRITE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _UIO_WRITE@GOTPAGEOFF]
Lloh53:
	adrp	x9, _UIO_SYSSPACE@GOTPAGE
Lloh54:
	ldr	x9, [x9, _UIO_SYSSPACE@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
Lloh56:
	ldr	w5, [x9]
Lloh57:
	adrp	x8, _IO_APPEND@GOTPAGE
Lloh58:
	ldr	x8, [x8, _IO_APPEND@GOTPAGEOFF]
Lloh59:
	adrp	x9, _IO_UNIT@GOTPAGE
Lloh60:
	ldr	x9, [x9, _IO_UNIT@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
Lloh62:
	ldr	w9, [x9]
	orr	w6, w9, w8
Lloh63:
	adrp	x8, _curthread@GOTPAGE
Lloh64:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	stp	xzr, xzr, [sp]
	str	w8, [sp, #16]
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	mov	w4, #0
	mov	x7, x22
	bl	_vn_rdwr
	mov	x24, x0
Lloh66:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_32
LBB0_22:
	ldr	x8, [x25]
	cbz	x8, LBB0_24
; %bb.23:
Lloh69:
	adrp	x2, l_.str.3@PAGE
Lloh70:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_audit_worker_sync_vp
LBB0_24:
Lloh71:
	adrp	x8, _AUDIT_TRIGGER_NO_SPACE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _AUDIT_TRIGGER_NO_SPACE@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	bl	_audit_send_trigger
Lloh74:
	adrp	x8, _audit_trail_suspended@GOTPAGE
Lloh75:
	ldr	x8, [x8, _audit_trail_suspended@GOTPAGEOFF]
	mov	w9, #1
Lloh76:
	str	w9, [x8]
	bl	_audit_syscalls_enabled_update
LBB0_25:
Lloh77:
	adrp	x8, _audit_panic_on_write_fail@GOTPAGE
Lloh78:
	ldr	x8, [x8, _audit_panic_on_write_fail@GOTPAGEOFF]
Lloh79:
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.26:
	str	x24, [sp]
Lloh80:
	adrp	x2, l_.str.4@PAGE
Lloh81:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_audit_worker_sync_vp
	b	LBB0_29
LBB0_27:
Lloh82:
	adrp	x0, _audit_record_write.last_fail@PAGE
Lloh83:
	add	x0, x0, _audit_record_write.last_fail@PAGEOFF
Lloh84:
	adrp	x1, _audit_record_write.cur_fail@PAGE
Lloh85:
	add	x1, x1, _audit_record_write.cur_fail@PAGEOFF
	mov	w2, #1
	bl	_ppsratecheck
	cbz	x0, LBB0_29
; %bb.28:
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh86:
	adrp	x0, l_.str.4@PAGE
Lloh87:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_29:
	cbz	x19, LBB0_31
LBB0_30:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vfs_unbusy
LBB0_31:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_32:
	cbnz	w24, LBB0_25
; %bb.33:
	bl	_AUDIT_WORKER_LOCK_ASSERT
Lloh88:
	adrp	x8, _audit_size@GOTPAGE
Lloh89:
	ldr	x8, [x8, _audit_size@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w21
	str	w9, [x8]
Lloh90:
	adrp	x8, _audit_in_failure@GOTPAGE
Lloh91:
	ldr	x8, [x8, _audit_in_failure@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	cbz	w8, LBB0_30
; %bb.34:
Lloh93:
	adrp	x8, _audit_q_len@GOTPAGE
Lloh94:
	ldr	x8, [x8, _audit_q_len@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
Lloh96:
	adrp	x9, _audit_pre_q_len@GOTPAGE
Lloh97:
	ldr	x9, [x9, _audit_pre_q_len@GOTPAGEOFF]
Lloh98:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cbnz	w8, LBB0_30
; %bb.35:
Lloh99:
	adrp	x2, l_.str.2@PAGE
Lloh100:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_audit_worker_sync_vp
	b	LBB0_30
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh61
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh55
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotStr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpAdd	Lloh99, Lloh100
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_audit_record_write.last_lowspace_trigger,4,2 ; @audit_record_write.last_lowspace_trigger
.zerofill __DATA,__bss,_audit_record_write.last_fail,4,2 ; @audit_record_write.last_fail
.zerofill __DATA,__bss,_audit_record_write.cur_lowspace_trigger,4,2 ; @audit_record_write.cur_lowspace_trigger
.zerofill __DATA,__bss,_audit_record_write.cur_fail,4,2 ; @audit_record_write.cur_fail
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AUDIT_HARD_LIMIT_FREE_BLOCKS,8,3 ; @AUDIT_HARD_LIMIT_FREE_BLOCKS
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_audit_qctrl,4,2                ; @audit_qctrl
	.comm	_AUDIT_TRIGGER_LOW_SPACE,4,2    ; @AUDIT_TRIGGER_LOW_SPACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: disk space low (< %d%% free) on audit log file-system\n"

	.comm	_audit_fstat,4,2                ; @audit_fstat
	.comm	_audit_size,4,2                 ; @audit_size
	.comm	_audit_file_rotate_wait,4,2     ; @audit_file_rotate_wait
	.comm	_AUDIT_TRIGGER_ROTATE_KERNEL,4,2 ; @AUDIT_TRIGGER_ROTATE_KERNEL
	.comm	_audit_fail_stop,8,3            ; @audit_fail_stop
	.comm	_audit_q_len,4,2                ; @audit_q_len
	.comm	_audit_pre_q_len,4,2            ; @audit_pre_q_len
	.comm	_MAX_AUDIT_RECORD_SIZE,4,2      ; @MAX_AUDIT_RECORD_SIZE
	.comm	_audit_in_failure,4,2           ; @audit_in_failure
	.comm	_UIO_WRITE,4,2                  ; @UIO_WRITE
	.comm	_UIO_SYSSPACE,4,2               ; @UIO_SYSSPACE
	.comm	_IO_APPEND,4,2                  ; @IO_APPEND
	.comm	_IO_UNIT,4,2                    ; @IO_UNIT
	.comm	_curthread,4,2                  ; @curthread
l_.str.2:                               ; @.str.2
	.asciz	"Audit store overflow; record queue drained."

l_.str.3:                               ; @.str.3
	.asciz	"Audit log space exhausted and fail-stop set."

	.comm	_AUDIT_TRIGGER_NO_SPACE,4,2     ; @AUDIT_TRIGGER_NO_SPACE
	.comm	_audit_trail_suspended,4,2      ; @audit_trail_suspended
	.comm	_audit_panic_on_write_fail,8,3  ; @audit_panic_on_write_fail
l_.str.4:                               ; @.str.4
	.asciz	"audit_worker: write error %d\n"

l_str:                                  ; @str
	.asciz	"audit_record_write: free space below size of audit queue, failing stop"

	.no_dead_strip	_audit_record_write
.subsections_via_symbols
