	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_msr_mce
_get_msr_mce:                           ## @get_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 $esi killed $esi def $rsi
	movl	(%rdi), %r9d
	leal	-128(%rsi), %ecx
	cmpl	$4, %ecx
	ja	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_6:
	movl	8(%rdi), %eax
	jmp	LBB0_10
LBB0_3:
	movq	_MCG_CTL_P@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	je	LBB0_4
## %bb.5:
	movl	4(%rdi), %eax
	jmp	LBB0_10
LBB0_2:
	movl	%r9d, %eax
	jmp	LBB0_10
LBB0_7:
	movq	_MSR_IA32_MC0_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, %eax
	cmpl	%esi, %r8d
	jg	LBB0_11
## %bb.8:
	movzbl	%r9b, %ecx
	leal	(%r8,%rcx,4), %ecx
	cmpl	%esi, %ecx
	jbe	LBB0_11
## %bb.9:
	subl	%r8d, %esi
	movq	16(%rdi), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_10:
	movl	%eax, (%rdx)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_2
	.end_data_region
                                        ## -- 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	_get_msr_mce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_msr_mce
_get_msr_mce:                           ; @get_msr_mce
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w10, w1, #128
	cmp	w10, #4
	b.hi	LBB0_6
; %bb.1:
	mov	w9, #0
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	ldr	w9, [x0, #8]
	b	LBB0_9
LBB0_3:
Lloh2:
	adrp	x9, _MCG_CTL_P@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MCG_CTL_P@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.4:
	ldr	w9, [x0, #4]
	b	LBB0_9
LBB0_5:
	mov	x9, x8
	b	LBB0_9
LBB0_6:
Lloh5:
	adrp	x9, _MSR_IA32_MC0_CTL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MSR_IA32_MC0_CTL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w1
	b.gt	LBB0_10
; %bb.7:
	ubfiz	w8, w8, #2, #8
	add	w8, w9, w8
	cmp	w8, w1
	b.ls	LBB0_10
; %bb.8:
	sub	w8, w1, w9
	ldr	x9, [x0, #16]
	ldr	w9, [x9, w8, sxtw #2]
LBB0_9:
	mov	w0, #0
	str	w9, [x2]
	ret
LBB0_10:
	mov	w0, #1
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- 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	_get_msr_mce
.subsections_via_symbols
