	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_platform_devmap_init           ## -- Begin function platform_devmap_init
	.p2align	4, 0x90
_platform_devmap_init:                  ## @platform_devmap_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_fdt_devmap@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_devmap_register_table
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.1:
	movl	%eax, %ebx
	movq	_fdt_immr_va@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rdi
	movl	%eax, 8(%rdi)
	movq	_fdt_immr_pa@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movq	_fdt_immr_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	_FDT_DEVMAP_MAX@GOTPCREL(%rip), %r13
	movl	$1, %r15d
	cmpl	$2, (%r13)
	jl	LBB0_3
## %bb.2:
	addq	$12, %rdi
	callq	_platform_sram_devmap
	xorl	%r15d, %r15d
	cmpq	$1, %rax
	adcl	$1, %r15d
LBB0_3:
	movl	%ebx, %edi
	callq	_OF_child
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_21
## %bb.4:
	movl	%eax, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_OF_peer
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_21
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_mv_fdt_is_type
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_mv_fdt_is_type
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leal	1(%r15), %eax
	cmpl	(%r13), %eax
	jge	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$2, %rsi
	addq	(%r12), %rsi
	movq	_MV_PCI_VA_IO_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MV_PCI_VA_MEM_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	callq	_mv_pci_devmap
	testq	%rax, %rax
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$2, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_ofw_bus_node_is_compatible
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movl	$4, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %edx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, -48(%rbp)
	movl	$1, %edx
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	(%rdx,%r15), %eax
	cmpl	(%r13), %eax
	jge	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, -44(%rbp)
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$2, %rsi
	addq	(%r12), %rsi
	movl	%ebx, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	leaq	-44(%rbp), %rcx
	callq	_fdt_localbus_devmap
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	-44(%rbp), %r15d
	jmp	LBB0_5
LBB0_18:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fdt_devmap,8,3                 ## @fdt_devmap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_fdt_immr_va,4,2                ## @fdt_immr_va
	.comm	_fdt_immr_pa,4,2                ## @fdt_immr_pa
	.comm	_fdt_immr_size,4,2              ## @fdt_immr_size
	.comm	_FDT_DEVMAP_MAX,4,2             ## @FDT_DEVMAP_MAX
L_.str.1:                               ## @.str.1
	.asciz	"pci"

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

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MV_PCI_VA_IO_BASE,4,2          ## @MV_PCI_VA_IO_BASE
	.comm	_MV_PCI_VA_MEM_BASE,4,2         ## @MV_PCI_VA_MEM_BASE
L_.str.3:                               ## @.str.3
	.asciz	"mrvl,lbc"

L_.str.4:                               ## @.str.4
	.asciz	"bank-count"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_platform_devmap_init           ; -- Begin function platform_devmap_init
	.p2align	2
_platform_devmap_init:                  ; @platform_devmap_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x24, _fdt_devmap@GOTPAGE
Lloh1:
	ldr	x24, [x24, _fdt_devmap@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_devmap_register_table
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x8, _fdt_immr_va@GOTPAGE
Lloh5:
	ldr	x8, [x8, _fdt_immr_va@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x8]
	ldr	x8, [x24]
Lloh7:
	adrp	x10, _fdt_immr_pa@GOTPAGE
Lloh8:
	ldr	x10, [x10, _fdt_immr_pa@GOTPAGEOFF]
	str	w9, [x8, #8]
Lloh9:
	ldr	w9, [x10]
Lloh10:
	adrp	x10, _fdt_immr_size@GOTPAGE
Lloh11:
	ldr	x10, [x10, _fdt_immr_size@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
Lloh13:
	adrp	x25, _FDT_DEVMAP_MAX@GOTPAGE
Lloh14:
	ldr	x25, [x25, _FDT_DEVMAP_MAX@GOTPAGEOFF]
	ldr	w9, [x25]
	mov	w26, #1
	cmp	w9, #2
	b.lt	LBB0_3
; %bb.2:
	add	x0, x8, #12
	bl	_platform_sram_devmap
	cmp	x0, #0
	cinc	w26, w26, eq
LBB0_3:
	mov	x0, x19
	bl	_OF_child
	cbz	w0, LBB0_21
; %bb.4:
	mov	x19, x0
Lloh15:
	adrp	x20, l_.str.1@PAGE
Lloh16:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh17:
	adrp	x22, l_.str.3@PAGE
Lloh18:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	w27, #12
Lloh19:
	adrp	x28, _MV_PCI_VA_IO_BASE@GOTPAGE
Lloh20:
	ldr	x28, [x28, _MV_PCI_VA_IO_BASE@GOTPAGEOFF]
Lloh21:
	adrp	x21, _MV_PCI_VA_MEM_BASE@GOTPAGE
Lloh22:
	ldr	x21, [x21, _MV_PCI_VA_MEM_BASE@GOTPAGEOFF]
Lloh23:
	adrp	x23, l_.str.4@PAGE
Lloh24:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_OF_peer
	mov	x19, x0
	cbz	w0, LBB0_21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_mv_fdt_is_type
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_mv_fdt_is_type
	cbz	x0, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w26, #1
	ldr	w9, [x25]
	cmp	w8, w9
	b.ge	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	smaddl	x1, w26, w27, x8
	ldr	w2, [x28]
	ldr	w3, [x21]
	mov	x0, x19
	bl	_mv_pci_devmap
	cbnz	x0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w26, w26, #2
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_ofw_bus_node_is_compatible
	cbz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x23
	mov	w3, #4
	bl	_OF_getencprop
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [sp, #12]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w2, #1
	str	w2, [sp, #12]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	add	w9, w2, w26
	cmp	w9, w8
	b.ge	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [sp, #8]
	ldr	x8, [x24]
	smaddl	x1, w26, w27, x8
	add	x3, sp, #8
	mov	x0, x19
	bl	_fdt_localbus_devmap
	cbnz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #8]
	add	w26, w8, w26
	b	LBB0_5
LBB0_18:
Lloh27:
	adrp	x8, _ENXIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
LBB0_21:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_fdt_devmap,8,3                 ; @fdt_devmap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_fdt_immr_va,4,2                ; @fdt_immr_va
	.comm	_fdt_immr_pa,4,2                ; @fdt_immr_pa
	.comm	_fdt_immr_size,4,2              ; @fdt_immr_size
	.comm	_FDT_DEVMAP_MAX,4,2             ; @FDT_DEVMAP_MAX
l_.str.1:                               ; @.str.1
	.asciz	"pci"

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

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MV_PCI_VA_IO_BASE,4,2          ; @MV_PCI_VA_IO_BASE
	.comm	_MV_PCI_VA_MEM_BASE,4,2         ; @MV_PCI_VA_MEM_BASE
l_.str.3:                               ; @.str.3
	.asciz	"mrvl,lbc"

l_.str.4:                               ; @.str.4
	.asciz	"bank-count"

.subsections_via_symbols
