// File: /workspace/github_cpp_makefile_star2_O3/PepiJK[P]Mail-Server-Client/src/myhelper/myhelper.cpp
// Function: MyHelper::checkClientArguments(int, char**)
void MyHelper::checkClientArguments(int argc, char *argv[])
{
    if (argc < 3)
    {
        cout << "Usage: " << argv[0] << " <address> <port>" << endl;
        exit(EXIT_FAILURE);
    }

    if (!stringIsInt(argv[2]) || stoi(argv[2]) < 1024 || stoi(argv[2]) > 65535)
    {
        cout << "Invalid Port" << endl;
        exit(EXIT_FAILURE);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rdx, %r14
cmpl $0x2, %esi
jle 0x3c50
movq 0x10(%r14), %rsi
leaq 0x48(%rsp), %rbx
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
callq 0x402c
movq %rbx, %rsi
callq 0x3a32
movb $0x1, %bpl
testb %al, %al
je 0x3c23
movq 0x10(%r14), %rsi
leaq 0x28(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x402c
movq 0x28(%rsp), %r15
callq 0x3040
movq %rax, %rbx
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x8(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x3390
cmpq %r15, (%r12)
je 0x3c9f
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x3cab
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x3cab
testl %ecx, %ecx
jne 0x3b6d
movl %ebp, (%rbx)
movb $0x1, %bpl
cmpl $0x400, %eax            # imm = 0x400
jl 0x3c08
movq 0x10(%r14), %rsi
leaq 0x8(%rsp), %rdi
leaq 0x5(%rsp), %rdx
callq 0x402c
movq 0x8(%rsp), %r14
movl (%rbx), %ebp
movl $0x0, (%rbx)
leaq 0x68(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x3390
cmpq %r14, (%r15)
je 0x3cb7
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%rax), %rdx
cmpq %rcx, %rdx
jb 0x3cc3
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x3cc3
testl %ecx, %ecx
jne 0x3be4
movl %ebp, (%rbx)
cmpl $0x10000, %eax          # imm = 0x10000
setge %bpl
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3c08
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3300
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3c23
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3300
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3c3e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3300
testb %bpl, %bpl
jne 0x3c7a
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x7381(%rip), %rdi      # 0xafd8
leaq 0x43a6(%rip), %rsi      # 0x8004
callq 0x32e0
movq (%r14), %rsi
movq %rax, %rdi
callq 0x32e0
leaq 0x43c8(%rip), %rsi      # 0x803d
movq %rax, %rdi
jmp 0x3c88
movq 0x7357(%rip), %rdi      # 0xafd8
leaq 0x43c7(%rip), %rsi      # 0x804f
callq 0x32e0
movq %rax, %rdi
callq 0x3190
movl $0x1, %edi
callq 0x3370
leaq 0x43b6(%rip), %rdi      # 0x805c
callq 0x31c0
leaq 0x43aa(%rip), %rdi      # 0x805c
callq 0x33b0
leaq 0x439e(%rip), %rdi      # 0x805c
callq 0x31c0
leaq 0x4392(%rip), %rdi      # 0x805c
callq 0x33b0
movq %rax, %r14
jmp 0x3d07
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x3cde
movl %ebp, (%rbx)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3d07
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3300
jmp 0x3d07
jmp 0x3d24
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x3d07
movl %ebp, (%rbx)
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3d27
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3300
jmp 0x3d27
movq %rax, %r14
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3d42
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3300
movq %r14, %rdi
callq 0x34a0