{"name": "xioctl", "code": "__int64 __fastcall xioctl ( int @@a1@@ , unsigned int @@a2@@ , __int64 @@a3@@ ) { int * v4 ; char * v5 ; unsigned int @@v8@@ ; int @@v9@@ ; @@v9@@ = Number ; do { @@v8@@ = ioctl ( @@a1@@ , ( int ) @@a2@@ , @@a3@@ ) ; if ( ! @@v8@@ ) break ; if ( ! @@v9@@ -- ) break ; } while ( * _errno_location ( ) == Number || * _errno_location ( ) == Number || * _errno_location ( ) == Number ) ; if ( @@v8@@ && @@v9@@ <= Number ) { v4 = _errno_location ( ) ; v5 = strerror ( * v4 ) ; fprintf ( stderr , String , @@a2@@ , Number L , v5 ) ; } return @@v8@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v8", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]}
{"name": "init_videoIn", "code": "__int64 __fastcall init_videoIn ( __int64 @@a1@@ , const char * @@a2@@ , int @@a3@@ , int @@a4@@ , int @@a5@@ , int @@a6@@ , int @@a7@@ , __int64 @@a8@@ , int @@a9@@ ) { int v10 ; void * v11 ; __int64 v12 ; __int64 @@v13@@ ; int @@v18@@ [ Number ] ; int @@src@@ [ Number ] ; int @@v20@@ ; int @@v21@@ ; if ( ! @@a1@@ || ! @@a2@@ ) return Number ; if ( ! @@a3@@ || ! @@a4@@ ) return Number ; if ( @@a7@@ < Number || @@a7@@ > Number ) @@a7@@ = Number ; * ( _QWORD * ) ( @@a1@@ + Number ) = Number L ; * ( _QWORD * ) ( @@a1@@ + Number ) = Number L ; * ( _QWORD * ) ( @@a1@@ + Number ) = Number L ; * ( _QWORD * ) ( @@a1@@ + Number ) = calloc ( Number , Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = calloc ( Number , Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = calloc ( Number , Number ) ; snprintf ( * ( char * * ) ( @@a1@@ + Number ) , Number , String , @@a2@@ ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a4@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a5@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a6@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a7@@ ; if ( ( int ) init_v4l2 ( @@a1@@ ) >= Number ) { @@v20@@ = Number ; @@src@@ [ Number ] = Number ; if ( ! ( unsigned int ) xioctl ( * ( _DWORD * ) @@a1@@ , Number , ( __int64 ) & @@src@@ [ Number ] ) ) { @@src@@ [ Number ] = @@src@@ [ Number ] ; @@v20@@ = @@src@@ [ Number ] ; } * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) = Number L ; for ( * ( _DWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) = Number ; ; ++ * ( _DWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) ) { @@src@@ [ Number ] = * ( _DWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) ; @@src@@ [ Number ] = Number ; if ( ( int ) xioctl ( * ( _DWORD * ) @@a1@@ , Number , ( __int64 ) @@src@@ ) < Number ) break ; if ( * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) ) v11 = realloc ( * ( void * * ) ( @@a8@@ + Number L * @@a9@@ + Number ) , Number L * ( * ( _DWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number ) ) ; else v11 = calloc ( Number , Number ) ; * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) = v11 ; if ( ! * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) ) return Number ; memcpy ( ( void * ) ( Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) ) , @@src@@ , Number ) ; if ( @@src@@ [ Number ] == @@a6@@ ) * ( _DWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) = * ( _DWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) ; @@v18@@ [ Number ] = * ( _DWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) ; @@v18@@ [ Number ] = @@src@@ [ Number ] ; @@v21@@ = Number ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number ) = Number L ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number ) = Number ; while ( Number ) { @@v18@@ [ Number ] = @@v21@@ ++ ; if ( ( unsigned int ) xioctl ( * ( _DWORD * ) @@a1@@ , Number , ( __int64 ) @@v18@@ ) ) break ; v12 = * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) ; ++ * ( _DWORD * ) ( v12 + Number ) ; @@v13@@ = * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) ; if ( * ( _QWORD * ) ( @@v13@@ + Number ) ) * ( _QWORD * ) ( @@v13@@ + Number ) = realloc ( * ( void * * ) ( * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number ) , Number L * @@v21@@ ) ; else * ( _QWORD * ) ( @@v13@@ + Number ) = calloc ( Number , Number ) ; if ( ! * ( _QWORD * ) ( * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number ) ) return Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number ) + Number L * @@v21@@ - Number ) = @@v18@@ [ Number ] ; * ( _DWORD * ) ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number ) + Number L * @@v21@@ - Number + Number ) = @@v18@@ [ Number ] ; if ( @@src@@ [ Number ] == @@a6@@ ) * ( _BYTE * ) ( * ( _QWORD * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number L * * ( int * ) ( @@a8@@ + Number L * @@a9@@ + Number ) + Number ) = @@v21@@ - Number ; } } * ( _DWORD * ) ( @@a1@@ + Number ) = Number * * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) ; v10 = * ( _DWORD * ) ( @@a1@@ + Number ) ; if ( v10 == Number ) { * ( _QWORD * ) ( @@a1@@ + Number ) = calloc ( Number , * ( int * ) ( @@a1@@ + Number ) ) ; if ( ! * ( _QWORD * ) ( @@a1@@ + Number ) ) goto LABEL_41 ; * ( _QWORD * ) ( @@a1@@ + Number ) = calloc ( Number , Number * * ( int * ) ( @@a1@@ + Number ) * ( __int64 ) ( * ( _DWORD * ) ( @@a1@@ + Number ) + Number ) ) ; } else { if ( v10 != Number ) { fwrite ( String , Number , Number , stderr ) ; goto LABEL_41 ; } * ( _QWORD * ) ( @@a1@@ + Number ) = calloc ( Number , * ( int * ) ( @@a1@@ + Number ) ) ; } if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) return Number L ; } else { fwrite ( String , Number , Number , stderr ) ; } LABEL_41 : free ( * ( void * * ) ( @@a8@@ + Number L * @@a9@@ + Number ) ) ; free ( * ( void * * ) ( @@a1@@ + Number ) ) ; free ( * ( void * * ) ( @@a1@@ + Number ) ) ; free ( * ( void * * ) ( @@a1@@ + Number ) ) ; close ( * ( _DWORD * ) @@a1@@ ) ; return Number ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r32"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "int", "s": 4}, "location": "r72"}, {"n": "a6", "t": {"T": 1, "n": "int", "s": 4}, "location": "r80"}, {"n": "a7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s-16"}, {"n": "a8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s-24"}, {"n": "a9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s-32"}, {"n": "v21", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v20", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}, {"n": "src", "t": {"T": 2, "n": 70, "s": 4, "t": "int"}, "location": "s304"}, {"n": "v18", "t": {"T": 2, "n": 12, "s": 4, "t": "int"}, "location": "s352"}]} {"name": "init_v4l2", "code": "__int64 __fastcall init_v4l2 ( int * @@a1@@ ) { _DWORD * @@s@@ ; int i ; int j ; * @@a1@@ = open ( * ( ( const char * * ) @@a1@@ + Number ) , Number ) ; if ( * @@a1@@ == Number ) { perror ( String ) ; return Number ; } memset ( @@a1@@ + Number , Number , Number ) ; if ( ( int ) xioctl ( * @@a1@@ , Number , ( __int64 ) ( @@a1@@ + Number ) ) < Number ) { fprintf ( stderr , String , * ( ( const char * * ) @@a1@@ + Number ) ) ; return Number ; } if ( ( @@a1@@ [ Number ] & Number ) == Number ) { fprintf ( stderr , String , * ( ( const char * * ) @@a1@@ + Number ) ) ; return Number ; } if ( @@a1@@ [ Number ] ) { if ( ( @@a1@@ [ Number ] & Number ) == Number ) { fprintf ( stderr , String , * ( ( const char * * ) @@a1@@ + Number ) ) ; return Number ; } } else if ( ( @@a1@@ [ Number ] & Number ) == Number ) { fprintf ( stderr , String , * ( ( const char * * ) @@a1@@ + Number ) ) ; return Number ; } memset ( @@a1@@ + Number , Number , Number ) ; @@a1@@ [ Number ] = Number ; @@a1@@ [ Number ] = @@a1@@ [ Number ] ; @@a1@@ [ Number ] = @@a1@@ [ Number ] ; @@a1@@ [ Number ] = @@a1@@ [ Number ] ; @@a1@@ [ Number ] = Number ; if ( ( int ) xioctl ( * @@a1@@ , Number , ( __int64 ) ( @@a1@@ + Number ) ) < Number ) { fprintf ( stderr , String , ( unsigned int ) @@a1@@ [ Number ] , ( unsigned int ) @@a1@@ [ Number ] , ( unsigned int ) @@a1@@ [ Number ] ) ; return Number ; } if ( @@a1@@ [ Number ] != @@a1@@ [ Number ] || @@a1@@ [ Number ] != @@a1@@ [ Number ] ) { fprintf ( stderr , String , ( unsigned int ) @@a1@@ [ Number ] , ( unsigned int ) @@a1@@ [ Number ] ) ; @@a1@@ [ Number ] = @@a1@@ [ Number ] ; @@a1@@ [ Number ] = @@a1@@ [ Number ] ; if ( @@a1@@ [ Number ] == @@a1@@ [ Number ] ) { @@a1@@ [ Number ] = @@a1@@ [ Number ] ; } else { if ( @@a1@@ [ Number ] == Number ) { fwrite ( String String , Number , Number , stderr ) ; return Number ; } if ( @@a1@@ [ Number ] == Number ) { fwrite ( String , Number , Number , stderr ) ; return Number ; } } } @@s@@ = calloc ( Number , Number ) ; memset ( @@s@@ , Number , Number ) ; * @@s@@ = Number ; @@s@@ [ Number ] = Number ; @@s@@ [ Number ] = @@a1@@ [ Number ] ; xioctl ( * @@a1@@ , Number , ( __int64 ) @@s@@ ) ; memset ( @@a1@@ + Number , Number , Number ) ; @@a1@@ [ Number ] = Number ; @@a1@@ [ Number ] = Number ; @@a1@@ [ Number ] = Number ; if ( ( int ) xioctl ( * @@a1@@ , Number , ( __int64 ) ( @@a1@@ + Number ) ) < Number ) { perror ( String ) ; return Number ; } for ( i = Number ; i <= Number ; ++ i ) { memset ( @@a1@@ + Number , Number , Number ) ; @@a1@@ [ Number ] = i ; @@a1@@ [ Number ] = Number ; @@a1@@ [ Number ] = Number ; if ( ( int ) xioctl ( * @@a1@@ , Number , ( __int64 ) ( @@a1@@ + Number ) ) < Number ) { perror ( String ) ; return Number ; } if ( debug ) fprintf ( stderr , String , ( unsigned int ) @@a1@@ [ Number ] , ( unsigned int ) @@a1@@ [ Number ] ) ; * ( _QWORD * ) & @@a1@@ [ Number * i + Number ] = mmap ( Number L , ( unsigned int ) @@a1@@ [ Number ] , Number , Number , * @@a1@@ , ( unsigned int ) @@a1@@ [ Number ] ) ; if ( * ( _QWORD * ) & @@a1@@ [ Number * i + Number ] == Number ) { perror ( String ) ; return Number ; } if ( debug ) fprintf ( stderr , String , * ( const void * * ) & @@a1@@ [ Number * i + Number ] ) ; } for ( j = Number ; j <= Number ; ++ j ) { memset ( @@a1@@ + Number , Number , Number ) ; @@a1@@ [ Number ] = j ; @@a1@@ [ Number ] = Number ; @@a1@@ [ Number ] = Number ; if ( ( int ) xioctl ( * @@a1@@ , Number , ( __int64 ) ( @@a1@@ + Number ) ) < Number ) { perror ( String ) ; return Number ; } } return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "s", "t": {"T": 3, "t": "_DWORD"}, "location": "s16"}]} {"name": "video_enable", "code": "__int64 __fastcall video_enable ( int * @@a1@@ ) { __int64 @@result@@ ; int @@v2@@ ; unsigned int @@v3@@ ; @@v2@@ = Number ; @@v3@@ = xioctl ( * @@a1@@ , Number , ( __int64 ) & @@v2@@ ) ; if ( ( @@v3@@ & Number ) == Number ) { @@a1@@ [ Number ] = Number ; @@result@@ = Number L ; } else { perror ( String ) ; @@result@@ = @@v3@@ ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]} {"name": "video_disable", "code": "__int64 __fastcall video_disable ( int * @@a1@@ , int @@a2@@ ) { __int64 @@result@@ ; int @@v3@@ ; unsigned int @@v4@@ ; @@v3@@ = Number ; @@v4@@ = xioctl ( * @@a1@@ , Number , ( __int64 ) & @@v3@@ ) ; if ( @@v4@@ ) { perror ( String ) ; @@result@@ = @@v4@@ ; } else { @@a1@@ [ Number ] = @@a2@@ ; @@result@@ = Number L ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]} {"name": "uvcGrab", "code": "__int64 __fastcall uvcGrab ( __int64 @@a1@@ ) { int @@v1@@ ; int @@v3@@ ; int @@v4@@ ; if ( ! * ( _DWORD * ) ( @@a1@@ + Number ) && ( unsigned int ) video_enable ( ( int * ) @@a1@@ ) ) goto LABEL_18 ; memset ( ( void * ) ( @@a1@@ + Number ) , Number , Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; if ( ( int ) xioctl ( * ( _DWORD * ) @@a1@@ , Number , @@a1@@ + Number ) >= Number ) { @@v3@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; @@v1@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; if ( @@v1@@ == Number ) { if ( * ( _DWORD * ) ( @@a1@@ + Number ) <= Number ) { fwrite ( String , Number , Number , stderr ) ; return Number L ; } memcpy ( * ( void * * ) ( @@a1@@ + Number ) , * ( const void * * ) ( @@a1@@ + Number * ( * ( unsigned int * ) ( @@a1@@ + Number ) + Number L ) + Number ) , * ( unsigned int * ) ( @@a1@@ + Number ) ) ; if ( debug ) fprintf ( stderr , String , * ( unsigned int * ) ( @@a1@@ + Number ) ) ; } else { if ( @@v1@@ != Number ) goto LABEL_18 ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) <= * ( _DWORD * ) ( @@a1@@ + Number ) ) memcpy ( * ( void * * ) ( @@a1@@ + Number ) , * ( const void * * ) ( @@a1@@ + Number * ( * ( unsigned int * ) ( @@a1@@ + Number ) + Number L ) + Number ) , * ( unsigned int * ) ( @@a1@@ + Number ) ) ; else memcpy ( * ( void * * ) ( @@a1@@ + Number ) , * ( const void * * ) ( @@a1@@ + Number * ( * ( unsigned int * ) ( @@a1@@ + Number ) + Number L ) + Number ) , * ( int * ) ( @@a1@@ + Number ) ) ; } @@v4@@ = xioctl ( * ( _DWORD * ) @@a1@@ , Number , @@a1@@ + Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v3@@ ; if ( @@v4@@ >= Number ) return Number L ; perror ( String ) ; } else { perror ( String ) ; } LABEL_18 : * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; return Number ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]} {"name": "isv4l2Control", "code": "__int64 __fastcall isv4l2Control ( int * @@a1@@ , int @@a2@@ , __int64 @@a3@@ ) { * ( _DWORD * ) @@a3@@ = @@a2@@ ; if ( ( int ) xioctl ( * @@a1@@ , Number , @@a3@@ ) < Number ) return Number ; if ( ( * ( _DWORD * ) ( @@a3@@ + Number ) & Number ) != Number ) return Number ; if ( ( * ( _DWORD * ) ( @@a3@@ + Number ) & Number ) != Number ) return Number L ; if ( ( * ( _DWORD * ) ( @@a3@@ + Number ) & Number ) != Number ) return Number L ; fprintf ( stderr , String , ( const char * ) ( @@a3@@ + Number ) ) ; return Number ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}]} {"name": "v4l2GetControl", "code": "__int64 __fastcall v4l2GetControl ( int * @@a1@@ , int @@a2@@ ) { __int64 @@result@@ ; int @@v3@@ [ Number ] ; char @@v4@@ [ Number ] ; int @@v5@@ ; @@v5@@ = isv4l2Control ( @@a1@@ , @@a2@@ , ( __int64 ) @@v4@@ ) ; if ( @@v5@@ < Number ) return Number ; @@v3@@ [ Number ] = @@a2@@ ; @@v5@@ = xioctl ( * @@a1@@ , Number , ( __int64 ) @@v3@@ ) ; if ( @@v5@@ >= Number ) @@result@@ = ( unsigned int ) @@v3@@ [ Number ] ; else @@result@@ = Number ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v4", "t": {"T": 2, "n": 76, "s": 1, "t": "char"}, "location": "s80"}, {"n": "v3", "t": {"T": 2, "n": 2, "s": 4, "t": "int"}, "location": "s88"}]} {"name": "v4l2SetControl", "code": "__int64 __fastcall v4l2SetControl ( int * @@a1@@ , int @@a2@@ , int @@a3@@ , int @@a4@@ , __int64 @@a5@@ ) { __int64 @@result@@ ; __int64 @@v9@@ [ Number ] ; __int64 * @@v10@@ ; __int64 @@v11@@ ; _BYTE @@v12@@ [ Number ] ; int @@v13@@ [ Number ] ; int @@v14@@ ; int @@v15@@ ; int @@v16@@ ; int @@v17@@ ; int @@v18@@ ; int @@i@@ ; @@v17@@ = Number ; @@v18@@ = Number ; for ( @@i@@ = Number ; @@i@@ < * ( _DWORD * ) ( @@a5@@ + Number L * @@a4@@ + Number ) ; ++ @@i@@ ) { if ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a5@@ + Number L * @@a4@@ + Number ) + Number L * @@i@@ ) == @@a2@@ ) { @@v18@@ = Number ; break ; } } if ( @@v18@@ ) return Number ; if ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a5@@ + Number L * @@a4@@ + Number ) + Number L * @@i@@ + Number ) == Number ) { @@v16@@ = * ( _DWORD * ) ( * ( _QWORD * ) ( @@a5@@ + Number L * @@a4@@ + Number ) + Number L * @@i@@ + Number ) ; @@v15@@ = * ( _DWORD * ) ( * ( _QWORD * ) ( @@a5@@ + Number L * @@a4@@ + Number ) + Number L * @@i@@ + Number ) ; if ( @@a3@@ >= @@v16@@ && @@a3@@ <= @@v15@@ ) { @@v13@@ [ Number ] = @@a2@@ ; @@v13@@ [ Number ] = @@a3@@ ; @@v14@@ = xioctl ( * @@a1@@ , Number , ( __int64 ) @@v13@@ ) ; if ( @@v14@@ < Number ) return Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a5@@ + Number L * @@a4@@ + Number ) + Number L * @@i@@ + Number ) = @@a3@@ ; } @@result@@ = Number L ; } else { @@v9@@ [ Number ] = Number L ; @@v9@@ [ Number ] = Number L ; @@v9@@ [ Number ] = Number L ; @@v10@@ = Number L ; @@v11@@ = Number L ; * ( _QWORD * ) @@v12@@ = Number L ; * ( _DWORD * ) & @@v12@@ [ Number ] = Number ; @@v11@@ = * ( unsigned int * ) ( * ( _QWORD * ) ( @@a5@@ + Number L * @@a4@@ + Number ) + Number L * @@i@@ ) ; if ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a5@@ + Number L * @@a4@@ + Number ) + Number L * @@i@@ + Number ) == Number ) * ( _QWORD * ) & @@v12@@ [ Number ] = @@a3@@ ; else * ( _DWORD * ) & @@v12@@ [ Number ] = @@a3@@ ; HIDWORD ( @@v9@@ [ Number ] ) = Number ; @@v10@@ = & @@v11@@ ; @@v17@@ = xioctl ( * @@a1@@ , Number , ( __int64 ) @@v9@@ ) ; if ( @@v17@@ ) @@result@@ = Number ; else @@result@@ = Number L ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v17", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v16", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v15", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}, {"n": "v13", "t": {"T": 2, "n": 2, "s": 4, "t": "int"}, "location": "s32"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v12", "t": {"T": 2, "n": 12, "s": 1, "t": "_BYTE"}, "location": "s56"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s64"}, {"n": "v10", "t": {"T": 3, "t": "__int64"}, "location": "s72"}, {"n": "v18", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}, {"n": "v9", "t": {"T": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s96"}]} {"name": "v4l2ResetControl", "code": "__int64 __fastcall v4l2ResetControl ( int * @@a1@@ , int @@a2@@ ) { __int64 @@result@@ ; char @@v3@@ [ Number ] ; int @@v4@@ ; int @@v5@@ [ Number ] ; int @@v6@@ ; int @@v7@@ ; if ( ( int ) isv4l2Control ( @@a1@@ , @@a2@@ , ( __int64 ) @@v3@@ ) < Number ) return Number ; @@v7@@ = @@v4@@ ; @@v5@@ [ Number ] = @@a2@@ ; @@v5@@ [ Number ] = @@v4@@ ; @@v6@@ = xioctl ( * @@a1@@ , Number , ( __int64 ) @@v5@@ ) ; if ( @@v6@@ >= Number ) @@result@@ = Number L ; else @@result@@ = Number ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v5", "t": {"T": 2, "n": 2, "s": 4, "t": "int"}, "location": "s16"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s44"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}, {"n": "v3", "t": {"T": 2, "n": 52, "s": 1, "t": "char"}, "location": "s96"}]} {"name": "control_readed", "code": "_DWORD * __fastcall control_readed ( int * @@a1@@ , int * @@a2@@ , __int64 @@a3@@ , int @@a4@@ ) { void * v4 ; _DWORD * result ; __int64 v6 ; __int64 v7 ; __int64 v8 ; __int64 v9 ; int v10 ; __int64 @@v14@@ ; __int64 @@v15@@ ; __int64 @@v16@@ ; __int64 * @@v17@@ ; __int64 @@v18@@ ; int @@v19@@ ; __int64 @@v20@@ ; __int64 @@v21@@ ; int @@v22@@ ; int @@v23@@ ; int @@v24@@ ; int @@v25@@ ; int @@i@@ ; @@v23@@ = * @@a2@@ ; if ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) ) v4 = realloc ( * ( void * * ) ( @@a3@@ + Number L * @@a4@@ + Number ) , Number L * ( * ( _DWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) ) ; else v4 = calloc ( Number , Number ) ; * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) = v4 ; result = * ( _DWORD * * ) ( @@a3@@ + Number L * @@a4@@ + Number ) ; if ( result ) { memcpy ( ( void * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) ) , @@a2@@ , Number ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = @@v24@@ ; if ( @@a2@@ [ Number ] == Number ) { v6 = * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) ; * ( _QWORD * ) ( v6 + Number ) = malloc ( Number L * ( @@a2@@ [ Number ] + Number ) ) ; for ( @@i@@ = @@a2@@ [ Number ] ; @@i@@ <= @@a2@@ [ Number ] ; ++ @@i@@ ) { LODWORD ( @@v14@@ ) = * @@a2@@ ; HIDWORD ( @@v14@@ ) = @@i@@ ; if ( ! ( unsigned int ) xioctl ( * @@a1@@ , Number , ( __int64 ) & @@v14@@ ) ) { v7 = * ( _QWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) + Number L * @@i@@ ; v8 = @@v15@@ ; * ( _QWORD * ) v7 = @@v14@@ ; * ( _QWORD * ) ( v7 + Number ) = v8 ; v9 = ( __int64 ) @@v17@@ ; * ( _QWORD * ) ( v7 + Number ) = @@v16@@ ; * ( _QWORD * ) ( v7 + Number ) = v9 ; * ( _QWORD * ) ( v7 + Number ) = @@v18@@ ; * ( _DWORD * ) ( v7 + Number ) = @@v19@@ ; } } } else { * ( _QWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = Number L ; } * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = Number ; v10 = * @@a2@@ ; LOWORD ( v10 ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = v10 ; @@v25@@ = Number ; if ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) == Number ) { @@v25@@ = xioctl ( * @@a1@@ , Number , ( __int64 ) & @@v23@@ ) ; if ( ! @@v25@@ ) * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = @@v24@@ ; } else { @@v14@@ = Number L ; @@v15@@ = Number L ; @@v16@@ = Number L ; @@v17@@ = Number L ; @@v20@@ = Number L ; @@v21@@ = Number L ; @@v22@@ = Number ; @@v20@@ = ( unsigned int ) * @@a2@@ ; HIDWORD ( @@v14@@ ) = Number ; @@v17@@ = & @@v20@@ ; @@v25@@ = xioctl ( * @@a1@@ , Number , ( __int64 ) & @@v14@@ ) ; if ( ! @@v25@@ ) * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = HIDWORD ( @@v21@@ ) ; } result = ( _DWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) ; ++ * result ; } return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "int"}, "location": "r64"}, {"n": "v15", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s104"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s112"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v25", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}, {"n": "v24", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v23", "t": {"T": 1, "n": "int", "s": 4}, "location": "s32"}, {"n": "v22", "t": {"T": 1, "n": "int", "s": 4}, "location": "s48"}, {"n": "v21", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v20", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s64"}, {"n": "v19", "t": {"T": 1, "n": "int", "s": 4}, "location": "s72"}, {"n": "v18", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s80"}, {"n": "v17", "t": {"T": 3, "t": "__int64"}, "location": "s88"}, {"n": "v16", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s96"}]} {"name": "enumerateControls", "code": "_DWORD * __fastcall enumerateControls ( int * @@a1@@ , __int64 @@a2@@ , int @@a3@@ ) { void * v3 ; _DWORD * result ; int @@src@@ [ Number ] ; int @@v7@@ [ Number ] ; int @@i@@ ; * ( _DWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) = Number ; * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) = Number L ; @@v7@@ [ Number ] = Number ; if ( ioctl ( * @@a1@@ , Number , @@v7@@ ) ) { for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { @@v7@@ [ Number ] = @@i@@ ; if ( ! ioctl ( * @@a1@@ , Number , @@v7@@ ) ) control_readed ( @@a1@@ , @@v7@@ , @@a2@@ , @@a3@@ ) ; } for ( @@i@@ = Number ; ; ++ @@i@@ ) { @@v7@@ [ Number ] = @@i@@ ; if ( ioctl ( * @@a1@@ , Number , @@v7@@ ) ) break ; control_readed ( @@a1@@ , @@v7@@ , @@a2@@ , @@a3@@ ) ; } } else { do { control_readed ( @@a1@@ , @@v7@@ , @@a2@@ , @@a3@@ ) ; @@v7@@ [ Number ] |= Number ; } while ( ! ioctl ( * @@a1@@ , Number , @@v7@@ ) ) ; } memset ( ( void * ) ( Number L * @@a3@@ + Number + @@a2@@ + Number ) , Number , Number ) ; if ( ( unsigned int ) xioctl ( * @@a1@@ , Number , Number L * @@a3@@ + Number + @@a2@@ + Number ) == Number ) { result = ( _DWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ; * result = Number ; } else { @@src@@ [ Number ] = Number ; sprintf ( ( char * ) & @@src@@ [ Number ] , String ) ; @@src@@ [ Number ] = Number ; @@src@@ [ Number ] = Number ; @@src@@ [ Number ] = Number ; @@src@@ [ Number ] = Number ; @@src@@ [ Number ] = Number ; @@src@@ [ Number ] = Number ; if ( * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ) v3 = realloc ( * ( void * * ) ( @@a2@@ + Number L * @@a3@@ + Number ) , Number L * ( * ( _DWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number ) ) ; else v3 = calloc ( Number , Number ) ; * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) = v3 ; result = * ( _DWORD * * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ; if ( result ) { memcpy ( ( void * ) ( * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number L * * ( int * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ) , @@src@@ , Number ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number L * * ( int * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number L * * ( int * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number ) = * ( _DWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ; result = ( _DWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ; ++ * result ; } } return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "src", "t": {"T": 2, "n": 20, "s": 4, "t": "int"}, "location": "s160"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v7", "t": {"T": 2, "n": 19, "s": 4, "t": "int"}, "location": "s80"}]}