	.file	"extr_hns_dsaf_main.c_hns_dsaf_rm_mac_addr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rm_uc_addr %s Mac %pM err!\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"rm_uc_addr no tcam, %s Mac key(%#x:%#x)\n"
	.align 8
.LC2:
	.string	"rm_uc_addr, %s Mac key(%#x:%#x) entry_index%d\n"
	.text
	.p2align 4
	.globl	hns_dsaf_rm_mac_addr
	.type	hns_dsaf_rm_mac_addr, @function
hns_dsaf_rm_mac_addr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	is_valid_ether_addr@PLT
	test	eax, eax
	je	.L9
	mov	ecx, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR 16[rbx]
	lea	r12, 16[rsp]
	mov	rdi, r13
	mov	r8d, DWORD PTR 8[rbx]
	mov	rsi, r12
	call	hns_dsaf_set_mac_key@PLT
	mov	rdi, r13
	mov	rsi, r12
	call	hns_dsaf_find_soft_mac_entry@PLT
	cmp	QWORD PTR DSAF_INVALID_ENTRY_IDX[rip], rax
	mov	edi, DWORD PTR 4[r13]
	mov	rbp, rax
	je	.L10
	mov	r8d, DWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 20[rsp]
	mov	r9, rax
	lea	rsi, .LC2[rip]
	mov	edx, DWORD PTR 0[r13]
	call	dev_dbg@PLT
	lea	rcx, 8[rsp]
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r13
	call	hns_dsaf_tcam_uc_get@PLT
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR [rbx], rax
	je	.L5
	mov	eax, DWORD PTR EFAULT[rip]
	neg	eax
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	ecx, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[r13]
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR 0[r13]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 12[rbx]
	mov	rdi, r13
	mov	esi, DWORD PTR 16[rbx]
	call	hns_dsaf_del_mac_entry@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r8d, DWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 20[rsp]
	lea	rsi, .LC1[rip]
	mov	edx, DWORD PTR 0[r13]
	call	dev_info@PLT
	xor	eax, eax
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hns_dsaf_rm_mac_addr, .-hns_dsaf_rm_mac_addr
	.comm	EINVAL,4,4
	.comm	EFAULT,4,4
	.comm	DSAF_INVALID_ENTRY_IDX,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hns_dsaf_main.c_hns_dsaf_rm_mac_addr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rm_uc_addr %s Mac %pM err!\012\000"
	.align	2
.LC1:
	.ascii	"rm_uc_addr no tcam, %s Mac key(%#x:%#x)\012\000"
	.align	2
.LC2:
	.ascii	"rm_uc_addr, %s Mac key(%#x:%#x) entry_index%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hns_dsaf_rm_mac_addr
	.syntax unified
	.arm
	.fpu softvfp
	.type	hns_dsaf_rm_mac_addr, %function
hns_dsaf_rm_mac_addr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #24
	mov	r5, r0
	ldr	r0, [r1, #4]
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	is_valid_ether_addr
	cmp	r0, #0
	ldr	r3, [r4, #4]
	beq	.L9
	str	r3, [sp]
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #12]
	add	r1, sp, #12
	mov	r0, r5
	bl	hns_dsaf_set_mac_key
	mov	r0, r5
	add	r1, sp, #12
	bl	hns_dsaf_find_soft_mac_entry
	ldr	r3, .L12+4
	mov	r6, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L10
	ldr	r3, [sp, #12]
	ldr	r1, .L12+8
	stm	sp, {r3, r6}
	ldr	r3, [sp, #16]
	ldr	r2, [r5]
	ldr	r0, [r5, #4]
	bl	dev_dbg
	add	r2, sp, #12
	add	r3, sp, #8
	mov	r1, r6
	mov	r0, r5
	bl	hns_dsaf_tcam_uc_get
	ldr	r2, [r4]
	ldr	r3, [sp, #8]
	cmp	r2, r3
	beq	.L5
	ldr	r3, .L12+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r2, [r5]
	ldr	r0, [r5, #4]
	ldr	r1, .L12+16
	bl	dev_err
	ldr	r3, .L12+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L5:
	mov	r0, r5
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	bl	hns_dsaf_del_mac_entry
	b	.L1
.L10:
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #16]
	str	r2, [sp]
	ldr	r2, [r5]
	ldr	r0, [r5, #4]
	ldr	r1, .L12+24
	bl	dev_info
	mov	r0, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	DSAF_INVALID_ENTRY_IDX
	.word	.LC2
	.word	EFAULT
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.size	hns_dsaf_rm_mac_addr, .-hns_dsaf_rm_mac_addr
	.comm	EINVAL,4,4
	.comm	EFAULT,4,4
	.comm	DSAF_INVALID_ENTRY_IDX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
