	.file	"352964.c"
	.intel_syntax noprefix
	.text
	.globl	socket_ipv4_multicast_memberships
	.bss
	.align 32
	.type	socket_ipv4_multicast_memberships, @object
	.size	socket_ipv4_multicast_memberships, 912
socket_ipv4_multicast_memberships:
	.zero	912
	.local	sockets
	.comm	sockets,1216,32
	.local	events
	.comm	events,1216,32
	.local	select_cb_list
	.comm	select_cb_list,8,8
	.local	select_cb_ctr
	.comm	select_cb_ctr,4,4
	.text
	.globl	lwip_socket_thread_init
	.type	lwip_socket_thread_init, @function
lwip_socket_thread_init:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	lwip_socket_thread_init, .-lwip_socket_thread_init
	.globl	lwip_socket_thread_cleanup
	.type	lwip_socket_thread_cleanup, @function
lwip_socket_thread_cleanup:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	lwip_socket_thread_cleanup, .-lwip_socket_thread_cleanup
	.type	get_socket, @function
get_socket:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	js	.L4
	cmp	DWORD PTR -20[rbp], 37
	jle	.L5
.L4:
	call	__errno@PLT
	mov	DWORD PTR [rax], 9
	mov	eax, 0
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L7
	call	__errno@PLT
	mov	DWORD PTR [rax], 9
	mov	eax, 0
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -8[rbp]
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	get_socket, .-get_socket
	.type	tryget_event, @function
tryget_event:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	sub	DWORD PTR -4[rbp], 38
	cmp	DWORD PTR -4[rbp], 0
	js	.L9
	cmp	DWORD PTR -4[rbp], 37
	jle	.L10
.L9:
	mov	eax, 0
	jmp	.L11
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, events[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L12
	mov	eax, 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, events[rip]
	add	rax, rdx
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	tryget_event, .-tryget_event
	.type	tryget_socket, @function
tryget_socket:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	js	.L14
	cmp	DWORD PTR -4[rbp], 37
	jle	.L15
.L14:
	mov	eax, 0
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L17
	mov	eax, 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip]
	add	rax, rdx
.L16:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	tryget_socket, .-tryget_socket
	.type	alloc_socket, @function
alloc_socket:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L19
.L25:
	call	sys_arch_protect@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L20
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rdx, sockets[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip+8]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip+16]
	mov	WORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip+18]
	mov	WORD PTR [rdx+rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	jne	.L21
	cmp	DWORD PTR -28[rbp], 0
	je	.L22
.L21:
	mov	eax, 1
	jmp	.L23
.L22:
	mov	eax, 0
.L23:
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip+20]
	mov	WORD PTR [rdx+rax], cx
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip+22]
	mov	WORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip+24]
	mov	BYTE PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip+25]
	mov	BYTE PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L24
.L20:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	add	DWORD PTR -12[rbp], 1
.L19:
	cmp	DWORD PTR -12[rbp], 37
	jle	.L25
	mov	eax, -1
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	alloc_socket, .-alloc_socket
	.type	free_socket, @function
