	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cci_pmu_offline_cpu
_cci_pmu_offline_cpu:                   ## @cci_pmu_offline_cpu
	.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	_g_cci_pmu@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	%edi, %ebx
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_cpumask_any_but
	movl	%eax, %r14d
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	addq	$4, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_perf_pmu_migrate_context
	movq	(%r15), %rax
	movl	%r14d, (%rax)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_cci_pmu,8,3                  ## @g_cci_pmu
	.comm	_cpu_online_mask,4,2            ## @cpu_online_mask
	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
	.no_dead_strip	_cci_pmu_offline_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cci_pmu_offline_cpu
_cci_pmu_offline_cpu:                   ; @cci_pmu_offline_cpu
	.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
Lloh0:
	adrp	x21, _g_cci_pmu@GOTPAGE
Lloh1:
	ldr	x21, [x21, _g_cci_pmu@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _cpu_online_mask@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cpu_online_mask@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_cpumask_any_but
Lloh5:
	adrp	x8, _nr_cpu_ids@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nr_cpu_ids@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	x8, [x21]
	add	x0, x8, #4
	mov	x1, x19
	mov	x2, x20
	bl	_perf_pmu_migrate_context
	ldr	x8, [x21]
	str	w20, [x8]
LBB0_4:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_g_cci_pmu,8,3                  ; @g_cci_pmu
	.comm	_cpu_online_mask,4,2            ; @cpu_online_mask
	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
	.no_dead_strip	_cci_pmu_offline_cpu
.subsections_via_symbols
