	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audit_write                    ## -- Begin function audit_write
	.p2align	4, 0x90
_audit_write:                           ## @audit_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	%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	%r8d, %r12d
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_au_open
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_au_write
	cmpl	$-1, %eax
	je	LBB0_4
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.6:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_au_write
	cmpl	$-1, %eax
	je	LBB0_7
LBB0_8:
	movsbl	%r13b, %edi
	movl	%r12d, %esi
	callq	_au_to_return32
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_au_write
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.12:
	movq	_AU_TO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movswl	-44(%rbp), %edx                 ## 2-byte Folded Reload
	movl	%r15d, %edi
	callq	_au_close
	testq	%rax, %rax
	js	LBB0_14
## %bb.13:
	movq	_kAUNoErr@GOTPCREL(%rip), %rbx
	jmp	LBB0_16
LBB0_1:
	movq	%r14, %rdi
	callq	_au_free_token
	movq	%rbx, %rdi
	callq	_au_free_token
	movq	_kAUOpenErr@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_4:
	movq	%r14, %rdi
	callq	_au_free_token
	movq	%rbx, %rdi
	callq	_au_free_token
	movq	_AU_TO_NO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movswl	-44(%rbp), %edx                 ## 2-byte Folded Reload
	movl	%r15d, %edi
	callq	_au_close
	movq	_kAUWriteSubjectTokErr@GOTPCREL(%rip), %rbx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_9:
	movq	_AU_TO_NO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movswl	-44(%rbp), %edx                 ## 2-byte Folded Reload
	movl	%r15d, %edi
	callq	_au_close
	movq	_kAUMakeReturnTokErr@GOTPCREL(%rip), %rbx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_7:
	movq	%rbx, %rdi
	callq	_au_free_token
	movq	_AU_TO_NO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movswl	-44(%rbp), %edx                 ## 2-byte Folded Reload
	movl	%r15d, %edi
	callq	_au_close
	movq	_kAUWriteCallerTokErr@GOTPCREL(%rip), %rbx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_15
LBB0_11:
	movq	%rbx, %rdi
	callq	_au_free_token
	movq	_AU_TO_NO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movswl	-44(%rbp), %edx                 ## 2-byte Folded Reload
	movl	%r15d, %edi
	callq	_au_close
	movq	_kAUWriteReturnTokErr@GOTPCREL(%rip), %rbx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	movq	_kAUCloseErr@GOTPCREL(%rip), %rbx
	leaq	L_.str.6(%rip), %rsi
LBB0_15:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	callq	_syslog
LBB0_16:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audit_write()"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"%s: au_open() failed"

	.comm	_kAUOpenErr,4,2                 ## @kAUOpenErr
	.comm	_AU_TO_NO_WRITE,4,2             ## @AU_TO_NO_WRITE
L_.str.2:                               ## @.str.2
	.asciz	"%s: write of subject failed"

	.comm	_kAUWriteSubjectTokErr,4,2      ## @kAUWriteSubjectTokErr
L_.str.3:                               ## @.str.3
	.asciz	"%s: write of caller token failed"

	.comm	_kAUWriteCallerTokErr,4,2       ## @kAUWriteCallerTokErr
L_.str.4:                               ## @.str.4
	.asciz	"%s: au_to_return32() failed"

	.comm	_kAUMakeReturnTokErr,4,2        ## @kAUMakeReturnTokErr
L_.str.5:                               ## @.str.5
	.asciz	"%s: write of return code failed"

	.comm	_kAUWriteReturnTokErr,4,2       ## @kAUWriteReturnTokErr
	.comm	_AU_TO_WRITE,4,2                ## @AU_TO_WRITE
L_.str.6:                               ## @.str.6
	.asciz	"%s: au_close() failed"

	.comm	_kAUCloseErr,4,2                ## @kAUCloseErr
	.comm	_kAUNoErr,4,2                   ## @kAUNoErr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audit_write                    ; -- Begin function audit_write
	.p2align	2
_audit_write:                           ; @audit_write
	.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	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	bl	_au_open
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.1:
	mov	x20, x0
	cbz	x24, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x24
	bl	_au_write
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_3:
	cbz	x21, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_au_write
	cmn	w0, #1
	b.eq	LBB0_12
