	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function platform_sram_devmap
_platform_sram_devmap:                  ## @platform_sram_devmap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	callq	_OF_finddevice
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_ofw_bus_node_is_compatible
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	callq	_ofw_bus_node_is_compatible
	testq	%rax, %rax
	jne	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_fdt_find_compatible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_fdt_find_compatible
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_7:
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
	callq	_fdt_regsize
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_9:
	movq	_MV_CESA_SRAM_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	-40(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"/sram"

L_.str.2:                               ## @.str.2
	.asciz	"mrvl,cesa-sram"

L_.str.3:                               ## @.str.3
	.asciz	"mrvl,scratchpad"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MV_CESA_SRAM_BASE,4,2          ## @MV_CESA_SRAM_BASE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_platform_sram_devmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function platform_sram_devmap
_platform_sram_devmap:                  ; @platform_sram_devmap
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	cbz	w0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_OF_finddevice
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ofw_bus_node_is_compatible
	cbnz	x0, LBB0_6
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_ofw_bus_node_is_compatible
	cbnz	x0, LBB0_6
LBB0_4:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_fdt_find_compatible
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_fdt_find_compatible
	mov	x21, x0
	cbz	w0, LBB0_12
LBB0_6:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x21
	bl	_fdt_regsize
	cbz	x0, LBB0_10
; %bb.7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _MV_CESA_SRAM_BASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MV_CESA_SRAM_BASE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldp	x9, x8, [sp]
	stp	x9, x8, [x19]
LBB0_11:
	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
LBB0_12:
Lloh19:
	adrp	x8, _ENOENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"/sram"

l_.str.2:                               ; @.str.2
	.asciz	"mrvl,cesa-sram"

l_.str.3:                               ; @.str.3
	.asciz	"mrvl,scratchpad"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MV_CESA_SRAM_BASE,4,2          ; @MV_CESA_SRAM_BASE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_platform_sram_devmap
.subsections_via_symbols
