	.file	"extr_hinic_main.c_set_features.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_features, @function
set_features:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	esi, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, -1
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	ecx, ecx
	mov	edx, DWORD PTR NETIF_F_TSO[rip]
	mov	r13d, DWORD PTR HINIC_RX_CSUM_OFFLOAD_EN[rip]
	cmove	ebx, esi
	mov	eax, edx
	and	eax, ebx
	je	.L3
	mov	esi, DWORD PTR HINIC_TSO_ENABLE[rip]
	test	edx, ebp
	cmove	esi, DWORD PTR HINIC_TSO_DISABLE[rip]
	call	hinic_port_set_tso@PLT
.L3:
	test	DWORD PTR NETIF_F_RXCSUM[rip], ebx
	jne	.L21
	mov	edx, DWORD PTR NETIF_F_LRO[rip]
	test	edx, ebx
	jne	.L22
.L7:
	mov	edx, DWORD PTR NETIF_F_HW_VLAN_CTAG_RX[rip]
	test	edx, ebx
	jne	.L23
.L1:
	add	rsp, 8
	.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
.L21:
	.cfi_restore_state
	mov	esi, r13d
	mov	rdi, r12
	call	hinic_set_rx_csum_offload@PLT
	mov	edx, DWORD PTR NETIF_F_LRO[rip]
	test	edx, ebx
	je	.L7
.L22:
	xor	esi, esi
	mov	ecx, DWORD PTR HINIC_LRO_MAX_WQE_NUM_DEFAULT[rip]
	test	edx, ebp
	mov	edx, DWORD PTR HINIC_LRO_RX_TIMER_DEFAULT[rip]
	setne	sil
	mov	rdi, r12
	call	hinic_set_rx_lro_state@PLT
	mov	edx, DWORD PTR NETIF_F_HW_VLAN_CTAG_RX[rip]
	test	edx, ebx
	je	.L1
.L23:
	xor	esi, esi
	test	edx, ebp
	mov	rdi, r12
	setne	sil
	add	rsp, 8
	.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
	jmp	hinic_set_rx_vlan_offload@PLT
	.cfi_endproc
.LFE0:
	.size	set_features, .-set_features
	.comm	NETIF_F_TSO,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	NETIF_F_LRO,4,4
	.comm	NETIF_F_HW_VLAN_CTAG_RX,4,4
	.comm	HINIC_TSO_ENABLE,4,4
	.comm	HINIC_TSO_DISABLE,4,4
	.comm	HINIC_RX_CSUM_OFFLOAD_EN,4,4
	.comm	HINIC_LRO_RX_TIMER_DEFAULT,4,4
	.comm	HINIC_LRO_MAX_WQE_NUM_DEFAULT,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_hinic_main.c_set_features.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_features, %function
set_features:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	mvnne	r4, #0
	ldr	r3, .L23
	eoreq	r4, r1, r2
	ldr	r3, [r3]
	mov	r6, r2
	ldr	r2, .L23+4
	mov	r5, r0
	ands	r0, r3, r4
	ldr	r7, [r2]
	beq	.L3
	tst	r3, r6
	ldrne	r3, .L23+8
	ldreq	r3, .L23+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	hinic_port_set_tso
.L3:
	ldr	r3, .L23+16
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L21
.L6:
	ldr	r3, .L23+20
	ldr	r3, [r3]
	tst	r3, r4
	bne	.L22
.L7:
	ldr	r3, .L23+24
	ldr	r3, [r3]
	tst	r3, r4
	popeq	{r4, r5, r6, r7, r8, pc}
	tst	r3, r6
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	movne	r1, #1
	moveq	r1, #0
	b	hinic_set_rx_vlan_offload
.L22:
	ldr	r0, .L23+28
	ldr	r2, .L23+32
	tst	r3, r6
	movne	r1, #1
	ldr	r3, [r0]
	moveq	r1, #0
	mov	r0, r5
	ldr	r2, [r2]
	bl	hinic_set_rx_lro_state
	b	.L7
.L21:
	mov	r1, r7
	mov	r0, r5
	bl	hinic_set_rx_csum_offload
	b	.L6
.L24:
	.align	2
.L23:
	.word	NETIF_F_TSO
	.word	HINIC_RX_CSUM_OFFLOAD_EN
	.word	HINIC_TSO_ENABLE
	.word	HINIC_TSO_DISABLE
	.word	NETIF_F_RXCSUM
	.word	NETIF_F_LRO
	.word	NETIF_F_HW_VLAN_CTAG_RX
	.word	HINIC_LRO_MAX_WQE_NUM_DEFAULT
	.word	HINIC_LRO_RX_TIMER_DEFAULT
	.size	set_features, .-set_features
	.comm	NETIF_F_TSO,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	NETIF_F_LRO,4,4
	.comm	NETIF_F_HW_VLAN_CTAG_RX,4,4
	.comm	HINIC_TSO_ENABLE,4,4
	.comm	HINIC_TSO_DISABLE,4,4
	.comm	HINIC_RX_CSUM_OFFLOAD_EN,4,4
	.comm	HINIC_LRO_RX_TIMER_DEFAULT,4,4
	.comm	HINIC_LRO_MAX_WQE_NUM_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
