	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm_disable_perf
_etm_disable_perf:                      ## @etm_disable_perf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	(%rax), %r14
	xorl	%eax, %eax
	callq	_smp_processor_id
	xorl	%edi, %edi
	cmpq	%rax, %r14
	setne	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	8(%rbx), %edi
	callq	_CS_UNLOCK
	movq	%rbx, %rdi
	callq	_etm_set_prog
	movq	%rbx, %rdi
	callq	_etm_set_pwrdwn
	movl	8(%rbx), %edi
	callq	_coresight_disclaim_device_unlocked
	movl	8(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_CS_LOCK                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_etm_disable_perf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etm_disable_perf
_etm_disable_perf:                      ; @etm_disable_perf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x20, [x0]
	bl	_smp_processor_id
	cmp	x20, x0
	cset	w0, ne
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_CS_UNLOCK
	mov	x0, x19
	bl	_etm_set_prog
	mov	x0, x19
	bl	_etm_set_pwrdwn
	ldr	w0, [x19, #8]
	bl	_coresight_disclaim_device_unlocked
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CS_LOCK
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_etm_disable_perf
.subsections_via_symbols
