	.file	"extr_network.c_netconn_send.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	netconn_send, @function
netconn_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	mov	rax, QWORD PTR ERR_VAL[rip]
	test	rdi, rdi
	je	.L1
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR ERR_OK[rip]
	mov	rbx, rdi
	je	.L8
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR MEMP_API_MSG[rip]
	mov	rbp, rsi
	call	memp_malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR API_LIB_DEBUG[rip]
	movsx	rsi, DWORD PTR [rax]
	call	LWIP_DEBUGF@PLT
	mov	eax, DWORD PTR APIMSG_SEND[rip]
	mov	QWORD PTR 8[r12], rbx
	mov	rdi, r12
	mov	DWORD PTR 16[r12], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR [r12], rax
	call	apimsg_post@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR MQ_MSG_BLOCK[rip]
	mov	rsi, rsp
	call	MQ_Receive@PLT
	mov	edi, DWORD PTR MEMP_API_MSG[rip]
	mov	rsi, r12
	call	memp_free@PLT
	mov	rax, QWORD PTR [rbx]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR ERR_MEM[rip]
	mov	QWORD PTR [rbx], rax
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	netconn_send, .-netconn_send
	.comm	MQ_MSG_BLOCK,4,4
	.comm	MEMP_API_MSG,4,4
	.comm	ERR_VAL,8,8
	.comm	ERR_OK,8,8
	.comm	ERR_MEM,8,8
	.comm	API_LIB_DEBUG,4,4
	.comm	APIMSG_SEND,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_network.c_netconn_send.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	netconn_send, %function
netconn_send:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L12
	sub	sp, sp, #12
	subs	r4, r0, #0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
	beq	.L8
	ldr	r3, .L12+4
	ldr	r0, [r4]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L9
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r7, .L12+8
	mov	r6, r1
	ldr	r0, [r7]
	bl	memp_malloc
	subs	r5, r0, #0
	beq	.L11
	ldr	r2, [r6]
	ldr	r3, .L12+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	LWIP_DEBUGF
	ldr	r3, .L12+16
	ldr	r2, [r6]
	ldr	r3, [r3]
	mov	r0, r5
	stm	r5, {r2, r4}
	str	r3, [r5, #8]
	bl	apimsg_post
	ldr	r3, .L12+20
	mov	r1, sp
	ldr	r2, [r3]
	ldr	r0, [r4, #4]
	bl	MQ_Receive
	mov	r1, r5
	ldr	r0, [r7]
	bl	memp_free
	ldr	r0, [r4]
	b	.L1
.L11:
	ldr	r3, .L12+24
	ldr	r0, [r3]
	str	r0, [r4]
	b	.L1
.L8:
	ldr	r3, .L12+28
	ldr	r0, [r3]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	ERR_OK
	.word	MEMP_API_MSG
	.word	API_LIB_DEBUG
	.word	APIMSG_SEND
	.word	MQ_MSG_BLOCK
	.word	ERR_MEM
	.word	ERR_VAL
	.size	netconn_send, .-netconn_send
	.comm	MQ_MSG_BLOCK,4,4
	.comm	MEMP_API_MSG,4,4
	.comm	ERR_VAL,4,4
	.comm	ERR_OK,4,4
	.comm	ERR_MEM,4,4
	.comm	API_LIB_DEBUG,4,4
	.comm	APIMSG_SEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
