// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x2038, %rsp           # imm = 0x2038
movl $0x0, 0x2034(%rsp)
movl %edi, 0x2030(%rsp)
movq %rsi, 0x2028(%rsp)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
movl $0x2008, %edx           # imm = 0x2008
callq 0x10c0
movl $0x2, %edi
leaq -0x4e(%rip), %rsi       # 0x1b10
callq 0x10e0
movq 0x245e(%rip), %rax      # 0x3fc8
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1090
movl 0x2030(%rsp), %edi
movq 0x2028(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x1310
cmpl $0x0, 0x20(%rsp)
jne 0x1c70
movq 0x2457(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x48d(%rip), %rsi       # 0x2038
movb $0x0, %al
callq 0x10f0
movq 0x243f(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x47b(%rip), %rsi       # 0x203e
movb $0x0, %al
callq 0x10f0
movq 0x2427(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x597(%rip), %rsi       # 0x2172
movb $0x0, %al
callq 0x10f0
movq 0x240f(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x472(%rip), %rsi       # 0x2065
movb $0x0, %al
callq 0x10f0
movq 0x23f7(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x45d(%rip), %rsi       # 0x2068
leaq 0x530(%rip), %rdx       # 0x2142
movb $0x0, %al
callq 0x10f0
movq 0x23d8(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x45a(%rip), %rsi       # 0x2084
movl $0x37, %edx
movb $0x0, %al
callq 0x10f0
movq 0x23bb(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x41f(%rip), %rsi       # 0x2066
movb $0x0, %al
callq 0x10f0
movq 0x23a3(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x432(%rip), %rsi       # 0x2091
movb $0x0, %al
callq 0x10f0
movl $0x1, %edi
callq 0x1130
jmp 0x1c72
jmp 0x1c74
leaq 0x20(%rsp), %rdi
addq $0x5, %rdi
callq 0x1080
cmpq $0x0, %rax
jne 0x1d62
movq 0x2365(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x39b(%rip), %rsi       # 0x2038
movb $0x0, %al
callq 0x10f0
movq 0x234d(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x389(%rip), %rsi       # 0x203e
movb $0x0, %al
callq 0x10f0
movq 0x2335(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x4c2(%rip), %rsi       # 0x218f
movb $0x0, %al
callq 0x10f0
movq 0x231d(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x380(%rip), %rsi       # 0x2065
movb $0x0, %al
callq 0x10f0
movq 0x2305(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x36b(%rip), %rsi       # 0x2068
leaq 0x43e(%rip), %rdx       # 0x2142
movb $0x0, %al
callq 0x10f0
movq 0x22e6(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x368(%rip), %rsi       # 0x2084
movl $0x38, %edx
movb $0x0, %al
callq 0x10f0
movq 0x22c9(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x32d(%rip), %rsi       # 0x2066
movb $0x0, %al
callq 0x10f0
movq 0x22b1(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x340(%rip), %rsi       # 0x2091
movb $0x0, %al
callq 0x10f0
movl $0x1, %edi
callq 0x1130
jmp 0x1d64
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x1170
movl %eax, 0x1c(%rsp)
leaq 0xc(%rsp), %rdi
movl $0x10, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x10c0
movw $0x2, 0xc(%rsp)
movl 0x20(%rsp), %eax
movzwl %ax, %edi
callq 0x10a0
movw %ax, 0xe(%rsp)
leaq 0x20(%rsp), %rsi
addq $0x5, %rsi
leaq 0xc(%rsp), %rdx
addq $0x4, %rdx
movl $0x2, %edi
callq 0x1100
movl 0x1c(%rsp), %edi
leaq 0xc(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rsi
movl $0x10, %edx
callq 0x1140
movl 0x1c(%rsp), %edi
callq 0x18d0
xorl %eax, %eax
addq $0x2038, %rsp           # imm = 0x2038
retq