	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc4xx_edac_map_dcrs
_ppc4xx_edac_map_dcrs:                  ## @ppc4xx_edac_map_dcrs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_dcr_resource_start
	movl	%eax, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dcr_resource_len
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_SDRAM_DCR_RESOURCE_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_dcr_map
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_DCR_MAP_OK
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_5:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_10:
	xorl	%eax, %eax
	callq	_ppc4xx_edac_printk
	jmp	LBB0_11
LBB0_7:
	movq	_KERN_ERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ppc4xx_edac_printk
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to obtain DCR property.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SDRAM_DCR_RESOURCE_LEN,4,2     ## @SDRAM_DCR_RESOURCE_LEN
L_.str.1:                               ## @.str.1
	.asciz	"Unexpected DCR length %d, expected %d.\n"

	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
L_.str.2:                               ## @.str.2
	.asciz	"Failed to map DCRs.\n"

	.no_dead_strip	_ppc4xx_edac_map_dcrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc4xx_edac_map_dcrs
_ppc4xx_edac_map_dcrs:                  ; @ppc4xx_edac_map_dcrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_7
; %bb.2:
	mov	x20, x0
	mov	w1, #0
	bl	_dcr_resource_start
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_dcr_resource_len
	cbz	w21, LBB0_8
; %bb.3:
	mov	x2, x0
	cbz	w0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _SDRAM_DCR_RESOURCE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDRAM_DCR_RESOURCE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x20
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dcr_map
	str	w0, [x19]
	bl	_DCR_MAP_OK
	cbz	w0, LBB0_10
; %bb.6:
	mov	w0, #0
	b	LBB0_13
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh5:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x9, _KERN_ERR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _KERN_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	stp	x2, x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_ppc4xx_edac_printk
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to obtain DCR property.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SDRAM_DCR_RESOURCE_LEN,4,2     ; @SDRAM_DCR_RESOURCE_LEN
l_.str.1:                               ; @.str.1
	.asciz	"Unexpected DCR length %d, expected %d.\n"

	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
l_.str.2:                               ; @.str.2
	.asciz	"Failed to map DCRs.\n"

	.no_dead_strip	_ppc4xx_edac_map_dcrs
.subsections_via_symbols
