// File: /workspace/github_cpp_makefile_star2_O3/boomanaiden154[P]HTTPClientHPP/./client.hpp
// Function: HTTPClient::parseURI(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
static struct uri parseURI(std::string uri)
    {
        struct uri toReturn;
        toReturn.port = -1;
        int index = 0;
        while(uri[index] != ':')
        {
            toReturn.protocol += uri[index];
            index++;
        }
        index += 3;
        while(uri[index] != ':' && uri[index] != '/' && index < uri.size())
        {
            toReturn.domain += uri[index];
            index++;
        }
        if(uri[index] == ':')
        {
            index++;
            std::string portTemp;
            while(uri[index] != '/' && index < uri.size())
            {
                portTemp += uri[index];
                index++;
            }
            toReturn.port = std::stoi(portTemp);
        }
        else
        {
            if(toReturn.protocol == "http")
            {
                toReturn.port = 80;
            }
            else if(toReturn.protocol == "https")
            {
                toReturn.port = 443;
            }
        }
        while(index < uri.size())
        {
            toReturn.path += uri[index];
            index++;
        }
        return toReturn;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb %al, 0x10(%rdi)
leaq 0x30(%rdi), %rcx
movq %rcx, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movb %al, 0x30(%rdi)
leaq 0x50(%rdi), %rcx
movq %rcx, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movb %al, 0x50(%rdi)
movl $0xffffffff, 0x60(%rdi) # imm = 0xFFFFFFFF
movq (%rsi), %rax
movb (%rax), %cl
movl $0x3, %r13d
cmpb $0x3a, %cl
je 0x2f04
movl $0x3, %r15d
movsbl %cl, %esi
movq %rbx, %rdi
callq 0x21a0
movq (%r14), %rax
movb -0x2(%rax,%r15), %cl
incq %r15
cmpb $0x3a, %cl
jne 0x2ee6
movl %r15d, %r13d
leaq 0x20(%rbx), %r12
leaq 0x40(%rbx), %r15
movzbl (%rax,%r13), %eax
cmpl $0x2f, %eax
je 0x2f34
cmpl $0x3a, %eax
je 0x2f6e
cmpq %r13, 0x8(%r14)
jbe 0x2f34
movsbl %al, %esi
movq %r12, %rdi
callq 0x21a0
incq %r13
movq (%r14), %rax
jmp 0x2f0c
leaq 0x2106(%rip), %rsi      # 0x5041
movq %rbx, %rdi
callq 0x20a0
testl %eax, %eax
je 0x3015
leaq 0x20e9(%rip), %rsi      # 0x503b
movq %rbx, %rdi
callq 0x20a0
testl %eax, %eax
jne 0x301c
movl $0x1bb, 0x60(%rbx)      # imm = 0x1BB
jmp 0x301c
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
incq %r13
leaq -0x58(%rbp), %r12
movq (%r14), %rax
movb (%rax,%r13), %al
cmpb $0x2f, %al
je 0x2fa9
cmpq %r13, 0x8(%r14)
jbe 0x2fa9
incq %r13
movsbl %al, %esi
movq %r12, %rdi
callq 0x21a0
jmp 0x2f88
movq -0x58(%rbp), %r12
callq 0x2050
movl (%rax), %ecx
movl %ecx, -0x2c(%rbp)
movq %rax, -0x38(%rbp)
movl $0x0, (%rax)
leaq -0x60(%rbp), %rsi
movq %r12, %rdi
movl $0xa, %edx
callq 0x2260
leaq -0x60(%rbp), %rcx
cmpq %r12, (%rcx)
je 0x304c
movslq %eax, %rcx
cmpq %rax, %rcx
movq -0x38(%rbp), %rdx
jne 0x3058
movl (%rdx), %ecx
cmpl $0x22, %ecx
je 0x3058
testl %ecx, %ecx
jne 0x2ff7
movl -0x2c(%rbp), %ecx
movl %ecx, (%rdx)
movl %eax, 0x60(%rbx)
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x301c
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x21f0
jmp 0x301c
movl $0x50, 0x60(%rbx)
movslq %r13d, %r12
cmpq %r12, 0x8(%r14)
jbe 0x303a
movq (%r14), %rax
movsbl (%rax,%r12), %esi
movq %r15, %rdi
callq 0x21a0
incq %r12
jmp 0x301f
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ff3(%rip), %rdi      # 0x5046
callq 0x2140
leaq 0x1fe7(%rip), %rdi      # 0x5046
callq 0x2290
movq %rax, %r14
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x307e
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
movl %ecx, (%rax)
jmp 0x307e
movq %rax, %r14
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x30a0
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x21f0
jmp 0x30a0
jmp 0x309d
jmp 0x309d
movq %rax, %r14
movq %rbx, %rdi
callq 0x4134
movq %r14, %rdi
callq 0x22f0