	.file	"extr_al_hal_eth_main.c_al_eth_rx_desc_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	al_eth_rx_desc_config
	.type	al_eth_rx_desc_config, @function
al_eth_rx_desc_config:
.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
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	DWORD PTR AL_ETH_L4_OFFSET[rip], esi
	mov	eax, DWORD PTR EC_RFW_CFG_A_0_LRO_CONTEXT_SEL[rip]
	mov	r15d, DWORD PTR 64[rsp]
	mov	r14d, DWORD PTR 72[rsp]
	mov	r13d, DWORD PTR 80[rsp]
	je	.L2
	xor	eax, eax
.L2:
	cmp	DWORD PTR AL_ETH_L4_INNER_OUTER_CHK[rip], r8d
	jne	.L3
	or	eax, DWORD PTR EC_RFW_CFG_A_0_META_L4_CHK_RES_SEL[rip]
.L3:
	mov	ecx, DWORD PTR EC_RFW_CFG_A_0_META_L3_CHK_RES_SEL_SHIFT[rip]
	sal	r9d, cl
	mov	esi, r9d
	or	esi, eax
	mov	rax, QWORD PTR [rbx]
	lea	rdi, 4[rax]
	call	al_reg_write32@PLT
	mov	rdi, QWORD PTR [rbx]
	call	al_reg_read32@PLT
	cmp	DWORD PTR AL_ETH_L3_PROTO_IDX_INNER[rip], r15d
	je	.L18
	mov	edx, DWORD PTR EC_RFW_META_L3_PROT_SEL[rip]
	not	edx
	and	eax, edx
.L5:
	mov	edx, DWORD PTR EC_RFW_META_L4_PROT_SEL[rip]
	mov	ecx, edx
	not	ecx
	and	ecx, eax
	cmp	DWORD PTR AL_ETH_L4_PROTO_IDX_INNER[rip], r14d
	jne	.L7
	or	eax, edx
	mov	ecx, eax
.L7:
	mov	eax, DWORD PTR EC_RFW_META_L4_OFFSET_SEL[rip]
	mov	edx, eax
	not	edx
	and	edx, ecx
	cmp	DWORD PTR AL_ETH_L4_OFFSET_INNER[rip], r12d
	jne	.L9
	or	ecx, eax
	mov	edx, ecx
.L9:
	mov	ecx, DWORD PTR EC_RFW_META_L3_OFFSET_SEL[rip]
	mov	eax, ecx
	not	eax
	and	eax, edx
	cmp	DWORD PTR AL_ETH_L3_OFFSET_INNER[rip], ebp
	jne	.L11
	mov	eax, edx
	or	eax, ecx
.L11:
	mov	edx, DWORD PTR EC_RFW_META_FRAG_SEL[rip]
	mov	esi, edx
	not	esi
	and	esi, eax
	cmp	DWORD PTR AL_ETH_FRAG_INNER[rip], r13d
	jne	.L13
	or	eax, edx
	mov	esi, eax
