	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __etb_enable_hw
___etb_enable_hw:                       ## @__etb_enable_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	8(%rdi), %rdi
	callq	_CS_UNLOCK
	movl	(%r15), %ebx
	movq	_ETB_RAM_WRITE_POINTER@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	8(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movq	_ETB_RWD_REG@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	decl	%ebx
	jne	LBB0_2
LBB0_3:
	movq	(%r14), %rsi
	addq	8(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movq	_ETB_RAM_READ_POINTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movl	4(%r15), %edi
	movq	_ETB_TRG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel_relaxed
	movq	_ETB_FFCR_EN_FTC@GOTPCREL(%rip), %rax
	movq	_ETB_FFCR_STOP_TRIGGER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_ETB_FFCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel_relaxed
	movq	_ETB_CTL_CAPT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ETB_CTL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel_relaxed
	movq	8(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CS_LOCK                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETB_RAM_WRITE_POINTER,8,3      ## @ETB_RAM_WRITE_POINTER
	.comm	_ETB_RWD_REG,8,3                ## @ETB_RWD_REG
	.comm	_ETB_RAM_READ_POINTER,8,3       ## @ETB_RAM_READ_POINTER
	.comm	_ETB_TRG,8,3                    ## @ETB_TRG
	.comm	_ETB_FFCR_EN_FTC,4,2            ## @ETB_FFCR_EN_FTC
	.comm	_ETB_FFCR_STOP_TRIGGER,4,2      ## @ETB_FFCR_STOP_TRIGGER
	.comm	_ETB_FFCR,8,3                   ## @ETB_FFCR
	.comm	_ETB_CTL_CAPT_EN,4,2            ## @ETB_CTL_CAPT_EN
	.comm	_ETB_CTL_REG,8,3                ## @ETB_CTL_REG
	.no_dead_strip	___etb_enable_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __etb_enable_hw
___etb_enable_hw:                       ; @__etb_enable_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, #8]
	bl	_CS_UNLOCK
	ldr	w21, [x19]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x20, _ETB_RAM_WRITE_POINTER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ETB_RAM_WRITE_POINTER@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
Lloh2:
	adrp	x22, _ETB_RWD_REG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ETB_RWD_REG@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	subs	w21, w21, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _ETB_RAM_READ_POINTER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ETB_RAM_READ_POINTER@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _ETB_TRG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ETB_TRG@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh10:
	adrp	x8, _ETB_FFCR_EN_FTC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETB_FFCR_EN_FTC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ETB_FFCR_STOP_TRIGGER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ETB_FFCR_STOP_TRIGGER@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _ETB_FFCR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ETB_FFCR@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh19:
	adrp	x8, _ETB_CTL_CAPT_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETB_CTL_CAPT_EN@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh22:
	adrp	x9, _ETB_CTL_REG@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ETB_CTL_REG@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x0, [x19, #8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ETB_RAM_WRITE_POINTER,8,3      ; @ETB_RAM_WRITE_POINTER
	.comm	_ETB_RWD_REG,8,3                ; @ETB_RWD_REG
	.comm	_ETB_RAM_READ_POINTER,8,3       ; @ETB_RAM_READ_POINTER
	.comm	_ETB_TRG,8,3                    ; @ETB_TRG
	.comm	_ETB_FFCR_EN_FTC,4,2            ; @ETB_FFCR_EN_FTC
	.comm	_ETB_FFCR_STOP_TRIGGER,4,2      ; @ETB_FFCR_STOP_TRIGGER
	.comm	_ETB_FFCR,8,3                   ; @ETB_FFCR
	.comm	_ETB_CTL_CAPT_EN,4,2            ; @ETB_CTL_CAPT_EN
	.comm	_ETB_CTL_REG,8,3                ; @ETB_CTL_REG
	.no_dead_strip	___etb_enable_hw
.subsections_via_symbols
