	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbridge_check_error
_sbridge_check_error:                   ## @sbridge_check_error
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r14
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	_MCE_LOG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r14), %eax
	addl	%r13d, %eax
	movl	4(%r14), %r15d
	subl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r13d
	testl	%edx, %edx
	je	LBB0_8
## %bb.1:
	movl	%edx, %ebx
	movq	8(%r14), %rdi
	leal	(%rbx,%r15), %eax
	cmpl	%r13d, %eax
	jbe	LBB0_3
## %bb.2:
	subl	%r15d, %r13d
	leaq	(,%r15,4), %rsi
	addq	24(%r14), %rsi
	leal	(,%r13,4), %edx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$0, 4(%r14)
	subl	%r13d, %ebx
	leaq	(%rdi,%r13,4), %rdi
LBB0_3:
	movl	%r15d, %esi
	shlq	$2, %rsi
	addq	24(%r14), %rsi
	leal	(,%rbx,4), %edx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_smp_wmb
	addl	%ebx, 4(%r14)
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	16(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sbridge_printk
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	$0, 16(%r14)
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.6:
	movl	%ebx, %r15d
	shlq	$2, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_sbridge_mce_output_error
	addq	$4, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCE_LOG_LEN,4,2                ## @MCE_LOG_LEN
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Lost %d memory errors\n"

	.no_dead_strip	_sbridge_check_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbridge_check_error
_sbridge_check_error:                   ; @sbridge_check_error
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0]
	bl	_smp_rmb
Lloh0:
	adrp	x8, _MCE_LOG_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCE_LOG_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldp	w10, w8, [x21]
	add	w10, w9, w10
	sub	w10, w10, w8
	udiv	w11, w10, w9
	msub	w22, w11, w9, w10
	cbz	w22, LBB0_8
; %bb.1:
	ldr	x20, [x21, #8]
	add	w10, w22, w8
	cmp	w10, w9
	b.ls	LBB0_3
; %bb.2:
	sub	w23, w9, w8
	ldr	x9, [x21, #24]
	add	x1, x9, x8, lsl #2
	lsl	w2, w23, #2
	mov	x0, x20
	bl	_memcpy
	bl	_smp_wmb
	mov	w8, #0
	str	wzr, [x21, #4]
	sub	w22, w22, w23
	add	x20, x20, w23, uxtw #2
LBB0_3:
	ldr	x9, [x21, #24]
	add	x1, x9, w8, uxtw #2
	lsl	w2, w22, #2
	mov	x0, x20
	bl	_memcpy
	bl	_smp_wmb
	ldr	w8, [x21, #4]
	add	w8, w8, w22
	str	w8, [x21, #4]
	bl	_smp_rmb
	ldr	x2, [x21, #16]
	cbz	x2, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sbridge_printk
	bl	_smp_wmb
	str	xzr, [x21, #16]
LBB0_5:
	cbz	w22, LBB0_8
; %bb.6:
	mov	x20, #0
	mov	w8, w22
	lsl	x22, x8, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_sbridge_mce_output_error
	add	x20, x20, #4
	cmp	x22, x20
	b.ne	LBB0_7
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MCE_LOG_LEN,4,2                ; @MCE_LOG_LEN
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Lost %d memory errors\n"

	.no_dead_strip	_sbridge_check_error
.subsections_via_symbols
