	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc4xx_edac_get_mtype
_ppc4xx_edac_get_mtype:                 ## @ppc4xx_edac_get_mtype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SDRAM_MCOPT1_RDEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	movq	_SDRAM_MCOPT1_RDEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_SDRAM_MCOPT1_DDR_TYPE_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %edi
	cmpl	$129, %edi
	je	LBB0_5
## %bb.1:
	cmpl	$128, %edi
	jne	LBB0_8
## %bb.2:
	cmpl	%ecx, %eax
	jne	LBB0_3
## %bb.4:
	movq	_MEM_RDDR2@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	cmpl	%ecx, %eax
	jne	LBB0_6
## %bb.7:
	movq	_MEM_RDDR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_MEM_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_MEM_DDR2@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_MEM_DDR@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDRAM_MCOPT1_RDEN_MASK,4,2     ## @SDRAM_MCOPT1_RDEN_MASK
	.comm	_SDRAM_MCOPT1_RDEN,4,2          ## @SDRAM_MCOPT1_RDEN
	.comm	_SDRAM_MCOPT1_DDR_TYPE_MASK,4,2 ## @SDRAM_MCOPT1_DDR_TYPE_MASK
	.comm	_MEM_RDDR2,4,2                  ## @MEM_RDDR2
	.comm	_MEM_DDR2,4,2                   ## @MEM_DDR2
	.comm	_MEM_RDDR,4,2                   ## @MEM_RDDR
	.comm	_MEM_DDR,4,2                    ## @MEM_DDR
	.comm	_MEM_UNKNOWN,4,2                ## @MEM_UNKNOWN
	.no_dead_strip	_ppc4xx_edac_get_mtype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc4xx_edac_get_mtype
_ppc4xx_edac_get_mtype:                 ; @ppc4xx_edac_get_mtype
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SDRAM_MCOPT1_RDEN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDRAM_MCOPT1_RDEN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _SDRAM_MCOPT1_RDEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDRAM_MCOPT1_RDEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SDRAM_MCOPT1_DDR_TYPE_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SDRAM_MCOPT1_DDR_TYPE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w10, w10, w0
	cmp	w10, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w10, #128
	b.ne	LBB0_5
; %bb.2:
Lloh9:
	adrp	x10, _MEM_RDDR2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MEM_RDDR2@GOTPAGEOFF]
Lloh11:
	adrp	x11, _MEM_DDR2@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MEM_DDR2@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x10, _MEM_RDDR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MEM_RDDR@GOTPAGEOFF]
Lloh15:
	adrp	x11, _MEM_DDR@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MEM_DDR@GOTPAGEOFF]
LBB0_4:
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w0, [x8]
	ret
LBB0_5:
Lloh17:
	adrp	x8, _MEM_UNKNOWN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEM_UNKNOWN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SDRAM_MCOPT1_RDEN_MASK,4,2     ; @SDRAM_MCOPT1_RDEN_MASK
	.comm	_SDRAM_MCOPT1_RDEN,4,2          ; @SDRAM_MCOPT1_RDEN
	.comm	_SDRAM_MCOPT1_DDR_TYPE_MASK,4,2 ; @SDRAM_MCOPT1_DDR_TYPE_MASK
	.comm	_MEM_RDDR2,4,2                  ; @MEM_RDDR2
	.comm	_MEM_DDR2,4,2                   ; @MEM_DDR2
	.comm	_MEM_RDDR,4,2                   ; @MEM_RDDR
	.comm	_MEM_DDR,4,2                    ; @MEM_DDR
	.comm	_MEM_UNKNOWN,4,2                ; @MEM_UNKNOWN
	.no_dead_strip	_ppc4xx_edac_get_mtype
.subsections_via_symbols
