// File: mbourand[P]webserv/srcs/Config/ConfigContext.cpp
// Function: ConfigContext::set_max_body_size_default()
void ConfigContext::set_max_body_size_default()
{
	if (_params.find("max_client_body_size") == _params.end())
		_params["max_client_body_size"].push_back("8000");
	else
	{
		if (!ft::is_integer<int>(_params["max_client_body_size"].front()))
			throw std::invalid_argument("max_client_body_size is not an integer in config.");
		if (_params["max_client_body_size"].front()[0] == '-')
			throw std::invalid_argument("Negative max_client_body_size in config.");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x108(%rbp)
addq $0x20, %rax
movq %rax, -0x100(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x9b10
movq -0xf8(%rbp), %rdx
leaq 0x22589(%rip), %rsi     # 0x6d16c
leaq -0x30(%rbp), %rdi
callq 0xa780
jmp 0x4abee
movq -0x100(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x4d850
movq %rax, -0x110(%rbp)
jmp 0x4ac07
movq -0x108(%rbp), %rdi
movq -0x110(%rbp), %rax
movq %rax, -0x10(%rbp)
addq $0x20, %rdi
callq 0x4d880
movq %rax, -0x50(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x4da50
movb %al, -0x111(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x9c98
leaq -0x31(%rbp), %rdi
callq 0x9700
movb -0x111(%rbp), %al
testb $0x1, %al
jne 0x4ac5a
jmp 0x4adb7
movq -0x108(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x128(%rbp)
leaq -0x71(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x9b10
movq -0x120(%rbp), %rdx
leaq 0x224e2(%rip), %rsi     # 0x6d16c
leaq -0x70(%rbp), %rdi
callq 0xa780
jmp 0x4ac95
movq -0x128(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x4da80
movq %rax, -0x130(%rbp)
jmp 0x4acae
leaq -0x99(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x9b10
movq -0x138(%rbp), %rdx
leaq 0x226de(%rip), %rsi     # 0x6d3ad
leaq -0x98(%rbp), %rdi
callq 0xa780
jmp 0x4acdd
movq -0x130(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x13930
jmp 0x4acf2
leaq -0x98(%rbp), %rdi
callq 0x9c98
leaq -0x99(%rbp), %rdi
callq 0x9700
leaq -0x70(%rbp), %rdi
callq 0x9c98
leaq -0x71(%rbp), %rdi
callq 0x9700
jmp 0x4b03c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4ad44
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x9c98
leaq -0x31(%rbp), %rdi
callq 0x9700
jmp 0x4b045
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4ada9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4ada0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4ad94
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x9c98
leaq -0x99(%rbp), %rdi
callq 0x9700
leaq -0x70(%rbp), %rdi
callq 0x9c98
leaq -0x71(%rbp), %rdi
callq 0x9700
jmp 0x4b045
movq -0x108(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x148(%rbp)
leaq -0xc1(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x9b10
movq -0x140(%rbp), %rdx
leaq 0x22382(%rip), %rsi     # 0x6d16c
leaq -0xc0(%rbp), %rdi
callq 0xa780
jmp 0x4adf8
movq -0x148(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x4da80
movq %rax, -0x150(%rbp)
jmp 0x4ae14
movq -0x150(%rbp), %rdi
callq 0xcd40
movq %rax, %rdi
callq 0x45b70
movb %al, -0x151(%rbp)
jmp 0x4ae30
movb -0x151(%rbp), %al
xorb $-0x1, %al
movb %al, -0x152(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x9c98
leaq -0xc1(%rbp), %rdi
callq 0x9700
movb -0x152(%rbp), %al
testb $0x1, %al
jne 0x4ae65
jmp 0x4aef8
movl $0x10, %edi
callq 0x9340
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x160(%rbp)
leaq 0x2252f(%rip), %rsi     # 0x6d3b2
callq 0x9be0
jmp 0x4ae8a
movq -0x160(%rbp), %rdi
movq 0x44130(%rip), %rsi     # 0x8efc8
movq 0x44119(%rip), %rdx     # 0x8efb8
callq 0x9aa0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4aeca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x9c98
leaq -0xc1(%rbp), %rdi
callq 0x9700
jmp 0x4b045
movq -0x160(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x94c0
jmp 0x4b045
movq -0x108(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x170(%rbp)
leaq -0xe9(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x9b10
movq -0x168(%rbp), %rdx
leaq 0x22241(%rip), %rsi     # 0x6d16c
leaq -0xe8(%rbp), %rdi
callq 0xa780
jmp 0x4af39
movq -0x170(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x4da80
movq %rax, -0x178(%rbp)
jmp 0x4af55
movq -0x178(%rbp), %rdi
callq 0xcd40
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x9c70
movq %rax, -0x180(%rbp)
jmp 0x4af76
movq -0x180(%rbp), %rax
movsbl (%rax), %eax
movl %eax, -0x184(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x9c98
leaq -0xe9(%rbp), %rdi
callq 0x9700
movl -0x184(%rbp), %eax
cmpl $0x2d, %eax
jne 0x4b03a
movl $0x10, %edi
callq 0x9340
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x190(%rbp)
leaq 0x22419(%rip), %rsi     # 0x6d3e4
callq 0x9be0
jmp 0x4afd2
movq -0x190(%rbp), %rdi
movq 0x43fe8(%rip), %rsi     # 0x8efc8
movq 0x43fd1(%rip), %rdx     # 0x8efb8
callq 0x9aa0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4b012
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x9c98
leaq -0xe9(%rbp), %rdi
callq 0x9700
jmp 0x4b045
movq -0x190(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x94c0
jmp 0x4b045
jmp 0x4b03c
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x9af0
nop