	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofdpa_port_bridge_leave
_ofdpa_port_bridge_leave:               ## @ofdpa_port_bridge_leave
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_OFDPA_UNTAGGED_VID@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_ofdpa_port_vlan_del
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ofdpa_port_internal_vlan_id_put
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_ofdpa_port_internal_vlan_id_get
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ofdpa_port_vlan_add
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rcx
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, %eax
	testl	%edx, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ofdpa_port_fwd_enable          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OFDPA_UNTAGGED_VID,4,2         ## @OFDPA_UNTAGGED_VID
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.no_dead_strip	_ofdpa_port_bridge_leave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofdpa_port_bridge_leave
_ofdpa_port_bridge_leave:               ; @ofdpa_port_bridge_leave
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _OFDPA_UNTAGGED_VID@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OFDPA_UNTAGGED_VID@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_ofdpa_port_vlan_del
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ofdpa_port_internal_vlan_id_put
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_ofdpa_port_internal_vlan_id_get
	str	w0, [x19, #16]
	str	xzr, [x19, #8]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_ofdpa_port_vlan_add
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ofdpa_port_fwd_enable
LBB0_5:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OFDPA_UNTAGGED_VID,4,2         ; @OFDPA_UNTAGGED_VID
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.no_dead_strip	_ofdpa_port_bridge_leave
.subsections_via_symbols
