	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmci_update
_cmci_update:                           ## @cmci_update
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_cmc_state@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_cpuid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movq	(%r14,%rax,8), %r12
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %r15
	movl	%r15d, %edi
	callq	_MSR_MC_CTL2
	movl	%eax, %edi
	callq	_rdmsr
	movl	%eax, %r13d
	movq	_MC_CTL2_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	%r13d, %r14d
	movl	(%r12,%r15,8), %edx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r12,%r15,8), %r9d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r14d, %r8d
	callq	_update_threshold
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	_CMCI@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_time_uptime@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%r15,8)
LBB0_3:
	cmpl	%r14d, %eax
	jne	LBB0_5
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MC_CTL2_THRESHOLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %r13d
	orl	%eax, %r13d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_MSR_MC_CTL2
	movl	%eax, %edi
	movl	%r13d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrmsr                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cmc_state,8,3                  ## @cmc_state
	.comm	_cpuid,4,2                      ## @cpuid
	.comm	_MC_STATUS_COR_COUNT,4,2        ## @MC_STATUS_COR_COUNT
	.comm	_MC_CTL2_THRESHOLD,4,2          ## @MC_CTL2_THRESHOLD
	.comm	_CMCI,4,2                       ## @CMCI
	.comm	_time_uptime,4,2                ## @time_uptime
	.no_dead_strip	_cmci_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmci_update
_cmci_update:                           ; @cmci_update
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _cmc_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmc_state@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _cpuid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpuid@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PCPU_GET
	ldr	x25, [x21, x0, lsl #3]
	mov	x0, x19
	bl	_MSR_MC_CTL2
	bl	_rdmsr
	mov	x21, x0
Lloh6:
	adrp	x24, _MC_CTL2_THRESHOLD@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MC_CTL2_THRESHOLD@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w22, w8, w0
	add	x25, x25, w19, sxtw #3
	ldp	w2, w5, [x25]
	mov	x0, x20
	mov	x1, x23
	mov	x4, x22
	bl	_update_threshold
	cbz	w23, LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _CMCI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMCI@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _time_uptime@GOTPAGE
Lloh12:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x25]
LBB0_3:
	cmp	w0, w22
	b.ne	LBB0_5
; %bb.4:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x24]
	bic	w8, w21, w8
	orr	w20, w8, w0
	mov	x0, x19
	bl	_MSR_MC_CTL2
	mov	x1, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wrmsr
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_cmc_state,8,3                  ; @cmc_state
	.comm	_cpuid,4,2                      ; @cpuid
	.comm	_MC_STATUS_COR_COUNT,4,2        ; @MC_STATUS_COR_COUNT
	.comm	_MC_CTL2_THRESHOLD,4,2          ; @MC_CTL2_THRESHOLD
	.comm	_CMCI,4,2                       ; @CMCI
	.comm	_time_uptime,4,2                ; @time_uptime
	.no_dead_strip	_cmci_update
.subsections_via_symbols
