	.file	"extr_gianfar.c_gfar_tx_checksum.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gfar_tx_checksum, @function
gfar_tx_checksum:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR TXFCB_DEFAULT[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	ip_hdr@PLT
	mov	rdx, QWORD PTR IPPROTO_UDP[rip]
	cmp	QWORD PTR [rax], rdx
	je	.L6
	mov	rdi, rbp
	call	tcp_hdr@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 16[rbx], eax
.L3:
	mov	rdi, rbp
	call	skb_network_offset@PLT
	sub	rax, QWORD PTR GMAC_FCB_LEN[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[rbx], rax
	call	skb_network_header_len@PLT
	mov	DWORD PTR [rbx], r12d
	mov	DWORD PTR 4[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	or	r12d, DWORD PTR TXFCB_UDP[rip]
	call	udp_hdr@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 16[rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	gfar_tx_checksum, .-gfar_tx_checksum
	.comm	TXFCB_UDP,4,4
	.comm	TXFCB_DEFAULT,4,4
	.comm	IPPROTO_UDP,8,8
	.comm	GMAC_FCB_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_gianfar.c_gfar_tx_checksum.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfar_tx_checksum, %function
gfar_tx_checksum:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, lr}
	ldr	r6, [r3]
	mov	r4, r1
	mov	r5, r0
	bl	ip_hdr
	ldr	r3, .L7+4
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L6
	mov	r0, r5
	bl	tcp_hdr
	ldr	r3, [r0]
	str	r3, [r4, #12]
.L3:
	mov	r0, r5
	bl	skb_network_offset
	mov	r3, r0
	ldr	r2, .L7+8
	mov	r0, r5
	ldr	r2, [r2]
	sub	r3, r3, r2
	str	r3, [r4, #8]
	bl	skb_network_header_len
	str	r6, [r4]
	str	r0, [r4, #4]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L7+12
	mov	r0, r5
	ldr	r3, [r3]
	orr	r6, r6, r3
	bl	udp_hdr
	ldr	r3, [r0]
	str	r3, [r4, #12]
	b	.L3
.L8:
	.align	2
.L7:
	.word	TXFCB_DEFAULT
	.word	IPPROTO_UDP
	.word	GMAC_FCB_LEN
	.word	TXFCB_UDP
	.size	gfar_tx_checksum, .-gfar_tx_checksum
	.comm	TXFCB_UDP,4,4
	.comm	TXFCB_DEFAULT,4,4
	.comm	IPPROTO_UDP,4,4
	.comm	GMAC_FCB_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
