	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmci_clear                     ## -- Begin function cmci_clear
	.p2align	4, 0x90
_cmci_clear:                            ## @cmci_clear
	.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
	leaq	-44(%rbp), %rdi
	callq	_cmci_supported
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_cmci_discover_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, -44(%rbp)
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	movq	_mce_banks_owned@GOTPCREL(%rip), %r15
	movq	_MCI_CTL2_CMCI_EN@GOTPCREL(%rip), %r12
	movq	_MCI_CTL2_CMCI_THRESHOLD_MASK@GOTPCREL(%rip), %r13
                                        ## implicit-def: $r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	-44(%rbp), %ebx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	___get_cpu_var
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_MSR_IA32_MCx_CTL2
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_rdmsrl
	movl	(%r13), %eax
	orl	(%r12), %eax
	notl	%eax
	andl	%eax, %r14d
	movl	%ebx, %edi
	callq	_MSR_IA32_MCx_CTL2
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_wrmsrl
	movl	(%r15), %edi
	callq	___get_cpu_var
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___clear_bit
	jmp	LBB0_5
LBB0_6:
	movq	_cmci_discover_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmci_discover_lock,4,2         ## @cmci_discover_lock
	.comm	_mce_banks_owned,4,2            ## @mce_banks_owned
	.comm	_MCI_CTL2_CMCI_EN,4,2           ## @MCI_CTL2_CMCI_EN
	.comm	_MCI_CTL2_CMCI_THRESHOLD_MASK,4,2 ## @MCI_CTL2_CMCI_THRESHOLD_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmci_clear                     ; -- Begin function cmci_clear
	.p2align	2
_cmci_clear:                            ; @cmci_clear
	.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
	add	x0, sp, #12
	bl	_cmci_supported
	cbz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x0, _cmci_discover_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _cmci_discover_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	w19, #0
Lloh2:
	adrp	x21, _mce_banks_owned@GOTPAGE
Lloh3:
	ldr	x21, [x21, _mce_banks_owned@GOTPAGEOFF]
Lloh4:
	adrp	x22, _MCI_CTL2_CMCI_EN@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MCI_CTL2_CMCI_EN@GOTPAGEOFF]
                                        ; implicit-def: $w20
Lloh6:
	adrp	x23, _MCI_CTL2_CMCI_THRESHOLD_MASK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MCI_CTL2_CMCI_THRESHOLD_MASK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
	ldr	w8, [sp, #12]
	cmp	w19, w8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	___get_cpu_var
	mov	x1, x0
	mov	x0, x19
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_MSR_IA32_MCx_CTL2
	mov	x1, x20
	bl	_rdmsrl
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	bic	w20, w20, w8
	mov	x0, x19
	bl	_MSR_IA32_MCx_CTL2
	mov	x1, x20
	bl	_wrmsrl
	ldr	w0, [x21]
	bl	___get_cpu_var
	mov	x1, x0
	mov	x0, x19
	bl	___clear_bit
	b	LBB0_3
LBB0_6:
Lloh8:
	adrp	x0, _cmci_discover_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _cmci_discover_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_cmci_discover_lock,4,2         ; @cmci_discover_lock
	.comm	_mce_banks_owned,4,2            ; @mce_banks_owned
	.comm	_MCI_CTL2_CMCI_EN,4,2           ; @MCI_CTL2_CMCI_EN
	.comm	_MCI_CTL2_CMCI_THRESHOLD_MASK,4,2 ; @MCI_CTL2_CMCI_THRESHOLD_MASK
.subsections_via_symbols
