	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_msr_mce
_set_msr_mce:                           ## @set_msr_mce
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rdi), %ecx
	cmpl	$129, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_7
## %bb.2:
	movl	%edx, 4(%rdi)
	jmp	LBB0_12
LBB0_3:
	movq	_MCG_CTL_P@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.5:
	leal	-1(%rdx), %ecx
	movl	$-1, %eax
	cmpl	$-2, %ecx
	jb	LBB0_13
## %bb.6:
	movl	%edx, 8(%rdi)
	jmp	LBB0_12
LBB0_7:
	movq	_MSR_IA32_MC0_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, %eax
	cmpl	%esi, %r8d
	jg	LBB0_13
## %bb.8:
	movzbl	%cl, %ecx
	leal	(%r8,%rcx,4), %ecx
	cmpl	%esi, %ecx
	jbe	LBB0_13
## %bb.9:
	subl	%r8d, %esi
	leal	-1(%rdx), %eax
	cmpl	$-3, %eax
	ja	LBB0_11
## %bb.10:
	movl	%esi, %ecx
	movl	$-1, %eax
	andl	$3, %ecx
	jne	LBB0_11
LBB0_13:
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_11:
	movq	16(%rdi), %rax
	movslq	%esi, %rcx
	movl	%edx, (%rax,%rcx,4)
LBB0_12:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCG_CTL_P,4,2                  ## @MCG_CTL_P
	.comm	_MSR_IA32_MC0_CTL,4,2           ## @MSR_IA32_MC0_CTL
	.no_dead_strip	_set_msr_mce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_msr_mce
_set_msr_mce:                           ; @set_msr_mce
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_6
; %bb.2:
	str	w2, [x0, #4]
	mov	w0, #0
	ret
LBB0_3:
Lloh0:
	adrp	x9, _MCG_CTL_P@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCG_CTL_P@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.4:
	sub	w8, w2, #1
	cmn	w8, #2
	b.hs	LBB0_12
; %bb.5:
	mov	w0, #-1
	ret
LBB0_6:
Lloh3:
	adrp	x9, _MSR_IA32_MC0_CTL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSR_IA32_MC0_CTL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w1
	b.gt	LBB0_11
; %bb.7:
	ubfiz	w8, w8, #2, #8
	add	w8, w9, w8
	cmp	w8, w1
	b.ls	LBB0_11
; %bb.8:
	sub	w9, w1, w9
	sub	w8, w2, #1
	cmn	w8, #3
	b.hi	LBB0_13
; %bb.9:
	and	w8, w9, #0x3
	cbnz	w8, LBB0_13
; %bb.10:
	mov	w0, #-1
	ret
LBB0_11:
	mov	w0, #1
	ret
LBB0_12:
	str	w2, [x0, #8]
	mov	w0, #0
	ret
LBB0_13:
	ldr	x10, [x0, #16]
	str	w2, [x10, w9, sxtw #2]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MCG_CTL_P,4,2                  ; @MCG_CTL_P
	.comm	_MSR_IA32_MC0_CTL,4,2           ; @MSR_IA32_MC0_CTL
	.no_dead_strip	_set_msr_mce
.subsections_via_symbols
