	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbridge_mce_output_error
_sbridge_mce_output_error:              ## @sbridge_mce_output_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	16(%rsi), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_GET_BITFIELD
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	movl	$62, %esi
	movl	$62, %edx
	callq	_GET_BITFIELD
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	12(%rbx), %edi
	movl	$61, %esi
	movl	$61, %edx
	callq	_GET_BITFIELD
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	12(%rbx), %edi
	movl	$56, %esi
	movl	$56, %edx
	callq	_GET_BITFIELD
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%rbx), %edi
	movl	$38, %esi
	movl	$52, %edx
	callq	_GET_BITFIELD
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	12(%rbx), %edi
	movl	$16, %esi
	movl	$31, %edx
	callq	_GET_BITFIELD
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	movl	$15, %edx
	callq	_GET_BITFIELD
	movl	%eax, %r15d
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_GET_BITFIELD
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %edi
	movl	$4, %esi
	movl	$6, %edx
	callq	_GET_BITFIELD
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %r13
	cmoveq	%rcx, %r13
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movl	%r15d, %ecx
	andl	$61312, %ecx                    ## imm = 0xEF80
	cmpl	$128, %ecx
	jne	LBB0_1
## %bb.2:
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.4:
	cltq
	leaq	l_reltable.sbridge_mce_output_error(%rip), %rcx
	movslq	(%rcx,%rax,4), %r15
	addq	%rcx, %r15
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.9(%rip), %r15
LBB0_5:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %r9
	leaq	-52(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movq	%r12, %rdi
	callq	_get_memory_error_data
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	movl	-52(%rbp), %edi
	callq	_get_mci_for_node_id
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movq	_NUM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	callq	_find_first_bit
	movl	-72(%rbp), %r10d
	xorl	%ecx, %ecx
	cmpl	$8, %r10d
	setl	%cl
	movl	$2, %edx
	subq	%rcx, %rdx
	xorl	%ecx, %ecx
	cmpl	$4, %r10d
	cmovgeq	%rdx, %rcx
	movq	(%r15), %rdx
	movq	(%rdx,%rax,8), %rdx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.11(%rip), %r11
	leaq	L_.str.12(%rip), %rsi
	cmoveq	%rsi, %r11
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	cmoveq	%rsi, %r11
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.14(%rip), %r15
	cmoveq	%rsi, %r15
	movl	8(%rbx), %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %r12d
	subq	$8, %rsp
	leaq	L_.str.13(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	pushq	%r10
	pushq	-80(%rbp)
	pushq	%rax
	pushq	%r12
	pushq	(%rbx)
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	pushq	%r11
	callq	_kasprintf
	addq	$96, %rsp
	movq	%rax, %rbx
	leaq	L_.str.15(%rip), %rdi
	movq	%rax, %rsi
	callq	_debugf0
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_edac_mc_handle_fbd_ue
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	callq	_edac_mc_handle_ce_no_info
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_edac_mc_handle_fbd_ce
LBB0_11:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_12:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown"

L_.str.1:                               ## @.str.1
	.asciz	"NON_FATAL"

L_.str.2:                               ## @.str.2
	.asciz	"FATAL"

L_.str.3:                               ## @.str.3
	.asciz	"Can't parse: it is not a mem"

L_.str.4:                               ## @.str.4
	.asciz	"generic undef request"

L_.str.5:                               ## @.str.5
	.asciz	"memory read"

L_.str.6:                               ## @.str.6
	.asciz	"memory write"

L_.str.7:                               ## @.str.7
	.asciz	"addr/cmd"

L_.str.8:                               ## @.str.8
	.asciz	"memory scrubbing"

L_.str.9:                               ## @.str.9
	.asciz	"reserved"

L_.str.10:                              ## @.str.10
	.asciz	"Error: socket got corrupted!"

	.comm	_NUM_CHANNELS,4,2               ## @NUM_CHANNELS
L_.str.11:                              ## @.str.11
	.asciz	" recoverable"

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

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.13:                              ## @.str.13
	.asciz	"%d %s error(s): %s on %s area %s%s: cpu=%d Err=%04x:%04x (ch=%d), addr = 0x%08llx => socket=%d, Channel=%ld(mask=%ld), rank=%d\n"

L_.str.14:                              ## @.str.14
	.asciz	"OVERFLOW"

L_.str.15:                              ## @.str.15
	.asciz	"%s"

	.no_dead_strip	_sbridge_mce_output_error
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.sbridge_mce_output_error
l_reltable.sbridge_mce_output_error:
	.long	L_.str.4-l_reltable.sbridge_mce_output_error
	.long	L_.str.5-l_reltable.sbridge_mce_output_error
	.long	L_.str.6-l_reltable.sbridge_mce_output_error
	.long	L_.str.7-l_reltable.sbridge_mce_output_error
	.long	L_.str.8-l_reltable.sbridge_mce_output_error

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbridge_mce_output_error
_sbridge_mce_output_error:              ; @sbridge_mce_output_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x1
	mov	x23, x0
	ldr	w0, [x1, #16]
	mov	w1, #0
	mov	w2, #0
	bl	_GET_BITFIELD
	mov	x21, x0
	ldr	w0, [x20, #12]
	mov	w1, #62
	mov	w2, #62
	bl	_GET_BITFIELD
	mov	x22, x0
	ldr	w0, [x20, #12]
	mov	w1, #61
	mov	w2, #61
	bl	_GET_BITFIELD
	mov	x19, x0
	ldr	w0, [x20, #12]
	mov	w1, #56
	mov	w2, #56
	bl	_GET_BITFIELD
	mov	x27, x0
	ldr	w0, [x20, #12]
	mov	w1, #38
	mov	w2, #52
	bl	_GET_BITFIELD
	mov	x24, x0
	ldr	w0, [x20, #12]
	mov	w1, #16
	mov	w2, #31
	bl	_GET_BITFIELD
	mov	x25, x0
	ldr	w0, [x20, #12]
	mov	w1, #0
	mov	w2, #15
	bl	_GET_BITFIELD
	mov	x26, x0
	ldr	w0, [x20, #12]
	mov	w1, #0
	mov	w2, #3
	bl	_GET_BITFIELD
	mov	x28, x0
	ldr	w0, [x20, #12]
	mov	w1, #4
	mov	w2, #6
	bl	_GET_BITFIELD
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x9, x9, x8, eq
	mov	w8, #61312
	and	w8, w26, w8
	cmp	w8, #128
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	b.ne	LBB0_3
; %bb.1:
	cmp	w0, #4
	b.hi	LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, l_switch.table.sbridge_mce_output_error@PAGE
Lloh5:
	add	x8, x8, l_switch.table.sbridge_mce_output_error@PAGEOFF
	ldr	x21, [x8, w0, sxtw #3]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x21, l_.str.3@PAGE
Lloh7:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x21, l_.str.9@PAGE
Lloh9:
	add	x21, x21, l_.str.9@PAGEOFF
LBB0_5:
	ldr	x1, [x20]
Lloh10:
	adrp	x5, l_.str@PAGE
Lloh11:
	add	x5, x5, l_.str@PAGEOFF
	add	x2, sp, #64
	add	x3, sp, #72
	add	x4, sp, #68
	mov	x0, x23
	bl	_get_memory_error_data
	tbnz	w0, #31, LBB0_12
; %bb.6:
	str	w24, [sp, #52]                  ; 4-byte Folded Spill
	mov	x24, x22
	ldr	w0, [sp, #64]
	bl	_get_mci_for_node_id
	cbz	x0, LBB0_9
; %bb.7:
	mov	x22, x0
	ldr	x23, [x0]
Lloh12:
	adrp	x8, _NUM_CHANNELS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NUM_CHANNELS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x0, sp, #72
	bl	_find_first_bit
	ldr	w9, [sp, #68]
	cmp	w9, #8
	mov	w8, #1
	cinc	x8, x8, ge
	cmp	w9, #4
	csel	x8, xzr, x8, lt
	ldr	x10, [x23]
	ldr	x10, [x10, x0, lsl #3]
	ldr	w23, [x10, x8, lsl #2]
	cmp	w27, #0
	ccmp	w19, #0, #4, ne
Lloh15:
	adrp	x10, l_.str.12@PAGE
Lloh16:
	add	x10, x10, l_.str.12@PAGEOFF
Lloh17:
	adrp	x8, l_.str.11@PAGE
Lloh18:
	add	x8, x8, l_.str.11@PAGEOFF
	csel	x6, x8, x10, ne
Lloh19:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x11, l_.str.14@PAGE
Lloh23:
	add	x11, x11, l_.str.14@PAGEOFF
	cmp	w24, #0
	csel	x7, x10, x11, eq
	ldr	w10, [x20, #8]
	ldr	x11, [x20]
	ldr	w12, [sp, #64]
	ldr	x13, [sp, #72]
	str	w9, [sp, #48]
	stp	x0, x13, [sp, #32]
	str	w12, [sp, #24]
Lloh24:
	adrp	x1, l_.str.13@PAGE
Lloh25:
	add	x1, x1, l_.str.13@PAGEOFF
Lloh26:
	adrp	x3, l_.str@PAGE
Lloh27:
	add	x3, x3, l_.str@PAGEOFF
	str	x11, [sp, #16]
	stp	w26, w28, [sp, #8]
	stp	w10, w25, [sp]
	mov	x0, x8
	ldr	w2, [sp, #52]                   ; 4-byte Folded Reload
	mov	x4, x21
	ldr	x5, [sp, #56]                   ; 8-byte Folded Reload
	bl	_kasprintf
	mov	x20, x0
Lloh28:
	adrp	x0, l_.str.15@PAGE
Lloh29:
	add	x0, x0, l_.str.15@PAGEOFF
	mov	x1, x20
	bl	_debugf0
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	cbz	w19, LBB0_10
; %bb.8:
	mov	w3, #0
	mov	x4, x20
	bl	_edac_mc_handle_fbd_ue
	b	LBB0_11
LBB0_9:
Lloh30:
	adrp	x1, l_.str.10@PAGE
Lloh31:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x23
	bl	_edac_mc_handle_ce_no_info
	b	LBB0_12
LBB0_10:
	mov	x3, x20
	bl	_edac_mc_handle_fbd_ce
LBB0_11:
	mov	x0, x20
	bl	_kfree
LBB0_12:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown"

l_.str.1:                               ; @.str.1
	.asciz	"NON_FATAL"

l_.str.2:                               ; @.str.2
	.asciz	"FATAL"

l_.str.3:                               ; @.str.3
	.asciz	"Can't parse: it is not a mem"

l_.str.4:                               ; @.str.4
	.asciz	"generic undef request"

l_.str.5:                               ; @.str.5
	.asciz	"memory read"

l_.str.6:                               ; @.str.6
	.asciz	"memory write"

l_.str.7:                               ; @.str.7
	.asciz	"addr/cmd"

l_.str.8:                               ; @.str.8
	.asciz	"memory scrubbing"

l_.str.9:                               ; @.str.9
	.asciz	"reserved"

l_.str.10:                              ; @.str.10
	.asciz	"Error: socket got corrupted!"

	.comm	_NUM_CHANNELS,4,2               ; @NUM_CHANNELS
l_.str.11:                              ; @.str.11
	.asciz	" recoverable"

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

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.13:                              ; @.str.13
	.asciz	"%d %s error(s): %s on %s area %s%s: cpu=%d Err=%04x:%04x (ch=%d), addr = 0x%08llx => socket=%d, Channel=%ld(mask=%ld), rank=%d\n"

l_.str.14:                              ; @.str.14
	.asciz	"OVERFLOW"

l_.str.15:                              ; @.str.15
	.asciz	"%s"

	.no_dead_strip	_sbridge_mce_output_error
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sbridge_mce_output_error
l_switch.table.sbridge_mce_output_error:
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.8

.subsections_via_symbols
