	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __etb_disable_hw
___etb_disable_hw:                      ## @__etb_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	8(%r15), %r14
	callq	_CS_UNLOCK
	movq	_ETB_FFCR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movq	_ETB_FFCR_STOP_FI@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_ETB_FFCR_FON_MAN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	(%r15), %rdi
	movq	(%r12), %rsi
	movq	_ETB_FFCR_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_coresight_timeout
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_2:
	movq	_ETB_CTL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movq	(%r15), %rdi
	movq	_ETB_FFSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ETB_FFSR_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_coresight_timeout
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_4:
	movq	(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CS_LOCK                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETB_FFCR,8,3                   ## @ETB_FFCR
	.comm	_ETB_FFCR_STOP_FI,4,2           ## @ETB_FFCR_STOP_FI
	.comm	_ETB_FFCR_FON_MAN,4,2           ## @ETB_FFCR_FON_MAN
	.comm	_ETB_FFCR_BIT,4,2               ## @ETB_FFCR_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout while waiting for completion of Manual Flush\n"

	.comm	_ETB_CTL_REG,8,3                ## @ETB_CTL_REG
	.comm	_ETB_FFSR,8,3                   ## @ETB_FFSR
	.comm	_ETB_FFSR_BIT,4,2               ## @ETB_FFSR_BIT
L_.str.1:                               ## @.str.1
	.asciz	"timeout while waiting for Formatter to Stop\n"

	.no_dead_strip	___etb_disable_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __etb_disable_hw
___etb_disable_hw:                      ; @__etb_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
	ldp	x0, x20, [x0]
	bl	_CS_UNLOCK
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _ETB_FFCR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ETB_FFCR@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh2:
	adrp	x8, _ETB_FFCR_STOP_FI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETB_FFCR_STOP_FI@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w21, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel_relaxed
Lloh5:
	adrp	x8, _ETB_FFCR_FON_MAN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETB_FFCR_FON_MAN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w0, w8, w21
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x0, [x19]
	ldr	x1, [x22]
Lloh8:
	adrp	x8, _ETB_FFCR_BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETB_FFCR_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_coresight_timeout
	cbz	x0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_2:
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _ETB_CTL_REG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ETB_CTL_REG@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	ldr	x0, [x19]
Lloh16:
	adrp	x8, _ETB_FFSR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETB_FFSR@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x8]
Lloh19:
	adrp	x8, _ETB_FFSR_BIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETB_FFSR_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_coresight_timeout
	cbz	x0, LBB0_4
; %bb.3:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_4:
	ldr	x0, [x19]
	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	_CS_LOCK
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ETB_FFCR,8,3                   ; @ETB_FFCR
	.comm	_ETB_FFCR_STOP_FI,4,2           ; @ETB_FFCR_STOP_FI
	.comm	_ETB_FFCR_FON_MAN,4,2           ; @ETB_FFCR_FON_MAN
	.comm	_ETB_FFCR_BIT,4,2               ; @ETB_FFCR_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout while waiting for completion of Manual Flush\n"

	.comm	_ETB_CTL_REG,8,3                ; @ETB_CTL_REG
	.comm	_ETB_FFSR,8,3                   ; @ETB_FFSR
	.comm	_ETB_FFSR_BIT,4,2               ; @ETB_FFSR_BIT
l_.str.1:                               ; @.str.1
	.asciz	"timeout while waiting for Formatter to Stop\n"

	.no_dead_strip	___etb_disable_hw
.subsections_via_symbols
