// File: /workspace/github_c_makefile_star2_O1/inflex[P]ripMIME/MIME_headers.c
// Function: MIMEH_parse_contenttype
int MIMEH_parse_contenttype( char *header_name, char *header_value, struct MIMEH_header_info *hinfo )
{

    int return_value;
    char *p, *q;
    char *hv = strdup( header_value );

    // CONTENT TYPE -------------------------------
    // CONTENT TYPE -------------------------------
    // CONTENT TYPE -------------------------------

    DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: Start",FL);

    p = strstr(header_name,"content-type");
    if (p != NULL)
    {
        DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype: Content-type string found in header-name",FL);

        /** 20041216-1106:PLD: Increase our sanity **/
        hinfo->sanity++;
        PLD_strlower(  header_value );
        PLD_strlower(  header_value );
        q = header_value;

        if (strstr(q,"multipart/appledouble")) hinfo->content_type = _CTYPE_MULTIPART_APPLEDOUBLE;
        else if (strstr(q,"multipart/signed")) hinfo->content_type = _CTYPE_MULTIPART_SIGNED;
        else if (strstr(q,"multipart/related")) hinfo->content_type = _CTYPE_MULTIPART_RELATED;
        else if (strstr(q,"multipart/mixed")) hinfo->content_type = _CTYPE_MULTIPART_MIXED;
        else if (strstr(q,"multipart/alternative")) hinfo->content_type = _CTYPE_MULTIPART_ALTERNATIVE;
        else if (strstr(q,"multipart/report")) hinfo->content_type = _CTYPE_MULTIPART_REPORT;
        else if (strstr(q,"multipart/")) hinfo->content_type = _CTYPE_MULTIPART;
        else if (strstr(q,"text/calendar")) hinfo->content_type = _CTYPE_TEXT_CALENDAR;
        else if (strstr(q,"text/plain")) hinfo->content_type = _CTYPE_TEXT_PLAIN;
        else if (strstr(q,"text/html")) hinfo->content_type = _CTYPE_TEXT_HTML;
        else if (strstr(q,"text/")) hinfo->content_type = _CTYPE_TEXT;
        else if (strstr(q,"image/gif")) hinfo->content_type = _CTYPE_IMAGE_GIF;
        else if (strstr(q,"image/jpeg")) hinfo->content_type = _CTYPE_IMAGE_JPEG;
        else if (strstr(q,"image/")) hinfo->content_type = _CTYPE_IMAGE;
        else if (strstr(q,"audio/")) hinfo->content_type = _CTYPE_AUDIO;
        else if (strstr(q,"message/rfc822")) hinfo->content_type = _CTYPE_RFC822;
        else if (strstr(q,"/octet-stream")) hinfo->content_type = _CTYPE_OCTECT;
        else if (strstr(q,"/ms-tnef")) hinfo->content_type = _CTYPE_TNEF;
        else if (strstr(q,"application/applefile"))
        {
            hinfo->content_type = _CTYPE_APPLICATION_APPLEFILE;
            if ( hinfo->filename[0] == '\0' )
            {
                if (strlen(glb.appledouble_filename)>0)
                {
                    snprintf(hinfo->filename, sizeof(hinfo->filename), "%s.applemeta", glb.appledouble_filename );
                } else {
                    snprintf(hinfo->filename, sizeof(hinfo->filename), "applefile");
                }
            }
        }
        else hinfo->content_type = _CTYPE_UNKNOWN;

        /** Is there an x-mac-type|creator parameter? **/
        if ((strstr(header_value,"x-mac-type="))&&(strstr(header_value,"x-mac-creator=")))
        {
            /** By setting this flag to 1, we are saying that if the
             ** filename contains a forward slash '/' char, then it's
             ** to be treated as a normal char, not a directory
             ** separator.  However, as we cannot generate a filename
             ** with that char normally, we'll convert it to something
             ** else
             **/
            DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: Located x-mac attachment",FL);
            hinfo->x_mac = 1;
            FNFILTER_set_mac(hinfo->x_mac);
        }


        // Copy the string to our content-type string storage field
        p = header_value;
        if (p != NULL)
        {
            char *c = p;

            // Step 1 - jump over any whitespace
            while ( *c == ' ' || *c == '\t') c++;

            // Step 2 - Copy the string
            PLD_strncpy( hinfo->content_type_string, c, _MIMEH_CONTENT_TYPE_MAX);

            // Step 3 - clean up the string
            c = hinfo->content_type_string;
            while (*c && *c != ' ' && *c != '\t' && *c != '\n' && *c != '\r' && *c != ';') c++;

            // Step 4 - Terminate the string
            *c = '\0';
        }

        // If we have an additional parameter at the end of our content-type, then we
        //  should search for a name="foobar" sequence.
        //p = strchr( hv, ';' );
        p = strpbrk( hv, ";\t\n\r " );
        if (p != NULL)
        {
            char *param = NULL;
            char *data_end_point = param;

            p++;
            param = strpbrk( p, ";\n\r\t " );
            while ( param != NULL )
            {
                /**
                 **
                 ** The Process of decoding our line....
                 ** . While not end of the line...
                 **     . Remove whitespace
                 **     . test for 'name'
                 **     . test for 'boundary'
                 **     . Move to next char after parameter values
                 **
                 ** Go to the next character after the 'token separator' character
                 ** and then proceed to absorb any excess white space.
                 ** Once we've stopped at a new, non-white character, we can begin
                 ** to see if we've got a sensible parameter like name=, filename=
                 ** or boundary=
                 **/
                param++;
                param = MIMEH_absorb_whitespace(param);

                /**
                 ** If we get to the end of the line, just break out of the token
                 ** parsing while loop
                 **/
                if (*param == '\0') break;

                /**
                 ** Look for name or filename specifications in the headers
                 ** Look for name or filename specifications in the headers
                 ** Look for name or filename specifications in the headers
                 **/

                return_value = MIMEH_parse_header_parameter( hinfo, param, "name", hinfo->name, sizeof(hinfo->name), &data_end_point);
                /** Update param to point where data_end_point is
                 ** this is so when we come around here again due
                 ** to the while loop, we'll know where to pick up
                 ** the search for more parameters
                 **/
                if (data_end_point > param) param = data_end_point;

                // If we finally had success, then copy the name into filename for hinfo
                if ( return_value == 0 )
                {
                    // Move the parameter search point up to where we stopped
                    //      processing the data in the MIMEH_parse_header_parameter() call

                    DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: Pushing new filename to stack '%s'",FL, hinfo->name);
                    /** Step 1:  Check to see if this filename already
                     ** exists in the stack.  We do this so that we don't
                     ** duplicate entries and also to prevent false
                     ** bad-header reports. **/
                    if (SS_cmp(&(hinfo->ss_names), hinfo->name, strlen(hinfo->name))==NULL)
                    {
                        DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: Filtering '%s'",FL, hinfo->name);
                        FNFILTER_filter(hinfo->name, _MIMEH_FILENAMELEN_MAX);
                        DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: Pushing '%s'",FL, hinfo->name);
                        SS_push(&(hinfo->ss_names),hinfo->name,strlen(hinfo->name));
                        if (SS_count(&(hinfo->ss_names)) > 1)
                        {
                            MIMEH_set_defect(hinfo, MIMEH_DEFECT_MULTIPLE_NAMES);
                        }

                        if ( hinfo->filename[0] == '\0' ) {
                            snprintf( hinfo->filename, sizeof(hinfo->filename), "%s", hinfo->name );
                        }
                    } /* If the file name doesn't already exist in the stack */

                } /* If a filename was located in the headers */




                /**
                 ** Look for the MIME Boundary specification in the headers
                 ** Look for the MIME Boundary specification in the headers
                 ** Look for the MIME Boundary specification in the headers
                 **/
                return_value = MIMEH_parse_header_parameter(hinfo, param, "boundary", hinfo->boundary, sizeof(hinfo->boundary), &data_end_point);
                DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: Param<=>data_end gap = %d", FL,data_end_point -param);
                DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: param start pos = '%s'",FL, param);
                if (data_end_point > param) param = data_end_point;
                DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: param start pos = '%s'",FL, param);

                if ( return_value == 0 ) {
                    // Move the parameter search point up to where we stopped
                    //      processing the data in the MIMEH_parse_header_parameter() call

                    //hinfo->boundary_located = 1;
                    hinfo->boundary_located++;
                    if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: Pushed boundary to stack (%s)",FL, hinfo->boundary);
                    BS_push(hinfo->boundary);
                    if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: Setting hinfo->boundary_located to %d",FL, hinfo->boundary_located );

                    if (hinfo->boundary_located > 1)
                    {
                        // Register the defect
                        MIMEH_set_defect(hinfo, MIMEH_DEFECT_MULTIPLE_BOUNDARIES);

                        //Reset the counter back to 1.
                        hinfo->boundary_located=1;
                    }
                }

                //param = PLD_strtok( &tx, NULL, ";\n\r" );
                // * PLD:20040831-22H15: Added 'if (param != NULL)' prefix to debugging lines
                // * In response to bug #32, submitted by ICL ZA
                if (param != NULL) DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: param start pos = '%s'",FL, param);
                param = strpbrk( param, ";\n\r " );
                if (param != NULL) DMIMEH LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: param start pos = '%s'",FL, param);

            } // While
        }
    }

    if (hv != NULL) free(hv);

    if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIMEH_parse_contenttype:DEBUG: end.",FL);

    return 0;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x23b0
movq %rax, %r12
cmpl $0x0, 0x22a3b(%rip)     # 0x2c38c
jle 0x996d
leaq 0xca80(%rip), %rdi      # 0x163da
leaq 0xb94d(%rip), %rsi      # 0x152ae
movl $0x7ae, %edx            # imm = 0x7AE
xorl %eax, %eax
callq 0xc960
leaq 0xca59(%rip), %rsi      # 0x163cd
movq %rbx, %rdi
callq 0x23d0
testq %rax, %rax
je 0xa01f
cmpl $0x0, 0x22a00(%rip)     # 0x2c38c
jle 0x99a8
leaq 0xca70(%rip), %rdi      # 0x16405
leaq 0xb912(%rip), %rsi      # 0x152ae
movl $0x7b3, %edx            # imm = 0x7B3
xorl %eax, %eax
callq 0xc960
incl 0x18d30(%r14)
movq %r15, %rdi
callq 0xbf91
movq %r15, %rdi
callq 0xbf91
leaq 0xca87(%rip), %rsi      # 0x1644d
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x99e3
movl $0x66, 0x27f8(%r14)
jmp 0x9c43
leaq 0xca79(%rip), %rsi      # 0x16463
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9a07
movl $0x6a, 0x27f8(%r14)
jmp 0x9c43
leaq 0xca66(%rip), %rsi      # 0x16474
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9a2b
movl $0x67, 0x27f8(%r14)
jmp 0x9c43
leaq 0xca54(%rip), %rsi      # 0x16486
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9a4f
movl $0x65, 0x27f8(%r14)
jmp 0x9c43
leaq 0xca40(%rip), %rsi      # 0x16496
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9a73
movl $0x68, 0x27f8(%r14)
jmp 0x9c43
leaq 0xca32(%rip), %rsi      # 0x164ac
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9a97
movl $0x69, 0x27f8(%r14)
jmp 0x9c43
leaq 0xca1f(%rip), %rsi      # 0x164bd
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9abb
movl $0x64, 0x27f8(%r14)
jmp 0x9c43
leaq 0xca06(%rip), %rsi      # 0x164c8
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9adf
movl $0xcc, 0x27f8(%r14)
jmp 0x9c43
leaq 0xc9f0(%rip), %rsi      # 0x164d6
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9b03
movl $0xc9, 0x27f8(%r14)
jmp 0x9c43
leaq 0xc9d7(%rip), %rsi      # 0x164e1
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9b27
movl $0xcb, 0x27f8(%r14)
jmp 0x9c43
movq %r12, %rbx
leaq 0xc9ba(%rip), %rsi      # 0x164eb
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9b4e
movl $0xc8, 0x27f8(%r14)
jmp 0x9c40
leaq 0xc99c(%rip), %rsi      # 0x164f1
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9b72
movl $0x12d, 0x27f8(%r14) # imm = 0x12D
jmp 0x9c40
leaq 0xc982(%rip), %rsi      # 0x164fb
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9b96
movl $0x12e, 0x27f8(%r14) # imm = 0x12E
jmp 0x9c40
leaq 0xc969(%rip), %rsi      # 0x16506
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9bba
movl $0x12c, 0x27f8(%r14) # imm = 0x12C
jmp 0x9c40
leaq 0xc94c(%rip), %rsi      # 0x1650d
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9bdb
movl $0x190, 0x27f8(%r14) # imm = 0x190
jmp 0x9c40
leaq 0xc932(%rip), %rsi      # 0x16514
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9bfc
movl $0x1f4, 0x27f8(%r14) # imm = 0x1F4
jmp 0x9c40
leaq 0xc920(%rip), %rsi      # 0x16523
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9c1d
movl $0x320, 0x27f8(%r14) # imm = 0x320
jmp 0x9c40
leaq 0xc90d(%rip), %rsi      # 0x16531
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0xa060
movl $0x258, 0x27f8(%r14) # imm = 0x258
movq %rbx, %r12
leaq 0xc913(%rip), %rsi      # 0x1655d
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9ca3
leaq 0xc90b(%rip), %rsi      # 0x16569
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0x9ca3
cmpl $0x0, 0x2271a(%rip)     # 0x2c38c
jle 0x9c8e
leaq 0xc8fd(%rip), %rdi      # 0x16578
leaq 0xb62c(%rip), %rsi      # 0x152ae
movl $0x7e6, %edx            # imm = 0x7E6
xorl %eax, %eax
callq 0xc960
movl $0x1, 0x18d2c(%r14)
movl $0x1, %edi
callq 0xe5b7
testq %r15, %r15
je 0x9cf3
movzbl (%r15), %eax
cmpl $0x20, %eax
je 0x9cb6
cmpl $0x9, %eax
jne 0x9cbb
incq %r15
jmp 0x9ca8
leaq 0x27fc(%r14), %rbx
movl $0x500, %edx            # imm = 0x500
movq %rbx, %rdi
movq %r15, %rsi
callq 0xbfb6
movabsq $0x800000100002601, %rax # imm = 0x800000100002601
movzbl (%rbx), %ecx
cmpq $0x3b, %rcx
ja 0x9ceb
btq %rcx, %rax
jb 0x9cf0
incq %rbx
jmp 0x9cdc
movb $0x0, (%rbx)
leaq 0xc2ae(%rip), %rsi      # 0x15fa8
movq %r12, %rdi
callq 0x2300
testq %rax, %rax
je 0xa01f
movq %r12, 0x20(%rsp)
movq $0x0, 0x8(%rsp)
incq %rax
leaq 0xc893(%rip), %rsi      # 0x165b6
movq %rax, %rdi
callq 0x2300
testq %rax, %rax
je 0xa01a
movq %rax, %r15
leaq 0x6efe(%r14), %r12
leaq 0x162e0(%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0x5efd(%r14), %rax
movq %rax, 0x10(%rsp)
leaq 0x31fe(%r14), %rbp
leaq 0xb54a(%rip), %r13      # 0x152ae
movzbl 0x1(%r15), %eax
incq %r15
cmpl $0x9, %eax
je 0x9d64
cmpl $0x20, %eax
je 0x9d64
testl %eax, %eax
je 0xa01a
movq %r14, %rdi
movq %r15, %rsi
leaq 0xc6bd(%rip), %rdx      # 0x16448
movq %r12, %rcx
movl $0x27f7, %r8d           # imm = 0x27F7
leaq 0x8(%rsp), %r9
callq 0x93c8
movq 0x8(%rsp), %rcx
cmpq %r15, %rcx
cmovaq %rcx, %r15
testl %eax, %eax
jne 0x9ea0
cmpl $0x0, 0x225d3(%rip)     # 0x2c38c
jle 0x9dd4
leaq 0xc7fa(%rip), %rdi      # 0x165bc
movq %r13, %rsi
movl $0x839, %edx            # imm = 0x839
movq %r12, %rcx
xorl %eax, %eax
callq 0xc960
movq %r12, %rdi
callq 0x2110
movq 0x18(%rsp), %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x3430
testq %rax, %rax
jne 0x9ea0
cmpl $0x0, 0x22590(%rip)     # 0x2c38c
jle 0x9e17
leaq 0xc7ff(%rip), %rdi      # 0x16604
movq %r13, %rsi
movl $0x840, %edx            # imm = 0x840
movq %r12, %rcx
xorl %eax, %eax
callq 0xc960
movq %r12, %rdi
movl $0x1000, %esi           # imm = 0x1000
callq 0xe6c5
cmpl $0x0, 0x22561(%rip)     # 0x2c38c
jle 0x9e46
leaq 0xc804(%rip), %rdi      # 0x16638
movq %r13, %rsi
movl $0x842, %edx            # imm = 0x842
movq %r12, %rcx
xorl %eax, %eax
callq 0xc960
movq %r12, %rdi
callq 0x2110
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x331f
movq %rbx, %rdi
callq 0x342c
cmpl $0x2, %eax
jl 0x9e7b
movq %r14, %rdi
movl $0x9, %esi
callq 0x802f
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
jne 0x9ea0
movl $0x1001, %esi           # imm = 0x1001
movq 0x10(%rsp), %rdi
leaq 0xe1f7(%rip), %rdx      # 0x1808d
movq %r12, %rcx
xorl %eax, %eax
callq 0x2140
movq %r14, %rdi
movq %r15, %rsi
leaq 0x90d9(%rip), %rdx      # 0x12f86
movq %rbp, %rcx
movl $0x27f7, %r8d           # imm = 0x27F7
leaq 0x8(%rsp), %r9
callq 0x93c8
movl %eax, %ebx
cmpl $0x0, 0x224c3(%rip)     # 0x2c38c
jle 0x9ee9
movq 0x8(%rsp), %rcx
subq %r15, %rcx
leaq 0xc790(%rip), %rdi      # 0x1666a
movq %r13, %rsi
movl $0x859, %edx            # imm = 0x859
xorl %eax, %eax
callq 0xc960
cmpl $0x0, 0x2249c(%rip)     # 0x2c38c
jle 0x9f0b
leaq 0xc7b0(%rip), %rdi      # 0x166a9
movq %r13, %rsi
movl $0x85a, %edx            # imm = 0x85A
movq %r15, %rcx
xorl %eax, %eax
callq 0xc960
movq 0x8(%rsp), %rax
cmpq %r15, %rax
cmovaq %rax, %r15
cmpl $0x0, 0x2246e(%rip)     # 0x2c38c
jle 0x9f39
leaq 0xc782(%rip), %rdi      # 0x166a9
movq %r13, %rsi
movl $0x85c, %edx            # imm = 0x85C
movq %r15, %rcx
xorl %eax, %eax
callq 0xc960
testl %ebx, %ebx
jne 0x9fb6
incl 0x59f8(%r14)
cmpl $0x0, 0x22441(%rip)     # 0x2c38c
jle 0x9f66
leaq 0xc791(%rip), %rdi      # 0x166e5
movq %r13, %rsi
movl $0x864, %edx            # imm = 0x864
movq %rbp, %rcx
xorl %eax, %eax
callq 0xc960
movq %rbp, %rdi
callq 0xd470
cmpl $0x0, 0x22417(%rip)     # 0x2c38c
jle 0x9f94
movl 0x59f8(%r14), %ecx
leaq 0xc7a3(%rip), %rdi      # 0x16728
movq %r13, %rsi
movl $0x866, %edx            # imm = 0x866
xorl %eax, %eax
callq 0xc960
cmpl $0x2, 0x59f8(%r14)
jl 0x9fb6
movq %r14, %rdi
movl $0x5, %esi
callq 0x802f
movl $0x1, 0x59f8(%r14)
cmpl $0x0, 0x223cf(%rip)     # 0x2c38c
jle 0x9fd8
leaq 0xc6e3(%rip), %rdi      # 0x166a9
movq %r13, %rsi
movl $0x875, %edx            # imm = 0x875
movq %r15, %rcx
xorl %eax, %eax
callq 0xc960
movq %r15, %rdi
leaq 0xc791(%rip), %rsi      # 0x16773
callq 0x2300
movq %rax, %r15
testq %rax, %rax
je 0xa011
cmpl $0x0, 0x22396(%rip)     # 0x2c38c
jle 0xa011
leaq 0xc6aa(%rip), %rdi      # 0x166a9
movq %r13, %rsi
movl $0x877, %edx            # imm = 0x877
movq %r15, %rcx
xorl %eax, %eax
callq 0xc960
testq %r15, %r15
jne 0x9d64
movq 0x20(%rsp), %r12
testq %r12, %r12
je 0xa02c
movq %r12, %rdi
callq 0x2030
cmpl $0x0, 0x22359(%rip)     # 0x2c38c
jle 0xa04f
leaq 0xc73c(%rip), %rdi      # 0x16778
leaq 0xb26b(%rip), %rsi      # 0x152ae
movl $0x87f, %edx            # imm = 0x87F
xorl %eax, %eax
callq 0xc960
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc4d3(%rip), %rsi      # 0x1653a
movq %r15, %rdi
callq 0x23d0
testq %rax, %rax
je 0xa0bf
movl $0x2bd, 0x27f8(%r14) # imm = 0x2BD
cmpb $0x0, 0x5efd(%r14)
movq %rbx, %r12
jne 0x9c43
leaq 0x5efd(%r14), %rdi
cmpb $0x0, 0x1d2e1(%rip)     # 0x2737f
je 0xa0cf
leaq 0xc4a9(%rip), %rdx      # 0x16550
leaq 0x1d2d1(%rip), %rcx     # 0x2737f
movl $0x1001, %esi           # imm = 0x1001
xorl %eax, %eax
callq 0x2140
jmp 0x9c40
movl $0x0, 0x27f8(%r14)
jmp 0x9c40
movabsq $0x6c6966656c707061, %rax # imm = 0x6C6966656C707061
movq %rax, (%rdi)
movw $0x65, 0x8(%rdi)
jmp 0x9c40