	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc4xx_edac_probe
_ppc4xx_edac_probe:                     ## @ppc4xx_edac_probe
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_device_is_compatible
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_device_is_compatible
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	leaq	-84(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ppc4xx_edac_map_dcrs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.5:
	movq	_SDRAM_MCOPT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-84(%rbp), %rdi
	callq	_mfsdram
	movl	%eax, %ebx
	movq	_SDRAM_MCOPT1_MCHK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_SDRAM_MCOPT1_MCHK_NON@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_ppc4xx_edac_printk
	jmp	LBB0_3
LBB0_7:
	movq	_EDAC_MC_LAYER_CHIP_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_ppc4xx_edac_nr_csrows@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	$1, -80(%rbp)
	movq	_EDAC_MC_LAYER_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_ppc4xx_edac_nr_chans@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$0, -68(%rbp)
	movl	_ppc4xx_edac_probe.ppc4xx_edac_instance(%rip), %r12d
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%r13, %rdx
	movl	$4, %ecx
	callq	_edac_mc_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r12
	leaq	-84(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_ppc4xx_edac_mc_init
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rsi
	callq	_ppc4xx_edac_mc_printk
	jmp	LBB0_17
LBB0_2:
	movq	_KERN_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ppc4xx_edac_printk
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_8:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_ppc4xx_edac_printk
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_11:
	movq	%r12, %rdi
	callq	_edac_mc_add_mc
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rdx
	movq	%r12, %rsi
	callq	_ppc4xx_edac_mc_printk
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movq	%r12, %rdi
	callq	_edac_mc_free
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_edac_op_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EDAC_OPSTATE_INT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ppc4xx_edac_register_irq
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_edac_mc_del_mc
	jmp	LBB0_17
LBB0_15:
	incl	_ppc4xx_edac_probe.ppc4xx_edac_instance(%rip)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ppc4xx_edac_probe.ppc4xx_edac_instance,4,2 ## @ppc4xx_edac_probe.ppc4xx_edac_instance
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ibm,sdram-405ex"

L_.str.1:                               ## @.str.1
	.asciz	"ibm,sdram-405exr"

	.comm	_KERN_NOTICE,4,2                ## @KERN_NOTICE
L_.str.2:                               ## @.str.2
	.asciz	"Only the PPC405EX[r] is supported.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SDRAM_MCOPT1,4,2               ## @SDRAM_MCOPT1
	.comm	_SDRAM_MCOPT1_MCHK_MASK,4,2     ## @SDRAM_MCOPT1_MCHK_MASK
	.comm	_SDRAM_MCOPT1_MCHK_NON,4,2      ## @SDRAM_MCOPT1_MCHK_NON
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
L_.str.3:                               ## @.str.3
	.asciz	"%pOF: No ECC memory detected or ECC is disabled.\n"

	.comm	_EDAC_MC_LAYER_CHIP_SELECT,4,2  ## @EDAC_MC_LAYER_CHIP_SELECT
	.comm	_ppc4xx_edac_nr_csrows,4,2      ## @ppc4xx_edac_nr_csrows
	.comm	_EDAC_MC_LAYER_CHANNEL,4,2      ## @EDAC_MC_LAYER_CHANNEL
	.comm	_ppc4xx_edac_nr_chans,4,2       ## @ppc4xx_edac_nr_chans
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.4:                               ## @.str.4
	.asciz	"%pOF: Failed to allocate EDAC MC instance!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"Failed to initialize instance!\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to add instance!\n"

	.comm	_edac_op_state,8,3              ## @edac_op_state
	.comm	_EDAC_OPSTATE_INT,8,3           ## @EDAC_OPSTATE_INT
	.no_dead_strip	_ppc4xx_edac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc4xx_edac_probe
_ppc4xx_edac_probe:                     ; @ppc4xx_edac_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x20, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_of_device_is_compatible
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_of_device_is_compatible
	cbz	w0, LBB0_8
LBB0_2:
	add	x1, sp, #12
	mov	x0, x20
	bl	_ppc4xx_edac_map_dcrs
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.3:
Lloh7:
	adrp	x8, _SDRAM_MCOPT1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SDRAM_MCOPT1@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_mfsdram
Lloh10:
	adrp	x8, _SDRAM_MCOPT1_MCHK_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDRAM_MCOPT1_MCHK_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh13:
	adrp	x9, _SDRAM_MCOPT1_MCHK_NON@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SDRAM_MCOPT1_MCHK_NON@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
Lloh16:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_5:
	mov	x22, x0
Lloh21:
	adrp	x8, _EDAC_MC_LAYER_CHIP_SELECT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EDAC_MC_LAYER_CHIP_SELECT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _ppc4xx_edac_nr_csrows@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ppc4xx_edac_nr_csrows@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	mov	w10, #1
	stp	w10, w9, [sp, #16]
Lloh27:
	adrp	x9, _EDAC_MC_LAYER_CHANNEL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _EDAC_MC_LAYER_CHANNEL@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _ppc4xx_edac_nr_chans@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ppc4xx_edac_nr_chans@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	stp	w10, w9, [sp, #32]
	stp	w8, wzr, [sp, #24]
	adrp	x23, _ppc4xx_edac_probe.ppc4xx_edac_instance@PAGE
	ldr	w21, [x23, _ppc4xx_edac_probe.ppc4xx_edac_instance@PAGEOFF]
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	mov	x1, x0
	add	x2, sp, #16
	mov	x0, x21
	mov	w3, #4
	bl	_edac_mc_alloc
	cbz	x0, LBB0_11
; %bb.6:
	mov	x21, x0
	add	x2, sp, #12
	mov	x1, x19
	mov	x3, x22
	bl	_ppc4xx_edac_mc_init
	cbz	w0, LBB0_12
; %bb.7:
	mov	x22, x0
Lloh33:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x2, l_.str.5@PAGE
Lloh37:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x1, x21
	bl	_ppc4xx_edac_mc_printk
	b	LBB0_14
LBB0_8:
Lloh38:
	adrp	x8, _KERN_NOTICE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _KERN_NOTICE@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	bl	_ppc4xx_edac_printk
Lloh43:
	adrp	x8, _ENODEV@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_11:
Lloh45:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ppc4xx_edac_printk
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_12:
	mov	x0, x21
	bl	_edac_mc_add_mc
	cbz	x0, LBB0_17
; %bb.13:
Lloh52:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x2, l_.str.6@PAGE
Lloh56:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x1, x21
	bl	_ppc4xx_edac_mc_printk
Lloh57:
	adrp	x8, _ENODEV@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x21
	bl	_edac_mc_free
LBB0_15:
	ldr	x8, [sp, #40]
Lloh60:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh61:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.16:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
Lloh63:
	adrp	x8, _edac_op_state@GOTPAGE
Lloh64:
	ldr	x8, [x8, _edac_op_state@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
Lloh66:
	adrp	x9, _EDAC_OPSTATE_INT@GOTPAGE
Lloh67:
	ldr	x9, [x9, _EDAC_OPSTATE_INT@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.18:
	mov	x0, x19
	mov	x1, x21
	bl	_ppc4xx_edac_register_irq
	cbz	w0, LBB0_20
; %bb.19:
	mov	x22, x0
	ldr	w0, [x21]
	bl	_edac_mc_del_mc
	b	LBB0_14
LBB0_20:
	mov	w22, #0
	ldr	w8, [x23, _ppc4xx_edac_probe.ppc4xx_edac_instance@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x23, _ppc4xx_edac_probe.ppc4xx_edac_instance@PAGEOFF]
	b	LBB0_15
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ppc4xx_edac_probe.ppc4xx_edac_instance,4,2 ; @ppc4xx_edac_probe.ppc4xx_edac_instance
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ibm,sdram-405ex"

l_.str.1:                               ; @.str.1
	.asciz	"ibm,sdram-405exr"

	.comm	_KERN_NOTICE,4,2                ; @KERN_NOTICE
l_.str.2:                               ; @.str.2
	.asciz	"Only the PPC405EX[r] is supported.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SDRAM_MCOPT1,4,2               ; @SDRAM_MCOPT1
	.comm	_SDRAM_MCOPT1_MCHK_MASK,4,2     ; @SDRAM_MCOPT1_MCHK_MASK
	.comm	_SDRAM_MCOPT1_MCHK_NON,4,2      ; @SDRAM_MCOPT1_MCHK_NON
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
l_.str.3:                               ; @.str.3
	.asciz	"%pOF: No ECC memory detected or ECC is disabled.\n"

	.comm	_EDAC_MC_LAYER_CHIP_SELECT,4,2  ; @EDAC_MC_LAYER_CHIP_SELECT
	.comm	_ppc4xx_edac_nr_csrows,4,2      ; @ppc4xx_edac_nr_csrows
	.comm	_EDAC_MC_LAYER_CHANNEL,4,2      ; @EDAC_MC_LAYER_CHANNEL
	.comm	_ppc4xx_edac_nr_chans,4,2       ; @ppc4xx_edac_nr_chans
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.4:                               ; @.str.4
	.asciz	"%pOF: Failed to allocate EDAC MC instance!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"Failed to initialize instance!\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to add instance!\n"

	.comm	_edac_op_state,8,3              ; @edac_op_state
	.comm	_EDAC_OPSTATE_INT,8,3           ; @EDAC_OPSTATE_INT
	.no_dead_strip	_ppc4xx_edac_probe
.subsections_via_symbols
