	.file	"extr_atl1e_main.c_atl1e_configure_rx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atl1e_configure_rx, @function
atl1e_configure_rx:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rax, QWORD PTR athr_l2e_revB[rip]
	mov	rbp, rdi
	cmp	QWORD PTR [rdi], rax
	je	.L2
	mov	ecx, DWORD PTR RXQ_JMBOSZ_TH_SHIFT[rip]
	mov	edx, DWORD PTR 8[rdi]
	mov	eax, DWORD PTR RXQ_JMBO_LKAH_MASK[rip]
	and	edx, DWORD PTR RXQ_JMBOSZ_TH_MASK[rip]
	sal	edx, cl
	mov	ecx, DWORD PTR RXQ_JMBO_LKAH_SHIFT[rip]
	mov	esi, DWORD PTR REG_RXQ_JMBOSZ_RRDTIM[rip]
	and	eax, 1
	sal	eax, cl
	or	edx, eax
	call	AT_WRITE_REGW@PLT
	mov	esi, DWORD PTR REG_SRAM_RXF_LEN[rip]
	mov	rdi, rbp
	call	AT_READ_REG@PLT
	mov	ecx, DWORD PTR RXQ_RXF_PAUSE_TH_HI_SHIFT[rip]
	mov	rdi, rbp
	mov	esi, eax
	lea	eax, 0[0+rax*4]
	movsx	rdx, eax
	sar	eax, 31
	imul	rdx, rdx, 1717986919
	sar	rdx, 33
	sub	edx, eax
	movsx	rax, esi
	and	edx, DWORD PTR RXQ_RXF_PAUSE_TH_HI_MASK[rip]
	sar	esi, 31
	imul	rax, rax, 1717986919
	sal	edx, cl
	mov	ecx, DWORD PTR RXQ_RXF_PAUSE_TH_LO_SHIFT[rip]
	sar	rax, 33
	sub	eax, esi
	and	eax, DWORD PTR RXQ_RXF_PAUSE_TH_LO_MASK[rip]
	mov	esi, DWORD PTR REG_RXQ_RXF_PAUSE_THRESH[rip]
	sal	eax, cl
	or	edx, eax
	call	AT_WRITE_REG@PLT
.L2:
	mov	edx, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR REG_IDT_TABLE[rip]
	mov	rdi, rbp
	call	AT_WRITE_REG@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR REG_BASE_CPU_NUMBER[rip]
	mov	rdi, rbp
	call	AT_WRITE_REG@PLT
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, edx
	and	eax, DWORD PTR atl1e_rrs_ipv4[rip]
	cmovne	eax, DWORD PTR RXQ_CTRL_HASH_TYPE_IPV4[rip]
	test	DWORD PTR atl1e_rrs_ipv4_tcp[rip], edx
	je	.L4
	or	eax, DWORD PTR RXQ_CTRL_HASH_TYPE_IPV4_TCP[rip]
.L4:
	test	DWORD PTR atl1e_rrs_ipv6[rip], edx
	je	.L5
	or	eax, DWORD PTR RXQ_CTRL_HASH_TYPE_IPV6[rip]
.L5:
	test	DWORD PTR atl1e_rrs_ipv6_tcp[rip], edx
	je	.L6
	or	eax, DWORD PTR RXQ_CTRL_HASH_TYPE_IPV6_TCP[rip]
.L6:
	cmp	edx, DWORD PTR atl1e_rrs_disable[rip]
	je	.L7
	mov	edx, DWORD PTR RXQ_CTRL_HASH_ENABLE[rip]
	or	edx, DWORD PTR RXQ_CTRL_RSS_MODE_MQUESINT[rip]
	or	eax, edx
