	.file	"extr_dm9601.c_dm9601_tx_fixup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dm9601_tx_fixup, @function
dm9601_tx_fixup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r9, rdi
	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, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rsi]
	mov	r8d, DWORD PTR DM_TX_OVERHEAD[rip]
	mov	esi, DWORD PTR [r9]
	lea	ebx, [rdi+r8]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	add	ebx, 1
.L2:
	test	bl, 1
	jne	.L3
	mov	eax, ebx
	cdq
	idiv	esi
	test	edx, edx
	je	.L3
	sub	ebx, r8d
	mov	r13d, ebx
	sub	r13d, edi
	mov	rdi, rbp
	call	skb_headroom@PLT
	mov	esi, DWORD PTR DM_TX_OVERHEAD[rip]
	cmp	eax, esi
	jl	.L4
	mov	rdi, rbp
	call	skb_tailroom@PLT
	cmp	eax, r13d
	jge	.L8
	mov	esi, DWORD PTR DM_TX_OVERHEAD[rip]
.L4:
	mov	ecx, r12d
	mov	rdi, rbp
	mov	edx, r13d
	call	skb_copy_expand@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	dev_kfree_skb_any@PLT
	test	r12, r12
	je	.L1
.L5:
	mov	esi, DWORD PTR DM_TX_OVERHEAD[rip]
	mov	rdi, r12
	call	__skb_push@PLT
	test	r13d, r13d
	jne	.L20
.L7:
	mov	rax, QWORD PTR 8[r12]
	mov	ecx, ebx
	sar	ecx, 8
	mov	DWORD PTR [rax], ebx
	mov	DWORD PTR 4[rax], ecx
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L8:
	.cfi_restore_state
	mov	r12, rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	movsx	rdx, DWORD PTR [r12]
	mov	rax, QWORD PTR 8[r12]
	xor	esi, esi
	lea	rdi, [rax+rdx*4]
	mov	edx, r13d
	call	memset@PLT
	mov	esi, r13d
	mov	rdi, r12
	call	__skb_put@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	dm9601_tx_fixup, .-dm9601_tx_fixup
	.comm	DM_TX_OVERHEAD,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_dm9601.c_dm9601_tx_fixup.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dm9601_tx_fixup, %function
dm9601_tx_fixup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L21
	ldr	r8, [r1]
	ldr	r10, [r7]
	mov	r6, r1
	mov	r9, r2
	ldr	r5, [r0]
	add	r4, r8, r10
	b	.L2
.L3:
	add	r4, r4, #1
.L2:
	tst	r4, #1
	bne	.L3
	mov	r1, r5
	mov	r0, r4
	bl	__aeabi_idivmod
	cmp	r1, #0
	beq	.L3
	mov	r0, r6
	bl	skb_headroom
	ldr	r1, [r7]
	sub	r4, r4, r10
	cmp	r0, r1
	sub	r8, r4, r8
	blt	.L4
	mov	r0, r6
	bl	skb_tailroom
	cmp	r0, r8
	bge	.L8
	ldr	r1, [r7]
.L4:
	mov	r3, r9
	mov	r2, r8
	mov	r0, r6
	bl	skb_copy_expand
	mov	r5, r0
	mov	r0, r6
	bl	dev_kfree_skb_any
	cmp	r5, #0
	beq	.L1
.L5:
	mov	r0, r5
	ldr	r1, [r7]
	bl	__skb_push
	cmp	r8, #0
	bne	.L20
.L7:
	ldr	r3, [r5, #4]
	asr	r2, r4, #8
	str	r4, [r3]
	str	r2, [r3, #4]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r5, r6
	b	.L5
.L20:
	ldm	r5, {r0, r3}
	mov	r2, r8
	mov	r1, #0
	add	r0, r3, r0, lsl #2
	bl	memset
	mov	r1, r8
	mov	r0, r5
	bl	__skb_put
	b	.L7
.L22:
	.align	2
.L21:
	.word	DM_TX_OVERHEAD
	.size	dm9601_tx_fixup, .-dm9601_tx_fixup
	.comm	DM_TX_OVERHEAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
