	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_pcib_root_slot
_mv_pcib_root_slot:                     ## @mv_pcib_root_slot
	.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
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %r15d
	callq	_device_get_softc
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_PCIR_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_PCIR_VENDOR_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_mv_pcib_hw_cfgread
	movq	%rax, %r13
	movq	_PCIR_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_PCIR_DEVICE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_mv_pcib_hw_cfgread
	movq	_MV_DEV_FAMILY_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_PCI_VENDORID_MRVL@GOTPCREL(%rip), %rcx
	xorq	(%rcx), %r13
	movq	_MV_DEV_ARMADA38X@GOTPCREL(%rip), %rcx
	xorq	(%rcx), %rax
	orq	%r13, %rax
	jmp	LBB0_3
LBB0_1:
	testl	%r12d, %r12d
LBB0_3:
	sete	%al
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIR_VENDOR,4,2                ## @PCIR_VENDOR
	.comm	_PCIR_VENDOR_LENGTH,4,2         ## @PCIR_VENDOR_LENGTH
	.comm	_PCIR_DEVICE,4,2                ## @PCIR_DEVICE
	.comm	_PCIR_DEVICE_LENGTH,4,2         ## @PCIR_DEVICE_LENGTH
	.comm	_MV_DEV_FAMILY_MASK,8,3         ## @MV_DEV_FAMILY_MASK
	.comm	_PCI_VENDORID_MRVL,8,3          ## @PCI_VENDORID_MRVL
	.comm	_MV_DEV_ARMADA38X,8,3           ## @MV_DEV_ARMADA38X
	.no_dead_strip	_mv_pcib_root_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_pcib_root_slot
_mv_pcib_root_slot:                     ; @mv_pcib_root_slot
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_device_get_softc
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _PCIR_VENDOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIR_VENDOR@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _PCIR_VENDOR_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIR_VENDOR_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_mv_pcib_hw_cfgread
	mov	x23, x0
Lloh6:
	adrp	x8, _PCIR_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCIR_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _PCIR_DEVICE_LENGTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCIR_DEVICE_LENGTH@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_mv_pcib_hw_cfgread
Lloh12:
	adrp	x8, _MV_DEV_FAMILY_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MV_DEV_FAMILY_MASK@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh15:
	adrp	x9, _PCI_VENDORID_MRVL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCI_VENDORID_MRVL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x23, x9
Lloh18:
	adrp	x9, _MV_DEV_ARMADA38X@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MV_DEV_ARMADA38X@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, eq
	b	LBB0_3
LBB0_2:
	cmp	w20, #0
LBB0_3:
	cset	w0, eq
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIR_VENDOR,4,2                ; @PCIR_VENDOR
	.comm	_PCIR_VENDOR_LENGTH,4,2         ; @PCIR_VENDOR_LENGTH
	.comm	_PCIR_DEVICE,4,2                ; @PCIR_DEVICE
	.comm	_PCIR_DEVICE_LENGTH,4,2         ; @PCIR_DEVICE_LENGTH
	.comm	_MV_DEV_FAMILY_MASK,8,3         ; @MV_DEV_FAMILY_MASK
	.comm	_PCI_VENDORID_MRVL,8,3          ; @PCI_VENDORID_MRVL
	.comm	_MV_DEV_ARMADA38X,8,3           ; @MV_DEV_ARMADA38X
	.no_dead_strip	_mv_pcib_root_slot
.subsections_via_symbols
