	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_init_cmci
_intel_init_cmci:                       ## @intel_init_cmci
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	leaq	-4(%rbp), %rdi
	callq	_cmci_supported
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_intel_threshold_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_mce_threshold_vector@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	-4(%rbp), %edi
	movl	$1, %esi
	callq	_cmci_discover
	movq	_APIC_LVTCMCI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_THRESHOLD_APIC_VECTOR@GOTPCREL(%rip), %rax
	movq	_APIC_DM_FIXED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_apic_write
	xorl	%eax, %eax
	callq	_cmci_recheck
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_threshold_interrupt,4,2  ## @intel_threshold_interrupt
	.comm	_mce_threshold_vector,4,2       ## @mce_threshold_vector
	.comm	_APIC_LVTCMCI,4,2               ## @APIC_LVTCMCI
	.comm	_THRESHOLD_APIC_VECTOR,4,2      ## @THRESHOLD_APIC_VECTOR
	.comm	_APIC_DM_FIXED,4,2              ## @APIC_DM_FIXED
	.no_dead_strip	_intel_init_cmci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_init_cmci
_intel_init_cmci:                       ; @intel_init_cmci
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	x0, x29, #4
	bl	_cmci_supported
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _intel_threshold_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intel_threshold_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _mce_threshold_vector@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mce_threshold_vector@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	ldur	w0, [x29, #-4]
	mov	w1, #1
	bl	_cmci_discover
Lloh6:
	adrp	x8, _APIC_LVTCMCI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APIC_LVTCMCI@GOTPAGEOFF]
Lloh8:
	adrp	x9, _THRESHOLD_APIC_VECTOR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _THRESHOLD_APIC_VECTOR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _APIC_DM_FIXED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _APIC_DM_FIXED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_apic_write
	bl	_cmci_recheck
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_threshold_interrupt,4,2  ; @intel_threshold_interrupt
	.comm	_mce_threshold_vector,4,2       ; @mce_threshold_vector
	.comm	_APIC_LVTCMCI,4,2               ; @APIC_LVTCMCI
	.comm	_THRESHOLD_APIC_VECTOR,4,2      ; @THRESHOLD_APIC_VECTOR
	.comm	_APIC_DM_FIXED,4,2              ; @APIC_DM_FIXED
	.no_dead_strip	_intel_init_cmci
.subsections_via_symbols
