	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mca_scan
_mca_scan:                              ## @mca_scan
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	_MC_STATUS_UC@GOTPCREL(%rip), %rax
	movq	_MC_STATUS_PCC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	_MCE@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	movl	$0, %ebx
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	cmpl	%edi, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_MC_STATUS_OVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	(%rax), %r15d
	movq	_MSR_MCG_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movl	%eax, %r12d
	movq	_MCG_CAP_COUNT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jle	LBB0_3
## %bb.4:
	orl	%ebx, %r15d
	xorl	%ebx, %ebx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	-48(%rbp), %r14
	xorl	%r13d, %r13d
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	callq	_mca_record_entry
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	movq	_MCG_CAP_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	cmpl	%eax, %ebx
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_mca_check_status
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r15d, -48(%rbp)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %r12d
	movq	_mca_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mtx_lock_spin
	movq	%r14, %rdi
	callq	_mca_log
	movq	%r15, %rdi
	movl	%r12d, %r15d
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	callq	_mtx_unlock_spin
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
LBB0_3:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_STATUS_UC,4,2               ## @MC_STATUS_UC
	.comm	_MC_STATUS_PCC,4,2              ## @MC_STATUS_PCC
	.comm	_MCE,4,2                        ## @MCE
	.comm	_MC_STATUS_OVER,4,2             ## @MC_STATUS_OVER
	.comm	_MSR_MCG_CAP,4,2                ## @MSR_MCG_CAP
	.comm	_MCG_CAP_COUNT,4,2              ## @MCG_CAP_COUNT
	.comm	_mca_lock,4,2                   ## @mca_lock
	.comm	_CMCI,4,2                       ## @CMCI
	.comm	_cmc_state,8,3                  ## @cmc_state
	.comm	_cmci_mask,4,2                  ## @cmci_mask
	.no_dead_strip	_mca_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mca_scan
_mca_scan:                              ; @mca_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MC_STATUS_UC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC_STATUS_UC@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _MC_STATUS_PCC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MC_STATUS_PCC@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
Lloh6:
	adrp	x8, _MCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MC_STATUS_OVER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MC_STATUS_OVER@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w0
	csel	w27, w9, wzr, eq
Lloh12:
	adrp	x8, _MSR_MCG_CAP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSR_MCG_CAP@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_rdmsr
Lloh15:
	adrp	x25, _MCG_CAP_COUNT@GOTPAGE
Lloh16:
	ldr	x25, [x25, _MCG_CAP_COUNT@GOTPAGEOFF]
	ldr	w8, [x25]
	and	w8, w8, w0
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, x0
	mov	w23, #0
	mov	w21, #0
	orr	w8, w26, w24
	orr	w26, w8, w27
	mov	w27, #1
Lloh17:
	adrp	x24, _mca_lock@GOTPAGE
Lloh18:
	ldr	x24, [x24, _mca_lock@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	add	x1, sp, #8
	mov	x0, x20
	bl	_mca_record_entry
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	ldr	w8, [x25]
	and	w8, w8, w22
	cmp	w23, w8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x23
	bl	_mca_check_status
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #8]
	tst	w8, w26
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_mtx_lock_spin
	add	x0, sp, #8
	bl	_mca_log
	mov	x0, x24
	bl	_mtx_unlock_spin
	mov	w27, #0
	b	LBB0_2
LBB0_7:
	mov	w21, #0
	mov	w27, #1
LBB0_8:
	cbz	x19, LBB0_10
; %bb.9:
	str	w27, [x19]
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_STATUS_UC,4,2               ; @MC_STATUS_UC
	.comm	_MC_STATUS_PCC,4,2              ; @MC_STATUS_PCC
	.comm	_MCE,4,2                        ; @MCE
	.comm	_MC_STATUS_OVER,4,2             ; @MC_STATUS_OVER
	.comm	_MSR_MCG_CAP,4,2                ; @MSR_MCG_CAP
	.comm	_MCG_CAP_COUNT,4,2              ; @MCG_CAP_COUNT
	.comm	_mca_lock,4,2                   ; @mca_lock
	.comm	_CMCI,4,2                       ; @CMCI
	.comm	_cmc_state,8,3                  ; @cmc_state
	.comm	_cmci_mask,4,2                  ; @cmci_mask
	.no_dead_strip	_mca_scan
.subsections_via_symbols
