	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm4_parse_event_config
_etm4_parse_event_config:               ## @etm4_parse_event_config
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	cmpq	$0, 16(%r12)
	je	LBB0_4
## %bb.3:
	movq	_ETM_MODE_EXCL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_4:
	cmpq	$0, 8(%r12)
	je	LBB0_6
## %bb.5:
	movq	_ETM_MODE_EXCL_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_6:
	movq	%r14, %rdi
	callq	_etm4_set_default_config
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_etm4_set_event_filters
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movl	(%r12), %ebx
	movq	_ETM_OPT_CYCACC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_9
## %bb.8:
	movl	$4, %edi
	callq	_BIT
	orl	%eax, 8(%r15)
	movq	_ETM_CYC_THRESHOLD_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
LBB0_9:
	movl	(%r12), %ebx
	movq	_ETM_OPT_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_etm4_config_timestamp_event
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movl	$11, %edi
	callq	_BIT
	orl	%eax, (%r14)
LBB0_12:
	movl	(%r12), %ebx
	movq	_ETM_OPT_CTXTID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_14
## %bb.13:
	movq	_ETM4_CFG_BIT_CTXTID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, (%r14)
LBB0_14:
	movl	(%r12), %r12d
	movq	_ETM_OPT_RETSTK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	xorl	%ebx, %ebx
	testl	%r12d, %eax
	je	LBB0_17
## %bb.15:
	cmpq	$0, (%r15)
	je	LBB0_17
## %bb.16:
	movl	$12, %edi
	callq	_BIT
	orl	%eax, (%r14)
	jmp	LBB0_17
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETM_MODE_EXCL_KERN,4,2         ## @ETM_MODE_EXCL_KERN
	.comm	_ETM_MODE_EXCL_USER,4,2         ## @ETM_MODE_EXCL_USER
	.comm	_ETM_OPT_CYCACC,4,2             ## @ETM_OPT_CYCACC
	.comm	_ETM_CYC_THRESHOLD_DEFAULT,4,2  ## @ETM_CYC_THRESHOLD_DEFAULT
	.comm	_ETM_OPT_TS,4,2                 ## @ETM_OPT_TS
	.comm	_ETM_OPT_CTXTID,4,2             ## @ETM_OPT_CTXTID
	.comm	_ETM4_CFG_BIT_CTXTID,4,2        ## @ETM4_CFG_BIT_CTXTID
	.comm	_ETM_OPT_RETSTK,4,2             ## @ETM_OPT_RETSTK
	.no_dead_strip	_etm4_parse_event_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etm4_parse_event_config
_etm4_parse_event_config:               ; @etm4_parse_event_config
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_16
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ETM_MODE_EXCL_KERN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETM_MODE_EXCL_KERN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #16]
LBB0_3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ETM_MODE_EXCL_USER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETM_MODE_EXCL_USER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #16]
LBB0_5:
	mov	x0, x19
	bl	_etm4_set_default_config
	mov	x0, x20
	mov	x1, x21
	bl	_etm4_set_event_filters
	cbnz	w0, LBB0_17
; %bb.6:
	ldr	w22, [x21]
Lloh6:
	adrp	x8, _ETM_OPT_CYCACC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETM_OPT_CYCACC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_8
; %bb.7:
	mov	w0, #4
	bl	_BIT
	ldr	w8, [x20, #8]
	orr	w8, w8, w0
Lloh9:
	adrp	x9, _ETM_CYC_THRESHOLD_DEFAULT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETM_CYC_THRESHOLD_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #8]
LBB0_8:
	ldr	w22, [x21]
Lloh12:
	adrp	x8, _ETM_OPT_TS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETM_OPT_TS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_etm4_config_timestamp_event
	cbnz	w0, LBB0_17
; %bb.10:
	mov	w0, #11
	bl	_BIT
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
LBB0_11:
	ldr	w22, [x21]
Lloh15:
	adrp	x8, _ETM_OPT_CTXTID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETM_OPT_CTXTID@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_13
; %bb.12:
Lloh18:
	adrp	x8, _ETM4_CFG_BIT_CTXTID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETM4_CFG_BIT_CTXTID@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
LBB0_13:
	ldr	w21, [x21]
Lloh21:
	adrp	x8, _ETM_OPT_RETSTK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETM_OPT_RETSTK@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_18
; %bb.14:
	ldr	x8, [x20]
	cbz	x8, LBB0_18
; %bb.15:
	mov	w0, #12
	bl	_BIT
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_17
LBB0_16:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	w0, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETM_MODE_EXCL_KERN,4,2         ; @ETM_MODE_EXCL_KERN
	.comm	_ETM_MODE_EXCL_USER,4,2         ; @ETM_MODE_EXCL_USER
	.comm	_ETM_OPT_CYCACC,4,2             ; @ETM_OPT_CYCACC
	.comm	_ETM_CYC_THRESHOLD_DEFAULT,4,2  ; @ETM_CYC_THRESHOLD_DEFAULT
	.comm	_ETM_OPT_TS,4,2                 ; @ETM_OPT_TS
	.comm	_ETM_OPT_CTXTID,4,2             ; @ETM_OPT_CTXTID
	.comm	_ETM4_CFG_BIT_CTXTID,4,2        ; @ETM4_CFG_BIT_CTXTID
	.comm	_ETM_OPT_RETSTK,4,2             ; @ETM_OPT_RETSTK
	.no_dead_strip	_etm4_parse_event_config
.subsections_via_symbols
