	.file	"18887912.c"
	.intel_syntax noprefix
	.text
	.globl	cmd
	.bss
	.align 32
	.type	cmd, @object
	.size	cmd, 2048
cmd:
	.zero	2048
	.globl	heart_beat_timeout
	.data
	.align 4
	.type	heart_beat_timeout, @object
	.size	heart_beat_timeout, 4
heart_beat_timeout:
	.long	60
	.globl	heart_beat_report_delay
	.align 4
	.type	heart_beat_report_delay, @object
	.size	heart_beat_report_delay, 4
heart_beat_report_delay:
	.long	30
	.globl	heart_beat_boot_delay
	.align 4
	.type	heart_beat_boot_delay, @object
	.size	heart_beat_boot_delay, 4
heart_beat_boot_delay:
	.long	60
	.globl	heart_beat_kill_pid
	.bss
	.align 8
	.type	heart_beat_kill_pid, @object
	.size	heart_beat_kill_pid, 8
heart_beat_kill_pid:
	.zero	8
	.local	program_name
	.comm	program_name,256,32
	.local	erlin_fd
	.comm	erlin_fd,4,4
	.data
	.align 4
	.type	erlout_fd, @object
	.size	erlout_fd, 4
erlout_fd:
	.long	1
	.local	debug_on
	.comm	debug_on,4,4
	.text
	.type	is_env_set, @function
is_env_set:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getenv@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_env_set, .-is_env_set
	.type	get_env, @function
get_env:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getenv@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_env, .-get_env
	.type	free_env_val, @function
free_env_val:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	free_env_val, .-free_env_val
	.section	.rodata
.LC0:
	.string	"-ht"
.LC1:
	.string	"%i"
.LC2:
	.string	"heart_beat_timeout = %d\n"
.LC3:
	.string	"-wt"
.LC4:
	.string	"heart_beat_boot_delay = %d\n"
.LC5:
	.string	"-pid"
.LC6:
	.string	"%lu"
.LC7:
	.string	"heart_beat_kill_pid = %lu\n"
	.align 8
.LC8:
	.string	"arguments -ht %d -wt %d -pid %lu\n"
	.text
	.type	get_arguments, @function
get_arguments:
.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, 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
	mov	DWORD PTR -20[rbp], 1
	jmp	.L7
.L16:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 45
	jne	.L8
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 119
	je	.L9
	cmp	eax, 119
	jg	.L18
	cmp	eax, 104
	je	.L11
	cmp	eax, 112
	je	.L12
	jmp	.L18
