	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audit_pipe_flush
_audit_pipe_flush:                      ## @audit_pipe_flush
	.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	%rdi, %r14
	callq	_AUDIT_PIPE_LOCK_ASSERT
	leaq	24(%r14), %r15
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_ape_queue@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	(%rbx), %rax
	subq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_audit_pipe_entry_free
	decq	8(%r14)
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	$0, 16(%r14)
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_KASSERT                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ape_queue,4,2                  ## @ape_queue
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audit_pipe_free: ap_qbyteslen"

L_.str.1:                               ## @.str.1
	.asciz	"audit_pipe_flush: ap_qbyteslen"

	.no_dead_strip	_audit_pipe_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audit_pipe_flush
_audit_pipe_flush:                      ; @audit_pipe_flush
	.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
	mov	x19, x0
	bl	_AUDIT_PIPE_LOCK_ASSERT
	add	x20, x19, #24
	mov	x0, x20
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _ape_queue@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ape_queue@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_TAILQ_REMOVE
	ldr	x8, [x21]
	ldr	x9, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
	mov	x0, x21
	bl	_audit_pipe_entry_free
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19, #8]
	mov	x0, x20
	bl	_TAILQ_FIRST
	mov	x21, x0
	cbnz	x0, LBB0_2
LBB0_3:
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	b	_KASSERT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ape_queue,4,2                  ; @ape_queue
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audit_pipe_free: ap_qbyteslen"

l_.str.1:                               ; @.str.1
	.asciz	"audit_pipe_flush: ap_qbyteslen"

	.no_dead_strip	_audit_pipe_flush
.subsections_via_symbols
