	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dynamic_funnel_enable_hw
_dynamic_funnel_enable_hw:              ## @dynamic_funnel_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	callq	_CS_UNLOCK
	movq	_FUNNEL_FUNCTL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%r15), %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movq	_FUNNEL_ENSx_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	8(%r15), %rdi
	callq	_coresight_claim_device_unlocked
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movq	_FUNNEL_HOLDTIME_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_FUNNEL_HOLDTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	btsl	%r14d, %edi
	orl	%ebx, %edi
	movq	(%r13), %rsi
	addq	8(%r15), %rsi
	callq	_writel_relaxed
	movl	(%r15), %edi
	movq	_FUNNEL_PRICTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel_relaxed
	xorl	%r12d, %r12d
LBB0_3:
	movq	8(%r15), %rdi
	callq	_CS_LOCK
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FUNNEL_FUNCTL,8,3              ## @FUNNEL_FUNCTL
	.comm	_FUNNEL_ENSx_MASK,4,2           ## @FUNNEL_ENSx_MASK
	.comm	_FUNNEL_HOLDTIME_MASK,4,2       ## @FUNNEL_HOLDTIME_MASK
	.comm	_FUNNEL_HOLDTIME,4,2            ## @FUNNEL_HOLDTIME
	.comm	_FUNNEL_PRICTL,8,3              ## @FUNNEL_PRICTL
	.no_dead_strip	_dynamic_funnel_enable_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dynamic_funnel_enable_hw
_dynamic_funnel_enable_hw:              ; @dynamic_funnel_enable_hw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_CS_UNLOCK
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x23, _FUNNEL_FUNCTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FUNNEL_FUNCTL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x21, x0
Lloh2:
	adrp	x8, _FUNNEL_ENSx_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FUNNEL_ENSx_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_coresight_claim_device_unlocked
	mov	x22, x0
	cbnz	w0, LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _FUNNEL_HOLDTIME_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FUNNEL_HOLDTIME_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w8, w21, w8
Lloh8:
	adrp	x9, _FUNNEL_HOLDTIME@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FUNNEL_HOLDTIME@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w10, w10, w20
	orr	w9, w9, w10
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w0, [x19]
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _FUNNEL_PRICTL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FUNNEL_PRICTL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	mov	w22, #0
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_CS_LOCK
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FUNNEL_FUNCTL,8,3              ; @FUNNEL_FUNCTL
	.comm	_FUNNEL_ENSx_MASK,4,2           ; @FUNNEL_ENSx_MASK
	.comm	_FUNNEL_HOLDTIME_MASK,4,2       ; @FUNNEL_HOLDTIME_MASK
	.comm	_FUNNEL_HOLDTIME,4,2            ; @FUNNEL_HOLDTIME
	.comm	_FUNNEL_PRICTL,8,3              ; @FUNNEL_PRICTL
	.no_dead_strip	_dynamic_funnel_enable_hw
.subsections_via_symbols
