	.file	"extr_ixgbe_main.c_ixgbe_get_headlen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ixgbe_get_headlen, @function
ixgbe_get_headlen:
.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	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ebp, DWORD PTR ETH_HLEN[rip]
	cmp	ebp, esi
	jbe	.L2
.L5:
	mov	eax, ebx
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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	edx, ebp
	mov	r14, QWORD PTR [rdi]
	mov	r12, rdi
	lea	r13, [rdi+rdx]
	mov	edi, DWORD PTR ETH_P_8021Q[rip]
	call	__constant_htons@PLT
	cmp	rax, r14
	jne	.L4
	mov	eax, DWORD PTR VLAN_HLEN[rip]
	mov	edx, ebx
	sub	edx, eax
	cmp	ebp, edx
	ja	.L5
	mov	r14, QWORD PTR 0[r13]
	add	r13, rax
.L4:
	mov	edi, DWORD PTR ETH_P_IP[rip]
	call	__constant_htons@PLT
	mov	rdx, r13
	sub	rdx, r12
	cmp	rax, r14
	jne	.L6
	mov	r15d, ebx
	lea	rax, -8[r15]
	cmp	rdx, rax
	ja	.L5
	movzx	ebp, BYTE PTR 0[r13]
	mov	eax, edx
	sal	ebp, 2
	and	ebp, 60
	cmp	ebp, 7
	jle	.L1
	mov	edi, DWORD PTR IP_OFFSET[rip]
	mov	r14d, DWORD PTR 0[r13]
	call	htons@PLT
	xor	ecx, ecx
	mov	r8d, eax
	movsx	rax, ebp
	test	r14d, r8d
	je	.L16
.L8:
	lea	rdx, 0[r13+rax]
	mov	rax, rdx
	sub	rax, r12
	cmp	DWORD PTR IPPROTO_TCP[rip], ecx
	je	.L17
	cmp	DWORD PTR IPPROTO_UDP[rip], ecx
	je	.L18
.L12:
	cmp	r15, rax
	jle	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR ETH_P_IPV6[rip]
	mov	QWORD PTR 8[rsp], rdx
	call	__constant_htons@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	r8, rax
	mov	eax, edx
	cmp	r8, r14
	jne	.L1
	mov	r15d, ebx
	lea	rax, -4[r15]
	cmp	rdx, rax
	ja	.L5
	mov	ecx, DWORD PTR 0[r13]
	mov	eax, 4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	mov	ecx, DWORD PTR 4[r13]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rcx, -4[r15]
	cmp	rax, rcx
	ja	.L5
	movzx	ecx, BYTE PTR 12[rdx]
	sar	ecx, 2
	and	ecx, 60
	cmp	ecx, 3
	jle	.L1
	movsx	rax, ecx
	add	rax, rdx
	sub	rax, r12
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rcx, -4[r15]
	cmp	rax, rcx
	ja	.L5
	lea	rax, 4[rdx]
	sub	rax, r12
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	ixgbe_get_headlen, .-ixgbe_get_headlen
	.comm	VLAN_HLEN,4,4
	.comm	IP_OFFSET,4,4
	.comm	IPPROTO_UDP,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	FCOE_HEADER_LEN,4,4
	.comm	ETH_P_IPV6,4,4
	.comm	ETH_P_IP,4,4
	.comm	ETH_P_FCOE,4,4
	.comm	ETH_P_8021Q,4,4
	.comm	ETH_HLEN,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_ixgbe_main.c_ixgbe_get_headlen.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_get_headlen, %function
ixgbe_get_headlen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r3]
	mov	r4, r1
	cmp	r7, r1
	bls	.L2
.L5:
	mov	r7, r4
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r6, r0
	ldr	r3, .L16+4
	mov	r5, r0
	ldr	r0, [r3]
	ldr	r8, [r6], r7
	bl	__constant_htons
	cmp	r0, r8
	bne	.L4
	ldr	r3, .L16+8
	ldr	r3, [r3]
	sub	r2, r4, r3
	cmp	r7, r2
	bhi	.L5
	ldr	r8, [r5, r7]
	add	r6, r6, r3
.L4:
	ldr	r3, .L16+12
	sub	r7, r6, r5
	ldr	r0, [r3]
	bl	__constant_htons
	cmp	r0, r8
	bne	.L6
	sub	r3, r4, #8
	cmp	r3, r7
	bcc	.L5
	ldrb	r8, [r6]	@ zero_extendqisi2
	lsl	r8, r8, #2
	and	r8, r8, #60
	cmp	r8, #7
	ble	.L1
	ldr	r3, .L16+16
	ldr	r7, [r6]
	ldr	r0, [r3]
	bl	htons
	tst	r7, r0
	movne	r3, #0
	beq	.L13
.L7:
	ldr	r2, .L16+20
	add	r6, r6, r8
	ldr	r2, [r2]
	sub	r7, r6, r5
	cmp	r2, r3
	beq	.L14
	ldr	r2, .L16+24
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L15
.L9:
	cmp	r7, r4
	movcs	r7, r4
	b	.L1
.L6:
	ldr	r3, .L16+28
	ldr	r0, [r3]
	bl	__constant_htons
	cmp	r0, r8
	bne	.L1
	sub	r3, r4, #4
	cmp	r3, r7
	bcc	.L5
	mov	r8, #4
	ldr	r3, [r6]
	b	.L7
.L13:
	ldr	r3, [r6, #4]
	b	.L7
.L14:
	sub	r3, r4, #4
	cmp	r3, r7
	bcc	.L5
	ldrb	r3, [r6, #12]	@ zero_extendqisi2
	asr	r3, r3, #2
	and	r3, r3, #60
	cmp	r3, #3
	ble	.L1
	add	r6, r6, r3
	sub	r7, r6, r5
	b	.L9
.L15:
	sub	r3, r4, #4
	cmp	r3, r7
	bcc	.L5
	add	r6, r6, #4
	sub	r7, r6, r5
	b	.L9
.L17:
	.align	2
.L16:
	.word	ETH_HLEN
	.word	ETH_P_8021Q
	.word	VLAN_HLEN
	.word	ETH_P_IP
	.word	IP_OFFSET
	.word	IPPROTO_TCP
	.word	IPPROTO_UDP
	.word	ETH_P_IPV6
	.size	ixgbe_get_headlen, .-ixgbe_get_headlen
	.comm	VLAN_HLEN,4,4
	.comm	IP_OFFSET,4,4
	.comm	IPPROTO_UDP,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	FCOE_HEADER_LEN,4,4
	.comm	ETH_P_IPV6,4,4
	.comm	ETH_P_IP,4,4
	.comm	ETH_P_FCOE,4,4
	.comm	ETH_P_8021Q,4,4
	.comm	ETH_HLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
