	.file	"extr_emac-mac.c_emac_mac_rx_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	emac_mac_rx_config, @function
emac_mac_rx_config:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR NUM_RFD_BURST_PREF_SHFT[rip]
	mov	eax, DWORD PTR NUM_RFD_BURST_PREF_BMSK[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR [rdi]
	mov	rsi, QWORD PTR EMAC_RXQ_CTRL_0[rip]
	add	rsi, QWORD PTR 8[rbx]
	sal	edi, cl
	and	eax, edi
	mov	edi, DWORD PTR SP_IPV6[rip]
	or	edi, DWORD PTR CUT_THRU_EN[rip]
	or	edi, eax
	call	writel@PLT
	mov	rdi, QWORD PTR EMAC_RXQ_CTRL_1[rip]
	add	rdi, QWORD PTR 8[rbx]
	call	readl@PLT
	mov	ecx, DWORD PTR JUMBO_1KAH_SHFT[rip]
	mov	edi, DWORD PTR JUMBO_1KAH_BMSK[rip]
	mov	edx, DWORD PTR JUMBO_1KAH[rip]
	or	edi, DWORD PTR RFD_PREF_LOW_THRESHOLD_BMSK[rip]
	or	edi, DWORD PTR RFD_PREF_UP_THRESHOLD_BMSK[rip]
	mov	rsi, QWORD PTR EMAC_RXQ_CTRL_1[rip]
	not	edi
	sal	edx, cl
	mov	ecx, DWORD PTR RFD_PREF_LOW_THRESHOLD_SHFT[rip]
	add	rsi, QWORD PTR 8[rbx]
	and	eax, edi
	mov	edi, DWORD PTR RFD_PREF_LOW_TH[rip]
	sal	edi, cl
	mov	ecx, DWORD PTR RFD_PREF_UP_THRESHOLD_SHFT[rip]
	or	edx, edi
	mov	edi, DWORD PTR RFD_PREF_UP_TH[rip]
	sal	edi, cl
	or	edi, edx
	or	edi, eax
	call	writel@PLT
	mov	rdi, QWORD PTR EMAC_RXQ_CTRL_2[rip]
	add	rdi, QWORD PTR 8[rbx]
	call	readl@PLT
	mov	ecx, DWORD PTR RXF_DOF_THRESHOLD_SHFT[rip]
	mov	edi, DWORD PTR RXF_DOF_THRESHOLD_BMSK[rip]
	mov	edx, DWORD PTR RXF_DOF_THRESFHOLD[rip]
	or	edi, DWORD PTR RXF_UOF_THRESHOLD_BMSK[rip]
	not	edi
	mov	rsi, QWORD PTR EMAC_RXQ_CTRL_2[rip]
	add	rsi, QWORD PTR 8[rbx]
	sal	edx, cl
	and	eax, edi
	mov	ecx, DWORD PTR RXF_UOF_THRESHOLD_SHFT[rip]
	mov	edi, DWORD PTR RXF_UOF_THRESFHOLD[rip]
	sal	edi, cl
	or	edi, edx
	or	edi, eax
	call	writel@PLT
	mov	rdi, QWORD PTR EMAC_RXQ_CTRL_3[rip]
	add	rdi, QWORD PTR 8[rbx]
	call	readl@PLT
	mov	ecx, DWORD PTR RXD_THRESHOLD_SHFT[rip]
	mov	edi, DWORD PTR RXD_TH[rip]
	mov	r8d, eax
	mov	eax, DWORD PTR RXD_TIMER_BMSK[rip]
	or	eax, DWORD PTR RXD_THRESHOLD_BMSK[rip]
	not	eax
	mov	rsi, QWORD PTR EMAC_RXQ_CTRL_3[rip]
	and	eax, r8d
	sal	edi, cl
	add	rsi, QWORD PTR 8[rbx]
	pop	rbx
	.cfi_def_cfa_offset 8
	or	edi, eax
	jmp	writel@PLT
	.cfi_endproc
.LFE0:
	.size	emac_mac_rx_config, .-emac_mac_rx_config
	.comm	SP_IPV6,4,4
	.comm	RXF_UOF_THRESHOLD_SHFT,4,4
	.comm	RXF_UOF_THRESHOLD_BMSK,4,4
	.comm	RXF_UOF_THRESFHOLD,4,4
	.comm	RXF_DOF_THRESHOLD_SHFT,4,4
	.comm	RXF_DOF_THRESHOLD_BMSK,4,4
	.comm	RXF_DOF_THRESFHOLD,4,4
	.comm	RXD_TIMER_BMSK,4,4
	.comm	RXD_THRESHOLD_SHFT,4,4
	.comm	RXD_THRESHOLD_BMSK,4,4
	.comm	RXD_TH,4,4
	.comm	RFD_PREF_UP_THRESHOLD_SHFT,4,4
	.comm	RFD_PREF_UP_THRESHOLD_BMSK,4,4
	.comm	RFD_PREF_UP_TH,4,4
	.comm	RFD_PREF_LOW_THRESHOLD_SHFT,4,4
	.comm	RFD_PREF_LOW_THRESHOLD_BMSK,4,4
	.comm	RFD_PREF_LOW_TH,4,4
	.comm	NUM_RFD_BURST_PREF_SHFT,4,4
	.comm	NUM_RFD_BURST_PREF_BMSK,4,4
	.comm	JUMBO_1KAH_SHFT,4,4
	.comm	JUMBO_1KAH_BMSK,4,4
	.comm	JUMBO_1KAH,4,4
	.comm	EMAC_RXQ_CTRL_3,8,8
	.comm	EMAC_RXQ_CTRL_2,8,8
	.comm	EMAC_RXQ_CTRL_1,8,8
	.comm	EMAC_RXQ_CTRL_0,8,8
	.comm	CUT_THRU_EN,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_emac-mac.c_emac_mac_rx_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	emac_mac_rx_config, %function
emac_mac_rx_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r1, .L4
	ldr	r3, .L4+4
	ldr	r0, .L4+8
	ldr	ip, .L4+12
	ldr	lr, [r4]
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, .L4+16
	ldr	ip, [ip]
	ldr	r0, [r0]
	and	r3, r3, lr, lsl r1
	ldr	r2, [r2]
	ldr	r1, [r4, #4]
	orr	r0, r0, ip
	ldr	r5, .L4+20
	add	r1, r1, r2
	orr	r0, r0, r3
	bl	writel
	ldr	r3, [r5]
	ldr	r0, [r4, #4]
	ldr	r6, .L4+24
	add	r0, r0, r3
	bl	readl
	ldr	r1, .L4+28
	ldr	r2, .L4+32
	ldr	r3, .L4+36
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	ip, [r3]
	ldr	r3, .L4+40
	orr	r2, r1, r2
	ldr	r1, .L4+44
	ldr	r3, [r3]
	ldr	r7, [r1]
	lsl	r3, ip, r3
	ldr	r1, [r5]
	ldr	ip, .L4+48
	ldr	r5, .L4+52
	orr	r2, r2, r7
	ldr	lr, [ip]
	bic	r0, r0, r2
	ldr	ip, [r4, #4]
	ldr	r2, [r5]
	add	r1, ip, r1
	orr	r3, r3, lr, lsl r2
	ldr	ip, .L4+56
	ldr	r2, .L4+60
	ldr	ip, [ip]
	ldr	r2, [r2]
	ldr	r5, .L4+64
	orr	r3, r3, ip, lsl r2
	orr	r0, r3, r0
	bl	writel
	ldr	r3, [r6]
	ldr	r0, [r4, #4]
	add	r0, r0, r3
	bl	readl
	ldr	ip, .L4+68
	ldr	r3, .L4+72
	ldr	lr, [ip]
	ldr	r1, .L4+76
	ldr	r3, [r3]
	ldr	r2, .L4+80
	ldr	r7, [r1]
	lsl	r3, r3, lr
	ldr	r1, [r6]
	ldr	lr, .L4+84
	ldr	r6, .L4+88
	ldr	r2, [r2]
	ldr	lr, [lr]
	ldr	r6, [r6]
	ldr	ip, [r4, #4]
	orr	r2, r2, r7
	orr	r3, r3, r6, lsl lr
	bic	r0, r0, r2
	add	r1, ip, r1
	orr	r0, r3, r0
	bl	writel
	ldr	r3, [r5]
	ldr	r0, [r4, #4]
	add	r0, r0, r3
	bl	readl
	ldr	r2, .L4+92
	ldr	r3, .L4+96
	ldr	r6, [r2]
	ldr	r3, [r3]
	ldr	ip, .L4+100
	ldr	r2, .L4+104
	ldr	lr, [r4, #4]
	ldr	r1, [r5]
	orr	r3, r3, r6
	ldr	ip, [ip]
	ldr	r2, [r2]
	bic	r0, r0, r3
	add	r1, lr, r1
	orr	r0, r0, ip, lsl r2
	pop	{r4, r5, r6, r7, r8, lr}
	b	writel
.L5:
	.align	2
.L4:
	.word	NUM_RFD_BURST_PREF_SHFT
	.word	NUM_RFD_BURST_PREF_BMSK
	.word	SP_IPV6
	.word	CUT_THRU_EN
	.word	EMAC_RXQ_CTRL_0
	.word	EMAC_RXQ_CTRL_1
	.word	EMAC_RXQ_CTRL_2
	.word	JUMBO_1KAH_BMSK
	.word	RFD_PREF_LOW_THRESHOLD_BMSK
	.word	RFD_PREF_LOW_TH
	.word	RFD_PREF_LOW_THRESHOLD_SHFT
	.word	RFD_PREF_UP_THRESHOLD_BMSK
	.word	JUMBO_1KAH
	.word	JUMBO_1KAH_SHFT
	.word	RFD_PREF_UP_TH
	.word	RFD_PREF_UP_THRESHOLD_SHFT
	.word	EMAC_RXQ_CTRL_3
	.word	RXF_UOF_THRESHOLD_SHFT
	.word	RXF_UOF_THRESFHOLD
	.word	RXF_UOF_THRESHOLD_BMSK
	.word	RXF_DOF_THRESHOLD_BMSK
	.word	RXF_DOF_THRESHOLD_SHFT
	.word	RXF_DOF_THRESFHOLD
	.word	RXD_THRESHOLD_BMSK
	.word	RXD_TIMER_BMSK
	.word	RXD_TH
	.word	RXD_THRESHOLD_SHFT
	.size	emac_mac_rx_config, .-emac_mac_rx_config
	.comm	SP_IPV6,4,4
	.comm	RXF_UOF_THRESHOLD_SHFT,4,4
	.comm	RXF_UOF_THRESHOLD_BMSK,4,4
	.comm	RXF_UOF_THRESFHOLD,4,4
	.comm	RXF_DOF_THRESHOLD_SHFT,4,4
	.comm	RXF_DOF_THRESHOLD_BMSK,4,4
	.comm	RXF_DOF_THRESFHOLD,4,4
	.comm	RXD_TIMER_BMSK,4,4
	.comm	RXD_THRESHOLD_SHFT,4,4
	.comm	RXD_THRESHOLD_BMSK,4,4
	.comm	RXD_TH,4,4
	.comm	RFD_PREF_UP_THRESHOLD_SHFT,4,4
	.comm	RFD_PREF_UP_THRESHOLD_BMSK,4,4
	.comm	RFD_PREF_UP_TH,4,4
	.comm	RFD_PREF_LOW_THRESHOLD_SHFT,4,4
	.comm	RFD_PREF_LOW_THRESHOLD_BMSK,4,4
	.comm	RFD_PREF_LOW_TH,4,4
	.comm	NUM_RFD_BURST_PREF_SHFT,4,4
	.comm	NUM_RFD_BURST_PREF_BMSK,4,4
	.comm	JUMBO_1KAH_SHFT,4,4
	.comm	JUMBO_1KAH_BMSK,4,4
	.comm	JUMBO_1KAH,4,4
	.comm	EMAC_RXQ_CTRL_3,4,4
	.comm	EMAC_RXQ_CTRL_2,4,4
	.comm	EMAC_RXQ_CTRL_1,4,4
	.comm	EMAC_RXQ_CTRL_0,4,4
	.comm	CUT_THRU_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
