	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audit_worker
_audit_worker:                          ## @audit_worker
	.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
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_TAILQ_INIT
	movq	_audit_mtx@GOTPCREL(%rip), %r12
	movq	_audit_q@GOTPCREL(%rip), %r13
	movq	_k_q@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	%r12, %rdi
	callq	_mtx_lock
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mtx_assert
	movq	%r13, %rdi
	callq	_TAILQ_EMPTY
	testq	%rax, %rax
	movq	_audit_worker_cv@GOTPCREL(%rip), %rbx
	je	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_cv_wait
	movq	%r13, %rdi
	callq	_TAILQ_EMPTY
	testq	%rax, %rax
	jne	LBB0_10
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r12
	xorl	%ebx, %ebx
	movq	_audit_q_len@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_TAILQ_REMOVE
	movq	(%r15), %rax
	decq	%rax
	xorl	%ecx, %ecx
	movq	_audit_qctrl@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	%rax, (%r15)
	sete	%cl
	addl	%ecx, %ebx
	movl	(%r14), %edx
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%r13, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_audit_watermark_cv@GOTPCREL(%rip), %rdi
	callq	_cv_broadcast
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_audit_mtx@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_mtx_unlock
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_audit_worker_process_record
	movq	%rbx, %rdi
	callq	_audit_free
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_audit_mtx,4,2                  ## @audit_mtx
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_audit_q,4,2                    ## @audit_q
	.comm	_audit_worker_cv,4,2            ## @audit_worker_cv
	.comm	_k_q,4,2                        ## @k_q
	.comm	_audit_q_len,8,3                ## @audit_q_len
	.comm	_audit_qctrl,8,3                ## @audit_qctrl
	.comm	_audit_watermark_cv,4,2         ## @audit_watermark_cv
	.no_dead_strip	_audit_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audit_worker
_audit_worker:                          ; @audit_worker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	add	x0, sp, #8
	bl	_TAILQ_INIT
Lloh0:
	adrp	x19, _audit_mtx@GOTPAGE
Lloh1:
	ldr	x19, [x19, _audit_mtx@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MA_OWNED@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MA_OWNED@GOTPAGEOFF]
Lloh4:
	adrp	x20, _audit_q@GOTPAGE
Lloh5:
	ldr	x20, [x20, _audit_q@GOTPAGEOFF]
Lloh6:
	adrp	x25, _k_q@GOTPAGE
Lloh7:
	ldr	x25, [x25, _k_q@GOTPAGEOFF]
Lloh8:
	adrp	x26, _audit_q_len@GOTPAGE
Lloh9:
	ldr	x26, [x26, _audit_q_len@GOTPAGEOFF]
Lloh10:
	adrp	x27, _audit_qctrl@GOTPAGE
Lloh11:
	ldr	x27, [x27, _audit_qctrl@GOTPAGEOFF]
Lloh12:
	adrp	x21, _audit_watermark_cv@GOTPAGE
Lloh13:
	ldr	x21, [x21, _audit_watermark_cv@GOTPAGEOFF]
Lloh14:
	adrp	x22, _audit_worker_cv@GOTPAGE
Lloh15:
	ldr	x22, [x22, _audit_worker_cv@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x19
	bl	_mtx_lock
	ldr	w1, [x24]
	mov	x0, x19
	bl	_mtx_assert
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_TAILQ_EMPTY
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x22
	mov	x1, x19
	bl	_cv_wait
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	mov	w28, #0
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x23
	bl	_TAILQ_REMOVE
	ldr	x8, [x26]
	sub	x8, x8, #1
	str	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	cinc	w28, w28, eq
	ldr	w2, [x25]
	add	x0, sp, #8
	mov	x1, x23
	bl	_TAILQ_INSERT_TAIL
	mov	x0, x20
	bl	_TAILQ_FIRST
	mov	x23, x0
	cbnz	x0, LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w28, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_cv_broadcast
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_mtx_unlock
	add	x0, sp, #8
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
LBB0_11:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x25]
	add	x0, sp, #8
	mov	x1, x23
	bl	_TAILQ_REMOVE
	mov	x0, x23
	bl	_audit_worker_process_record
	mov	x0, x23
	bl	_audit_free
	add	x0, sp, #8
	bl	_TAILQ_FIRST
	mov	x23, x0
	cbnz	x0, LBB0_11
	b	LBB0_1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_audit_mtx,4,2                  ; @audit_mtx
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_audit_q,4,2                    ; @audit_q
	.comm	_audit_worker_cv,4,2            ; @audit_worker_cv
	.comm	_k_q,4,2                        ; @k_q
	.comm	_audit_q_len,8,3                ; @audit_q_len
	.comm	_audit_qctrl,8,3                ; @audit_qctrl
	.comm	_audit_watermark_cv,4,2         ; @audit_watermark_cv
	.no_dead_strip	_audit_worker
.subsections_via_symbols
