	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc4xx_edac_generate_plb_message
_ppc4xx_edac_generate_plb_message:      ## @ppc4xx_edac_generate_plb_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %edi
	movq	_SDRAM_BESR_MASK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rcx, %r14
	movq	_SDRAM_BESR_M0ET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	movq	_SDRAM_BESR_M0ET_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdx, %r15
	movq	_SDRAM_BESR_M0RW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	movq	_SDRAM_BESR_M0RW_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rbx
	cmoveq	%rax, %rbx
	callq	_SDRAM_BESR_M0ID_DECODE
	movq	_SDRAM_PLB_M0ID_FIRST@GOTPCREL(%rip), %rcx
	leaq	L_.str.3(%rip), %r9
	cmpl	(%rcx), %eax
	jb	LBB0_5
## %bb.3:
	movq	_SDRAM_PLB_M0ID_LAST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_5
## %bb.4:
	movq	_ppc4xx_plb_masters@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	movq	(%rcx,%rdx,8), %r9
LBB0_5:
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rcx
	movl	%eax, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDRAM_BESR_MASK,4,2            ## @SDRAM_BESR_MASK
	.comm	_SDRAM_BESR_M0ET_MASK,4,2       ## @SDRAM_BESR_M0ET_MASK
	.comm	_SDRAM_BESR_M0ET_NONE,4,2       ## @SDRAM_BESR_M0ET_NONE
	.comm	_SDRAM_BESR_M0RW_MASK,4,2       ## @SDRAM_BESR_M0RW_MASK
	.comm	_SDRAM_BESR_M0RW_READ,4,2       ## @SDRAM_BESR_M0RW_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s error w/ PLB master %u \"%s\"; "

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

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

	.comm	_SDRAM_PLB_M0ID_FIRST,4,2       ## @SDRAM_PLB_M0ID_FIRST
	.comm	_SDRAM_PLB_M0ID_LAST,4,2        ## @SDRAM_PLB_M0ID_LAST
	.comm	_ppc4xx_plb_masters,8,3         ## @ppc4xx_plb_masters
L_.str.3:                               ## @.str.3
	.asciz	"UNKNOWN"

	.no_dead_strip	_ppc4xx_edac_generate_plb_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_plb_message
_ppc4xx_edac_generate_plb_message:      ; @ppc4xx_edac_generate_plb_message
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _SDRAM_BESR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDRAM_BESR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SDRAM_BESR_M0ET_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDRAM_BESR_M0ET_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _SDRAM_BESR_M0ET_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDRAM_BESR_M0ET_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x3
	mov	x20, x2
Lloh9:
	adrp	x8, _SDRAM_BESR_M0RW_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDRAM_BESR_M0RW_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w21, w8, w0
Lloh12:
	adrp	x8, _SDRAM_BESR_M0RW_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDRAM_BESR_M0RW_READ@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	bl	_SDRAM_BESR_M0ID_DECODE
	mov	x4, x0
Lloh15:
	adrp	x8, l_.str.2@PAGE
Lloh16:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh17:
	adrp	x9, l_.str.1@PAGE
Lloh18:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w21, w22
	csel	x3, x9, x8, eq
Lloh19:
	adrp	x8, _SDRAM_PLB_M0ID_FIRST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SDRAM_PLB_M0ID_FIRST@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SDRAM_PLB_M0ID_LAST@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SDRAM_PLB_M0ID_LAST@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #2, hs
	b.ls	LBB0_5
; %bb.4:
Lloh25:
	adrp	x5, l_.str.3@PAGE
Lloh26:
	add	x5, x5, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh27:
	adrp	x8, _ppc4xx_plb_masters@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ppc4xx_plb_masters@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x5, [x8, w4, uxtw #3]
LBB0_6:
Lloh30:
	adrp	x2, l_.str@PAGE
Lloh31:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_snprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SDRAM_BESR_MASK,4,2            ; @SDRAM_BESR_MASK
	.comm	_SDRAM_BESR_M0ET_MASK,4,2       ; @SDRAM_BESR_M0ET_MASK
	.comm	_SDRAM_BESR_M0ET_NONE,4,2       ; @SDRAM_BESR_M0ET_NONE
	.comm	_SDRAM_BESR_M0RW_MASK,4,2       ; @SDRAM_BESR_M0RW_MASK
	.comm	_SDRAM_BESR_M0RW_READ,4,2       ; @SDRAM_BESR_M0RW_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s error w/ PLB master %u \"%s\"; "

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

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

	.comm	_SDRAM_PLB_M0ID_FIRST,4,2       ; @SDRAM_PLB_M0ID_FIRST
	.comm	_SDRAM_PLB_M0ID_LAST,4,2        ; @SDRAM_PLB_M0ID_LAST
	.comm	_ppc4xx_plb_masters,8,3         ; @ppc4xx_plb_masters
l_.str.3:                               ; @.str.3
	.asciz	"UNKNOWN"

	.no_dead_strip	_ppc4xx_edac_generate_plb_message
.subsections_via_symbols
