{"name": "setResolution", "code": "__int64 __fastcall setResolution ( int * @@a1@@ , int @@a2@@ , int @@a3@@ ) { __int64 @@result@@ ; int @@i@@ ; @@a1@@ [ Number ] = Number ; if ( ( unsigned int ) video_disable ( @@a1@@ , Number ) ) return Number ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) munmap ( * ( void * * ) & @@a1@@ [ Number * @@i@@ + Number ] , ( unsigned int ) @@a1@@ [ Number ] ) ; close ( * @@a1@@ ) ; @@a1@@ [ Number ] = @@a2@@ ; @@a1@@ [ Number ] = @@a3@@ ; if ( ( int ) init_v4l2 ( @@a1@@ ) >= Number ) { video_enable ( @@a1@@ ) ; @@result@@ = Number L ; } else { fwrite ( String , Number , Number , stderr ) ; @@result@@ = Number ; } 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": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]}
{"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"}]}