	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocelot_netdevice_port_event
_ocelot_netdevice_port_event:           ## @ocelot_netdevice_port_event
	.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	%rdx, %r12
	movq	%rsi, %rbx
	callq	_netdev_priv
	xorl	%r15d, %r15d
	cmpq	$128, %rbx
	jne	LBB0_10
## %bb.1:
	movq	%rax, %r14
	movl	(%r12), %edi
	callq	_netif_is_bridge_master
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$0, 4(%r12)
	movl	(%r12), %esi
	movq	%r14, %rdi
	je	LBB0_5
## %bb.4:
	callq	_ocelot_port_bridge_join
	movl	%eax, %r15d
	jmp	LBB0_6
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_5:
	callq	_ocelot_port_bridge_leave
	xorl	%r15d, %r15d
LBB0_6:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_ocelot_vlan_port_apply
LBB0_7:
	movl	(%r12), %edi
	callq	_netif_is_lag_master
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$0, 4(%r12)
	movl	(%r12), %esi
	movq	%r14, %rdi
	je	LBB0_9
## %bb.11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocelot_port_lag_join           ## TAILCALL
LBB0_9:
	callq	_ocelot_port_lag_leave
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ocelot_netdevice_port_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocelot_netdevice_port_event
_ocelot_netdevice_port_event:           ; @ocelot_netdevice_port_event
	.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
	mov	x20, x2
	mov	x21, x1
	bl	_netdev_priv
	cmp	x21, #128
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
	bl	_netif_is_bridge_master
	cbz	w0, LBB0_5
; %bb.2:
	ldp	w1, w8, [x20]
	mov	x0, x19
	cbz	w8, LBB0_6
; %bb.3:
	bl	_ocelot_port_bridge_join
	mov	x21, x0
	b	LBB0_7
LBB0_4:
	mov	w21, #0
	b	LBB0_12
LBB0_5:
	mov	w21, #0
	b	LBB0_8
LBB0_6:
	bl	_ocelot_port_bridge_leave
	mov	w21, #0
LBB0_7:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_ocelot_vlan_port_apply
LBB0_8:
	ldr	w0, [x20]
	bl	_netif_is_lag_master
	cbz	w0, LBB0_12
; %bb.9:
	ldp	w1, w8, [x20]
	mov	x0, x19
	cbz	w8, LBB0_11
; %bb.10:
	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
	b	_ocelot_port_lag_join
LBB0_11:
	bl	_ocelot_port_lag_leave
LBB0_12:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ocelot_netdevice_port_event
.subsections_via_symbols
