	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofdpa_port_init
_ofdpa_port_init:                       ## @ofdpa_port_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	_BR_LEARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	andl	(%r12), %eax
	setne	%sil
	callq	_rocker_port_set_learning
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ofdpa_port_ig_tbl
	movq	8(%r12), %rdi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movl	%ebx, %r14d
	jmp	LBB0_4
LBB0_2:
	movl	(%rdi), %esi
	movq	%r12, %rdi
	callq	_ofdpa_port_internal_vlan_id_get
	movl	%eax, 16(%r12)
	movq	_OFDPA_UNTAGGED_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ofdpa_port_vlan_add
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	movq	_OFDPA_OP_FLAG_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ofdpa_port_ig_tbl
	movl	%r15d, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_LEARNING,4,2                ## @BR_LEARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"install ig port table failed\n"

	.comm	_OFDPA_UNTAGGED_VID,4,2         ## @OFDPA_UNTAGGED_VID
L_.str.1:                               ## @.str.1
	.asciz	"install untagged VLAN failed\n"

	.comm	_OFDPA_OP_FLAG_REMOVE,4,2       ## @OFDPA_OP_FLAG_REMOVE
	.no_dead_strip	_ofdpa_port_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofdpa_port_init
_ofdpa_port_init:                       ; @ofdpa_port_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _BR_LEARNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BR_LEARNING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	bl	_rocker_port_set_learning
	mov	x0, x19
	mov	w1, #0
	bl	_ofdpa_port_ig_tbl
	mov	x20, x0
	ldr	x0, [x19, #8]
	cbz	w20, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_4
LBB0_2:
	ldr	w1, [x0]
	mov	x0, x19
	bl	_ofdpa_port_internal_vlan_id_get
	str	w0, [x19, #16]
Lloh5:
	adrp	x8, _OFDPA_UNTAGGED_VID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OFDPA_UNTAGGED_VID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ofdpa_port_vlan_add
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
Lloh10:
	adrp	x8, _OFDPA_OP_FLAG_REMOVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OFDPA_OP_FLAG_REMOVE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ofdpa_port_ig_tbl
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_LEARNING,4,2                ; @BR_LEARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"install ig port table failed\n"

	.comm	_OFDPA_UNTAGGED_VID,4,2         ; @OFDPA_UNTAGGED_VID
l_.str.1:                               ; @.str.1
	.asciz	"install untagged VLAN failed\n"

	.comm	_OFDPA_OP_FLAG_REMOVE,4,2       ; @OFDPA_OP_FLAG_REMOVE
	.no_dead_strip	_ofdpa_port_init
.subsections_via_symbols