.L13:
	mov	rdi, QWORD PTR [rbx]
	add	rsp, 8
	.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
	jmp	al_reg_write32@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	or	eax, DWORD PTR EC_RFW_META_L3_PROT_SEL[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	al_eth_rx_desc_config, .-al_eth_rx_desc_config
	.comm	EC_RFW_META_L4_PROT_SEL,4,4
	.comm	EC_RFW_META_L4_OFFSET_SEL,4,4
	.comm	EC_RFW_META_L3_PROT_SEL,4,4
	.comm	EC_RFW_META_L3_OFFSET_SEL,4,4
	.comm	EC_RFW_META_FRAG_SEL,4,4
	.comm	EC_RFW_CFG_A_0_META_L4_CHK_RES_SEL,4,4
	.comm	EC_RFW_CFG_A_0_META_L3_CHK_RES_SEL_SHIFT,4,4
	.comm	EC_RFW_CFG_A_0_LRO_CONTEXT_SEL,4,4
	.comm	AL_ETH_L4_PROTO_IDX_INNER,4,4
	.comm	AL_ETH_L4_OFFSET_INNER,4,4
	.comm	AL_ETH_L4_OFFSET,4,4
	.comm	AL_ETH_L4_INNER_OUTER_CHK,4,4
	.comm	AL_ETH_L3_PROTO_IDX_INNER,4,4
	.comm	AL_ETH_L3_OFFSET_INNER,4,4
	.comm	AL_ETH_FRAG_INNER,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_al_hal_eth_main.c_al_eth_rx_desc_config.c"
	.text
	.align	2
	.global	al_eth_rx_desc_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	al_eth_rx_desc_config, %function
al_eth_rx_desc_config:
	@ args = 20, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L17
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [ip]
	mov	r5, r3
	cmp	r0, r1
	movne	r3, #0
	ldr	r0, .L17+4
	ldreq	r3, .L17+8
	mov	r6, r2
	ldr	r0, [r0]
	ldr	r2, [sp, #32]
	ldreq	r3, [r3]
	cmp	r0, r2
	ldreq	r2, .L17+12
	ldr	r1, [sp, #36]
	ldreq	r2, [r2]
	ldr	r0, [r4]
	orreq	r3, r3, r2
	ldr	r2, .L17+16
	add	r0, r0, #4
	ldr	r2, [r2]
	ldr	r9, [sp, #40]
	orr	r1, r3, r1, lsl r2
	ldr	r8, [sp, #44]
	ldr	r7, [sp, #48]
	bl	al_reg_write32
	ldr	r0, [r4]
	bl	al_reg_read32
	mov	r1, r0
	ldr	r3, .L17+20
	ldr	r2, .L17+24
	ldr	r3, [r3]
	cmp	r3, r9
	ldr	r3, .L17+28
	ldr	r0, [r3]
	ldr	r3, .L17+32
	orreq	r1, r1, r0
	ldr	r3, [r3]
	bicne	r1, r1, r0
	ldr	r0, [r2]
	ldr	r2, .L17+36
	cmp	r3, r8
	ldr	r3, .L17+40
	ldr	r2, [r2]
	ldr	r3, [r3]
	orreq	r1, r1, r0
	bicne	r1, r1, r0
	cmp	r2, r6
	ldr	r2, .L17+44
	orreq	r1, r1, r3
	bicne	r1, r1, r3
	ldr	r3, .L17+48
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r5
	ldr	r2, .L17+52
	orreq	r1, r1, r3
	bicne	r1, r1, r3
	ldr	r3, .L17+56
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r7
	ldr	r0, [r4]
	orreq	r1, r1, r3
	bicne	r1, r1, r3
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	al_reg_write32
.L18:
	.align	2
.L17:
	.word	AL_ETH_L4_OFFSET
	.word	AL_ETH_L4_INNER_OUTER_CHK
	.word	EC_RFW_CFG_A_0_LRO_CONTEXT_SEL
	.word	EC_RFW_CFG_A_0_META_L4_CHK_RES_SEL
	.word	EC_RFW_CFG_A_0_META_L3_CHK_RES_SEL_SHIFT
	.word	AL_ETH_L3_PROTO_IDX_INNER
	.word	EC_RFW_META_L4_PROT_SEL
	.word	EC_RFW_META_L3_PROT_SEL
	.word	AL_ETH_L4_PROTO_IDX_INNER
	.word	AL_ETH_L4_OFFSET_INNER
	.word	EC_RFW_META_L4_OFFSET_SEL
	.word	AL_ETH_L3_OFFSET_INNER
	.word	EC_RFW_META_L3_OFFSET_SEL
	.word	AL_ETH_FRAG_INNER
	.word	EC_RFW_META_FRAG_SEL
	.size	al_eth_rx_desc_config, .-al_eth_rx_desc_config
	.comm	EC_RFW_META_L4_PROT_SEL,4,4
	.comm	EC_RFW_META_L4_OFFSET_SEL,4,4
	.comm	EC_RFW_META_L3_PROT_SEL,4,4
	.comm	EC_RFW_META_L3_OFFSET_SEL,4,4
	.comm	EC_RFW_META_FRAG_SEL,4,4
	.comm	EC_RFW_CFG_A_0_META_L4_CHK_RES_SEL,4,4
	.comm	EC_RFW_CFG_A_0_META_L3_CHK_RES_SEL_SHIFT,4,4
	.comm	EC_RFW_CFG_A_0_LRO_CONTEXT_SEL,4,4
	.comm	AL_ETH_L4_PROTO_IDX_INNER,4,4
	.comm	AL_ETH_L4_OFFSET_INNER,4,4
	.comm	AL_ETH_L4_OFFSET,4,4
	.comm	AL_ETH_L4_INNER_OUTER_CHK,4,4
	.comm	AL_ETH_L3_PROTO_IDX_INNER,4,4
	.comm	AL_ETH_L3_OFFSET_INNER,4,4
	.comm	AL_ETH_FRAG_INNER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
