	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm4_disable_hw
_etm4_disable_hw:                       ## @etm4_disable_hw
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_CS_UNLOCK
	movq	_TRCPDCR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	16(%rbx), %rdi
	callq	_readl_relaxed
	movq	_TRCPDCR_PU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	16(%rbx), %rsi
	callq	_writel_relaxed
	movq	_TRCPRGCTLR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	16(%rbx), %rdi
	callq	_readl_relaxed
	movl	%eax, %r14d
	andl	$-2, %r14d
	movq	_sy@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dsb
	xorl	%eax, %eax
	callq	_isb
	movq	(%r15), %rsi
	addq	16(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel_relaxed
	movq	16(%rbx), %rdi
	callq	_coresight_disclaim_device_unlocked
	movq	16(%rbx), %rdi
	callq	_CS_LOCK
	movq	8(%rbx), %rdi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRCPDCR,8,3                    ## @TRCPDCR
	.comm	_TRCPDCR_PU,4,2                 ## @TRCPDCR_PU
	.comm	_TRCPRGCTLR,8,3                 ## @TRCPRGCTLR
	.comm	_sy,4,2                         ## @sy
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpu: %d disable smp call done\n"

	.no_dead_strip	_etm4_disable_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etm4_disable_hw
_etm4_disable_hw:                       ; @etm4_disable_hw
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_CS_UNLOCK
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x20, _TRCPDCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TRCPDCR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh2:
	adrp	x8, _TRCPDCR_PU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRCPDCR_PU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x21, _TRCPRGCTLR@GOTPAGE
Lloh6:
	ldr	x21, [x21, _TRCPRGCTLR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
	and	w20, w0, #0xfffffffe
Lloh7:
	adrp	x8, _sy@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sy@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_dsb
	bl	_isb
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x0, [x19, #16]
	bl	_coresight_disclaim_device_unlocked
	ldr	x0, [x19, #16]
	bl	_CS_LOCK
	ldr	x0, [x19, #8]
	ldr	w2, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_dbg
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TRCPDCR,8,3                    ; @TRCPDCR
	.comm	_TRCPDCR_PU,4,2                 ; @TRCPDCR_PU
	.comm	_TRCPRGCTLR,8,3                 ; @TRCPRGCTLR
	.comm	_sy,4,2                         ; @sy
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpu: %d disable smp call done\n"

	.no_dead_strip	_etm4_disable_hw
.subsections_via_symbols
