	.file	"73383.c"
	.intel_syntax noprefix
	.text
	.type	close_range, @function
close_range:
.LFB0:
	.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	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 1023
	jbe	.L3
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	close_range, .-close_range
	.globl	close_execve
	.type	close_execve, @function
close_execve:
.LFB1:
	.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	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -88[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -40[rbp], 0
	jmp	.L6
.L10:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	je	.L7
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	dup@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L8
	mov	eax, -1
	jmp	.L20
.L8:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR [rdx], eax
.L7:
	add	QWORD PTR -40[rbp], 1
.L6:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -88[rbp]
	jb	.L10
	mov	DWORD PTR -48[rbp], 0
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	je	.L12
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -48[rbp]
	mov	esi, edx
	mov	edi, eax
	call	dup2@PLT
	cmp	eax, -1
	jne	.L13
	mov	eax, -1
	jmp	.L20
.L12:
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L13
	mov	eax, -1
	jmp	.L20
.L13:
	add	DWORD PTR -48[rbp], 1
.L11:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	cmp	QWORD PTR -88[rbp], rax
	ja	.L14
	mov	rax, QWORD PTR -88[rbp]
	mov	edi, eax
	call	close_range
	cmp	eax, -1
	jne	.L15
	mov	eax, -1
	jmp	.L20
.L15:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 7
	call	getrlimit@PLT
	test	eax, eax
	jns	.L16
	mov	eax, -1
	jmp	.L20
.L16:
	mov	QWORD PTR -32[rbp], 1024
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 7
	call	setrlimit@PLT
	test	eax, eax
	jns	.L17
	mov	eax, -1
	jmp	.L20
.L17:
	cmp	QWORD PTR -72[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -72[rbp]
	jmp	.L19
.L18:
	mov	rax, QWORD PTR environ[rip]
.L19:
	mov	rsi, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, rax
	mov	rdi, rcx
	call	execve@PLT
.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
.LFE1:
	.size	close_execve, .-close_execve
	.globl	vfork_close_execve
	.type	vfork_close_execve, @function
vfork_close_execve:
.LFB2:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	DWORD PTR -8[rbp], 0
	call	vfork@PLT
	endbr64
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L28
	mov	eax, -1
	jmp	.L25
.L28:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L26
	mov	rdi, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	close_execve
	mov	DWORD PTR -8[rbp], eax
	mov	edi, 1
	call	_exit@PLT
.L26:
	mov	eax, DWORD PTR -8[rbp]
	test	eax, eax
	je	.L27
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L25
.L27:
	mov	eax, DWORD PTR -4[rbp]
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	vfork_close_execve, .-vfork_close_execve
	.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	"73383.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_range, %function
close_range:
	@ 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]
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #1024
	bcc	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	close_range, .-close_range
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	close_execve
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_execve, %function
close_execve:
	@ 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, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L6
.L10:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L7
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	dup
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L8
	mvn	r3, #0
	b	.L20
.L8:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
.L7:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L6:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bcc	.L10
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L11
.L14:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L12
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	dup2
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	mvn	r3, #0
	b	.L20
.L12:
	ldr	r0, [fp, #-24]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	mvn	r3, #0
	b	.L20
.L13:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L11:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #4]
	cmp	r2, r3
	bhi	.L14
	ldr	r0, [fp, #4]
	bl	close_range
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	mvn	r3, #0
	b	.L20
.L15:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #7
	bl	getrlimit
	mov	r3, r0
	cmp	r3, #0
	bge	.L16
	mvn	r3, #0
	b	.L20
.L16:
	mov	r3, #1024
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #7
	bl	setrlimit
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	mvn	r3, #0
	b	.L20
.L17:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-40]
	b	.L19
.L18:
	ldr	r3, .L22+4
	ldr	r3, [r3]
.L19:
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	execve
	mov	r3, r0
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	environ
	.size	close_execve, .-close_execve
	.align	2
	.global	vfork_close_execve
	.syntax unified
	.arm
	.fpu softvfp
	.type	vfork_close_execve, %function
vfork_close_execve:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	bl	vfork
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L30
	mvn	r3, #0
	b	.L27
.L30:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	close_execve
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r0, #1
	bl	_exit
.L28:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-12]
	b	.L27
.L29:
	ldr	r3, [fp, #-8]
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	vfork_close_execve, .-vfork_close_execve
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
