	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uncore_perf_event_update
_uncore_perf_event_update:              ## @uncore_perf_event_update
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rsi), %rax
	movq	_UNCORE_PMC_IDX_FIXED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_uncore_perf_ctr_bits
	jmp	LBB0_3
LBB0_1:
	movq	%r12, %rdi
	callq	_uncore_fixed_ctr_bits
LBB0_3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%r14), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_local64_read
	movl	%eax, %r15d
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_uncore_read_counter
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_local64_xchg
	cmpl	%r15d, %eax
	jne	LBB0_4
## %bb.5:
	subl	%r15d, %ebx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	negb	%cl
	shll	%cl, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	movl	%ebx, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local64_add                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UNCORE_PMC_IDX_FIXED,8,3       ## @UNCORE_PMC_IDX_FIXED
	.no_dead_strip	_uncore_perf_event_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uncore_perf_event_update
_uncore_perf_event_update:              ; @uncore_perf_event_update
	.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, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _UNCORE_PMC_IDX_FIXED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UNCORE_PMC_IDX_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	bl	_uncore_perf_ctr_bits
	b	LBB0_3
LBB0_2:
	bl	_uncore_fixed_ctr_bits
LBB0_3:
	mov	x21, x0
	add	x22, x19, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_local64_read
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_uncore_read_counter
	mov	x24, x0
	mov	x0, x22
	mov	x1, x24
	bl	_local64_xchg
	cmp	w0, w23
	b.ne	LBB0_4
; %bb.5:
	sub	w8, w24, w23
	neg	w9, w21
	lsl	w8, w8, w9
	asr	w0, w8, w9
	mov	x1, 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	_local64_add
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UNCORE_PMC_IDX_FIXED,8,3       ; @UNCORE_PMC_IDX_FIXED
	.no_dead_strip	_uncore_perf_event_update
.subsections_via_symbols
