	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_rec
_count_rec:                             ## @count_rec
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %edx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	cmpl	$2, %esi
	jl	LBB0_3
## %bb.2:
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%edx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r10
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	$-1
	pushq	$0
	pushq	$0
	callq	_edac_mc_handle_error
	addq	$48, %rsp
LBB0_3:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	notl	%r8d
	andl	%ebx, %r8d
	sarl	%cl, %ebx
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%r15), %ebx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rax
	movq	%r14, %rsi
	movl	$1, %edx
	movl	%ebx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rax
	pushq	$-1
	pushq	$0
	pushq	$0
	callq	_edac_mc_handle_error
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ## @HW_EVENT_ERR_CORRECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"address(es) not available"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.no_dead_strip	_count_rec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_rec
_count_rec:                             ; @count_rec
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_4
; %bb.1:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
Lloh0:
	adrp	x23, _HW_EVENT_ERR_CORRECTED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HW_EVENT_ERR_CORRECTED@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	cmp	w1, #2
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x23]
	sub	w2, w1, #1
Lloh4:
	adrp	x8, l_.str@PAGE
Lloh5:
	add	x8, x8, l_.str@PAGEOFF
	stp	x8, x21, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	x1, x19
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_edac_mc_handle_error
LBB0_3:
Lloh6:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
	asr	w8, w20, w8
Lloh11:
	ldr	w9, [x9]
	bic	w4, w20, w9
	ldr	w0, [x23]
	ldr	w9, [x22]
	add	w3, w9, w8
	stp	x21, x21, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	x1, x19
	mov	w2, #1
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_edac_mc_handle_error
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ; @HW_EVENT_ERR_CORRECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"address(es) not available"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.no_dead_strip	_count_rec
.subsections_via_symbols
