	.file	"extr_hns_roce_hw_v2.c_hns_roce_v2_set_gid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Configure sgid table failed(%d)!\n"
	.text
	.p2align 4
	.type	hns_roce_v2_set_gid, @function
hns_roce_v2_set_gid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	test	rcx, rcx
	je	.L8
	test	r8, r8
	je	.L8
	mov	esi, edx
	mov	rax, QWORD PTR IB_GID_TYPE_ROCE_UDP_ENCAP[rip]
	mov	rbx, rdi
	mov	rdx, rcx
	cmp	QWORD PTR [r8], rax
	je	.L5
	mov	ecx, DWORD PTR GID_TYPE_FLAG_ROCE_V1[rip]
.L6:
	mov	rdi, rbx
	call	hns_roce_config_sgid_table@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rcx
	mov	DWORD PTR 12[rsp], esi
	mov	QWORD PTR [rsp], rcx
	call	ipv6_addr_v4mapped@PLT
	mov	ecx, DWORD PTR GID_TYPE_FLAG_ROCE_V2_IPV4[rip]
	mov	esi, DWORD PTR 12[rsp]
	test	rax, rax
	mov	rdx, QWORD PTR [rsp]
	cmove	ecx, DWORD PTR GID_TYPE_FLAG_ROCE_V2_IPV6[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	hns_roce_v2_set_gid, .-hns_roce_v2_set_gid
	.comm	IB_GID_TYPE_ROCE_UDP_ENCAP,8,8
	.comm	IB_GID_TYPE_ROCE,8,8
	.comm	GID_TYPE_FLAG_ROCE_V2_IPV6,4,4
	.comm	GID_TYPE_FLAG_ROCE_V2_IPV4,4,4
	.comm	GID_TYPE_FLAG_ROCE_V1,4,4
	.comm	EINVAL,4,4
	.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_roce_hw_v2.c_hns_roce_v2_set_gid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Configure sgid table failed(%d)!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hns_roce_v2_set_gid, %function
hns_roce_v2_set_gid:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	ip, [sp, #16]
	cmp	ip, #0
	cmpne	r3, #0
	beq	.L12
	mov	r4, r3
	ldr	r3, .L14
	mov	r6, r2
	ldr	r3, [r3]
	ldr	r2, [ip]
	mov	r5, r0
	cmp	r2, r3
	beq	.L4
	ldr	r3, .L14+4
	ldr	r3, [r3]
.L5:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	hns_roce_config_sgid_table
	subs	r4, r0, #0
	bne	.L13
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L14+8
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L14+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r4
	bl	ipv6_addr_v4mapped
	cmp	r0, #0
	ldrne	r3, .L14+16
	ldreq	r3, .L14+20
	ldr	r3, [r3]
	b	.L5
.L15:
	.align	2
.L14:
	.word	IB_GID_TYPE_ROCE_UDP_ENCAP
	.word	GID_TYPE_FLAG_ROCE_V1
	.word	.LC0
	.word	EINVAL
	.word	GID_TYPE_FLAG_ROCE_V2_IPV4
	.word	GID_TYPE_FLAG_ROCE_V2_IPV6
	.size	hns_roce_v2_set_gid, .-hns_roce_v2_set_gid
	.comm	IB_GID_TYPE_ROCE_UDP_ENCAP,4,4
	.comm	IB_GID_TYPE_ROCE,4,4
	.comm	GID_TYPE_FLAG_ROCE_V2_IPV6,4,4
	.comm	GID_TYPE_FLAG_ROCE_V2_IPV4,4,4
	.comm	GID_TYPE_FLAG_ROCE_V1,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
