	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au_open                        ## -- Begin function au_open
	.p2align	4, 0x90
_au_open:                               ## @au_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_audit_rec_count@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	_audit_free_q@GOTPCREL(%rip), %rdi
	callq	_LIST_INIT
LBB0_2:
	movq	_audit_free_q@GOTPCREL(%rip), %rdi
	callq	_LIST_EMPTY
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	$40, %edi
	callq	_malloc
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rbx
	movq	_MAX_AUDIT_RECORD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	callq	_malloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r15), %rcx
	movq	_MAX_AUDIT_RECORDS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	movq	%rax, %rdi
	callq	_free
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_11
LBB0_3:
	movq	_audit_free_q@GOTPCREL(%rip), %rdi
	callq	_LIST_FIRST
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	_au_rec_q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	jmp	LBB0_10
LBB0_9:
	movq	%rcx, 8(%rbx)
	movq	_open_desc_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax,%rcx,8)
	incq	%rcx
	movq	%rcx, (%r15)
LBB0_10:
	movq	32(%rbx), %rdi
	movq	_MAX_AUDIT_RECORD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	leaq	24(%rbx), %rdi
	callq	_TAILQ_INIT
	movq	$0, 16(%rbx)
	movl	$1, (%rbx)
	movl	8(%rbx), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audit_rec_count,8,3            ## @audit_rec_count
	.comm	_audit_free_q,4,2               ## @audit_free_q
	.comm	_au_rec_q,4,2                   ## @au_rec_q
	.comm	_MAX_AUDIT_RECORD_SIZE,4,2      ## @MAX_AUDIT_RECORD_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_MAX_AUDIT_RECORDS,8,3          ## @MAX_AUDIT_RECORDS
	.comm	_open_desc_table,8,3            ## @open_desc_table
	.comm	_mutex,4,2                      ## @mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au_open                        ; -- Begin function au_open
	.p2align	2
_au_open:                               ; @au_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	x20, _audit_rec_count@GOTPAGE
Lloh1:
	ldr	x20, [x20, _audit_rec_count@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, _audit_free_q@GOTPAGE
Lloh3:
	ldr	x0, [x0, _audit_free_q@GOTPAGEOFF]
	bl	_LIST_INIT
LBB0_2:
Lloh4:
	adrp	x0, _audit_free_q@GOTPAGE
Lloh5:
	ldr	x0, [x0, _audit_free_q@GOTPAGEOFF]
	bl	_LIST_EMPTY
	cbz	w0, LBB0_8
; %bb.3:
	mov	w0, #40
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x19, x0
Lloh6:
	adrp	x8, _MAX_AUDIT_RECORD_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_AUDIT_RECORD_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w0, w8, #2
	bl	_malloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _MAX_AUDIT_RECORDS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_AUDIT_RECORDS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	bl	_free
LBB0_7:
	mov	x0, x19
	bl	_free
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _errno@GOTPAGE
Lloh16:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_12
LBB0_8:
Lloh18:
	adrp	x0, _audit_free_q@GOTPAGE
Lloh19:
	ldr	x0, [x0, _audit_free_q@GOTPAGEOFF]
	bl	_LIST_FIRST
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
Lloh20:
	adrp	x8, _au_rec_q@GOTPAGE
Lloh21:
	ldr	x8, [x8, _au_rec_q@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_LIST_REMOVE
	b	LBB0_11
LBB0_9:
	mov	w0, #-1
	b	LBB0_12
LBB0_10:
Lloh23:
	adrp	x9, _open_desc_table@GOTPAGE
Lloh24:
	ldr	x9, [x9, _open_desc_table@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh25:
	ldr	x9, [x9]
	str	x19, [x9, x8, lsl #3]
	add	x8, x8, #1
	str	x8, [x20]
LBB0_11:
	ldr	x0, [x19, #32]
Lloh26:
	adrp	x8, _MAX_AUDIT_RECORD_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAX_AUDIT_RECORD_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	add	x0, x19, #24
	bl	_TAILQ_INIT
	str	xzr, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #8]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_audit_rec_count,8,3            ; @audit_rec_count
	.comm	_audit_free_q,4,2               ; @audit_free_q
	.comm	_au_rec_q,4,2                   ; @au_rec_q
	.comm	_MAX_AUDIT_RECORD_SIZE,4,2      ; @MAX_AUDIT_RECORD_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_MAX_AUDIT_RECORDS,8,3          ; @MAX_AUDIT_RECORDS
	.comm	_open_desc_table,8,3            ; @open_desc_table
	.comm	_mutex,4,2                      ; @mutex
.subsections_via_symbols
