	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mca_check_status
_mca_check_status:                      ## @mca_check_status
	.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
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_mca_msr_ops@GOTPCREL(%rip), %r13
	callq	*(%r13)
	movl	%eax, %edi
	callq	_rdmsr
	movq	%rax, %rbx
	movq	_MC_STATUS_VAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%ebx, (%r12)
	movl	%r14d, 4(%r12)
	movq	$0, 64(%r12)
	movq	_MC_STATUS_ADDRV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	callq	*16(%r13)
	movl	%eax, %edi
	callq	_rdmsr
	movq	%rax, 64(%r12)
LBB0_4:
	movq	$0, 56(%r12)
	movq	_MC_STATUS_MISCV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	callq	*8(%r13)
	movl	%eax, %edi
	callq	_rdmsr
	movq	%rax, 56(%r12)
LBB0_6:
	xorl	%eax, %eax
	callq	_rdtsc
	movl	%eax, 48(%r12)
	movq	_apic_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movq	%rax, 40(%r12)
	movq	_MSR_MCG_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	%rax, 32(%r12)
	movq	_MSR_MCG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	%rax, 24(%r12)
	movq	_cpu_id@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_cpu_vendor_id@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_cpuid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movq	%rax, 8(%r12)
	movq	_MC_STATUS_PCC@GOTPCREL(%rip), %rax
	movq	_MC_STATUS_UC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$1, %r15d
	testl	%ecx, (%r12)
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %edi
	callq	*(%r13)
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_wrmsr
	leaq	-64(%rbp), %rsi
	xorl	%edi, %edi
	callq	_do_cpuid
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mca_msr_ops,24,3               ## @mca_msr_ops
	.comm	_MC_STATUS_VAL,4,2              ## @MC_STATUS_VAL
	.comm	_MC_STATUS_ADDRV,4,2            ## @MC_STATUS_ADDRV
	.comm	_MC_STATUS_MISCV,4,2            ## @MC_STATUS_MISCV
	.comm	_apic_id,4,2                    ## @apic_id
	.comm	_MSR_MCG_CAP,4,2                ## @MSR_MCG_CAP
	.comm	_MSR_MCG_STATUS,4,2             ## @MSR_MCG_STATUS
	.comm	_cpu_id,4,2                     ## @cpu_id
	.comm	_cpu_vendor_id,4,2              ## @cpu_vendor_id
	.comm	_cpuid,4,2                      ## @cpuid
	.comm	_MC_STATUS_PCC,4,2              ## @MC_STATUS_PCC
	.comm	_MC_STATUS_UC,4,2               ## @MC_STATUS_UC
	.no_dead_strip	_mca_check_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mca_check_status
_mca_check_status:                      ; @mca_check_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x22, _mca_msr_ops@GOTPAGE
Lloh4:
	ldr	x22, [x22, _mca_msr_ops@GOTPAGEOFF]
	ldr	x8, [x22]
	blr	x8
	bl	_rdmsr
	mov	x21, x0
Lloh5:
	adrp	x8, _MC_STATUS_VAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MC_STATUS_VAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.1:
	stp	w21, w19, [x20]
	str	xzr, [x20, #64]
Lloh8:
	adrp	x8, _MC_STATUS_ADDRV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MC_STATUS_ADDRV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x22, #16]
	mov	x0, x19
	blr	x8
	bl	_rdmsr
	str	x0, [x20, #64]
LBB0_3:
	str	xzr, [x20, #56]
Lloh11:
	adrp	x8, _MC_STATUS_MISCV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MC_STATUS_MISCV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x22, #8]
	mov	x0, x19
	blr	x8
	bl	_rdmsr
	str	x0, [x20, #56]
LBB0_5:
	bl	_rdtsc
	str	w0, [x20, #48]
Lloh14:
	adrp	x8, _apic_id@GOTPAGE
Lloh15:
	ldr	x8, [x8, _apic_id@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_PCPU_GET
	str	x0, [x20, #40]
Lloh17:
	adrp	x8, _MSR_MCG_CAP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSR_MCG_CAP@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_rdmsr
	str	x0, [x20, #32]
Lloh20:
	adrp	x8, _MSR_MCG_STATUS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSR_MCG_STATUS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_rdmsr
	str	x0, [x20, #24]
Lloh23:
	adrp	x8, _cpu_id@GOTPAGE
Lloh24:
	ldr	x8, [x8, _cpu_id@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _cpu_vendor_id@GOTPAGE
Lloh27:
	ldr	x9, [x9, _cpu_vendor_id@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh29:
	adrp	x8, _cpuid@GOTPAGE
Lloh30:
	ldr	x8, [x8, _cpuid@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_PCPU_GET
	str	x0, [x20, #8]
	ldr	w8, [x20]
Lloh32:
	adrp	x9, _MC_STATUS_PCC@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MC_STATUS_PCC@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _MC_STATUS_UC@GOTPAGE
Lloh36:
	ldr	x10, [x10, _MC_STATUS_UC@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x22]
	mov	x0, x19
	blr	x8
	mov	w1, #0
	bl	_wrmsr
	add	x1, sp, #8
	mov	w0, #0
	bl	_do_cpuid
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldr	x8, [sp, #24]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_mca_msr_ops,24,3               ; @mca_msr_ops
	.comm	_MC_STATUS_VAL,4,2              ; @MC_STATUS_VAL
	.comm	_MC_STATUS_ADDRV,4,2            ; @MC_STATUS_ADDRV
	.comm	_MC_STATUS_MISCV,4,2            ; @MC_STATUS_MISCV
	.comm	_apic_id,4,2                    ; @apic_id
	.comm	_MSR_MCG_CAP,4,2                ; @MSR_MCG_CAP
	.comm	_MSR_MCG_STATUS,4,2             ; @MSR_MCG_STATUS
	.comm	_cpu_id,4,2                     ; @cpu_id
	.comm	_cpu_vendor_id,4,2              ; @cpu_vendor_id
	.comm	_cpuid,4,2                      ; @cpuid
	.comm	_MC_STATUS_PCC,4,2              ; @MC_STATUS_PCC
	.comm	_MC_STATUS_UC,4,2               ; @MC_STATUS_UC
	.no_dead_strip	_mca_check_status
.subsections_via_symbols
