	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_add_uc_addr
_esw_add_uc_addr:                       ## @esw_add_uc_addr
	.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, %r12
	movq	%rdi, %rbx
	movq	(%rsi), %r15
	movq	16(%rsi), %r14
	cmpq	%r15, (%rdi)
	je	LBB0_4
## %bb.1:
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	callq	_mlx5_mpfs_add_mac
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r13d
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_esw_warn
	jmp	LBB0_8
LBB0_3:
	movl	$1, 8(%r12)
LBB0_4:
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.5:
	movq	8(%rbx), %rax
	movq	_MLX5_ESWITCH_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_esw_fdb_set_vport_rule
	movl	%eax, 12(%r12)
LBB0_7:
	movl	16(%rbx), %edi
	movl	12(%r12), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_esw_debug
	xorl	%r13d, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add L2 table mac(%pM) for vport(0x%x), err(%d)\n"

	.comm	_MLX5_ESWITCH_LEGACY,8,3        ## @MLX5_ESWITCH_LEGACY
L_.str.1:                               ## @.str.1
	.asciz	"\tADDED UC MAC: vport[%d] %pM fr(%p)\n"

	.no_dead_strip	_esw_add_uc_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_add_uc_addr
_esw_add_uc_addr:                       ; @esw_add_uc_addr
	.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	x22, x1
	mov	x21, x0
	ldr	x19, [x1, #16]
	ldr	x20, [x1]
	ldr	x8, [x0]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.1:
	ldr	w0, [x21, #16]
	mov	x1, x19
	bl	_mlx5_mpfs_add_mac
	cbz	w0, LBB0_3
; %bb.2:
	mov	x23, x0
	ldr	w0, [x21, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	mov	x4, x23
	bl	_esw_warn
	b	LBB0_8
LBB0_3:
	mov	w8, #1
	str	w8, [x22, #8]
LBB0_4:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _MLX5_ESWITCH_LEGACY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MLX5_ESWITCH_LEGACY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_esw_fdb_set_vport_rule
	str	w0, [x22, #12]
LBB0_7:
	ldr	w0, [x21, #16]
	ldr	w4, [x22, #12]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_esw_debug
	mov	w23, #0
LBB0_8:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add L2 table mac(%pM) for vport(0x%x), err(%d)\n"

	.comm	_MLX5_ESWITCH_LEGACY,8,3        ; @MLX5_ESWITCH_LEGACY
l_.str.1:                               ; @.str.1
	.asciz	"\tADDED UC MAC: vport[%d] %pM fr(%p)\n"

	.no_dead_strip	_esw_add_uc_addr
.subsections_via_symbols
