	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audit_open
_audit_open:                            ## @audit_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_audit_trigger_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_audit_isopen@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_3
LBB0_1:
	movl	$1, (%rax)
	xorl	%ebx, %ebx
LBB0_3:
	movq	_audit_trigger_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audit_trigger_mtx,4,2          ## @audit_trigger_mtx
	.comm	_audit_isopen,4,2               ## @audit_isopen
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_audit_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audit_open
_audit_open:                            ; @audit_open
	.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	x0, _audit_trigger_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _audit_trigger_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x8, _audit_isopen@GOTPAGE
Lloh3:
	ldr	x8, [x8, _audit_isopen@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	b	LBB0_3
LBB0_2:
	mov	w19, #0
	mov	w9, #1
	str	w9, [x8]
LBB0_3:
Lloh7:
	adrp	x0, _audit_trigger_mtx@GOTPAGE
Lloh8:
	ldr	x0, [x0, _audit_trigger_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_audit_trigger_mtx,4,2          ; @audit_trigger_mtx
	.comm	_audit_isopen,4,2               ; @audit_isopen
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_audit_open
.subsections_via_symbols
