	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_l3_cache__32bit_counter_start
_qcom_l3_cache__32bit_counter_start:    ## @qcom_l3_cache__32bit_counter_start
	.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	%rdi, %r13
	movl	8(%rdi), %edi
	callq	_to_l3cache_pmu
	movq	%rax, %r12
	movl	(%r13), %r14d
	movq	%r13, %rdi
	callq	_get_event_type
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_L3_M_BC_IRQCTL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r12), %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_PMIRQONMSBEN
	orl	%eax, %ebx
	movq	(%r15), %rsi
	addq	(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	addq	$4, %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_local64_set
	movq	(%r12), %rbx
	movl	%r14d, %edi
	callq	_L3_HML3_PM_EVCNTR
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_EVSEL
	movl	%eax, %r15d
	movq	(%r12), %rbx
	movl	%r14d, %edi
	callq	_L3_HML3_PM_EVTYPE
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movl	%r14d, %edi
	callq	_PMINTENSET
	movq	_L3_M_BC_INTENSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	_PMCNT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r12), %rbx
	movl	%r14d, %edi
	callq	_L3_HML3_PM_CNTCTL
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movl	%r14d, %edi
	callq	_PMCNTENSET
	movq	_L3_M_BC_CNTENSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L3_M_BC_IRQCTL,8,3             ## @L3_M_BC_IRQCTL
	.comm	_L3_M_BC_INTENSET,8,3           ## @L3_M_BC_INTENSET
	.comm	_PMCNT_RESET,4,2                ## @PMCNT_RESET
	.comm	_L3_M_BC_CNTENSET,8,3           ## @L3_M_BC_CNTENSET
	.no_dead_strip	_qcom_l3_cache__32bit_counter_start
.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__32bit_counter_start
_qcom_l3_cache__32bit_counter_start:    ; @qcom_l3_cache__32bit_counter_start
	.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	x21, x0
	ldr	w0, [x0, #8]
	bl	_to_l3cache_pmu
	mov	x19, x0
	ldr	w20, [x21]
	mov	x0, x21
	bl	_get_event_type
	mov	x22, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x24, _L3_M_BC_IRQCTL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _L3_M_BC_IRQCTL@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x23, x0
	mov	x0, x20
	bl	_PMIRQONMSBEN
	orr	w0, w0, w23
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel_relaxed
	add	x0, x21, #4
	mov	w1, #0
	bl	_local64_set
	ldr	x21, [x19]
	mov	x0, x20
	bl	_L3_HML3_PM_EVCNTR
	add	x1, x0, x21
	mov	w0, #0
	bl	_writel_relaxed
	mov	x0, x22
	bl	_EVSEL
	mov	x21, x0
	ldr	x22, [x19]
	mov	x0, x20
	bl	_L3_HML3_PM_EVTYPE
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel_relaxed
	mov	x0, x20
	bl	_PMINTENSET
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _L3_M_BC_INTENSET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _L3_M_BC_INTENSET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh5:
	adrp	x8, _PMCNT_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PMCNT_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	ldr	x22, [x19]
	mov	x0, x20
	bl	_L3_HML3_PM_CNTCTL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel_relaxed
	mov	x0, x20
	bl	_PMCNTENSET
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _L3_M_BC_CNTENSET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _L3_M_BC_CNTENSET@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	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	_writel_relaxed
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_L3_M_BC_IRQCTL,8,3             ; @L3_M_BC_IRQCTL
	.comm	_L3_M_BC_INTENSET,8,3           ; @L3_M_BC_INTENSET
	.comm	_PMCNT_RESET,4,2                ; @PMCNT_RESET
	.comm	_L3_M_BC_CNTENSET,8,3           ; @L3_M_BC_CNTENSET
	.no_dead_strip	_qcom_l3_cache__32bit_counter_start
.subsections_via_symbols
