	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cluster_pmu_set_resr
_cluster_pmu_set_resr:                  ## @cluster_pmu_set_resr
	.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, %r15d
	movq	_L2PMRESR_GROUP_BITS@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	movl	%edx, %ebx
	movq	_L2PMRESR_GROUP_MASK@GOTPCREL(%rip), %r12
	andl	(%r12), %ebx
	movq	%rdi, %r14
	movl	%r15d, %ecx
	shll	%cl, %ebx
	callq	_spin_lock_irqsave
	movq	_L2PMRESR@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_get_l2_indirect_reg
	movl	(%r12), %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movq	_L2PMRESR_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	%edx, %ebx
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_set_l2_indirect_reg
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L2PMRESR_GROUP_BITS,4,2        ## @L2PMRESR_GROUP_BITS
	.comm	_L2PMRESR_GROUP_MASK,4,2        ## @L2PMRESR_GROUP_MASK
	.comm	_L2PMRESR,4,2                   ## @L2PMRESR
	.comm	_L2PMRESR_EN,4,2                ## @L2PMRESR_EN
	.no_dead_strip	_cluster_pmu_set_resr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cluster_pmu_set_resr
_cluster_pmu_set_resr:                  ; @cluster_pmu_set_resr
	.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	x19, x0
Lloh0:
	adrp	x8, _L2PMRESR_GROUP_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L2PMRESR_GROUP_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w20, w8, w1
Lloh3:
	adrp	x21, _L2PMRESR_GROUP_MASK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _L2PMRESR_GROUP_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	and	w8, w8, w2
	lsl	w22, w8, w20
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x23, _L2PMRESR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _L2PMRESR@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_get_l2_indirect_reg
	ldr	w8, [x21]
	lsl	w8, w8, w20
	bic	w8, w0, w8
Lloh7:
	adrp	x9, _L2PMRESR_EN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _L2PMRESR_EN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w9, w9, w22
	orr	w1, w9, w8
	ldr	w0, [x23]
	bl	_set_l2_indirect_reg
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_L2PMRESR_GROUP_BITS,4,2        ; @L2PMRESR_GROUP_BITS
	.comm	_L2PMRESR_GROUP_MASK,4,2        ; @L2PMRESR_GROUP_MASK
	.comm	_L2PMRESR,4,2                   ; @L2PMRESR
	.comm	_L2PMRESR_EN,4,2                ; @L2PMRESR_EN
	.no_dead_strip	_cluster_pmu_set_resr
.subsections_via_symbols
