// File: llefranc[P]42_webserv/srcs/parser/ServerInfo.cpp
// Function: ServerInfo::setMaxClientsBS(char const*)
void ServerInfo::setMaxClientsBS(char const *m)
{
    std::string cString = m;
    if (numberOfWords(m) != 1)
        throw std::runtime_error("Error : " + cString + " - put only one input for body size\n");
    
    cString = *wsTrim(cString);
    for (size_t i = 0; i < cString.size(); i++) 
		if (cString[i] < 48 || cString[i]  > 57)
			throw std::runtime_error("Error : " + cString + " - use only digit for listen\n");

    _max_cli_body = atoi(m);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x58f0
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
leaq -0x30(%rbp), %rdi
callq 0x63e0
jmp 0x9482
leaq -0x31(%rbp), %rdi
callq 0x55c0
movq -0x10(%rbp), %rdi
callq 0x12310
movq %rax, -0x100(%rbp)
jmp 0x949d
movq -0x100(%rbp), %rax
cmpq $0x1, %rax
je 0x95b4
movb $0x1, -0x89(%rbp)
movl $0x10, %edi
callq 0x5290
movq %rax, -0x108(%rbp)
leaq 0x19bb4(%rip), %rsi     # 0x23081
leaq -0x88(%rbp), %rdi
leaq -0x30(%rbp), %rdx
callq 0x9a60
jmp 0x94df
leaq 0x19ba4(%rip), %rdx     # 0x2308a
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x66b0
jmp 0x94f8
movq -0x108(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x5830
jmp 0x950a
movq -0x108(%rbp), %rdi
movb $0x0, -0x89(%rbp)
movq 0x27ad1(%rip), %rsi     # 0x30ff0
movq 0x27aa2(%rip), %rdx     # 0x30fc8
callq 0x58a0
jmp 0x9794
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x31(%rbp), %rdi
callq 0x55c0
jmp 0x978b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x9782
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x9598
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x958c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x5a08
leaq -0x88(%rbp), %rdi
callq 0x5a08
testb $0x1, -0x89(%rbp)
jne 0x95a3
jmp 0x95af
movq -0x108(%rbp), %rdi
callq 0x53f0
jmp 0x9782
leaq -0x30(%rbp), %rdi
callq 0x123e0
movq %rax, -0x110(%rbp)
jmp 0x95c6
movq -0x110(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x5060
jmp 0x95d8
movq $0x0, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x53b0
movq %rax, %rcx
movq -0x118(%rbp), %rax
cmpq %rcx, %rax
jae 0x975b
movq -0x98(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x59f0
movq %rax, -0x120(%rbp)
jmp 0x9626
movq -0x120(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x30, %eax
jl 0x9661
movq -0x98(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x59f0
movq %rax, -0x128(%rbp)
jmp 0x964e
movq -0x128(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
jle 0x9742
movb $0x1, -0xd9(%rbp)
movl $0x10, %edi
callq 0x5290
movq %rax, -0x130(%rbp)
leaq 0x19a01(%rip), %rsi     # 0x23081
leaq -0xd8(%rbp), %rdi
leaq -0x30(%rbp), %rdx
callq 0x9a60
jmp 0x9692
leaq 0x19a16(%rip), %rdx     # 0x230af
leaq -0xb8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x66b0
jmp 0x96ae
movq -0x130(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x5830
jmp 0x96c3
movq -0x130(%rbp), %rdi
movb $0x0, -0xd9(%rbp)
movq 0x27918(%rip), %rsi     # 0x30ff0
movq 0x278e9(%rip), %rdx     # 0x30fc8
callq 0x58a0
jmp 0x9794
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x9729
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x971d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x5a08
leaq -0xd8(%rbp), %rdi
callq 0x5a08
testb $0x1, -0xd9(%rbp)
jne 0x9734
jmp 0x9740
movq -0x130(%rbp), %rdi
callq 0x53f0
jmp 0x9782
jmp 0x9744
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x95e3
movq -0x10(%rbp), %rdi
callq 0x57f0
movl %eax, %ecx
movq -0xf8(%rbp), %rax
movl %ecx, 0x60(%rax)
leaq -0x30(%rbp), %rdi
callq 0x5a08
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0x5a08
movq -0x40(%rbp), %rdi
callq 0x58e0
nopw %cs:(%rax,%rax)