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