	.file	"extr_sge.c_calc_tx_descs_ofld.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	calc_tx_descs_ofld, @function
calc_tx_descs_ofld:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR WR_LEN[rip]
	cmp	QWORD PTR [rdi], rax
	jg	.L8
	mov	eax, 1
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	skb_transport_offset@PLT
	mov	rdi, rbp
	test	eax, eax
	lea	ebx, 7[rax]
	cmovns	ebx, eax
	call	skb_shinfo@PLT
	mov	rdi, rbp
	mov	r12d, DWORD PTR [rax]
	sar	ebx, 3
	call	skb_tail_pointer@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	skb_transport_header@PLT
	cmp	r13, rax
	setne	al
	movzx	eax, al
	add	r12d, eax
	mov	edi, r12d
	call	sgl_len@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	lea	rdi, [rbx+rax]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	flits_to_desc@PLT
	.cfi_endproc
.LFE0:
	.size	calc_tx_descs_ofld, .-calc_tx_descs_ofld
	.comm	WR_LEN,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_sge.c_calc_tx_descs_ofld.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_tx_descs_ofld, %function
calc_tx_descs_ofld:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L8
	mov	r0, #1
	bx	lr
.L8:
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	skb_transport_offset
	cmp	r0, #0
	add	r5, r0, #7
	movge	r5, r0
	mov	r0, r4
	bl	skb_shinfo
	mov	r3, r0
	mov	r0, r4
	ldr	r6, [r3]
	bl	skb_tail_pointer
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	skb_transport_header
	cmp	r4, r0
	addne	r6, r6, #1
	mov	r0, r6
	bl	sgl_len
	asr	r5, r5, #3
	add	r0, r0, r5
	pop	{r4, r5, r6, lr}
	b	flits_to_desc
.L10:
	.align	2
.L9:
	.word	WR_LEN
	.size	calc_tx_descs_ofld, .-calc_tx_descs_ofld
	.comm	WR_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
