	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gswip_port_fdb
_gswip_port_fdb:                        ## @gswip_port_fdb
	.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	(%rdi), %r15
	callq	_dsa_to_port
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	8(%r15), %rdi
	movq	16(%r15), %rax
	movslq	(%rax), %r12
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jge	LBB0_5
## %bb.2:
	movq	%r12, %rbx
	shlq	$4, %rbx
	orq	$8, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	cmpq	%r14, (%rdi,%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_4
LBB0_5:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port not part of a bridge\n"

	.comm	_GSWIP_TABLE_MAC_BRIDGE,4,2     ## @GSWIP_TABLE_MAC_BRIDGE
	.comm	_GSWIP_TABLE_MAC_BRIDGE_STATIC,4,2 ## @GSWIP_TABLE_MAC_BRIDGE_STATIC
	.no_dead_strip	_gswip_port_fdb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gswip_port_fdb
_gswip_port_fdb:                        ; @gswip_port_fdb
	.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
	ldr	x19, [x0]
	bl	_dsa_to_port
	ldr	x20, [x0]
	cbz	x20, LBB0_6
; %bb.1:
	ldp	x0, x8, [x19, #8]
	ldrsw	x21, [x8]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_5
; %bb.2:
	lsl	x22, x21, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	add	x8, x0, x22
	ldr	x8, [x8, #8]
	cmp	x8, x20
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #16
	cmp	x21, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port not part of a bridge\n"

	.comm	_GSWIP_TABLE_MAC_BRIDGE,4,2     ; @GSWIP_TABLE_MAC_BRIDGE
	.comm	_GSWIP_TABLE_MAC_BRIDGE_STATIC,4,2 ; @GSWIP_TABLE_MAC_BRIDGE_STATIC
	.no_dead_strip	_gswip_port_fdb
.subsections_via_symbols