.L11:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -28[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L19
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 10
	jle	.L19
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 65535
	jg	.L19
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR heart_beat_timeout[rip], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -20[rbp], 1
	jmp	.L19
.L9:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L20
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 10
	jle	.L20
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 65535
	jg	.L20
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR heart_beat_boot_delay[rip], eax
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -20[rbp], 1
	jmp	.L20
.L12:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -16[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L21
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR heart_beat_kill_pid[rip], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -20[rbp], 1
	jmp	.L21
.L19:
	nop
	jmp	.L18
.L20:
	nop
	jmp	.L18
.L21:
	nop
.L18:
	nop
.L8:
	add	DWORD PTR -20[rbp], 1
.L7:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L16
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	debugf
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_arguments, .-get_arguments
	.section	.rodata
.LC9:
	.string	"HEART_DEBUG"
.LC10:
	.string	"heart: debug is ON!\r\n"
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	lea	rdi, .LC9[rip]
	call	is_env_set
	test	eax, eax
	je	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	DWORD PTR debug_on[rip], 1
.L23:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	get_arguments
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 256
	mov	rsi, rax
	lea	rdi, program_name[rip]
	call	strncpy@PLT
	mov	BYTE PTR program_name[rip+255], 0
	mov	eax, DWORD PTR erlout_fd[rip]
	mov	edi, eax
	call	notify_ack
	mov	BYTE PTR cmd[rip], 0
	mov	edx, DWORD PTR erlout_fd[rip]
	mov	eax, DWORD PTR erlin_fd[rip]
	mov	esi, edx
	mov	edi, eax
	call	message_loop
	mov	edx, eax
	mov	eax, DWORD PTR erlin_fd[rip]
	mov	esi, edx
	mov	edi, eax
	call	do_terminate
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
.LC11:
	.string	"error in select."
	.align 8
.LC12:
	.string	"heart-beat time-out, no activity for %lu seconds"
.LC13:
	.string	"error in read_message."
.LC14:
	.string	"HEART_COMMAND"
.LC15:
	.string	""
	.align 8
.LC16:
	.string	"Erlang is crashing .. (waiting for crash dump file)"
.LC17:
	.string	"Erlang has closed."
	.text
	.type	message_loop, @function
message_loop:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2288
	mov	DWORD PTR -2276[rbp], edi
	mov	DWORD PTR -2280[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -2064[rbp]
	mov	QWORD PTR -2216[rbp], rax
	call	init_timestamp
	lea	rax, -2248[rbp]
	mov	rdi, rax
	call	timestamp
	mov	rax, QWORD PTR -2248[rbp]
	mov	QWORD PTR -2240[rbp], rax
	mov	eax, DWORD PTR -2276[rbp]
	mov	DWORD PTR -2268[rbp], eax
.L45:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -2192[rbp]
	mov	rdi, rdx
#APP
# 429 "the_stack_data/18887912.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -2264[rbp], edx
	mov	DWORD PTR -2260[rbp], eax
	mov	eax, DWORD PTR -2276[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -2192[rbp+rax*8]
	mov	eax, DWORD PTR -2276[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -2192[rbp+rax*8], rdx
	mov	QWORD PTR -2208[rbp], 5
	mov	QWORD PTR -2200[rbp], 0
	mov	eax, DWORD PTR -2268[rbp]
	lea	edi, 1[rax]
	lea	rdx, -2208[rbp]
	lea	rax, -2192[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -2256[rbp], eax
	cmp	DWORD PTR -2256[rbp], 0
	jns	.L26
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	print_error
	mov	eax, 3
	jmp	.L46
.L26:
	lea	rax, -2248[rbp]
	mov	rdi, rax
	call	timestamp
	mov	eax, DWORD PTR heart_beat_timeout[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -2240[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -2248[rbp]
	cmp	rdx, rax
	jge	.L28
	mov	rax, QWORD PTR -2248[rbp]
	mov	rdx, QWORD PTR -2240[rbp]
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	print_error
	mov	eax, 1
	jmp	.L46
.L28:
	cmp	DWORD PTR -2256[rbp], 0
	je	.L48
	mov	eax, DWORD PTR -2276[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -2192[rbp+rax*8]
	mov	eax, DWORD PTR -2276[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L45
	mov	rdx, QWORD PTR -2216[rbp]
	mov	eax, DWORD PTR -2276[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	read_message
	mov	DWORD PTR -2252[rbp], eax
	cmp	DWORD PTR -2252[rbp], 0
	jns	.L31
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	print_error
	mov	eax, 3
	jmp	.L46
.L31:
	cmp	DWORD PTR -2252[rbp], 2
	jle	.L32
	cmp	DWORD PTR -2252[rbp], 2050
	jg	.L32
	mov	rax, QWORD PTR -2216[rbp]
	movzx	eax, BYTE PTR 2[rax]
	movzx	eax, al
	cmp	eax, 8
	ja	.L49
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L35[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L35[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L35:
	.long	.L49-.L35
	.long	.L49-.L35
	.long	.L40-.L35
	.long	.L39-.L35
	.long	.L38-.L35
	.long	.L37-.L35
	.long	.L36-.L35
	.long	.L49-.L35
	.long	.L34-.L35
	.text
.L40:
	lea	rax, -2240[rbp]
	mov	rdi, rax
	call	timestamp
	jmp	.L41
.L39:
	mov	eax, 4
	jmp	.L46
.L38:
	mov	eax, DWORD PTR -2252[rbp]
	sub	eax, 3
	cdqe
	mov	rdx, QWORD PTR -2216[rbp]
	lea	rcx, 3[rdx]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, cmd[rip]
	call	memcpy@PLT
	mov	eax, DWORD PTR -2252[rbp]
	sub	eax, 3
	cdqe
	lea	rdx, cmd[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, DWORD PTR -2280[rbp]
	mov	edi, eax
	call	notify_ack
	jmp	.L41
.L37:
	mov	BYTE PTR cmd[rip], 0
	mov	eax, DWORD PTR -2280[rbp]
	mov	edi, eax
	call	notify_ack
	jmp	.L41
.L36:
	mov	QWORD PTR -2232[rbp], 0
	movzx	eax, BYTE PTR cmd[rip]
	test	al, al
	jne	.L42
	lea	rdi, .LC14[rip]
	call	get_env
	mov	QWORD PTR -2232[rbp], rax
	mov	rax, QWORD PTR -2232[rbp]
	jmp	.L43
.L42:
	lea	rax, cmd[rip]
.L43:
	mov	QWORD PTR -2224[rbp], rax
	cmp	QWORD PTR -2224[rbp], 0
	jne	.L44
	lea	rax, .LC15[rip]
	mov	QWORD PTR -2224[rbp], rax
.L44:
	mov	rdx, QWORD PTR -2224[rbp]
	mov	eax, DWORD PTR -2280[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	heart_cmd_reply
	mov	rax, QWORD PTR -2232[rbp]
	mov	rdi, rax
	call	free_env_val
	jmp	.L41
.L34:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	print_error
	mov	eax, 5
	jmp	.L46
.L49:
	nop
.L41:
	jmp	.L30
.L32:
	cmp	DWORD PTR -2252[rbp], 0
	jne	.L45
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	print_error
	mov	eax, 2
	jmp	.L46
.L48:
	nop
.L30:
	jmp	.L45
.L46:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	message_loop, .-message_loop
	.section	.rodata
.LC18:
	.string	"HEART_KILL_SIGNAL"
.LC19:
	.string	"SIGABRT"
.LC20:
	.string	"kill signal SIGABRT requested"
	.align 8
.LC21:
	.string	"Unable to kill old process, kill failed (tried multiple times)."
	.text
	.type	kill_old_erlang, @function
kill_old_erlang:
.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, 32
	mov	DWORD PTR -16[rbp], 9
	mov	QWORD PTR -8[rbp], 0
	lea	rdi, .LC18[rip]
	call	get_env
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L51
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	print_error
	mov	DWORD PTR -16[rbp], 6
.L51:
	mov	rax, QWORD PTR heart_beat_kill_pid[rip]
	test	rax, rax
	je	.L56
	mov	rax, QWORD PTR heart_beat_kill_pid[rip]
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L53
.L55:
	mov	edi, 1
	call	sleep@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -24[rbp], 1
.L53:
	cmp	DWORD PTR -24[rbp], 4
	jg	.L54
	cmp	DWORD PTR -20[rbp], 0
	je	.L55
.L54:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	je	.L56
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	print_error
.L56:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	kill_old_erlang, .-kill_old_erlang
	.section	.rodata
.LC22:
	.string	"ERL_CRASH_DUMP_SECONDS"
	.align 8
.LC23:
	.string	"Waiting for dump - timeout set to %d seconds."
.LC24:
	.string	"Would reboot. Terminating."
	.align 8
.LC25:
	.string	"Executed \"%s\" -> %d. Terminating."
	.text
	.type	do_terminate, @function
do_terminate:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	cmp	DWORD PTR -40[rbp], 4
	je	.L66
	cmp	DWORD PTR -40[rbp], 5
	jne	.L60
	lea	rdi, .LC22[rip]
	call	is_env_set
	test	eax, eax
	je	.L60
	lea	rdi, .LC22[rip]
	call	get_env
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	print_error
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	wait_until_close_write_or_env_tmo
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free_env_val
.L60:
	movzx	eax, BYTE PTR cmd[rip]
	test	al, al
	jne	.L62
	lea	rdi, .LC14[rip]
	call	get_env
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L63
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	print_error
	jmp	.L64
.L63:
	call	kill_old_erlang
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	print_error
.L64:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free_env_val
	jmp	.L61
.L62:
	call	kill_old_erlang
	lea	rdi, cmd[rip]
	call	system@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	lea	rsi, cmd[rip]
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	print_error
	jmp	.L61
.L66:
	nop
.L61:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	do_terminate, .-do_terminate
	.type	wait_until_close_write_or_env_tmo, @function
wait_until_close_write_or_env_tmo:
.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, 208
	mov	DWORD PTR -196[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -184[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	eax, DWORD PTR erlin_fd[rip]
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	js	.L68
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], 0
	lea	rax, -160[rbp]
	mov	QWORD PTR -168[rbp], rax
.L68:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 775 "the_stack_data/18887912.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -176[rbp], edx
	mov	DWORD PTR -172[rbp], eax
	mov	eax, DWORD PTR erlin_fd[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR erlin_fd[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	eax, DWORD PTR -180[rbp]
	lea	edi, 1[rax]
	mov	rdx, QWORD PTR -168[rbp]
	lea	rax, -144[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 0
	jns	.L69
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	print_error
	mov	eax, -1
	jmp	.L71
.L69:
	mov	eax, DWORD PTR -184[rbp]
.L71:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L72
	call	__stack_chk_fail@PLT
.L72:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	wait_until_close_write_or_env_tmo, .-wait_until_close_write_or_env_tmo
	.type	notify_ack, @function
notify_ack:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2080
	mov	DWORD PTR -2068[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -2062[rbp], 1
	mov	edi, 1
	call	htons@PLT
	mov	WORD PTR -2064[rbp], ax
	lea	rdx, -2064[rbp]
	mov	eax, DWORD PTR -2068[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	write_message
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	notify_ack, .-notify_ack
	.type	heart_cmd_reply, @function
heart_cmd_reply:
.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, 2096
	mov	DWORD PTR -2084[rbp], edi
	mov	QWORD PTR -2096[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2096[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -2068[rbp], eax
	mov	eax, DWORD PTR -2068[rbp]
	cmp	eax, 2047
	jbe	.L77
	mov	eax, -1
	jmp	.L79
.L77:
	mov	BYTE PTR -2062[rbp], 7
	mov	eax, DWORD PTR -2068[rbp]
	add	eax, 1
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -2064[rbp], ax
	mov	rax, QWORD PTR -2096[rbp]
	lea	rdx, -2064[rbp]
	add	rdx, 3
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rdx, -2064[rbp]
	mov	eax, DWORD PTR -2084[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	write_message
.L79:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L80
	call	__stack_chk_fail@PLT
.L80:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	heart_cmd_reply, .-heart_cmd_reply
	.type	write_message, @function
write_message:
.LFB17:
	.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	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L82
	cmp	DWORD PTR -12[rbp], 2048
	jle	.L83
.L82:
	mov	eax, 2
	jmp	.L84
.L83:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 2
	movsx	rdx, eax
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -12[rbp]
	add	edx, 2
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L85
	mov	eax, -1
	jmp	.L84
.L85:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 2
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	write_message, .-write_message
	.type	read_message, @function
read_message:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read_fill
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 2
	je	.L87
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L88
.L87:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L89
	mov	eax, 2
	jmp	.L88
.L89:
	cmp	DWORD PTR -12[rbp], 2048
	jle	.L90
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, 2[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, edx
	mov	edx, 2048
	mov	edi, eax
	call	read_skip
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	je	.L91
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L88
.L91:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 2
	jmp	.L88
.L90:
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 2[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read_fill
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	je	.L92
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L88
.L92:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 2
.L88:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	read_message, .-read_message
	.type	read_fill, @function
read_fill:
.LFB19:
	.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	DWORD PTR -24[rbp], edx
	mov	DWORD PTR -8[rbp], 0
.L96:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jg	.L94
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L95
.L94:
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L96
	mov	eax, DWORD PTR -24[rbp]
.L95:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	read_fill, .-read_fill
	.type	read_skip, @function
read_skip:
.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, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -40[rbp], edx
	mov	DWORD PTR -52[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	mov	edx, DWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read_fill
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jg	.L98
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L101
.L98:
	lea	rcx, -17[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jg	.L100
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L101
.L100:
	mov	eax, DWORD PTR -12[rbp]
	add	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L98
	mov	eax, DWORD PTR -52[rbp]
.L101:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	read_skip, .-read_skip
	.section	.rodata
.LC26:
	.string	"%s: %.*s: "
.LC27:
	.string	"\r\n"
	.text
	.type	print_error, @function
print_error:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L104
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L104:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	edx, -1[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -216[rbp]
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, program_name[rip]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -232[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L105
	call	__stack_chk_fail@PLT
.L105:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	print_error, .-print_error
	.section	.rodata
.LC28:
	.string	"Heart: "
	.text
	.type	debugf, @function
debugf:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L107
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L107:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR debug_on[rip]
	test	eax, eax
	je	.L110
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC28[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
.L110:
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L109
	call	__stack_chk_fail@PLT
.L109:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	debugf, .-debugf
	.type	init_timestamp, @function
init_timestamp:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	init_timestamp, .-init_timestamp
	.type	timestamp, @function
timestamp:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	time@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	timestamp, .-timestamp
	.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	"18887912.c"
	.text
	.comm	cmd,2048,4
	.global	heart_beat_timeout
	.data
	.align	2
	.type	heart_beat_timeout, %object
	.size	heart_beat_timeout, 4
heart_beat_timeout:
	.word	60
	.global	heart_beat_report_delay
	.align	2
	.type	heart_beat_report_delay, %object
	.size	heart_beat_report_delay, 4
heart_beat_report_delay:
	.word	30
	.global	heart_beat_boot_delay
	.align	2
	.type	heart_beat_boot_delay, %object
	.size	heart_beat_boot_delay, 4
heart_beat_boot_delay:
	.word	60
	.global	heart_beat_kill_pid
	.bss
	.align	2
	.type	heart_beat_kill_pid, %object
	.size	heart_beat_kill_pid, 4
heart_beat_kill_pid:
	.space	4
	.local	program_name
	.comm	program_name,256,4
	.local	erlin_fd
	.comm	erlin_fd,4,4
	.data
	.align	2
	.type	erlout_fd, %object
	.size	erlout_fd, 4
erlout_fd:
	.word	1
	.local	debug_on
	.comm	debug_on,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_env_set, %function
is_env_set:
	@ 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	r0, [fp, #-8]
	bl	getenv
	mov	r3, r0
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_env_set, .-is_env_set
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_env, %function
get_env:
	@ 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	r0, [fp, #-8]
	bl	getenv
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_env, .-get_env
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_env_val, %function
free_env_val:
	@ 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	free_env_val, .-free_env_val
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-ht\000"
	.align	2
.LC1:
	.ascii	"%i\000"
	.align	2
.LC2:
	.ascii	"heart_beat_timeout = %d\012\000"
	.align	2
.LC3:
	.ascii	"-wt\000"
	.align	2
.LC4:
	.ascii	"heart_beat_boot_delay = %d\012\000"
	.align	2
.LC5:
	.ascii	"-pid\000"
	.align	2
.LC6:
	.ascii	"%lu\000"
	.align	2
.LC7:
	.ascii	"heart_beat_kill_pid = %lu\012\000"
	.align	2
.LC8:
	.ascii	"arguments -ht %d -wt %d -pid %lu\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_arguments, %function
get_arguments:
	@ 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, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L7
.L16:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L8
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #119
	beq	.L9
	cmp	r3, #119
	bgt	.L18
	cmp	r3, #104
	beq	.L11
	cmp	r3, #112
	beq	.L12
	b	.L18
.L11:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L22+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, .L22+8
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L19
	ldr	r3, [fp, #-24]
	cmp	r3, #10
	ble	.L19
	ldr	r3, [fp, #-24]
	cmp	r3, #65536
	bge	.L19
	ldr	r3, [fp, #-24]
	ldr	r2, .L22+12
	str	r3, [r2]
	ldr	r3, .L22+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L22+20
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L19
.L9:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L22+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #20
	ldr	r1, .L22+8
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L20
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	ble	.L20
	ldr	r3, [fp, #-20]
	cmp	r3, #65536
	bge	.L20
	ldr	r3, [fp, #-20]
	ldr	r2, .L22+28
	str	r3, [r2]
	ldr	r3, .L22+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L22+32
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L20
.L12:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L22+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #16
	ldr	r1, .L22+40
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L21
	ldr	r3, [fp, #-16]
	ldr	r2, .L22+44
	str	r3, [r2]
	ldr	r3, .L22+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L22+48
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L21
.L19:
	nop
	b	.L18
.L20:
	nop
	b	.L18
.L21:
	nop
.L18:
	nop
.L8:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L16
	ldr	r1, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r0, .L22+52
	bl	debugf
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	heart_beat_timeout
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	heart_beat_boot_delay
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	heart_beat_kill_pid
	.word	.LC7
	.word	.LC8
	.size	get_arguments, .-get_arguments
	.section	.rodata
	.align	2
.LC10:
	.ascii	"HEART_DEBUG\000"
	.align	2
.LC11:
	.ascii	"heart: debug is ON!\015\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, .L27
	bl	is_env_set
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L27+4
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L27+8
	bl	fwrite
	ldr	r3, .L27+12
	mov	r2, #1
	str	r2, [r3]
.L25:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	get_arguments
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, #256
	mov	r1, r3
	ldr	r0, .L27+16
	bl	strncpy
	ldr	r3, .L27+16
	mov	r2, #0
	strb	r2, [r3, #255]
	ldr	r3, .L27+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	notify_ack
	ldr	r3, .L27+24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L27+28
	ldr	r4, [r3]
	ldr	r3, .L27+28
	ldr	r3, [r3]
	ldr	r2, .L27+20
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	message_loop
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	do_terminate
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC10
	.word	stderr
	.word	.LC11
	.word	debug_on
	.word	program_name
	.word	erlout_fd
	.word	cmd
	.word	erlin_fd
	.size	main, .-main
	.section	.rodata
	.align	2
.LC12:
	.ascii	"error in select.\000"
	.align	2
.LC13:
	.ascii	"heart-beat time-out, no activity for %lu seconds\000"
	.align	2
.LC14:
	.ascii	"error in read_message.\000"
	.align	2
.LC15:
	.ascii	"HEART_COMMAND\000"
	.align	2
.LC16:
	.ascii	"\000"
	.align	2
.LC17:
	.ascii	"Erlang is crashing .. (waiting for crash dump file)"
	.ascii	"\000"
	.align	2
.LC18:
	.ascii	"Erlang has closed.\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	message_loop, %function
message_loop:
	@ args = 0, pretend = 0, frame = 2240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2240
	sub	sp, sp, #8
	str	r0, [fp, #-2240]
	str	r1, [fp, #-2244]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [fp, #-2216]
	bl	init_timestamp
	sub	r3, fp, #2224
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	timestamp
	ldr	r3, [fp, #-2236]
	str	r3, [fp, #-2232]
	ldr	r3, [fp, #-2240]
	str	r3, [fp, #-2212]
.L51:
	sub	r3, fp, #2176
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [fp, #-2208]
	mov	r3, #0
	str	r3, [fp, #-2228]
	b	.L30
.L31:
	ldr	r3, [fp, #-2208]
	ldr	r2, [fp, #-2228]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-2228]
	add	r3, r3, #1
	str	r3, [fp, #-2228]
.L30:
	ldr	r3, [fp, #-2228]
	cmp	r3, #31
	bls	.L31
	ldr	r3, [fp, #-2240]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-2184]
	ldr	r3, [fp, #-2240]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-2184]
	mov	r3, #5
	str	r3, [fp, #-2196]
	mov	r3, #0
	str	r3, [fp, #-2192]
	ldr	r3, [fp, #-2212]
	add	r0, r3, #1
	sub	r1, fp, #2176
	sub	r1, r1, #4
	sub	r1, r1, #8
	sub	r3, fp, #2192
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-2204]
	ldr	r3, [fp, #-2204]
	cmp	r3, #0
	bge	.L32
	ldr	r0, .L56+4
	bl	print_error
	mov	r3, #3
	b	.L52
.L32:
	sub	r3, fp, #2224
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	timestamp
	ldr	r2, [fp, #-2232]
	ldr	r3, .L56+8
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-2236]
	cmp	r2, r3
	bge	.L34
	ldr	r2, [fp, #-2236]
	ldr	r3, [fp, #-2232]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L56+12
	bl	print_error
	mov	r3, #1
	b	.L52
.L34:
	ldr	r3, [fp, #-2204]
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-2240]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-2184]
	ldr	r3, [fp, #-2240]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L51
	ldr	r1, [fp, #-2216]
	ldr	r0, [fp, #-2240]
	bl	read_message
	str	r0, [fp, #-2200]
	ldr	r3, [fp, #-2200]
	cmp	r3, #0
	bge	.L37
	ldr	r0, .L56+16
	bl	print_error
	mov	r3, #3
	b	.L52
.L37:
	ldr	r3, [fp, #-2200]
	cmp	r3, #2
	ble	.L38
	ldr	r3, [fp, #-2200]
	ldr	r2, .L56+20
	cmp	r3, r2
	bgt	.L38
	ldr	r3, [fp, #-2216]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	sub	r3, r3, #2
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L55
.L41:
	.word	.L46
	.word	.L45
	.word	.L44
	.word	.L43
	.word	.L42
	.word	.L55
	.word	.L40
.L46:
	sub	r3, fp, #2224
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	timestamp
	b	.L47
.L45:
	mov	r3, #4
	b	.L52
.L44:
	ldr	r3, [fp, #-2216]
	add	r1, r3, #3
	ldr	r3, [fp, #-2200]
	sub	r3, r3, #3
	mov	r2, r3
	ldr	r0, .L56+24
	bl	memcpy
	ldr	r3, [fp, #-2200]
	sub	r3, r3, #3
	ldr	r2, .L56+24
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r0, [fp, #-2244]
	bl	notify_ack
	b	.L47
.L43:
	ldr	r3, .L56+24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-2244]
	bl	notify_ack
	b	.L47
.L42:
	mov	r3, #0
	str	r3, [fp, #-2224]
	ldr	r3, .L56+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L48
	ldr	r0, .L56+28
	bl	get_env
	str	r0, [fp, #-2224]
	ldr	r3, [fp, #-2224]
	b	.L49
.L48:
	ldr	r3, .L56+24
.L49:
	str	r3, [fp, #-2220]
	ldr	r3, [fp, #-2220]
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L56+32
	str	r3, [fp, #-2220]
.L50:
	ldr	r1, [fp, #-2220]
	ldr	r0, [fp, #-2244]
	bl	heart_cmd_reply
	ldr	r0, [fp, #-2224]
	bl	free_env_val
	b	.L47
.L40:
	ldr	r0, .L56+36
	bl	print_error
	mov	r3, #5
	b	.L52
.L55:
	nop
.L47:
	b	.L36
.L38:
	ldr	r3, [fp, #-2200]
	cmp	r3, #0
	bne	.L51
	ldr	r0, .L56+40
	bl	print_error
	mov	r3, #2
	b	.L52
.L54:
	nop
.L36:
	b	.L51
.L52:
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC19
	.word	.LC12
	.word	heart_beat_timeout
	.word	.LC13
	.word	.LC14
	.word	2050
	.word	cmd
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	message_loop, .-message_loop
	.section	.rodata
	.align	2
.LC20:
	.ascii	"HEART_KILL_SIGNAL\000"
	.align	2
.LC21:
	.ascii	"SIGABRT\000"
	.align	2
.LC22:
	.ascii	"kill signal SIGABRT requested\000"
	.align	2
.LC23:
	.ascii	"Unable to kill old process, kill failed (tried mult"
	.ascii	"iple times).\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kill_old_erlang, %function
kill_old_erlang:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, #9
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L65
	bl	get_env
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L59
	ldr	r1, .L65+4
	ldr	r0, [fp, #-12]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r0, .L65+8
	bl	print_error
	mov	r3, #6
	str	r3, [fp, #-16]
.L59:
	ldr	r3, .L65+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L64
	ldr	r3, .L65+12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	kill
	str	r0, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L61
.L63:
	mov	r0, #1
	bl	sleep
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	kill
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L61:
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	bgt	.L62
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L63
.L62:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L64
	ldr	r0, .L65+16
	bl	print_error
.L64:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	heart_beat_kill_pid
	.word	.LC23
	.size	kill_old_erlang, .-kill_old_erlang
	.section	.rodata
	.align	2
.LC24:
	.ascii	"ERL_CRASH_DUMP_SECONDS\000"
	.align	2
.LC25:
	.ascii	"Waiting for dump - timeout set to %d seconds.\000"
	.align	2
.LC26:
	.ascii	"Would reboot. Terminating.\000"
	.align	2
.LC27:
	.ascii	"Executed \"%s\" -> %d. Terminating.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_terminate, %function
do_terminate:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	beq	.L76
	ldr	r3, [fp, #-28]
	cmp	r3, #5
	bne	.L70
	ldr	r0, .L77
	bl	is_env_set
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	ldr	r0, .L77
	bl	get_env
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L77+4
	bl	print_error
	ldr	r0, [fp, #-16]
	bl	wait_until_close_write_or_env_tmo
	ldr	r0, [fp, #-12]
	bl	free_env_val
.L70:
	ldr	r3, .L77+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L72
	ldr	r0, .L77+12
	bl	get_env
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L73
	ldr	r0, .L77+16
	bl	print_error
	b	.L74
.L73:
	bl	kill_old_erlang
	ldr	r0, [fp, #-8]
	bl	system
	str	r0, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-8]
	ldr	r0, .L77+20
	bl	print_error
.L74:
	ldr	r0, [fp, #-8]
	bl	free_env_val
	b	.L71
.L72:
	bl	kill_old_erlang
	ldr	r0, .L77+8
	bl	system
	str	r0, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, .L77+8
	ldr	r0, .L77+20
	bl	print_error
	b	.L71
.L76:
	nop
.L71:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC24
	.word	.LC25
	.word	cmd
	.word	.LC15
	.word	.LC26
	.word	.LC27
	.size	do_terminate, .-do_terminate
	.section	.rodata
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_until_close_write_or_env_tmo, %function
wait_until_close_write_or_env_tmo:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	str	r0, [fp, #-168]
	ldr	r3, .L87
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r3, .L87+4
	ldr	r3, [r3]
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	blt	.L80
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-140]
	sub	r3, fp, #144
	str	r3, [fp, #-164]
.L80:
	sub	r3, fp, #136
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L81
.L82:
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-160]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L81:
	ldr	r3, [fp, #-160]
	cmp	r3, #31
	bls	.L82
	ldr	r3, .L87+4
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, .L87+4
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	ldr	r3, [fp, #-152]
	add	r0, r3, #1
	sub	r1, fp, #136
	ldr	r3, [fp, #-164]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bge	.L83
	ldr	r0, .L87+8
	bl	print_error
	mvn	r3, #0
	b	.L85
.L83:
	ldr	r3, [fp, #-156]
.L85:
	ldr	r2, .L87
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L86
	bl	__stack_chk_fail
.L86:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC28
	.word	erlin_fd
	.word	.LC12
	.size	wait_until_close_write_or_env_tmo, .-wait_until_close_write_or_env_tmo
	.section	.rodata
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	notify_ack, %function
notify_ack:
	@ 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, .L92
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	strb	r3, [fp, #-2058]
	mov	r0, #1
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #2048
	sub	r3, r3, #8
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-2064]
	bl	write_message
	mov	r3, r0
	ldr	r2, .L92
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L91
	bl	__stack_chk_fail
.L91:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC29
	.size	notify_ack, .-notify_ack
	.section	.rodata
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	heart_cmd_reply, %function
heart_cmd_reply:
	@ args = 0, pretend = 0, frame = 2072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	sub	sp, sp, #8
	str	r0, [fp, #-2072]
	str	r1, [fp, #-2076]
	ldr	r3, .L99
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-2076]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	cmp	r3, #2048
	bcc	.L95
	mvn	r3, #0
	b	.L97
.L95:
	mov	r3, #7
	strb	r3, [fp, #-2058]
	ldr	r3, [fp, #-2064]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #2048
	sub	r3, r3, #8
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #8
	add	r3, r3, #3
	ldr	r1, [fp, #-2076]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-2072]
	bl	write_message
	mov	r3, r0
.L97:
	ldr	r2, .L99
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L98
	bl	__stack_chk_fail
.L98:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L100:
	.align	2
.L99:
	.word	.LC30
	.size	heart_cmd_reply, .-heart_cmd_reply
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_message, %function
write_message:
	@ 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]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-12]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L102
	ldr	r3, [fp, #-8]
	cmp	r3, #2048
	ble	.L103
.L102:
	mov	r3, #2
	b	.L104
.L103:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	cmp	r2, r3
	beq	.L105
	mvn	r3, #0
	b	.L104
.L105:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
.L104:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	write_message, .-write_message
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_message, %function
read_message:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r2, #2
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	read_fill
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L107
	ldr	r3, [fp, #-16]
	b	.L108
.L107:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-12]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L109
	mov	r3, #2
	b	.L108
.L109:
	ldr	r3, [fp, #-8]
	cmp	r3, #2048
	ble	.L110
	ldr	r3, [fp, #-28]
	add	r1, r3, #2
	ldr	r3, [fp, #-8]
	mov	r2, #2048
	ldr	r0, [fp, #-24]
	bl	read_skip
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L111
	ldr	r3, [fp, #-16]
	b	.L108
.L111:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	b	.L108
.L110:
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read_fill
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L112
	ldr	r3, [fp, #-16]
	b	.L108
.L112:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
.L108:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_message, .-read_message
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_fill, %function
read_fill:
	@ args = 0, pretend = 0, frame = 24
	@ 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]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
.L116:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r1, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L114
	ldr	r3, [fp, #-8]
	b	.L115
.L114:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L116
	ldr	r3, [fp, #-24]
.L115:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_fill, .-read_fill
	.section	.rodata
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_skip, %function
read_skip:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L123
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	read_fill
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L118
	ldr	r3, [fp, #-12]
	b	.L121
.L118:
	sub	r3, fp, #17
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L120
	ldr	r3, [fp, #-12]
	b	.L121
.L120:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L118
	ldr	r3, [fp, #-36]
.L121:
	ldr	r2, .L123
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L122
	bl	__stack_chk_fail
.L122:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L124:
	.align	2
.L123:
	.word	.LC31
	.size	read_skip, .-read_skip
	.section	.rodata
	.align	2
.LC32:
	.ascii	"%s: %.*s: \000"
	.align	2
.LC33:
	.ascii	"\015\012\000"
	.align	2
.LC34:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_error, %function
print_error:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	ldr	r3, [fp, #4]
	str	r3, [fp, #-32]
	ldr	r3, .L127
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-28]
	sub	r3, fp, #24
	mov	r0, r3
	bl	time
	sub	r3, fp, #24
	mov	r0, r3
	bl	ctime
	str	r0, [fp, #-20]
	ldr	r3, .L127+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L127+8
	ldr	r1, .L127+12
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L127+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L127+4
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L127+16
	bl	fwrite
	nop
	ldr	r3, .L127
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L126
	bl	__stack_chk_fail
.L126:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #16
	bx	lr
.L128:
	.align	2
.L127:
	.word	.LC34
	.word	stderr
	.word	program_name
	.word	.LC32
	.word	.LC33
	.size	print_error, .-print_error
	.section	.rodata
	.align	2
.LC35:
	.ascii	"Heart: \000"
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	debugf, %function
debugf:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L133
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L133+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L132
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L133+8
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L133+12
	bl	fwrite
	ldr	r3, .L133+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L133+8
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L133+16
	bl	fwrite
.L132:
	nop
	ldr	r3, .L133
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L131
	bl	__stack_chk_fail
.L131:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L134:
	.align	2
.L133:
	.word	.LC36
	.word	debug_on
	.word	stderr
	.word	.LC35
	.word	.LC33
	.size	debugf, .-debugf
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_timestamp, %function
init_timestamp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	init_timestamp, .-init_timestamp
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	timestamp, %function
timestamp:
	@ 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	r0, [fp, #-8]
	bl	time
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	timestamp, .-timestamp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
