	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_read_registers_on_cu
_do_read_registers_on_cu:               ## @do_read_registers_on_cu
	.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
	xorl	%eax, %eax
	callq	_smp_processor_id
	movl	%eax, %edi
	callq	_cpu_data
	movq	_MSR_F15H_CU_PWR_ACCUMULATOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movslq	%eax, %r15
	leaq	(,%r15,4), %rbx
	movq	16(%r14), %rsi
	addq	%rbx, %rsi
	callq	_rdmsrl_safe
	movq	_MSR_F15H_PTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	8(%r14), %rbx
	movq	%rbx, %rsi
	callq	_rdmsrl_safe
	movq	(%r14), %rax
	movl	$1, (%rax,%r15,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_F15H_CU_PWR_ACCUMULATOR,4,2 ## @MSR_F15H_CU_PWR_ACCUMULATOR
	.comm	_MSR_F15H_PTSC,4,2              ## @MSR_F15H_PTSC
	.no_dead_strip	_do_read_registers_on_cu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_read_registers_on_cu
_do_read_registers_on_cu:               ; @do_read_registers_on_cu
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_smp_processor_id
	bl	_cpu_data
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _MSR_F15H_CU_PWR_ACCUMULATOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_F15H_CU_PWR_ACCUMULATOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	sbfiz	x20, x0, #2, #32
	add	x1, x9, x20
	mov	x0, x8
	bl	_rdmsrl_safe
Lloh3:
	adrp	x8, _MSR_F15H_PTSC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_F15H_PTSC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	add	x1, x8, x20
	bl	_rdmsrl_safe
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8, x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_F15H_CU_PWR_ACCUMULATOR,4,2 ; @MSR_F15H_CU_PWR_ACCUMULATOR
	.comm	_MSR_F15H_PTSC,4,2              ; @MSR_F15H_PTSC
	.no_dead_strip	_do_read_registers_on_cu
.subsections_via_symbols
