	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmc_core_probe
_pmc_core_probe:                        ## @pmc_core_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpb	$1, _pmc_core_probe.device_initialized(%rip)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	movq	_intel_pmc_core_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_x86_match_cpu
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	(%rax), %rax
	movq	_pmc@GOTPCREL(%rip), %r14
	movq	%rax, 16(%r14)
	cmpq	_spt_reg_map@GOTPCREL(%rip), %rax
	jne	LBB0_7
## %bb.5:
	movq	_pmc_pci_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pci_dev_present
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_cnp_reg_map@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
LBB0_7:
	leaq	-32(%rbp), %rdi
	callq	_lpit_read_residency_count_address
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_PMC_BASE_ADDR_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 24(%r14)
	callq	_PHYS_PFN
	movl	%eax, %edi
	callq	_page_is_ram
	testq	%rax, %rax
	je	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-32(%rbp), %rdi
	movq	16(%r14), %rax
	subq	8(%rax), %rdi
	movq	%rdi, 24(%r14)
	jmp	LBB0_11
LBB0_9:
	movq	16(%r14), %rax
	movq	24(%r14), %rdi
LBB0_11:
	movl	(%rax), %esi
	callq	_ioremap
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	leaq	4(%r14), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pmc_core_check_read_lock_bit
	movl	%eax, (%r14)
	movq	_pmc_core_dmi_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	movq	%r14, %rdi
	callq	_pmc_core_dbgfs_register
	movb	$1, _pmc_core_probe.device_initialized(%rip)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	jmp	LBB0_14
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_pmc_core_probe.device_initialized,1,2 ## @pmc_core_probe.device_initialized
	.comm	_pmc,32,3                       ## @pmc
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_intel_pmc_core_ids,4,2         ## @intel_pmc_core_ids
	.comm	_spt_reg_map,16,3               ## @spt_reg_map
	.comm	_pmc_pci_ids,4,2                ## @pmc_pci_ids
	.comm	_cnp_reg_map,16,3               ## @cnp_reg_map
	.comm	_PMC_BASE_ADDR_DEFAULT,8,3      ## @PMC_BASE_ADDR_DEFAULT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pmc_core_dmi_table,4,2         ## @pmc_core_dmi_table
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" initialized\n"

	.no_dead_strip	_pmc_core_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmc_core_probe
_pmc_core_probe:                        ; @pmc_core_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	adrp	x21, _pmc_core_probe.device_initialized@PAGE
	ldrb	w8, [x21, _pmc_core_probe.device_initialized@PAGEOFF]
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _intel_pmc_core_ids@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intel_pmc_core_ids@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_x86_match_cpu
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x0]
Lloh3:
	adrp	x20, _pmc@GOTPAGE
Lloh4:
	ldr	x20, [x20, _pmc@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh5:
	adrp	x9, _spt_reg_map@GOTPAGE
Lloh6:
	ldr	x9, [x9, _spt_reg_map@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, _pmc_pci_ids@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pmc_pci_ids@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_pci_dev_present
	cbnz	w0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _cnp_reg_map@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cnp_reg_map@GOTPAGEOFF]
	str	x8, [x20, #16]
LBB0_5:
	add	x0, sp, #8
	bl	_lpit_read_residency_count_address
	cbz	x0, LBB0_10
; %bb.6:
Lloh12:
	adrp	x8, _PMC_BASE_ADDR_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PMC_BASE_ADDR_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	str	x0, [x20, #24]
	bl	_PHYS_PFN
	bl	_page_is_ram
	cbz	x0, LBB0_11
LBB0_7:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	add	sp, sp, #64
	ret
LBB0_10:
	ldr	x9, [sp, #8]
	ldr	x8, [x20, #16]
	ldr	x10, [x8, #8]
	sub	x0, x9, x10
	str	x0, [x20, #24]
	b	LBB0_12
LBB0_11:
	ldp	x8, x0, [x20, #16]
LBB0_12:
	ldr	w1, [x8]
	bl	_ioremap
	str	w0, [x20, #8]
	cbz	w0, LBB0_14
; %bb.13:
	add	x0, x20, #4
	bl	_mutex_init
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	bl	_pmc_core_check_read_lock_bit
	str	w0, [x20]
Lloh17:
	adrp	x8, _pmc_core_dmi_table@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pmc_core_dmi_table@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_dmi_check_system
	mov	x0, x20
	bl	_pmc_core_dbgfs_register
	mov	w8, #1
	strb	w8, [x21, _pmc_core_probe.device_initialized@PAGEOFF]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_9
LBB0_14:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_pmc_core_probe.device_initialized,1,2 ; @pmc_core_probe.device_initialized
	.comm	_pmc,32,3                       ; @pmc
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_intel_pmc_core_ids,4,2         ; @intel_pmc_core_ids
	.comm	_spt_reg_map,16,3               ; @spt_reg_map
	.comm	_pmc_pci_ids,4,2                ; @pmc_pci_ids
	.comm	_cnp_reg_map,16,3               ; @cnp_reg_map
	.comm	_PMC_BASE_ADDR_DEFAULT,8,3      ; @PMC_BASE_ADDR_DEFAULT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pmc_core_dmi_table,4,2         ; @pmc_core_dmi_table
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" initialized\n"

	.no_dead_strip	_pmc_core_probe
.subsections_via_symbols
