	.file	"extr_rvu_nix.c_nix_setup_lso.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nix_setup_lso, @function
nix_setup_lso:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	esi, ebp
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR NIX_AF_CONST1[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	lea	r14, 4[rsp]
	call	rvu_read64@PLT
	mov	ecx, 48
	mov	esi, ebp
	mov	rdi, rbx
	sar	eax, cl
	mov	edx, DWORD PTR NIX_AF_LSO_CFG[rip]
	and	eax, 255
	mov	DWORD PTR [r12], eax
	call	rvu_read64@PLT
	mov	edi, 63
	movzx	r13d, ax
	call	BIT_ULL@PLT
	mov	edx, DWORD PTR NIX_AF_LSO_CFG[rip]
	mov	esi, ebp
	mov	rdi, rbx
	or	r13d, -917504
	mov	ecx, r13d
	or	ecx, eax
	call	rvu_write64@PLT
	mov	r8, r14
	mov	ecx, 1
	mov	esi, ebp
	mov	r13d, DWORD PTR NIX_LSO_FORMAT_IDX_TSOV4[rip]
	mov	rdi, rbx
	mov	edx, r13d
	call	nix_setup_lso_tso_l3@PLT
	mov	esi, ebp
	mov	rcx, r14
	mov	edx, r13d
	mov	rdi, rbx
	call	nix_setup_lso_tso_l4@PLT
	mov	esi, DWORD PTR 4[rsp]
	cmp	esi, 7
	jg	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, r13d
	call	NIX_AF_LSO_FORMATX_FIELDX@PLT
	mov	esi, ebp
	xor	ecx, ecx
	mov	rdi, rbx
	mov	edx, eax
	call	rvu_write64@PLT
	mov	eax, DWORD PTR 4[rsp]
	lea	esi, 1[rax]
	mov	DWORD PTR 4[rsp], esi
	cmp	esi, 7
	jle	.L3
.L2:
	add	DWORD PTR 4[r12], 1
	mov	r8, r14
	xor	ecx, ecx
	mov	esi, ebp
	mov	r13d, DWORD PTR NIX_LSO_FORMAT_IDX_TSOV6[rip]
	mov	rdi, rbx
	mov	DWORD PTR 4[rsp], 0
	mov	edx, r13d
	call	nix_setup_lso_tso_l3@PLT
	mov	esi, ebp
	mov	rcx, r14
	mov	edx, r13d
	mov	rdi, rbx
	call	nix_setup_lso_tso_l4@PLT
	mov	esi, DWORD PTR 4[rsp]
	cmp	esi, 7
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, r13d
	call	NIX_AF_LSO_FORMATX_FIELDX@PLT
	mov	esi, ebp
	xor	ecx, ecx
	mov	rdi, rbx
	mov	edx, eax
	call	rvu_write64@PLT
	mov	eax, DWORD PTR 4[rsp]
	lea	esi, 1[rax]
	mov	DWORD PTR 4[rsp], esi
	cmp	esi, 7
	jle	.L5
.L4:
	add	DWORD PTR 4[r12], 1
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nix_setup_lso, .-nix_setup_lso
	.comm	NIX_LSO_FORMAT_IDX_TSOV6,4,4
	.comm	NIX_LSO_FORMAT_IDX_TSOV4,4,4
	.comm	NIX_AF_LSO_CFG,4,4
	.comm	NIX_AF_CONST1,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_rvu_nix.c_nix_setup_lso.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nix_setup_lso, %function
nix_setup_lso:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r3, #0
	ldr	r2, .L12
	ldr	ip, .L12+4
	sub	sp, sp, #16
	mov	r6, r1
	ldr	r2, [r2]
	mov	r1, r4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r5, r0
	str	r3, [sp, #8]
	bl	rvu_read64
	mov	r3, #48
	ldr	r8, .L12+8
	asr	r0, r0, r3
	and	r0, r0, #255
	ldr	r2, [r8]
	mov	r1, r4
	str	r0, [r6]
	mov	r0, r5
	bl	rvu_read64
	lsl	r7, r0, #16
	mov	r0, #63
	ldr	r8, [r8]
	bl	BIT_ULL
	lsr	r7, r7, #16
	orr	r7, r7, #-16777216
	orr	r7, r7, #15859712
	orr	r3, r7, r0
	mov	r2, r8
	mov	r1, r4
	mov	r0, r5
	bl	rvu_write64
	ldr	r3, .L12+12
	mov	r1, r4
	ldr	r7, [r3]
	add	r3, sp, #8
	mov	r2, r7
	str	r3, [sp]
	mov	r0, r5
	mov	r3, #1
	bl	nix_setup_lso_tso_l3
	mov	r1, r4
	mov	r2, r7
	mov	r0, r5
	add	r3, sp, #8
	bl	nix_setup_lso_tso_l4
	ldr	r1, [sp, #8]
	cmp	r1, #7
	bgt	.L2
.L3:
	mov	r0, r7
	bl	NIX_AF_LSO_FORMATX_FIELDX
	mov	r1, r4
	mov	r2, r0
	mov	r3, #0
	mov	r0, r5
	bl	rvu_write64
	ldr	r1, [sp, #8]
	add	r1, r1, #1
	cmp	r1, #7
	str	r1, [sp, #8]
	ble	.L3
.L2:
	mov	r3, #0
	ldr	r2, .L12+16
	ldr	r1, [r6, #4]
	ldr	r7, [r2]
	add	r1, r1, #1
	add	r2, sp, #8
	str	r2, [sp]
	mov	r0, r5
	mov	r2, r7
	str	r1, [r6, #4]
	mov	r1, r4
	str	r3, [sp, #8]
	bl	nix_setup_lso_tso_l3
	mov	r1, r4
	mov	r2, r7
	mov	r0, r5
	add	r3, sp, #8
	bl	nix_setup_lso_tso_l4
	ldr	r1, [sp, #8]
	cmp	r1, #7
	bgt	.L4
.L5:
	mov	r0, r7
	bl	NIX_AF_LSO_FORMATX_FIELDX
	mov	r1, r4
	mov	r2, r0
	mov	r3, #0
	mov	r0, r5
	bl	rvu_write64
	ldr	r1, [sp, #8]
	add	r1, r1, #1
	cmp	r1, #7
	str	r1, [sp, #8]
	ble	.L5
.L4:
	ldr	r3, [r6, #4]
	add	r3, r3, #1
	str	r3, [r6, #4]
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	NIX_AF_CONST1
	.word	.LC0
	.word	NIX_AF_LSO_CFG
	.word	NIX_LSO_FORMAT_IDX_TSOV4
	.word	NIX_LSO_FORMAT_IDX_TSOV6
	.size	nix_setup_lso, .-nix_setup_lso
	.comm	NIX_LSO_FORMAT_IDX_TSOV6,4,4
	.comm	NIX_LSO_FORMAT_IDX_TSOV4,4,4
	.comm	NIX_AF_LSO_CFG,4,4
	.comm	NIX_AF_CONST1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
