	.file	"extr_ena_com.h_ena_com_calculate_interrupt_delay.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Wrong moderation index %u\n"
	.text
	.p2align 4
	.type	ena_com_calculate_interrupt_delay, @function
ena_com_calculate_interrupt_delay:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	je	.L12
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	edx, edx
	je	.L1
	mov	r15, QWORD PTR [rdi]
	mov	ebp, DWORD PTR [r8]
	xor	edi, edi
	mov	ebx, esi
	cmp	DWORD PTR ENA_INTR_MAX_NUM_OF_LEVELS[rip], ebp
	mov	r14, rcx
	mov	r13, r8
	setbe	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L16
	mov	eax, ebp
	cmp	DWORD PTR ENA_INTR_MODER_LOWEST[rip], ebp
	lea	rax, [rax+rax*2]
	lea	rdx, [r15+rax*4]
	je	.L17
	mov	edi, DWORD PTR ENA_INTR_MODER_LEVEL_STRIDE[rip]
	mov	ecx, ebp
	sub	ecx, edi
	mov	eax, ecx
	lea	rax, [rax+rax*2]
	lea	rsi, [r15+rax*4]
	cmp	DWORD PTR [rsi], ebx
	jnb	.L6
	cmp	DWORD PTR 4[rsi], r12d
	jnb	.L6
	cmp	DWORD PTR [rdx], ebx
	jnb	.L18
.L7:
	cmp	DWORD PTR ENA_INTR_MODER_HIGHEST[rip], ebp
	je	.L10
	lea	eax, [rdi+rbp]
	mov	rcx, rax
	lea	rax, [rax+rax*2]
	lea	rsi, [r15+rax*4]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR [r14]
	mov	eax, DWORD PTR ENA_INTR_DELAY_NEW_VALUE_WEIGHT[rip]
	imul	edx, DWORD PTR ENA_INTR_DELAY_OLD_VALUE_WEIGHT[rip]
	imul	eax, DWORD PTR 8[rsi]
	lea	eax, 5[rdx+rax]
	mov	edx, 3435973837
	imul	rax, rdx
	shr	rax, 35
	mov	DWORD PTR [r14], eax
	mov	DWORD PTR 0[r13], ecx
.L1:
	add	rsp, 8
	.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
.L12:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	cmp	DWORD PTR [rdx], ebx
	jb	.L5
	cmp	DWORD PTR 4[rdx], r12d
	jnb	.L10
.L5:
	mov	ecx, DWORD PTR ENA_INTR_MODER_LEVEL_STRIDE[rip]
	add	ecx, ebp
	mov	eax, ecx
	lea	rax, [rax+rax*2]
	lea	rsi, [r15+rax*4]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	DWORD PTR 4[rdx], r12d
	jb	.L7
.L10:
	mov	rsi, rdx
	mov	ecx, ebp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	ena_trc_err@PLT
	.cfi_endproc
.LFE0:
	.size	ena_com_calculate_interrupt_delay, .-ena_com_calculate_interrupt_delay
	.comm	ENA_INTR_MODER_LOWEST,4,4
	.comm	ENA_INTR_MODER_LEVEL_STRIDE,4,4
	.comm	ENA_INTR_MODER_HIGHEST,4,4
	.comm	ENA_INTR_MAX_NUM_OF_LEVELS,4,4
	.comm	ENA_INTR_DELAY_OLD_VALUE_WEIGHT,4,4
	.comm	ENA_INTR_DELAY_NEW_VALUE_WEIGHT,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_ena_com.h_ena_com_calculate_interrupt_delay.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Wrong moderation index %u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ena_com_calculate_interrupt_delay, %function
ena_com_calculate_interrupt_delay:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	cmpne	r1, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [sp, #32]
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r6, r3
	ldr	r3, .L16
	ldr	r7, [r8]
	ldr	r3, [r3]
	ldr	r9, [r0]
	cmp	r3, r7
	movhi	r0, #0
	movls	r0, #1
	mov	r5, r1
	mov	r4, r2
	bl	unlikely
	cmp	r0, #0
	bne	.L13
	ldr	r3, .L16+4
	add	r2, r7, r7, lsl #1
	ldr	r3, [r3]
	lsl	r1, r2, #2
	cmp	r3, r7
	add	r2, r9, r2, lsl #2
	beq	.L14
	ldr	r3, .L16+8
	ldr	ip, [r3]
	sub	r3, r7, ip
	add	r0, r3, r3, lsl #1
	ldr	lr, [r9, r0, lsl #2]
	add	r0, r9, r0, lsl #2
	cmp	lr, r5
	bcs	.L6
	ldr	lr, [r0, #4]
	cmp	lr, r4
	bcs	.L6
	ldr	r3, [r9, r1]
	cmp	r3, r5
	bcs	.L15
.L7:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L10
	add	r3, ip, r7
	add	r0, r3, r3, lsl #1
	add	r0, r9, r0, lsl #2
.L6:
	ldr	r2, .L16+16
	ldr	r1, [r6]
	ldr	r2, [r2]
	ldr	ip, [r0, #8]
	mul	r2, r1, r2
	ldr	r0, .L16+20
	add	r1, r2, #5
	ldr	r2, [r0]
	ldr	r0, .L16+24
	mla	r2, ip, r2, r1
	umull	r1, r2, r0, r2
	lsr	r2, r2, #3
	str	r2, [r6]
	str	r3, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r1, [r9, r1]
	cmp	r1, r5
	bcc	.L5
	ldr	r1, [r2, #4]
	cmp	r1, r4
	movcs	r0, r2
	bcs	.L6
.L5:
	ldr	r3, .L16+8
	ldr	r3, [r3]
	add	r3, r7, r3
	add	r0, r3, r3, lsl #1
	add	r0, r9, r0, lsl #2
	b	.L6
.L13:
	mov	r1, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, .L16+28
	b	ena_trc_err
.L15:
	ldr	r3, [r2, #4]
	cmp	r3, r4
	bcc	.L7
.L10:
	mov	r0, r2
	mov	r3, r7
	b	.L6
.L17:
	.align	2
.L16:
	.word	ENA_INTR_MAX_NUM_OF_LEVELS
	.word	ENA_INTR_MODER_LOWEST
	.word	ENA_INTR_MODER_LEVEL_STRIDE
	.word	ENA_INTR_MODER_HIGHEST
	.word	ENA_INTR_DELAY_OLD_VALUE_WEIGHT
	.word	ENA_INTR_DELAY_NEW_VALUE_WEIGHT
	.word	-858993459
	.word	.LC0
	.size	ena_com_calculate_interrupt_delay, .-ena_com_calculate_interrupt_delay
	.comm	ENA_INTR_MODER_LOWEST,4,4
	.comm	ENA_INTR_MODER_LEVEL_STRIDE,4,4
	.comm	ENA_INTR_MODER_HIGHEST,4,4
	.comm	ENA_INTR_MAX_NUM_OF_LEVELS,4,4
	.comm	ENA_INTR_DELAY_OLD_VALUE_WEIGHT,4,4
	.comm	ENA_INTR_DELAY_NEW_VALUE_WEIGHT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