.L7:
	mov	edx, DWORD PTR RXQ_CTRL_IPV6_XSUM_VERIFY_EN[rip]
	mov	esi, DWORD PTR REG_RXQ_CTRL[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR RXQ_CTRL_PBA_ALIGN_32[rip]
	or	edx, DWORD PTR RXQ_CTRL_CUT_THRU_EN[rip]
	or	edx, DWORD PTR RXQ_CTRL_EN[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	or	edx, eax
	jmp	AT_WRITE_REG@PLT
	.cfi_endproc
.LFE0:
	.size	atl1e_configure_rx, .-atl1e_configure_rx
	.comm	atl1e_rrs_ipv6_tcp,4,4
	.comm	atl1e_rrs_ipv6,4,4
	.comm	atl1e_rrs_ipv4_tcp,4,4
	.comm	atl1e_rrs_ipv4,4,4
	.comm	atl1e_rrs_disable,4,4
	.comm	athr_l2e_revB,8,8
	.comm	RXQ_RXF_PAUSE_TH_LO_SHIFT,4,4
	.comm	RXQ_RXF_PAUSE_TH_LO_MASK,4,4
	.comm	RXQ_RXF_PAUSE_TH_HI_SHIFT,4,4
	.comm	RXQ_RXF_PAUSE_TH_HI_MASK,4,4
	.comm	RXQ_JMBO_LKAH_SHIFT,4,4
	.comm	RXQ_JMBO_LKAH_MASK,4,4
	.comm	RXQ_JMBOSZ_TH_SHIFT,4,4
	.comm	RXQ_JMBOSZ_TH_MASK,4,4
	.comm	RXQ_CTRL_RSS_MODE_MQUESINT,4,4
	.comm	RXQ_CTRL_PBA_ALIGN_32,4,4
	.comm	RXQ_CTRL_IPV6_XSUM_VERIFY_EN,4,4
	.comm	RXQ_CTRL_HASH_TYPE_IPV6_TCP,4,4
	.comm	RXQ_CTRL_HASH_TYPE_IPV6,4,4
	.comm	RXQ_CTRL_HASH_TYPE_IPV4_TCP,4,4
	.comm	RXQ_CTRL_HASH_TYPE_IPV4,4,4
	.comm	RXQ_CTRL_HASH_ENABLE,4,4
	.comm	RXQ_CTRL_EN,4,4
	.comm	RXQ_CTRL_CUT_THRU_EN,4,4
	.comm	REG_SRAM_RXF_LEN,4,4
	.comm	REG_RXQ_RXF_PAUSE_THRESH,4,4
	.comm	REG_RXQ_JMBOSZ_RRDTIM,4,4
	.comm	REG_RXQ_CTRL,4,4
	.comm	REG_IDT_TABLE,4,4
	.comm	REG_BASE_CPU_NUMBER,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_atl1e_main.c_atl1e_configure_rx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atl1e_configure_rx, %function
atl1e_configure_rx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L22
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, lr}
	cmp	r2, r3
	mov	r4, r0
	beq	.L2
	ldr	r3, .L22+4
	ldr	r1, .L22+8
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, .L22+12
	ldr	ip, .L22+16
	and	r3, r3, #1
	lsl	r3, r3, r1
	ldr	r2, [r2]
	ldr	r1, [r0, #4]
	ldr	lr, [ip]
	ldr	ip, .L22+20
	and	r2, r2, r1
	orr	r2, r3, r2, lsl lr
	ldr	r1, [ip]
	bl	AT_WRITE_REGW
	ldr	r3, .L22+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	AT_READ_REG
	ldr	r2, .L22+28
	lsl	r3, r0, #2
	smull	r1, ip, r2, r0
	smull	r1, r2, r3, r2
	ldr	r1, .L22+32
	asr	r0, r0, #31
	ldr	r1, [r1]
	rsb	r0, r0, ip, asr #1
	ldr	lr, .L22+36
	ldr	ip, .L22+40
	and	r0, r0, r1
	ldr	r1, .L22+44
	ldr	lr, [lr]
	ldr	ip, [ip]
	asr	r3, r3, #31
	rsb	r3, r3, r2, asr #1
	ldr	r2, [r1]
	ldr	r1, .L22+48
	lsl	r0, r0, ip
	and	r3, r3, lr
	orr	r2, r0, r3, lsl r2
	ldr	r1, [r1]
	mov	r0, r4
	bl	AT_WRITE_REG
.L2:
	ldr	r3, .L22+52
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	mov	r0, r4
	bl	AT_WRITE_REG
	ldr	r3, .L22+56
	ldr	r2, [r4, #12]
	ldr	r1, [r3]
	mov	r0, r4
	bl	AT_WRITE_REG
	ldr	r3, .L22+60
	ldr	r1, [r4, #16]
	ldr	r3, [r3]
	ldr	r2, .L22+64
	ands	r3, r1, r3
	ldrne	r3, .L22+68
	ldr	r2, [r2]
	ldrne	r3, [r3]
	tst	r1, r2
	ldrne	r2, .L22+72
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, .L22+76
	ldr	r2, [r2]
	tst	r1, r2
	ldrne	r2, .L22+80
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, .L22+84
	ldr	r2, [r2]
	tst	r1, r2
	ldrne	r2, .L22+88
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, .L22+92
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L7
	ldr	r2, .L22+96
	ldr	r1, .L22+100
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r2, r2, r1
	orr	r3, r3, r2
.L7:
	ldr	r0, .L22+104
	ldr	r2, .L22+108
	ldr	r1, .L22+112
	ldr	ip, [r0]
	ldr	r2, [r2]
	ldr	r0, .L22+116
	ldr	r1, [r1]
	ldr	r0, [r0]
	orr	r2, r2, ip
	orr	r2, r2, r1
	ldr	r1, .L22+120
	orr	r2, r2, r0
	ldr	r1, [r1]
	mov	r0, r4
	pop	{r4, lr}
	orr	r2, r2, r3
	b	AT_WRITE_REG
.L23:
	.align	2
.L22:
	.word	athr_l2e_revB
	.word	RXQ_JMBO_LKAH_MASK
	.word	RXQ_JMBO_LKAH_SHIFT
	.word	RXQ_JMBOSZ_TH_MASK
	.word	RXQ_JMBOSZ_TH_SHIFT
	.word	REG_RXQ_JMBOSZ_RRDTIM
	.word	REG_SRAM_RXF_LEN
	.word	1717986919
	.word	RXQ_RXF_PAUSE_TH_LO_MASK
	.word	RXQ_RXF_PAUSE_TH_HI_MASK
	.word	RXQ_RXF_PAUSE_TH_LO_SHIFT
	.word	RXQ_RXF_PAUSE_TH_HI_SHIFT
	.word	REG_RXQ_RXF_PAUSE_THRESH
	.word	REG_IDT_TABLE
	.word	REG_BASE_CPU_NUMBER
	.word	atl1e_rrs_ipv4
	.word	atl1e_rrs_ipv4_tcp
	.word	RXQ_CTRL_HASH_TYPE_IPV4
	.word	RXQ_CTRL_HASH_TYPE_IPV4_TCP
	.word	atl1e_rrs_ipv6
	.word	RXQ_CTRL_HASH_TYPE_IPV6
	.word	atl1e_rrs_ipv6_tcp
	.word	RXQ_CTRL_HASH_TYPE_IPV6_TCP
	.word	atl1e_rrs_disable
	.word	RXQ_CTRL_HASH_ENABLE
	.word	RXQ_CTRL_RSS_MODE_MQUESINT
	.word	RXQ_CTRL_PBA_ALIGN_32
	.word	RXQ_CTRL_IPV6_XSUM_VERIFY_EN
	.word	RXQ_CTRL_CUT_THRU_EN
	.word	RXQ_CTRL_EN
	.word	REG_RXQ_CTRL
	.size	atl1e_configure_rx, .-atl1e_configure_rx
	.comm	atl1e_rrs_ipv6_tcp,4,4
	.comm	atl1e_rrs_ipv6,4,4
	.comm	atl1e_rrs_ipv4_tcp,4,4
	.comm	atl1e_rrs_ipv4,4,4
	.comm	atl1e_rrs_disable,4,4
	.comm	athr_l2e_revB,4,4
	.comm	RXQ_RXF_PAUSE_TH_LO_SHIFT,4,4
	.comm	RXQ_RXF_PAUSE_TH_LO_MASK,4,4
	.comm	RXQ_RXF_PAUSE_TH_HI_SHIFT,4,4
	.comm	RXQ_RXF_PAUSE_TH_HI_MASK,4,4
	.comm	RXQ_JMBO_LKAH_SHIFT,4,4
	.comm	RXQ_JMBO_LKAH_MASK,4,4
	.comm	RXQ_JMBOSZ_TH_SHIFT,4,4
	.comm	RXQ_JMBOSZ_TH_MASK,4,4
	.comm	RXQ_CTRL_RSS_MODE_MQUESINT,4,4
	.comm	RXQ_CTRL_PBA_ALIGN_32,4,4
	.comm	RXQ_CTRL_IPV6_XSUM_VERIFY_EN,4,4
	.comm	RXQ_CTRL_HASH_TYPE_IPV6_TCP,4,4
	.comm	RXQ_CTRL_HASH_TYPE_IPV6,4,4
	.comm	RXQ_CTRL_HASH_TYPE_IPV4_TCP,4,4
	.comm	RXQ_CTRL_HASH_TYPE_IPV4,4,4
	.comm	RXQ_CTRL_HASH_ENABLE,4,4
	.comm	RXQ_CTRL_EN,4,4
	.comm	RXQ_CTRL_CUT_THRU_EN,4,4
	.comm	REG_SRAM_RXF_LEN,4,4
	.comm	REG_RXQ_RXF_PAUSE_THRESH,4,4
	.comm	REG_RXQ_JMBOSZ_RRDTIM,4,4
	.comm	REG_RXQ_CTRL,4,4
	.comm	REG_IDT_TABLE,4,4
	.comm	REG_BASE_CPU_NUMBER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
