	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_port_get_fid         ## -- Begin function mv88e6xxx_port_get_fid
	.p2align	4, 0x90
_mv88e6xxx_port_get_fid:                ## @mv88e6xxx_port_get_fid
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_mv88e6xxx_num_databases
	movl	%eax, %r15d
	movq	_MV88E6XXX_PORT_BASE_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mv88e6xxx_port_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	decl	%r15d
	movl	-36(%rbp), %eax
	shrl	$12, %eax
	andl	$15, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	cmpl	$16, %r15d
	jb	LBB0_4
## %bb.2:
	movq	_MV88E6XXX_PORT_CTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mv88e6xxx_port_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-36(%rbp), %eax
	shll	$4, %eax
	andl	%r15d, %eax
	orl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_PORT_BASE_VLAN,4,2   ## @MV88E6XXX_PORT_BASE_VLAN
	.comm	_MV88E6XXX_PORT_CTL1,4,2        ## @MV88E6XXX_PORT_CTL1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_port_get_fid         ; -- Begin function mv88e6xxx_port_get_fid
	.p2align	2
_mv88e6xxx_port_get_fid:                ; @mv88e6xxx_port_get_fid
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_mv88e6xxx_num_databases
	mov	x22, x0
Lloh0:
	adrp	x8, _MV88E6XXX_PORT_BASE_VLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV88E6XXX_PORT_BASE_VLAN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_mv88e6xxx_port_read
	cbnz	w0, LBB0_5
; %bb.1:
	sub	w22, w22, #1
	ldr	w8, [sp, #12]
	ubfx	w8, w8, #12, #4
	str	w8, [x19]
	cmp	w22, #16
	b.hs	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _MV88E6XXX_PORT_CTL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MV88E6XXX_PORT_CTL1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_mv88e6xxx_port_read
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
	and	w8, w22, w8, lsl #4
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_PORT_BASE_VLAN,4,2   ; @MV88E6XXX_PORT_BASE_VLAN
	.comm	_MV88E6XXX_PORT_CTL1,4,2        ; @MV88E6XXX_PORT_CTL1
.subsections_via_symbols
