	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2_cache_pmu_probe_cluster
_l2_cache_pmu_probe_cluster:            ## @l2_cache_pmu_probe_cluster
	.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	$24, %rsp
	.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, %rbx
	movq	(%rdi), %rdi
	callq	_to_platform_device
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_platform_device
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_ACPI_HANDLE
	leaq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	_acpi_bus_get_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %r12
	leaq	32(%rax), %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.8:
	movq	_IRQ_NOAUTOEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_irq_set_status_flags
	movl	%ebx, 8(%r12)
	movq	%r14, 24(%r12)
	movl	$-1, 12(%r12)
	movq	_l2_cache_handle_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_NOBALANCING@GOTPCREL(%rip), %rax
	movq	_IRQF_NO_THREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %ebx
	jmp	LBB0_4
LBB0_10:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	-48(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_spin_lock_init
	incl	(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read ACPI uid\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IRQ_NOAUTOEN,4,2               ## @IRQ_NOAUTOEN
	.comm	_l2_cache_handle_irq,4,2        ## @l2_cache_handle_irq
	.comm	_IRQF_NOBALANCING,4,2           ## @IRQF_NOBALANCING
	.comm	_IRQF_NO_THREAD,4,2             ## @IRQF_NO_THREAD
L_.str.1:                               ## @.str.1
	.asciz	"l2-cache-pmu"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to request IRQ%d for L2 PMU counters\n"

L_.str.3:                               ## @.str.3
	.asciz	"Registered L2 cache PMU cluster %ld\n"

	.no_dead_strip	_l2_cache_pmu_probe_cluster
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2_cache_pmu_probe_cluster
_l2_cache_pmu_probe_cluster:            ; @l2_cache_pmu_probe_cluster
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_to_platform_device
	mov	x20, x0
	mov	x0, x21
	bl	_to_platform_device
	mov	x22, x0
	mov	x0, x21
	bl	_ACPI_HANDLE
	add	x1, sp, #24
	bl	_acpi_bus_get_device
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	add	x2, sp, #16
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_9
; %bb.5:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.6:
	mov	x21, x0
	add	x23, x0, #32
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	add	x1, x19, #4
	mov	x0, x23
	bl	_list_add
	ldr	x8, [sp, #16]
	str	x8, [x21]
	mov	x0, x22
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_3
; %bb.7:
Lloh5:
	adrp	x8, _IRQ_NOAUTOEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_NOAUTOEN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_irq_set_status_flags
	str	x19, [x21, #24]
	mov	w8, #-1
	stp	w22, w8, [x21, #8]
Lloh8:
	adrp	x8, _l2_cache_handle_irq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _l2_cache_handle_irq@GOTPAGEOFF]
Lloh10:
	adrp	x9, _IRQF_NOBALANCING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IRQF_NOBALANCING@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _IRQF_NO_THREAD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IRQF_NO_THREAD@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh17:
	adrp	x4, l_.str.1@PAGE
Lloh18:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x5, x21
	bl	_devm_request_irq
	cbz	w0, LBB0_11
; %bb.8:
	mov	x23, x0
	str	x22, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x22, x23
	b	LBB0_3
LBB0_9:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_1
LBB0_10:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	ldr	x2, [sp, #16]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	add	x0, x21, #16
	bl	_spin_lock_init
	mov	w22, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read ACPI uid\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IRQ_NOAUTOEN,4,2               ; @IRQ_NOAUTOEN
	.comm	_l2_cache_handle_irq,4,2        ; @l2_cache_handle_irq
	.comm	_IRQF_NOBALANCING,4,2           ; @IRQF_NOBALANCING
	.comm	_IRQF_NO_THREAD,4,2             ; @IRQF_NO_THREAD
l_.str.1:                               ; @.str.1
	.asciz	"l2-cache-pmu"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to request IRQ%d for L2 PMU counters\n"

l_.str.3:                               ; @.str.3
	.asciz	"Registered L2 cache PMU cluster %ld\n"

	.no_dead_strip	_l2_cache_pmu_probe_cluster
.subsections_via_symbols
