	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm_event_start
_etm_event_start:                       ## @etm_event_start
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_smp_processor_id
	movl	%eax, %ebx
	movq	_ctx_handle@GOTPCREL(%rip), %rdi
	callq	_this_cpu_ptr
	movq	%rax, %r15
	movq	_csdev_src@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_per_cpu
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_perf_aux_output_begin
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_etm_event_cpu_path
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_coresight_get_sink
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	_CS_MODE_PERF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_coresight_enable_path
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	$0, (%r14)
	movq	%r13, %rdi
	callq	_source_ops
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	callq	_coresight_disable_path
LBB0_6:
	movq	_PERF_AUX_FLAG_TRUNCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_perf_aux_output_flag
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_perf_aux_output_end
LBB0_7:
	movq	_PERF_HES_STOPPED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx_handle,4,2                 ## @ctx_handle
	.comm	_csdev_src,4,2                  ## @csdev_src
	.comm	_CS_MODE_PERF,4,2               ## @CS_MODE_PERF
	.comm	_PERF_AUX_FLAG_TRUNCATED,4,2    ## @PERF_AUX_FLAG_TRUNCATED
	.comm	_PERF_HES_STOPPED,8,3           ## @PERF_HES_STOPPED
	.no_dead_strip	_etm_event_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etm_event_start
_etm_event_start:                       ; @etm_event_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_smp_processor_id
	mov	x22, x0
Lloh0:
	adrp	x0, _ctx_handle@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ctx_handle@GOTPAGEOFF]
	bl	_this_cpu_ptr
	mov	x20, x0
Lloh2:
	adrp	x8, _csdev_src@GOTPAGE
Lloh3:
	ldr	x8, [x8, _csdev_src@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_per_cpu
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_perf_aux_output_begin
	cbz	x0, LBB0_7
; %bb.2:
	mov	x1, x22
	bl	_etm_event_cpu_path
	mov	x22, x0
	bl	_coresight_get_sink
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x23, _CS_MODE_PERF@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CS_MODE_PERF@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	mov	x2, x20
	bl	_coresight_enable_path
	cbnz	x0, LBB0_6
; %bb.4:
	str	xzr, [x19]
	mov	x0, x21
	bl	_source_ops
	ldr	x8, [x0]
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x19
	blr	x8
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x22
	bl	_coresight_disable_path
LBB0_6:
Lloh7:
	adrp	x8, _PERF_AUX_FLAG_TRUNCATED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PERF_AUX_FLAG_TRUNCATED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_perf_aux_output_flag
	mov	x0, x20
	mov	w1, #0
	bl	_perf_aux_output_end
LBB0_7:
Lloh10:
	adrp	x8, _PERF_HES_STOPPED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PERF_HES_STOPPED@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx_handle,4,2                 ; @ctx_handle
	.comm	_csdev_src,4,2                  ; @csdev_src
	.comm	_CS_MODE_PERF,4,2               ; @CS_MODE_PERF
	.comm	_PERF_AUX_FLAG_TRUNCATED,4,2    ; @PERF_AUX_FLAG_TRUNCATED
	.comm	_PERF_HES_STOPPED,8,3           ; @PERF_HES_STOPPED
	.no_dead_strip	_etm_event_start
.subsections_via_symbols
