unsafe extern "C" fn find_as(mut argv0: *mut u8_0) {
    let mut afl_path: *mut u8_0 =
        getenv(b"AFL_PATH\x00" as *const u8 as *const libc::c_char) as
            *mut u8_0;
    let mut slash: *mut u8_0 = 0 as *mut u8_0;
    let mut tmp: *mut u8_0 = 0 as *mut u8_0;
    if !afl_path.is_null() {
        tmp =
            ({
                 let mut _tmp: *mut u8_0 = 0 as *mut u8_0;
                 let mut _len: s32 =
                     snprintf(0 as *mut libc::c_char,
                              0 as libc::c_int as libc::c_ulong,
                              b"%s/as\x00" as *const u8 as
                                  *const libc::c_char, afl_path);
                 if _len < 0 as libc::c_int {
                     printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-] PROGRAM ABORT : \x1b[0mWhoa, snprintf() fails?!\x00"
                                as *const u8 as *const libc::c_char);
                     printf(b"\x1b[1;91m\n         Location : \x1b[0m%s(), %s:%u\n\n\x00"
                                as *const u8 as *const libc::c_char,
                            b"func_unknown\x00" as *const u8 as
                                *const libc::c_char,
                            b"src/afl-gcc.c\x00" as *const u8 as
                                *const libc::c_char, 67 as libc::c_int);
                     exit(1 as libc::c_int);
                 }
                 _tmp =
                     DFL_ck_alloc((_len + 1 as libc::c_int) as u32_0) as
                         *mut u8_0;
                 snprintf(_tmp as *mut libc::c_char,
                          (_len + 1 as libc::c_int) as libc::c_ulong,
                          b"%s/as\x00" as *const u8 as *const libc::c_char,
                          afl_path);
                 _tmp
             });
        if access(tmp as *const libc::c_char, 1 as libc::c_int) == 0 {
            as_path = afl_path;
            DFL_ck_free(tmp as *mut libc::c_void);
            return
        }
        DFL_ck_free(tmp as *mut libc::c_void);
    }
    slash = strrchr(argv0 as *const libc::c_char, '/' as i32) as *mut u8_0;
    if !slash.is_null() {
        let mut dir: *mut u8_0 = 0 as *mut u8_0;
        *slash = 0 as libc::c_int as u8_0;
        dir = DFL_ck_strdup(argv0);
        *slash = '/' as i32 as u8_0;
        tmp =
            ({
                 let mut _tmp: *mut u8_0 = 0 as *mut u8_0;
                 let mut _len: s32 =
                     snprintf(0 as *mut libc::c_char,
                              0 as libc::c_int as libc::c_ulong,
                              b"%s/afl-as\x00" as *const u8 as
                                  *const libc::c_char, dir);
                 if _len < 0 as libc::c_int {
                     printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-] PROGRAM ABORT : \x1b[0mWhoa, snprintf() fails?!\x00"
                                as *const u8 as *const libc::c_char);
                     printf(b"\x1b[1;91m\n         Location : \x1b[0m%s(), %s:%u\n\n\x00"
                                as *const u8 as *const libc::c_char,
                            b"func_unknown\x00" as *const u8 as
                                *const libc::c_char,
                            b"src/afl-gcc.c\x00" as *const u8 as
                                *const libc::c_char, 91 as libc::c_int);
                     exit(1 as libc::c_int);
                 }
                 _tmp =
                     DFL_ck_alloc((_len + 1 as libc::c_int) as u32_0) as
                         *mut u8_0;
                 snprintf(_tmp as *mut libc::c_char,
                          (_len + 1 as libc::c_int) as libc::c_ulong,
                          b"%s/afl-as\x00" as *const u8 as
                              *const libc::c_char, dir);
                 _tmp
             });
        if access(tmp as *const libc::c_char, 1 as libc::c_int) == 0 {
            as_path = dir;
            DFL_ck_free(tmp as *mut libc::c_void);
            return
        }
        DFL_ck_free(tmp as *mut libc::c_void);
        DFL_ck_free(dir as *mut libc::c_void);
    }
    if access(b"/usr/local/lib/afl/as\x00" as *const u8 as
                  *const libc::c_char, 1 as libc::c_int) == 0 {
        as_path =
            b"/usr/local/lib/afl\x00" as *const u8 as *const libc::c_char as
                *mut u8_0;
        return
    }
    printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-] PROGRAM ABORT : \x1b[0mUnable to find AFL wrapper binary for \'as\'. Please set AFL_PATH\x00"
               as *const u8 as *const libc::c_char);
    printf(b"\x1b[1;91m\n         Location : \x1b[0m%s(), %s:%u\n\n\x00" as
               *const u8 as *const libc::c_char,
           b"func_unknown\x00" as *const u8 as *const libc::c_char,
           b"src/afl-gcc.c\x00" as *const u8 as *const libc::c_char,
           113 as libc::c_int);
    exit(1 as libc::c_int);
}
/* Try to find our "fake" GNU assembler in AFL_PATH or at the location derived
   from argv[0]. If that fails, abort. */
