	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_router_port_change_event
_mlxsw_sp_router_port_change_event:     ## @mlxsw_sp_router_port_change_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	32(%rsi), %r14
	movl	24(%rsi), %edi
	callq	_mlxsw_sp_fid_index
	movl	%eax, %r12d
	movl	16(%r13), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_mlxsw_sp_rif_fdb_op
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	20(%r13), %esi
	movl	8(%r14), %edx
	movq	(%r14), %rcx
	movq	%r15, %rdi
	callq	_mlxsw_sp_rif_edit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movl	8(%r14), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_mlxsw_sp_rif_fdb_op
	testl	%eax, %eax
	je	LBB0_3
## %bb.9:
	movl	%eax, %ebx
	movl	20(%r13), %esi
	movl	16(%r13), %edx
	movq	(%r13), %rcx
	movq	%r15, %rdi
	callq	_mlxsw_sp_rif_edit
LBB0_10:
	movl	16(%r13), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_mlxsw_sp_rif_fdb_op
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %rdx
	cmpq	%rdx, (%r13)
	je	LBB0_8
## %bb.4:
	movq	_MLXSW_SP_L3_PROTO_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.5:
	movq	8(%r13), %r12
	movq	(%r15), %rax
	movq	(%rax), %r15
	movq	(%r15,%r12,8), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_mlxsw_sp_mr_rif_mtu_update
	movq	_MLXSW_SP_L3_PROTO_MAX@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_8
## %bb.6:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdx
	movq	(%r15,%r12,8), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r13, %rsi
	callq	_mlxsw_sp_mr_rif_mtu_update
	incq	%rbx
	movq	_MLXSW_SP_L3_PROTO_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movl	16(%r13), %edi
	movl	8(%r14), %esi
	callq	_ether_addr_copy
	movq	(%r14), %rax
	movq	%rax, (%r13)
	movl	20(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_L3_PROTO_MAX,4,2      ## @MLXSW_SP_L3_PROTO_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Updated RIF=%d\n"

	.no_dead_strip	_mlxsw_sp_router_port_change_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_router_port_change_event
_mlxsw_sp_router_port_change_event:     ; @mlxsw_sp_router_port_change_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x1, #32]
	ldr	w0, [x1, #24]
	bl	_mlxsw_sp_fid_index
	mov	x22, x0
	ldr	w1, [x19, #16]
	mov	x0, x21
	mov	x2, x22
	mov	w3, #0
	bl	_mlxsw_sp_rif_fdb_op
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w1, [x19, #20]
	ldr	w2, [x20, #8]
	ldr	x3, [x20]
	mov	x0, x21
	bl	_mlxsw_sp_rif_edit
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w1, [x20, #8]
	mov	x0, x21
	mov	x2, x22
	mov	w3, #1
	bl	_mlxsw_sp_rif_fdb_op
	cbz	w0, LBB0_6
; %bb.3:
	mov	x23, x0
	ldp	w2, w1, [x19, #16]
	ldr	x3, [x19]
	mov	x0, x21
	bl	_mlxsw_sp_rif_edit
LBB0_4:
	ldr	w1, [x19, #16]
	mov	x0, x21
	mov	x2, x22
	mov	w3, #1
	bl	_mlxsw_sp_rif_fdb_op
LBB0_5:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x19]
	ldr	x2, [x20]
Lloh0:
	adrp	x22, _MLXSW_SP_L3_PROTO_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MLXSW_SP_L3_PROTO_MAX@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	x8, x2
	ccmp	w9, #1, #8, ne
	b.lt	LBB0_10
; %bb.7:
	ldr	x23, [x19, #8]
	ldr	x8, [x21]
	ldr	x21, [x8]
	ldr	x8, [x21, x23, lsl #3]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_mlxsw_sp_mr_rif_mtu_update
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.8:
	mov	w24, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x20]
	ldr	x8, [x21, x23, lsl #3]
	ldr	w0, [x8, x24, lsl #2]
	mov	x1, x19
	bl	_mlxsw_sp_mr_rif_mtu_update
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.lt	LBB0_9
LBB0_10:
	ldr	w0, [x19, #16]
	ldr	w1, [x20, #8]
	bl	_ether_addr_copy
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	w2, [x19, #20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	mov	w23, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_L3_PROTO_MAX,4,2      ; @MLXSW_SP_L3_PROTO_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Updated RIF=%d\n"

	.no_dead_strip	_mlxsw_sp_router_port_change_event
.subsections_via_symbols
