	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm4_disable_perf
_etm4_disable_perf:                     ## @etm4_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r15
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_smp_processor_id
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_etm4_disable_hw
	movq	_TRCVICTLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movl	$9, %edi
	callq	_BIT
	andl	%ebx, %eax
	movl	%eax, (%r15)
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TRCVICTLR,8,3                  ## @TRCVICTLR
	.no_dead_strip	_etm4_disable_perf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etm4_disable_perf
_etm4_disable_perf:                     ; @etm4_disable_perf
	.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
	ldr	x20, [x1]
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x21, [x0]
	bl	_smp_processor_id
	cmp	x21, x0
	cset	w0, ne
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_etm4_disable_hw
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _TRCVICTLR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TRCVICTLR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x19, x0
	mov	w0, #9
	bl	_BIT
	mov	x8, x0
	mov	w0, #0
	and	w8, w8, w19
	str	w8, [x20]
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TRCVICTLR,8,3                  ; @TRCVICTLR
	.no_dead_strip	_etm4_disable_perf
.subsections_via_symbols