Try to find our "fake" GNU assembler in AFL_PATH or at the location derived
from argv[0]. If that fails, abort.
Try to find our " fake " GNU assembler in AFL_PATH or at the location derived from argv [ 0 ] . If that fails abort .
unsafe extern "C" fn find_as(mut argv0: *mut u8_0) {
    let mut afl_path: *mut u8_0 =
        getenv(b"AFL_PATH\x00" as *const u8 as *const libc::c_char) as
            *mut u8_0;
    let mut slash: *mut u8_0 = 0 as *mut u8_0;
    let mut tmp: *mut u8_0 = 0 as *mut u8_0;
    if !afl_path.is_null() {
        tmp =
            ({
                 let mut _tmp: *mut u8_0 = 0 as *mut u8_0;
                 let mut _len: s32 =
                     snprintf(0 as *mut libc::c_char,
                              0 as libc::c_int as libc::c_ulong,
                              b"%s/as\x00" as *const u8 as
                                  *const libc::c_char, afl_path);
                 if _len < 0 as libc::c_int {
                     printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-] PROGRAM ABORT : \x1b[0mWhoa, snprintf() fails?!\x00"
                                as *const u8 as *const libc::c_char);
                     printf(b"\x1b[1;91m\n         Location : \x1b[0m%s(), %s:%u\n\n\x00"
                                as *const u8 as *const libc::c_char,
                            b"func_unknown\x00" as *const u8 as
                                *const libc::c_char,
                            b"src/afl-gcc.c\x00" as *const u8 as
                                *const libc::c_char, 67 as libc::c_int);
                     exit(1 as libc::c_int);
                 }
                 _tmp =
                     DFL_ck_alloc((_len + 1 as libc::c_int) as u32_0) as
                         *mut u8_0;
                 snprintf(_tmp as *mut libc::c_char,
                          (_len + 1 as libc::c_int) as libc::c_ulong,
                          b"%s/as\x00" as *const u8 as *const libc::c_char,
                          afl_path);
                 _tmp
             });
        if access(tmp as *const libc::c_char, 1 as libc::c_int) == 0 {
            as_path = afl_path;
            DFL_ck_free(tmp as *mut libc::c_void);
            return
        }
        DFL_ck_free(tmp as *mut libc::c_void);
    }
    slash = strrchr(argv0 as *const libc::c_char, '/' as i32) as *mut u8_0;
    if !slash.is_null() {
        let mut dir: *mut u8_0 = 0 as *mut u8_0;
        *slash = 0 as libc::c_int as u8_0;
        dir = DFL_ck_strdup(argv0);
        *slash = '/' as i32 as u8_0;
        tmp =
            ({
                 let mut _tmp: *mut u8_0 = 0 as *mut u8_0;
                 let mut _len: s32 =
                     snprintf(0 as *mut libc::c_char,
                              0 as libc::c_int as libc::c_ulong,
                              b"%s/afl-as\x00" as *const u8 as
                                  *const libc::c_char, dir);
                 if _len < 0 as libc::c_int {
                     printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-] PROGRAM ABORT : \x1b[0mWhoa, snprintf() fails?!\x00"
                                as *const u8 as *const libc::c_char);
                     printf(b"\x1b[1;91m\n         Location : \x1b[0m%s(), %s:%u\n\n\x00"
                                as *const u8 as *const libc::c_char,
                            b"func_unknown\x00" as *const u8 as
                                *const libc::c_char,
                            b"src/afl-gcc.c\x00" as *const u8 as
                                *const libc::c_char, 91 as libc::c_int);
                     exit(1 as libc::c_int);
                 }
                 _tmp =
                     DFL_ck_alloc((_len + 1 as libc::c_int) as u32_0) as
                         *mut u8_0;
                 snprintf(_tmp as *mut libc::c_char,
                          (_len + 1 as libc::c_int) as libc::c_ulong,
                          b"%s/afl-as\x00" as *const u8 as
                              *const libc::c_char, dir);
                 _tmp
             });
        if access(tmp as *const libc::c_char, 1 as libc::c_int) == 0 {
            as_path = dir;
            DFL_ck_free(tmp as *mut libc::c_void);
            return
        }
        DFL_ck_free(tmp as *mut libc::c_void);
        DFL_ck_free(dir as *mut libc::c_void);
    }
    if access(b"/usr/local/lib/afl/as\x00" as *const u8 as
                  *const libc::c_char, 1 as libc::c_int) == 0 {
        as_path =
            b"/usr/local/lib/afl\x00" as *const u8 as *const libc::c_char as
                *mut u8_0;
        return
    }
    printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-] PROGRAM ABORT : \x1b[0mUnable to find AFL wrapper binary for \'as\'. Please set AFL_PATH\x00"
               as *const u8 as *const libc::c_char);
    printf(b"\x1b[1;91m\n         Location : \x1b[0m%s(), %s:%u\n\n\x00" as
               *const u8 as *const libc::c_char,
           b"func_unknown\x00" as *const u8 as *const libc::c_char,
           b"src/afl-gcc.c\x00" as *const u8 as *const libc::c_char,
           113 as libc::c_int);
    exit(1 as libc::c_int);
}
unsafe extern " " fn find_as ( mut argv0 : * mut u8_0 ) { let mut afl_path : * mut u8_0 = getenv ( b" \x00 " as * const u8 as * const libc :: c_char ) as * mut u8_0 ; let mut slash : * mut u8_0 = 0 as * mut u8_0 ; let mut tmp : * mut u8_0 = 0 as * mut u8_0 ; if ! afl_path . is_null ( ) { tmp = ( { let mut _tmp : * mut u8_0 = 0 as * mut u8_0 ; let mut _len : s32 = snprintf ( 0 as * mut libc :: c_char , 0 as libc :: c_int as libc :: c_ulong , b" \x00 " as * const u8 as * const libc :: c_char , afl_path ) ; if _len < 0 as libc :: c_int { printf ( b" \x0f \x1b \x1b \x1b \x1b \n \x1b \x00 " as * const u8 as * const libc :: c_char ) ; printf ( b" \x1b \n \x1b \n \n \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , 67 as libc :: c_int ) ; exit ( 1 as libc :: c_int ) ; } _tmp = DFL_ck_alloc ( ( _len + 1 as libc :: c_int ) as u32_0 ) as * mut u8_0 ; snprintf ( _tmp as * mut libc :: c_char , ( _len + 1 as libc :: c_int ) as libc :: c_ulong , b" \x00 " as * const u8 as * const libc :: c_char , afl_path ) ; _tmp } ) ; if access ( tmp as * const libc :: c_char , 1 as libc :: c_int ) == 0 { as_path = afl_path ; DFL_ck_free ( tmp as * mut libc :: c_void ) ; return } DFL_ck_free ( tmp as * mut libc :: c_void ) ; } slash = strrchr ( argv0 as * const libc :: c_char , '/' as i32 ) as * mut u8_0 ; if ! slash . is_null ( ) { let mut dir : * mut u8_0 = 0 as * mut u8_0 ; * slash = 0 as libc :: c_int as u8_0 ; dir = DFL_ck_strdup ( argv0 ) ; * slash = '/' as i32 as u8_0 ; tmp = ( { let mut _tmp : * mut u8_0 = 0 as * mut u8_0 ; let mut _len : s32 = snprintf ( 0 as * mut libc :: c_char , 0 as libc :: c_int as libc :: c_ulong , b" \x00 " as * const u8 as * const libc :: c_char , dir ) ; if _len < 0 as libc :: c_int { printf ( b" \x0f \x1b \x1b \x1b \x1b \n \x1b \x00 " as * const u8 as * const libc :: c_char ) ; printf ( b" \x1b \n \x1b \n \n \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , 91 as libc :: c_int ) ; exit ( 1 as libc :: c_int ) ; } _tmp = DFL_ck_alloc ( ( _len + 1 as libc :: c_int ) as u32_0 ) as * mut u8_0 ; snprintf ( _tmp as * mut libc :: c_char , ( _len + 1 as libc :: c_int ) as libc :: c_ulong , b" \x00 " as * const u8 as * const libc :: c_char , dir ) ; _tmp } ) ; if access ( tmp as * const libc :: c_char , 1 as libc :: c_int ) == 0 { as_path = dir ; DFL_ck_free ( tmp as * mut libc :: c_void ) ; return } DFL_ck_free ( tmp as * mut libc :: c_void ) ; DFL_ck_free ( dir as * mut libc :: c_void ) ; } if access ( b" \x00 " as * const u8 as * const libc :: c_char , 1 as libc :: c_int ) == 0 { as_path = b" \x00 " as * const u8 as * const libc :: c_char as * mut u8_0 ; return } printf ( b" \x0f \x1b \x1b \x1b \x1b \n \x1b \' \' \x00 " as * const u8 as * const libc :: c_char ) ; printf ( b" \x1b \n \x1b \n \n \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , 113 as libc :: c_int ) ; exit ( 1 as libc :: c_int ) ; }
Try to find our "fake" GNU assembler in AFL_PATH or at the location derived
from argv[0].
Try to find our " fake " GNU assembler in AFL_PATH or at the location derived from argv [ 0 ] .
argv0
*mut u8_0
argv0
*mut u8_0