	.file	"extr_nsh.c_nsh_push.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nsh_push
	.type	nsh_push, @function
nsh_push:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	nsh_hdr_len@PLT
	cmp	QWORD PTR 16[rbp], 0
	mov	rbx, QWORD PTR TUN_P_ETHERNET[rip]
	mov	r12, rax
	je	.L9
.L3:
	mov	rsi, r12
	mov	rdi, rbp
	call	skb_cow_head@PLT
	test	rax, rax
	js	.L10
	mov	rsi, r12
	mov	rdi, rbp
	call	skb_push@PLT
	mov	r14, QWORD PTR 8[rbp]
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, r14
	call	memcpy@PLT
	mov	QWORD PTR [r14], rbx
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, rbp
	call	skb_postpush_rcsum@PLT
	mov	edi, DWORD PTR ETH_P_NSH[rip]
	call	htons@PLT
	mov	rdi, rbp
	mov	DWORD PTR 0[rbp], eax
	call	skb_reset_mac_header@PLT
	mov	rdi, rbp
	call	skb_reset_network_header@PLT
	mov	rdi, rbp
	call	skb_reset_mac_len@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	tun_p_from_eth_p@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR EAFNOSUPPORT[rip]
	neg	eax
	test	rbx, rbx
	jne	.L3
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nsh_push, .-nsh_push
	.comm	TUN_P_ETHERNET,8,8
	.comm	ETH_P_NSH,4,4
	.comm	ENOMEM,4,4
	.comm	EAFNOSUPPORT,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_nsh.c_nsh_push.c"
	.text
	.align	2
	.global	nsh_push
	.syntax unified
	.arm
	.fpu softvfp
	.type	nsh_push, %function
nsh_push:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r6, r1
	bl	nsh_hdr_len
	ldr	r3, [r4, #8]
	mov	r5, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L9
	ldr	r7, [r3]
.L3:
	mov	r1, r5
	mov	r0, r4
	bl	skb_cow_head
	cmp	r0, #0
	blt	.L8
	mov	r1, r5
	mov	r0, r4
	bl	skb_push
	ldr	r3, [r4, #4]
	mov	r1, r6
	mov	r0, r3
	mov	r2, r5
	bl	memcpy
	mov	r2, r5
	mov	r1, r0
	str	r7, [r0]
	mov	r0, r4
	bl	skb_postpush_rcsum
	ldr	r3, .L9+4
	ldr	r0, [r3]
	bl	htons
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4]
	bl	skb_reset_mac_header
	mov	r0, r4
	bl	skb_reset_network_header
	mov	r0, r4
	bl	skb_reset_mac_len
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r4]
	bl	tun_p_from_eth_p
	subs	r7, r0, #0
	bne	.L3
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	TUN_P_ETHERNET
	.word	ETH_P_NSH
	.word	ENOMEM
	.word	EAFNOSUPPORT
	.size	nsh_push, .-nsh_push
	.comm	TUN_P_ETHERNET,4,4
	.comm	ETH_P_NSH,4,4
	.comm	ENOMEM,4,4
	.comm	EAFNOSUPPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
