// File: kusumi[P]procstat/container.cc
// Function: Container::Container(int, char**)
Container::Container(int argc, char *argv[])
{
	_build_window();
	for (int i = 0; i < argc; i++) {
		char *p = argv[i];
		struct stat st;
		if (stat(p, &st) == -1 || !S_ISREG(st.st_mode))
			continue;
		if (i < static_cast<int>(_v.size())) {
			_v[i]->attach_buffer(p);
			int wd = add_watch(p);
			if (wd != -1)
				_map.insert(_map_t::value_type(wd, _v[i]));
		}
	}
	_it = _v.begin();
	(*_it)->focus(true);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x118(%rbp)
movq %rdi, %rax
movq %rax, -0x120(%rbp)
callq 0x6f50
movq -0x118(%rbp), %rdi
addq $0x18, %rdi
callq 0x6f70
movq -0x118(%rbp), %rdi
callq 0x6310
jmp 0x60ce
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x62ab
movq -0x18(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x43d0
cmpl $-0x1, %eax
je 0x6118
movl -0xa8(%rbp), %eax
andl $0xf000, %eax           # imm = 0xF000
cmpl $0x8000, %eax           # imm = 0x8000
je 0x612e
jmp 0x629d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x62f7
movq -0x120(%rbp), %rdi
movl -0x28(%rbp), %eax
movl %eax, -0x124(%rbp)
callq 0x6f90
movq %rax, %rcx
movl -0x124(%rbp), %eax
cmpl %ecx, %eax
jge 0x629b
movq -0x120(%rbp), %rdi
movslq -0x28(%rbp), %rsi
callq 0x6fb0
movq (%rax), %rax
movq %rax, -0x140(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq -0xe1(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x47c0
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
leaq -0xe0(%rbp), %rdi
callq 0x6fd0
jmp 0x61a8
movq -0x140(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0xa220
jmp 0x61bd
leaq -0xe0(%rbp), %rdi
callq 0x4878
leaq -0xe1(%rbp), %rdi
callq 0x4490
movq -0x30(%rbp), %rdi
callq 0xd390
movl %eax, -0x144(%rbp)
jmp 0x61e6
movl -0x144(%rbp), %eax
movl %eax, -0xe8(%rbp)
cmpl $-0x1, -0xe8(%rbp)
je 0x6299
movq -0x120(%rbp), %rdi
movslq -0x28(%rbp), %rsi
callq 0x6fb0
movq %rax, %rdx
leaq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x70c0
jmp 0x6227
leaq 0x1130a(%rip), %rdi     # 0x17538
leaq -0xf8(%rbp), %rsi
callq 0x7080
movb %dl, -0x151(%rbp)
movq %rax, -0x150(%rbp)
jmp 0x6249
movb -0x151(%rbp), %al
movq -0x150(%rbp), %rcx
movq %rcx, -0x108(%rbp)
movb %al, -0x100(%rbp)
jmp 0x6299
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x628b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x4878
leaq -0xe1(%rbp), %rdi
callq 0x4490
jmp 0x62f7
jmp 0x629b
jmp 0x629d
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x60d5
movq -0x120(%rbp), %rdi
callq 0x70f0
movq %rax, %rcx
movq -0x120(%rbp), %rax
movq %rcx, -0x110(%rbp)
movq %rax, %rdi
addq $0x18, %rdi
movq -0x110(%rbp), %rcx
movq %rcx, 0x18(%rax)
callq 0x7120
movq (%rax), %rdi
movl $0x1, %esi
callq 0xa410
jmp 0x62ee
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq -0x118(%rbp), %rdi
callq 0x7140
movq -0x20(%rbp), %rdi
callq 0x47b0
nopl (%rax)