	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audit_pipe_alloc
_audit_pipe_alloc:                      ## @audit_pipe_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_M_AUDIT_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$32, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AUDIT_PIPE_QLIMIT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	leaq	24(%rbx), %rdi
	callq	_TAILQ_INIT
	leaq	20(%rbx), %r14
	movq	%rbx, %rdi
	callq	_AUDIT_PIPE_MTX
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_knlist_init_mtx
	movq	%rbx, %rdi
	callq	_AUDIT_PIPE_LOCK_INIT
	movq	%rbx, %rdi
	callq	_AUDIT_PIPE_SX_LOCK_INIT
	leaq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_cv_init
	leaq	12(%rbx), %rdi
	movl	$4, %esi
	callq	_bzero
	leaq	8(%rbx), %rdi
	movl	$4, %esi
	callq	_bzero
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_TAILQ_INIT
	movq	_AUDITPIPE_PRESELECT_MODE_TRAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_AUDIT_PIPE_LIST_WLOCK
	movq	_ap_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_audit_pipe_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	_audit_pipe_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_audit_pipe_ever@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	callq	_AUDIT_PIPE_LIST_WUNLOCK
LBB0_2:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_AUDIT_PIPE,4,2               ## @M_AUDIT_PIPE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_AUDIT_PIPE_QLIMIT_DEFAULT,4,2  ## @AUDIT_PIPE_QLIMIT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audit_pipe"

	.comm	_AUDITPIPE_PRESELECT_MODE_TRAIL,4,2 ## @AUDITPIPE_PRESELECT_MODE_TRAIL
	.comm	_audit_pipe_list,4,2            ## @audit_pipe_list
	.comm	_ap_list,4,2                    ## @ap_list
	.comm	_audit_pipe_count,4,2           ## @audit_pipe_count
	.comm	_audit_pipe_ever,4,2            ## @audit_pipe_ever
	.no_dead_strip	_audit_pipe_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audit_pipe_alloc
_audit_pipe_alloc:                      ; @audit_pipe_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _M_AUDIT_PIPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_AUDIT_PIPE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #32
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _AUDIT_PIPE_QLIMIT_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AUDIT_PIPE_QLIMIT_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	add	x0, x19, #24
	bl	_TAILQ_INIT
	add	x20, x19, #20
	mov	x0, x19
	bl	_AUDIT_PIPE_MTX
	mov	x1, x0
	mov	x0, x20
	bl	_knlist_init_mtx
	mov	x0, x19
	bl	_AUDIT_PIPE_LOCK_INIT
	mov	x0, x19
	bl	_AUDIT_PIPE_SX_LOCK_INIT
	add	x0, x19, #16
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_cv_init
	add	x0, x19, #12
	mov	w1, #4
	bl	_bzero
	add	x0, x19, #8
	mov	w1, #4
	bl	_bzero
	add	x0, x19, #4
	bl	_TAILQ_INIT
Lloh14:
	adrp	x8, _AUDITPIPE_PRESELECT_MODE_TRAIL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AUDITPIPE_PRESELECT_MODE_TRAIL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
	bl	_AUDIT_PIPE_LIST_WLOCK
Lloh17:
	adrp	x8, _ap_list@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ap_list@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x0, _audit_pipe_list@GOTPAGE
Lloh21:
	ldr	x0, [x0, _audit_pipe_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_INSERT_HEAD
Lloh22:
	adrp	x8, _audit_pipe_count@GOTPAGE
Lloh23:
	ldr	x8, [x8, _audit_pipe_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh24:
	adrp	x8, _audit_pipe_ever@GOTPAGE
Lloh25:
	ldr	x8, [x8, _audit_pipe_ever@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_AUDIT_PIPE_LIST_WUNLOCK
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_M_AUDIT_PIPE,4,2               ; @M_AUDIT_PIPE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_AUDIT_PIPE_QLIMIT_DEFAULT,4,2  ; @AUDIT_PIPE_QLIMIT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audit_pipe"

	.comm	_AUDITPIPE_PRESELECT_MODE_TRAIL,4,2 ; @AUDITPIPE_PRESELECT_MODE_TRAIL
	.comm	_audit_pipe_list,4,2            ; @audit_pipe_list
	.comm	_ap_list,4,2                    ; @ap_list
	.comm	_audit_pipe_count,4,2           ; @audit_pipe_count
	.comm	_audit_pipe_ever,4,2            ; @audit_pipe_ever
	.no_dead_strip	_audit_pipe_alloc
.subsections_via_symbols
