// File: /workspace/github_c_makefile_star2_O0/inflex[P]ripMIME/MIME_headers.c
// Function: MIMEH_parse_contentlocation
int MIMEH_parse_contentlocation( char *header_name, char *header_value, struct MIMEH_header_info *hinfo )
{
    char *p, *q;

    // CONTENT LOCATION -------------------------------
    // CONTENT LOCATION -------------------------------
    // CONTENT LOCATION -------------------------------

    PLD_strlower( header_name );
    p = strstr(header_name,"content-location");
    if (p)
    {
        /** 20041216-1108:PLD: Increase our sanity **/
        hinfo->sanity++;

        if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIME_parse_contentlocation:DEBUG: Content Location line found - '%s'\n", FL, header_value);


        p = q = header_value;
        while (q)
        {
            q = strpbrk(p, "\\/");
            if (q != NULL) p = q+1;
        }

        if (p)
        {
            if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIME_parse_contentlocation:DEBUG: filename = %s\n", FL, p);
            snprintf(hinfo->name, sizeof(hinfo->name),"%s",p);
            snprintf(hinfo->filename, sizeof(hinfo->filename),"%s",p);
            FNFILTER_filter(hinfo->filename, _MIMEH_FILENAMELEN_MAX);
            SS_push(&(hinfo->ss_filenames), hinfo->filename, strlen(hinfo->filename));

        }
    }

    return 0;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0x105f0
movq -0x8(%rbp), %rdi
leaq 0x102ea(%rip), %rsi     # 0x1d962
callq 0x23b0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0xd7cb
movq -0x18(%rbp), %rax
movl 0x18d30(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x18d30(%rax)
cmpl $0x1, 0x250d6(%rip)     # 0x3277c
jl 0xd6c6
movq -0x10(%rbp), %rcx
leaq 0x102c0(%rip), %rdi     # 0x1d973
leaq 0xedb4(%rip), %rsi      # 0x1c46e
movl $0x8ae, %edx            # imm = 0x8AE
movb $0x0, %al
callq 0x117c0
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0xd702
movq -0x20(%rbp), %rdi
leaq 0x102db(%rip), %rsi     # 0x1d9bf
callq 0x22e0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0xd700
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0xd6d2
cmpq $0x0, -0x20(%rbp)
je 0xd7c9
cmpl $0x1, 0x25068(%rip)     # 0x3277c
jl 0xd734
movq -0x20(%rbp), %rcx
leaq 0x102a1(%rip), %rdi     # 0x1d9c2
leaq 0xed46(%rip), %rsi      # 0x1c46e
movl $0x8ba, %edx            # imm = 0x8BA
movb $0x0, %al
callq 0x117c0
movq -0x18(%rbp), %rdi
addq $0x6efe, %rdi           # imm = 0x6EFE
movq -0x20(%rbp), %rcx
movl $0x27f7, %esi           # imm = 0x27F7
leaq 0x1185b(%rip), %rdx     # 0x1efaa
movb $0x0, %al
callq 0x2130
movq -0x18(%rbp), %rdi
addq $0x5efd, %rdi           # imm = 0x5EFD
movq -0x20(%rbp), %rcx
movl $0x1001, %esi           # imm = 0x1001
leaq 0x11839(%rip), %rdx     # 0x1efaa
movb $0x0, %al
callq 0x2130
movq -0x18(%rbp), %rdi
addq $0x5efd, %rdi           # imm = 0x5EFD
movl $0x1000, %esi           # imm = 0x1000
callq 0x144e0
movq -0x18(%rbp), %rax
addq $0x15ec8, %rax          # imm = 0x15EC8
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
addq $0x5efd, %rax           # imm = 0x5EFD
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
addq $0x5efd, %rdi           # imm = 0x5EFD
callq 0x2100
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0x38e0
jmp 0xd7cb
xorl %eax, %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)