free_socket:
.LFB29:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR 24[rax], 0
	call	sys_arch_protect@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	cmp	QWORD PTR -16[rbp], 0
	je	.L29
	cmp	DWORD PTR -28[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pbuf_free@PLT
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	netbuf_delete@PLT
.L29:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	free_socket, .-free_socket
	.globl	lwip_accept
	.type	lwip_accept, @function
lwip_accept:
.LFB30:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 152
	.cfi_offset 3, -24
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	QWORD PTR -152[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	WORD PTR -122[rbp], 0
	mov	eax, DWORD PTR -132[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L31
	mov	eax, -1
	jmp	.L46
.L31:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 68[rax]
	movzx	eax, al
	and	eax, 2
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR 18[rax]
	test	ax, ax
	jg	.L33
	mov	DWORD PTR -120[rbp], 11
	mov	eax, DWORD PTR -120[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -120[rbp], 0
	je	.L34
	call	__errno@PLT
	mov	edx, DWORD PTR -120[rbp]
	mov	DWORD PTR [rax], edx
.L34:
	mov	eax, -1
	jmp	.L46
.L33:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	netconn_accept@PLT
	mov	BYTE PTR -123[rbp], al
	cmp	BYTE PTR -123[rbp], 0
	je	.L35
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	je	.L36
	mov	DWORD PTR -92[rbp], 95
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -92[rbp], 0
	je	.L37
	call	__errno@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L37
.L36:
	cmp	BYTE PTR -123[rbp], -15
	jne	.L38
	mov	DWORD PTR -96[rbp], 22
	mov	eax, DWORD PTR -96[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -96[rbp], 0
	je	.L37
	call	__errno@PLT
	mov	edx, DWORD PTR -96[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L37
.L38:
	movsx	eax, BYTE PTR -123[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -100[rbp], 0
	je	.L37
	call	__errno@PLT
	mov	edx, DWORD PTR -100[rbp]
	mov	DWORD PTR [rax], edx
.L37:
	mov	eax, -1
	jmp	.L46
.L35:
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	alloc_socket
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], -1
	jne	.L39
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	netconn_delete@PLT
	mov	DWORD PTR -104[rbp], 23
	mov	eax, DWORD PTR -104[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -104[rbp], 0
	je	.L40
	call	__errno@PLT
	mov	edx, DWORD PTR -104[rbp]
	mov	DWORD PTR [rax], edx
.L40:
	mov	eax, -1
	jmp	.L46
.L39:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip]
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	call	sys_arch_protect@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 18[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 48[rax]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	sub	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	WORD PTR 18[rax], dx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -116[rbp]
	mov	DWORD PTR 48[rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	cmp	QWORD PTR -144[rbp], 0
	je	.L41
	mov	rax, QWORD PTR -88[rbp]
	lea	rdx, -122[rbp]
	lea	rsi, -80[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	netconn_getaddr@PLT
	mov	BYTE PTR -123[rbp], al
	cmp	BYTE PTR -123[rbp], 0
	je	.L42
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	netconn_delete@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	free_socket
	movsx	eax, BYTE PTR -123[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -112[rbp], eax
	mov	eax, DWORD PTR -112[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -112[rbp], 0
	je	.L43
	call	__errno@PLT
	mov	edx, DWORD PTR -112[rbp]
	mov	DWORD PTR [rax], edx
.L43:
	mov	eax, -1
	jmp	.L46
.L42:
	lea	rax, -48[rbp]
	mov	BYTE PTR [rax], 24
	lea	rax, -48[rbp]
	mov	BYTE PTR 1[rax], 2
	movzx	eax, WORD PTR -122[rbp]
	movzx	eax, ax
	lea	rbx, -48[rbp]
	mov	edi, eax
	call	lwip_htons@PLT
	mov	WORD PTR 2[rbx], ax
	lea	rax, -48[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 8[rax], rdx
	lea	rax, -48[rbp]
	add	rax, 16
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -48[rbp]
	movzx	eax, al
	cmp	rdx, rax
	jbe	.L44
	movzx	eax, BYTE PTR -48[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR [rax], rdx
.L44:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
.L41:
	mov	DWORD PTR -108[rbp], 0
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -108[rbp], 0
	je	.L45
	call	__errno@PLT
	mov	edx, DWORD PTR -108[rbp]
	mov	DWORD PTR [rax], edx
.L45:
	mov	eax, DWORD PTR -116[rbp]
.L46:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	lwip_accept, .-lwip_accept
	.section	.rodata
.LC0:
	.string	"lwip_bind: invalid address"
	.text
	.globl	lwip_bind
	.type	lwip_bind, @function
lwip_bind:
.LFB31:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L49
	mov	eax, -1
	jmp	.L57
.L49:
	cmp	QWORD PTR -72[rbp], 24
	jne	.L51
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 2
	jne	.L51
	mov	rax, QWORD PTR -64[rbp]
	and	eax, 3
	test	eax, eax
	je	.L52
.L51:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	bk_printf@PLT
	mov	edi, -16
	call	err_to_errno@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -28[rbp], 0
	je	.L53
	call	__errno@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
.L53:
	mov	eax, -1
	jmp	.L57
.L52:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	lwip_htons@PLT
	mov	WORD PTR -38[rbp], ax
	movzx	edx, WORD PTR -38[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	netconn_bind@PLT
	mov	BYTE PTR -39[rbp], al
	cmp	BYTE PTR -39[rbp], 0
	je	.L54
	movsx	eax, BYTE PTR -39[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -32[rbp], 0
	je	.L55
	call	__errno@PLT
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
.L55:
	mov	eax, -1
	jmp	.L57
.L54:
	mov	DWORD PTR -36[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -36[rbp], 0
	je	.L56
	call	__errno@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
.L56:
	mov	eax, 0
.L57:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	lwip_bind, .-lwip_bind
	.globl	lwip_close
	.type	lwip_close, @function
lwip_close:
.LFB32:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	tryget_event
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L60
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	eax, 0
	jmp	.L61
.L60:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L62
	mov	eax, -1
	jmp	.L61
.L62:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L63
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	sete	al
	movzx	eax, al
	mov	DWORD PTR -24[rbp], eax
.L63:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	lwip_socket_drop_registered_memberships
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	netconn_delete@PLT
	mov	BYTE PTR -25[rbp], al
	cmp	BYTE PTR -25[rbp], 0
	je	.L64
	movsx	eax, BYTE PTR -25[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -20[rbp], 0
	je	.L65
	call	__errno@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
.L65:
	mov	eax, -1
	jmp	.L61
.L64:
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	free_socket
	mov	eax, 0
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	lwip_close, .-lwip_close
	.section	.rodata
.LC1:
	.string	"lwip_connect: invalid address"
	.text
	.globl	lwip_connect
	.type	lwip_connect, @function
lwip_connect:
.LFB33:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L67
	mov	eax, -1
	jmp	.L68
.L67:
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR 1[rax]
	test	al, al
	jne	.L69
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	netconn_disconnect@PLT
	mov	BYTE PTR -39[rbp], al
	jmp	.L70
.L69:
	cmp	QWORD PTR -72[rbp], 24
	jne	.L71
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR 1[rax]
	test	al, al
	je	.L72
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 2
	jne	.L71
.L72:
	mov	rax, QWORD PTR -64[rbp]
	and	eax, 3
	test	eax, eax
	je	.L73
.L71:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	bk_printf@PLT
	mov	edi, -16
	call	err_to_errno@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -36[rbp], 0
	je	.L74
	call	__errno@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
.L74:
	mov	eax, -1
	jmp	.L68
.L73:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	lwip_htons@PLT
	mov	WORD PTR -38[rbp], ax
	movzx	edx, WORD PTR -38[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	netconn_connect@PLT
	mov	BYTE PTR -39[rbp], al
.L70:
	cmp	BYTE PTR -39[rbp], 0
	je	.L75
	movsx	eax, BYTE PTR -39[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -28[rbp], 0
	je	.L76
	call	__errno@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
.L76:
	mov	eax, -1
	jmp	.L68
.L75:
	mov	DWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -32[rbp], 0
	je	.L77
	call	__errno@PLT
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
.L77:
	mov	eax, 0
.L68:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	lwip_connect, .-lwip_connect
	.globl	lwip_listen
	.type	lwip_listen, @function
lwip_listen:
.LFB34:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L80
	mov	eax, -1
	jmp	.L81
.L80:
	cmp	DWORD PTR -40[rbp], 254
	jg	.L82
	mov	eax, 0
	cmp	DWORD PTR -40[rbp], 0
	cmovns	eax, DWORD PTR -40[rbp]
	jmp	.L83
.L82:
	mov	eax, 255
.L83:
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	netconn_listen_with_backlog@PLT
	mov	BYTE PTR -21[rbp], al
	cmp	BYTE PTR -21[rbp], 0
	je	.L84
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	je	.L85
	mov	DWORD PTR -12[rbp], 95
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -12[rbp], 0
	je	.L86
	call	__errno@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
.L86:
	mov	eax, -1
	jmp	.L81
.L85:
	movsx	eax, BYTE PTR -21[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -16[rbp], 0
	je	.L87
	call	__errno@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L87:
	mov	eax, -1
	jmp	.L81
.L84:
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -20[rbp], 0
	je	.L88
	call	__errno@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
.L88:
	mov	eax, 0
.L81:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	lwip_listen, .-lwip_listen
	.globl	lwip_recvfrom
	.type	lwip_recvfrom, @function
lwip_recvfrom:
.LFB35:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 168
	.cfi_offset 3, -24
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	DWORD PTR -136[rbp], edx
	mov	DWORD PTR -148[rbp], ecx
	mov	QWORD PTR -160[rbp], r8
	mov	QWORD PTR -168[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -88[rbp], 0
	mov	DWORD PTR -112[rbp], 0
	mov	BYTE PTR -120[rbp], 0
	mov	eax, DWORD PTR -132[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L90
	mov	eax, -1
	jmp	.L123
.L90:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L92
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L93
.L92:
	mov	eax, DWORD PTR -148[rbp]
	and	eax, 8
	test	eax, eax
	jne	.L94
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 68[rax]
	movzx	eax, al
	and	eax, 2
	test	eax, eax
	je	.L95
.L94:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR 18[rax]
	test	ax, ax
	jg	.L95
	cmp	DWORD PTR -112[rbp], 0
	jle	.L96
	mov	DWORD PTR -104[rbp], 0
	mov	eax, DWORD PTR -104[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -104[rbp], 0
	je	.L97
	call	__errno@PLT
	mov	edx, DWORD PTR -104[rbp]
	mov	DWORD PTR [rax], edx
.L97:
	mov	eax, DWORD PTR -112[rbp]
	jmp	.L123
.L96:
	mov	DWORD PTR -108[rbp], 11
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -108[rbp], 0
	je	.L98
	call	__errno@PLT
	mov	edx, DWORD PTR -108[rbp]
	mov	DWORD PTR [rax], edx
.L98:
	mov	eax, -1
	jmp	.L123
.L95:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	jne	.L99
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	netconn_recv_tcp_pbuf@PLT
	mov	BYTE PTR -119[rbp], al
	jmp	.L100
.L99:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	netconn_recv@PLT
	mov	BYTE PTR -119[rbp], al
.L100:
	cmp	BYTE PTR -119[rbp], 0
	je	.L101
	cmp	DWORD PTR -112[rbp], 0
	jle	.L102
	cmp	BYTE PTR -119[rbp], -15
	jne	.L103
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	event_callback
.L103:
	mov	DWORD PTR -96[rbp], 0
	mov	eax, DWORD PTR -96[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -96[rbp], 0
	je	.L104
	call	__errno@PLT
	mov	edx, DWORD PTR -96[rbp]
	mov	DWORD PTR [rax], edx
.L104:
	mov	eax, DWORD PTR -112[rbp]
	jmp	.L123
.L102:
	movsx	eax, BYTE PTR -119[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -100[rbp], 0
	je	.L105
	call	__errno@PLT
	mov	edx, DWORD PTR -100[rbp]
	mov	DWORD PTR [rax], edx
.L105:
	cmp	BYTE PTR -119[rbp], -15
	jne	.L106
	mov	eax, 0
	jmp	.L123
.L106:
	mov	eax, -1
	jmp	.L123
.L101:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 8[rax], rdx
.L93:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	jne	.L107
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -64[rbp], rax
	jmp	.L108
.L107:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -64[rbp], rax
.L108:
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 16[rax]
	mov	WORD PTR -114[rbp], ax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR 16[rax]
	sub	WORD PTR -114[rbp], ax
	movzx	eax, WORD PTR -114[rbp]
	cmp	DWORD PTR -136[rbp], eax
	jbe	.L109
	movzx	eax, WORD PTR -114[rbp]
	mov	WORD PTR -116[rbp], ax
	jmp	.L110
.L109:
	mov	eax, DWORD PTR -136[rbp]
	mov	WORD PTR -116[rbp], ax
.L110:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR 16[rax]
	movzx	ecx, ax
	movzx	edx, WORD PTR -116[rbp]
	mov	eax, DWORD PTR -112[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -144[rbp]
	add	rsi, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	pbuf_copy_partial@PLT
	movzx	eax, WORD PTR -116[rbp]
	add	DWORD PTR -112[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	jne	.L111
	movzx	eax, WORD PTR -116[rbp]
	sub	DWORD PTR -136[rbp], eax
	cmp	DWORD PTR -136[rbp], 0
	je	.L112
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR 21[rax]
	movzx	eax, al
	and	eax, 1
	test	eax, eax
	jne	.L112
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR 18[rax]
	test	ax, ax
	jle	.L112
	mov	eax, DWORD PTR -148[rbp]
	and	eax, 1
	test	eax, eax
	je	.L113
.L112:
	mov	BYTE PTR -120[rbp], 1
	jmp	.L113
.L111:
	mov	BYTE PTR -120[rbp], 1
.L113:
	cmp	BYTE PTR -120[rbp], 0
	je	.L114
	cmp	QWORD PTR -160[rbp], 0
	je	.L114
	cmp	QWORD PTR -168[rbp], 0
	je	.L114
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	jne	.L115
	lea	rax, -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -118[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	netconn_getaddr@PLT
	jmp	.L116
.L115:
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, WORD PTR 24[rax]
	mov	WORD PTR -118[rbp], ax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 16
	mov	QWORD PTR -72[rbp], rax
.L116:
	lea	rax, -48[rbp]
	mov	BYTE PTR [rax], 24
	lea	rax, -48[rbp]
	mov	BYTE PTR 1[rax], 2
	movzx	eax, WORD PTR -118[rbp]
	movzx	eax, ax
	lea	rbx, -48[rbp]
	mov	edi, eax
	call	lwip_htons@PLT
	mov	WORD PTR 2[rbx], ax
	lea	rax, -48[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR 8[rax], rdx
	lea	rax, -48[rbp]
	add	rax, 16
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -48[rbp]
	movzx	eax, al
	cmp	rdx, rax
	jbe	.L117
	movzx	eax, BYTE PTR -48[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR [rax], rdx
.L117:
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
.L114:
	mov	eax, DWORD PTR -148[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L118
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	jne	.L119
	movzx	eax, WORD PTR -114[rbp]
	movzx	edx, WORD PTR -116[rbp]
	sub	eax, edx
	test	eax, eax
	jle	.L119
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	movzx	edx, WORD PTR 16[rax]
	movzx	eax, WORD PTR -116[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	WORD PTR 16[rax], dx
	jmp	.L118
.L119:
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	WORD PTR 16[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	jne	.L120
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	pbuf_free@PLT
	jmp	.L121
.L120:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	netbuf_delete@PLT
.L121:
	mov	QWORD PTR -88[rbp], 0
.L118:
	cmp	BYTE PTR -120[rbp], 0
	je	.L90
	mov	DWORD PTR -92[rbp], 0
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -92[rbp], 0
	je	.L122
	call	__errno@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	DWORD PTR [rax], edx
.L122:
	mov	eax, DWORD PTR -112[rbp]
.L123:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L124
	call	__stack_chk_fail@PLT
.L124:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	lwip_recvfrom, .-lwip_recvfrom
	.globl	lwip_read
	.type	lwip_read, @function
lwip_read:
.LFB36:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	mov	edx, DWORD PTR -8[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edi, eax
	call	lwip_recvfrom
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	lwip_read, .-lwip_read
	.globl	lwip_recv
	.type	lwip_recv, @function
lwip_recv:
.LFB37:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	edi, eax
	call	lwip_recvfrom
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE37:
	.size	lwip_recv, .-lwip_recv
	.globl	lwip_send
	.type	lwip_send, @function
lwip_send:
.LFB38:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -40[rbp], edx
	mov	DWORD PTR -52[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L130
	mov	eax, -1
	jmp	.L136
.L130:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	je	.L132
	mov	ecx, DWORD PTR -52[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	edi, eax
	call	lwip_sendto
	jmp	.L136
.L132:
	mov	eax, DWORD PTR -52[rbp]
	sar	eax, 3
	and	eax, 2
	or	eax, 1
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	sar	eax
	and	eax, 4
	or	eax, edx
	mov	BYTE PTR -26[rbp], al
	mov	DWORD PTR -24[rbp], 0
	movzx	ecx, BYTE PTR -26[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdi, -24[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	netconn_write_partly@PLT
	mov	BYTE PTR -25[rbp], al
	movsx	eax, BYTE PTR -25[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -20[rbp], 0
	je	.L133
	call	__errno@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
.L133:
	cmp	BYTE PTR -25[rbp], 0
	jne	.L134
	mov	eax, DWORD PTR -24[rbp]
	jmp	.L136
.L134:
	mov	eax, -1
.L136:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L137
	call	__stack_chk_fail@PLT
.L137:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE38:
	.size	lwip_send, .-lwip_send
	.section	.rodata
.LC2:
	.string	"lwip_sendmsg: invalid msghdr"
	.align 8
.LC3:
	.string	"lwip_sendmsg: invalid msghdr iov"
	.align 8
.LC4:
	.string	"lwip_sendmsg: invalid msghdr name"
	.text
	.globl	lwip_sendmsg
	.type	lwip_sendmsg, @function
lwip_sendmsg:
.LFB39:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -88[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 0
	mov	BYTE PTR -72[rbp], 0
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L139
	mov	eax, -1
	jmp	.L171
.L139:
	cmp	QWORD PTR -96[rbp], 0
	jne	.L141
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	bk_printf@PLT
	mov	edi, -16
	call	err_to_errno@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -36[rbp], 0
	je	.L142
	call	__errno@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
.L142:
	mov	eax, -1
	jmp	.L171
.L141:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L143
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	jne	.L144
.L143:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	bk_printf@PLT
	mov	edi, -16
	call	err_to_errno@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -40[rbp], 0
	je	.L145
	call	__errno@PLT
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
.L145:
	mov	eax, -1
	jmp	.L171
.L144:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	jne	.L146
	mov	eax, DWORD PTR -88[rbp]
	sar	eax, 3
	and	eax, 2
	or	eax, 1
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	sar	eax
	and	eax, 4
	or	eax, edx
	mov	BYTE PTR -71[rbp], al
	mov	DWORD PTR -64[rbp], 0
	jmp	.L147
.L152:
	mov	DWORD PTR -68[rbp], 0
	movzx	ecx, BYTE PTR -71[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 4
	add	rax, rsi
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdi, -68[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	netconn_write_partly@PLT
	mov	BYTE PTR -72[rbp], al
	cmp	BYTE PTR -72[rbp], 0
	jne	.L148
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -68[rbp]
	cmp	edx, eax
	je	.L149
	jmp	.L150
.L148:
	cmp	BYTE PTR -72[rbp], -7
	jne	.L151
	cmp	DWORD PTR -60[rbp], 0
	jle	.L151
	mov	BYTE PTR -72[rbp], 0
	jmp	.L150
.L151:
	mov	DWORD PTR -60[rbp], -1
	jmp	.L150
.L149:
	add	DWORD PTR -64[rbp], 1
.L147:
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	DWORD PTR -64[rbp], eax
	jl	.L152
.L150:
	movsx	eax, BYTE PTR -72[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -44[rbp], 0
	je	.L153
	call	__errno@PLT
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
.L153:
	mov	eax, DWORD PTR -60[rbp]
	jmp	.L171
.L146:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L154
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L155
.L154:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 24
	je	.L155
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	bk_printf@PLT
	mov	edi, -16
	call	err_to_errno@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -56[rbp], 0
	je	.L156
	call	__errno@PLT
	mov	edx, DWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
.L156:
	mov	eax, -1
	jmp	.L171
.L155:
	call	netbuf_new@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L157
	mov	edi, -1
	call	err_to_errno@PLT
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -48[rbp], 0
	je	.L158
	call	__errno@PLT
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
.L158:
	mov	eax, -1
	jmp	.L171
.L157:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L159
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	lwip_htons@PLT
	mov	WORD PTR -70[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, WORD PTR -70[rbp]
	mov	WORD PTR 24[rax], dx
.L159:
	mov	DWORD PTR -64[rbp], 0
	jmp	.L160
.L165:
	mov	edx, 2
	mov	esi, 0
	mov	edi, 0
	call	pbuf_alloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L161
	mov	BYTE PTR -72[rbp], -1
	jmp	.L162
.L161:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR 16[rax], dx
	mov	rax, QWORD PTR -16[rbp]
	movzx	edx, WORD PTR 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR 18[rax], dx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L163
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L164
.L163:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pbuf_cat@PLT
.L164:
	add	DWORD PTR -64[rbp], 1
.L160:
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	DWORD PTR -64[rbp], eax
	jl	.L165
.L162:
	cmp	BYTE PTR -72[rbp], 0
	jne	.L166
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, WORD PTR 16[rax]
	movzx	eax, ax
	mov	DWORD PTR -60[rbp], eax
.L166:
	cmp	BYTE PTR -72[rbp], 0
	jne	.L167
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	netconn_send@PLT
	mov	BYTE PTR -72[rbp], al
.L167:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	netbuf_delete@PLT
	movsx	eax, BYTE PTR -72[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -52[rbp], 0
	je	.L168
	call	__errno@PLT
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR [rax], edx
.L168:
	cmp	BYTE PTR -72[rbp], 0
	jne	.L169
	mov	eax, DWORD PTR -60[rbp]
	jmp	.L171
.L169:
	mov	eax, -1
.L171:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L172
	call	__stack_chk_fail@PLT
.L172:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE39:
	.size	lwip_sendmsg, .-lwip_sendmsg
	.section	.rodata
.LC5:
	.string	"lwip_sendto: invalid address"
	.text
	.globl	lwip_sendto
	.type	lwip_sendto, @function
lwip_sendto:
.LFB40:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -88[rbp], edx
	mov	DWORD PTR -100[rbp], ecx
	mov	QWORD PTR -112[rbp], r8
	mov	QWORD PTR -120[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L174
	mov	eax, -1
	jmp	.L189
.L174:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	jne	.L176
	mov	ecx, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -88[rbp]
	mov	rsi, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	lwip_send
	jmp	.L189
.L176:
	mov	eax, DWORD PTR -88[rbp]
	mov	WORD PTR -66[rbp], ax
	cmp	QWORD PTR -112[rbp], 0
	jne	.L177
	cmp	QWORD PTR -120[rbp], 0
	je	.L178
.L177:
	cmp	QWORD PTR -120[rbp], 24
	jne	.L179
	mov	rax, QWORD PTR -112[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 2
	jne	.L179
	mov	rax, QWORD PTR -112[rbp]
	and	eax, 3
	test	eax, eax
	je	.L178
.L179:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	bk_printf@PLT
	mov	edi, -16
	call	err_to_errno@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -64[rbp], 0
	je	.L180
	call	__errno@PLT
	mov	edx, DWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
.L180:
	mov	eax, -1
	jmp	.L189
.L178:
	mov	QWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	je	.L181
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	lwip_htons@PLT
	mov	WORD PTR -68[rbp], ax
	jmp	.L182
.L181:
	mov	WORD PTR -68[rbp], 0
	mov	QWORD PTR -32[rbp], 0
.L182:
	movzx	eax, WORD PTR -68[rbp]
	mov	WORD PTR -24[rbp], ax
	movzx	edx, WORD PTR -66[rbp]
	lea	rax, -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	netbuf_alloc@PLT
	test	rax, rax
	jne	.L183
	mov	BYTE PTR -69[rbp], -1
	jmp	.L184
.L183:
	movzx	edx, WORD PTR -66[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -96[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	BYTE PTR -69[rbp], 0
.L184:
	cmp	BYTE PTR -69[rbp], 0
	jne	.L185
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	netconn_send@PLT
	mov	BYTE PTR -69[rbp], al
.L185:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	netbuf_free@PLT
	movsx	eax, BYTE PTR -69[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -60[rbp], 0
	je	.L186
	call	__errno@PLT
	mov	edx, DWORD PTR -60[rbp]
	mov	DWORD PTR [rax], edx
.L186:
	cmp	BYTE PTR -69[rbp], 0
	jne	.L187
	movzx	eax, WORD PTR -66[rbp]
	jmp	.L189
.L187:
	mov	eax, -1
.L189:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L190
	call	__stack_chk_fail@PLT
.L190:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE40:
	.size	lwip_sendto, .-lwip_sendto
	.globl	lwip_socket
	.type	lwip_socket, @function
lwip_socket:
.LFB41:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	cmp	DWORD PTR -24[rbp], 3
	je	.L192
	cmp	DWORD PTR -24[rbp], 3
	jg	.L202
	cmp	DWORD PTR -24[rbp], 1
	je	.L194
	cmp	DWORD PTR -24[rbp], 2
	je	.L195
	jmp	.L202
.L192:
	mov	eax, DWORD PTR -28[rbp]
	movzx	eax, al
	lea	rdx, event_callback[rip]
	mov	esi, eax
	mov	edi, 64
	call	netconn_new_with_proto_and_callback@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L196
.L195:
	cmp	DWORD PTR -28[rbp], 136
	jne	.L197
	mov	eax, 33
	jmp	.L198
.L197:
	mov	eax, 32
.L198:
	lea	rdx, event_callback[rip]
	mov	esi, 0
	mov	edi, eax
	call	netconn_new_with_proto_and_callback@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L196
.L194:
	lea	rdx, event_callback[rip]
	mov	esi, 0
	mov	edi, 16
	call	netconn_new_with_proto_and_callback@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L196
.L202:
	call	__errno@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, -1
	jmp	.L199
.L196:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L200
	call	__errno@PLT
	mov	DWORD PTR [rax], 105
	mov	eax, -1
	jmp	.L199
.L200:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	alloc_socket
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L201
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	netconn_delete@PLT
	call	__errno@PLT
	mov	DWORD PTR [rax], 23
	mov	eax, -1
	jmp	.L199
.L201:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR 48[rax], edx
	mov	eax, DWORD PTR -12[rbp]
.L199:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE41:
	.size	lwip_socket, .-lwip_socket
	.globl	lwip_write
	.type	lwip_write, @function
lwip_write:
.LFB42:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	tryget_event
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L204
	cmp	DWORD PTR -24[rbp], 8
	je	.L205
	mov	eax, -1
	jmp	.L206
.L205:
	call	sys_arch_protect@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L207
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L207
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	sys_sem_signal@PLT
.L207:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	mov	eax, DWORD PTR -24[rbp]
	jmp	.L206
.L204:
	mov	edx, DWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	lwip_send
.L206:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE42:
	.size	lwip_write, .-lwip_write
	.globl	lwip_writev
	.type	lwip_writev, @function
lwip_writev:
.LFB43:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -72[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, eax
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lwip_sendmsg
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L210
	call	__stack_chk_fail@PLT
.L210:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE43:
	.size	lwip_writev, .-lwip_writev
	.type	lwip_selscan, @function
lwip_selscan:
.LFB44:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	QWORD PTR -152[rbp], rdx
	mov	QWORD PTR -160[rbp], rcx
	mov	QWORD PTR -168[rbp], r8
	mov	QWORD PTR -176[rbp], r9
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -104[rbp], 0
	lea	rax, -32[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -100[rbp], 0
	jmp	.L212
.L213:
	mov	rax, QWORD PTR -88[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -88[rbp], rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -100[rbp], 1
.L212:
	cmp	DWORD PTR -100[rbp], 7
	jbe	.L213
	lea	rax, -24[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -96[rbp], 0
	jmp	.L214
.L215:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -80[rbp], rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -96[rbp], 1
.L214:
	cmp	DWORD PTR -96[rbp], 7
	jbe	.L215
	lea	rax, -16[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L216
.L217:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -92[rbp], 1
.L216:
	cmp	DWORD PTR -92[rbp], 7
	jbe	.L217
	mov	DWORD PTR -108[rbp], 0
	jmp	.L218
.L238:
	cmp	QWORD PTR -144[rbp], 0
	je	.L219
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -108[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	jne	.L220
.L219:
	cmp	QWORD PTR -152[rbp], 0
	je	.L221
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -108[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	jne	.L220
.L221:
	cmp	QWORD PTR -160[rbp], 0
	je	.L241
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -108[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	je	.L241
.L220:
	call	sys_arch_protect@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	mov	edi, eax
	call	tryget_socket
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	mov	edi, eax
	call	tryget_event
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L224
	cmp	QWORD PTR -48[rbp], 0
	je	.L225
.L224:
	cmp	QWORD PTR -56[rbp], 0
	je	.L226
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L227
.L226:
	mov	eax, 0
.L227:
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L228
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR 18[rax]
	jmp	.L229
.L228:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 12[rax]
.L229:
	mov	WORD PTR -114[rbp], ax
	cmp	QWORD PTR -56[rbp], 0
	je	.L230
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR 20[rax]
	jmp	.L231
.L230:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 16[rax]
.L231:
	mov	WORD PTR -112[rbp], ax
	cmp	QWORD PTR -56[rbp], 0
	je	.L232
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR 22[rax]
	jmp	.L233
.L232:
	mov	eax, 0
.L233:
	mov	WORD PTR -110[rbp], ax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	cmp	QWORD PTR -144[rbp], 0
	je	.L234
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -108[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	je	.L234
	cmp	QWORD PTR -40[rbp], 0
	jne	.L235
	cmp	WORD PTR -114[rbp], 0
	jle	.L234
.L235:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	shr	rax, 6
	mov	rsi, QWORD PTR -32[rbp+rax*8]
	mov	edx, DWORD PTR -108[rbp]
	and	edx, 63
	mov	edi, 1
	mov	ecx, edx
	sal	rdi, cl
	mov	rdx, rdi
	or	rdx, rsi
	mov	QWORD PTR -32[rbp+rax*8], rdx
	add	DWORD PTR -104[rbp], 1
.L234:
	cmp	QWORD PTR -152[rbp], 0
	je	.L236
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -108[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	je	.L236
	cmp	WORD PTR -112[rbp], 0
	je	.L236
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	shr	rax, 6
	mov	rsi, QWORD PTR -24[rbp+rax*8]
	mov	edx, DWORD PTR -108[rbp]
	and	edx, 63
	mov	edi, 1
	mov	ecx, edx
	sal	rdi, cl
	mov	rdx, rdi
	or	rdx, rsi
	mov	QWORD PTR -24[rbp+rax*8], rdx
	add	DWORD PTR -104[rbp], 1
.L236:
	cmp	QWORD PTR -160[rbp], 0
	je	.L242
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -108[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	je	.L242
	cmp	WORD PTR -110[rbp], 0
	je	.L242
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	shr	rax, 6
	mov	rsi, QWORD PTR -16[rbp+rax*8]
	mov	edx, DWORD PTR -108[rbp]
	and	edx, 63
	mov	edi, 1
	mov	ecx, edx
	sal	rdi, cl
	mov	rdx, rdi
	or	rdx, rsi
	mov	QWORD PTR -16[rbp+rax*8], rdx
	add	DWORD PTR -104[rbp], 1
	jmp	.L242
.L225:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	jmp	.L223
.L241:
	nop
	jmp	.L223
.L242:
	nop
.L223:
	add	DWORD PTR -108[rbp], 1
.L218:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L238
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -104[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L240
	call	__stack_chk_fail@PLT
.L240:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE44:
	.size	lwip_selscan, .-lwip_selscan
	.globl	lwip_eventfd
	.type	lwip_eventfd, @function
lwip_eventfd:
.LFB45:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L244
.L247:
	call	sys_arch_protect@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, events[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L245
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, events[rip+8]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, events[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, events[rip+12]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, events[rip+16]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, events[rip+24]
	mov	QWORD PTR [rdx+rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 38
	jmp	.L246
.L245:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	add	DWORD PTR -12[rbp], 1
.L244:
	cmp	DWORD PTR -12[rbp], 37
	jle	.L247
	mov	eax, -1
.L246:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE45:
	.size	lwip_eventfd, .-lwip_eventfd
	.globl	lwip_select
	.type	lwip_select, @function
lwip_select:
.LFB46:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	QWORD PTR -200[rbp], rdx
	mov	QWORD PTR -208[rbp], rcx
	mov	QWORD PTR -216[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -152[rbp], 0
	lea	r9, -24[rbp]
	lea	r8, -32[rbp]
	mov	rcx, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	rsi, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -180[rbp]
	sub	rsp, 8
	lea	rdi, -16[rbp]
	push	rdi
	mov	edi, eax
	call	lwip_selscan
	add	rsp, 16
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jne	.L288
	cmp	QWORD PTR -216[rbp], 0
	je	.L250
	mov	rax, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L250
	mov	rax, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L289
.L250:
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -56[rbp], 0
	lea	rax, -96[rbp]
	add	rax, 48
	mov	esi, 0
	mov	rdi, rax
	call	sys_sem_new@PLT
	test	al, al
	je	.L252
	call	__errno@PLT
	mov	DWORD PTR [rax], 12
	mov	eax, -1
	jmp	.L285
.L252:
	call	sys_arch_protect@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR select_cb_list[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR select_cb_list[rip]
	test	rax, rax
	je	.L254
	mov	rax, QWORD PTR select_cb_list[rip]
	lea	rdx, -96[rbp]
	mov	QWORD PTR 8[rax], rdx
.L254:
	lea	rax, -96[rbp]
	mov	QWORD PTR select_cb_list[rip], rax
	mov	eax, DWORD PTR select_cb_ctr[rip]
	add	eax, 1
	mov	DWORD PTR select_cb_ctr[rip], eax
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	mov	eax, DWORD PTR -180[rbp]
	mov	DWORD PTR -156[rbp], eax
	mov	DWORD PTR -160[rbp], 0
	jmp	.L255
.L264:
	cmp	QWORD PTR -192[rbp], 0
	je	.L256
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	jne	.L257
.L256:
	cmp	QWORD PTR -200[rbp], 0
	je	.L258
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	jne	.L257
.L258:
	cmp	QWORD PTR -208[rbp], 0
	je	.L259
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	je	.L259
.L257:
	call	sys_arch_protect@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	eax, DWORD PTR -160[rbp]
	mov	edi, eax
	call	tryget_socket
	mov	QWORD PTR -128[rbp], rax
	mov	eax, DWORD PTR -160[rbp]
	mov	edi, eax
	call	tryget_event
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -128[rbp], 0
	je	.L260
	mov	rax, QWORD PTR -128[rbp]
	movzx	eax, BYTE PTR 25[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -128[rbp]
	mov	BYTE PTR 25[rax], dl
	jmp	.L261
.L260:
	cmp	QWORD PTR -120[rbp], 0
	je	.L262
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, -96[rbp]
	add	rdx, 48
	mov	QWORD PTR 24[rax], rdx
	jmp	.L261
.L262:
	mov	DWORD PTR -164[rbp], -1
	mov	eax, DWORD PTR -160[rbp]
	mov	DWORD PTR -156[rbp], eax
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	jmp	.L263
.L261:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
.L259:
	add	DWORD PTR -160[rbp], 1
.L255:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L264
.L263:
	cmp	DWORD PTR -164[rbp], 0
	js	.L265
	lea	r9, -24[rbp]
	lea	r8, -32[rbp]
	mov	rcx, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	rsi, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -180[rbp]
	sub	rsp, 8
	lea	rdi, -16[rbp]
	push	rdi
	mov	edi, eax
	call	lwip_selscan
	add	rsp, 16
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jne	.L265
	cmp	QWORD PTR -216[rbp], 0
	jne	.L266
	mov	QWORD PTR -144[rbp], 0
	jmp	.L267
.L266:
	mov	rax, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rsi, rax, 1000
	mov	rax, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rcx, 500[rax]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rax, rsi
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	jne	.L267
	mov	QWORD PTR -144[rbp], 1
.L267:
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	add	rdx, 48
	mov	rsi, rax
	mov	rdi, rdx
	call	sys_arch_sem_wait@PLT
	mov	QWORD PTR -152[rbp], rax
.L265:
	mov	DWORD PTR -160[rbp], 0
	jmp	.L268
.L276:
	cmp	QWORD PTR -192[rbp], 0
	je	.L269
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	jne	.L270
.L269:
	cmp	QWORD PTR -200[rbp], 0
	je	.L271
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	jne	.L270
.L271:
	cmp	QWORD PTR -208[rbp], 0
	je	.L272
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	shr	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	je	.L272
.L270:
	call	sys_arch_protect@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	eax, DWORD PTR -160[rbp]
	mov	edi, eax
	call	tryget_socket
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -160[rbp]
	mov	edi, eax
	call	tryget_event
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	je	.L273
	mov	rax, QWORD PTR -112[rbp]
	movzx	eax, BYTE PTR 25[rax]
	test	al, al
	je	.L274
	mov	rax, QWORD PTR -112[rbp]
	movzx	eax, BYTE PTR 25[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	BYTE PTR 25[rax], dl
	jmp	.L274
.L273:
	cmp	QWORD PTR -104[rbp], 0
	je	.L275
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 24[rax], 0
	jmp	.L274
.L275:
	mov	DWORD PTR -164[rbp], -1
.L274:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
.L272:
	add	DWORD PTR -160[rbp], 1
.L268:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jl	.L276
	call	sys_arch_protect@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	test	rax, rax
	je	.L277
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 8[rax], rdx
.L277:
	mov	rdx, QWORD PTR select_cb_list[rip]
	lea	rax, -96[rbp]
	cmp	rdx, rax
	jne	.L278
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR select_cb_list[rip], rax
	jmp	.L279
.L278:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	QWORD PTR [rax], rdx
.L279:
	mov	eax, DWORD PTR select_cb_ctr[rip]
	add	eax, 1
	mov	DWORD PTR select_cb_ctr[rip], eax
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	lea	rax, -96[rbp]
	add	rax, 48
	mov	rdi, rax
	call	sys_sem_free@PLT
	cmp	DWORD PTR -164[rbp], 0
	jns	.L280
	call	__errno@PLT
	mov	DWORD PTR [rax], 9
	mov	eax, -1
	jmp	.L285
.L280:
	mov	eax, 4294967295
	cmp	QWORD PTR -152[rbp], rax
	je	.L290
	lea	r9, -24[rbp]
	lea	r8, -32[rbp]
	mov	rcx, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	rsi, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -180[rbp]
	sub	rsp, 8
	lea	rdi, -16[rbp]
	push	rdi
	mov	edi, eax
	call	lwip_selscan
	add	rsp, 16
	mov	DWORD PTR -164[rbp], eax
.L251:
.L288:
	nop
	jmp	.L287
.L289:
	nop
	jmp	.L287
.L290:
	nop
.L287:
	cmp	QWORD PTR -192[rbp], 0
	je	.L282
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
.L282:
	cmp	QWORD PTR -200[rbp], 0
	je	.L283
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L283:
	cmp	QWORD PTR -208[rbp], 0
	je	.L284
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
.L284:
	mov	eax, DWORD PTR -164[rbp]
.L285:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L286
	call	__stack_chk_fail@PLT
.L286:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE46:
	.size	lwip_select, .-lwip_select
	.type	event_callback, @function
event_callback:
.LFB47:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	eax, edx
	mov	WORD PTR -64[rbp], ax
	cmp	QWORD PTR -56[rbp], 0
	je	.L314
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 48[rax]
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L293
	call	sys_arch_protect@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	jns	.L294
	cmp	DWORD PTR -60[rbp], 0
	jne	.L295
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 48[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 48[rax], edx
.L295:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	jmp	.L291
.L294:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 48[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
.L293:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L315
	call	sys_arch_protect@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -60[rbp], 4
	ja	.L316
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L300[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L300[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L300:
	.long	.L304-.L300
	.long	.L303-.L300
	.long	.L302-.L300
	.long	.L301-.L300
	.long	.L299-.L300
	.text
.L304:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 18[rax]
	add	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 18[rax], dx
	jmp	.L305
.L303:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 18[rax]
	sub	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 18[rax], dx
	jmp	.L305
.L302:
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 20[rax], 1
	jmp	.L305
.L301:
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 20[rax], 0
	jmp	.L305
.L299:
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 22[rax], 1
	jmp	.L305
.L316:
	nop
.L305:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 25[rax]
	test	al, al
	jne	.L317
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	jmp	.L291
.L317:
	nop
.L306:
	mov	rax, QWORD PTR select_cb_list[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L307
.L313:
	mov	eax, DWORD PTR select_cb_ctr[rip]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	jne	.L308
	mov	DWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 18[rax]
	test	ax, ax
	jle	.L309
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L309
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	shr	rdx, 6
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	je	.L309
	mov	DWORD PTR -32[rbp], 1
.L309:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 20[rax]
	test	ax, ax
	je	.L310
	cmp	DWORD PTR -32[rbp], 0
	jne	.L310
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L310
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	shr	rdx, 6
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	je	.L310
	mov	DWORD PTR -32[rbp], 1
.L310:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 22[rax]
	test	ax, ax
	je	.L311
	cmp	DWORD PTR -32[rbp], 0
	jne	.L311
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L311
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	shr	rdx, 6
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	and	rax, rdx
	test	rax, rax
	je	.L311
	mov	DWORD PTR -32[rbp], 1
.L311:
	cmp	DWORD PTR -32[rbp], 0
	je	.L308
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 40[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 48
	mov	rdi, rax
	call	sys_sem_signal@PLT
.L308:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	call	sys_arch_protect@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR select_cb_ctr[rip]
	cmp	DWORD PTR -28[rbp], eax
	je	.L312
	jmp	.L306
.L312:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
.L307:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L313
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	sys_arch_unprotect@PLT
	jmp	.L291
.L314:
	nop
	jmp	.L291
.L315:
	nop
.L291:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE47:
	.size	event_callback, .-event_callback
	.globl	lwip_shutdown
	.type	lwip_shutdown, @function
lwip_shutdown:
.LFB48:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	BYTE PTR -27[rbp], 0
	mov	BYTE PTR -26[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L319
	mov	eax, -1
	jmp	.L320
.L319:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L321
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	je	.L322
	mov	DWORD PTR -12[rbp], 95
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -12[rbp], 0
	je	.L323
	call	__errno@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
.L323:
	mov	eax, -1
	jmp	.L320
.L321:
	mov	DWORD PTR -24[rbp], 107
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -24[rbp], 0
	je	.L324
	call	__errno@PLT
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
.L324:
	mov	eax, -1
	jmp	.L320
.L322:
	cmp	DWORD PTR -40[rbp], 0
	jne	.L325
	mov	BYTE PTR -27[rbp], 1
	jmp	.L326
.L325:
	cmp	DWORD PTR -40[rbp], 1
	jne	.L327
	mov	BYTE PTR -26[rbp], 1
	jmp	.L326
.L327:
	cmp	DWORD PTR -40[rbp], 2
	jne	.L328
	mov	BYTE PTR -27[rbp], 1
	mov	BYTE PTR -26[rbp], 1
	jmp	.L326
.L328:
	mov	DWORD PTR -20[rbp], 22
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -20[rbp], 0
	je	.L329
	call	__errno@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
.L329:
	mov	eax, -1
	jmp	.L320
.L326:
	movzx	edx, BYTE PTR -26[rbp]
	movzx	ecx, BYTE PTR -27[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, ecx
	mov	rdi, rax
	call	netconn_shutdown@PLT
	mov	BYTE PTR -25[rbp], al
	movsx	eax, BYTE PTR -25[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -16[rbp], 0
	je	.L330
	call	__errno@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L330:
	cmp	BYTE PTR -25[rbp], 0
	jne	.L331
	mov	eax, 0
	jmp	.L320
.L331:
	mov	eax, -1
.L320:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE48:
	.size	lwip_shutdown, .-lwip_shutdown
	.type	lwip_getaddrname, @function
lwip_getaddrname:
.LFB49:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -104[rbp], rdx
	mov	eax, ecx
	mov	BYTE PTR -88[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L334
	mov	eax, -1
	jmp	.L340
.L334:
	movzx	ecx, BYTE PTR -88[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -74[rbp]
	lea	rsi, -64[rbp]
	mov	rdi, rax
	call	netconn_getaddr@PLT
	mov	BYTE PTR -75[rbp], al
	cmp	BYTE PTR -75[rbp], 0
	je	.L336
	movsx	eax, BYTE PTR -75[rbp]
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -68[rbp], 0
	je	.L337
	call	__errno@PLT
	mov	edx, DWORD PTR -68[rbp]
	mov	DWORD PTR [rax], edx
.L337:
	mov	eax, -1
	jmp	.L340
.L336:
	lea	rax, -48[rbp]
	mov	BYTE PTR [rax], 24
	lea	rax, -48[rbp]
	mov	BYTE PTR 1[rax], 2
	movzx	eax, WORD PTR -74[rbp]
	movzx	eax, ax
	lea	rbx, -48[rbp]
	mov	edi, eax
	call	lwip_htons@PLT
	mov	WORD PTR 2[rbx], ax
	lea	rax, -48[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR 8[rax], rdx
	lea	rax, -48[rbp]
	add	rax, 16
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -48[rbp]
	movzx	eax, al
	cmp	rdx, rax
	jbe	.L338
	movzx	eax, BYTE PTR -48[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR [rax], rdx
.L338:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	DWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -72[rbp], 0
	je	.L339
	call	__errno@PLT
	mov	edx, DWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
.L339:
	mov	eax, 0
.L340:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L341
	call	__stack_chk_fail@PLT
.L341:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE49:
	.size	lwip_getaddrname, .-lwip_getaddrname
	.globl	lwip_getpeername
	.type	lwip_getpeername, @function
lwip_getpeername:
.LFB50:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	lwip_getaddrname
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE50:
	.size	lwip_getpeername, .-lwip_getpeername
	.globl	lwip_getsockname
	.type	lwip_getsockname, @function
lwip_getsockname:
.LFB51:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 1
	mov	edi, eax
	call	lwip_getaddrname
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE51:
	.size	lwip_getsockname, .-lwip_getsockname
	.globl	lwip_getsockopt
	.type	lwip_getsockopt, @function
lwip_getsockopt:
.LFB52:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	QWORD PTR -64[rbp], r8
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L347
	mov	eax, -1
	jmp	.L348
.L347:
	cmp	QWORD PTR -56[rbp], 0
	je	.L349
	cmp	QWORD PTR -64[rbp], 0
	jne	.L350
.L349:
	mov	DWORD PTR -12[rbp], 14
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -12[rbp], 0
	je	.L351
	call	__errno@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
.L351:
	mov	eax, -1
	jmp	.L348
.L350:
	lea	rdi, lock_tcpip_core[rip]
	call	sys_mutex_lock@PLT
	mov	rdi, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	esi, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	lwip_getsockopt_impl
	mov	BYTE PTR -17[rbp], al
	lea	rdi, lock_tcpip_core[rip]
	call	sys_mutex_unlock@PLT
	movzx	eax, BYTE PTR -17[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -16[rbp], 0
	je	.L352
	call	__errno@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L352:
	cmp	BYTE PTR -17[rbp], 0
	je	.L353
	mov	eax, -1
	jmp	.L348
.L353:
	mov	eax, 0
.L348:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE52:
	.size	lwip_getsockopt, .-lwip_getsockopt
	.type	lwip_getsockopt_impl, @function
lwip_getsockopt_impl:
.LFB53:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	QWORD PTR -64[rbp], r8
	mov	BYTE PTR -29[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	tryget_socket
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L356
	mov	eax, 9
	jmp	.L357
.L356:
	cmp	DWORD PTR -40[rbp], 4095
	je	.L358
	cmp	DWORD PTR -40[rbp], 4095
	jg	.L443
	cmp	DWORD PTR -40[rbp], 255
	je	.L444
	cmp	DWORD PTR -40[rbp], 255
	jg	.L443
	cmp	DWORD PTR -40[rbp], 0
	je	.L361
	cmp	DWORD PTR -40[rbp], 6
	je	.L362
	jmp	.L443
.L358:
	cmp	DWORD PTR -44[rbp], 4106
	jg	.L445
	cmp	DWORD PTR -44[rbp], 4101
	jge	.L364
	cmp	DWORD PTR -44[rbp], 32
	je	.L365
	cmp	DWORD PTR -44[rbp], 32
	jg	.L445
	cmp	DWORD PTR -44[rbp], 8
	je	.L365
	cmp	DWORD PTR -44[rbp], 8
	jg	.L445
	cmp	DWORD PTR -44[rbp], 2
	je	.L366
	cmp	DWORD PTR -44[rbp], 4
	je	.L365
	jmp	.L445
.L364:
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 4101
	cmp	eax, 5
	ja	.L445
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L368[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L368[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L368:
	.long	.L372-.L368
	.long	.L371-.L368
	.long	.L370-.L368
	.long	.L369-.L368
	.long	.L445-.L368
	.long	.L367-.L368
	.text
.L366:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 3
	ja	.L373
	mov	eax, 22
	jmp	.L357
.L373:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L374
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L375
.L374:
	mov	eax, 22
	jmp	.L357
.L375:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	je	.L376
	mov	eax, 92
	jmp	.L357
.L376:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L377
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR 40[rax]
	cmp	eax, 1
	jne	.L377
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L379
.L377:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L379
.L365:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 3
	ja	.L380
	mov	eax, 22
	jmp	.L357
.L380:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L381
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L382
.L381:
	mov	eax, 22
	jmp	.L357
.L382:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, BYTE PTR 16[rax]
	movzx	eax, al
	and	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L379
.L369:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 3
	ja	.L383
	mov	eax, 22
	jmp	.L357
.L383:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L384
	mov	eax, 22
	jmp	.L357
.L384:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 64
	je	.L385
	cmp	eax, 64
	ja	.L386
	cmp	eax, 16
	je	.L387
	cmp	eax, 32
	je	.L388
	jmp	.L386
.L385:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 3
	jmp	.L446
.L387:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L446
.L388:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 2
	jmp	.L446
.L386:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L379
.L446:
	jmp	.L379
.L370:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 3
	ja	.L390
	mov	eax, 22
	jmp	.L357
.L390:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 24[rax]
	test	al, al
	je	.L391
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 24[rax]
	cmp	al, 115
	jne	.L392
.L391:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L392
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 16[rax]
	movsx	eax, al
	mov	edi, eax
	call	err_to_errno@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -28[rbp], 0
	je	.L392
	call	__errno@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
.L392:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 24[rax]
	cmp	al, -1
	je	.L393
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 24[rax]
	movzx	eax, al
	jmp	.L394
.L393:
	mov	eax, -1
.L394:
	mov	rdx, QWORD PTR -56[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR 24[rax], 0
	jmp	.L379
.L372:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 15
	ja	.L395
	mov	eax, 22
	jmp	.L357
.L395:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L396
	mov	eax, 22
	jmp	.L357
.L396:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rcx, QWORD PTR -8[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rcx, QWORD PTR -8[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000
	mov	rax, rcx
	sub	rax, rdx
	imul	rdx, rax, 1000
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L379
.L371:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 15
	ja	.L397
	mov	eax, 22
	jmp	.L357
.L397:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L398
	mov	eax, 22
	jmp	.L357
.L398:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 64[rax]
	cdqe
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rcx, QWORD PTR -16[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000
	mov	rax, rcx
	sub	rax, rdx
	imul	rdx, rax, 1000
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L379
.L367:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 3
	ja	.L399
	mov	eax, 22
	jmp	.L357
.L399:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L400
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L401
.L400:
	mov	eax, 22
	jmp	.L357
.L401:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 32
	je	.L402
	mov	eax, 92
	jmp	.L357
.L402:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, BYTE PTR 32[rax]
	movzx	eax, al
	and	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L379
.L445:
	mov	BYTE PTR -29[rbp], 92
	nop
.L379:
	jmp	.L403
.L361:
	cmp	DWORD PTR -44[rbp], 7
	ja	.L447
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L406[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L406[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L406:
	.long	.L447-.L406
	.long	.L410-.L406
	.long	.L409-.L406
	.long	.L447-.L406
	.long	.L447-.L406
	.long	.L408-.L406
	.long	.L407-.L406
	.long	.L405-.L406
	.text
.L409:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 3
	ja	.L411
	mov	eax, 22
	jmp	.L357
.L411:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L412
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L413
.L412:
	mov	eax, 22
	jmp	.L357
.L413:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, BYTE PTR 18[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L414
.L410:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 3
	ja	.L415
	mov	eax, 22
	jmp	.L357
.L415:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L416
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L417
.L416:
	mov	eax, 22
	jmp	.L357
.L417:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, BYTE PTR 17[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L414
.L408:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L418
	mov	eax, 22
	jmp	.L357
.L418:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L419
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L420
.L419:
	mov	eax, 22
	jmp	.L357
.L420:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 32
	je	.L421
	mov	eax, 92
	jmp	.L357
.L421:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	edx, BYTE PTR 48[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L414
.L407:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 7
	ja	.L422
	mov	eax, 22
	jmp	.L357
.L422:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L423
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L424
.L423:
	mov	eax, 22
	jmp	.L357
.L424:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 32
	je	.L425
	mov	eax, 92
	jmp	.L357
.L425:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L414
.L405:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L426
	mov	eax, 22
	jmp	.L357
.L426:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L427
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L428
.L427:
	mov	eax, 22
	jmp	.L357
.L428:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, BYTE PTR 32[rax]
	movzx	eax, al
	and	eax, 8
	test	eax, eax
	je	.L429
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], 1
	jmp	.L414
.L429:
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L414
.L447:
	mov	BYTE PTR -29[rbp], 92
	nop
.L414:
	jmp	.L403
.L362:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 3
	ja	.L431
	mov	eax, 22
	jmp	.L357
.L431:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L432
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L433
.L432:
	mov	eax, 22
	jmp	.L357
.L433:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	je	.L434
	mov	eax, 92
	jmp	.L357
.L434:
	cmp	DWORD PTR -44[rbp], 5
	ja	.L448
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L437[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L437[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L437:
	.long	.L448-.L437
	.long	.L441-.L437
	.long	.L440-.L437
	.long	.L439-.L437
	.long	.L438-.L437
	.long	.L436-.L437
	.text
.L441:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, WORD PTR 50[rax]
	movzx	eax, ax
	and	eax, 64
	test	eax, eax
	setne	al
	movzx	edx, al
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L442
.L440:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 264[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L442
.L439:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 264[rax]
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L442
.L438:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 272[rax]
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L442
.L436:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 280[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L442
.L448:
	mov	BYTE PTR -29[rbp], 92
	nop
.L442:
	jmp	.L403
.L444:
	mov	BYTE PTR -29[rbp], 92
	nop
	jmp	.L403
.L443:
	mov	BYTE PTR -29[rbp], 92
	nop
.L403:
	movzx	eax, BYTE PTR -29[rbp]
.L357:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE53:
	.size	lwip_getsockopt_impl, .-lwip_getsockopt_impl
	.globl	lwip_setsockopt
	.type	lwip_setsockopt, @function
lwip_setsockopt:
.LFB54:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	QWORD PTR -64[rbp], r8
	mov	BYTE PTR -17[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L450
	mov	eax, -1
	jmp	.L451
.L450:
	cmp	QWORD PTR -56[rbp], 0
	jne	.L452
	mov	DWORD PTR -12[rbp], 14
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -12[rbp], 0
	je	.L453
	call	__errno@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
.L453:
	mov	eax, -1
	jmp	.L451
.L452:
	lea	rdi, lock_tcpip_core[rip]
	call	sys_mutex_lock@PLT
	mov	rdi, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	esi, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	lwip_setsockopt_impl
	mov	BYTE PTR -17[rbp], al
	lea	rdi, lock_tcpip_core[rip]
	call	sys_mutex_unlock@PLT
	movzx	eax, BYTE PTR -17[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -16[rbp], 0
	je	.L454
	call	__errno@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L454:
	cmp	BYTE PTR -17[rbp], 0
	je	.L455
	mov	eax, -1
	jmp	.L451
.L455:
	mov	eax, 0
.L451:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE54:
	.size	lwip_setsockopt, .-lwip_setsockopt
	.type	lwip_setsockopt_impl, @function
lwip_setsockopt_impl:
.LFB55:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	DWORD PTR -60[rbp], edx
	mov	QWORD PTR -72[rbp], rcx
	mov	QWORD PTR -80[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -42[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	tryget_socket
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L458
	mov	eax, 9
	jmp	.L459
.L458:
	cmp	DWORD PTR -56[rbp], 4095
	je	.L460
	cmp	DWORD PTR -56[rbp], 4095
	jg	.L542
	cmp	DWORD PTR -56[rbp], 255
	je	.L543
	cmp	DWORD PTR -56[rbp], 255
	jg	.L542
	cmp	DWORD PTR -56[rbp], 0
	je	.L463
	cmp	DWORD PTR -56[rbp], 6
	je	.L464
	jmp	.L542
.L460:
	cmp	DWORD PTR -60[rbp], 4106
	je	.L465
	cmp	DWORD PTR -60[rbp], 4106
	jg	.L544
	cmp	DWORD PTR -60[rbp], 4102
	je	.L467
	cmp	DWORD PTR -60[rbp], 4102
	jg	.L544
	cmp	DWORD PTR -60[rbp], 32
	jg	.L468
	cmp	DWORD PTR -60[rbp], 4
	jl	.L544
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	movabs	rax, 4294967568
	and	rax, rdx
	test	rax, rax
	setne	al
	test	al, al
	jne	.L469
	jmp	.L544
.L468:
	cmp	DWORD PTR -60[rbp], 4101
	je	.L470
	jmp	.L544
.L469:
	cmp	QWORD PTR -80[rbp], 3
	ja	.L471
	mov	eax, 22
	jmp	.L459
.L471:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L472
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L473
.L472:
	mov	eax, 22
	jmp	.L459
.L473:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L474
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, BYTE PTR 16[rax]
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	BYTE PTR 16[rax], dl
	jmp	.L476
.L474:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, BYTE PTR 16[rax]
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	not	eax
	and	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	BYTE PTR 16[rax], dl
	jmp	.L476
.L470:
	cmp	QWORD PTR -80[rbp], 15
	ja	.L477
	mov	eax, 22
	jmp	.L459
.L477:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L478
	mov	eax, 22
	jmp	.L459
.L478:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rsi, rax, 1000
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 8[rax]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	add	rdx, rsi
	mov	QWORD PTR 56[rax], rdx
	jmp	.L476
.L467:
	cmp	QWORD PTR -80[rbp], 15
	ja	.L479
	mov	eax, 22
	jmp	.L459
.L479:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L480
	mov	eax, 22
	jmp	.L459
.L480:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	imul	esi, eax, 1000
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 8[rax]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	lea	edx, [rsi+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 64[rax], edx
	jmp	.L476
.L465:
	cmp	QWORD PTR -80[rbp], 3
	ja	.L481
	mov	eax, 22
	jmp	.L459
.L481:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L482
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L483
.L482:
	mov	eax, 22
	jmp	.L459
.L483:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 32
	je	.L484
	mov	eax, 92
	jmp	.L459
.L484:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L485
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	edx, BYTE PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	or	edx, 1
	mov	BYTE PTR 32[rax], dl
	jmp	.L476
.L485:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	edx, BYTE PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	and	edx, -2
	mov	BYTE PTR 32[rax], dl
	jmp	.L476
.L544:
	mov	BYTE PTR -42[rbp], 92
	nop
.L476:
	jmp	.L487
.L463:
	cmp	DWORD PTR -60[rbp], 7
	ja	.L545
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L490[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L490[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L490:
	.long	.L545-.L490
	.long	.L495-.L490
	.long	.L494-.L490
	.long	.L493-.L490
	.long	.L493-.L490
	.long	.L492-.L490
	.long	.L491-.L490
	.long	.L489-.L490
	.text
.L494:
	cmp	QWORD PTR -80[rbp], 3
	ja	.L496
	mov	eax, 22
	jmp	.L459
.L496:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L497
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L498
.L497:
	mov	eax, 22
	jmp	.L459
.L498:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	BYTE PTR 18[rax], dl
	jmp	.L499
.L495:
	cmp	QWORD PTR -80[rbp], 3
	ja	.L500
	mov	eax, 22
	jmp	.L459
.L500:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L501
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L502
.L501:
	mov	eax, 22
	jmp	.L459
.L502:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	BYTE PTR 17[rax], dl
	jmp	.L499
.L492:
	cmp	QWORD PTR -80[rbp], 0
	jne	.L503
	mov	eax, 22
	jmp	.L459
.L503:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L504
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L505
.L504:
	mov	eax, 22
	jmp	.L459
.L505:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 32
	je	.L506
	mov	eax, 92
	jmp	.L459
.L506:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -72[rbp]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR 48[rax], dl
	jmp	.L499
.L491:
	cmp	QWORD PTR -80[rbp], 7
	ja	.L507
	mov	eax, 22
	jmp	.L459
.L507:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L509
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L510
.L509:
	mov	eax, 22
	jmp	.L459
.L510:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 32
	je	.L511
	mov	eax, 92
	jmp	.L459
.L511:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 40[rax], rdx
	jmp	.L499
.L489:
	cmp	QWORD PTR -80[rbp], 0
	jne	.L512
	mov	eax, 22
	jmp	.L459
.L512:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L513
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L514
.L513:
	mov	eax, 22
	jmp	.L459
.L514:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 32
	je	.L515
	mov	eax, 92
	jmp	.L459
.L515:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L516
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	edx, BYTE PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	or	edx, 8
	mov	BYTE PTR 32[rax], dl
	jmp	.L499
.L516:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	edx, BYTE PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	and	edx, -9
	mov	BYTE PTR 32[rax], dl
	jmp	.L499
.L493:
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -80[rbp], 15
	ja	.L518
	mov	eax, 22
	jmp	.L459
.L518:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L520
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L521
.L520:
	mov	eax, 22
	jmp	.L459
.L521:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 32
	je	.L522
	mov	eax, 92
	jmp	.L459
.L522:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	cmp	DWORD PTR -60[rbp], 3
	jne	.L523
	lea	rdx, -32[rbp]
	lea	rcx, -40[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	lwip_socket_register_membership
	test	eax, eax
	jne	.L524
	mov	BYTE PTR -42[rbp], 12
	mov	BYTE PTR -41[rbp], 0
	jmp	.L525
.L524:
	lea	rdx, -32[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	igmp_joingroup@PLT
	mov	BYTE PTR -41[rbp], al
	jmp	.L525
.L523:
	lea	rdx, -32[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	igmp_leavegroup@PLT
	mov	BYTE PTR -41[rbp], al
	lea	rdx, -32[rbp]
	lea	rcx, -40[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	lwip_socket_unregister_membership
.L525:
	cmp	BYTE PTR -41[rbp], 0
	je	.L547
	mov	BYTE PTR -42[rbp], 99
	jmp	.L547
.L545:
	mov	BYTE PTR -42[rbp], 92
	jmp	.L499
.L547:
	nop
.L499:
	jmp	.L487
.L464:
	cmp	QWORD PTR -80[rbp], 3
	ja	.L527
	mov	eax, 22
	jmp	.L459
.L527:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L528
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L529
.L528:
	mov	eax, 22
	jmp	.L459
.L529:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	and	eax, 240
	cmp	eax, 16
	je	.L530
	mov	eax, 92
	jmp	.L459
.L530:
	cmp	DWORD PTR -60[rbp], 5
	ja	.L546
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L533[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L533[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L533:
	.long	.L546-.L533
	.long	.L537-.L533
	.long	.L536-.L533
	.long	.L535-.L533
	.long	.L534-.L533
	.long	.L532-.L533
	.text
.L537:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L538
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	edx, WORD PTR 50[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	or	edx, 64
	mov	WORD PTR 50[rax], dx
	jmp	.L540
.L538:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movzx	edx, WORD PTR 50[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	and	edx, -65
	mov	WORD PTR 50[rax], dx
	jmp	.L540
.L536:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movsx	rdx, edx
	mov	QWORD PTR 264[rax], rdx
	jmp	.L540
.L535:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	imul	rdx, rdx, 1000
	mov	QWORD PTR 264[rax], rdx
	jmp	.L540
.L534:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	imul	rdx, rdx, 1000
	mov	QWORD PTR 272[rax], rdx
	jmp	.L540
.L532:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movsx	rdx, edx
	mov	QWORD PTR 280[rax], rdx
	jmp	.L540
.L546:
	mov	BYTE PTR -42[rbp], 92
	nop
.L540:
	jmp	.L487
.L543:
	mov	BYTE PTR -42[rbp], 92
	nop
	jmp	.L487
.L542:
	mov	BYTE PTR -42[rbp], 92
	nop
.L487:
	movzx	eax, BYTE PTR -42[rbp]
.L459:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L541
	call	__stack_chk_fail@PLT
.L541:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE55:
	.size	lwip_setsockopt_impl, .-lwip_setsockopt_impl
	.globl	lwip_ioctl
	.type	lwip_ioctl, @function
lwip_ioctl:
.LFB56:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L549
	mov	eax, -1
	jmp	.L550
.L549:
	mov	eax, 2148034174
	cmp	QWORD PTR -48[rbp], rax
	jne	.L558
	mov	BYTE PTR -17[rbp], 0
	cmp	QWORD PTR -56[rbp], 0
	je	.L552
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L552
	mov	BYTE PTR -17[rbp], 1
.L552:
	cmp	BYTE PTR -17[rbp], 0
	je	.L553
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	edx, BYTE PTR 68[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	or	edx, 2
	mov	BYTE PTR 68[rax], dl
	jmp	.L554
.L553:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	edx, BYTE PTR 68[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	and	edx, -3
	mov	BYTE PTR 68[rax], dl
.L554:
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -16[rbp], 0
	je	.L555
	call	__errno@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L555:
	mov	eax, 0
	jmp	.L550
.L558:
	nop
	mov	DWORD PTR -12[rbp], 38
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -12[rbp], 0
	je	.L556
	call	__errno@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
.L556:
	mov	eax, -1
.L550:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE56:
	.size	lwip_ioctl, .-lwip_ioctl
	.globl	lwip_fcntl
	.type	lwip_fcntl, @function
lwip_fcntl:
.LFB57:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], -1
	cmp	QWORD PTR -8[rbp], 0
	jne	.L560
	mov	eax, -1
	jmp	.L561
.L560:
	cmp	DWORD PTR -40[rbp], 3
	je	.L562
	cmp	DWORD PTR -40[rbp], 4
	je	.L563
	jmp	.L573
.L562:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 68[rax]
	movzx	eax, al
	sal	eax, 13
	and	eax, 16384
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -16[rbp], 0
	je	.L574
	call	__errno@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L574
.L563:
	mov	eax, DWORD PTR -44[rbp]
	and	ah, -65
	test	eax, eax
	jne	.L567
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 16384
	test	eax, eax
	je	.L568
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	edx, BYTE PTR 68[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	or	edx, 2
	mov	BYTE PTR 68[rax], dl
	jmp	.L569
.L568:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	edx, BYTE PTR 68[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	and	edx, -3
	mov	BYTE PTR 68[rax], dl
.L569:
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -20[rbp], 0
	je	.L575
	call	__errno@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L575
.L567:
	mov	DWORD PTR -24[rbp], 38
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -24[rbp], 0
	je	.L575
	call	__errno@PLT
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L575
.L573:
	mov	DWORD PTR -12[rbp], 38
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], dl
	cmp	DWORD PTR -12[rbp], 0
	je	.L576
	call	__errno@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L576
.L574:
	nop
	jmp	.L566
.L575:
	nop
	jmp	.L566
.L576:
	nop
.L566:
	mov	eax, DWORD PTR -28[rbp]
.L561:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE57:
	.size	lwip_fcntl, .-lwip_fcntl
	.type	lwip_socket_register_membership, @function
lwip_socket_register_membership:
.LFB58:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L578
	mov	eax, 0
	jmp	.L579
.L578:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L580
.L582:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L581
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rcx, rax
	lea	rdx, socket_ipv4_multicast_memberships[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip+8]
	mov	QWORD PTR [rcx+rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip+16]
	mov	QWORD PTR [rcx+rax], rdx
	mov	eax, 1
	jmp	.L579
.L581:
	add	DWORD PTR -12[rbp], 1
.L580:
	cmp	DWORD PTR -12[rbp], 37
	jle	.L582
	mov	eax, 0
.L579:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE58:
	.size	lwip_socket_register_membership, .-lwip_socket_register_membership
	.type	lwip_socket_unregister_membership, @function
lwip_socket_unregister_membership:
.LFB59:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L589
	mov	DWORD PTR -12[rbp], 0
	jmp	.L586
.L588:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L587
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rdx, rax
	jne	.L587
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip+16]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rdx, rax
	jne	.L587
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip+8]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip+16]
	mov	QWORD PTR [rdx+rax], 0
	jmp	.L583
.L587:
	add	DWORD PTR -12[rbp], 1
.L586:
	cmp	DWORD PTR -12[rbp], 37
	jle	.L588
	jmp	.L583
.L589:
	nop
.L583:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE59:
	.size	lwip_socket_unregister_membership, .-lwip_socket_unregister_membership
	.type	lwip_socket_drop_registered_memberships, @function
lwip_socket_drop_registered_memberships:
.LFB60:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	get_socket
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L597
	mov	DWORD PTR -36[rbp], 0
	jmp	.L593
.L595:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	QWORD PTR -16[rbp], rax
	jne	.L594
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip+16]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip+8]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, socket_ipv4_multicast_memberships[rip+16]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, sockets[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, -24[rbp]
	lea	rsi, -32[rbp]
	mov	ecx, 1
	mov	rdi, rax
	call	netconn_join_leave_group@PLT
.L594:
	add	DWORD PTR -36[rbp], 1
.L593:
	cmp	DWORD PTR -36[rbp], 37
	jle	.L595
	jmp	.L590
.L597:
	nop
.L590:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L596
	call	__stack_chk_fail@PLT
.L596:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE60:
	.size	lwip_socket_drop_registered_memberships, .-lwip_socket_drop_registered_memberships
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"352964.c"
	.text
	.comm	socket_ipv4_multicast_memberships,456,4
	.local	sockets
	.comm	sockets,760,4
	.local	events
	.comm	events,912,8
	.local	select_cb_list
	.comm	select_cb_list,4,4
	.local	select_cb_ctr
	.comm	select_cb_ctr,4,4
	.align	2
	.global	lwip_socket_thread_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_socket_thread_init, %function
lwip_socket_thread_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	lwip_socket_thread_init, .-lwip_socket_thread_init
	.align	2
	.global	lwip_socket_thread_cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_socket_thread_cleanup, %function
lwip_socket_thread_cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	lwip_socket_thread_cleanup, .-lwip_socket_thread_cleanup
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_socket, %function
get_socket:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L4
	ldr	r3, [fp, #-16]
	cmp	r3, #37
	ble	.L5
.L4:
	bl	__errno
	mov	r3, r0
	mov	r2, #9
	str	r2, [r3]
	mov	r3, #0
	b	.L6
.L5:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L8
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	bl	__errno
	mov	r3, r0
	mov	r2, #9
	str	r2, [r3]
	mov	r3, #0
	b	.L6
.L7:
	ldr	r3, [fp, #-8]
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	sockets
	.size	get_socket, .-get_socket
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tryget_event, %function
tryget_event:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #38
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L11
	ldr	r3, [fp, #-8]
	cmp	r3, #37
	ble	.L12
.L11:
	mov	r3, #0
	b	.L13
.L12:
	ldr	r1, .L15
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	b	.L13
.L14:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L15
	add	r3, r3, r2
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L16:
	.align	2
.L15:
	.word	events
	.size	tryget_event, .-tryget_event
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tryget_socket, %function
tryget_socket:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L18
	ldr	r3, [fp, #-8]
	cmp	r3, #37
	ble	.L19
.L18:
	mov	r3, #0
	b	.L20
.L19:
	ldr	r1, .L22
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	mov	r3, #0
	b	.L20
.L21:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L22
	add	r3, r3, r2
.L20:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	sockets
	.size	tryget_socket, .-tryget_socket
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_socket, %function
alloc_socket:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L31:
	bl	sys_arch_protect
	str	r0, [fp, #-8]
	ldr	r1, .L32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r1, .L32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	sys_arch_unprotect
	ldr	r1, .L32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r1, .L32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #10
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	bne	.L27
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L28
.L27:
	mov	r3, #1
	b	.L29
.L28:
	mov	r3, #0
.L29:
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldr	r0, .L32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #12
	strh	r1, [r3]	@ movhi
	ldr	r1, .L32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #14
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r1, .L32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #16
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, .L32
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #17
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	b	.L30
.L26:
	ldr	r0, [fp, #-8]
	bl	sys_arch_unprotect
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r3, [fp, #-12]
	cmp	r3, #37
	ble	.L31
	mvn	r3, #0
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	sockets
	.size	alloc_socket, .-alloc_socket
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_socket, %function
free_socket:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strh	r2, [r3, #8]	@ movhi
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3, #16]
	bl	sys_arch_protect
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	sys_arch_unprotect
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L36
	ldr	r0, [fp, #-12]
	bl	pbuf_free
	b	.L37
.L36:
	ldr	r0, [fp, #-12]
	bl	netbuf_delete
.L37:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_socket, .-free_socket
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lwip_accept
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_accept, %function
lwip_accept:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #100
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	str	r2, [fp, #-104]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	strh	r3, [fp, #-86]	@ movhi
	ldr	r0, [fp, #-96]
	bl	get_socket
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L39
	mvn	r3, #0
	b	.L54
.L39:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	ldrb	r3, [r3, #40]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-72]
	ldrsh	r3, [r3, #10]
	cmp	r3, #0
	bgt	.L41
	mov	r3, #11
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L42
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-76]
	str	r3, [r2]
.L42:
	mvn	r3, #0
	b	.L54
.L41:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	sub	r2, fp, #84
	mov	r1, r2
	mov	r0, r3
	bl	netconn_accept
	mov	r3, r0
	strb	r3, [fp, #-87]
	ldrsb	r3, [fp, #-87]
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	beq	.L44
	mov	r3, #95
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L45
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r3, [r2]
	b	.L45
.L44:
	ldrsb	r3, [fp, #-87]
	cmn	r3, #15
	bne	.L46
	mov	r3, #22
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L45
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r3, [r2]
	b	.L45
.L46:
	ldrsb	r3, [fp, #-87]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L45
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-44]
	str	r3, [r2]
.L45:
	mvn	r3, #0
	b	.L54
.L43:
	ldr	r3, [fp, #-84]
	mov	r1, #1
	mov	r0, r3
	bl	alloc_socket
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmn	r3, #1
	bne	.L47
	ldr	r3, [fp, #-84]
	mov	r0, r3
	bl	netconn_delete
	mov	r3, #23
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L48
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
.L48:
	mvn	r3, #0
	b	.L54
.L47:
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L56+4
	add	r3, r3, r2
	str	r3, [fp, #-64]
	bl	sys_arch_protect
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-64]
	ldrsh	r3, [r3, #10]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #28]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-64]
	strh	r2, [r3, #10]	@ movhi
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-68]
	str	r2, [r3, #28]
	ldr	r0, [fp, #-60]
	bl	sys_arch_unprotect
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	beq	.L49
	ldr	r0, [fp, #-84]
	sub	r2, fp, #86
	sub	r1, fp, #80
	mov	r3, #0
	bl	netconn_getaddr
	mov	r3, r0
	strb	r3, [fp, #-87]
	ldrsb	r3, [fp, #-87]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-84]
	mov	r0, r3
	bl	netconn_delete
	mov	r1, #1
	ldr	r0, [fp, #-64]
	bl	free_socket
	ldrsb	r3, [fp, #-87]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L51
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-56]
	str	r3, [r2]
.L51:
	mvn	r3, #0
	b	.L54
.L50:
	sub	r3, fp, #32
	mov	r2, #16
	strb	r2, [r3]
	sub	r3, fp, #32
	mov	r2, #2
	strb	r2, [r3, #1]
	ldrh	r3, [fp, #-86]
	sub	r4, fp, #32
	mov	r0, r3
	bl	lwip_htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	sub	r3, fp, #32
	ldr	r2, [fp, #-80]
	str	r2, [r3, #4]
	sub	r3, fp, #32
	add	r3, r3, #8
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	ldrb	r2, [fp, #-32]	@ zero_extendqisi2
	cmp	r3, r2
	bls	.L52
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-104]
	str	r2, [r3]
.L52:
	ldr	r3, [fp, #-104]
	ldr	r2, [r3]
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-100]
	bl	memcpy
.L49:
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L53
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-52]
	str	r3, [r2]
.L53:
	ldr	r3, [fp, #-68]
.L54:
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC0
	.word	sockets
	.size	lwip_accept, .-lwip_accept
	.section	.rodata
	.align	2
.LC1:
	.ascii	"lwip_bind: invalid address\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lwip_bind
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_bind, %function
lwip_bind:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-40]
	bl	get_socket
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L59
	mvn	r3, #0
	b	.L67
.L59:
	ldr	r3, [fp, #-48]
	cmp	r3, #16
	bne	.L61
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L61
	ldr	r3, [fp, #-44]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L62
.L61:
	ldr	r0, .L69+4
	bl	bk_printf
	mvn	r0, #15
	bl	err_to_errno
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L63
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L63:
	mvn	r3, #0
	b	.L67
.L62:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	lwip_htons
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrh	r2, [fp, #-30]
	sub	r1, fp, #28
	mov	r0, r3
	bl	netconn_bind
	mov	r3, r0
	strb	r3, [fp, #-31]
	ldrsb	r3, [fp, #-31]
	cmp	r3, #0
	beq	.L64
	ldrsb	r3, [fp, #-31]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L65
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
.L65:
	mvn	r3, #0
	b	.L67
.L64:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L66
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r3, [r2]
.L66:
	mov	r3, #0
.L67:
	ldr	r2, .L69
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC2
	.word	.LC1
	.size	lwip_bind, .-lwip_bind
	.align	2
	.global	lwip_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_close, %function
lwip_close:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	tryget_event
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L72
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
	mov	r3, #0
	b	.L73
.L72:
	ldr	r0, [fp, #-32]
	bl	get_socket
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L74
	mvn	r3, #0
	b	.L73
.L74:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-20]
.L75:
	ldr	r0, [fp, #-32]
	bl	lwip_socket_drop_registered_memberships
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	netconn_delete
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldrsb	r3, [fp, #-21]
	cmp	r3, #0
	beq	.L76
	ldrsb	r3, [fp, #-21]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L77
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L77:
	mvn	r3, #0
	b	.L73
.L76:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	free_socket
	mov	r3, #0
.L73:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lwip_close, .-lwip_close
	.section	.rodata
	.align	2
.LC3:
	.ascii	"lwip_connect: invalid address\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lwip_connect
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_connect, %function
lwip_connect:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L91
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-40]
	bl	get_socket
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L79
	mvn	r3, #0
	b	.L80
.L79:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L81
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	netconn_disconnect
	mov	r3, r0
	strb	r3, [fp, #-31]
	b	.L82
.L81:
	ldr	r3, [fp, #-48]
	cmp	r3, #16
	bne	.L83
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L84
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L83
.L84:
	ldr	r3, [fp, #-44]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L85
.L83:
	ldr	r0, .L91+4
	bl	bk_printf
	mvn	r0, #15
	bl	err_to_errno
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L86
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r3, [r2]
.L86:
	mvn	r3, #0
	b	.L80
.L85:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	lwip_htons
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrh	r2, [fp, #-30]
	sub	r1, fp, #28
	mov	r0, r3
	bl	netconn_connect
	mov	r3, r0
	strb	r3, [fp, #-31]
.L82:
	ldrsb	r3, [fp, #-31]
	cmp	r3, #0
	beq	.L87
	ldrsb	r3, [fp, #-31]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L88
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L88:
	mvn	r3, #0
	b	.L80
.L87:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L89
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
.L89:
	mov	r3, #0
.L80:
	ldr	r2, .L91
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L90
	bl	__stack_chk_fail
.L90:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC4
	.word	.LC3
	.size	lwip_connect, .-lwip_connect
	.align	2
	.global	lwip_listen
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_listen, %function
lwip_listen:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	get_socket
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L94
	mvn	r3, #0
	b	.L95
.L94:
	ldr	r3, [fp, #-36]
	cmp	r3, #254
	bgt	.L96
	ldr	r3, [fp, #-36]
	bic	r3, r3, r3, asr #31
	b	.L97
.L96:
	mov	r3, #255
.L97:
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	and	r3, r3, #255
	mov	r1, r3
	mov	r0, r2
	bl	netconn_listen_with_backlog
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldrsb	r3, [fp, #-21]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	beq	.L99
	mov	r3, #95
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L100
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L100:
	mvn	r3, #0
	b	.L95
.L99:
	ldrsb	r3, [fp, #-21]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L101
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L101:
	mvn	r3, #0
	b	.L95
.L98:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L102
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
.L102:
	mov	r3, #0
.L95:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lwip_listen, .-lwip_listen
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lwip_recvfrom
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_recvfrom, %function
lwip_recvfrom:
	@ args = 8, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #100
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	str	r2, [fp, #-96]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-108]
	ldr	r3, .L139
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	strb	r3, [fp, #-83]
	ldr	r0, [fp, #-88]
	bl	get_socket
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L104
	mvn	r3, #0
	b	.L137
.L104:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L106
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-76]
	b	.L107
.L106:
	ldr	r3, [fp, #-100]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L108
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldrb	r3, [r3, #40]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L109
.L108:
	ldr	r3, [fp, #-56]
	ldrsh	r3, [r3, #10]
	cmp	r3, #0
	bgt	.L109
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	ble	.L110
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	and	r2, r3, #255
	ldr	r3, [fp, #-56]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L111
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
.L111:
	ldr	r3, [fp, #-64]
	b	.L137
.L110:
	mov	r3, #11
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	and	r2, r3, #255
	ldr	r3, [fp, #-56]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L112
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-52]
	str	r3, [r2]
.L112:
	mvn	r3, #0
	b	.L137
.L109:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	bne	.L113
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	sub	r2, fp, #76
	mov	r1, r2
	mov	r0, r3
	bl	netconn_recv_tcp_pbuf
	mov	r3, r0
	strb	r3, [fp, #-84]
	b	.L114
.L113:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	sub	r2, fp, #76
	mov	r1, r2
	mov	r0, r3
	bl	netconn_recv
	mov	r3, r0
	strb	r3, [fp, #-84]
.L114:
	ldrsb	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L115
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	ble	.L116
	ldrsb	r3, [fp, #-84]
	cmn	r3, #15
	bne	.L117
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	event_callback
.L117:
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	and	r2, r3, #255
	ldr	r3, [fp, #-56]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L118
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r3, [r2]
.L118:
	ldr	r3, [fp, #-64]
	b	.L137
.L116:
	ldrsb	r3, [fp, #-84]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	and	r2, r3, #255
	ldr	r3, [fp, #-56]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L119
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-44]
	str	r3, [r2]
.L119:
	ldrsb	r3, [fp, #-84]
	cmn	r3, #15
	bne	.L120
	mov	r3, #0
	b	.L137
.L120:
	mvn	r3, #0
	b	.L137
.L115:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-56]
	str	r2, [r3, #4]
.L107:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	bne	.L121
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-60]
	b	.L122
.L121:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	str	r3, [fp, #-60]
.L122:
	ldr	r3, [fp, #-60]
	ldrh	r3, [r3, #8]	@ movhi
	strh	r3, [fp, #-78]	@ movhi
	ldr	r3, [fp, #-56]
	ldrh	r3, [r3, #8]
	ldrh	r2, [fp, #-78]	@ movhi
	sub	r3, r2, r3
	strh	r3, [fp, #-78]	@ movhi
	ldrh	r3, [fp, #-78]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bls	.L123
	ldrh	r3, [fp, #-78]	@ movhi
	strh	r3, [fp, #-80]	@ movhi
	b	.L124
.L123:
	ldr	r3, [fp, #-96]
	strh	r3, [fp, #-80]	@ movhi
.L124:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-92]
	add	r1, r2, r3
	ldr	r3, [fp, #-56]
	ldrh	r3, [r3, #8]
	ldrh	r2, [fp, #-80]
	ldr	r0, [fp, #-60]
	bl	pbuf_copy_partial
	ldrh	r3, [fp, #-80]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	bne	.L125
	ldrh	r3, [fp, #-80]
	ldr	r2, [fp, #-96]
	sub	r3, r2, r3
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L126
	ldr	r3, [fp, #-60]
	ldrb	r3, [r3, #13]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L126
	ldr	r3, [fp, #-56]
	ldrsh	r3, [r3, #10]
	cmp	r3, #0
	ble	.L126
	ldr	r3, [fp, #-100]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L127
.L126:
	mov	r3, #1
	strb	r3, [fp, #-83]
	b	.L127
.L125:
	mov	r3, #1
	strb	r3, [fp, #-83]
.L127:
	ldrb	r3, [fp, #-83]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L128
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L128
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L128
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	bne	.L129
	sub	r3, fp, #72
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-56]
	ldr	r0, [r3]
	sub	r2, fp, #82
	mov	r3, #0
	ldr	r1, [fp, #-68]
	bl	netconn_getaddr
	b	.L130
.L129:
	ldr	r3, [fp, #-76]
	ldrh	r3, [r3, #12]
	strh	r3, [fp, #-82]	@ movhi
	ldr	r3, [fp, #-76]
	add	r3, r3, #8
	str	r3, [fp, #-68]
.L130:
	sub	r3, fp, #32
	mov	r2, #16
	strb	r2, [r3]
	sub	r3, fp, #32
	mov	r2, #2
	strb	r2, [r3, #1]
	ldrh	r3, [fp, #-82]
	sub	r4, fp, #32
	mov	r0, r3
	bl	lwip_htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	sub	r3, fp, #32
	ldr	r2, [fp, #-68]
	ldr	r2, [r2]
	str	r2, [r3, #4]
	sub	r3, fp, #32
	add	r3, r3, #8
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	ldrb	r2, [fp, #-32]	@ zero_extendqisi2
	cmp	r3, r2
	bls	.L131
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-108]
	str	r2, [r3]
.L131:
	ldr	r3, [fp, #-108]
	ldr	r2, [r3]
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	memcpy
.L128:
	ldr	r3, [fp, #-100]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L132
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	bne	.L133
	ldrh	r2, [fp, #-78]
	ldrh	r3, [fp, #-80]
	sub	r3, r2, r3
	cmp	r3, #0
	ble	.L133
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-56]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-56]
	ldrh	r2, [r3, #8]
	ldrh	r3, [fp, #-80]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-56]
	strh	r2, [r3, #8]	@ movhi
	b	.L132
.L133:
	ldr	r3, [fp, #-56]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-56]
	mov	r2, #0
	strh	r2, [r3, #8]	@ movhi
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	bne	.L134
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	pbuf_free
	b	.L135
.L134:
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	netbuf_delete
.L135:
	mov	r3, #0
	str	r3, [fp, #-76]
.L132:
	ldrb	r3, [fp, #-83]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L104
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	and	r2, r3, #255
	ldr	r3, [fp, #-56]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L136
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r3, [r2]
.L136:
	ldr	r3, [fp, #-64]
.L137:
	ldr	r2, .L139
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L138
	bl	__stack_chk_fail
.L138:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L140:
	.align	2
.L139:
	.word	.LC5
	.size	lwip_recvfrom, .-lwip_recvfrom
	.align	2
	.global	lwip_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_read, %function
lwip_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	lwip_recvfrom
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lwip_read, .-lwip_read
	.align	2
	.global	lwip_recv
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_recv, %function
lwip_recv:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	lwip_recvfrom
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lwip_recv, .-lwip_recv
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lwip_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_send, %function
lwip_send:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, .L154
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-32]
	bl	get_socket
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L146
	mvn	r3, #0
	b	.L152
.L146:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	beq	.L148
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	lwip_sendto
	mov	r3, r0
	b	.L152
.L148:
	ldr	r3, [fp, #-44]
	asr	r3, r3, #3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-44]
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-22]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	sub	r3, fp, #20
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	bl	netconn_write_partly
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldrsb	r3, [fp, #-21]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L149
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L149:
	ldrsb	r3, [fp, #-21]
	cmp	r3, #0
	bne	.L150
	ldr	r3, [fp, #-20]
	b	.L152
.L150:
	mvn	r3, #0
.L152:
	ldr	r2, .L154
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L153
	bl	__stack_chk_fail
.L153:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L155:
	.align	2
.L154:
	.word	.LC6
	.size	lwip_send, .-lwip_send
	.section	.rodata
	.align	2
.LC7:
	.ascii	"lwip_sendmsg: invalid msghdr\000"
	.align	2
.LC8:
	.ascii	"lwip_sendmsg: invalid msghdr iov\000"
	.align	2
.LC9:
	.ascii	"lwip_sendmsg: invalid msghdr name\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lwip_sendmsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_sendmsg, %function
lwip_sendmsg:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	ldr	r3, .L191
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	strb	r3, [fp, #-60]
	ldr	r0, [fp, #-64]
	bl	get_socket
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L157
	mvn	r3, #0
	b	.L189
.L157:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L159
	ldr	r0, .L191+4
	bl	bk_printf
	mvn	r0, #15
	bl	err_to_errno
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L160
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L160:
	mvn	r3, #0
	b	.L189
.L159:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L161
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L162
.L161:
	ldr	r0, .L191+8
	bl	bk_printf
	mvn	r0, #15
	bl	err_to_errno
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L163
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
.L163:
	mvn	r3, #0
	b	.L189
.L162:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	bne	.L164
	ldr	r3, [fp, #-72]
	asr	r3, r3, #3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-72]
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-59]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L165
.L170:
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-44]
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-68]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldrb	ip, [fp, #-59]	@ zero_extendqisi2
	sub	r3, fp, #56
	str	r3, [sp]
	mov	r3, ip
	bl	netconn_write_partly
	mov	r3, r0
	strb	r3, [fp, #-60]
	ldrsb	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L166
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-68]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L167
	b	.L168
.L166:
	ldrsb	r3, [fp, #-60]
	cmn	r3, #7
	bne	.L169
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L169
	mov	r3, #0
	strb	r3, [fp, #-60]
	b	.L168
.L169:
	mvn	r3, #0
	str	r3, [fp, #-48]
	b	.L168
.L167:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L165:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L170
.L168:
	ldrsb	r3, [fp, #-60]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L171
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r3, [r2]
.L171:
	ldr	r3, [fp, #-48]
	b	.L189
.L164:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L172
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L173
.L172:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	beq	.L173
	ldr	r0, .L191+12
	bl	bk_printf
	mvn	r0, #15
	bl	err_to_errno
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L174
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r3, [r2]
.L174:
	mvn	r3, #0
	b	.L189
.L173:
	bl	netbuf_new
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L175
	mvn	r0, #0
	bl	err_to_errno
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L176
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r3, [r2]
.L176:
	mvn	r3, #0
	b	.L189
.L175:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L177
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	lwip_htons
	mov	r3, r0
	strh	r3, [fp, #-58]	@ movhi
	ldr	r3, [fp, #-36]
	ldrh	r2, [fp, #-58]	@ movhi
	strh	r2, [r3, #12]	@ movhi
.L177:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L178
.L183:
	mov	r2, #2
	mov	r1, #0
	mov	r0, #0
	bl	pbuf_alloc
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L179
	mvn	r3, #0
	strb	r3, [fp, #-60]
	b	.L180
.L179:
	ldr	r3, [fp, #-68]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-32]
	strh	r2, [r3, #8]	@ movhi
	ldr	r3, [fp, #-32]
	ldrh	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	strh	r2, [r3, #10]	@ movhi
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L181
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L182
.L181:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	pbuf_cat
.L182:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L178:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L183
.L180:
	ldrsb	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L184
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldrh	r3, [r3, #8]
	str	r3, [fp, #-48]
.L184:
	ldrsb	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L185
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	netconn_send
	mov	r3, r0
	strb	r3, [fp, #-60]
.L185:
	ldr	r0, [fp, #-36]
	bl	netbuf_delete
	ldrsb	r3, [fp, #-60]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L186
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r3, [r2]
.L186:
	ldrsb	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L187
	ldr	r3, [fp, #-48]
	b	.L189
.L187:
	mvn	r3, #0
.L189:
	ldr	r2, .L191
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L190
	bl	__stack_chk_fail
.L190:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L192:
	.align	2
.L191:
	.word	.LC10
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	lwip_sendmsg, .-lwip_sendmsg
	.section	.rodata
	.align	2
.LC11:
	.ascii	"lwip_sendto: invalid address\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lwip_sendto
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_sendto, %function
lwip_sendto:
	@ args = 8, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-64]
	ldr	r3, .L211
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-48]
	bl	get_socket
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L194
	mvn	r3, #0
	b	.L209
.L194:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	bne	.L196
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	lwip_send
	mov	r3, r0
	b	.L209
.L196:
	ldr	r3, [fp, #-56]
	strh	r3, [fp, #-38]	@ movhi
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L197
	ldr	r3, [fp, #8]
	cmp	r3, #0
	beq	.L198
.L197:
	ldr	r3, [fp, #8]
	cmp	r3, #16
	bne	.L199
	ldr	r3, [fp, #-64]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L199
	ldr	r3, [fp, #-64]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L198
.L199:
	ldr	r0, .L211+4
	bl	bk_printf
	mvn	r0, #15
	bl	err_to_errno
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	and	r2, r3, #255
	ldr	r3, [fp, #-36]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L200
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r3, [r2]
.L200:
	mvn	r3, #0
	b	.L209
.L198:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L201
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-64]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	lwip_htons
	mov	r3, r0
	strh	r3, [fp, #-40]	@ movhi
	b	.L202
.L201:
	mov	r3, #0
	strh	r3, [fp, #-40]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-16]
.L202:
	ldrh	r3, [fp, #-40]	@ movhi
	strh	r3, [fp, #-12]	@ movhi
	ldrh	r2, [fp, #-38]
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	netbuf_alloc
	mov	r3, r0
	cmp	r3, #0
	bne	.L203
	mvn	r3, #0
	strb	r3, [fp, #-41]
	b	.L204
.L203:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldrh	r2, [fp, #-38]
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	strb	r3, [fp, #-41]
.L204:
	ldrsb	r3, [fp, #-41]
	cmp	r3, #0
	bne	.L205
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	netconn_send
	mov	r3, r0
	strb	r3, [fp, #-41]
.L205:
	sub	r3, fp, #24
	mov	r0, r3
	bl	netbuf_free
	ldrsb	r3, [fp, #-41]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	and	r2, r3, #255
	ldr	r3, [fp, #-36]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L206
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r3, [r2]
.L206:
	ldrsb	r3, [fp, #-41]
	cmp	r3, #0
	bne	.L207
	ldrh	r3, [fp, #-38]
	b	.L209
.L207:
	mvn	r3, #0
.L209:
	ldr	r2, .L211
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L210
	bl	__stack_chk_fail
.L210:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L212:
	.align	2
.L211:
	.word	.LC12
	.word	.LC11
	.size	lwip_sendto, .-lwip_sendto
	.align	2
	.global	lwip_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_socket, %function
lwip_socket:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	beq	.L214
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bgt	.L224
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L216
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	beq	.L217
	b	.L224
.L214:
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	ldr	r2, .L225
	mov	r1, r3
	mov	r0, #64
	bl	netconn_new_with_proto_and_callback
	str	r0, [fp, #-12]
	b	.L218
.L217:
	ldr	r3, [fp, #-24]
	cmp	r3, #136
	bne	.L219
	mov	r3, #33
	b	.L220
.L219:
	mov	r3, #32
.L220:
	ldr	r2, .L225
	mov	r1, #0
	mov	r0, r3
	bl	netconn_new_with_proto_and_callback
	str	r0, [fp, #-12]
	b	.L218
.L216:
	ldr	r2, .L225
	mov	r1, #0
	mov	r0, #16
	bl	netconn_new_with_proto_and_callback
	str	r0, [fp, #-12]
	b	.L218
.L224:
	bl	__errno
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mvn	r3, #0
	b	.L221
.L218:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L222
	bl	__errno
	mov	r3, r0
	mov	r2, #105
	str	r2, [r3]
	mvn	r3, #0
	b	.L221
.L222:
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	alloc_socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L223
	ldr	r0, [fp, #-12]
	bl	netconn_delete
	bl	__errno
	mov	r3, r0
	mov	r2, #23
	str	r2, [r3]
	mvn	r3, #0
	b	.L221
.L223:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
.L221:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L226:
	.align	2
.L225:
	.word	event_callback
	.size	lwip_socket, .-lwip_socket
	.align	2
	.global	lwip_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_write, %function
lwip_write:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	tryget_event
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L228
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	beq	.L229
	mvn	r3, #0
	b	.L230
.L229:
	bl	sys_arch_protect
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-28]
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-20]
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-20]
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L231
	ldr	r3, [fp, #-20]
	ldmia	r3, {r2-r3}
	ldr	r3, [fp, #-20]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L231
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	sys_sem_signal
.L231:
	ldr	r0, [fp, #-16]
	bl	sys_arch_unprotect
	ldr	r3, [fp, #-32]
	b	.L230
.L228:
	mov	r3, #0
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	lwip_send
	mov	r3, r0
.L230:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	lwip_write, .-lwip_write
	.section	.rodata
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lwip_writev
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_writev, %function
lwip_writev:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L235
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #36
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	lwip_sendmsg
	mov	r3, r0
	ldr	r2, .L235
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L234
	bl	__stack_chk_fail
.L234:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L236:
	.align	2
.L235:
	.word	.LC13
	.size	lwip_writev, .-lwip_writev
	.section	.rodata
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_selscan, %function
lwip_selscan:
	@ args = 12, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	str	r2, [fp, #-104]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-120]
	ldr	r3, .L269
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-76]
	sub	r3, fp, #32
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L238
.L239:
	ldr	r3, [fp, #-68]
	add	r2, r3, #1
	str	r2, [fp, #-68]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L238:
	ldr	r3, [fp, #-72]
	cmp	r3, #7
	bls	.L239
	sub	r3, fp, #24
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L240
.L241:
	ldr	r3, [fp, #-60]
	add	r2, r3, #1
	str	r2, [fp, #-60]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L240:
	ldr	r3, [fp, #-64]
	cmp	r3, #7
	bls	.L241
	sub	r3, fp, #16
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L242
.L243:
	ldr	r3, [fp, #-52]
	add	r2, r3, #1
	str	r2, [fp, #-52]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L242:
	ldr	r3, [fp, #-56]
	cmp	r3, #7
	bls	.L243
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L244
.L264:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	beq	.L245
	ldr	r3, [fp, #-80]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-80]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L246
.L245:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L247
	ldr	r3, [fp, #-80]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-80]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L246
.L247:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L267
	ldr	r3, [fp, #-80]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-108]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-80]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L267
.L246:
	bl	sys_arch_protect
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-80]
	bl	tryget_socket
	str	r0, [fp, #-44]
	ldr	r0, [fp, #-80]
	bl	tryget_event
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L250
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L251
.L250:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L252
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	b	.L253
.L252:
	mov	r3, #0
.L253:
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L254
	ldr	r3, [fp, #-44]
	ldrsh	r3, [r3, #10]
	b	.L255
.L254:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #12]
	lsl	r3, r3, #16
	asr	r3, r3, #16
.L255:
	strh	r3, [fp, #-86]	@ movhi
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L256
	ldr	r3, [fp, #-44]
	ldrh	r3, [r3, #12]
	b	.L257
.L256:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #16]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
.L257:
	strh	r3, [fp, #-84]	@ movhi
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L258
	ldr	r3, [fp, #-44]
	ldrh	r3, [r3, #14]
	b	.L259
.L258:
	mov	r3, #0
.L259:
	strh	r3, [fp, #-82]	@ movhi
	ldr	r0, [fp, #-48]
	bl	sys_arch_unprotect
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	beq	.L260
	ldr	r3, [fp, #-80]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-80]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L260
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L261
	ldrsh	r3, [fp, #-86]
	cmp	r3, #0
	ble	.L260
.L261:
	ldr	r3, [fp, #-80]
	lsr	r2, r3, #5
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-28]
	ldr	r1, [fp, #-80]
	and	r1, r1, #31
	mov	r0, #1
	lsl	r1, r0, r1
	orr	r1, r3, r1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-28]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L260:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L262
	ldr	r3, [fp, #-80]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-80]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L262
	ldrh	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L262
	ldr	r3, [fp, #-80]
	lsr	r2, r3, #5
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-20]
	ldr	r1, [fp, #-80]
	and	r1, r1, #31
	mov	r0, #1
	lsl	r1, r0, r1
	orr	r1, r3, r1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-20]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L262:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L268
	ldr	r3, [fp, #-80]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-108]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-80]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L268
	ldrh	r3, [fp, #-82]
	cmp	r3, #0
	beq	.L268
	ldr	r3, [fp, #-80]
	lsr	r2, r3, #5
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-12]
	ldr	r1, [fp, #-80]
	and	r1, r1, #31
	mov	r0, #1
	lsl	r1, r0, r1
	orr	r1, r3, r1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-12]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	b	.L268
.L251:
	ldr	r0, [fp, #-48]
	bl	sys_arch_unprotect
	b	.L249
.L267:
	nop
	b	.L249
.L268:
	nop
.L249:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L244:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L264
	ldr	r3, [fp, #-112]
	mov	r2, r3
	sub	r3, fp, #32
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-116]
	mov	r2, r3
	sub	r3, fp, #24
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-120]
	mov	r2, r3
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-76]
	ldr	r2, .L269
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L266
	bl	__stack_chk_fail
.L266:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L270:
	.align	2
.L269:
	.word	.LC14
	.size	lwip_selscan, .-lwip_selscan
	.align	2
	.global	lwip_eventfd
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_eventfd, %function
lwip_eventfd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L272
.L275:
	bl	sys_arch_protect
	str	r0, [fp, #-8]
	ldr	r1, .L276
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L273
	ldr	r1, .L276
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r2, #1
	str	r2, [r3]
	ldr	r1, .L276
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, .L276
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #12
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L276
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L276
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #20
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	sys_arch_unprotect
	ldr	r3, [fp, #-12]
	add	r3, r3, #38
	b	.L274
.L273:
	ldr	r0, [fp, #-8]
	bl	sys_arch_unprotect
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L272:
	ldr	r3, [fp, #-12]
	cmp	r3, #37
	ble	.L275
	mvn	r3, #0
.L274:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L277:
	.align	2
.L276:
	.word	events
	.size	lwip_eventfd, .-lwip_eventfd
	.section	.rodata
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lwip_select
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_select, %function
lwip_select:
	@ args = 4, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	str	r2, [fp, #-112]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-120]
	ldr	r3, .L321
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-100]
	sub	r3, fp, #16
	str	r3, [sp, #8]
	sub	r3, fp, #24
	str	r3, [sp, #4]
	sub	r3, fp, #32
	str	r3, [sp]
	ldr	r3, [fp, #-116]
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-104]
	bl	lwip_selscan
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L318
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L280
	ldr	r3, [fp, #-120]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L280
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L319
.L280:
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-108]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	sub	r3, fp, #60
	add	r3, r3, #24
	mov	r1, #0
	mov	r0, r3
	bl	sys_sem_new
	mov	r3, r0
	cmp	r3, #0
	beq	.L282
	bl	__errno
	mov	r3, r0
	mov	r2, #12
	str	r2, [r3]
	mvn	r3, #0
	b	.L315
.L282:
	bl	sys_arch_protect
	str	r0, [fp, #-80]
	ldr	r3, .L321+4
	ldr	r3, [r3]
	str	r3, [fp, #-60]
	ldr	r3, .L321+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L284
	ldr	r3, .L321+4
	ldr	r3, [r3]
	sub	r2, fp, #60
	str	r2, [r3, #4]
.L284:
	ldr	r2, .L321+4
	sub	r3, fp, #60
	str	r3, [r2]
	ldr	r3, .L321+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L321+8
	str	r3, [r2]
	ldr	r0, [fp, #-80]
	bl	sys_arch_unprotect
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L285
.L294:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L286
	ldr	r3, [fp, #-88]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-108]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-88]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L287
.L286:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L288
	ldr	r3, [fp, #-88]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-88]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L287
.L288:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L289
	ldr	r3, [fp, #-88]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-88]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L289
.L287:
	bl	sys_arch_protect
	str	r0, [fp, #-80]
	ldr	r0, [fp, #-88]
	bl	tryget_socket
	str	r0, [fp, #-76]
	ldr	r0, [fp, #-88]
	bl	tryget_event
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L290
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-76]
	strb	r2, [r3, #17]
	b	.L291
.L290:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L292
	ldr	r3, [fp, #-72]
	sub	r2, fp, #60
	add	r2, r2, #24
	str	r2, [r3, #20]
	b	.L291
.L292:
	mvn	r3, #0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-84]
	ldr	r0, [fp, #-80]
	bl	sys_arch_unprotect
	b	.L293
.L291:
	ldr	r0, [fp, #-80]
	bl	sys_arch_unprotect
.L289:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L285:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	blt	.L294
.L293:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	blt	.L295
	sub	r3, fp, #16
	str	r3, [sp, #8]
	sub	r3, fp, #24
	str	r3, [sp, #4]
	sub	r3, fp, #32
	str	r3, [sp]
	ldr	r3, [fp, #-116]
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-104]
	bl	lwip_selscan
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L295
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L296
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L297
.L296:
	ldr	r3, [fp, #-120]
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #4]
	add	r3, r3, #500
	ldr	r2, .L321+12
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L297
	mov	r3, #1
	str	r3, [fp, #-92]
.L297:
	sub	r3, fp, #60
	add	r3, r3, #24
	ldr	r1, [fp, #-92]
	mov	r0, r3
	bl	sys_arch_sem_wait
	str	r0, [fp, #-100]
.L295:
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L298
.L306:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L299
	ldr	r3, [fp, #-88]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-108]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-88]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L300
.L299:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L301
	ldr	r3, [fp, #-88]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-88]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L300
.L301:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L302
	ldr	r3, [fp, #-88]
	lsr	r2, r3, #5
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-88]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L302
.L300:
	bl	sys_arch_protect
	str	r0, [fp, #-80]
	ldr	r0, [fp, #-88]
	bl	tryget_socket
	str	r0, [fp, #-68]
	ldr	r0, [fp, #-88]
	bl	tryget_event
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L303
	ldr	r3, [fp, #-68]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L304
	ldr	r3, [fp, #-68]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-68]
	strb	r2, [r3, #17]
	b	.L304
.L303:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L305
	ldr	r3, [fp, #-64]
	mov	r2, #0
	str	r2, [r3, #20]
	b	.L304
.L305:
	mvn	r3, #0
	str	r3, [fp, #-96]
.L304:
	ldr	r0, [fp, #-80]
	bl	sys_arch_unprotect
.L302:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L298:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L306
	bl	sys_arch_protect
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L307
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	str	r2, [r3, #4]
.L307:
	ldr	r3, .L321+4
	ldr	r2, [r3]
	sub	r3, fp, #60
	cmp	r2, r3
	bne	.L308
	ldr	r3, [fp, #-60]
	ldr	r2, .L321+4
	str	r3, [r2]
	b	.L309
.L308:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-60]
	str	r2, [r3]
.L309:
	ldr	r3, .L321+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L321+8
	str	r3, [r2]
	ldr	r0, [fp, #-80]
	bl	sys_arch_unprotect
	sub	r3, fp, #60
	add	r3, r3, #24
	mov	r0, r3
	bl	sys_sem_free
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bge	.L310
	bl	__errno
	mov	r3, r0
	mov	r2, #9
	str	r2, [r3]
	mvn	r3, #0
	b	.L315
.L310:
	ldr	r3, [fp, #-100]
	cmn	r3, #1
	beq	.L320
	sub	r3, fp, #16
	str	r3, [sp, #8]
	sub	r3, fp, #24
	str	r3, [sp, #4]
	sub	r3, fp, #32
	str	r3, [sp]
	ldr	r3, [fp, #-116]
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-104]
	bl	lwip_selscan
	str	r0, [fp, #-96]
.L281:
.L318:
	nop
	b	.L317
.L319:
	nop
	b	.L317
.L320:
	nop
.L317:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L312
	ldr	r3, [fp, #-108]
	mov	r2, r3
	sub	r3, fp, #32
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
.L312:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L313
	ldr	r3, [fp, #-112]
	mov	r2, r3
	sub	r3, fp, #24
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
.L313:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L314
	ldr	r3, [fp, #-116]
	mov	r2, r3
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
.L314:
	ldr	r3, [fp, #-96]
.L315:
	ldr	r2, .L321
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L316
	bl	__stack_chk_fail
.L316:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L322:
	.align	2
.L321:
	.word	.LC15
	.word	select_cb_list
	.word	select_cb_ctr
	.word	274877907
	.size	lwip_select, .-lwip_select
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	event_callback, %function
event_callback:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, r2
	strh	r3, [fp, #-38]	@ movhi
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L346
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L325
	bl	sys_arch_protect
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bge	.L326
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L327
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #28]
.L327:
	ldr	r0, [fp, #-20]
	bl	sys_arch_unprotect
	b	.L323
.L326:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-20]
	bl	sys_arch_unprotect
.L325:
	ldr	r0, [fp, #-28]
	bl	get_socket
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L347
	bl	sys_arch_protect
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L348
.L332:
	.word	.L336
	.word	.L335
	.word	.L334
	.word	.L333
	.word	.L331
.L336:
	ldr	r3, [fp, #-12]
	ldrsh	r3, [r3, #10]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-12]
	strh	r2, [r3, #10]	@ movhi
	b	.L337
.L335:
	ldr	r3, [fp, #-12]
	ldrsh	r3, [r3, #10]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-12]
	strh	r2, [r3, #10]	@ movhi
	b	.L337
.L334:
	ldr	r3, [fp, #-12]
	mov	r2, #1
	strh	r2, [r3, #12]	@ movhi
	b	.L337
.L333:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strh	r2, [r3, #12]	@ movhi
	b	.L337
.L331:
	ldr	r3, [fp, #-12]
	mov	r2, #1
	strh	r2, [r3, #14]	@ movhi
	b	.L337
.L348:
	nop
.L337:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L349
	ldr	r0, [fp, #-20]
	bl	sys_arch_unprotect
	b	.L323
.L349:
	nop
.L338:
	ldr	r3, .L350
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L339
.L345:
	ldr	r3, .L350+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L340
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldrsh	r3, [r3, #10]
	cmp	r3, #0
	ble	.L341
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L341
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-28]
	lsr	r2, r2, #5
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-28]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L341
	mov	r3, #1
	str	r3, [fp, #-16]
.L341:
	ldr	r3, [fp, #-12]
	ldrh	r3, [r3, #12]
	cmp	r3, #0
	beq	.L342
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L342
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L342
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-28]
	lsr	r2, r2, #5
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-28]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L342
	mov	r3, #1
	str	r3, [fp, #-16]
.L342:
	ldr	r3, [fp, #-12]
	ldrh	r3, [r3, #14]
	cmp	r3, #0
	beq	.L343
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L343
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L343
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-28]
	lsr	r2, r2, #5
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-28]
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L343
	mov	r3, #1
	str	r3, [fp, #-16]
.L343:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L340
	ldr	r3, [fp, #-24]
	mov	r2, #1
	str	r2, [r3, #20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #24
	mov	r0, r3
	bl	sys_sem_signal
.L340:
	ldr	r0, [fp, #-20]
	bl	sys_arch_unprotect
	bl	sys_arch_protect
	str	r0, [fp, #-20]
	ldr	r3, .L350+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L344
	b	.L338
.L344:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L339:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L345
	ldr	r0, [fp, #-20]
	bl	sys_arch_unprotect
	b	.L323
.L346:
	nop
	b	.L323
.L347:
	nop
.L323:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L351:
	.align	2
.L350:
	.word	select_cb_list
	.word	select_cb_ctr
	.size	event_callback, .-event_callback
	.align	2
	.global	lwip_shutdown
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_shutdown, %function
lwip_shutdown:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	strb	r3, [fp, #-27]
	mov	r3, #0
	strb	r3, [fp, #-26]
	ldr	r0, [fp, #-32]
	bl	get_socket
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L353
	mvn	r3, #0
	b	.L354
.L353:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L355
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	beq	.L356
	mov	r3, #95
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L357
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L357:
	mvn	r3, #0
	b	.L354
.L355:
	mov	r3, #107
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L358
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r3, [r2]
.L358:
	mvn	r3, #0
	b	.L354
.L356:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L359
	mov	r3, #1
	strb	r3, [fp, #-27]
	b	.L360
.L359:
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L361
	mov	r3, #1
	strb	r3, [fp, #-26]
	b	.L360
.L361:
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	bne	.L362
	mov	r3, #1
	strb	r3, [fp, #-27]
	mov	r3, #1
	strb	r3, [fp, #-26]
	b	.L360
.L362:
	mov	r3, #22
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L363
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
.L363:
	mvn	r3, #0
	b	.L354
.L360:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r2, [fp, #-26]	@ zero_extendqisi2
	ldrb	r1, [fp, #-27]	@ zero_extendqisi2
	mov	r0, r3
	bl	netconn_shutdown
	mov	r3, r0
	strb	r3, [fp, #-25]
	ldrsb	r3, [fp, #-25]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L364
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L364:
	ldrsb	r3, [fp, #-25]
	cmp	r3, #0
	bne	.L365
	mov	r3, #0
	b	.L354
.L365:
	mvn	r3, #0
.L354:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lwip_shutdown, .-lwip_shutdown
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_getaddrname, %function
lwip_getaddrname:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	strb	r3, [fp, #-65]
	ldr	r3, .L376
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-56]
	bl	get_socket
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L368
	mvn	r3, #0
	b	.L374
.L368:
	ldr	r3, [fp, #-44]
	ldr	r0, [r3]
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	sub	r2, fp, #50
	sub	r1, fp, #48
	bl	netconn_getaddr
	mov	r3, r0
	strb	r3, [fp, #-51]
	ldrsb	r3, [fp, #-51]
	cmp	r3, #0
	beq	.L370
	ldrsb	r3, [fp, #-51]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L371
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r3, [r2]
.L371:
	mvn	r3, #0
	b	.L374
.L370:
	sub	r3, fp, #32
	mov	r2, #16
	strb	r2, [r3]
	sub	r3, fp, #32
	mov	r2, #2
	strb	r2, [r3, #1]
	ldrh	r3, [fp, #-50]
	sub	r4, fp, #32
	mov	r0, r3
	bl	lwip_htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	sub	r3, fp, #32
	ldr	r2, [fp, #-48]
	str	r2, [r3, #4]
	sub	r3, fp, #32
	add	r3, r3, #8
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	ldrb	r2, [fp, #-32]	@ zero_extendqisi2
	cmp	r3, r2
	bls	.L372
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-64]
	str	r2, [r3]
.L372:
	ldr	r3, [fp, #-64]
	ldr	r2, [r3]
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L373
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r3, [r2]
.L373:
	mov	r3, #0
.L374:
	ldr	r2, .L376
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L375
	bl	__stack_chk_fail
.L375:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L377:
	.align	2
.L376:
	.word	.LC16
	.size	lwip_getaddrname, .-lwip_getaddrname
	.align	2
	.global	lwip_getpeername
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_getpeername, %function
lwip_getpeername:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r3, #0
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	lwip_getaddrname
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lwip_getpeername, .-lwip_getpeername
	.align	2
	.global	lwip_getsockname
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_getsockname, %function
lwip_getsockname:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r3, #1
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	lwip_getaddrname
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lwip_getsockname, .-lwip_getsockname
	.align	2
	.global	lwip_getsockopt
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_getsockopt, %function
lwip_getsockopt:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-24]
	bl	get_socket
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L383
	mvn	r3, #0
	b	.L384
.L383:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L385
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L386
.L385:
	mov	r3, #14
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L387
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L387:
	mvn	r3, #0
	b	.L384
.L386:
	ldr	r0, .L391
	bl	sys_mutex_lock
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	lwip_getsockopt_impl
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldr	r0, .L391
	bl	sys_mutex_unlock
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L388
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L388:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L389
	mvn	r3, #0
	b	.L384
.L389:
	mov	r3, #0
.L384:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L392:
	.align	2
.L391:
	.word	lock_tcpip_core
	.size	lwip_getsockopt, .-lwip_getsockopt
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_getsockopt_impl, %function
lwip_getsockopt_impl:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	strb	r3, [fp, #-21]
	ldr	r0, [fp, #-32]
	bl	tryget_socket
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L394
	mov	r3, #9
	b	.L395
.L394:
	ldr	r3, [fp, #-36]
	ldr	r2, .L490
	cmp	r3, r2
	beq	.L396
	ldr	r3, [fp, #-36]
	cmp	r3, #4096
	bge	.L484
	ldr	r3, [fp, #-36]
	cmp	r3, #255
	beq	.L485
	ldr	r3, [fp, #-36]
	cmp	r3, #255
	bgt	.L484
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L399
	ldr	r3, [fp, #-36]
	cmp	r3, #6
	beq	.L400
	b	.L484
.L396:
	ldr	r3, [fp, #-40]
	cmp	r3, #32
	bgt	.L401
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bge	.L402
	b	.L486
.L413:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #4096
	sub	r3, r3, #5
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L486
.L405:
	.word	.L409
	.word	.L408
	.word	.L407
	.word	.L406
	.word	.L486
	.word	.L404
.L402:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #2
	cmp	r3, #30
	ldrls	pc, [pc, r3, asl #2]
	b	.L486
.L411:
	.word	.L412
	.word	.L486
	.word	.L410
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L410
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L486
	.word	.L410
.L401:
	ldr	r3, [fp, #-40]
	ldr	r2, .L490+4
	cmp	r3, r2
	bgt	.L486
	ldr	r3, [fp, #-40]
	ldr	r2, .L490+8
	cmp	r3, r2
	bge	.L413
	b	.L486
.L412:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #3
	bhi	.L414
	mov	r3, #22
	b	.L395
.L414:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L415
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L416
.L415:
	mov	r3, #22
	b	.L395
.L416:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	beq	.L417
	mov	r3, #92
	b	.L395
.L417:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L418
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #20]
	cmp	r3, #1
	bne	.L418
	ldr	r3, [fp, #-44]
	mov	r2, #1
	str	r2, [r3]
	b	.L420
.L418:
	ldr	r3, [fp, #-44]
	mov	r2, #0
	str	r2, [r3]
	b	.L420
.L410:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #3
	bhi	.L421
	mov	r3, #22
	b	.L395
.L421:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L422
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L423
.L422:
	mov	r3, #22
	b	.L395
.L423:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-40]
	and	r2, r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L420
.L406:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #3
	bhi	.L424
	mov	r3, #22
	b	.L395
.L424:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L425
	mov	r3, #22
	b	.L395
.L425:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #64
	beq	.L426
	cmp	r3, #64
	bhi	.L427
	cmp	r3, #16
	beq	.L428
	cmp	r3, #32
	beq	.L429
	b	.L427
.L426:
	ldr	r3, [fp, #-44]
	mov	r2, #3
	str	r2, [r3]
	b	.L487
.L428:
	ldr	r3, [fp, #-44]
	mov	r2, #1
	str	r2, [r3]
	b	.L487
.L429:
	ldr	r3, [fp, #-44]
	mov	r2, #2
	str	r2, [r3]
	b	.L487
.L427:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L420
.L487:
	b	.L420
.L407:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #3
	bhi	.L431
	mov	r3, #22
	b	.L395
.L431:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L432
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	cmp	r3, #115
	bne	.L433
.L432:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L433
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldrsb	r3, [r3, #12]
	mov	r0, r3
	bl	err_to_errno
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L433
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
.L433:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	cmp	r3, #255
	beq	.L434
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	mov	r2, r3
	b	.L435
.L434:
	mvn	r2, #0
.L435:
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	strb	r2, [r3, #16]
	b	.L420
.L409:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #7
	bhi	.L436
	mov	r3, #22
	b	.L395
.L436:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L437
	mov	r3, #22
	b	.L395
.L437:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #32]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L490+12
	umull	r1, r3, r2, r3
	lsr	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r1, [fp, #-8]
	ldr	r3, .L490+12
	umull	r2, r3, r1, r3
	lsr	r2, r3, #6
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3, #4]
	b	.L420
.L408:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #7
	bhi	.L438
	mov	r3, #22
	b	.L395
.L438:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L439
	mov	r3, #22
	b	.L395
.L439:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L490+12
	umull	r1, r3, r2, r3
	lsr	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r1, [fp, #-12]
	ldr	r3, .L490+12
	umull	r2, r3, r1, r3
	lsr	r2, r3, #6
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3, #4]
	b	.L420
.L404:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #3
	bhi	.L440
	mov	r3, #22
	b	.L395
.L440:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L441
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L442
.L441:
	mov	r3, #22
	b	.L395
.L442:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #32
	beq	.L443
	mov	r3, #92
	b	.L395
.L443:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	and	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L420
.L486:
	mov	r3, #92
	strb	r3, [fp, #-21]
	nop
.L420:
	b	.L444
.L399:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L488
.L447:
	.word	.L451
	.word	.L450
	.word	.L488
	.word	.L488
	.word	.L449
	.word	.L448
	.word	.L446
.L450:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #3
	bhi	.L452
	mov	r3, #22
	b	.L395
.L452:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L453
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L454
.L453:
	mov	r3, #22
	b	.L395
.L454:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L455
.L451:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #3
	bhi	.L456
	mov	r3, #22
	b	.L395
.L456:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L457
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L458
.L457:
	mov	r3, #22
	b	.L395
.L458:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L455
.L449:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L459
	mov	r3, #22
	b	.L395
.L459:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L460
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L461
.L460:
	mov	r3, #22
	b	.L395
.L461:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #32
	beq	.L462
	mov	r3, #92
	b	.L395
.L462:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r2, [r3, #28]	@ zero_extendqisi2
	ldr	r3, [fp, #-44]
	strb	r2, [r3]
	b	.L455
.L448:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #3
	bhi	.L463
	mov	r3, #22
	b	.L395
.L463:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L464
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L465
.L464:
	mov	r3, #22
	b	.L395
.L465:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #32
	beq	.L466
	mov	r3, #92
	b	.L395
.L466:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L455
.L446:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L467
	mov	r3, #22
	b	.L395
.L467:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L468
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L469
.L468:
	mov	r3, #22
	b	.L395
.L469:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L470
	ldr	r3, [fp, #-44]
	mov	r2, #1
	strb	r2, [r3]
	b	.L455
.L470:
	ldr	r3, [fp, #-44]
	mov	r2, #0
	strb	r2, [r3]
	b	.L455
.L488:
	mov	r3, #92
	strb	r3, [fp, #-21]
	nop
.L455:
	b	.L444
.L400:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #3
	bhi	.L472
	mov	r3, #22
	b	.L395
.L472:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L473
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L474
.L473:
	mov	r3, #22
	b	.L395
.L474:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	beq	.L475
	mov	r3, #92
	b	.L395
.L475:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L489
.L478:
	.word	.L482
	.word	.L481
	.word	.L480
	.word	.L479
	.word	.L477
.L482:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrh	r3, [r3, #30]
	and	r3, r3, #64
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L483
.L481:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #148]
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L483
.L480:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #148]
	ldr	r2, .L490+12
	umull	r1, r3, r2, r3
	lsr	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L483
.L479:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #152]
	ldr	r2, .L490+12
	umull	r1, r3, r2, r3
	lsr	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L483
.L477:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #156]
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L483
.L489:
	mov	r3, #92
	strb	r3, [fp, #-21]
	nop
.L483:
	b	.L444
.L485:
	mov	r3, #92
	strb	r3, [fp, #-21]
	nop
	b	.L444
.L484:
	mov	r3, #92
	strb	r3, [fp, #-21]
	nop
.L444:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
.L395:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L491:
	.align	2
.L490:
	.word	4095
	.word	4106
	.word	4101
	.word	274877907
	.size	lwip_getsockopt_impl, .-lwip_getsockopt_impl
	.align	2
	.global	lwip_setsockopt
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_setsockopt, %function
lwip_setsockopt:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	strb	r3, [fp, #-17]
	ldr	r0, [fp, #-24]
	bl	get_socket
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L493
	mvn	r3, #0
	b	.L494
.L493:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L495
	mov	r3, #14
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L496
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L496:
	mvn	r3, #0
	b	.L494
.L495:
	ldr	r0, .L500
	bl	sys_mutex_lock
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	lwip_setsockopt_impl
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldr	r0, .L500
	bl	sys_mutex_unlock
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L497
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L497:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L498
	mvn	r3, #0
	b	.L494
.L498:
	mov	r3, #0
.L494:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L501:
	.align	2
.L500:
	.word	lock_tcpip_core
	.size	lwip_setsockopt, .-lwip_setsockopt
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_setsockopt_impl, %function
lwip_setsockopt_impl:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, .L593
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-26]
	ldr	r0, [fp, #-32]
	bl	tryget_socket
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L503
	mov	r3, #9
	b	.L504
.L503:
	ldr	r3, [fp, #-36]
	ldr	r2, .L593+4
	cmp	r3, r2
	beq	.L505
	ldr	r3, [fp, #-36]
	cmp	r3, #4096
	bge	.L587
	ldr	r3, [fp, #-36]
	cmp	r3, #255
	beq	.L588
	ldr	r3, [fp, #-36]
	cmp	r3, #255
	bgt	.L587
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L508
	ldr	r3, [fp, #-36]
	cmp	r3, #6
	beq	.L509
	b	.L587
.L505:
	ldr	r3, [fp, #-40]
	ldr	r2, .L593+8
	cmp	r3, r2
	beq	.L510
	ldr	r3, [fp, #-40]
	ldr	r2, .L593+8
	cmp	r3, r2
	bgt	.L589
	ldr	r3, [fp, #-40]
	ldr	r2, .L593+12
	cmp	r3, r2
	beq	.L512
	ldr	r3, [fp, #-40]
	ldr	r2, .L593+12
	cmp	r3, r2
	bgt	.L589
	ldr	r3, [fp, #-40]
	cmp	r3, #32
	bgt	.L513
	ldr	r3, [fp, #-40]
	cmp	r3, #4
	blt	.L589
	ldr	r3, [fp, #-40]
	sub	r3, r3, #4
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, .L593+16
	and	r3, r3, r2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L514
	b	.L589
.L513:
	ldr	r3, [fp, #-40]
	ldr	r2, .L593+20
	cmp	r3, r2
	beq	.L515
	b	.L589
.L514:
	ldr	r3, [fp, #4]
	cmp	r3, #3
	bhi	.L516
	mov	r3, #22
	b	.L504
.L516:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L517
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L518
.L517:
	mov	r3, #22
	b	.L504
.L518:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L519
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	and	r2, r2, #255
	strb	r2, [r3, #8]
	b	.L521
.L519:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	mvn	r3, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, r2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	and	r2, r2, #255
	strb	r2, [r3, #8]
	b	.L521
.L515:
	ldr	r3, [fp, #4]
	cmp	r3, #7
	bhi	.L522
	mov	r3, #22
	b	.L504
.L522:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L523
	mov	r3, #22
	b	.L504
.L523:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r3, .L593+24
	umull	r0, r3, r1, r3
	lsr	r3, r3, #6
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r2, [r3, #32]
	b	.L521
.L512:
	ldr	r3, [fp, #4]
	cmp	r3, #7
	bhi	.L524
	mov	r3, #22
	b	.L504
.L524:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L525
	mov	r3, #22
	b	.L504
.L525:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r3, .L593+24
	umull	r0, r3, r1, r3
	lsr	r3, r3, #6
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r2, [r3, #36]
	b	.L521
.L510:
	ldr	r3, [fp, #4]
	cmp	r3, #3
	bhi	.L526
	mov	r3, #22
	b	.L504
.L526:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L527
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L528
.L527:
	mov	r3, #22
	b	.L504
.L528:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #32
	beq	.L529
	mov	r3, #92
	b	.L504
.L529:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L530
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r2, [r3, #16]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	orr	r2, r2, #1
	and	r2, r2, #255
	strb	r2, [r3, #16]
	b	.L521
.L530:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r2, [r3, #16]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	bic	r2, r2, #1
	and	r2, r2, #255
	strb	r2, [r3, #16]
	b	.L521
.L589:
	mov	r3, #92
	strb	r3, [fp, #-26]
	nop
.L521:
	b	.L532
.L508:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L590
.L535:
	.word	.L540
	.word	.L539
	.word	.L538
	.word	.L538
	.word	.L537
	.word	.L536
	.word	.L534
.L539:
	ldr	r3, [fp, #4]
	cmp	r3, #3
	bhi	.L541
	mov	r3, #22
	b	.L504
.L541:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L542
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L543
.L542:
	mov	r3, #22
	b	.L504
.L543:
	ldr	r3, [fp, #-44]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	and	r2, r2, #255
	strb	r2, [r3, #10]
	b	.L544
.L540:
	ldr	r3, [fp, #4]
	cmp	r3, #3
	bhi	.L545
	mov	r3, #22
	b	.L504
.L545:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L546
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L547
.L546:
	mov	r3, #22
	b	.L504
.L547:
	ldr	r3, [fp, #-44]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	and	r2, r2, #255
	strb	r2, [r3, #9]
	b	.L544
.L537:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L548
	mov	r3, #22
	b	.L504
.L548:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L549
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L550
.L549:
	mov	r3, #22
	b	.L504
.L550:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #32
	beq	.L551
	mov	r3, #92
	b	.L504
.L551:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-44]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3, #28]
	b	.L544
.L536:
	ldr	r3, [fp, #4]
	cmp	r3, #3
	bhi	.L552
	mov	r3, #22
	b	.L504
.L552:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L554
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L555
.L554:
	mov	r3, #22
	b	.L504
.L555:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #32
	beq	.L556
	mov	r3, #92
	b	.L504
.L556:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #24]
	b	.L544
.L534:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L557
	mov	r3, #22
	b	.L504
.L557:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L558
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L559
.L558:
	mov	r3, #22
	b	.L504
.L559:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #32
	beq	.L560
	mov	r3, #92
	b	.L504
.L560:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L561
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r2, [r3, #16]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	orr	r2, r2, #8
	and	r2, r2, #255
	strb	r2, [r3, #16]
	b	.L544
.L561:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrb	r2, [r3, #16]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	bic	r2, r2, #8
	and	r2, r2, #255
	strb	r2, [r3, #16]
	b	.L544
.L538:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #4]
	cmp	r3, #7
	bhi	.L563
	mov	r3, #22
	b	.L504
.L563:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L565
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L566
.L565:
	mov	r3, #22
	b	.L504
.L566:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #32
	beq	.L567
	mov	r3, #92
	b	.L504
.L567:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	bne	.L568
	sub	r2, fp, #20
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	lwip_socket_register_membership
	mov	r3, r0
	cmp	r3, #0
	bne	.L569
	mov	r3, #12
	strb	r3, [fp, #-26]
	mov	r3, #0
	strb	r3, [fp, #-25]
	b	.L570
.L569:
	sub	r2, fp, #20
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	igmp_joingroup
	mov	r3, r0
	strb	r3, [fp, #-25]
	b	.L570
.L568:
	sub	r2, fp, #20
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	igmp_leavegroup
	mov	r3, r0
	strb	r3, [fp, #-25]
	sub	r2, fp, #20
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	lwip_socket_unregister_membership
.L570:
	ldrsb	r3, [fp, #-25]
	cmp	r3, #0
	beq	.L592
	mov	r3, #99
	strb	r3, [fp, #-26]
	b	.L592
.L590:
	mov	r3, #92
	strb	r3, [fp, #-26]
	b	.L544
.L592:
	nop
.L544:
	b	.L532
.L509:
	ldr	r3, [fp, #4]
	cmp	r3, #3
	bhi	.L572
	mov	r3, #22
	b	.L504
.L572:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L573
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L574
.L573:
	mov	r3, #22
	b	.L504
.L574:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	and	r3, r3, #240
	cmp	r3, #16
	beq	.L575
	mov	r3, #92
	b	.L504
.L575:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L591
.L578:
	.word	.L582
	.word	.L581
	.word	.L580
	.word	.L579
	.word	.L577
.L582:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L583
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrh	r2, [r3, #30]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	orr	r2, r2, #64
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3, #30]	@ movhi
	b	.L585
.L583:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldrh	r2, [r3, #30]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	bic	r2, r2, #64
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3, #30]	@ movhi
	b	.L585
.L581:
	ldr	r3, [fp, #-44]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	str	r2, [r3, #148]
	b	.L585
.L580:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	str	r3, [r1, #148]
	b	.L585
.L579:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	str	r3, [r1, #152]
	b	.L585
.L577:
	ldr	r3, [fp, #-44]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	str	r2, [r3, #156]
	b	.L585
.L591:
	mov	r3, #92
	strb	r3, [fp, #-26]
	nop
.L585:
	b	.L532
.L588:
	mov	r3, #92
	strb	r3, [fp, #-26]
	nop
	b	.L532
.L587:
	mov	r3, #92
	strb	r3, [fp, #-26]
	nop
.L532:
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
.L504:
	ldr	r2, .L593
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L586
	bl	__stack_chk_fail
.L586:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L594:
	.align	2
.L593:
	.word	.LC17
	.word	4095
	.word	4106
	.word	4102
	.word	268435473
	.word	4101
	.word	274877907
	.size	lwip_setsockopt_impl, .-lwip_setsockopt_impl
	.align	2
	.global	lwip_ioctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_ioctl, %function
lwip_ioctl:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	get_socket
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L596
	mvn	r3, #0
	b	.L597
.L596:
	ldr	r3, [fp, #-28]
	ldr	r2, .L606
	cmp	r3, r2
	bne	.L605
	mov	r3, #0
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L599
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L599
	mov	r3, #1
	strb	r3, [fp, #-17]
.L599:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L600
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	orr	r2, r2, #2
	and	r2, r2, #255
	strb	r2, [r3, #40]
	b	.L601
.L600:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	bic	r2, r2, #2
	and	r2, r2, #255
	strb	r2, [r3, #40]
.L601:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L602
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L602:
	mov	r3, #0
	b	.L597
.L605:
	nop
	mov	r3, #38
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L603
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L603:
	mvn	r3, #0
.L597:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L607:
	.align	2
.L606:
	.word	-2147195266
	.size	lwip_ioctl, .-lwip_ioctl
	.align	2
	.global	lwip_fcntl
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_fcntl, %function
lwip_fcntl:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	get_socket
	str	r0, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L609
	mvn	r3, #0
	b	.L610
.L609:
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	beq	.L611
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	beq	.L612
	b	.L622
.L611:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #40]	@ zero_extendqisi2
	lsl	r3, r3, #13
	and	r3, r3, #16384
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L623
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	b	.L623
.L612:
	ldr	r3, [fp, #-40]
	bic	r3, r3, #16384
	cmp	r3, #0
	bne	.L616
	ldr	r3, [fp, #-40]
	and	r3, r3, #16384
	cmp	r3, #0
	beq	.L617
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	orr	r2, r2, #2
	and	r2, r2, #255
	strb	r2, [r3, #40]
	b	.L618
.L617:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	bic	r2, r2, #2
	and	r2, r2, #255
	strb	r2, [r3, #40]
.L618:
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L624
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	b	.L624
.L616:
	mov	r3, #38
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L624
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	b	.L624
.L622:
	mov	r3, #38
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L625
	bl	__errno
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L625
.L623:
	nop
	b	.L615
.L624:
	nop
	b	.L615
.L625:
	nop
.L615:
	ldr	r3, [fp, #-28]
.L610:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lwip_fcntl, .-lwip_fcntl
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_socket_register_membership, %function
lwip_socket_register_membership:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	get_socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L627
	mov	r3, #0
	b	.L628
.L627:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L629
.L631:
	ldr	r1, .L632
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L630
	ldr	r1, .L632
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3]
	ldr	r0, .L632
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #4
	str	r1, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	ldr	r0, .L632
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	str	r1, [r3]
	mov	r3, #1
	b	.L628
.L630:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L629:
	ldr	r3, [fp, #-12]
	cmp	r3, #37
	ble	.L631
	mov	r3, #0
.L628:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L633:
	.align	2
.L632:
	.word	socket_ipv4_multicast_memberships
	.size	lwip_socket_register_membership, .-lwip_socket_register_membership
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_socket_unregister_membership, %function
lwip_socket_unregister_membership:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	get_socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L640
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L637
.L639:
	ldr	r1, .L641
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L638
	ldr	r1, .L641
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L638
	ldr	r1, .L641
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L638
	ldr	r1, .L641
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L641
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L641
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r2, #0
	str	r2, [r3]
	b	.L634
.L638:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L637:
	ldr	r3, [fp, #-12]
	cmp	r3, #37
	ble	.L639
	b	.L634
.L640:
	nop
.L634:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L642:
	.align	2
.L641:
	.word	socket_ipv4_multicast_memberships
	.size	lwip_socket_unregister_membership, .-lwip_socket_unregister_membership
	.section	.rodata
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwip_socket_drop_registered_memberships, %function
lwip_socket_drop_registered_memberships:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L651
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-32]
	bl	get_socket
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L650
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L646
.L648:
	ldr	r1, .L651+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L647
	ldr	r1, .L651+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r1, .L651+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r1, .L651+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L651+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L651+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L651+8
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r0, [r3]
	sub	r2, fp, #20
	sub	r1, fp, #24
	mov	r3, #1
	bl	netconn_join_leave_group
.L647:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L646:
	ldr	r3, [fp, #-16]
	cmp	r3, #37
	ble	.L648
	b	.L643
.L650:
	nop
.L643:
	ldr	r3, .L651
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L649
	bl	__stack_chk_fail
.L649:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L652:
	.align	2
.L651:
	.word	.LC18
	.word	socket_ipv4_multicast_memberships
	.word	sockets
	.size	lwip_socket_drop_registered_memberships, .-lwip_socket_drop_registered_memberships
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
