	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_soc_id                         ## -- Begin function soc_id
	.p2align	4, 0x90
_soc_id:                                ## @soc_id
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MV_PCIE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$0, (%rdi)
	movl	$0, (%rsi)
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_ofw_bus_node_is_compatible
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_MV_PCIE_BASE_ARMADA38X@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movq	_fdtbus_bs_tag@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_bus_space_read_4
	sarl	$16, %eax
	movl	%eax, (%rbx)
	movl	(%r12), %edi
	movl	%r15d, %esi
	movl	$8, %edx
	callq	_bus_space_read_4
	movzbl	%al, %eax
	movl	%eax, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV_PCIE_BASE,4,2               ## @MV_PCIE_BASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.1:                               ## @.str.1
	.asciz	"marvell,armada380"

	.comm	_MV_PCIE_BASE_ARMADA38X,4,2     ## @MV_PCIE_BASE_ARMADA38X
	.comm	_fdtbus_bs_tag,4,2              ## @fdtbus_bs_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_soc_id                         ; -- Begin function soc_id
	.p2align	2
_soc_id:                                ; @soc_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MV_PCIE_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV_PCIE_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	str	wzr, [x0]
	str	wzr, [x1]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ofw_bus_node_is_compatible
Lloh7:
	adrp	x8, _MV_PCIE_BASE_ARMADA38X@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MV_PCIE_BASE_ARMADA38X@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w21, w21, w8, eq
Lloh10:
	adrp	x22, _fdtbus_bs_tag@GOTPAGE
Lloh11:
	ldr	x22, [x22, _fdtbus_bs_tag@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x21
	mov	w2, #0
	bl	_bus_space_read_4
	asr	w8, w0, #16
	str	w8, [x20]
	ldr	w0, [x22]
	mov	x1, x21
	mov	w2, #8
	bl	_bus_space_read_4
	and	w8, w0, #0xff
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MV_PCIE_BASE,4,2               ; @MV_PCIE_BASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.1:                               ; @.str.1
	.asciz	"marvell,armada380"

	.comm	_MV_PCIE_BASE_ARMADA38X,4,2     ; @MV_PCIE_BASE_ARMADA38X
	.comm	_fdtbus_bs_tag,4,2              ; @fdtbus_bs_tag
.subsections_via_symbols
