	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmci_resume
_cmci_resume:                           ## @cmci_resume
	.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
	movl	%edi, %r14d
	movq	_mca_banks@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%edi, (%rax)
	setg	%bl
	movq	_cpuid@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_PCPU_GET
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_KASSERT
	movq	_cmci_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movslq	%edx, %rcx
	testq	%rcx, %rax
	je	LBB0_1
## %bb.2:
	movq	_cmc_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%r15), %edi
	callq	_PCPU_GET
	movq	(%rbx,%rax,8), %rax
	movslq	%r14d, %rcx
	movq	$0, (%rax,%rcx,8)
	movl	%r14d, %edi
	callq	_MSR_MC_CTL2
	movl	%eax, %edi
	callq	_rdmsr
	movq	_MC_CTL2_THRESHOLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_MC_CTL2_CMCI_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	$1, %ebx
	movl	%r14d, %edi
	callq	_MSR_MC_CTL2
	movl	%eax, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrmsr                          ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mca_banks,4,2                  ## @mca_banks
	.comm	_cpuid,4,2                      ## @cpuid
	.comm	_cmci_mask,4,2                  ## @cmci_mask
	.comm	_cmc_state,8,3                  ## @cmc_state
	.comm	_MC_CTL2_THRESHOLD,4,2          ## @MC_CTL2_THRESHOLD
	.comm	_MC_CTL2_CMCI_EN,4,2            ## @MC_CTL2_CMCI_EN
	.no_dead_strip	_cmci_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmci_resume
_cmci_resume:                           ; @cmci_resume
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _mca_banks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mca_banks@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	cset	w20, gt
Lloh3:
	adrp	x21, _cpuid@GOTPAGE
Lloh4:
	ldr	x21, [x21, _cpuid@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_PCPU_GET
	mov	x1, x0
	mov	x0, x20
	bl	_KASSERT
Lloh5:
	adrp	x8, _cmci_mask@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cmci_mask@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_PCPU_GET
	mov	w8, #1
	lsl	w8, w8, w19
	sxtw	x8, w8
	tst	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _cmc_state@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cmc_state@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
	ldr	w0, [x21]
	bl	_PCPU_GET
	ldr	x8, [x20, x0, lsl #3]
	str	xzr, [x8, w19, sxtw #3]
	mov	x0, x19
	bl	_MSR_MC_CTL2
	bl	_rdmsr
Lloh11:
	adrp	x8, _MC_CTL2_THRESHOLD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MC_CTL2_THRESHOLD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh14:
	adrp	x9, _MC_CTL2_CMCI_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MC_CTL2_CMCI_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	orr	w20, w8, #0x1
	mov	x0, x19
	bl	_MSR_MC_CTL2
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wrmsr
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mca_banks,4,2                  ; @mca_banks
	.comm	_cpuid,4,2                      ; @cpuid
	.comm	_cmci_mask,4,2                  ; @cmci_mask
	.comm	_cmc_state,8,3                  ; @cmc_state
	.comm	_MC_CTL2_THRESHOLD,4,2          ; @MC_CTL2_THRESHOLD
	.comm	_MC_CTL2_CMCI_EN,4,2            ; @MC_CTL2_CMCI_EN
	.no_dead_strip	_cmci_resume
.subsections_via_symbols
