	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etm_config_trace_mode          ## -- Begin function etm_config_trace_mode
	.p2align	4, 0x90
_etm_config_trace_mode:                 ## @etm_config_trace_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_ETM_MODE_EXCL_KERN@GOTPCREL(%rip), %rdx
	movq	_ETM_MODE_EXCL_USER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	movl	%eax, %esi
	notl	%esi
	testl	%esi, %edx
	je	LBB0_3
## %bb.1:
	testl	%eax, %edx
	je	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	testl	%eax, %ecx
	sete	%dl
	movl	$0, 4(%rdi)
	movq	_ETMTECR1_ADDR_COMP_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	shll	$11, %edx
	orl	$9241, %edx                     ## imm = 0x2419
	movq	8(%rdi), %rax
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	movq	%rcx, (%rax)
	movq	16(%rdi), %rax
	movl	%edx, (%rax)
	movl	%edx, 4(%rax)
	movq	_ETM_ADDR_TYPE_RANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	24(%rdi), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	24(%rdi), %rcx
	movq	%rax, 8(%rcx)
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETM_MODE_EXCL_KERN,4,2         ## @ETM_MODE_EXCL_KERN
	.comm	_ETM_MODE_EXCL_USER,4,2         ## @ETM_MODE_EXCL_USER
	.comm	_ETMTECR1_ADDR_COMP_1,4,2       ## @ETMTECR1_ADDR_COMP_1
	.comm	_ETM_ADDR_TYPE_RANGE,8,3        ## @ETM_ADDR_TYPE_RANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etm_config_trace_mode          ; -- Begin function etm_config_trace_mode
	.p2align	2
_etm_config_trace_mode:                 ; @etm_config_trace_mode
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ETM_MODE_EXCL_KERN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETM_MODE_EXCL_KERN@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _ETM_MODE_EXCL_USER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ETM_MODE_EXCL_USER@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w11, w10, w8
	bic	w11, w11, w9
	cmp	w11, #0
	and	w11, w8, w9
	and	w8, w10, w9
	orr	w9, w11, w8
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ret
LBB0_2:
	str	wzr, [x0, #4]
Lloh6:
	adrp	x9, _ETMTECR1_ADDR_COMP_1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETMTECR1_ADDR_COMP_1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x0, #32]
	mov	w9, #9241
	mov	w10, #11289
	cmp	w8, #0
	csel	w8, w10, w9, eq
	movi	d0, #0xffffffff00000000
	ldp	x9, x10, [x0, #8]
	str	d0, [x9]
	stp	w8, w8, [x10]
Lloh9:
	adrp	x8, _ETM_ADDR_TYPE_RANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETM_ADDR_TYPE_RANGE@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x0, #24]
	str	x9, [x10]
	ldr	x8, [x8]
	ldr	x9, [x0, #24]
	str	x8, [x9, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETM_MODE_EXCL_KERN,4,2         ; @ETM_MODE_EXCL_KERN
	.comm	_ETM_MODE_EXCL_USER,4,2         ; @ETM_MODE_EXCL_USER
	.comm	_ETMTECR1_ADDR_COMP_1,4,2       ; @ETMTECR1_ADDR_COMP_1
	.comm	_ETM_ADDR_TYPE_RANGE,8,3        ; @ETM_ADDR_TYPE_RANGE
.subsections_via_symbols
