	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_l3_cache__64bit_counter_update
_qcom_l3_cache__64bit_counter_update:   ## @qcom_l3_cache__64bit_counter_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_to_l3cache_pmu
	movq	%rax, %r15
	movl	4(%rbx), %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %rbx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%rbx, %rdi
	callq	_local64_read
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rbx
	movl	%r13d, %edi
	callq	_L3_HML3_PM_EVCNTR
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl_relaxed
	movq	%rax, %r14
	movq	(%r15), %rbx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_L3_HML3_PM_EVCNTR
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl_relaxed
	movq	%rax, %r12
	movq	(%r15), %rbx
	movl	%r13d, %edi
	callq	_L3_HML3_PM_EVCNTR
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl_relaxed
	cmpq	%rax, %r14
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	shlq	$32, %r14
	orq	%r14, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_local64_cmpxchg
	cmpq	%r14, %rax
	jne	LBB0_1
## %bb.4:
	subq	%r14, %r12
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local64_add                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qcom_l3_cache__64bit_counter_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_l3_cache__64bit_counter_update
_qcom_l3_cache__64bit_counter_update:   ; @qcom_l3_cache__64bit_counter_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_to_l3cache_pmu
	mov	x20, x0
	ldr	w21, [x19, #4]
	add	x22, x19, #8
	add	w23, w21, #1
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x0, x22
	bl	_local64_read
	mov	x24, x0
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x25, [x20]
	mov	x0, x23
	bl	_L3_HML3_PM_EVCNTR
	add	x0, x0, x25
	bl	_readl_relaxed
	mov	x25, x0
	ldr	x26, [x20]
	mov	x0, x21
	bl	_L3_HML3_PM_EVCNTR
	add	x0, x0, x26
	bl	_readl_relaxed
	mov	x26, x0
	ldr	x27, [x20]
	mov	x0, x23
	bl	_L3_HML3_PM_EVCNTR
	add	x0, x0, x27
	bl	_readl_relaxed
	cmp	x25, x0
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	orr	x25, x26, x25, lsl #32
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	bl	_local64_cmpxchg
	cmp	x0, x24
	b.ne	LBB0_1
; %bb.4:
	sub	x0, x25, x24
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_local64_add
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qcom_l3_cache__64bit_counter_update
.subsections_via_symbols