LBB0_5:
	mov	x0, x23
	mov	x1, x22
	bl	_au_to_return32
	cbz	x0, LBB0_11
; %bb.6:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_au_write
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.7:
Lloh0:
	adrp	x8, _AU_TO_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AU_TO_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_au_close
	tbnz	x0, #63, LBB0_14
; %bb.8:
Lloh3:
	adrp	x19, _kAUNoErr@GOTPAGE
Lloh4:
	ldr	x19, [x19, _kAUNoErr@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
	mov	x0, x24
	bl	_au_free_token
	mov	x0, x21
	bl	_au_free_token
Lloh5:
	adrp	x19, _kAUOpenErr@GOTPAGE
Lloh6:
	ldr	x19, [x19, _kAUOpenErr@GOTPAGEOFF]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_10:
	mov	x0, x24
	bl	_au_free_token
	mov	x0, x21
	bl	_au_free_token
Lloh9:
	adrp	x8, _AU_TO_NO_WRITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AU_TO_NO_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_au_close
Lloh12:
	adrp	x19, _kAUWriteSubjectTokErr@GOTPAGE
Lloh13:
	ldr	x19, [x19, _kAUWriteSubjectTokErr@GOTPAGEOFF]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_11:
Lloh16:
	adrp	x8, _AU_TO_NO_WRITE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AU_TO_NO_WRITE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_au_close
Lloh19:
	adrp	x19, _kAUMakeReturnTokErr@GOTPAGE
Lloh20:
	ldr	x19, [x19, _kAUMakeReturnTokErr@GOTPAGEOFF]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_12:
	mov	x0, x21
	bl	_au_free_token
Lloh23:
	adrp	x8, _AU_TO_NO_WRITE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AU_TO_NO_WRITE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_au_close
Lloh26:
	adrp	x19, _kAUWriteCallerTokErr@GOTPAGE
Lloh27:
	ldr	x19, [x19, _kAUWriteCallerTokErr@GOTPAGEOFF]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x0, x21
	bl	_au_free_token
Lloh30:
	adrp	x8, _AU_TO_NO_WRITE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AU_TO_NO_WRITE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_au_close
Lloh33:
	adrp	x19, _kAUWriteReturnTokErr@GOTPAGE
Lloh34:
	ldr	x19, [x19, _kAUWriteReturnTokErr@GOTPAGEOFF]
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh37:
	adrp	x19, _kAUCloseErr@GOTPAGE
Lloh38:
	ldr	x19, [x19, _kAUCloseErr@GOTPAGEOFF]
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_15:
Lloh41:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x2, l_.str@PAGE
Lloh45:
	add	x2, x2, l_.str@PAGEOFF
	bl	_syslog
LBB0_16:
	ldr	w0, [x19]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audit_write()"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"%s: au_open() failed"

	.comm	_kAUOpenErr,4,2                 ; @kAUOpenErr
	.comm	_AU_TO_NO_WRITE,4,2             ; @AU_TO_NO_WRITE
l_.str.2:                               ; @.str.2
	.asciz	"%s: write of subject failed"

	.comm	_kAUWriteSubjectTokErr,4,2      ; @kAUWriteSubjectTokErr
l_.str.3:                               ; @.str.3
	.asciz	"%s: write of caller token failed"

	.comm	_kAUWriteCallerTokErr,4,2       ; @kAUWriteCallerTokErr
l_.str.4:                               ; @.str.4
	.asciz	"%s: au_to_return32() failed"

	.comm	_kAUMakeReturnTokErr,4,2        ; @kAUMakeReturnTokErr
l_.str.5:                               ; @.str.5
	.asciz	"%s: write of return code failed"

	.comm	_kAUWriteReturnTokErr,4,2       ; @kAUWriteReturnTokErr
	.comm	_AU_TO_WRITE,4,2                ; @AU_TO_WRITE
l_.str.6:                               ; @.str.6
	.asciz	"%s: au_close() failed"

	.comm	_kAUCloseErr,4,2                ; @kAUCloseErr
	.comm	_kAUNoErr,4,2                   ; @kAUNoErr
.subsections_via_symbols
