	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_mac_change_vf_addr         ## -- Begin function hns_mac_change_vf_addr
	.p2align	4, 0x90
_hns_mac_change_vf_addr:                ## @hns_mac_change_vf_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_hns_mac_get_drv
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r13
	movq	8(%rbx), %r12
	leaq	(%r15,%r15,2), %r14
	leaq	(%r12,%r14,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_HNS_DSAF_IS_DEBUG
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	testq	%r15, %r15
	jne	LBB0_9
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	*%rax
LBB0_9:
	movl	4(%r12,%r14,4), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movl	8(%r12,%r14,4), %eax
	movl	%eax, -72(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -76(%rbp)
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_hns_mac_get_inner_port_num
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movl	4(%r12,%r14,4), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	(%r12,%r14,4), %rax
	addq	$8, %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movl	-4(%rax), %ecx
	movq	%r13, %rdi
	callq	_hns_dsaf_del_mac_entry
	testl	%eax, %eax
	jne	LBB0_10
LBB0_5:
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_hns_dsaf_set_mac_uc_entry
	testl	%eax, %eax
	je	LBB0_6
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_mac_change_vf_addr         ; -- Begin function hns_mac_change_vf_addr
	.p2align	2
_hns_mac_change_vf_addr:                ; @hns_mac_change_vf_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_hns_mac_get_drv
	mov	x22, x0
	ldp	x25, x23, [x21, #8]
	mov	w8, #12
	madd	x24, x20, x8, x25
	mov	x0, x23
	bl	_HNS_DSAF_IS_DEBUG
	cbz	w0, LBB0_5
LBB0_1:
	cbnz	x20, LBB0_4
; %bb.2:
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	mov	x1, x19
	blr	x8
LBB0_4:
	mov	w8, #12
	madd	x8, x20, x8, x25
	ldr	w0, [x8, #4]
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	mov	w8, #1
	str	w8, [x24]
	b	LBB0_10
LBB0_5:
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	mov	w8, #12
	madd	x26, x20, x8, x25
	ldr	w8, [x26, #8]!
	ldr	w9, [x21, #4]
	stp	w9, w8, [sp, #4]
	mov	x2, sp
	mov	x0, x21
	mov	x1, x20
	bl	_hns_mac_get_inner_port_num
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	w8, [x24]
	cbz	w8, LBB0_9
; %bb.7:
	mov	w8, #12
	madd	x27, x20, x8, x25
	ldr	w0, [x27, #4]!
	mov	x1, x19
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w1, [x26]
	ldr	w2, [x21, #4]
	ldr	w3, [x27]
	mov	x0, x23
	bl	_hns_dsaf_del_mac_entry
	cbnz	w0, LBB0_10
LBB0_9:
	mov	x1, sp
	mov	x0, x23
	bl	_hns_dsaf_set_mac_uc_entry
	cbz	w0, LBB0_1
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
