	.file	"extr_rvu_nix.c_set_flowkey_fields.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_flowkey_fields, @function
set_flowkey_fields:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 32[rsp], rdi
	mov	DWORD PTR 16[rsp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	test	rdi, rdi
	je	.L1
	mov	rdi, QWORD PTR 32[rsp]
	mov	edx, 20
	xor	esi, esi
	call	memset@PLT
	mov	edi, DWORD PTR 16[rsp]
	call	fls@PLT
	mov	DWORD PTR 20[rsp], eax
	test	eax, eax
	jle	.L34
	lea	rax, 48[rsp]
	mov	r12d, 1
	xor	r13d, r13d
	xor	ebp, ebp
	mov	DWORD PTR 44[rsp], 0
	xor	r14d, r14d
	xor	ebx, ebx
	xor	r15d, r15d
	mov	QWORD PTR 24[rsp], rax
	mov	DWORD PTR 12[rsp], r13d
	mov	r13d, r12d
	mov	r12d, ebp
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, r15d
	call	BIT@PLT
	mov	ecx, DWORD PTR 16[rsp]
	mov	ebp, eax
	and	ecx, eax
	test	r13d, r13d
	jne	.L84
	cmp	ebp, 132
	je	.L6
.L90:
	jg	.L7
	cmp	ebp, 131
	jne	.L85
	movabs	rax, 4294967297
	mov	QWORD PTR 48[rsp], rax
.L12:
	mov	DWORD PTR 68[rsp], 1
	mov	r13d, 1
	test	ecx, ecx
	jne	.L86
.L22:
	add	ebx, r12d
	add	r15d, 1
	cmp	DWORD PTR 20[rsp], r15d
	jle	.L32
	cmp	DWORD PTR 12[rsp], 4
	jg	.L32
	cmp	ebx, 39
	jg	.L26
	mov	r14d, 1
	xor	r12d, r12d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	ebp, 133
	jne	.L10
	mov	rax, QWORD PTR NPC_LID_LC[rip]
	mov	DWORD PTR 52[rsp], 7
	mov	r13d, 1
	mov	DWORD PTR 60[rsp], 12
	mov	QWORD PTR 80[rsp], rax
	mov	eax, DWORD PTR NPC_LT_LC_IP[rip]
	mov	DWORD PTR 56[rsp], eax
	movabs	rax, 4294967311
	mov	QWORD PTR 64[rsp], rax
	test	ecx, ecx
	jne	.L87
.L14:
	add	r15d, 1
	cmp	DWORD PTR 12[rsp], 4
	jg	.L32
	cmp	DWORD PTR 20[rsp], r15d
	jle	.L32
	xor	r14d, r14d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L85:
	cmp	ebp, 127
	jg	.L88
.L10:
	mov	DWORD PTR 68[rsp], 1
	test	ecx, ecx
	jne	.L89
.L23:
	test	r14d, r14d
	je	.L14
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L84:
	mov	rdi, QWORD PTR 24[rsp]
	mov	edx, 40
	xor	esi, esi
	mov	DWORD PTR 40[rsp], ecx
	call	memset@PLT
	mov	ecx, DWORD PTR 40[rsp]
	cmp	ebp, 132
	jne	.L90
.L6:
	mov	rax, QWORD PTR NPC_LID_LC[rip]
	mov	DWORD PTR 52[rsp], 31
	mov	QWORD PTR 80[rsp], rax
	mov	eax, DWORD PTR NPC_LT_LC_IP6[rip]
	mov	DWORD PTR 56[rsp], eax
	movabs	rax, 64424509448
	mov	QWORD PTR 60[rsp], rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L88:
	mov	rax, QWORD PTR NPC_LID_LD[rip]
	test	ecx, ecx
	mov	DWORD PTR 52[rsp], 3
	setne	dl
	mov	QWORD PTR 80[rsp], rax
	mov	eax, DWORD PTR 56[rsp]
	cmp	ebp, 129
	jne	.L15
	test	dl, dl
	je	.L15
	or	eax, DWORD PTR NPC_LT_LD_TCP[rip]
	mov	DWORD PTR 56[rsp], eax
	not	eax
	mov	DWORD PTR 64[rsp], eax
.L16:
	movsx	rax, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	DWORD PTR 72[rsp], ebx
	xor	r13d, r13d
	mov	rsi, QWORD PTR 24[rsp]
	mov	DWORD PTR 68[rsp], 1
	lea	rax, [rax+rax*4]
	lea	rdi, [rdx+rax*8]
	mov	edx, 40
	call	memcpy@PLT
	mov	eax, DWORD PTR 52[rsp]
	mov	edi, r12d
	lea	esi, 1[rax]
	call	max@PLT
	mov	DWORD PTR 44[rsp], 1
	mov	r12d, eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L32:
	cmp	ebx, 40
	setle	al
.L4:
	cmp	DWORD PTR 20[rsp], r15d
	jne	.L26
	test	al, al
	je	.L26
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 88[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L91
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	cmp	ebp, 128
	jne	.L17
	test	dl, dl
	je	.L17
	or	eax, DWORD PTR NPC_LT_LD_UDP[rip]
	mov	DWORD PTR 56[rsp], eax
	not	eax
	mov	DWORD PTR 64[rsp], eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	ebp, 130
	jne	.L18
	test	dl, dl
	je	.L18
	or	eax, DWORD PTR NPC_LT_LD_SCTP[rip]
	mov	DWORD PTR 56[rsp], eax
	not	eax
	mov	DWORD PTR 64[rsp], eax
.L19:
	movsx	rax, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	DWORD PTR 72[rsp], ebx
	mov	r13d, 1
	mov	rsi, QWORD PTR 24[rsp]
	mov	DWORD PTR 68[rsp], 1
	mov	r14, rax
	lea	rax, [rax+rax*4]
	lea	rdi, [rdx+rax*8]
	mov	edx, 40
	add	r14d, 1
	call	memcpy@PLT
	mov	eax, DWORD PTR 52[rsp]
	mov	edi, r12d
	lea	esi, 1[rax]
	call	max@PLT
	mov	DWORD PTR 12[rsp], r14d
	mov	DWORD PTR 44[rsp], 0
	mov	r12d, eax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L86:
	mov	r14d, 1
.L13:
	movsx	rax, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	DWORD PTR 72[rsp], ebx
	mov	rsi, QWORD PTR 24[rsp]
	lea	rax, [rax+rax*4]
	lea	rdi, [rdx+rax*8]
	mov	edx, 40
	call	memcpy@PLT
	mov	eax, DWORD PTR 52[rsp]
	mov	edi, r12d
	lea	esi, 1[rax]
	call	max@PLT
	mov	r12d, eax
.L28:
	add	DWORD PTR 12[rsp], 1
	mov	r13d, 1
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, DWORD PTR NIX_AF_ERR_RSS_NOSPC_FIELD[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L89:
	movsx	rax, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	DWORD PTR 72[rsp], ebx
	mov	rsi, QWORD PTR 24[rsp]
	lea	rax, [rax+rax*4]
	lea	rdi, [rdx+rax*8]
	mov	edx, 40
	call	memcpy@PLT
	mov	eax, DWORD PTR 52[rsp]
	mov	edi, r12d
	lea	esi, 1[rax]
	call	max@PLT
	mov	r12d, eax
	test	r13d, r13d
	je	.L23
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L87:
	xor	r14d, r14d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L18:
	not	eax
	mov	DWORD PTR 64[rsp], eax
	cmp	ebp, 130
	je	.L92
	mov	DWORD PTR 68[rsp], 1
	xor	r13d, r13d
	test	ecx, ecx
	je	.L14
	movsx	rax, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	DWORD PTR 72[rsp], ebx
	xor	r13d, r13d
	mov	rsi, QWORD PTR 24[rsp]
	lea	rax, [rax+rax*4]
	lea	rdi, [rdx+rax*8]
	mov	edx, 40
	call	memcpy@PLT
	mov	eax, DWORD PTR 52[rsp]
	mov	edi, r12d
	lea	esi, 1[rax]
	call	max@PLT
	mov	r12d, eax
	jmp	.L14
.L92:
	mov	eax, DWORD PTR 44[rsp]
	test	eax, eax
	jne	.L19
	mov	DWORD PTR 68[rsp], 1
	mov	r13d, 1
	jmp	.L22
.L34:
	mov	eax, 1
	xor	r15d, r15d
	jmp	.L4
.L91:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_flowkey_fields, .-set_flowkey_fields
	.comm	NPC_LT_LD_UDP,4,4
	.comm	NPC_LT_LD_TCP,4,4
	.comm	NPC_LT_LD_SCTP,4,4
	.comm	NPC_LT_LC_IP6,4,4
	.comm	NPC_LT_LC_IP,4,4
	.comm	NPC_LID_LD,8,8
	.comm	NPC_LID_LC,8,8
	.comm	NIX_AF_ERR_RSS_NOSPC_FIELD,4,4
	.comm	MAX_KEY_OFF,4,4
	.comm	FIELDS_PER_ALG,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_rvu_nix.c_set_flowkey_fields.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_flowkey_fields, %function
set_flowkey_fields:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r3, r0, #0
	sub	sp, sp, #60
	str	r3, [sp, #8]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	beq	.L55
	mov	fp, r1
	mov	r2, #20
	mov	r1, #0
	bl	memset
	mov	r0, fp
	bl	fls
	subs	r3, r0, #0
	str	r3, [sp]
	ble	.L32
	mov	r3, #0
	mov	r6, #1
	mov	r5, r3
	mov	r9, r3
	mov	r7, r3
	mov	r8, r3
	mov	r10, r3
	str	r3, [sp, #12]
.L26:
	mov	r0, r5
	bl	BIT
	cmp	r6, #0
	mov	r4, r0
	and	r3, fp, r0
	bne	.L56
.L5:
	sub	r2, r4, #128
	cmp	r2, #5
	ldrls	pc, [pc, r2, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L7
.L11:
	subs	r6, r3, #0
	movne	r6, #1
	cmp	r4, #129
	movne	r2, #0
	andeq	r2, r6, #1
	mov	r1, #3
	cmp	r2, #0
	ldr	r2, .L59+4
	str	r1, [sp, #24]
	ldr	r2, [r2]
	str	r2, [sp, #48]
	ldr	r2, [sp, #28]
	beq	.L15
	ldr	r3, .L59+8
.L52:
	ldr	r3, [r3]
	mov	r4, #1
	orr	r2, r2, r3
	mvn	r3, r2
	str	r3, [sp, #36]
	ldr	r3, [sp, #8]
	str	r2, [sp, #28]
	add	r1, sp, #20
	mov	r2, #32
	add	r0, r3, r10, lsl #5
	str	r8, [sp, #44]
	str	r4, [sp, #40]
	bl	memcpy
	mov	r0, r9
	mov	r1, #4
	bl	max
	mov	r9, r0
	str	r4, [sp, #12]
.L53:
	mov	r6, #0
.L14:
	ldr	r2, [sp]
	cmp	r10, #4
	add	r5, r5, #1
	movle	r3, #1
	movgt	r3, #0
	cmp	r2, r5
	movle	r3, #0
	cmp	r3, #0
	beq	.L30
	mov	r7, #0
	b	.L26
.L7:
	mov	r0, #12
	mov	r1, #7
	mov	r2, #15
	mov	r6, #1
	cmp	r3, #0
	ldr	r3, .L59+12
	str	r0, [sp, #32]
	ldr	r3, [r3]
	str	r1, [sp, #24]
	str	r3, [sp, #28]
	ldr	r3, .L59+16
	str	r2, [sp, #36]
	ldr	r3, [r3]
	str	r6, [sp, #40]
	str	r3, [sp, #48]
	beq	.L14
	mov	r7, #0
.L13:
	ldr	r3, [sp, #8]
	mov	r2, #32
	add	r1, sp, #20
	add	r0, r3, r10, lsl #5
	str	r8, [sp, #44]
	bl	memcpy
	ldr	r1, [sp, #24]
	mov	r0, r9
	add	r1, r1, #1
	bl	max
	mov	r9, r0
.L27:
	mov	r6, #1
	add	r10, r10, r6
.L23:
	cmp	r7, #0
	beq	.L14
	b	.L22
.L9:
	mov	r1, #31
	mov	r2, #15
	mov	r0, #8
	mov	r6, #1
	str	r1, [sp, #24]
	str	r2, [sp, #36]
	ldr	r1, .L59+16
	ldr	r2, .L59+20
	ldr	r1, [r1]
	ldr	r2, [r2]
	cmp	r3, #0
	str	r0, [sp, #32]
	str	r1, [sp, #48]
	str	r2, [sp, #28]
	str	r6, [sp, #40]
	bne	.L34
.L22:
	ldr	r3, [sp]
	add	r5, r5, #1
	cmp	r3, r5
	movgt	r3, #1
	movle	r3, #0
	cmp	r10, #4
	movgt	r3, #0
	cmp	r3, #0
	add	r8, r8, r9
	beq	.L30
	cmp	r8, #39
	bgt	.L25
	mov	r7, #1
	mov	r9, #0
	b	.L26
.L10:
	mov	r2, #1
	mov	r6, #1
	cmp	r3, #0
	str	r2, [sp, #20]
	str	r2, [sp, #24]
	str	r6, [sp, #40]
	beq	.L22
.L34:
	mov	r7, r6
	b	.L13
.L56:
	mov	r2, #32
	mov	r1, #0
	add	r0, sp, #20
	str	r3, [sp, #4]
	bl	memset
	ldr	r3, [sp, #4]
	b	.L5
.L15:
	cmp	r4, #128
	movne	r1, #0
	andeq	r1, r6, #1
	cmp	r1, #0
	ldrne	r3, .L59+24
	bne	.L52
.L17:
	cmp	r4, #130
	movne	r6, #0
	andeq	r6, r6, #1
	cmp	r6, #0
	beq	.L18
	ldr	r3, .L59+28
	ldr	r3, [r3]
	orr	r2, r2, r3
	mvn	r3, r2
	str	r2, [sp, #28]
	str	r3, [sp, #36]
.L19:
	mov	r6, #1
	ldr	r3, [sp, #8]
	mov	r2, #32
	add	r0, r3, r10, lsl #5
	add	r1, sp, #20
	str	r8, [sp, #44]
	str	r6, [sp, #40]
	bl	memcpy
	mov	r0, r9
	mov	r1, #4
	bl	max
	mov	r3, #0
	mov	r9, r0
	add	r10, r10, r6
	str	r3, [sp, #12]
	b	.L22
.L25:
	ldr	r3, .L59+32
	ldr	r0, [r3]
.L1:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L57
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	cmp	r8, #40
	movgt	r8, #0
	movle	r8, #1
.L4:
	ldr	r3, [sp]
	cmp	r3, r5
	movne	r5, #0
	andeq	r5, r8, #1
	cmp	r5, #0
	beq	.L25
	mov	r0, #0
	b	.L1
.L55:
	ldr	r3, .L59+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L18:
	mvn	r2, r2
	cmp	r4, #130
	str	r2, [sp, #36]
	beq	.L58
	mov	r2, #1
	cmp	r3, #0
	str	r2, [sp, #40]
	beq	.L53
	ldr	r3, [sp, #8]
	mov	r2, #32
	add	r1, sp, #20
	add	r0, r3, r10, lsl #5
	str	r8, [sp, #44]
	bl	memcpy
	mov	r0, r9
	mov	r1, #4
	bl	max
	mov	r9, r0
	b	.L14
.L58:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	moveq	r6, #1
	streq	r6, [sp, #40]
	beq	.L22
	b	.L19
.L32:
	mov	r8, #1
	mov	r5, #0
	b	.L4
.L57:
	bl	__stack_chk_fail
.L6:
	mov	r2, #1
	cmp	r3, #0
	str	r2, [sp, #40]
	beq	.L23
	ldr	r3, [sp, #8]
	mov	r2, #32
	add	r1, sp, #20
	add	r0, r3, r10, lsl #5
	str	r8, [sp, #44]
	bl	memcpy
	ldr	r1, [sp, #24]
	mov	r0, r9
	add	r1, r1, #1
	bl	max
	cmp	r6, #0
	mov	r9, r0
	beq	.L23
	b	.L27
.L60:
	.align	2
.L59:
	.word	.LC0
	.word	NPC_LID_LD
	.word	NPC_LT_LD_TCP
	.word	NPC_LT_LC_IP
	.word	NPC_LID_LC
	.word	NPC_LT_LC_IP6
	.word	NPC_LT_LD_UDP
	.word	NPC_LT_LD_SCTP
	.word	NIX_AF_ERR_RSS_NOSPC_FIELD
	.word	EINVAL
	.size	set_flowkey_fields, .-set_flowkey_fields
	.comm	NPC_LT_LD_UDP,4,4
	.comm	NPC_LT_LD_TCP,4,4
	.comm	NPC_LT_LD_SCTP,4,4
	.comm	NPC_LT_LC_IP6,4,4
	.comm	NPC_LT_LC_IP,4,4
	.comm	NPC_LID_LD,4,4
	.comm	NPC_LID_LC,4,4
	.comm	NIX_AF_ERR_RSS_NOSPC_FIELD,4,4
	.comm	MAX_KEY_OFF,4,4
	.comm	FIELDS_PER_ALG,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
