	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audit_pipe_append
_audit_pipe_append:                     ## @audit_pipe_append
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_AUDIT_PIPE_LOCK_ASSERT
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jge	LBB0_4
## %bb.1:
	movq	_M_AUDIT_PIPE_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %r13
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r12
	movq	_M_AUDIT_PIPE_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	%r14d, %edi
	callq	_malloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memmove
	movl	%r14d, (%r12)
	leaq	40(%rbx), %rdi
	movq	_ape_queue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_TAILQ_INSERT_TAIL
	incl	36(%rbx)
	incq	(%rbx)
	movl	(%r12), %eax
	addl	%eax, 16(%rbx)
	leaq	32(%rbx), %r14
	movq	_PSOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_selwakeuppri
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_KNOTE_LOCKED
	movq	_AUDIT_PIPE_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%rbx)
	je	LBB0_7
## %bb.6:
	leaq	28(%rbx), %rdi
	movq	_SIGIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_pgsigio
LBB0_7:
	addq	$24, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cv_broadcast                   ## TAILCALL
LBB0_3:
	movq	_M_AUDIT_PIPE_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_free
LBB0_4:
	incl	44(%rbx)
	movq	_audit_pipe_drops@GOTPCREL(%rip), %rax
	incl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audit_pipe_drops,4,2           ## @audit_pipe_drops
	.comm	_M_AUDIT_PIPE_ENTRY,4,2         ## @M_AUDIT_PIPE_ENTRY
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_ape_queue,4,2                  ## @ape_queue
	.comm	_PSOCK,4,2                      ## @PSOCK
	.comm	_AUDIT_PIPE_ASYNC,4,2           ## @AUDIT_PIPE_ASYNC
	.comm	_SIGIO,4,2                      ## @SIGIO
	.no_dead_strip	_audit_pipe_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audit_pipe_append
_audit_pipe_append:                     ; @audit_pipe_append
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_AUDIT_PIPE_LOCK_ASSERT
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.1:
Lloh0:
	adrp	x23, _M_AUDIT_PIPE_ENTRY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _M_AUDIT_PIPE_ENTRY@GOTPAGEOFF]
Lloh2:
	adrp	x24, _M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w8, [x24]
Lloh4:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_malloc
	str	x0, [x22, #8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x1, x21
	mov	x2, x20
	bl	_memmove
	str	w20, [x22]
	add	x0, x19, #40
Lloh7:
	adrp	x8, _ape_queue@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ape_queue@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	w8, [x22]
	ldr	w9, [x19, #16]
	add	w8, w9, w8
	str	w8, [x19, #16]
	add	x20, x19, #32
Lloh10:
	adrp	x8, _PSOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PSOCK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_selwakeuppri
	mov	x0, x20
	mov	w1, #0
	bl	_KNOTE_LOCKED
	ldr	w8, [x19, #20]
Lloh13:
	adrp	x9, _AUDIT_PIPE_ASYNC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AUDIT_PIPE_ASYNC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	add	x0, x19, #28
Lloh16:
	adrp	x8, _SIGIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIGIO@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_pgsigio
LBB0_5:
	add	x0, x19, #24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cv_broadcast
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x22
	bl	_free
LBB0_7:
	ldr	w8, [x19, #44]
	add	w8, w8, #1
	str	w8, [x19, #44]
Lloh19:
	adrp	x8, _audit_pipe_drops@GOTPAGE
Lloh20:
	ldr	x8, [x8, _audit_pipe_drops@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_audit_pipe_drops,4,2           ; @audit_pipe_drops
	.comm	_M_AUDIT_PIPE_ENTRY,4,2         ; @M_AUDIT_PIPE_ENTRY
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_ape_queue,4,2                  ; @ape_queue
	.comm	_PSOCK,4,2                      ; @PSOCK
	.comm	_AUDIT_PIPE_ASYNC,4,2           ; @AUDIT_PIPE_ASYNC
	.comm	_SIGIO,4,2                      ; @SIGIO
	.no_dead_strip	_audit_pipe_append
.subsections_via_symbols
