	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxge_add_mac_addr
_vxge_add_mac_addr:                     ## @vxge_add_mac_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	12(%rsi), %edi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_VXGE_HW_VPATH_MAC_ADDR_REPLACE_DUPLICATE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VXGE_HW_VPATH_MAC_ADDR_ADD_DUPLICATE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	(%r14), %rax
	movq	(%rbx), %rdx
	leaq	(%rax,%rdx,8), %r15
	movl	4(%rax,%rdx,8), %edi
	movl	12(%rbx), %esi
	movl	8(%rbx), %edx
	callq	_vxge_hw_vpath_mac_addr_add
	movl	%eax, %r14d
	movq	_VXGE_HW_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_4
## %bb.5:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_vxge_mac_list_add
	cmpq	%rax, %r12
	jne	LBB0_7
## %bb.6:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	movq	_VXGE_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_vxge_debug_init
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VXGE_HW_OK,4,2                 ## @VXGE_HW_OK
	.comm	_VXGE_HW_VPATH_MAC_ADDR_ADD_DUPLICATE,4,2 ## @VXGE_HW_VPATH_MAC_ADDR_ADD_DUPLICATE
	.comm	_VXGE_HW_VPATH_MAC_ADDR_REPLACE_DUPLICATE,4,2 ## @VXGE_HW_VPATH_MAC_ADDR_REPLACE_DUPLICATE
	.comm	_VXGE_ERR,4,2                   ## @VXGE_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DA config add entry failed for vpath:%d"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_vxge_add_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxge_add_mac_addr
_vxge_add_mac_addr:                     ; @vxge_add_mac_addr
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #12]
	bl	_is_multicast_ether_addr
Lloh0:
	adrp	x8, _VXGE_HW_VPATH_MAC_ADDR_REPLACE_DUPLICATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VXGE_HW_VPATH_MAC_ADDR_REPLACE_DUPLICATE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VXGE_HW_VPATH_MAC_ADDR_ADD_DUPLICATE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VXGE_HW_VPATH_MAC_ADDR_ADD_DUPLICATE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x21, x8, x9, lsl #3
	ldr	w0, [x21, #4]
	ldp	w2, w1, [x19, #8]
	bl	_vxge_hw_vpath_mac_addr_add
	mov	x20, x0
Lloh4:
	adrp	x8, _VXGE_HW_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VXGE_HW_OK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	x22, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_vxge_mac_list_add
	cmp	x22, x0
	b.ne	LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _VXGE_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VXGE_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w2, [x21]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vxge_debug_init
LBB0_4:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VXGE_HW_OK,4,2                 ; @VXGE_HW_OK
	.comm	_VXGE_HW_VPATH_MAC_ADDR_ADD_DUPLICATE,4,2 ; @VXGE_HW_VPATH_MAC_ADDR_ADD_DUPLICATE
	.comm	_VXGE_HW_VPATH_MAC_ADDR_REPLACE_DUPLICATE,4,2 ; @VXGE_HW_VPATH_MAC_ADDR_REPLACE_DUPLICATE
	.comm	_VXGE_ERR,4,2                   ; @VXGE_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DA config add entry failed for vpath:%d"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_vxge_add_mac_addr
.subsections_via_symbols
