	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc4xx_edac_generate_checkbit_message
_ppc4xx_edac_generate_checkbit_message: ## @ppc4xx_edac_generate_checkbit_message
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	_SDRAM_ECCES_CKBER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rsi), %eax
	addl	$-130, %eax
	cmpl	$3, %eax
	ja	LBB0_5
## %bb.1:
	leaq	L_.str(%rip), %rcx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_3:
	movq	(%rdi), %rdi
	movq	_SDRAM_MCOPT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mfsdram
	movq	_SDRAM_MCOPT1_WDTH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$128, %eax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rcx, %rdx
	cmpl	$129, %eax
	leaq	L_.str.1(%rip), %rcx
	cmovneq	%rdx, %rcx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str.1(%rip), %rcx
LBB0_6:
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_SDRAM_ECCES_CKBER_MASK,4,2     ## @SDRAM_ECCES_CKBER_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"None"

L_.str.1:                               ## @.str.1
	.asciz	"ECC0:3"

	.comm	_SDRAM_MCOPT1,4,2               ## @SDRAM_MCOPT1
	.comm	_SDRAM_MCOPT1_WDTH_MASK,4,2     ## @SDRAM_MCOPT1_WDTH_MASK
L_.str.2:                               ## @.str.2
	.asciz	"ECC4:8"

L_.str.3:                               ## @.str.3
	.asciz	"Unknown"

L_.str.4:                               ## @.str.4
	.asciz	"ECC0:8"

L_.str.5:                               ## @.str.5
	.asciz	"Checkbit Error: %s"

	.no_dead_strip	_ppc4xx_edac_generate_checkbit_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc4xx_edac_generate_checkbit_message
_ppc4xx_edac_generate_checkbit_message: ; @ppc4xx_edac_generate_checkbit_message
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x20, x2
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _SDRAM_ECCES_CKBER_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDRAM_ECCES_CKBER_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #130
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x0, [x0]
Lloh7:
	adrp	x8, _SDRAM_MCOPT1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SDRAM_MCOPT1@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_mfsdram
Lloh10:
	adrp	x8, _SDRAM_MCOPT1_WDTH_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDRAM_MCOPT1_WDTH_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh15:
	adrp	x10, l_.str.2@PAGE
Lloh16:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #128
	csel	x9, x10, x9, eq
Lloh17:
	adrp	x10, l_.str.1@PAGE
Lloh18:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #129
	csel	x3, x10, x9, eq
	b	LBB0_6
LBB0_3:
Lloh19:
	adrp	x3, l_.str.3@PAGE
Lloh20:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh21:
	adrp	x3, l_.str.4@PAGE
Lloh22:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh23:
	adrp	x3, l_.str.1@PAGE
Lloh24:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_6:
Lloh25:
	adrp	x2, l_.str.5@PAGE
Lloh26:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_SDRAM_ECCES_CKBER_MASK,4,2     ; @SDRAM_ECCES_CKBER_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"None"

l_.str.1:                               ; @.str.1
	.asciz	"ECC0:3"

	.comm	_SDRAM_MCOPT1,4,2               ; @SDRAM_MCOPT1
	.comm	_SDRAM_MCOPT1_WDTH_MASK,4,2     ; @SDRAM_MCOPT1_WDTH_MASK
l_.str.2:                               ; @.str.2
	.asciz	"ECC4:8"

l_.str.3:                               ; @.str.3
	.asciz	"Unknown"

l_.str.4:                               ; @.str.4
	.asciz	"ECC0:8"

l_.str.5:                               ; @.str.5
	.asciz	"Checkbit Error: %s"

	.no_dead_strip	_ppc4xx_edac_generate_checkbit_message
.subsections_via_symbols
