	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audit_worker_process_record
_audit_worker_process_record:           ## @audit_worker_process_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_AR_COMMIT_USER@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	andl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_AR_PRESELECT_USER_TRAIL@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_4
LBB0_2:
	movq	_AR_PRESELECT_TRAIL@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_3
LBB0_4:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_AUDIT_WORKER_LOCK
	movl	(%rbx), %eax
	movl	(%r14), %ecx
	andl	%eax, %ecx
	testl	%ecx, %ecx
	jne	LBB0_6
	jmp	LBB0_10
LBB0_3:
	movb	$1, %r15b
	testl	%ecx, %ecx
	je	LBB0_10
LBB0_6:
	movq	_AR_PRESELECT_USER_TRAIL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_AUDIT_WORKER_LOCK_ASSERT
	movq	_audit_vp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_audit_cred@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %ecx
	movl	28(%rbx), %edx
	callq	_audit_record_write
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	je	LBB0_10
LBB0_8:
	movq	_AR_PRESELECT_USER_PIPE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	callq	_audit_pipe_submit_user
	movl	(%rbx), %eax
LBB0_10:
	movq	_AR_COMMIT_KERNEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_27
## %bb.11:
	movq	_AR_PRESELECT_PIPE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.12:
	movq	_AR_PRESELECT_TRAIL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.13:
	movq	_AR_PRESELECT_DTRACE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_27
LBB0_14:
	movl	16(%rbx), %r14d
	movl	20(%rbx), %r12d
	movl	%r14d, %edi
	callq	_au_event_class
	cmpq	$0, 8(%rbx)
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jne	LBB0_15
## %bb.16:
	movq	_AU_PRS_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_AU_PRS_FAILURE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %r13d
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_kaudit_to_bsm
	cmpl	$128, %eax
	je	LBB0_22
## %bb.18:
	cmpl	$129, %eax
	je	LBB0_27
## %bb.19:
	cmpl	$130, %eax
	jne	LBB0_21
## %bb.20:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_27
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_panic
LBB0_22:
	movl	(%rbx), %r8d
	movq	_AR_PRESELECT_TRAIL@GOTPCREL(%rip), %rcx
	testl	%r8d, (%rcx)
	je	LBB0_24
## %bb.23:
	xorl	%eax, %eax
	callq	_AUDIT_WORKER_LOCK_ASSERT
	movq	_audit_vp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_audit_cred@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	callq	_audit_record_write
	movq	_AR_PRESELECT_TRAIL@GOTPCREL(%rip), %rcx
	movl	(%rbx), %r8d
LBB0_24:
	movq	_AR_PRESELECT_PIPE@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_26
## %bb.25:
	andl	(%rcx), %r8d
	movq	-48(%rbp), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r9d
	movl	%ecx, (%rsp)
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_audit_pipe_submit
LBB0_26:
	movq	-48(%rbp), %rdi
	callq	_kau_free
LBB0_27:
	testb	%r15b, %r15b
	jne	LBB0_29
## %bb.28:
	xorl	%eax, %eax
	callq	_AUDIT_WORKER_UNLOCK
LBB0_29:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_COMMIT_USER,4,2             ## @AR_COMMIT_USER
	.comm	_AR_PRESELECT_USER_TRAIL,4,2    ## @AR_PRESELECT_USER_TRAIL
	.comm	_AR_PRESELECT_TRAIL,4,2         ## @AR_PRESELECT_TRAIL
	.comm	_audit_vp,4,2                   ## @audit_vp
	.comm	_audit_cred,4,2                 ## @audit_cred
	.comm	_AR_PRESELECT_USER_PIPE,4,2     ## @AR_PRESELECT_USER_PIPE
	.comm	_AR_COMMIT_KERNEL,4,2           ## @AR_COMMIT_KERNEL
	.comm	_AR_PRESELECT_PIPE,4,2          ## @AR_PRESELECT_PIPE
	.comm	_AR_PRESELECT_DTRACE,4,2        ## @AR_PRESELECT_DTRACE
	.comm	_AU_PRS_SUCCESS,4,2             ## @AU_PRS_SUCCESS
	.comm	_AU_PRS_FAILURE,4,2             ## @AU_PRS_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"kaudit_to_bsm returned %d"

L_str:                                  ## @str
	.asciz	"audit_worker_process_record: BSM_FAILURE"

	.no_dead_strip	_audit_worker_process_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audit_worker_process_record
_audit_worker_process_record:           ; @audit_worker_process_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	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _AR_COMMIT_USER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AR_COMMIT_USER@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh2:
	adrp	x21, _AR_PRESELECT_USER_TRAIL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AR_PRESELECT_USER_TRAIL@GOTPAGEOFF]
	ands	w9, w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w10, [x21]
	tst	w10, w8
	b.ne	LBB0_3
LBB0_2:
Lloh4:
	adrp	x10, _AR_PRESELECT_TRAIL@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AR_PRESELECT_TRAIL@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_4
