	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au_write                       ## -- Begin function au_write
	.p2align	4, 0x90
_au_write:                              ## @au_write
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	_open_desc_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.4:
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.5:
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	addq	8(%r14), %rax
	movq	_AUDIT_TRAILER_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_MAX_AUDIT_RECORD_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	leaq	16(%r14), %rdi
	movq	_tokens@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	(%rbx), %rax
	addq	%rax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_open_desc_table,8,3            ## @open_desc_table
	.comm	_AUDIT_TRAILER_SIZE,8,3         ## @AUDIT_TRAILER_SIZE
	.comm	_MAX_AUDIT_RECORD_SIZE,8,3      ## @MAX_AUDIT_RECORD_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tokens,4,2                     ## @tokens
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au_write                       ; -- Begin function au_write
	.p2align	2
_au_write:                              ; @au_write
	.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
	cbz	x1, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _open_desc_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _open_desc_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x20, [x8, w0, sxtw #3]
	cbz	x20, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x19, x1
	ldr	x8, [x20, #8]
	ldr	x9, [x1]
Lloh3:
	adrp	x10, _AUDIT_TRAILER_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AUDIT_TRAILER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x8, x8, x10
Lloh6:
	adrp	x9, _MAX_AUDIT_RECORD_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_AUDIT_RECORD_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _errno@GOTPAGE
Lloh14:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x0, x20, #16
Lloh16:
	adrp	x8, _tokens@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tokens@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
	mov	w0, #0
	ldr	x8, [x19]
	ldr	x9, [x20, #8]
	add	x8, x9, x8
	str	x8, [x20, #8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_open_desc_table,8,3            ; @open_desc_table
	.comm	_AUDIT_TRAILER_SIZE,8,3         ; @AUDIT_TRAILER_SIZE
	.comm	_MAX_AUDIT_RECORD_SIZE,8,3      ; @MAX_AUDIT_RECORD_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tokens,4,2                     ; @tokens
.subsections_via_symbols
