// File: /workspace/github_cpp_makefile_star2_O1/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), %al
movl $0x3, %r13d
cmpb $0x3a, %al
je 0x2f00
movl $0x3, %r15d
movsbl %al, %esi
movq %rbx, %rdi
callq 0x21a0
movq (%r14), %rax
movb -0x2(%rax,%r15), %al
incq %r15
cmpb $0x3a, %al
jne 0x2ee3
movl %r15d, %r13d
leaq 0x20(%rbx), %r12
leaq 0x40(%rbx), %r15
movq (%r14), %rax
movzbl (%rax,%r13), %eax
cmpl $0x2f, %eax
je 0x2f72
cmpl $0x3a, %eax
je 0x2f34
cmpq %r13, 0x8(%r14)
jbe 0x2f30
movsbl %al, %esi
movq %r12, %rdi
callq 0x21a0
incq %r13
jmp 0x2f08
cmpb $0x3a, %al
jne 0x2f72
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl %r13d, %r13d
incq %r13
leaq -0x58(%rbp), %r12
movq (%r14), %rax
movb (%rax,%r13), %al
cmpb $0x2f, %al
je 0x2fa5
cmpq %r13, 0x8(%r14)
jbe 0x2fa5
incq %r13
movsbl %al, %esi
movq %r12, %rdi
callq 0x21a0
jmp 0x2f51
leaq 0x20c8(%rip), %rsi      # 0x5041
movq %rbx, %rdi
callq 0x20a0
testl %eax, %eax
je 0x3011
leaq 0x20ab(%rip), %rsi      # 0x503b
movq %rbx, %rdi
callq 0x20a0
testl %eax, %eax
jne 0x3018
movl $0x1bb, 0x60(%rbx)      # imm = 0x1BB
jmp 0x3018
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 0x3048
movslq %eax, %rcx
cmpq %rax, %rcx
movq -0x38(%rbp), %rdx
jne 0x3054
movl (%rdx), %ecx
cmpl $0x22, %ecx
je 0x3054
testl %ecx, %ecx
jne 0x2ff3
movl -0x2c(%rbp), %ecx
movl %ecx, (%rdx)
movl %eax, 0x60(%rbx)
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x3018
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x21f0
jmp 0x3018
movl $0x50, 0x60(%rbx)
movslq %r13d, %r12
cmpq %r12, 0x8(%r14)
jbe 0x3036
movq (%r14), %rax
movsbl (%rax,%r12), %esi
movq %r15, %rdi
callq 0x21a0
incq %r12
jmp 0x301b
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ff7(%rip), %rdi      # 0x5046
callq 0x2140
leaq 0x1feb(%rip), %rdi      # 0x5046
callq 0x2290
movq %rax, %r14
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x307a
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
movl %ecx, (%rax)
jmp 0x307a
movq %rax, %r14
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x309c
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x21f0
jmp 0x309c
jmp 0x3099
jmp 0x3099
movq %rax, %r14
movq %rbx, %rdi
callq 0x41a2
movq %r14, %rdi
callq 0x22f0