	.file	"extr_tehuti.c_bdx_set_coalesce.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bdx_set_coalesce, @function
bdx_set_coalesce:
.LFB0:
	.cfi_startproc
	endbr64
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	netdev_priv@PLT
	mov	ecx, DWORD PTR INT_COAL_MULT[rip]
	mov	rbp, rax
	mov	eax, DWORD PTR [rbx]
	cdq
	idiv	ecx
	mov	r12d, eax
	mov	eax, DWORD PTR 4[rbx]
	cdq
	idiv	ecx
	cmp	r12d, 32767
	jg	.L2
	mov	r13d, eax
	cmp	eax, 32767
	jg	.L2
	movsx	rdi, DWORD PTR PCK_TH_MULT[rip]
	movsx	rax, DWORD PTR 8[rbx]
	xor	edx, edx
	lea	rax, -1[rdi+rax*4]
	mov	rsi, rdi
	div	rdi
	mov	edi, DWORD PTR BDX_TXF_DESC_SZ[rip]
	imul	edi, DWORD PTR 12[rbx]
	mov	r14, rax
	lea	eax, -1[rsi+rdi]
	cdq
	idiv	esi
	mov	r15d, eax
	cmp	r14d, 15
	jg	.L2
	cmp	eax, 15
	jg	.L2
	mov	rdi, QWORD PTR 8[rbp]
	call	GET_RXF_TH@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	ebx, eax
	call	GET_INT_COAL_RC@PLT
	mov	ecx, r14d
	mov	edx, ebx
	mov	edi, r12d
	mov	esi, eax
	call	INT_REG_VAL@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	r14, rax
	call	GET_INT_COAL_RC@PLT
	mov	ecx, r15d
	mov	edi, r13d
	xor	edx, edx
	mov	esi, eax
	call	INT_REG_VAL@PLT
	mov	QWORD PTR 8[rbp], r14
	mov	rdx, r14
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], rax
	mov	esi, DWORD PTR regRDINTCM0[rip]
	mov	r12, rax
	call	WRITE_REG@PLT
	mov	esi, DWORD PTR regTDINTCM0[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	WRITE_REG@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.cfi_endproc
.LFE0:
	.size	bdx_set_coalesce, .-bdx_set_coalesce
	.comm	regTDINTCM0,4,4
	.comm	regRDINTCM0,4,4
	.comm	PCK_TH_MULT,4,4
	.comm	INT_COAL_MULT,4,4
	.comm	EINVAL,4,4
	.comm	BDX_TXF_DESC_SZ,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_tehuti.c_bdx_set_coalesce.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bdx_set_coalesce, %function
bdx_set_coalesce:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	bl	netdev_priv
	ldr	r3, .L7
	mov	r5, r0
	ldr	r6, [r3]
	ldr	r0, [r4]
	mov	r1, r6
	bl	__aeabi_idiv
	mov	r1, r6
	mov	r7, r0
	ldr	r0, [r4, #4]
	bl	__aeabi_idiv
	cmp	r0, #32768
	cmplt	r7, #32768
	bge	.L2
	ldr	r3, .L7+4
	mov	r6, r0
	ldr	r8, [r3]
	ldr	r0, [r4, #8]
	sub	r3, r8, #1
	mov	r1, r8
	add	r0, r3, r0, lsl #2
	bl	__aeabi_uidiv
	ldr	r3, .L7+8
	ldr	r1, [r4, #12]
	ldr	r2, [r3]
	mov	r9, r0
	mla	r2, r1, r2, r8
	mov	r1, r8
	sub	r0, r2, #1
	bl	__aeabi_idiv
	cmp	r0, #15
	cmple	r9, #15
	mov	r8, r0
	movgt	r4, #1
	movle	r4, #0
	ble	.L3
.L2:
	ldr	r3, .L7+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r0, [r5, #4]
	bl	GET_INT_COAL_RC
	mov	r10, r0
	ldr	r0, [r5, #4]
	bl	GET_RXF_TH
	mov	r3, r9
	mov	r2, r0
	mov	r1, r10
	mov	r0, r7
	bl	INT_REG_VAL
	mov	r7, r0
	ldr	r0, [r5]
	bl	GET_INT_COAL_RC
	mov	r3, r8
	mov	r1, r0
	mov	r2, r4
	mov	r0, r6
	bl	INT_REG_VAL
	mov	r6, r0
	ldr	r3, .L7+16
	mov	r2, r7
	ldr	r1, [r3]
	str	r0, [r5]
	str	r7, [r5, #4]
	mov	r0, r5
	bl	WRITE_REG
	ldr	r3, .L7+20
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r3]
	bl	WRITE_REG
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	INT_COAL_MULT
	.word	PCK_TH_MULT
	.word	BDX_TXF_DESC_SZ
	.word	EINVAL
	.word	regRDINTCM0
	.word	regTDINTCM0
	.size	bdx_set_coalesce, .-bdx_set_coalesce
	.comm	regTDINTCM0,4,4
	.comm	regRDINTCM0,4,4
	.comm	PCK_TH_MULT,4,4
	.comm	INT_COAL_MULT,4,4
	.comm	EINVAL,4,4
	.comm	BDX_TXF_DESC_SZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
