	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_erratum_383
_is_erratum_383:                        ## @is_erratum_383
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_erratum_383_found@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_MSR_IA32_MC0_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-36(%rbp), %rsi
	callq	_native_read_msr_safe
	cmpl	$0, -36(%rbp)
	jne	LBB0_6
## %bb.2:
	movabsq	$-4611686018427387905, %rcx     ## imm = 0xBFFFFFFFFFFFFFFF
	andq	%rcx, %rax
	movabsq	$-5332261958806601707, %rcx     ## imm = 0xB600000000010015
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.3:
	xorl	%edi, %edi
	callq	_MSR_IA32_MCx_STATUS
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_native_write_msr_safe
	movl	$1, %r14d
	movl	$1, %edi
	callq	_MSR_IA32_MCx_STATUS
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_native_write_msr_safe
	movl	$2, %edi
	callq	_MSR_IA32_MCx_STATUS
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_native_write_msr_safe
	movl	$3, %edi
	callq	_MSR_IA32_MCx_STATUS
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_native_write_msr_safe
	movl	$4, %edi
	callq	_MSR_IA32_MCx_STATUS
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_native_write_msr_safe
	movl	$5, %edi
	callq	_MSR_IA32_MCx_STATUS
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_native_write_msr_safe
	movq	_MSR_IA32_MCG_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-36(%rbp), %rsi
	callq	_native_read_msr_safe
	cmpl	$0, -36(%rbp)
	jne	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	andq	$-5, %rbx
	movq	%rbx, %rdi
	callq	_lower_32_bits
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_upper_32_bits
	movl	(%r12), %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_native_write_msr_safe
LBB0_5:
	xorl	%eax, %eax
	callq	___flush_tlb_all
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_erratum_383_found,4,2          ## @erratum_383_found
	.comm	_MSR_IA32_MC0_STATUS,4,2        ## @MSR_IA32_MC0_STATUS
	.comm	_MSR_IA32_MCG_STATUS,4,2        ## @MSR_IA32_MCG_STATUS
	.no_dead_strip	_is_erratum_383
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_erratum_383
_is_erratum_383:                        ; @is_erratum_383
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _erratum_383_found@GOTPAGE
Lloh1:
	ldr	x8, [x8, _erratum_383_found@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _MSR_IA32_MC0_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_IA32_MC0_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_native_read_msr_safe
	ldr	w8, [sp, #12]
	and	x9, x0, #0xbfffffffffffffff
	cmp	w8, #0
	mov	x8, #21
	movk	x8, #1, lsl #16
	movk	x8, #46592, lsl #48
	mov	w0, #0
	ccmp	x9, x8, #0, eq
	b.ne	LBB0_6
; %bb.2:
	bl	_MSR_IA32_MCx_STATUS
	mov	w1, #0
	mov	w2, #0
	bl	_native_write_msr_safe
	mov	w0, #1
	bl	_MSR_IA32_MCx_STATUS
	mov	w1, #0
	mov	w2, #0
	bl	_native_write_msr_safe
	mov	w0, #2
	bl	_MSR_IA32_MCx_STATUS
	mov	w1, #0
	mov	w2, #0
	bl	_native_write_msr_safe
	mov	w0, #3
	bl	_MSR_IA32_MCx_STATUS
	mov	w1, #0
	mov	w2, #0
	bl	_native_write_msr_safe
	mov	w0, #4
	bl	_MSR_IA32_MCx_STATUS
	mov	w1, #0
	mov	w2, #0
	bl	_native_write_msr_safe
	mov	w0, #5
	bl	_MSR_IA32_MCx_STATUS
	mov	w1, #0
	mov	w2, #0
	bl	_native_write_msr_safe
Lloh6:
	adrp	x21, _MSR_IA32_MCG_STATUS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MSR_IA32_MCG_STATUS@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #12
	bl	_native_read_msr_safe
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_4
; %bb.3:
	and	x19, x0, #0xfffffffffffffffb
	mov	x0, x19
	bl	_lower_32_bits
	mov	x20, x0
	mov	x0, x19
	bl	_upper_32_bits
	mov	x2, x0
	ldr	w0, [x21]
	mov	x1, x20
	bl	_native_write_msr_safe
LBB0_4:
	bl	___flush_tlb_all
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_erratum_383_found,4,2          ; @erratum_383_found
	.comm	_MSR_IA32_MC0_STATUS,4,2        ; @MSR_IA32_MC0_STATUS
	.comm	_MSR_IA32_MCG_STATUS,4,2        ; @MSR_IA32_MCG_STATUS
	.no_dead_strip	_is_erratum_383
.subsections_via_symbols
