	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auditd_gen_record              ## -- Begin function auditd_gen_record
	.p2align	4, 0x90
_auditd_gen_record:                     ## @auditd_gen_record
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	$0, -48(%rbp)
	movq	_AUE_audit_startup@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_7
LBB0_2:
	movq	_AUE_audit_shutdown@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_7
LBB0_4:
	movq	_AUE_audit_recovery@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %r15
LBB0_7:
	xorl	%eax, %eax
	callq	_getprogname
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_asprintf
	cmpq	$0, -48(%rbp)
	je	LBB0_8
## %bb.9:
	xorl	%eax, %eax
	callq	_au_open
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %r15d
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	movl	$4, %esi
	callq	_bzero
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_geteuid
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_getegid
	movl	%r15d, %ebx
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_getgid
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %r14d
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movl	%r12d, %r9d
	leaq	-56(%rbp), %rax
	pushq	%rax
	pushq	%r12
	callq	_au_to_subject32_ex
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_au_write
LBB0_13:
	movq	-48(%rbp), %rdi
	callq	_au_to_text
	testq	%rax, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_15
## %bb.14:
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_au_write
LBB0_15:
	movq	-48(%rbp), %rdi
	callq	_free
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.16:
	movq	%rbx, %rdi
	callq	_au_to_path
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_au_write
LBB0_18:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_au_to_return32
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_au_write
LBB0_20:
	movl	%r14d, %edi
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_au_close
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.22:
	movq	_ADE_AU_CLOSE@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_8:
	movq	_ADE_NOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_10:
	movq	-48(%rbp), %rdi
	callq	_free
	movq	_ADE_AU_OPEN@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	movq	_ADE_NOERR@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_5:
	movq	_ADE_INVAL@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUE_audit_startup,4,2          ## @AUE_audit_startup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s::Audit startup"

	.comm	_AUE_audit_shutdown,4,2         ## @AUE_audit_shutdown
L_.str.1:                               ## @.str.1
	.asciz	"%s::Audit shutdown"

	.comm	_AUE_audit_recovery,4,2         ## @AUE_audit_recovery
L_.str.2:                               ## @.str.2
	.asciz	"%s::Audit recovery"

	.comm	_ADE_INVAL,4,2                  ## @ADE_INVAL
	.comm	_ADE_NOMEM,4,2                  ## @ADE_NOMEM
	.comm	_ADE_AU_OPEN,4,2                ## @ADE_AU_OPEN
	.comm	_ADE_AU_CLOSE,4,2               ## @ADE_AU_CLOSE
	.comm	_ADE_NOERR,4,2                  ## @ADE_NOERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auditd_gen_record              ; -- Begin function auditd_gen_record
	.p2align	2
_auditd_gen_record:                     ; @auditd_gen_record
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _AUE_audit_startup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUE_audit_startup@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _AUE_audit_shutdown@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AUE_audit_shutdown@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _AUE_audit_recovery@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AUE_audit_recovery@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_20
; %bb.5:
Lloh13:
	adrp	x21, l_.str.2@PAGE
Lloh14:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_6:
	bl	_getprogname
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x21
	bl	_asprintf
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_18
; %bb.7:
	bl	_au_open
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.8:
	mov	x21, x0
	mov	x0, sp
	mov	w1, #4
	bl	_bzero
	bl	_getuid
	mov	x22, x0
	bl	_getpid
	mov	x23, x0
	bl	_geteuid
	mov	x24, x0
	bl	_getegid
	mov	x25, x0
	bl	_getgid
	mov	x4, x0
	mov	x7, sp
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	mov	x3, x22
	mov	x5, x23
	mov	x6, x23
	bl	_au_to_subject32_ex
	cbz	x0, LBB0_10
; %bb.9:
	mov	x1, x0
	mov	x0, x21
	bl	_au_write
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_au_to_text
	cbz	x0, LBB0_12
; %bb.11:
	mov	x1, x0
	mov	x0, x21
	bl	_au_write
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_free
	cbz	x20, LBB0_15
; %bb.13:
	mov	x0, x20
	bl	_au_to_path
	cbz	x0, LBB0_15
; %bb.14:
	mov	x1, x0
	mov	x0, x21
	bl	_au_write
LBB0_15:
	mov	w0, #0
	mov	w1, #0
	bl	_au_to_return32
	cbz	x0, LBB0_17
; %bb.16:
	mov	x1, x0
	mov	x0, x21
	bl	_au_write
LBB0_17:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x19
	bl	_au_close
Lloh15:
	adrp	x8, _ADE_NOERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADE_NOERR@GOTPAGEOFF]
Lloh17:
	adrp	x9, _ADE_AU_CLOSE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ADE_AU_CLOSE@GOTPAGEOFF]
	cmn	w0, #1
	csel	x8, x9, x8, eq
	b	LBB0_21
LBB0_18:
Lloh19:
	adrp	x8, _ADE_NOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ADE_NOMEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
	ldr	x0, [sp, #8]
	bl	_free
Lloh21:
	adrp	x8, _ADE_AU_OPEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ADE_AU_OPEN@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh23:
	adrp	x8, _ADE_INVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ADE_INVAL@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AUE_audit_startup,4,2          ; @AUE_audit_startup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s::Audit startup"

	.comm	_AUE_audit_shutdown,4,2         ; @AUE_audit_shutdown
l_.str.1:                               ; @.str.1
	.asciz	"%s::Audit shutdown"

	.comm	_AUE_audit_recovery,4,2         ; @AUE_audit_recovery
l_.str.2:                               ; @.str.2
	.asciz	"%s::Audit recovery"

	.comm	_ADE_INVAL,4,2                  ; @ADE_INVAL
	.comm	_ADE_NOMEM,4,2                  ; @ADE_NOMEM
	.comm	_ADE_AU_OPEN,4,2                ; @ADE_AU_OPEN
	.comm	_ADE_AU_CLOSE,4,2               ; @ADE_AU_CLOSE
	.comm	_ADE_NOERR,4,2                  ; @ADE_NOERR
.subsections_via_symbols
