	.file	"extr_qed_dev.c_qed_set_rxq_coalesce.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid coalesce value - %d\n"
	.text
	.p2align 4
	.globl	qed_set_rxq_coalesce
	.type	qed_set_rxq_coalesce, @function
qed_set_rxq_coalesce:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	edx, 127
	jle	.L7
	cmp	edx, 255
	jle	.L10
	cmp	edx, 511
	jg	.L4
	sar	r12d, 2
	mov	edx, 2
.L2:
	mov	ecx, DWORD PTR 4[rbx]
	xor	r8d, r8d
	mov	rsi, r13
	mov	rdi, rbp
	call	qed_int_set_timer_res@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR [rbx]
	call	USTORM_ETH_QUEUE_ZONE_OFFSET@PLT
	lea	rcx, 4[rsp]
	mov	r9d, r12d
	mov	rsi, r13
	add	rax, QWORD PTR BAR0_MAP_REG_USDM_RAM[rip]
	mov	r8d, 4
	mov	rdi, rbp
	mov	rdx, rax
	call	qed_set_coalesce@PLT
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	sar	r12d
	mov	edx, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	xor	edx, edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rsi, .LC0[rip]
	call	DP_ERR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qed_set_rxq_coalesce, .-qed_set_rxq_coalesce
	.comm	EINVAL,4,4
	.comm	BAR0_MAP_REG_USDM_RAM,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_qed_dev.c_qed_set_rxq_coalesce.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid coalesce value - %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	qed_set_rxq_coalesce
	.syntax unified
	.arm
	.fpu softvfp
	.type	qed_set_rxq_coalesce, %function
qed_set_rxq_coalesce:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r3
	ldr	r3, .L12
	sub	sp, sp, #20
	cmp	r2, #127
	mov	r4, r2
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	ble	.L7
	cmp	r2, #255
	asrle	r4, r2, #1
	movle	r2, #1
	ble	.L2
	cmp	r4, #512
	bge	.L4
	mov	r2, #2
	asr	r4, r4, #2
.L2:
	mov	r3, #0
	str	r3, [sp]
	mov	r1, r6
	mov	r0, r5
	ldr	r3, [r7, #4]
	bl	qed_int_set_timer_res
	cmp	r0, #0
	beq	.L10
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r0, [r7]
	bl	USTORM_ETH_QUEUE_ZONE_OFFSET
	mov	r3, #4
	mov	ip, r0
	ldr	r2, .L12+4
	str	r4, [sp, #4]
	ldr	r2, [r2]
	mov	r1, r6
	str	r3, [sp]
	mov	r0, r5
	add	r2, ip, r2
	add	r3, sp, #8
	bl	qed_set_coalesce
	b	.L1
.L7:
	mov	r2, #0
	b	.L2
.L4:
	ldr	r1, .L12+8
	bl	DP_ERR
	ldr	r3, .L12+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	BAR0_MAP_REG_USDM_RAM
	.word	.LC0
	.word	EINVAL
	.size	qed_set_rxq_coalesce, .-qed_set_rxq_coalesce
	.comm	EINVAL,4,4
	.comm	BAR0_MAP_REG_USDM_RAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
