	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm_event_stop
_etm_event_stop:                        ## @etm_event_stop
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_smp_processor_id
	movl	%eax, %ebx
	movq	_csdev_src@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_per_cpu
	movq	%rax, %r13
	movq	_ctx_handle@GOTPCREL(%rip), %rdi
	callq	_this_cpu_ptr
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_perf_get_aux
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	_PERF_HES_STOPPED@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_9
## %bb.1:
	testq	%r13, %r13
	je	LBB0_9
## %bb.2:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_etm_event_cpu_path
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_coresight_get_sink
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%r13, %rdi
	callq	_source_ops
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	*(%rax)
	movq	(%r14), %rax
	movq	%rax, (%r12)
	movq	_PERF_EF_UPDATE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.5:
	xorl	%edi, %edi
	cmpq	%r12, (%r15)
	setne	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_6
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sink_ops
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.7:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_sink_ops
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_perf_aux_output_end
LBB0_8:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_coresight_disable_path         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_csdev_src,4,2                  ## @csdev_src
	.comm	_ctx_handle,4,2                 ## @ctx_handle
	.comm	_PERF_HES_STOPPED,8,3           ## @PERF_HES_STOPPED
	.comm	_PERF_EF_UPDATE,4,2             ## @PERF_EF_UPDATE
	.no_dead_strip	_etm_event_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etm_event_stop
_etm_event_stop:                        ; @etm_event_stop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x1
	mov	x22, x0
	bl	_smp_processor_id
	mov	x21, x0
Lloh0:
	adrp	x8, _csdev_src@GOTPAGE
Lloh1:
	ldr	x8, [x8, _csdev_src@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_per_cpu
	mov	x25, x0
Lloh3:
	adrp	x0, _ctx_handle@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ctx_handle@GOTPAGEOFF]
	bl	_this_cpu_ptr
	mov	x19, x0
	bl	_perf_get_aux
	ldr	x8, [x22]
Lloh5:
	adrp	x26, _PERF_HES_STOPPED@GOTPAGE
Lloh6:
	ldr	x26, [x26, _PERF_HES_STOPPED@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	ccmp	x25, #0, #4, ne
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x1, x21
	bl	_etm_event_cpu_path
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	bl	_coresight_get_sink
	cbz	x0, LBB0_5
; %bb.3:
	mov	x24, x0
	mov	x0, x25
	bl	_source_ops
	ldr	x8, [x0]
	mov	x0, x25
	mov	x1, x22
	blr	x8
	ldr	x8, [x26]
	str	x8, [x22]
Lloh7:
	adrp	x8, _PERF_EF_UPDATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PERF_EF_UPDATE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_8
; %bb.4:
	ldr	x8, [x19]
	cmp	x8, x22
	cset	w0, ne
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_6
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x24
	bl	_sink_ops
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.7:
	mov	x0, x24
	bl	_sink_ops
	ldr	x8, [x0]
	ldr	w2, [x20]
	mov	x0, x24
	mov	x1, x19
	blr	x8
	mov	x1, x0
	mov	x0, x19
	bl	_perf_aux_output_end
LBB0_8:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_coresight_disable_path
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_csdev_src,4,2                  ; @csdev_src
	.comm	_ctx_handle,4,2                 ; @ctx_handle
	.comm	_PERF_HES_STOPPED,8,3           ; @PERF_HES_STOPPED
	.comm	_PERF_EF_UPDATE,4,2             ; @PERF_EF_UPDATE
	.no_dead_strip	_etm_event_stop
.subsections_via_symbols
