	.file	"extr_hns_dsaf_mac.c_hns_mac_set_multi.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"set mac mc port failed, %s mac%d ret = %#x!\n"
	.text
	.p2align 4
	.globl	hns_mac_set_multi
	.type	hns_mac_set_multi, @function
hns_mac_set_multi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rdi, r14
	call	HNS_DSAF_IS_DEBUG@PLT
	test	rbp, rbp
	je	.L6
	test	eax, eax
	je	.L18
.L6:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rsp]
	mov	rsi, rbp
	mov	edx, 4
	call	memcpy@PLT
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR [rsp], r12d
	mov	rsi, rsp
	mov	QWORD PTR 8[rsp], 0
	mov	rdi, r14
	mov	DWORD PTR 4[rsp], eax
	test	r13d, r13d
	je	.L20
	call	hns_dsaf_add_mac_mc_port@PLT
	mov	r12d, eax
.L4:
	test	r12d, r12d
	je	.L1
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	r8d, r12d
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR 4[r14]
	mov	edx, DWORD PTR [rax]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	call	hns_dsaf_del_mac_mc_port@PLT
	mov	r12d, eax
	jmp	.L4
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hns_mac_set_multi, .-hns_mac_set_multi
	.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_mac.c_hns_mac_set_multi.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"set mac mc port failed, %s mac%d ret = %#x!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hns_mac_set_multi
	.syntax unified
	.arm
	.fpu softvfp
	.type	hns_mac_set_multi, %function
hns_mac_set_multi:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #4]
	mov	r8, r3
	ldr	r3, .L15
	sub	sp, sp, #32
	mov	r5, r0
	mov	r0, r6
	mov	r4, r2
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	HNS_DSAF_IS_DEBUG
	clz	ip, r0
	cmp	r4, #0
	lsr	ip, ip, #5
	moveq	ip, #0
	cmp	ip, #0
	moveq	r4, ip
	bne	.L12
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r1, r4
	mov	r2, #4
	ldr	r0, [sp, #24]
	bl	memcpy
	mov	r2, #0
	ldr	r3, [r5]
	cmp	r8, r2
	mov	r0, r6
	add	r1, sp, #12
	str	r7, [sp, #12]
	str	r2, [sp, #20]
	str	r3, [sp, #16]
	beq	.L14
	bl	hns_dsaf_add_mac_mc_port
	mov	r4, r0
.L4:
	cmp	r4, #0
	beq	.L1
	ldr	r3, [r5, #4]
	ldr	r0, [r6, #4]
	ldr	r2, [r3]
	str	r4, [sp]
	ldr	r3, [r5]
	ldr	r1, .L15+4
	bl	dev_err
	b	.L1
.L14:
	bl	hns_dsaf_del_mac_mc_port
	mov	r4, r0
	b	.L4
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	.LC0
	.size	hns_mac_set_multi, .-hns_mac_set_multi
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
