// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/lib/udc.c
// Function: udcProtocolNew
static struct udcProtocol *udcProtocolNew(char *upToColon)
/* Build up a new protocol around a string such as "http" or "local" */
{
struct udcProtocol *prot;
AllocVar(prot);
if (sameString(upToColon, "local"))
    {
    prot->fetchData = udcDataViaLocal;
    prot->fetchInfo = udcInfoViaLocal;
    prot->type = "local";
    }
else if (sameString(upToColon, "slow"))
    {
    prot->fetchData = udcDataViaSlow;
    prot->fetchInfo = udcInfoViaSlow;
    prot->type = "slow";
    }
else if (sameString(upToColon, "http") || sameString(upToColon, "https"))
    {
    prot->fetchData = udcDataViaHttpOrFtp;
    prot->fetchInfo = udcInfoViaHttp;
    prot->type = "http";
    }
else if (sameString(upToColon, "ftp"))
    {
    prot->fetchData = udcDataViaHttpOrFtp;
    prot->fetchInfo = udcInfoViaFtp;
    prot->type = "ftp";
    }
else if (sameString(upToColon, "transparent"))
    {
    prot->fetchData = udcDataViaTransparent;
    prot->fetchInfo = udcInfoViaTransparent;
    prot->type = "transparent";
    }
else
    {
    errAbort("Unrecognized protocol %s in udcProtNew", upToColon);
    }
return prot;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x20, %edi
callq 0x40c50
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x81ff7(%rip), %rsi     # 0xdeffc
callq 0x6a40
cmpl $0x0, %eax
jne 0x5d041
movq -0x10(%rbp), %rax
leaq 0x22c6(%rip), %rcx      # 0x5f2e0
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
leaq 0x2397(%rip), %rcx      # 0x5f3c0
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
leaq 0x81fc4(%rip), %rcx     # 0xdeffc
movq %rcx, 0x18(%rax)
jmp 0x5d186
movq -0x8(%rbp), %rdi
leaq 0x81fb6(%rip), %rsi     # 0xdf002
callq 0x6a40
cmpl $0x0, %eax
jne 0x5d088
movq -0x10(%rbp), %rax
leaq 0x23ef(%rip), %rcx      # 0x5f450
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
leaq 0x2550(%rip), %rcx      # 0x5f5c0
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
leaq 0x81f83(%rip), %rcx     # 0xdf002
movq %rcx, 0x18(%rax)
jmp 0x5d184
movq -0x8(%rbp), %rdi
leaq 0x7ecb7(%rip), %rsi     # 0xdbd4a
callq 0x6a40
cmpl $0x0, %eax
je 0x5d0b2
movq -0x8(%rbp), %rdi
leaq 0x7eca7(%rip), %rsi     # 0xdbd4f
callq 0x6a40
cmpl $0x0, %eax
jne 0x5d0e4
movq -0x10(%rbp), %rax
leaq -0x16bd(%rip), %rcx     # 0x5ba00
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
leaq -0x121c(%rip), %rcx     # 0x5beb0
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
leaq 0x7ec6f(%rip), %rcx     # 0xdbd4a
movq %rcx, 0x18(%rax)
jmp 0x5d182
movq -0x8(%rbp), %rdi
leaq 0x81d41(%rip), %rsi     # 0xdee30
callq 0x6a40
cmpl $0x0, %eax
jne 0x5d128
movq -0x10(%rbp), %rax
leaq -0x1704(%rip), %rcx     # 0x5ba00
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
leaq -0xef3(%rip), %rcx      # 0x5c220
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
leaq 0x81d0e(%rip), %rcx     # 0xdee30
movq %rcx, 0x18(%rax)
jmp 0x5d180
movq -0x8(%rbp), %rdi
leaq 0x81af7(%rip), %rsi     # 0xdec2a
callq 0x6a40
cmpl $0x0, %eax
jne 0x5d16c
movq -0x10(%rbp), %rax
leaq 0x2518(%rip), %rcx      # 0x5f660
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
leaq 0x2549(%rip), %rcx      # 0x5f6a0
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
leaq 0x81ac4(%rip), %rcx     # 0xdec2a
movq %rcx, 0x18(%rax)
jmp 0x5d17e
movq -0x8(%rbp), %rsi
leaq 0x81e90(%rip), %rdi     # 0xdf007
movb $0x0, %al
callq 0x35d40
jmp 0x5d180
jmp 0x5d182
jmp 0x5d184
jmp 0x5d186
movq -0x10(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq