	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dynamic_replicator_disable
_dynamic_replicator_disable:            ## @dynamic_replicator_disable
	.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, %r14
	movq	_REPLICATOR_IDFILTER0@GOTPCREL(%rip), %r15
	movq	%r15, %rax
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$1, %edx
	jne	LBB0_7
## %bb.2:
	movq	_REPLICATOR_IDFILTER1@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rbx
	movq	(%r14), %rdi
	callq	_CS_UNLOCK
	addq	(%r14), %rbx
	movl	$255, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	cmpl	$255, %eax
	jne	LBB0_6
## %bb.4:
	movq	_REPLICATOR_IDFILTER1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	cmpl	$255, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r14), %rdi
	callq	_coresight_disclaim_device_unlocked
LBB0_6:
	movq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CS_LOCK                        ## TAILCALL
LBB0_7:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REPLICATOR_IDFILTER0,8,3       ## @REPLICATOR_IDFILTER0
	.comm	_REPLICATOR_IDFILTER1,8,3       ## @REPLICATOR_IDFILTER1
	.no_dead_strip	_dynamic_replicator_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dynamic_replicator_disable
_dynamic_replicator_disable:            ; @dynamic_replicator_disable
	.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
Lloh0:
	adrp	x20, _REPLICATOR_IDFILTER0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REPLICATOR_IDFILTER0@GOTPAGEOFF]
	cbz	w2, LBB0_3
; %bb.1:
	cmp	w2, #1
	b.ne	LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, _REPLICATOR_IDFILTER1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REPLICATOR_IDFILTER1@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	x8, x20
LBB0_4:
	ldr	x21, [x8]
	ldr	x0, [x19]
	bl	_CS_UNLOCK
	ldr	x8, [x19]
	add	x1, x8, x21
	mov	w0, #255
	bl	_writel_relaxed
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
	cmp	w0, #255
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _REPLICATOR_IDFILTER1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _REPLICATOR_IDFILTER1@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	cmp	w0, #255
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x19]
	bl	_coresight_disclaim_device_unlocked
LBB0_7:
	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
LBB0_8:
	mov	w0, #1
	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	_WARN_ON
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_REPLICATOR_IDFILTER0,8,3       ; @REPLICATOR_IDFILTER0
	.comm	_REPLICATOR_IDFILTER1,8,3       ; @REPLICATOR_IDFILTER1
	.no_dead_strip	_dynamic_replicator_disable
.subsections_via_symbols
