	.file	"extr_telnet.c_telnet_wait_for_connection.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	telnet_wait_for_connection, @function
telnet_wait_for_connection:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR telnet_data[rip+64]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdx, rsp
	lea	rsi, 4[rsp]
	call	sl_Accept@PLT
	cmp	rax, QWORD PTR SL_EAGAIN[rip]
	mov	QWORD PTR telnet_data[rip], rax
	je	.L1
	test	rax, rax
	jle	.L8
	lea	rdi, telnet_data[rip+64]
	call	servers_close_socket@PLT
	mov	rdi, QWORD PTR telnet_data[rip]
	xor	esi, esi
	call	modusocket_socket_add@PLT
	mov	eax, DWORD PTR E_TELNET_STE_CONNECTED[rip]
	mov	QWORD PTR telnet_data[rip+56], 0
	mov	QWORD PTR telnet_data[rip+48], 0
	mov	DWORD PTR telnet_data[rip+36], eax
	mov	eax, DWORD PTR E_TELNET_STE_SUB_WELCOME[rip]
	mov	QWORD PTR telnet_data[rip+40], 0
	mov	DWORD PTR telnet_data[rip+32], eax
	mov	DWORD PTR telnet_data[rip+8], 1
	mov	QWORD PTR telnet_data[rip+24], 0
	mov	QWORD PTR telnet_data[rip+16], 0
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	eax, eax
	call	telnet_reset@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	telnet_wait_for_connection, .-telnet_wait_for_connection
	.comm	telnet_data,72,32
	.comm	SL_EAGAIN,8,8
	.comm	E_TELNET_STE_SUB_WELCOME,4,4
	.comm	E_TELNET_STE_CONNECTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_telnet.c_telnet_wait_for_connection.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	telnet_wait_for_connection, %function
telnet_wait_for_connection:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L10
	sub	sp, sp, #16
	ldr	r3, .L10+4
	ldr	r0, [r4, #36]
	add	r2, sp, #4
	add	r1, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	sl_Accept
	ldr	r3, .L10+8
	str	r0, [r4]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L1
	cmp	r0, #0
	ble	.L8
	add	r0, r4, #36
	bl	servers_close_socket
	mov	r1, #0
	ldr	r0, [r4]
	bl	modusocket_socket_add
	mov	r3, #0
	mov	r2, #1
	ldr	r0, .L10+12
	ldr	r1, .L10+16
	ldr	r0, [r0]
	ldr	r1, [r1]
	stmib	r4, {r2, r3}
	str	r0, [r4, #20]
	str	r1, [r4, #16]
	str	r3, [r4, #32]
	str	r3, [r4, #28]
	str	r3, [r4, #24]
	str	r3, [r4, #12]
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L8:
	bl	telnet_reset
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	telnet_data
	.word	.LC0
	.word	SL_EAGAIN
	.word	E_TELNET_STE_CONNECTED
	.word	E_TELNET_STE_SUB_WELCOME
	.size	telnet_wait_for_connection, .-telnet_wait_for_connection
	.comm	telnet_data,40,4
	.comm	SL_EAGAIN,4,4
	.comm	E_TELNET_STE_SUB_WELCOME,4,4
	.comm	E_TELNET_STE_CONNECTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
