	.file	"extr_22139.c_exec_sh.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	exec_sh
	.type	exec_sh, @function
exec_sh:
.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, 4096
	.cfi_def_cfa_offset 8232
	or	QWORD PTR [rsp], 0
	sub	rsp, 40
	.cfi_def_cfa_offset 8272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8216[rsp], rax
	xor	eax, eax
	mov	ebp, edi
	lea	rbx, 12[rsp]
	lea	r12, 16[rsp]
	lea	r13, 4112[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, rbx
	mov	edi, ebp
	call	FD_ISSET@PLT
	test	rax, rax
	jne	.L14
.L3:
	mov	rdi, rbx
	call	FD_ZERO@PLT
	mov	edi, DWORD PTR stdin[rip]
	call	fileno@PLT
	mov	rsi, rbx
	mov	edi, eax
	call	FD_SET@PLT
	mov	rsi, rbx
	mov	edi, ebp
	call	FD_SET@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, rbx
	mov	edi, 255
	call	select@PLT
	mov	edi, DWORD PTR stdin[rip]
	call	fileno@PLT
	mov	rsi, rbx
	mov	edi, eax
	call	FD_ISSET@PLT
	test	rax, rax
	je	.L2
	xor	esi, esi
	mov	edx, 4096
	mov	rdi, r12
	call	memset@PLT
	mov	edx, DWORD PTR stdin[rip]
	mov	esi, 4096
	mov	rdi, r12
	call	fgets@PLT
	mov	rdi, r12
	call	strlen@PLT
	mov	rsi, r12
	mov	edi, ebp
	mov	edx, eax
	call	write@PLT
	mov	rsi, rbx
	mov	edi, ebp
	call	FD_ISSET@PLT
	test	rax, rax
	je	.L3
.L14:
	xor	esi, esi
	mov	edx, 4096
	mov	rdi, r13
	call	memset@PLT
	mov	edx, 4096
	mov	rsi, r13
	mov	edi, ebp
	call	read@PLT
	test	rax, rax
	jg	.L4
	xor	edi, edi
	call	exit@PLT
.L4:
	mov	esi, DWORD PTR stdout[rip]
	mov	rdi, r13
	call	fputs@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	exec_sh, .-exec_sh
	.comm	stdout,4,4
	.comm	stdin,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_22139.c_exec_sh.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	exec_sh
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec_sh, %function
exec_sh:
	@ Volatile: function does not return.
	@ args = 0, pretend = 0, frame = 8200
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r7, lr}
	sub	sp, sp, #8192
	sub	sp, sp, #16
	add	r3, sp, #8192
	ldr	r2, .L15
	add	r3, r3, #12
	mov	r4, r0
	mov	r6, #0
	ldr	r5, .L15+4
	ldr	r7, .L15+8
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	b	.L3
.L2:
	mov	r0, r4
	add	r1, sp, #8
	bl	FD_ISSET
	cmp	r0, #0
	bne	.L14
.L3:
	add	r0, sp, #8
	bl	FD_ZERO
	ldr	r0, [r5]
	bl	fileno
	add	r1, sp, #8
	bl	FD_SET
	add	r1, sp, #8
	mov	r0, r4
	bl	FD_SET
	mov	r3, #0
	add	r1, sp, #8
	mov	r2, r3
	mov	r0, #255
	str	r6, [sp]
	bl	select
	ldr	r0, [r5]
	bl	fileno
	add	r1, sp, #8
	bl	FD_ISSET
	cmp	r0, #0
	beq	.L2
	mov	r2, #4096
	mov	r1, #0
	add	r0, sp, #12
	bl	memset
	ldr	r2, [r5]
	mov	r1, #4096
	add	r0, sp, #12
	bl	fgets
	add	r0, sp, #12
	bl	strlen
	add	r1, sp, #12
	mov	r2, r0
	mov	r0, r4
	bl	write
	b	.L2
.L14:
	add	r0, sp, #4096
	mov	r2, #4096
	mov	r1, #0
	add	r0, r0, #12
	bl	memset
	add	r1, sp, #4096
	mov	r2, #4096
	mov	r0, r4
	add	r1, r1, #12
	bl	read
	cmp	r0, #0
	bgt	.L4
	mov	r0, #0
	bl	exit
.L4:
	add	r0, sp, #4096
	ldr	r1, [r7]
	add	r0, r0, #12
	bl	fputs
	b	.L3
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	stdin
	.word	stdout
	.size	exec_sh, .-exec_sh
	.comm	stdout,4,4
	.comm	stdin,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
