// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r15
cmpl $0x2, %esi
jle 0x3c81
movq 0x10(%r15), %rsi
leaq 0x50(%rsp), %rbx
leaq 0xb(%rsp), %rdx
movq %rbx, %rdi
callq 0x4060
movq %rbx, %rsi
callq 0x3a4a
movl %eax, %ebx
movb $0x1, %bpl
testb %al, %al
je 0x3b97
movq 0x10(%r15), %rsi
leaq 0x30(%rsp), %rdi
leaq 0xa(%rsp), %rdx
callq 0x4060
movq 0x30(%rsp), %r12
callq 0x3040
movq %rax, %r14
movl (%rax), %eax
movl %eax, 0xc(%rsp)
movl $0x0, (%r14)
leaq 0x10(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x3390
cmpq %r12, (%r13)
je 0x3cd0
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x3cdc
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x3cdc
testl %ecx, %ecx
jne 0x3b90
movl 0xc(%rsp), %ecx
movl %ecx, (%r14)
cmpl $0x400, %eax            # imm = 0x400
jge 0x3b9b
xorl %eax, %eax
jmp 0x3c14
movq 0x10(%r15), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x9(%rsp), %rdx
callq 0x4060
movq 0x10(%rsp), %r15
movl (%r14), %ebp
movl $0x0, (%r14)
leaq 0x70(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x3390
cmpq %r15, (%r12)
je 0x3ce8
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%rax), %rdx
cmpq %rcx, %rdx
jb 0x3cf4
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x3cf4
testl %ecx, %ecx
jne 0x3c09
movl %ebp, (%r14)
cmpl $0x10000, %eax          # imm = 0x10000
setge %bpl
movb $0x1, %al
testb %al, %al
je 0x3c33
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3c33
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3300
testb %bl, %bl
je 0x3c52
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3c52
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3300
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3c6d
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3300
testb %bpl, %bpl
jne 0x3cab
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x7350(%rip), %rdi      # 0xafd8
leaq 0x4375(%rip), %rsi      # 0x8004
callq 0x32e0
movq (%r15), %rsi
movq %rax, %rdi
callq 0x32e0
leaq 0x4397(%rip), %rsi      # 0x803d
movq %rax, %rdi
jmp 0x3cb9
movq 0x7326(%rip), %rdi      # 0xafd8
leaq 0x4396(%rip), %rsi      # 0x804f
callq 0x32e0
movq %rax, %rdi
callq 0x3190
movl $0x1, %edi
callq 0x3370
leaq 0x4385(%rip), %rdi      # 0x805c
callq 0x31c0
leaq 0x4379(%rip), %rdi      # 0x805c
callq 0x33b0
leaq 0x436d(%rip), %rdi      # 0x805c
callq 0x31c0
leaq 0x4361(%rip), %rdi      # 0x805c
callq 0x33b0
movq %rax, %rbx
jmp 0x3d40
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x3d11
movl %ebp, (%r14)
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3d40
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3300
jmp 0x3d40
jmp 0x3d5d
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x3d40
movl 0xc(%rsp), %eax
movl %eax, (%r14)
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3d60
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3300
jmp 0x3d60
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3d7b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3300
movq %rbx, %rdi
callq 0x34a0
nop