	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_pmu_probe
_xgene_pmu_probe:                       ## @xgene_pmu_probe
	.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, %r12
	movq	_CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_xgene_pmu_online_cpu@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_xgene_pmu_offline_cpu@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_cpuhp_setup_state_multi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %r15
	movq	%r12, 56(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_xgene_pmu_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rax
	movl	(%rax), %ebx
LBB0_4:
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.5:
	movq	_PCP_PMU_V3@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_12
## %bb.6:
	movq	_xgene_pmu_v3_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_xgene_pmu_ops@GOTPCREL(%rip), %rax
LBB0_13:
	movq	%rax, 24(%r15)
	leaq	52(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	48(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	44(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	40(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movl	%ebx, (%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_info
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 36(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	36(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_15:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_18
## %bb.16:
	movq	_xgene_pmu_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_IRQF_NOBALANCING@GOTPCREL(%rip), %rax
	movq	_IRQF_NO_THREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_dev_name
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_23
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_19:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r15)
	leaq	32(%r14), %rdi
	callq	_raw_spin_lock_init
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_xgene_pmu_probe_active_mcb_mcu_l3c
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%r15)
LBB0_21:
	movl	(%r13), %edi
	addq	$16, %r14
	movq	%r14, %rsi
	callq	_cpuhp_state_add_instance
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
LBB0_23:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_24:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_xgene_pmu_probe_pmu_dev
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_cpuhp_state_remove_instance
	jmp	LBB0_11
LBB0_26:
	movq	24(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE,4,2 ## @CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE"

	.comm	_xgene_pmu_online_cpu,4,2       ## @xgene_pmu_online_cpu
	.comm	_xgene_pmu_offline_cpu,4,2      ## @xgene_pmu_offline_cpu
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_xgene_pmu_of_match,4,2         ## @xgene_pmu_of_match
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCP_PMU_V3,4,2                 ## @PCP_PMU_V3
	.comm	_xgene_pmu_v3_ops,8,3           ## @xgene_pmu_v3_ops
	.comm	_xgene_pmu_ops,8,3              ## @xgene_pmu_ops
L_.str.1:                               ## @.str.1
	.asciz	"X-Gene PMU version %d\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.2:                               ## @.str.2
	.asciz	"ioremap failed for PCP PMU resource\n"

	.comm	_xgene_pmu_isr,4,2              ## @xgene_pmu_isr
	.comm	_IRQF_NOBALANCING,4,2           ## @IRQF_NOBALANCING
	.comm	_IRQF_NO_THREAD,4,2             ## @IRQF_NO_THREAD
L_.str.3:                               ## @.str.3
	.asciz	"Could not request IRQ %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown MCB/MCU active status\n"

L_.str.5:                               ## @.str.5
	.asciz	"Error %d registering hotplug"

L_.str.6:                               ## @.str.6
	.asciz	"No PMU perf devices found!\n"

	.comm	_xgene_pmu_acpi_match,4,2       ## @xgene_pmu_acpi_match
	.no_dead_strip	_xgene_pmu_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_pmu_probe
_xgene_pmu_probe:                       ; @xgene_pmu_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x24, _CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x8, _xgene_pmu_online_cpu@GOTPAGE
Lloh3:
	ldr	x8, [x8, _xgene_pmu_online_cpu@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _xgene_pmu_offline_cpu@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xgene_pmu_offline_cpu@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_cpuhp_setup_state_multi
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.1:
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #56]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh13:
	adrp	x23, _EINVAL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh15:
	adrp	x8, _xgene_pmu_of_match@GOTPAGE
Lloh16:
	ldr	x8, [x8, _xgene_pmu_of_match@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x0]
	ldr	w21, [x8]
	tbnz	w21, #31, LBB0_8
LBB0_4:
Lloh18:
	adrp	x8, _PCP_PMU_V3@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCP_PMU_V3@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _xgene_pmu_ops@GOTPAGE
Lloh22:
	ldr	x9, [x9, _xgene_pmu_ops@GOTPAGEOFF]
Lloh23:
	adrp	x10, _xgene_pmu_v3_ops@GOTPAGE
Lloh24:
	ldr	x10, [x10, _xgene_pmu_v3_ops@GOTPAGEOFF]
	cmp	w21, w8
	csel	x8, x10, x9, eq
	str	x8, [x20, #24]
	add	x0, x20, #52
	bl	_INIT_LIST_HEAD
	add	x0, x20, #48
	bl	_INIT_LIST_HEAD
	add	x0, x20, #44
	bl	_INIT_LIST_HEAD
	add	x0, x20, #40
	bl	_INIT_LIST_HEAD
	str	w21, [x20]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_info
Lloh27:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #36]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.5:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #36]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_6:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	neg	w21, w21
	tbz	w21, #31, LBB0_4
LBB0_8:
Lloh34:
	adrp	x8, _ENODEV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
LBB0_10:
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_15
; %bb.13:
	mov	x22, x0
Lloh36:
	adrp	x8, _xgene_pmu_isr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _xgene_pmu_isr@GOTPAGEOFF]
Lloh38:
	adrp	x9, _IRQF_NOBALANCING@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IRQF_NOBALANCING@GOTPAGEOFF]
Lloh40:
	ldr	w21, [x8]
Lloh41:
	ldr	w8, [x9]
Lloh42:
	adrp	x9, _IRQF_NO_THREAD@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IRQF_NO_THREAD@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w23, w9, w8
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_16
; %bb.14:
	mov	x21, x0
	str	x22, [sp]
Lloh45:
	adrp	x1, l_.str.3@PAGE
Lloh46:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_15:
	ldr	w8, [x23]
	b	LBB0_10
LBB0_16:
	str	w22, [x20, #4]
	add	x0, x20, #32
	bl	_raw_spin_lock_init
	mov	x0, x20
	mov	x1, x19
	bl	_xgene_pmu_probe_active_mcb_mcu_l3c
	cbz	w0, LBB0_18
; %bb.17:
Lloh47:
	adrp	x1, l_.str.4@PAGE
Lloh48:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	movi.2s	v0, #1
	str	d0, [x20, #8]
LBB0_18:
	ldr	w0, [x24]
	add	x22, x20, #16
	mov	x1, x22
	bl	_cpuhp_state_add_instance
	cbz	w0, LBB0_21
; %bb.19:
	mov	x21, x0
	str	x21, [sp]
Lloh49:
	adrp	x1, l_.str.5@PAGE
Lloh50:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_21:
	mov	x0, x20
	mov	x1, x19
	bl	_xgene_pmu_probe_pmu_dev
	mov	x21, x0
	cbz	w0, LBB0_23
; %bb.22:
Lloh51:
	adrp	x1, l_.str.6@PAGE
Lloh52:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x24]
	mov	x1, x22
	bl	_cpuhp_state_remove_instance
	b	LBB0_11
LBB0_23:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	b	LBB0_11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE,4,2 ; @CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE"

	.comm	_xgene_pmu_online_cpu,4,2       ; @xgene_pmu_online_cpu
	.comm	_xgene_pmu_offline_cpu,4,2      ; @xgene_pmu_offline_cpu
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_xgene_pmu_of_match,4,2         ; @xgene_pmu_of_match
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCP_PMU_V3,4,2                 ; @PCP_PMU_V3
	.comm	_xgene_pmu_v3_ops,8,3           ; @xgene_pmu_v3_ops
	.comm	_xgene_pmu_ops,8,3              ; @xgene_pmu_ops
l_.str.1:                               ; @.str.1
	.asciz	"X-Gene PMU version %d\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.2:                               ; @.str.2
	.asciz	"ioremap failed for PCP PMU resource\n"

	.comm	_xgene_pmu_isr,4,2              ; @xgene_pmu_isr
	.comm	_IRQF_NOBALANCING,4,2           ; @IRQF_NOBALANCING
	.comm	_IRQF_NO_THREAD,4,2             ; @IRQF_NO_THREAD
l_.str.3:                               ; @.str.3
	.asciz	"Could not request IRQ %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown MCB/MCU active status\n"

l_.str.5:                               ; @.str.5
	.asciz	"Error %d registering hotplug"

l_.str.6:                               ; @.str.6
	.asciz	"No PMU perf devices found!\n"

	.comm	_xgene_pmu_acpi_match,4,2       ; @xgene_pmu_acpi_match
	.no_dead_strip	_xgene_pmu_probe
.subsections_via_symbols
