	.file	"extr_30399.c_shell.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[-] select"
	.text
	.p2align 4
	.globl	shell
	.type	shell, @function
shell:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 4096
	.cfi_def_cfa_offset 4136
	or	QWORD PTR [rsp], 0
	sub	rsp, 40
	.cfi_def_cfa_offset 4176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 4120[rsp], rax
	xor	eax, eax
	mov	rbp, rdi
	mov	r12, rsi
	lea	rbx, 12[rsp]
	lea	r13, 16[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, rbx
	call	FD_ISSET@PLT
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, 4096
	mov	rsi, r13
	call	read@PLT
	mov	rdx, rax
	test	rax, rax
	jle	.L1
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, r13
	call	write@PLT
.L4:
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbx
	call	FD_ISSET@PLT
	test	rax, rax
	jne	.L16
.L6:
	mov	rdi, rbx
	call	FD_ZERO@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, rbx
	call	FD_SET@PLT
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbx
	call	FD_SET@PLT
	mov	esi, DWORD PTR [r12]
	mov	edi, DWORD PTR 0[rbp]
	call	MAX@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	lea	rdi, 1[rax]
	mov	rsi, rbx
	call	select@PLT
	test	rax, rax
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
.L1:
	mov	rax, QWORD PTR 4120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 4136
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR [r12]
	mov	edx, 4096
	mov	rsi, r13
	call	read@PLT
	mov	rdx, rax
	test	rax, rax
	jle	.L1
	mov	edi, DWORD PTR 4[r12]
	mov	rsi, r13
	call	write@PLT
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	shell, .-shell
	.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_30399.c_shell.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[-] select\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	shell
	.syntax unified
	.arm
	.fpu softvfp
	.type	shell, %function
shell:
	@ args = 0, pretend = 0, frame = 4104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #4096
	sub	sp, sp, #16
	add	r3, sp, #4096
	ldr	r2, .L18
	add	r3, r3, #12
	mov	r4, r0
	mov	r5, r1
	mov	r6, #0
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	b	.L6
.L2:
	ldr	r0, [r4]
	add	r1, sp, #8
	bl	FD_ISSET
	cmp	r0, #0
	beq	.L4
	mov	r2, #4096
	ldr	r0, [r4]
	add	r1, sp, #12
	bl	read
	subs	r2, r0, #0
	ble	.L1
	ldr	r0, [r4, #4]
	add	r1, sp, #12
	bl	write
.L4:
	ldr	r0, [r5]
	add	r1, sp, #8
	bl	FD_ISSET
	cmp	r0, #0
	bne	.L16
.L6:
	add	r0, sp, #8
	bl	FD_ZERO
	add	r1, sp, #8
	ldr	r0, [r4]
	bl	FD_SET
	add	r1, sp, #8
	ldr	r0, [r5]
	bl	FD_SET
	ldr	r1, [r5]
	ldr	r0, [r4]
	bl	MAX
	mov	r3, #0
	add	r0, r0, #1
	mov	r2, r3
	str	r6, [sp]
	add	r1, sp, #8
	bl	select
	cmp	r0, #0
	bge	.L2
	ldr	r0, .L18+4
	bl	perror
.L1:
	add	r3, sp, #4096
	ldr	r2, .L18
	add	r3, r3, #12
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L17
	add	sp, sp, #4096
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	mov	r2, #4096
	ldr	r0, [r5]
	add	r1, sp, #12
	bl	read
	subs	r2, r0, #0
	ble	.L1
	ldr	r0, [r5, #4]
	add	r1, sp, #12
	bl	write
	b	.L6
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	.LC0
	.size	shell, .-shell
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
