	.file	"extr_parse_varlen.c_handle_ingress.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	handle_ingress
	.type	handle_ingress, @function
handle_ingress:
.LFB0:
	.cfi_startproc
	endbr64
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 8[rdi]
	mov	r12, QWORD PTR [rdi]
	lea	rax, 4[rbp]
	cmp	r12, rax
	jb	.L3
	mov	ebx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR ETH_P_8021Q[rip]
	cmp	eax, ebx
	je	.L4
	cmp	DWORD PTR ETH_P_8021AD[rip], ebx
	mov	r13d, 4
	je	.L4
.L5:
	mov	edi, DWORD PTR ETH_P_IP[rip]
	call	htons@PLT
	cmp	eax, ebx
	je	.L13
	mov	edi, DWORD PTR ETH_P_IPV6[rip]
	call	htons@PLT
	cmp	eax, ebx
	je	.L14
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L4:
	.cfi_restore_state
	lea	rdx, 8[rbp]
	cmp	r12, rdx
	jb	.L3
	mov	ebx, DWORD PTR 4[rbp]
	cmp	eax, ebx
	jne	.L15
.L7:
	lea	rax, 12[rbp]
	cmp	r12, rax
	jb	.L3
	mov	ebx, DWORD PTR 8[rbp]
	mov	r13d, 12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	cmp	DWORD PTR ETH_P_8021AD[rip], ebx
	je	.L7
	mov	r13d, 8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdx, r12
	mov	esi, r13d
	mov	rdi, rbp
	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
	jmp	parse_ipv4@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdx, r12
	mov	esi, r13d
	mov	rdi, rbp
	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
	jmp	parse_ipv6@PLT
	.cfi_endproc
.LFE0:
	.size	handle_ingress, .-handle_ingress
	.comm	ETH_P_IPV6,4,4
	.comm	ETH_P_IP,4,4
	.comm	ETH_P_8021Q,4,4
	.comm	ETH_P_8021AD,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_parse_varlen.c_handle_ingress.c"
	.text
	.align	2
	.global	handle_ingress
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_ingress, %function
handle_ingress:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0, #4]
	ldr	r6, [r0]
	add	r3, r4, #4
	cmp	r6, r3
	bcc	.L3
	ldr	r3, .L16
	ldr	r5, [r4]
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L4
	ldr	r2, .L16+4
	ldr	r2, [r2]
	cmp	r2, r5
	movne	r7, #4
	beq	.L4
.L5:
	ldr	r3, .L16+8
	ldr	r0, [r3]
	bl	htons
	cmp	r0, r5
	beq	.L13
	ldr	r3, .L16+12
	ldr	r0, [r3]
	bl	htons
	cmp	r0, r5
	beq	.L14
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	add	r2, r4, #8
	cmp	r6, r2
	bcc	.L3
	ldr	r5, [r4, #4]
	cmp	r3, r5
	bne	.L15
.L7:
	add	r3, r4, #12
	cmp	r6, r3
	bcc	.L3
	mov	r7, #12
	ldr	r5, [r4, #8]
	b	.L5
.L15:
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L7
	mov	r7, #8
	b	.L5
.L13:
	mov	r2, r6
	mov	r1, r7
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	parse_ipv4
.L14:
	mov	r2, r6
	mov	r1, r7
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	parse_ipv6
.L17:
	.align	2
.L16:
	.word	ETH_P_8021Q
	.word	ETH_P_8021AD
	.word	ETH_P_IP
	.word	ETH_P_IPV6
	.size	handle_ingress, .-handle_ingress
	.comm	ETH_P_IPV6,4,4
	.comm	ETH_P_IP,4,4
	.comm	ETH_P_8021Q,4,4
	.comm	ETH_P_8021AD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
