	.file	"95220.c"
	.intel_syntax noprefix
	.text
	.globl	line
	.bss
	.align 32
	.type	line, @object
	.size	line, 256
line:
	.zero	256
	.text
	.globl	read_line
	.type	read_line, @function
read_line:
.LFB6:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L2
.L7:
	lea	rax, -17[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jle	.L9
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 10
	je	.L10
	movzx	edx, BYTE PTR -17[rbp]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, line[rip]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -16[rbp], 1
.L2:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 254
	jbe	.L7
	jmp	.L6
.L9:
	nop
	jmp	.L6
.L10:
	nop
.L6:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, line[rip]
	mov	BYTE PTR [rax+rdx], 0
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_line, .-read_line
	.section	.rodata
.LC0:
	.string	"too big"
.LC1:
	.string	"solution_exe"
.LC2:
	.string	"internal error"
.LC3:
	.string	"error on read"
	.text
	.globl	load_elf
	.type	load_elf, @function
load_elf:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2096
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	read_line
	lea	rdi, line[rip]
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -2080[rbp], rax
	cmp	QWORD PTR -2080[rbp], 31457280
	jbe	.L12
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L20
.L12:
	mov	esi, 3
	lea	rdi, .LC1[rip]
	call	memfd_create@PLT
	mov	DWORD PTR -2084[rbp], eax
	cmp	DWORD PTR -2084[rbp], 0
	jns	.L15
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L20
.L18:
	mov	eax, 2048
	cmp	QWORD PTR -2080[rbp], 2048
	cmovbe	rax, QWORD PTR -2080[rbp]
	mov	rdx, rax
	lea	rax, -2064[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	QWORD PTR -2072[rbp], rax
	cmp	QWORD PTR -2072[rbp], 0
	jg	.L16
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L20
.L16:
	mov	rdx, QWORD PTR -2072[rbp]
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2084[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	QWORD PTR -2072[rbp], rax
	je	.L17
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L20
.L17:
	mov	rax, QWORD PTR -2072[rbp]
	sub	QWORD PTR -2080[rbp], rax
.L15:
	cmp	QWORD PTR -2080[rbp], 0
	jne	.L18
	mov	eax, DWORD PTR -2084[rbp]
	mov	edx, 15
	mov	esi, 1033
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	je	.L19
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -2084[rbp]
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	load_elf, .-load_elf
	.section	.rodata
.LC4:
	.string	"/root/helper"
	.text
	.globl	execute_helper
	.type	execute_helper, @function
execute_helper:
.LFB8:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rcx, rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socketpair@PLT
	test	eax, eax
	je	.L23
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L27
.L23:
	call	fork@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L25
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L27
.L25:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L26
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, 0
	lea	rsi, .LC4[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	execl@PLT
	call	abort@PLT
.L26:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
.L27:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	execute_helper, .-execute_helper
	.section	.rodata
.LC5:
	.string	"/proc/%d/fd/%d"
.LC6:
	.string	"/tmp/sboxchroot"
.LC7:
	.string	"chown"
.LC8:
	.string	"/root/nsjail"
.LC9:
	.string	"-Q"
.LC10:
	.string	"--pass_fd"
.LC11:
	.string	"37"
.LC12:
	.string	"-u"
.LC13:
	.string	"1000:1339"
.LC14:
	.string	"-g"
.LC15:
	.string	"--rw"
.LC16:
	.string	"--chroot"
.LC17:
	.string	"--proc_rw"
.LC18:
	.string	"--execute_fd"
.LC19:
	.string	"--disable_rlimits"
.LC20:
	.string	"--"
	.text
	.globl	execute_in_jail
	.type	execute_in_jail, @function
execute_in_jail:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 192
	mov	DWORD PTR -4276[rbp], edi
	mov	DWORD PTR -4280[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	esi, eax
	mov	edx, DWORD PTR -4276[rbp]
	lea	rax, -4112[rbp]
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	call	fork@PLT
	mov	DWORD PTR -4260[rbp], eax
	cmp	DWORD PTR -4260[rbp], 0
	jne	.L30
	mov	edx, 1339
	mov	esi, 1339
	lea	rdi, .LC6[rip]
	call	chown@PLT
	test	eax, eax
	je	.L31
	lea	rdi, .LC7[rip]
	call	perror@PLT
	call	abort@PLT
.L31:
	mov	eax, DWORD PTR -4280[rbp]
	mov	esi, 37
	mov	edi, eax
	call	dup2@PLT
	lea	rax, .LC8[rip]
	mov	QWORD PTR -4256[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -4248[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -4240[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -4232[rbp], rax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -4224[rbp], rax
	lea	rax, .LC13[rip]
	mov	QWORD PTR -4216[rbp], rax
	lea	rax, .LC14[rip]
	mov	QWORD PTR -4208[rbp], rax
	lea	rax, .LC13[rip]
	mov	QWORD PTR -4200[rbp], rax
	lea	rax, .LC15[rip]
	mov	QWORD PTR -4192[rbp], rax
	lea	rax, .LC16[rip]
	mov	QWORD PTR -4184[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -4176[rbp], rax
	lea	rax, .LC17[rip]
	mov	QWORD PTR -4168[rbp], rax
	lea	rax, .LC18[rip]
	mov	QWORD PTR -4160[rbp], rax
	lea	rax, .LC19[rip]
	mov	QWORD PTR -4152[rbp], rax
	lea	rax, .LC20[rip]
	mov	QWORD PTR -4144[rbp], rax
	lea	rax, -4112[rbp]
	mov	QWORD PTR -4136[rbp], rax
	mov	QWORD PTR -4128[rbp], 0
	lea	rax, -4256[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	execv@PLT
	call	abort@PLT
.L30:
	mov	eax, DWORD PTR -4280[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4260[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	execute_in_jail, .-execute_in_jail
	.section	.rodata
.LC21:
	.string	"ok"
.LC22:
	.string	"started"
.LC23:
	.string	"exited"
.LC24:
	.string	"killed"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	load_elf
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L35
	mov	eax, -1
	jmp	.L42
.L35:
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	eax, 0
	call	execute_helper
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jns	.L37
	mov	eax, -1
	jmp	.L42
.L37:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	execute_in_jail
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L38
	mov	eax, -1
	jmp	.L42
.L38:
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rcx, -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	cmp	DWORD PTR -12[rbp], eax
	je	.L39
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L42
.L39:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L40
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -24[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	je	.L41
	mov	eax, -1
	jmp	.L42
.L40:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
.L41:
	mov	eax, 0
.L42:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.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	"95220.c"
	.text
	.comm	line,256,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_line, %function
read_line:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L7:
	sub	r3, fp, #17
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L9
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L10
	ldrb	r1, [fp, #-17]	@ zero_extendqisi2
	ldr	r2, .L11+4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #254
	bls	.L7
	b	.L6
.L9:
	nop
	b	.L6
.L10:
	nop
.L6:
	ldr	r2, .L11+4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	line
	.size	read_line, .-read_line
	.section	.rodata
	.align	2
.LC1:
	.ascii	"too big\000"
	.align	2
.LC2:
	.ascii	"solution_exe\000"
	.align	2
.LC3:
	.ascii	"internal error\000"
	.align	2
.LC4:
	.ascii	"error on read\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_elf
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_elf, %function
load_elf:
	@ args = 0, pretend = 0, frame = 2064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	read_line
	ldr	r0, .L24+4
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-2068]
	ldr	r3, [fp, #-2068]
	cmp	r3, #31457280
	bls	.L14
	ldr	r0, .L24+8
	bl	puts
	mvn	r3, #0
	b	.L22
.L14:
	mov	r1, #3
	ldr	r0, .L24+12
	bl	memfd_create
	str	r0, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L24+16
	bl	puts
	mvn	r3, #0
	b	.L22
.L20:
	ldr	r3, [fp, #-2068]
	cmp	r3, #2048
	movcc	r2, r3
	movcs	r2, #2048
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	bgt	.L18
	ldr	r0, .L24+20
	bl	puts
	mvn	r3, #0
	b	.L22
.L18:
	ldr	r2, [fp, #-2060]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2064]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-2060]
	cmp	r3, r2
	beq	.L19
	ldr	r0, .L24+16
	bl	puts
	mvn	r3, #0
	b	.L22
.L19:
	ldr	r3, [fp, #-2060]
	ldr	r2, [fp, #-2068]
	sub	r3, r2, r3
	str	r3, [fp, #-2068]
.L17:
	ldr	r3, [fp, #-2068]
	cmp	r3, #0
	bne	.L20
	mov	r2, #15
	ldr	r1, .L24+24
	ldr	r0, [fp, #-2064]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L24+16
	bl	puts
	mvn	r3, #0
	b	.L22
.L21:
	ldr	r3, [fp, #-2064]
.L22:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC5
	.word	line
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1033
	.size	load_elf, .-load_elf
	.section	.rodata
	.align	2
.LC6:
	.ascii	"/root/helper\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_helper
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_helper, %function
execute_helper:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socketpair
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L33+4
	bl	puts
	mvn	r3, #0
	b	.L31
.L27:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L29
	ldr	r0, .L33+4
	bl	puts
	mvn	r3, #0
	b	.L31
.L29:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	mov	r2, #0
	ldr	r1, .L33+8
	ldr	r0, .L33+8
	bl	execl
	bl	abort
.L30:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
.L31:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC7
	.word	.LC3
	.word	.LC6
	.size	execute_helper, .-execute_helper
	.section	.rodata
	.align	2
.LC8:
	.ascii	"/proc/%d/fd/%d\000"
	.align	2
.LC9:
	.ascii	"/tmp/sboxchroot\000"
	.align	2
.LC10:
	.ascii	"chown\000"
	.align	2
.LC11:
	.ascii	"/root/nsjail\000"
	.align	2
.LC12:
	.ascii	"-Q\000"
	.align	2
.LC13:
	.ascii	"--pass_fd\000"
	.align	2
.LC14:
	.ascii	"37\000"
	.align	2
.LC15:
	.ascii	"-u\000"
	.align	2
.LC16:
	.ascii	"1000:1339\000"
	.align	2
.LC17:
	.ascii	"-g\000"
	.align	2
.LC18:
	.ascii	"--rw\000"
	.align	2
.LC19:
	.ascii	"--chroot\000"
	.align	2
.LC20:
	.ascii	"--proc_rw\000"
	.align	2
.LC21:
	.ascii	"--execute_fd\000"
	.align	2
.LC22:
	.ascii	"--disable_rlimits\000"
	.align	2
.LC23:
	.ascii	"--\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_in_jail
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_in_jail, %function
execute_in_jail:
	@ args = 0, pretend = 0, frame = 4184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4160
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-84]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-88]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	getpid
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-84]
	ldr	r1, .L40+4
	bl	sprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4, #-76]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	cmp	r3, #0
	bne	.L36
	ldr	r2, .L40+8
	ldr	r1, .L40+8
	ldr	r0, .L40+12
	bl	chown
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	ldr	r0, .L40+16
	bl	perror
	bl	abort
.L37:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #37
	ldr	r0, [r3, #-88]
	bl	dup2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+20
	str	r3, [r2, #-72]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+24
	str	r3, [r2, #-68]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+28
	str	r3, [r2, #-64]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+32
	str	r3, [r2, #-60]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+36
	str	r3, [r2, #-56]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+40
	str	r3, [r2, #-52]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+44
	str	r3, [r2, #-48]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+40
	str	r3, [r2, #-44]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+48
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+52
	str	r3, [r2, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+12
	str	r3, [r2, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+56
	str	r3, [r2, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+60
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+64
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L40+68
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L40+20
	bl	execv
	bl	abort
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-88]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC24
	.word	.LC8
	.word	1339
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	execute_in_jail, .-execute_in_jail
	.section	.rodata
	.align	2
.LC25:
	.ascii	"ok\000"
	.align	2
.LC26:
	.ascii	"started\000"
	.align	2
.LC27:
	.ascii	"exited\000"
	.align	2
.LC28:
	.ascii	"killed\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	load_elf
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L43
	mvn	r3, #0
	b	.L50
.L43:
	ldr	r0, .L52+4
	bl	puts
	bl	execute_helper
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L45
	mvn	r3, #0
	b	.L50
.L45:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	execute_in_jail
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L46
	mvn	r3, #0
	b	.L50
.L46:
	ldr	r0, .L52+8
	bl	puts
	sub	r3, fp, #24
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	waitpid
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	beq	.L47
	ldr	r0, .L52+12
	bl	puts
	mvn	r3, #0
	b	.L50
.L47:
	ldr	r3, [fp, #-24]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L48
	ldr	r0, .L52+16
	bl	puts
	ldr	r3, [fp, #-24]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L49
	mvn	r3, #0
	b	.L50
.L48:
	mov	r1, #9
	ldr	r0, [fp, #-12]
	bl	kill
	ldr	r0, .L52+20
	bl	puts
.L49:
	mov	r3, #0
.L50:
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC29
	.word	.LC25
	.word	.LC26
	.word	.LC3
	.word	.LC27
	.word	.LC28
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
