// File: /workspace/github_c_makefile_star2_O2/cirocosta[P]stress/src/tcp-client.c
// Function: main
int
main(int argc, char** argv)
{
	stress_args_t args = { .b = 0 };

	int sock_fd;
	struct sockaddr_in server_addr;

	signal(SIGINT, terminate);
	setbuf(stdout, NULL);
	stress_parse_args(argc, argv, &args);

	_STRESS_MUST(args.n, "a port (n) must be specified");
	_STRESS_MUST(strlen(args.f), "an ip (f) must be specified");

	sock_fd = socket(AF_INET, SOCK_STREAM, 0);
	memset(&server_addr, sizeof(server_addr), 0);
	server_addr.sin_family = AF_INET;
	server_addr.sin_port = htons(args.n);

	inet_pton(AF_INET, args.f, &server_addr.sin_addr);
	connect(sock_fd, (struct sockaddr*)&server_addr, sizeof(server_addr));

	send_chunks(sock_fd);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x2020, %rsp           # imm = 0x2020
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x18(%rsp), %r14
movl $0x2008, %edx           # imm = 0x2008
movq %r14, %rdi
xorl %esi, %esi
callq 0x10b0
leaq -0x36(%rip), %rsi       # 0x1856
pushq $0x2
popq %rdi
callq 0x10e0
movq 0x272d(%rip), %rax      # 0x3fc8
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1090
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x12dd
cmpl $0x0, (%r14)
je 0x1921
cmpb $0x0, 0x1d(%rsp)
je 0x19a8
leaq 0x1d(%rsp), %rbx
pushq $0x2
popq %rbp
pushq $0x1
popq %rsi
movl %ebp, %edi
xorl %edx, %edx
callq 0x1180
movl %eax, %r14d
leaq 0xc(%rsp), %rdx
movw $0x2, -0x4(%rdx)
movzwl -0x5(%rbx), %eax
rolw $0x8, %ax
movw %ax, -0x2(%rdx)
movl %ebp, %edi
movq %rbx, %rsi
callq 0x1100
leaq 0x8(%rsp), %rsi
pushq $0x10
popq %rdx
movl %r14d, %edi
callq 0x1140
movl %r14d, %edi
callq 0x16ae
xorl %eax, %eax
addq $0x2020, %rsp           # imm = 0x2020
popq %rbx
popq %r14
popq %rbp
retq
movq 0x26d0(%rip), %r14      # 0x3ff8
movq (%r14), %rcx
leaq 0x6ee(%rip), %rdi       # 0x2020
pushq $0x9
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x1150
movq (%r14), %rcx
leaq 0x6dc(%rip), %rdi       # 0x2026
pushq $0x3
popq %rsi
movq %rbx, %rdx
callq 0x1150
movq (%r14), %rcx
leaq 0x7fb(%rip), %rdi       # 0x215a
pushq $0x1c
popq %rsi
movq %rbx, %rdx
callq 0x1150
movq (%r14), %rcx
leaq 0x6d9(%rip), %rdi       # 0x204d
pushq $0x2
popq %rsi
movq %rbx, %rdx
callq 0x1150
movq (%r14), %rdi
leaq 0x6c7(%rip), %rsi       # 0x2050
leaq 0x79a(%rip), %rdx       # 0x212a
xorl %eax, %eax
callq 0x10f0
movq (%r14), %rdi
leaq 0x6cb(%rip), %rsi       # 0x206c
pushq $0x37
jmp 0x1a2a
movq 0x2649(%rip), %r14      # 0x3ff8
movq (%r14), %rcx
leaq 0x667(%rip), %rdi       # 0x2020
pushq $0x9
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x1150
movq (%r14), %rcx
leaq 0x655(%rip), %rdi       # 0x2026
pushq $0x3
popq %rsi
movq %rbx, %rdx
callq 0x1150
movq (%r14), %rcx
leaq 0x791(%rip), %rdi       # 0x2177
pushq $0x1b
popq %rsi
movq %rbx, %rdx
callq 0x1150
movq (%r14), %rcx
leaq 0x652(%rip), %rdi       # 0x204d
pushq $0x2
popq %rsi
movq %rbx, %rdx
callq 0x1150
movq (%r14), %rdi
leaq 0x640(%rip), %rsi       # 0x2050
leaq 0x713(%rip), %rdx       # 0x212a
xorl %eax, %eax
callq 0x10f0
movq (%r14), %rdi
leaq 0x644(%rip), %rsi       # 0x206c
pushq $0x38
popq %rdx
xorl %eax, %eax
callq 0x10f0
movq (%r14), %rsi
pushq $0xa
popq %rdi
callq 0x10c0
movq (%r14), %rcx
leaq 0x632(%rip), %rdi       # 0x2079
pushq $0xa
popq %rsi
movq %rbx, %rdx
callq 0x1150
pushq $0x1
popq %rdi
callq 0x1130