	.file	"45450165.c"
	.intel_syntax noprefix
	.text
	.local	progname
	.comm	progname,8,8
	.local	child
	.comm	child,4,4
	.type	signal_chld, @function
signal_chld:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	signal_chld, .-signal_chld
	.local	signal_alrm_hit
	.comm	signal_alrm_hit,4,4
	.type	signal_alrm, @function
signal_alrm:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR signal_alrm_hit[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	signal_alrm, .-signal_alrm
	.local	childptyname
	.comm	childptyname,2048,32
	.section	.rodata
.LC0:
	.string	"%s: %d %s:"
	.text
	.type	print_child_error, @function
print_child_error:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	ecx, DWORD PTR child[rip]
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -24[rbp]
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L4
.L5:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 32
	call	fputc@PLT
	mov	rdx, QWORD PTR stderr[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	add	QWORD PTR -8[rbp], 8
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_child_error, .-print_child_error
	.section	.rodata
.LC1:
	.string	"read (amaster)"
.LC2:
	.string	"write(2)"
	.text
	.type	read_out, @function
read_out:
.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, 2096
	mov	DWORD PTR -2084[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2084[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -2072[rbp], rax
	cmp	QWORD PTR -2072[rbp], 0
	jne	.L7
	mov	eax, 0
	jmp	.L13
.L7:
	cmp	QWORD PTR -2072[rbp], -1
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 5
	jne	.L9
	mov	eax, 0
	jmp	.L13
.L9:
	cmp	QWORD PTR -2072[rbp], -1
	jne	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L10
	mov	eax, 0
	jmp	.L13
.L10:
	cmp	QWORD PTR -2072[rbp], 0
	jns	.L11
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rdx, QWORD PTR -2072[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	cmp	QWORD PTR -2072[rbp], rax
	je	.L12
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	eax, 1
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	read_out, .-read_out
	.section	.rodata
.LC3:
	.string	"/proc/%ld/stat"
.LC4:
	.string	"open (/proc/CHILD/stat)"
.LC5:
	.string	"read (/proc/CHILD/stat)"
.LC6:
	.string	"close (/proc/CHILD/stat)"
.LC7:
	.string	"%*d%*s%2s"
.LC8:
	.string	"sscanf (/proc/CHILD/stat)"
.LC9:
	.string	"Z"
	.text
	.type	child_exited, @function
child_exited:
.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, 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR child[rip]
	movsx	rdx, eax
	lea	rax, -208[rbp]
	mov	rcx, rdx
	lea	rdx, .LC3[rip]
	mov	esi, 200
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -208[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -236[rbp], eax
	cmp	DWORD PTR -236[rbp], -1
	jne	.L16
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -236[rbp]
	mov	edx, 200
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -224[rbp], rax
	cmp	QWORD PTR -224[rbp], 0
	jg	.L17
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	eax, DWORD PTR -236[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L18
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	lea	rdx, -211[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -232[rbp], eax
	cmp	DWORD PTR -232[rbp], 1
	je	.L19
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	lea	rax, -211[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR -228[rbp], eax
	mov	eax, DWORD PTR -228[rbp]
	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
.LFE10:
	.size	child_exited, .-child_exited
	.section	.rodata
.LC10:
	.string	"the_stack_data/45450165.c"
.LC11:
	.string	"i == 0"
.LC12:
	.string	"forkpty(3)"
.LC13:
	.string	"getpgrp(2)"
.LC14:
	.string	"execvp(2)"
	.align 8
.LC15:
	.string	"fcntl (amaster, F_SETFL, O_NONBLOCK)"
.LC16:
	.string	"alarm_orig == 0"
.LC17:
	.string	"i == 1"
.LC18:
	.string	"%s: Unexpected EOF\n"
.LC19:
	.string	"%s: ppoll(2): revents 0x%x\n"
.LC20:
	.string	"waitpid (%d) = %d: %m\n"
.LC21:
	.string	"Timed out after %d seconds"
	.align 8
.LC22:
	.string	"waitpid (%d): WIFSTOPPED - WSTOPSIG is %d\n"
	.align 8
.LC23:
	.string	"waitpid (%d): !WIFEXITED (%d)\n"
	.text
	.type	spawn, @function
spawn:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 408
	.cfi_offset 3, -24
	mov	QWORD PTR -408[rbp], rdi
	mov	DWORD PTR -412[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -176[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, signal_chld[rip]
	mov	QWORD PTR -176[rbp], rax
	lea	rax, -176[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L23
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 155
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L23:
	mov	DWORD PTR -40[rbp], 0
	lea	rax, -176[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L24
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 158
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L24:
	lea	rax, -304[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L25
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 161
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L25:
	lea	rax, -304[rbp]
	mov	esi, 17
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L26
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 163
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L26:
	lea	rax, -304[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L27
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 165
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L27:
	mov	DWORD PTR -368[rbp], 5
	mov	DWORD PTR -364[rbp], 0
	mov	DWORD PTR -360[rbp], 3261
	mov	DWORD PTR -356[rbp], 32896
	lea	rax, -368[rbp]
	add	rax, 17
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR -346[rbp], 0
	mov	BYTE PTR -345[rbp], 1
	lea	rax, -368[rbp]
	mov	rdi, rax
	call	cfmakeraw@PLT
	mov	eax, DWORD PTR -356[rbp]
	and	ah, -17
	mov	DWORD PTR -356[rbp], eax
	lea	rdx, -368[rbp]
	lea	rax, -396[rbp]
	mov	ecx, 0
	lea	rsi, childptyname[rip]
	mov	rdi, rax
	call	forkpty@PLT
	mov	DWORD PTR child[rip], eax
	mov	eax, DWORD PTR child[rip]
	cmp	eax, -1
	je	.L28
	test	eax, eax
	je	.L29
	nop
	mov	eax, DWORD PTR -396[rbp]
	mov	edx, 2050
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L34
	jmp	.L63
.L28:
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	lea	rax, -304[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L31
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 196
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L31:
	lea	rax, -304[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L32
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 198
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L32:
	call	getpid@PLT
	mov	ebx, eax
	call	getpgrp@PLT
	cmp	ebx, eax
	je	.L33
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	mov	rax, QWORD PTR -408[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -408[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L63:
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	lea	rax, signal_alrm[rip]
	mov	QWORD PTR -176[rbp], rax
	lea	rax, -176[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 14
	call	sigaction@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L35
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 232
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L35:
	mov	eax, DWORD PTR -412[rbp]
	mov	edi, eax
	call	alarm@PLT
	mov	DWORD PTR -384[rbp], eax
	cmp	DWORD PTR -384[rbp], 0
	je	.L36
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 235
	lea	rsi, .LC10[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L36:
	lea	rax, -304[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L38
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 238
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L48:
	mov	eax, DWORD PTR -396[rbp]
	mov	DWORD PTR -376[rbp], eax
	mov	WORD PTR -372[rbp], 1
	lea	rdx, -304[rbp]
	lea	rax, -376[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	ppoll@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], -1
	jne	.L39
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L39
	call	child_exited
	test	eax, eax
	jne	.L64
	jmp	.L38
.L39:
	cmp	DWORD PTR -388[rbp], 1
	je	.L42
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 254
	lea	rsi, .LC10[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L42:
	movzx	eax, WORD PTR -370[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L43
	mov	eax, DWORD PTR -396[rbp]
	mov	edi, eax
	call	read_out
	test	eax, eax
	jne	.L43
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L43:
	movzx	eax, WORD PTR -370[rbp]
	cwde
	and	eax, 16
	test	eax, eax
	jne	.L65
	movzx	eax, WORD PTR -370[rbp]
	and	eax, -2
	mov	WORD PTR -370[rbp], ax
	movzx	eax, WORD PTR -370[rbp]
	test	ax, ax
	je	.L45
	movzx	eax, WORD PTR -370[rbp]
	movsx	ecx, ax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	call	child_exited
	test	eax, eax
	jne	.L66
.L38:
	mov	eax, DWORD PTR signal_alrm_hit[rip]
	test	eax, eax
	je	.L48
	jmp	.L47
.L64:
	nop
	jmp	.L47
.L65:
	nop
	jmp	.L47
.L66:
	nop
.L47:
	mov	eax, DWORD PTR signal_alrm_hit[rip]
	test	eax, eax
	je	.L49
	mov	eax, DWORD PTR child[rip]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L50
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 280
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L49:
	mov	edi, 0
	call	alarm@PLT
.L50:
	mov	eax, DWORD PTR child[rip]
	lea	rcx, -400[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -380[rbp], eax
	mov	eax, DWORD PTR child[rip]
	cmp	DWORD PTR -380[rbp], eax
	je	.L51
	mov	edx, DWORD PTR child[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -380[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	mov	eax, DWORD PTR signal_alrm_hit[rip]
	test	eax, eax
	je	.L52
	mov	edx, DWORD PTR -412[rbp]
	lea	rax, -376[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	cmp	eax, -1
	je	.L53
	mov	rax, QWORD PTR -376[rbp]
	mov	rdx, QWORD PTR -408[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	print_child_error
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	free@PLT
.L53:
	mov	DWORD PTR -392[rbp], 142
	jmp	.L54
.L52:
	mov	eax, DWORD PTR -400[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L55
	mov	eax, DWORD PTR -400[rbp]
	sar	eax, 8
	and	eax, 255
	mov	DWORD PTR -392[rbp], eax
	jmp	.L54
.L55:
	mov	eax, DWORD PTR -400[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L56
	mov	eax, DWORD PTR -400[rbp]
	and	eax, 127
	mov	edi, eax
	call	strsignal@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -408[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	print_child_error
	mov	eax, DWORD PTR -400[rbp]
	and	eax, 127
	sub	eax, -128
	mov	DWORD PTR -392[rbp], eax
	jmp	.L54
.L56:
	mov	eax, DWORD PTR -400[rbp]
	movzx	eax, al
	cmp	eax, 127
	jne	.L57
	mov	eax, DWORD PTR -400[rbp]
	sar	eax, 8
	movzx	ecx, al
	mov	edx, DWORD PTR child[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L57:
	mov	ecx, DWORD PTR -400[rbp]
	mov	edx, DWORD PTR child[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L54:
	lea	rax, -304[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L67
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 324
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L67:
	nop
.L59:
	mov	eax, DWORD PTR -396[rbp]
	mov	edi, eax
	call	read_out
	test	eax, eax
	jne	.L59
	mov	eax, DWORD PTR -392[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	spawn, .-spawn
	.local	cmdline.4
	.comm	cmdline.4,2048,32
	.section	.rodata
.LC24:
	.string	"/proc/%d/cmdline"
.LC25:
	.string	"%s: read (\"%s\"): %m\n"
.LC26:
	.string	"%s: close (\"%s\"): %m\n"
	.text
	.type	read_cmdline, @function
read_cmdline:
.LFB12:
	.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	DWORD PTR -84[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -48[rbp]
	mov	ecx, edx
	lea	rdx, .LC24[rip]
	mov	esi, 32
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	test	eax, eax
	jns	.L69
	mov	eax, 0
	jmp	.L81
.L69:
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], -1
	jne	.L71
	mov	eax, 0
	jmp	.L81
.L71:
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 2047
	lea	rsi, cmdline.4[rip]
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], -1
	jne	.L72
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -48[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L72:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L73
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -48[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L73:
	cmp	QWORD PTR -56[rbp], 0
	jns	.L74
	mov	eax, 0
	jmp	.L81
.L74:
	lea	rax, cmdline.4[rip]
	mov	QWORD PTR -64[rbp], rax
	jmp	.L75
.L77:
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L76
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], 32
.L76:
	add	QWORD PTR -64[rbp], 1
.L75:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, cmdline.4[rip]
	add	rax, rdx
	cmp	QWORD PTR -64[rbp], rax
	jb	.L77
	jmp	.L78
.L80:
	sub	QWORD PTR -64[rbp], 1
.L78:
	lea	rax, cmdline.4[rip]
	cmp	QWORD PTR -64[rbp], rax
	jbe	.L79
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L80
.L79:
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], 0
	lea	rax, cmdline.4[rip]
.L81:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L82
	call	__stack_chk_fail@PLT
.L82:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	read_cmdline, .-read_cmdline
	.section	.rodata
.LC27:
	.string	"%s: opendir (\"%s\"): %m\n"
.LC28:
	.string	"%s/%s"
	.align 8
.LC29:
	.string	"entry file name too long: `%s' / `%s'\n"
.LC30:
	.string	"%s: stat (\"%s\"): %m\n"
.LC31:
	.string	"%s: readdir (\"%s\"): %m\n"
.LC32:
	.string	"%s: closedir (\"%s\"): %m\n"
	.text
	.type	dir_scan, @function
dir_scan:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2256
	mov	QWORD PTR -2248[rbp], rdi
	mov	QWORD PTR -2256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2236[rbp], 0
	mov	rax, QWORD PTR -2248[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -2224[rbp], rax
	cmp	QWORD PTR -2224[rbp], 0
	jne	.L88
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	je	.L85
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L86
.L85:
	mov	eax, DWORD PTR -2236[rbp]
	jmp	.L87
.L86:
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -2248[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L100:
	mov	rax, QWORD PTR -2216[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -2248[rbp]
	lea	rax, -2064[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC28[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -2232[rbp], eax
	cmp	DWORD PTR -2232[rbp], 0
	jle	.L89
	cmp	DWORD PTR -2232[rbp], 2047
	jle	.L90
.L89:
	mov	rax, QWORD PTR -2216[rbp]
	lea	rcx, 19[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -2248[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L88
.L90:
	mov	rax, QWORD PTR -2216[rbp]
	movzx	eax, BYTE PTR 18[rax]
	test	al, al
	jne	.L92
	lea	rdx, -2208[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	mov	DWORD PTR -2228[rbp], eax
	cmp	DWORD PTR -2228[rbp], -1
	jne	.L93
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	je	.L104
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L104
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -2064[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L93:
	mov	eax, DWORD PTR -2184[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L96
	mov	rax, QWORD PTR -2216[rbp]
	mov	BYTE PTR 18[rax], 4
.L96:
	mov	eax, DWORD PTR -2184[rbp]
	and	eax, 61440
	cmp	eax, 40960
	jne	.L92
	mov	rax, QWORD PTR -2216[rbp]
	mov	BYTE PTR 18[rax], 10
.L92:
	lea	rdx, -2064[rbp]
	mov	rax, QWORD PTR -2216[rbp]
	mov	rcx, QWORD PTR -2256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	mov	DWORD PTR -2236[rbp], eax
	cmp	DWORD PTR -2236[rbp], 0
	je	.L88
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	jmp	.L99
.L104:
	nop
.L88:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -2224[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -2216[rbp], rax
	cmp	QWORD PTR -2216[rbp], 0
	jne	.L100
.L99:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L101
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -2248[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L101:
	mov	rax, QWORD PTR -2224[rbp]
	mov	rdi, rax
	call	closedir@PLT
	test	eax, eax
	je	.L102
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -2248[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L102:
	mov	eax, DWORD PTR -2236[rbp]
.L87:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L103
	call	__stack_chk_fail@PLT
.L103:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	dir_scan, .-dir_scan
	.section	.rodata
.LC33:
	.string	"."
.LC34:
	.string	".."
.LC35:
	.string	"0123456789"
	.align 8
.LC36:
	.string	"Unexpected entry \"%s\" (d_type %u) on readdir (\"%s\"): %m\n"
.LC37:
	.string	"Error reading link \"%s\": %m\n"
	.text
	.type	callback.0, @function
callback.0:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 2112
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -2104[rbp], rdi
	mov	QWORD PTR -2112[rbp], rsi
	mov	rbx, r10
	mov	QWORD PTR -2120[rbp], r10
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2104[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 4
	je	.L106
	mov	rax, QWORD PTR -2104[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 10
	jne	.L107
.L106:
	mov	rax, QWORD PTR -2104[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 4
	jne	.L108
	mov	rax, QWORD PTR -2104[rbp]
	add	rax, 19
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L108
	mov	rax, QWORD PTR -2104[rbp]
	add	rax, 19
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L107
.L108:
	mov	rax, QWORD PTR -2104[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 10
	jne	.L109
	mov	rax, QWORD PTR -2104[rbp]
	add	rax, 19
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strspn@PLT
	mov	r12, rax
	mov	rax, QWORD PTR -2104[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	cmp	r12, rax
	je	.L109
.L107:
	lea	rcx, 12[rbx]
	mov	rax, QWORD PTR -2104[rbp]
	movzx	eax, BYTE PTR 18[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -2104[rbp]
	lea	rsi, 19[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rcx
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L115
.L109:
	mov	rax, QWORD PTR -2104[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 4
	jne	.L111
	mov	eax, 0
	jmp	.L115
.L111:
	lea	rcx, -2080[rbp]
	mov	rax, QWORD PTR -2112[rbp]
	mov	edx, 2047
	mov	rsi, rcx
	mov	rdi, rax
	call	readlink@PLT
	mov	QWORD PTR -2088[rbp], rax
	cmp	QWORD PTR -2088[rbp], 0
	jle	.L112
	cmp	QWORD PTR -2088[rbp], 2046
	jle	.L113
.L112:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L114
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	je	.L114
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -2112[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L114:
	mov	eax, 0
	jmp	.L115
.L113:
	lea	rdx, -2080[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rcx, QWORD PTR [rbx]
	mov	eax, DWORD PTR 8[rbx]
	lea	rdx, -2080[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	rcx
.L115:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L116
	call	__stack_chk_fail@PLT
.L116:
	add	rsp, 2112
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	callback.0, .-callback.0
	.section	.rodata
.LC38:
	.string	"/proc/%d/fd"
.LC39:
	.string	"snprintf(3)"
	.text
	.type	fd_fs_scan, @function
fd_fs_scan:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -120[rbp], eax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR -128[rbp], rax
	lea	rax, -128[rbp]
	add	rax, 76
	lea	rdx, -128[rbp]
	mov	DWORD PTR [rax], -98693133
	mov	WORD PTR 4[rax], -17591
	lea	rcx, callback.0[rip]
	mov	QWORD PTR 6[rax], rcx
	mov	WORD PTR 14[rax], -17847
	mov	QWORD PTR 16[rax], rdx
	mov	DWORD PTR 24[rax], -1864106167
	mov	eax, DWORD PTR -120[rbp]
	lea	rdx, -128[rbp]
	lea	rdi, 12[rdx]
	mov	ecx, eax
	lea	rdx, .LC38[rip]
	mov	esi, 64
	mov	eax, 0
	call	snprintf@PLT
	test	eax, eax
	jns	.L118
	lea	rdi, .LC39[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L118:
	lea	rax, -128[rbp]
	add	rax, 76
	mov	rdx, rax
	lea	rax, -128[rbp]
	add	rax, 12
	mov	rsi, rdx
	mov	rdi, rax
	call	dir_scan
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L120
	call	__stack_chk_fail@PLT
.L120:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	fd_fs_scan, .-fd_fs_scan
	.type	callback.1, @function
callback.1:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rbx, r10
	mov	QWORD PTR -40[rbp], r10
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 4
	jne	.L122
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 19
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strspn@PLT
	mov	r12, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	cmp	r12, rax
	je	.L123
.L122:
	mov	eax, 0
	jmp	.L124
.L123:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 19
	mov	rdi, rax
	call	atoi@PLT
	mov	ecx, eax
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rbx]
	mov	rsi, rax
	mov	edi, ecx
	call	rdx
	mov	eax, 0
.L124:
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	callback.1, .-callback.1
	.section	.rodata
.LC40:
	.string	"/proc"
	.text
	.type	pid_fs_scan, @function
pid_fs_scan:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, -64[rbp]
	add	rax, 16
	lea	rdx, -64[rbp]
	mov	DWORD PTR [rax], -98693133
	mov	WORD PTR 4[rax], -17591
	lea	rcx, callback.1[rip]
	mov	QWORD PTR 6[rax], rcx
	mov	WORD PTR 14[rax], -17847
	mov	QWORD PTR 16[rax], rdx
	mov	DWORD PTR 24[rax], -1864106167
	lea	rax, -64[rbp]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	call	dir_scan
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L126
	call	__stack_chk_fail@PLT
.L126:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	pid_fs_scan, .-pid_fs_scan
	.section	.rodata
.LC41:
	.string	"pid != getpid ()"
	.text
	.type	rip_check_ptyname, @function
rip_check_ptyname:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	call	getpid@PLT
	cmp	DWORD PTR -4[rbp], eax
	jne	.L128
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 531
	lea	rsi, .LC10[rip]
	lea	rdi, .LC41[rip]
	call	__assert_fail@PLT
.L128:
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, childptyname[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	rip_check_ptyname, .-rip_check_ptyname
	.local	pid_list
	.comm	pid_list,8,8
	.type	pid_found, @function
pid_found:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR pid_list[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L131
.L134:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L132
	mov	eax, 1
	jmp	.L133
.L132:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L131:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L134
	mov	eax, 0
.L133:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	pid_found, .-pid_found
	.local	cleanup_acted
	.comm	cleanup_acted,4,4
	.section	.rodata
.LC42:
	.string	"%s: malloc: %m\n"
	.text
	.type	pid_record, @function
pid_record:
.LFB20:
	.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	edi, eax
	call	pid_found
	test	eax, eax
	jne	.L139
	mov	DWORD PTR cleanup_acted[rip], 1
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L138
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC42[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L138:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rdx, QWORD PTR pid_list[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR pid_list[rip], rax
	jmp	.L135
.L139:
	nop
.L135:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	pid_record, .-pid_record
	.type	pid_forall, @function
pid_forall:
.LFB21:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR pid_list[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L141
.L142:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	edi, eax
	call	rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L141:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L142
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	pid_forall, .-pid_forall
	.section	.rodata
.LC43:
	.string	"/proc/%d/status"
.LC44:
	.string	"r"
.LC45:
	.string	"PPid:\t"
.LC46:
	.string	"%s: fgets (\"%s\"): %m\n"
.LC47:
	.string	"%s: fclose (\"%s\"): %m\n"
	.text
	.type	pid_get_parent, @function
pid_get_parent:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2160
	mov	DWORD PTR -2148[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2140[rbp], 0
	mov	edx, DWORD PTR -2148[rbp]
	lea	rax, -2128[rbp]
	mov	ecx, edx
	lea	rdx, .LC43[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	test	eax, eax
	jns	.L144
	lea	rdi, .LC39[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L144:
	lea	rax, -2128[rbp]
	lea	rsi, .LC44[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2136[rbp], rax
	cmp	QWORD PTR -2136[rbp], 0
	jne	.L147
	mov	eax, 0
	jmp	.L153
.L150:
	lea	rax, -2064[rbp]
	mov	edx, 6
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L148
	jmp	.L147
.L148:
	lea	rax, -2064[rbp]
	add	rax, 6
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2140[rbp], eax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	jmp	.L149
.L147:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR -2136[rbp]
	lea	rax, -2064[rbp]
	mov	esi, 2048
	mov	rdi, rax
	call	fgets@PLT
	lea	rdx, -2064[rbp]
	cmp	rax, rdx
	je	.L150
.L149:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L151
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -2128[rbp]
	lea	rsi, .LC46[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L151:
	mov	rax, QWORD PTR -2136[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L152
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -2128[rbp]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L152:
	mov	eax, DWORD PTR -2140[rbp]
.L153:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L154
	call	__stack_chk_fail@PLT
.L154:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	pid_get_parent, .-pid_get_parent
	.type	killtree_pid_fs_scan, @function
killtree_pid_fs_scan:
.LFB23:
	.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	pid_get_parent
	cmp	DWORD PTR -4[rbp], eax
	jne	.L158
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	killtree
	jmp	.L155
.L158:
	nop
.L155:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	killtree_pid_fs_scan, .-killtree_pid_fs_scan
	.type	killtree, @function
killtree:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	pid_record
	lea	rax, -4[rbp]
	mov	rsi, rax
	lea	rdi, killtree_pid_fs_scan[rip]
	call	pid_fs_scan
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	killtree, .-killtree
	.type	rip_pid_fs_scan, @function
rip_pid_fs_scan:
.LFB25:
	.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	QWORD PTR -32[rbp], rsi
	call	getpid@PLT
	cmp	DWORD PTR -20[rbp], eax
	je	.L164
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	getpgid@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR child[rip]
	cmp	DWORD PTR -4[rbp], eax
	je	.L163
	mov	eax, DWORD PTR -20[rbp]
	lea	rsi, rip_check_ptyname[rip]
	mov	edi, eax
	call	fd_fs_scan
	test	eax, eax
	je	.L160
.L163:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	killtree
	jmp	.L160
.L164:
	nop
.L160:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	rip_pid_fs_scan, .-rip_pid_fs_scan
	.section	.rodata
.LC48:
	.string	"<error>"
	.align 8
.LC49:
	.string	"%s: Killed -9 orphan PID %d: %s\n"
.LC50:
	.string	"%s: kill (%d, SIGKILL): %m\n"
	.text
	.type	killproc, @function
killproc:
.LFB26:
	.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	edi, eax
	call	read_cmdline
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 0
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L166
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	je	.L171
.L166:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L168
	lea	rax, .LC48[rip]
	mov	QWORD PTR -8[rbp], rax
.L168:
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	r8, rsi
	lea	rsi, .LC49[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	jne	.L169
	mov	DWORD PTR cleanup_acted[rip], 1
	jmp	.L170
.L169:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	je	.L170
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -20[rbp]
	lea	rsi, .LC50[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L170:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 18
	mov	edi, eax
	call	kill@PLT
	jmp	.L165
.L171:
	nop
.L165:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	killproc, .-killproc
	.type	rip, @function
rip:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR cleanup_acted[rip], 0
.L174:
	mov	eax, DWORD PTR cleanup_acted[rip]
	test	eax, eax
	je	.L173
	mov	edi, 100000
	call	usleep@PLT
.L173:
	mov	DWORD PTR cleanup_acted[rip], 0
	mov	esi, 0
	lea	rdi, rip_pid_fs_scan[rip]
	call	pid_fs_scan
	lea	rdi, killproc[rip]
	call	pid_forall
	mov	eax, DWORD PTR cleanup_acted[rip]
	test	eax, eax
	jne	.L174
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	rip, .-rip
	.section	.rodata
.LC51:
	.string	"-h"
.LC52:
	.string	"--help"
	.align 8
.LC53:
	.string	"Syntax: orphanripper [-t <seconds>] <execvp(3) commandline>"
	.align 8
.LC54:
	.string	"%s: Invalid timeout value: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB28:
	.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	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -64[rbp], rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR progname[rip], rax
	sub	DWORD PTR -52[rbp], 1
	cmp	DWORD PTR -52[rbp], 0
	jle	.L176
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC51[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L176
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC52[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L177
.L176:
	lea	rdi, .LC53[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L177:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L178
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 116
	jne	.L178
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L179
	add	QWORD PTR -64[rbp], 8
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L180
.L179:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L180
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	QWORD PTR -24[rbp], rax
.L180:
	cmp	QWORD PTR -24[rbp], 0
	je	.L178
	add	QWORD PTR -64[rbp], 8
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	je	.L181
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L182
.L181:
	cmp	DWORD PTR -40[rbp], 0
	js	.L182
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	cmp	QWORD PTR -16[rbp], rax
	je	.L178
.L182:
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -24[rbp]
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L178:
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	spawn
	mov	DWORD PTR -36[rbp], eax
	call	rip
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L185
	call	__stack_chk_fail@PLT
.L185:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 6
__PRETTY_FUNCTION__.3:
	.string	"spawn"
	.align 16
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 18
__PRETTY_FUNCTION__.2:
	.string	"rip_check_ptyname"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"x",@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	"45450165.c"
	.text
	.local	progname
	.comm	progname,4,4
	.local	child
	.comm	child,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_chld, %function
signal_chld:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	signal_chld, .-signal_chld
	.local	signal_alrm_hit
	.comm	signal_alrm_hit,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_alrm, %function
signal_alrm:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L3
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	signal_alrm_hit
	.size	signal_alrm, .-signal_alrm
	.local	childptyname
	.comm	childptyname,2048,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: %d %s:\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_child_error, %function
print_child_error:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L8
	ldr	r0, [r3]
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, .L8+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L8+12
	bl	fprintf
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #32
	bl	fputc
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, .L8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	stderr
	.word	progname
	.word	child
	.word	.LC0
	.size	print_child_error, .-print_child_error
	.section	.rodata
	.align	2
.LC1:
	.ascii	"read (amaster)\000"
	.align	2
.LC2:
	.ascii	"write(2)\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_out, %function
read_out:
	@ args = 0, pretend = 0, frame = 2064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	str	r0, [fp, #-2064]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	ldr	r0, [fp, #-2064]
	bl	read
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	b	.L17
.L11:
	ldr	r3, [fp, #-2060]
	cmn	r3, #1
	bne	.L13
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L13
	mov	r3, #0
	b	.L17
.L13:
	ldr	r3, [fp, #-2060]
	cmn	r3, #1
	bne	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L14
	mov	r3, #0
	b	.L17
.L14:
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L19+4
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	ldr	r2, [fp, #-2060]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-2060]
	cmp	r3, r2
	beq	.L16
	ldr	r0, .L19+8
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	mov	r3, #1
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	read_out, .-read_out
	.section	.rodata
	.align	2
.LC4:
	.ascii	"/proc/%ld/stat\000"
	.align	2
.LC5:
	.ascii	"open (/proc/CHILD/stat)\000"
	.align	2
.LC6:
	.ascii	"read (/proc/CHILD/stat)\000"
	.align	2
.LC7:
	.ascii	"close (/proc/CHILD/stat)\000"
	.align	2
.LC8:
	.ascii	"%*d%*s%2s\000"
	.align	2
.LC9:
	.ascii	"sscanf (/proc/CHILD/stat)\000"
	.align	2
.LC10:
	.ascii	"Z\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_exited, %function
child_exited:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #224
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L28+4
	ldr	r3, [r3]
	sub	r0, fp, #208
	ldr	r2, .L28+8
	mov	r1, #200
	bl	snprintf
	sub	r3, fp, #208
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-228]
	ldr	r3, [fp, #-228]
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L28+12
	bl	perror
	mov	r0, #1
	bl	exit
.L22:
	sub	r3, fp, #208
	mov	r2, #200
	mov	r1, r3
	ldr	r0, [fp, #-228]
	bl	read
	str	r0, [fp, #-224]
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	bgt	.L23
	ldr	r0, .L28+16
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	ldr	r0, [fp, #-228]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L28+20
	bl	perror
	mov	r0, #1
	bl	exit
.L24:
	sub	r2, fp, #212
	sub	r3, fp, #208
	ldr	r1, .L28+24
	mov	r0, r3
	bl	__isoc99_sscanf
	str	r0, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmp	r3, #1
	beq	.L25
	ldr	r0, .L28+28
	bl	perror
	mov	r0, #1
	bl	exit
.L25:
	sub	r3, fp, #212
	ldr	r1, .L28+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-216]
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC11
	.word	child
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	child_exited, .-child_exited
	.section	.rodata
	.align	2
.LC12:
	.ascii	"the_stack_data/45450165.c\000"
	.align	2
.LC13:
	.ascii	"i == 0\000"
	.align	2
.LC14:
	.ascii	"forkpty(3)\000"
	.align	2
.LC15:
	.ascii	"getpgrp(2)\000"
	.align	2
.LC16:
	.ascii	"execvp(2)\000"
	.align	2
.LC17:
	.ascii	"fcntl (amaster, F_SETFL, O_NONBLOCK)\000"
	.align	2
.LC18:
	.ascii	"alarm_orig == 0\000"
	.align	2
.LC19:
	.ascii	"i == 1\000"
	.align	2
.LC20:
	.ascii	"%s: Unexpected EOF\012\000"
	.align	2
.LC21:
	.ascii	"%s: ppoll(2): revents 0x%x\012\000"
	.align	2
.LC22:
	.ascii	"waitpid (%d) = %d: %m\012\000"
	.align	2
.LC23:
	.ascii	"Timed out after %d seconds\000"
	.align	2
.LC24:
	.ascii	"waitpid (%d): WIFSTOPPED - WSTOPSIG is %d\012\000"
	.align	2
.LC25:
	.ascii	"waitpid (%d): !WIFEXITED (%d)\012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spawn, %function
spawn:
	@ args = 0, pretend = 0, frame = 376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #380
	str	r0, [fp, #-384]
	str	r1, [fp, #-388]
	ldr	r3, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #156
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L76+4
	str	r3, [fp, #-156]
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L76+8
	mov	r2, #155
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L31:
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L32
	ldr	r3, .L76+8
	mov	r2, #158
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L32:
	sub	r3, fp, #284
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L76+8
	mov	r2, #161
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L33:
	sub	r3, fp, #284
	mov	r1, #17
	mov	r0, r3
	bl	sigaddset
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L34
	ldr	r3, .L76+8
	mov	r2, #163
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L34:
	sub	r3, fp, #284
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L76+8
	mov	r2, #165
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L35:
	mov	r3, #5
	str	r3, [fp, #-344]
	mov	r3, #0
	str	r3, [fp, #-340]
	ldr	r3, .L76+20
	str	r3, [fp, #-336]
	ldr	r3, .L76+24
	str	r3, [fp, #-332]
	sub	r3, fp, #344
	add	r3, r3, #17
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	strb	r3, [fp, #-322]
	mov	r3, #1
	strb	r3, [fp, #-321]
	sub	r3, fp, #344
	mov	r0, r3
	bl	cfmakeraw
	ldr	r3, [fp, #-332]
	bic	r3, r3, #4096
	str	r3, [fp, #-332]
	sub	r2, fp, #344
	sub	r0, fp, #372
	mov	r3, #0
	ldr	r1, .L76+28
	bl	forkpty
	mov	r3, r0
	ldr	r2, .L76+32
	str	r3, [r2]
	ldr	r3, .L76+32
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L36
	cmp	r3, #0
	beq	.L37
	nop
	ldr	r3, [fp, #-372]
	ldr	r2, .L76+36
	mov	r1, #4
	mov	r0, r3
	bl	fcntl
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L42
	b	.L71
.L36:
	ldr	r0, .L76+40
	bl	perror
	mov	r0, #1
	bl	exit
.L37:
	sub	r3, fp, #284
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L39
	ldr	r3, .L76+8
	mov	r2, #196
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L39:
	sub	r3, fp, #284
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L40
	ldr	r3, .L76+8
	mov	r2, #198
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L40:
	bl	getpid
	mov	r4, r0
	bl	getpgrp
	mov	r3, r0
	cmp	r4, r3
	beq	.L41
	ldr	r0, .L76+44
	bl	perror
	mov	r0, #1
	bl	exit
.L41:
	ldr	r3, [fp, #-384]
	ldr	r3, [r3]
	ldr	r1, [fp, #-384]
	mov	r0, r3
	bl	execvp
	ldr	r0, .L76+48
	bl	perror
	mov	r0, #1
	bl	exit
.L71:
	ldr	r0, .L76+52
	bl	perror
	mov	r0, #1
	bl	exit
.L42:
	ldr	r3, .L76+56
	str	r3, [fp, #-156]
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #14
	bl	sigaction
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L76+8
	mov	r2, #232
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L43:
	ldr	r3, [fp, #-388]
	mov	r0, r3
	bl	alarm
	str	r0, [fp, #-360]
	ldr	r3, [fp, #-360]
	cmp	r3, #0
	beq	.L44
	ldr	r3, .L76+8
	mov	r2, #235
	ldr	r1, .L76+12
	ldr	r0, .L76+60
	bl	__assert_fail
.L44:
	sub	r3, fp, #284
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L76+8
	mov	r2, #238
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L56:
	ldr	r3, [fp, #-372]
	str	r3, [fp, #-352]
	sub	r3, fp, #12
	sub	r3, r3, #340
	mov	r2, #1
	strh	r2, [r3, #4]	@ movhi
	sub	r3, fp, #284
	sub	r0, fp, #352
	mov	r2, #0
	mov	r1, #1
	bl	ppoll
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmn	r3, #1
	bne	.L47
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L47
	bl	child_exited
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	b	.L46
.L47:
	ldr	r3, [fp, #-364]
	cmp	r3, #1
	beq	.L50
	ldr	r3, .L76+8
	mov	r2, #254
	ldr	r1, .L76+12
	ldr	r0, .L76+64
	bl	__assert_fail
.L50:
	sub	r3, fp, #12
	sub	r3, r3, #340
	ldrsh	r3, [r3, #6]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-372]
	mov	r0, r3
	bl	read_out
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r3, .L76+68
	ldr	r3, [r3]
	ldr	r2, .L76+72
	ldr	r2, [r2]
	ldr	r1, .L76+76
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L51:
	sub	r3, fp, #12
	sub	r3, r3, #340
	ldrsh	r3, [r3, #6]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #16
	cmp	r3, #0
	bne	.L73
	sub	r3, fp, #12
	sub	r3, r3, #340
	ldrsh	r3, [r3, #6]
	bic	r3, r3, #1
	lsl	r3, r3, #16
	asr	r2, r3, #16
	sub	r3, fp, #12
	sub	r3, r3, #340
	strh	r2, [r3, #6]	@ movhi
	sub	r3, fp, #12
	sub	r3, r3, #340
	ldrsh	r3, [r3, #6]
	cmp	r3, #0
	beq	.L53
	ldr	r3, .L76+68
	ldr	r0, [r3]
	ldr	r3, .L76+72
	ldr	r2, [r3]
	sub	r3, fp, #12
	sub	r3, r3, #340
	ldrsh	r3, [r3, #6]
	ldr	r1, .L76+80
	bl	fprintf
	mov	r0, #1
	bl	exit
.L53:
	bl	child_exited
	mov	r3, r0
	cmp	r3, #0
	bne	.L74
.L46:
	ldr	r3, .L76+84
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L56
	b	.L55
.L72:
	nop
	b	.L55
.L73:
	nop
	b	.L55
.L74:
	nop
.L55:
	ldr	r3, .L76+84
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L57
	ldr	r3, .L76+32
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L58
	ldr	r3, .L76+8
	mov	r2, #280
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L57:
	mov	r0, #0
	bl	alarm
.L58:
	ldr	r3, .L76+32
	ldr	r3, [r3]
	sub	r1, fp, #376
	mov	r2, #0
	mov	r0, r3
	bl	waitpid
	str	r0, [fp, #-356]
	ldr	r3, .L76+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-356]
	cmp	r2, r3
	beq	.L59
	ldr	r3, .L76+68
	ldr	r0, [r3]
	ldr	r3, .L76+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-356]
	ldr	r1, .L76+88
	bl	fprintf
	mov	r0, #1
	bl	exit
.L59:
	ldr	r3, .L76+84
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L60
	sub	r3, fp, #352
	ldr	r2, [fp, #-388]
	ldr	r1, .L76+92
	mov	r0, r3
	bl	asprintf
	mov	r3, r0
	cmn	r3, #1
	beq	.L61
	ldr	r3, [fp, #-352]
	ldr	r1, [fp, #-384]
	mov	r0, r3
	bl	print_child_error
	ldr	r3, [fp, #-352]
	mov	r0, r3
	bl	free
.L61:
	mov	r3, #142
	str	r3, [fp, #-368]
	b	.L62
.L60:
	ldr	r3, [fp, #-376]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L63
	ldr	r3, [fp, #-376]
	asr	r3, r3, #8
	and	r3, r3, #255
	str	r3, [fp, #-368]
	b	.L62
.L63:
	ldr	r3, [fp, #-376]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L64
	ldr	r3, [fp, #-376]
	and	r3, r3, #127
	mov	r0, r3
	bl	strsignal
	mov	r3, r0
	ldr	r1, [fp, #-384]
	mov	r0, r3
	bl	print_child_error
	ldr	r3, [fp, #-376]
	and	r3, r3, #127
	add	r3, r3, #128
	str	r3, [fp, #-368]
	b	.L62
.L64:
	ldr	r3, [fp, #-376]
	and	r3, r3, #255
	cmp	r3, #127
	bne	.L65
	ldr	r3, .L76+68
	ldr	r0, [r3]
	ldr	r3, .L76+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-376]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r1, .L76+96
	bl	fprintf
	mov	r0, #1
	bl	exit
.L65:
	ldr	r3, .L76+68
	ldr	r0, [r3]
	ldr	r3, .L76+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-376]
	ldr	r1, .L76+100
	bl	fprintf
	mov	r0, #1
	bl	exit
.L62:
	sub	r3, fp, #284
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L75
	ldr	r3, .L76+8
	mov	r2, #324
	ldr	r1, .L76+12
	ldr	r0, .L76+16
	bl	__assert_fail
.L75:
	nop
.L67:
	ldr	r3, [fp, #-372]
	mov	r0, r3
	bl	read_out
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #-368]
	ldr	r2, .L76
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC26
	.word	signal_chld
	.word	__PRETTY_FUNCTION__.7367
	.word	.LC12
	.word	.LC13
	.word	3261
	.word	32896
	.word	childptyname
	.word	child
	.word	2050
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	signal_alrm
	.word	.LC18
	.word	.LC19
	.word	stderr
	.word	progname
	.word	.LC20
	.word	.LC21
	.word	signal_alrm_hit
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	spawn, .-spawn
	.local	cmdline.7384
	.comm	cmdline.7384,2048,4
	.section	.rodata
	.align	2
.LC27:
	.ascii	"/proc/%d/cmdline\000"
	.align	2
.LC28:
	.ascii	"%s: read (\"%s\"): %m\012\000"
	.align	2
.LC29:
	.ascii	"%s: close (\"%s\"): %m\012\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_cmdline, %function
read_cmdline:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L93
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #40
	ldr	r3, [fp, #-56]
	ldr	r2, .L93+4
	mov	r1, #32
	bl	snprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L79
	mov	r3, #0
	b	.L91
.L79:
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L81
	mov	r3, #0
	b	.L91
.L81:
	ldr	r2, .L93+8
	ldr	r1, .L93+12
	ldr	r0, [fp, #-48]
	bl	read
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L82
	ldr	r3, .L93+16
	ldr	r0, [r3]
	ldr	r3, .L93+20
	ldr	r2, [r3]
	sub	r3, fp, #40
	ldr	r1, .L93+24
	bl	fprintf
.L82:
	ldr	r0, [fp, #-48]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L83
	ldr	r3, .L93+16
	ldr	r0, [r3]
	ldr	r3, .L93+20
	ldr	r2, [r3]
	sub	r3, fp, #40
	ldr	r1, .L93+28
	bl	fprintf
.L83:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L84
	mov	r3, #0
	b	.L91
.L84:
	ldr	r3, .L93+12
	str	r3, [fp, #-52]
	b	.L85
.L87:
	ldr	r3, [fp, #-52]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L86
	ldr	r3, [fp, #-52]
	mov	r2, #32
	strb	r2, [r3]
.L86:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L85:
	ldr	r3, [fp, #-44]
	ldr	r2, .L93+12
	add	r3, r3, r2
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bcc	.L87
	b	.L88
.L90:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
.L88:
	ldr	r3, [fp, #-52]
	ldr	r2, .L93+12
	cmp	r3, r2
	bls	.L89
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L90
.L89:
	ldr	r3, [fp, #-52]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L93+12
.L91:
	ldr	r2, .L93
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L92
	bl	__stack_chk_fail
.L92:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L94:
	.align	2
.L93:
	.word	.LC30
	.word	.LC27
	.word	2047
	.word	cmdline.7384
	.word	stderr
	.word	progname
	.word	.LC28
	.word	.LC29
	.size	read_cmdline, .-read_cmdline
	.section	.rodata
	.align	2
.LC31:
	.ascii	"%s: opendir (\"%s\"): %m\012\000"
	.align	2
.LC32:
	.ascii	"%s/%s\000"
	.align	2
.LC33:
	.ascii	"entry file name too long: `%s' / `%s'\012\000"
	.align	2
.LC34:
	.ascii	"%s: stat (\"%s\"): %m\012\000"
	.align	2
.LC35:
	.ascii	"%s: readdir (\"%s\"): %m\012\000"
	.align	2
.LC36:
	.ascii	"%s: closedir (\"%s\"): %m\012\000"
	.align	2
.LC37:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dir_scan, %function
dir_scan:
	@ args = 0, pretend = 0, frame = 2176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2176
	sub	sp, sp, #8
	str	r0, [fp, #-2176]
	str	r1, [fp, #-2180]
	ldr	r3, .L117
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2168]
	ldr	r0, [fp, #-2176]
	bl	opendir
	str	r0, [fp, #-2164]
	ldr	r3, [fp, #-2164]
	cmp	r3, #0
	bne	.L100
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	beq	.L97
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L98
.L97:
	ldr	r3, [fp, #-2168]
	b	.L99
.L98:
	ldr	r3, .L117+4
	ldr	r0, [r3]
	ldr	r3, .L117+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-2176]
	ldr	r1, .L117+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L112:
	ldr	r3, [fp, #-2160]
	add	r3, r3, #11
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	str	r3, [sp]
	ldr	r3, [fp, #-2176]
	ldr	r2, .L117+16
	mov	r1, #2048
	bl	snprintf
	str	r0, [fp, #-2156]
	ldr	r3, [fp, #-2156]
	cmp	r3, #0
	ble	.L101
	ldr	r3, [fp, #-2156]
	cmp	r3, #2048
	blt	.L102
.L101:
	ldr	r3, .L117+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-2160]
	add	r3, r3, #11
	ldr	r2, [fp, #-2176]
	ldr	r1, .L117+20
	bl	fprintf
	b	.L100
.L102:
	ldr	r3, [fp, #-2160]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L104
	sub	r2, fp, #2144
	sub	r2, r2, #4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	lstat
	str	r0, [fp, #-2152]
	ldr	r3, [fp, #-2152]
	cmn	r3, #1
	bne	.L105
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	beq	.L116
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L116
	ldr	r3, .L117+4
	ldr	r0, [r3]
	ldr	r3, .L117+8
	ldr	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L117+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L105:
	ldr	r3, [fp, #-2132]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L108
	ldr	r3, [fp, #-2160]
	mov	r2, #4
	strb	r2, [r3, #10]
.L108:
	ldr	r3, [fp, #-2132]
	and	r3, r3, #61440
	cmp	r3, #40960
	bne	.L104
	ldr	r3, [fp, #-2160]
	mov	r2, #10
	strb	r2, [r3, #10]
.L104:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2180]
	mov	r1, r3
	ldr	r0, [fp, #-2160]
	blx	r2
	str	r0, [fp, #-2168]
	ldr	r3, [fp, #-2168]
	cmp	r3, #0
	beq	.L100
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	b	.L111
.L116:
	nop
.L100:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-2164]
	bl	readdir
	str	r0, [fp, #-2160]
	ldr	r3, [fp, #-2160]
	cmp	r3, #0
	bne	.L112
.L111:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L113
	ldr	r3, .L117+4
	ldr	r0, [r3]
	ldr	r3, .L117+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-2176]
	ldr	r1, .L117+28
	bl	fprintf
	mov	r0, #1
	bl	exit
.L113:
	ldr	r0, [fp, #-2164]
	bl	closedir
	mov	r3, r0
	cmp	r3, #0
	beq	.L114
	ldr	r3, .L117+4
	ldr	r0, [r3]
	ldr	r3, .L117+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-2176]
	ldr	r1, .L117+32
	bl	fprintf
	mov	r0, #1
	bl	exit
.L114:
	ldr	r3, [fp, #-2168]
.L99:
	ldr	r2, .L117
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L115
	bl	__stack_chk_fail
.L115:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L118:
	.align	2
.L117:
	.word	.LC37
	.word	stderr
	.word	progname
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.size	dir_scan, .-dir_scan
	.section	.rodata
	.align	2
.LC38:
	.ascii	".\000"
	.align	2
.LC39:
	.ascii	"..\000"
	.align	2
.LC40:
	.ascii	"0123456789\000"
	.align	2
.LC41:
	.ascii	"Unexpected entry \"%s\" (d_type %u) on readdir (\"%"
	.ascii	"s\"): %m\012\000"
	.align	2
.LC42:
	.ascii	"Error reading link \"%s\": %m\012\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	callback.7419, %function
callback.7419:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 2072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #2080
	str	r0, [fp, #-2072]
	str	r1, [fp, #-2076]
	mov	r4, ip
	str	ip, [fp, #-2080]
	ldr	r3, .L131
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-2072]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #4
	beq	.L120
	ldr	r3, [fp, #-2072]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L121
.L120:
	ldr	r3, [fp, #-2072]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L122
	ldr	r3, [fp, #-2072]
	add	r3, r3, #11
	ldr	r1, .L131+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L122
	ldr	r3, [fp, #-2072]
	add	r3, r3, #11
	ldr	r1, .L131+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L121
.L122:
	ldr	r3, [fp, #-2072]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L123
	ldr	r3, [fp, #-2072]
	add	r3, r3, #11
	ldr	r1, .L131+12
	mov	r0, r3
	bl	strspn
	mov	r5, r0
	ldr	r3, [fp, #-2072]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r5, r3
	beq	.L123
.L121:
	ldr	r3, .L131+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-2072]
	add	r2, r3, #11
	ldr	r3, [fp, #-2072]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	mov	r1, r3
	add	r3, r4, #8
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L131+20
	bl	fprintf
	mov	r3, #0
	b	.L129
.L123:
	ldr	r3, [fp, #-2072]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L125
	mov	r3, #0
	b	.L129
.L125:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L131+24
	mov	r1, r3
	ldr	r0, [fp, #-2076]
	bl	readlink
	str	r0, [fp, #-2068]
	ldr	r3, [fp, #-2068]
	cmp	r3, #0
	ble	.L126
	ldr	r3, [fp, #-2068]
	ldr	r2, .L131+28
	cmp	r3, r2
	ble	.L127
.L126:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L128
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	beq	.L128
	ldr	r3, .L131+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-2076]
	ldr	r1, .L131+32
	mov	r0, r3
	bl	fprintf
.L128:
	mov	r3, #0
	b	.L129
.L127:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2068]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [r4, #4]
	ldr	r0, [r4]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	blx	r2
	mov	r3, r0
.L129:
	ldr	r2, .L131
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L130
	bl	__stack_chk_fail
.L130:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L132:
	.align	2
.L131:
	.word	.LC43
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	stderr
	.word	.LC41
	.word	2047
	.word	2046
	.word	.LC42
	.size	callback.7419, .-callback.7419
	.section	.rodata
	.align	2
.LTRAMP0:
	.syntax unified
	.arm
	ldr	ip, [pc, #0]
	ldr	pc, [pc, #0]
	.word	0
	.word	0
	.global	__clear_cache
	.align	2
.LC44:
	.ascii	"/proc/%d/fd\000"
	.align	2
.LC45:
	.ascii	"snprintf(3)\000"
	.align	2
.LC46:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fd_fs_scan, %function
fd_fs_scan:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L137
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-104]
	sub	r3, fp, #108
	add	ip, r3, #72
	sub	lr, fp, #108
	ldr	r3, .L137+4
	mov	r4, ip
	ldm	r3, {r0, r1, r2, r3}
	stm	r4, {r0, r1, r2, r3}
	str	lr, [ip, #8]
	ldr	r3, .L137+8
	str	r3, [ip, #12]
	add	r3, ip, #16
	mov	r1, r3
	mov	r0, ip
	bl	__clear_cache
	ldr	r2, [fp, #-108]
	sub	r3, fp, #108
	add	r0, r3, #8
	mov	r3, r2
	ldr	r2, .L137+12
	mov	r1, #64
	bl	snprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L134
	ldr	r0, .L137+16
	bl	perror
	mov	r0, #1
	bl	exit
.L134:
	sub	r3, fp, #108
	add	r3, r3, #72
	mov	r2, r3
	sub	r3, fp, #108
	add	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	dir_scan
	mov	r3, r0
	ldr	r2, .L137
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L136
	bl	__stack_chk_fail
.L136:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L138:
	.align	2
.L137:
	.word	.LC46
	.word	.LTRAMP0
	.word	callback.7419
	.word	.LC44
	.word	.LC45
	.size	fd_fs_scan, .-fd_fs_scan
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	callback.7431, %function
callback.7431:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r4, ip
	str	ip, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L140
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	ldr	r1, .L143
	mov	r0, r3
	bl	strspn
	mov	r5, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r5, r3
	beq	.L141
.L140:
	mov	r3, #0
	b	.L142
.L141:
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	mov	r0, r3
	bl	atoi
	ldr	r3, [r4, #4]
	ldr	r2, [r4]
	mov	r1, r2
	blx	r3
	mov	r3, #0
.L142:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L144:
	.align	2
.L143:
	.word	.LC40
	.size	callback.7431, .-callback.7431
	.global	__clear_cache
	.section	.rodata
	.align	2
.LC47:
	.ascii	"/proc\000"
	.align	2
.LC48:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pid_fs_scan, %function
pid_fs_scan:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L147
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-44]
	sub	r3, fp, #44
	add	ip, r3, #8
	sub	lr, fp, #44
	ldr	r3, .L147+4
	mov	r4, ip
	ldm	r3, {r0, r1, r2, r3}
	stm	r4, {r0, r1, r2, r3}
	str	lr, [ip, #8]
	ldr	r3, .L147+8
	str	r3, [ip, #12]
	add	r3, ip, #16
	mov	r1, r3
	mov	r0, ip
	bl	__clear_cache
	sub	r3, fp, #44
	add	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L147+12
	bl	dir_scan
	nop
	ldr	r3, .L147
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L146
	bl	__stack_chk_fail
.L146:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L148:
	.align	2
.L147:
	.word	.LC48
	.word	.LTRAMP0
	.word	callback.7431
	.word	.LC47
	.size	pid_fs_scan, .-pid_fs_scan
	.section	.rodata
	.align	2
.LC49:
	.ascii	"pid != getpid ()\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rip_check_ptyname, %function
rip_check_ptyname:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bne	.L150
	ldr	r3, .L152
	ldr	r2, .L152+4
	ldr	r1, .L152+8
	ldr	r0, .L152+12
	bl	__assert_fail
.L150:
	ldr	r1, .L152+16
	ldr	r0, [fp, #-12]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L153:
	.align	2
.L152:
	.word	__PRETTY_FUNCTION__.7437
	.word	531
	.word	.LC12
	.word	.LC49
	.word	childptyname
	.size	rip_check_ptyname, .-rip_check_ptyname
	.local	pid_list
	.comm	pid_list,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pid_found, %function
pid_found:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, .L159
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L155
.L158:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L156
	mov	r3, #1
	b	.L157
.L156:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L155:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L158
	mov	r3, #0
.L157:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L160:
	.align	2
.L159:
	.word	pid_list
	.size	pid_found, .-pid_found
	.local	cleanup_acted
	.comm	cleanup_acted,4,4
	.section	.rodata
	.align	2
.LC50:
	.ascii	"%s: malloc: %m\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pid_record, %function
pid_record:
	@ 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	r0, [fp, #-16]
	bl	pid_found
	mov	r3, r0
	cmp	r3, #0
	bne	.L165
	ldr	r3, .L166
	mov	r2, #1
	str	r2, [r3]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L164
	ldr	r3, .L166+4
	ldr	r3, [r3]
	ldr	r2, .L166+8
	ldr	r2, [r2]
	ldr	r1, .L166+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L164:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, .L166+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r2, .L166+16
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L161
.L165:
	nop
.L161:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L167:
	.align	2
.L166:
	.word	cleanup_acted
	.word	stderr
	.word	progname
	.word	.LC50
	.word	pid_list
	.size	pid_record, .-pid_record
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pid_forall, %function
pid_forall:
	@ 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, .L171
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L169
.L170:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r0, r2
	blx	r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L169:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L170
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L172:
	.align	2
.L171:
	.word	pid_list
	.size	pid_forall, .-pid_forall
	.section	.rodata
	.align	2
.LC51:
	.ascii	"/proc/%d/status\000"
	.align	2
.LC52:
	.ascii	"r\000"
	.align	2
.LC53:
	.ascii	"PPid:\011\000"
	.align	2
.LC54:
	.ascii	"%s: fgets (\"%s\"): %m\012\000"
	.align	2
.LC55:
	.ascii	"%s: fclose (\"%s\"): %m\012\000"
	.align	2
.LC56:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pid_get_parent, %function
pid_get_parent:
	@ args = 0, pretend = 0, frame = 2136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2128
	sub	sp, sp, #8
	str	r0, [fp, #-2136]
	ldr	r3, .L185
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2128]
	sub	r0, fp, #2112
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-2136]
	ldr	r2, .L185+4
	mov	r1, #64
	bl	snprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L174
	ldr	r0, .L185+8
	bl	perror
	mov	r0, #1
	bl	exit
.L174:
	sub	r3, fp, #2112
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L185+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-2124]
	ldr	r3, [fp, #-2124]
	cmp	r3, #0
	bne	.L177
	mov	r3, #0
	b	.L183
.L180:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #6
	ldr	r1, .L185+16
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L178
	b	.L177
.L178:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #6
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2128]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	b	.L179
.L177:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2124]
	mov	r1, #2048
	mov	r0, r3
	bl	fgets
	mov	r2, r0
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	cmp	r2, r3
	beq	.L180
.L179:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L181
	ldr	r3, .L185+20
	ldr	r0, [r3]
	ldr	r3, .L185+24
	ldr	r2, [r3]
	sub	r3, fp, #2112
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L185+28
	bl	fprintf
	mov	r0, #1
	bl	exit
.L181:
	ldr	r0, [fp, #-2124]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L182
	ldr	r3, .L185+20
	ldr	r0, [r3]
	ldr	r3, .L185+24
	ldr	r2, [r3]
	sub	r3, fp, #2112
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L185+32
	bl	fprintf
	mov	r0, #1
	bl	exit
.L182:
	ldr	r3, [fp, #-2128]
.L183:
	ldr	r2, .L185
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L184
	bl	__stack_chk_fail
.L184:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L186:
	.align	2
.L185:
	.word	.LC56
	.word	.LC51
	.word	.LC45
	.word	.LC52
	.word	.LC53
	.word	stderr
	.word	progname
	.word	.LC54
	.word	.LC55
	.size	pid_get_parent, .-pid_get_parent
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	killtree_pid_fs_scan, %function
killtree_pid_fs_scan:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	pid_get_parent
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bne	.L190
	ldr	r0, [fp, #-16]
	bl	killtree
	b	.L187
.L190:
	nop
.L187:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	killtree_pid_fs_scan, .-killtree_pid_fs_scan
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	killtree, %function
killtree:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	pid_record
	sub	r3, fp, #8
	mov	r1, r3
	ldr	r0, .L192
	bl	pid_fs_scan
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L193:
	.align	2
.L192:
	.word	killtree_pid_fs_scan
	.size	killtree, .-killtree
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rip_pid_fs_scan, %function
rip_pid_fs_scan:
	@ 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]
	str	r1, [fp, #-20]
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L198
	ldr	r0, [fp, #-16]
	bl	getpgid
	str	r0, [fp, #-8]
	ldr	r3, .L199
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L197
	ldr	r1, .L199+4
	ldr	r0, [fp, #-16]
	bl	fd_fs_scan
	mov	r3, r0
	cmp	r3, #0
	beq	.L194
.L197:
	ldr	r0, [fp, #-16]
	bl	killtree
	b	.L194
.L198:
	nop
.L194:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L200:
	.align	2
.L199:
	.word	child
	.word	rip_check_ptyname
	.size	rip_pid_fs_scan, .-rip_pid_fs_scan
	.section	.rodata
	.align	2
.LC57:
	.ascii	"<error>\000"
	.align	2
.LC58:
	.ascii	"%s: Killed -9 orphan PID %d: %s\012\000"
	.align	2
.LC59:
	.ascii	"%s: kill (%d, SIGKILL): %m\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	killproc, %function
killproc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	read_cmdline
	str	r0, [fp, #-8]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L202
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L207
.L202:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L204
	ldr	r3, .L208
	str	r3, [fp, #-8]
.L204:
	ldr	r3, .L208+4
	ldr	r0, [r3]
	ldr	r3, .L208+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r1, .L208+12
	bl	fprintf
	mov	r1, #9
	ldr	r0, [fp, #-16]
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	bne	.L205
	ldr	r3, .L208+16
	mov	r2, #1
	str	r2, [r3]
	b	.L206
.L205:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L206
	ldr	r3, .L208+4
	ldr	r0, [r3]
	ldr	r3, .L208+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, .L208+20
	bl	fprintf
.L206:
	mov	r1, #18
	ldr	r0, [fp, #-16]
	bl	kill
	b	.L201
.L207:
	nop
.L201:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L209:
	.align	2
.L208:
	.word	.LC57
	.word	stderr
	.word	progname
	.word	.LC58
	.word	cleanup_acted
	.word	.LC59
	.size	killproc, .-killproc
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rip, %function
rip:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L213
	mov	r2, #0
	str	r2, [r3]
.L212:
	ldr	r3, .L213
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L211
	ldr	r0, .L213+4
	bl	usleep
.L211:
	ldr	r3, .L213
	mov	r2, #0
	str	r2, [r3]
	mov	r1, #0
	ldr	r0, .L213+8
	bl	pid_fs_scan
	ldr	r0, .L213+12
	bl	pid_forall
	ldr	r3, .L213
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L212
	nop
	nop
	pop	{fp, pc}
.L214:
	.align	2
.L213:
	.word	cleanup_acted
	.word	100000
	.word	rip_pid_fs_scan
	.word	killproc
	.size	rip, .-rip
	.section	.rodata
	.align	2
.LC60:
	.ascii	"-h\000"
	.align	2
.LC61:
	.ascii	"--help\000"
	.align	2
.LC62:
	.ascii	"Syntax: orphanripper [-t <seconds>] <execvp(3) comm"
	.ascii	"andline>\000"
	.align	2
.LC63:
	.ascii	"%s: Invalid timeout value: %s\012\000"
	.align	2
.LC64:
	.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, .L226
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r2, r3, #4
	str	r2, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, .L226+4
	str	r3, [r2]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L216
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, .L226+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L216
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, .L226+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L217
.L216:
	ldr	r0, .L226+16
	bl	puts
	mov	r0, #1
	bl	exit
.L217:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L218
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L218
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L219
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L220
.L219:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L220
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r3, #2
	str	r3, [fp, #-20]
.L220:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L218
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-36]
	sub	r3, fp, #28
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strtol
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L221
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L222
.L221:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L222
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	beq	.L218
.L222:
	ldr	r3, .L226+20
	ldr	r0, [r3]
	ldr	r3, .L226+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, .L226+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L218:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-36]
	bl	spawn
	str	r0, [fp, #-12]
	bl	rip
	ldr	r3, [fp, #-12]
	ldr	r2, .L226
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L225
	bl	__stack_chk_fail
.L225:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L227:
	.align	2
.L226:
	.word	.LC64
	.word	progname
	.word	.LC60
	.word	.LC61
	.word	.LC62
	.word	stderr
	.word	.LC63
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7367, %object
	.size	__PRETTY_FUNCTION__.7367, 6
__PRETTY_FUNCTION__.7367:
	.ascii	"spawn\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7437, %object
	.size	__PRETTY_FUNCTION__.7437, 18
__PRETTY_FUNCTION__.7437:
	.ascii	"rip_check_ptyname\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"x",%progbits
