{"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": "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": "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": "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"}]}