	.file	"extr_tcpip.c_tcpip_input.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tcpip_input
	.type	tcpip_input, @function
tcpip_input:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	rdi, mbox[rip]
	call	sys_mbox_valid@PLT
	mov	r8, rax
	mov	rax, QWORD PTR ERR_VAL[rip]
	test	r8, r8
	jne	.L9
.L1:
	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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR MEMP_TCPIP_MSG_INPKT[rip]
	call	memp_malloc@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L3
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, QWORD PTR ERR_MEM[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR TCPIP_MSG_INPKT[rip]
	mov	QWORD PTR 8[rbp], rbx
	mov	rsi, rbp
	lea	rdi, mbox[rip]
	mov	QWORD PTR 0[rbp], r12
	mov	DWORD PTR 16[rbp], eax
	call	sys_mbox_trypost@PLT
	mov	r8, rax
	mov	rax, QWORD PTR ERR_OK[rip]
	cmp	r8, rax
	je	.L1
	mov	edi, DWORD PTR MEMP_TCPIP_MSG_INPKT[rip]
	mov	rsi, rbp
	call	memp_free@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	tcpip_input, .-tcpip_input
	.comm	mbox,4,4
	.comm	TCPIP_MSG_INPKT,4,4
	.comm	TCPIP_DEBUG,4,4
	.comm	NETIF_FLAG_ETHERNET,4,4
	.comm	NETIF_FLAG_ETHARP,4,4
	.comm	MEMP_TCPIP_MSG_INPKT,4,4
	.comm	ERR_VAL,8,8
	.comm	ERR_OK,8,8
	.comm	ERR_MEM,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_tcpip.c_tcpip_input.c"
	.text
	.align	2
	.global	tcpip_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcpip_input, %function
tcpip_input:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, .L9
	mov	r4, r1
	bl	sys_mbox_valid
	cmp	r0, #0
	bne	.L8
	ldr	r3, .L9+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r7, .L9+8
	ldr	r0, [r7]
	bl	memp_malloc
	subs	r6, r0, #0
	bne	.L3
.L6:
	ldr	r3, .L9+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L9+16
	mov	r1, r6
	ldr	r3, [r3]
	ldr	r0, .L9
	str	r3, [r6, #8]
	str	r5, [r6, #4]
	str	r4, [r6]
	bl	sys_mbox_trypost
	mov	r3, r0
	ldr	r2, .L9+20
	ldr	r0, [r2]
	cmp	r3, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r1, r6
	ldr	r0, [r7]
	bl	memp_free
	b	.L6
.L10:
	.align	2
.L9:
	.word	mbox
	.word	ERR_VAL
	.word	MEMP_TCPIP_MSG_INPKT
	.word	ERR_MEM
	.word	TCPIP_MSG_INPKT
	.word	ERR_OK
	.size	tcpip_input, .-tcpip_input
	.comm	mbox,4,4
	.comm	TCPIP_MSG_INPKT,4,4
	.comm	TCPIP_DEBUG,4,4
	.comm	NETIF_FLAG_ETHERNET,4,4
	.comm	NETIF_FLAG_ETHARP,4,4
	.comm	MEMP_TCPIP_MSG_INPKT,4,4
	.comm	ERR_VAL,4,4
	.comm	ERR_OK,4,4
	.comm	ERR_MEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
