	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm_parse_event_config
_etm_parse_event_config:                ## @etm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_ETM_MODE_EXCL_KERN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_ETM_MODE_EXCL_USER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_6:
	movq	%r14, %rdi
	callq	_etm_set_default
	cmpq	$0, 16(%r15)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_etm_config_trace_mode
LBB0_8:
	movl	(%rbx), %ecx
	movq	_ETM3X_SUPPORTED_OPTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, %ecx
	je	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%ecx, (%r14)
	movq	_ETMCR_RETURN_STACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%ecx, %edx
	je	LBB0_12
## %bb.10:
	movq	_ETMCCER_RETSTACK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%r15)
	jne	LBB0_12
## %bb.11:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETM_MODE_EXCL_KERN,8,3         ## @ETM_MODE_EXCL_KERN
	.comm	_ETM_MODE_EXCL_USER,8,3         ## @ETM_MODE_EXCL_USER
	.comm	_ETM3X_SUPPORTED_OPTIONS,4,2    ## @ETM3X_SUPPORTED_OPTIONS
	.comm	_ETMCR_RETURN_STACK,4,2         ## @ETMCR_RETURN_STACK
	.comm	_ETMCCER_RETSTACK,4,2           ## @ETMCCER_RETSTACK
	.no_dead_strip	_etm_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 etm_parse_event_config
_etm_parse_event_config:                ; @etm_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_8
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	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	x8, [x8]
	str	x8, [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	x8, [x8]
	str	x8, [x20, #16]
LBB0_5:
	mov	x0, x19
	bl	_etm_set_default
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_etm_config_trace_mode
LBB0_7:
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _ETM3X_SUPPORTED_OPTIONS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETM3X_SUPPORTED_OPTIONS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_10
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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_10:
	str	w8, [x19]
Lloh12:
	adrp	x9, _ETMCR_RETURN_STACK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ETMCR_RETURN_STACK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w10, [x20]
Lloh15:
	adrp	x11, _ETMCCER_RETSTACK@GOTPAGE
Lloh16:
	ldr	x11, [x11, _ETMCCER_RETSTACK@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_13
LBB0_12:
	mov	w0, #0
	b	LBB0_9
LBB0_13:
	mov	w0, #0
	bic	w8, w8, w9
	str	w8, [x19]
	b	LBB0_9
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETM_MODE_EXCL_KERN,8,3         ; @ETM_MODE_EXCL_KERN
	.comm	_ETM_MODE_EXCL_USER,8,3         ; @ETM_MODE_EXCL_USER
	.comm	_ETM3X_SUPPORTED_OPTIONS,4,2    ; @ETM3X_SUPPORTED_OPTIONS
	.comm	_ETMCR_RETURN_STACK,4,2         ; @ETMCR_RETURN_STACK
	.comm	_ETMCCER_RETSTACK,4,2           ; @ETMCCER_RETSTACK
	.no_dead_strip	_etm_parse_event_config
.subsections_via_symbols
