	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eventfromstr
_eventfromstr:                          ## @eventfromstr
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	_eventdelim@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_strtok_r
	movq	%rax, %r13
	movl	(%r12), %esi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%rbx, %rdx
	callq	_strtok_r
	movq	%rax, %r14
	movl	(%r12), %esi
	xorl	%edi, %edi
	movq	%rbx, %rdx
	callq	_strtok_r
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %esi
	movq	%r13, %r12
	xorl	%edi, %edi
	movq	%rbx, %rdx
	callq	_strtok_r
	testq	%r13, %r13
	je	LBB0_13
## %bb.1:
	testq	%r14, %r14
	je	LBB0_13
## %bb.2:
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_strlen
	movq	_AU_EVENT_NAME_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_12
## %bb.3:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	12(%r15), %edi
	movq	%r14, %rsi
	callq	_strlcpy
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_strlen
	movq	_AU_EVENT_DESC_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_12
## %bb.5:
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	jmp	LBB0_8
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_7:
	movl	8(%r15), %edi
	movq	_AU_EVENT_DESC_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
LBB0_8:
	callq	_strlcpy
	movq	%r12, %rdi
	callq	_atoi
	movl	%eax, 4(%r15)
	xorl	%r14d, %r14d
	testq	%r13, %r13
	je	LBB0_11
## %bb.9:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_getauditflagsbin
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movl	-48(%rbp), %r14d
LBB0_11:
	movl	%r14d, (%r15)
LBB0_13:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eventdelim,4,2                 ## @eventdelim
	.comm	_AU_EVENT_NAME_MAX,8,3          ## @AU_EVENT_NAME_MAX
	.comm	_AU_EVENT_DESC_MAX,8,3          ## @AU_EVENT_DESC_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.no_dead_strip	_eventfromstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eventfromstr
_eventfromstr:                          ; @eventfromstr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
Lloh0:
	adrp	x21, _eventdelim@GOTPAGE
Lloh1:
	ldr	x21, [x21, _eventdelim@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, sp
	bl	_strtok_r
	mov	x20, x0
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, #0
	bl	_strtok_r
	mov	x23, x0
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, #0
	bl	_strtok_r
	mov	x22, x0
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, #0
	bl	_strtok_r
	mov	x21, x0
	mov	x0, #0
	cmp	x20, #0
	ccmp	x23, #0, #4, ne
	b.eq	LBB0_12
; %bb.1:
	mov	x0, x23
	bl	_strlen
Lloh2:
	adrp	x8, _AU_EVENT_NAME_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AU_EVENT_NAME_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x2, [x8]
	cmp	x0, x2
	b.ge	LBB0_5
; %bb.2:
	ldr	w0, [x19, #12]
	mov	x1, x23
	bl	_strlcpy
	cbz	x22, LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_strlen
Lloh5:
	adrp	x8, _AU_EVENT_DESC_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AU_EVENT_DESC_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x8]
	cmp	x0, x2
	b.ge	LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	mov	x1, x22
	b	LBB0_7
LBB0_5:
	mov	x0, #0
	b	LBB0_12
LBB0_6:
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x8, _AU_EVENT_DESC_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AU_EVENT_DESC_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	bl	_strlcpy
	mov	x0, x20
	bl	_atoi
	str	w0, [x19, #4]
	cbz	x21, LBB0_9
; %bb.8:
	add	x1, sp, #8
	mov	x0, x21
	bl	_getauditflagsbin
	cbz	x0, LBB0_10
LBB0_9:
	mov	w8, #0
	b	LBB0_11
LBB0_10:
	ldr	w8, [sp, #8]
LBB0_11:
	str	w8, [x19]
	mov	x0, x19
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_eventdelim,4,2                 ; @eventdelim
	.comm	_AU_EVENT_NAME_MAX,8,3          ; @AU_EVENT_NAME_MAX
	.comm	_AU_EVENT_DESC_MAX,8,3          ; @AU_EVENT_DESC_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.no_dead_strip	_eventfromstr
.subsections_via_symbols
