// File: /workspace/github_c_makefile_star2_O0/inflex[P]ripMIME/MIME_headers.c
// Function: MIMEH_parse_generic
int MIMEH_parse_generic( char *header_name, char *header_value, struct MIMEH_header_info *hinfo, char *tokenstr, char *buffer, size_t bsize )
{
    int compare_result = 0;
    int tlen;

    DMIMEH LOGGER_log("%s:%d:MIMEH_parse_generic:DEBUG: Searching for %s in %s",FL,tokenstr,header_name);
    /** Sanity check the parameters **/
    if (hinfo == NULL) return -1;
    if (tokenstr == NULL) return -1;
    if (header_name == NULL) return -1;
    if (header_value == NULL) return -1;
    if (buffer == NULL) return -1;
    if (bsize < 1) return -1;

    tlen = strlen(tokenstr);
    compare_result = strncmp( header_name, tokenstr, tlen );
    if (compare_result == 0)
    {

        switch (*(header_name +tlen)) {
            case ':':
            case ' ':
            case '\t':
            case '\0':
                DMIMEH LOGGER_log("%s:%d:MIMEH_parse_generic:DEBUG: Located! Sanity up +1",FL);
                snprintf( buffer, bsize, "%s", header_value );
                hinfo->sanity++;
                break;
        }

    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
cmpl $0x1, 0x2479e(%rip)     # 0x3277c
jl 0xe002
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %r8
leaq 0xfcde(%rip), %rdi      # 0x1dccd
leaq 0xe478(%rip), %rsi      # 0x1c46e
movl $0x9e4, %edx            # imm = 0x9E4
movb $0x0, %al
callq 0x117c0
cmpq $0x0, -0x20(%rbp)
jne 0xe015
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe12a
cmpq $0x0, -0x28(%rbp)
jne 0xe028
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe12a
cmpq $0x0, -0x10(%rbp)
jne 0xe03b
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe12a
cmpq $0x0, -0x18(%rbp)
jne 0xe04e
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe12a
cmpq $0x0, -0x30(%rbp)
jne 0xe061
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe12a
cmpq $0x1, -0x38(%rbp)
jae 0xe074
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xe12a
movq -0x28(%rbp), %rdi
callq 0x2100
movl %eax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movslq -0x40(%rbp), %rdx
callq 0x2090
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
jne 0xe123
movq -0x10(%rbp), %rax
movslq -0x40(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, -0x44(%rbp)
testl %eax, %eax
je 0xe0d1
jmp 0xe0b3
movl -0x44(%rbp), %eax
subl $0x9, %eax
je 0xe0d1
jmp 0xe0bd
movl -0x44(%rbp), %eax
subl $0x20, %eax
je 0xe0d1
jmp 0xe0c7
movl -0x44(%rbp), %eax
subl $0x3a, %eax
jne 0xe121
jmp 0xe0d1
cmpl $0x1, 0x246a4(%rip)     # 0x3277c
jl 0xe0f4
leaq 0xfc24(%rip), %rdi      # 0x1dd05
leaq 0xe386(%rip), %rsi      # 0x1c46e
movl $0x9f7, %edx            # imm = 0x9F7
movb $0x0, %al
callq 0x117c0
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x18(%rbp), %rcx
leaq 0x10ea3(%rip), %rdx     # 0x1efaa
movb $0x0, %al
callq 0x2130
movq -0x20(%rbp), %rax
movl 0x18d30(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x18d30(%rax)
jmp 0xe123
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)