	.file	"extr_nfp_net_common.c_nfp_net_coalesce_write_cfg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nfp_net_coalesce_write_cfg
	.type	nfp_net_coalesce_write_cfg, @function
nfp_net_coalesce_write_cfg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR 32[rdi]
	mov	eax, DWORD PTR 4[rdi]
	test	r12d, r12d
	lea	r13d, 15[r12]
	cmovns	r13d, r12d
	mov	r12d, DWORD PTR [rdi]
	sar	r13d, 4
	sal	r12d, 16
	imul	eax, r13d
	or	r12d, eax
	cmp	QWORD PTR 16[rdi], 0
	jle	.L2
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	add	rbp, 1
	call	NFP_NET_CFG_RXR_IRQ_MOD@PLT
	mov	edx, r12d
	mov	rdi, rbx
	mov	esi, eax
	call	nn_writel@PLT
	cmp	QWORD PTR 16[rbx], rbp
	jg	.L3
.L2:
	imul	r13d, DWORD PTR 12[rbx]
	mov	r12d, DWORD PTR 8[rbx]
	sal	r12d, 16
	or	r12d, r13d
	cmp	QWORD PTR 24[rbx], 0
	jle	.L1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	add	rbp, 1
	call	NFP_NET_CFG_TXR_IRQ_MOD@PLT
	mov	edx, r12d
	mov	rdi, rbx
	mov	esi, eax
	call	nn_writel@PLT
	cmp	QWORD PTR 24[rbx], rbp
	jg	.L5
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nfp_net_coalesce_write_cfg, .-nfp_net_coalesce_write_cfg
	.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_nfp_net_common.c_nfp_net_coalesce_write_cfg.c"
	.text
	.align	2
	.global	nfp_net_coalesce_write_cfg
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfp_net_coalesce_write_cfg, %function
nfp_net_coalesce_write_cfg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #24]
	ldr	r7, [r0, #4]
	add	r3, r6, #15
	cmp	r6, #0
	movlt	r6, r3
	asr	r6, r6, #4
	mul	r7, r6, r7
	ldr	r2, [r0, #16]
	ldr	r3, [r0]
	cmp	r2, #0
	mov	r4, r0
	orr	r7, r7, r3, lsl #16
	ble	.L2
	mov	r5, #0
.L3:
	mov	r0, r5
	bl	NFP_NET_CFG_RXR_IRQ_MOD
	mov	r2, r7
	mov	r1, r0
	mov	r0, r4
	bl	nn_writel
	ldr	r3, [r4, #16]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L3
.L2:
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #20]
	mul	r6, r3, r6
	ldr	r3, [r4, #8]
	cmp	r2, #0
	orr	r6, r6, r3, lsl #16
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r5, #0
.L5:
	mov	r0, r5
	bl	NFP_NET_CFG_TXR_IRQ_MOD
	mov	r2, r6
	mov	r1, r0
	mov	r0, r4
	bl	nn_writel
	ldr	r3, [r4, #20]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L5
	pop	{r4, r5, r6, r7, r8, pc}
	.size	nfp_net_coalesce_write_cfg, .-nfp_net_coalesce_write_cfg
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
