	.file	"extr_atl1.c_set_flow_ctrl_old.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_flow_ctrl_old, @function
set_flow_ctrl_old:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, 2
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR 12[rdi]
	mov	ecx, DWORD PTR RXQ_RXF_PAUSE_TH_LO_SHIFT[rip]
	mov	rsi, QWORD PTR REG_RXQ_RXF_PAUSE_THRESH[rip]
	mov	edi, edx
	lea	eax, 0[0+rdx*8]
	sar	edi, 4
	cmp	edx, 31
	cmovle	edi, ebp
	sub	eax, edx
	mov	edx, eax
	lea	eax, 7[rax]
	cmovns	eax, edx
	and	edi, DWORD PTR RXQ_RXF_PAUSE_TH_HI_MASK[rip]
	add	rsi, QWORD PTR [rbx]
	sar	eax, 3
	and	eax, DWORD PTR RXQ_RXF_PAUSE_TH_LO_MASK[rip]
	sal	eax, cl
	mov	ecx, DWORD PTR RXQ_RXF_PAUSE_TH_HI_SHIFT[rip]
	sal	edi, cl
	or	edi, eax
	call	iowrite32@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR RXQ_RRD_PAUSE_TH_HI_SHIFT[rip]
	mov	rsi, QWORD PTR REG_RXQ_RRD_PAUSE_THRESH[rip]
	lea	edi, 0[0+rdx*8]
	mov	eax, edi
	sub	eax, edx
	lea	edi, 7[rax]
	cmovns	edi, eax
	mov	eax, edx
	sar	eax, 4
	sar	edi, 3
	cmp	edx, 31
	cmovg	ebp, eax
	and	edi, DWORD PTR RXQ_RRD_PAUSE_TH_HI_MASK[rip]
	and	ebp, DWORD PTR RXQ_RRD_PAUSE_TH_LO_MASK[rip]
	sal	edi, cl
	mov	ecx, DWORD PTR RXQ_RRD_PAUSE_TH_LO_SHIFT[rip]
	add	rsi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	sal	ebp, cl
	or	edi, ebp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	iowrite32@PLT
	.cfi_endproc
.LFE0:
	.size	set_flow_ctrl_old, .-set_flow_ctrl_old
	.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_RRD_PAUSE_TH_LO_SHIFT,4,4
	.comm	RXQ_RRD_PAUSE_TH_LO_MASK,4,4
	.comm	RXQ_RRD_PAUSE_TH_HI_SHIFT,4,4
	.comm	RXQ_RRD_PAUSE_TH_HI_MASK,4,4
	.comm	REG_RXQ_RXF_PAUSE_THRESH,8,8
	.comm	REG_RXQ_RRD_PAUSE_THRESH,8,8
	.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_atl1.c_set_flow_ctrl_old.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_flow_ctrl_old, %function
set_flow_ctrl_old:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, lr}
	cmp	r3, #31
	asrgt	r2, r3, #4
	movle	r2, #2
	rsb	r3, r3, r3, lsl #3
	mov	r4, r0
	cmp	r3, #0
	add	r0, r3, #7
	movlt	r3, r0
	ldr	r0, .L8
	ldr	r1, .L8+4
	ldr	r0, [r0]
	ldr	ip, .L8+8
	ldr	lr, [r1]
	ldr	ip, [ip]
	and	r2, r2, r0
	ldr	r1, .L8+12
	ldr	r0, .L8+16
	and	r3, ip, r3, asr #3
	ldr	r0, [r0]
	ldr	ip, [r4]
	ldr	r1, [r1]
	lsl	r2, r2, lr
	orr	r0, r2, r3, lsl r0
	add	r1, ip, r1
	bl	iowrite32
	ldr	r3, [r4, #4]
	ldr	ip, .L8+20
	rsb	r2, r3, r3, lsl #3
	add	r0, r2, #7
	cmp	r2, #0
	movlt	r2, r0
	cmp	r3, #31
	movle	r3, #2
	ldr	r5, [ip]
	ldr	r0, .L8+24
	ldr	ip, .L8+28
	ldr	r0, [r0]
	ldr	lr, [ip]
	ldr	r1, .L8+32
	ldr	ip, [r4]
	asrgt	r3, r3, #4
	ldr	r4, .L8+36
	and	r3, r3, r5
	lsl	r3, r3, r0
	ldr	r1, [r1]
	ldr	r0, [r4]
	asr	r2, r2, #3
	and	r2, r2, lr
	add	r1, ip, r1
	orr	r0, r3, r2, lsl r0
	pop	{r4, r5, r6, lr}
	b	iowrite32
.L9:
	.align	2
.L8:
	.word	RXQ_RXF_PAUSE_TH_HI_MASK
	.word	RXQ_RXF_PAUSE_TH_HI_SHIFT
	.word	RXQ_RXF_PAUSE_TH_LO_MASK
	.word	REG_RXQ_RXF_PAUSE_THRESH
	.word	RXQ_RXF_PAUSE_TH_LO_SHIFT
	.word	RXQ_RRD_PAUSE_TH_LO_MASK
	.word	RXQ_RRD_PAUSE_TH_LO_SHIFT
	.word	RXQ_RRD_PAUSE_TH_HI_MASK
	.word	REG_RXQ_RRD_PAUSE_THRESH
	.word	RXQ_RRD_PAUSE_TH_HI_SHIFT
	.size	set_flow_ctrl_old, .-set_flow_ctrl_old
	.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_RRD_PAUSE_TH_LO_SHIFT,4,4
	.comm	RXQ_RRD_PAUSE_TH_LO_MASK,4,4
	.comm	RXQ_RRD_PAUSE_TH_HI_SHIFT,4,4
	.comm	RXQ_RRD_PAUSE_TH_HI_MASK,4,4
	.comm	REG_RXQ_RXF_PAUSE_THRESH,4,4
	.comm	REG_RXQ_RRD_PAUSE_THRESH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