LBB0_3:
	bl	_AUDIT_WORKER_LOCK
	mov	w24, #0
	ldr	w8, [x19]
	ldr	w9, [x20]
	and	w9, w9, w8
	cbnz	w9, LBB0_5
	b	LBB0_9
LBB0_4:
	mov	w24, #1
	cbz	w9, LBB0_9
LBB0_5:
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	bl	_AUDIT_WORKER_LOCK_ASSERT
Lloh7:
	adrp	x8, _audit_vp@GOTPAGE
Lloh8:
	ldr	x8, [x8, _audit_vp@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _audit_cred@GOTPAGE
Lloh11:
	ldr	x8, [x8, _audit_cred@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldp	w3, w2, [x19, #24]
	bl	_audit_record_write
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_7:
Lloh13:
	adrp	x9, _AR_PRESELECT_USER_PIPE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AR_PRESELECT_USER_PIPE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldp	w1, w0, [x19, #24]
	bl	_audit_pipe_submit_user
	ldr	w8, [x19]
LBB0_9:
Lloh16:
	adrp	x9, _AR_COMMIT_KERNEL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AR_COMMIT_KERNEL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.10:
Lloh19:
	adrp	x25, _AR_PRESELECT_PIPE@GOTPAGE
Lloh20:
	ldr	x25, [x25, _AR_PRESELECT_PIPE@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.11:
Lloh21:
	adrp	x9, _AR_PRESELECT_TRAIL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AR_PRESELECT_TRAIL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.12:
Lloh24:
	adrp	x9, _AR_PRESELECT_DTRACE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AR_PRESELECT_DTRACE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
LBB0_13:
	ldp	w21, w20, [x19, #16]
	mov	x0, x21
	bl	_au_event_class
	mov	x22, x0
Lloh27:
	adrp	x8, _AU_PRS_SUCCESS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AU_PRS_SUCCESS@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh29:
	adrp	x10, _AU_PRS_FAILURE@GOTPAGE
Lloh30:
	ldr	x10, [x10, _AU_PRS_FAILURE@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w23, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_kaudit_to_bsm
	cmp	w0, #128
	b.eq	LBB0_18
; %bb.14:
	mov	x1, x0
	cmp	w0, #129
	b.eq	LBB0_23
; %bb.15:
	cmp	w1, #130
	b.ne	LBB0_17
; %bb.16:
Lloh31:
	adrp	x0, l_str@PAGE
Lloh32:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_23
LBB0_17:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_18:
	ldr	w8, [x19]
Lloh35:
	adrp	x26, _AR_PRESELECT_TRAIL@GOTPAGE
Lloh36:
	ldr	x26, [x26, _AR_PRESELECT_TRAIL@GOTPAGEOFF]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	bl	_AUDIT_WORKER_LOCK_ASSERT
Lloh37:
	adrp	x8, _audit_vp@GOTPAGE
Lloh38:
	ldr	x8, [x8, _audit_vp@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x8, _audit_cred@GOTPAGE
Lloh41:
	ldr	x8, [x8, _audit_cred@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	x8, [sp, #8]
	ldp	w3, w2, [x8]
	bl	_audit_record_write
	ldr	w8, [x19]
LBB0_20:
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	ldr	w9, [x26]
	and	w4, w9, w8
	ldr	x8, [sp, #8]
	ldp	w6, w5, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_audit_pipe_submit
LBB0_22:
	ldr	x0, [sp, #8]
	bl	_kau_free
LBB0_23:
	tbnz	w24, #0, LBB0_25
; %bb.24:
	bl	_AUDIT_WORKER_UNLOCK
LBB0_25:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_COMMIT_USER,4,2             ; @AR_COMMIT_USER
	.comm	_AR_PRESELECT_USER_TRAIL,4,2    ; @AR_PRESELECT_USER_TRAIL
	.comm	_AR_PRESELECT_TRAIL,4,2         ; @AR_PRESELECT_TRAIL
	.comm	_audit_vp,4,2                   ; @audit_vp
	.comm	_audit_cred,4,2                 ; @audit_cred
	.comm	_AR_PRESELECT_USER_PIPE,4,2     ; @AR_PRESELECT_USER_PIPE
	.comm	_AR_COMMIT_KERNEL,4,2           ; @AR_COMMIT_KERNEL
	.comm	_AR_PRESELECT_PIPE,4,2          ; @AR_PRESELECT_PIPE
	.comm	_AR_PRESELECT_DTRACE,4,2        ; @AR_PRESELECT_DTRACE
	.comm	_AU_PRS_SUCCESS,4,2             ; @AU_PRS_SUCCESS
	.comm	_AU_PRS_FAILURE,4,2             ; @AU_PRS_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"kaudit_to_bsm returned %d"

l_str:                                  ; @str
	.asciz	"audit_worker_process_record: BSM_FAILURE"

	.no_dead_strip	_audit_worker_process_record
.subsections_via_symbols
