{"name": "crad_set_power", "code": "__int64 __fastcall crad_set_power ( __int64 @@a1@@ , unsigned int @@a2@@ ) { if ( ! @@a1@@ ) return Number L ; if ( ! @@a2@@ || * ( _DWORD * ) ( @@a1@@ + Number ) ) { if ( @@a2@@ || ! * ( _DWORD * ) ( @@a1@@ + Number ) ) { fprintf ( stderr , String , @@a2@@ , * ( unsigned int * ) ( @@a1@@ + Number ) ) ; } else { fwrite ( String , Number , Number , stderr ) ; select_input ( Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; crad_set_rds ( @@a1@@ , Number L ) ; } } else { select_input ( Number ) ; system ( String ) ; fwrite ( String , Number , Number , stderr ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; if ( pthread_create ( ( pthread_t * ) ( @@a1@@ + Number ) , Number L , ( void * ( * ) ( void * ) ) playback_thread , ( void * ) @@a1@@ ) ) { perror ( String ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; return Number L ; } pthread_detach ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}]}
{"name": "select_input", "code": "__int64 __fastcall select_input ( int @@a1@@ ) { if ( @@a1@@ ) { if ( @@a1@@ == Number ) { write_kernel_memory ( Number , Number ) ; write_kernel_memory ( Number , Number ) ; } else if ( @@a1@@ == Number ) { write_kernel_memory ( Number , Number ) ; write_kernel_memory ( Number , Number ) ; } else { write_kernel_memory ( Number , Number ) ; } } else { write_kernel_memory ( Number , Number ) ; } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}]} {"name": "playback_thread", "code": "void __fastcall __noreturn playback_thread ( void * @@a1@@ ) { void * @@v1@@ ; const char * v2 ; const char * v3 ; const char * v4 ; _BYTE @@v5@@ [ Number ] ; __int64 @@v6@@ ; __int64 @@v7@@ ; __int64 @@v8@@ ; char @@v9@@ [ Number ] ; unsigned int @@v10@@ ; int @@v11@@ ; int @@v12@@ ; unsigned __int64 @@v13@@ ; __int64 @@v14@@ ; _DWORD * @@v15@@ ; int @@v16@@ ; int @@v17@@ ; * ( _QWORD * ) & @@v5@@ [ Number ] = @@a1@@ ; @@v15@@ = @@a1@@ ; alsa_open ( & @@v6@@ , Number , ( __int64 ) & @@v8@@ ) ; alsa_open ( & @@v7@@ , Number , ( __int64 ) @@v9@@ ) ; snd_pcm_start ( @@v6@@ ) ; @@v14@@ = @@v8@@ - Number ; @@v1@@ = alloca ( Number * ( ( Number * @@v8@@ + Number ) / Number ) ) ; @@v13@@ = Number * ( ( unsigned __int64 ) @@v5@@ >> Number ) ; while ( Number ) { LABEL_21 : if ( ! @@v15@@ [ Number ] ) goto LABEL_22 ; @@v12@@ = snd_pcm_avail_update ( @@v6@@ ) ; @@v11@@ = snd_pcm_avail_update ( @@v7@@ ) ; if ( @@v12@@ >= @@v11@@ ) @@v16@@ = @@v11@@ ; else @@v16@@ = @@v12@@ ; if ( @@v16@@ <= Number ) { usleep ( Number ) ; continue ; } @@v17@@ = snd_pcm_readi ( @@v6@@ , @@v13@@ , @@v16@@ ) ; if ( @@v17@@ == Number ) { v2 = ( const char * ) snd_strerror ( Number L ) ; fprintf ( stderr , String , v2 ) ; continue ; } if ( @@v17@@ == Number ) break ; if ( @@v17@@ < Number ) { v3 = ( const char * ) snd_strerror ( ( unsigned int ) @@v17@@ ) ; fprintf ( stderr , String , v3 ) ; @@v15@@ [ Number ] = Number ; goto LABEL_22 ; } while ( Number ) { while ( Number ) { if ( @@v17@@ <= Number ) goto LABEL_21 ; @@v10@@ = snd_pcm_writei ( @@v7@@ , @@v13@@ , @@v17@@ ) ; if ( @@v10@@ != Number ) break ; fwrite ( String , Number , Number , stderr ) ; if ( ( unsigned int ) alsa_recover ( @@v7@@ , Number L ) ) { @@v15@@ [ Number ] = Number ; goto LABEL_21 ; } } if ( ( int ) @@v10@@ <= Number ) break ; @@v17@@ -= @@v10@@ ; } v4 = ( const char * ) snd_strerror ( @@v10@@ ) ; fprintf ( stderr , String , @@v10@@ , v4 ) ; @@v15@@ [ Number ] = Number ; } fwrite ( String , Number , Number , stderr ) ; if ( ! ( unsigned int ) alsa_recover ( @@v6@@ , Number L ) ) goto LABEL_21 ; @@v15@@ [ Number ] = Number ; LABEL_22 : fwrite ( String , Number , Number , stderr ) ; snd_pcm_close ( @@v6@@ ) ; snd_pcm_close ( @@v7@@ ) ; pthread_exit ( Number L ) ; }", "source": [{"n": "v1", "t": {"T": 3, "t": "void"}, "location": "r40"}, {"n": "a1", "t": {"T": 3, "t": "void"}, "location": "r56"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s104"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s112"}, {"n": "v5", "t": {"T": 2, "n": 9, "s": 1, "t": "_BYTE"}, "location": "s121"}, {"n": "v17", "t": {"T": 1, "n": "int", "s": 4}, "location": "s36"}, {"n": "v16", "t": {"T": 1, "n": "int", "s": 4}, "location": "s40"}, {"n": "v15", "t": {"T": 3, "t": "_DWORD"}, "location": "s48"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v13", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s64"}, {"n": "v12", "t": {"T": 1, "n": "int", "s": 4}, "location": "s68"}, {"n": "v11", "t": {"T": 1, "n": "int", "s": 4}, "location": "s72"}, {"n": "v10", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s76"}, {"n": "v9", "t": {"T": 2, "n": 12, "s": 1, "t": "char"}, "location": "s88"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s96"}]} {"name": "crad_set_rds", "code": "__int64 __fastcall crad_set_rds ( __int64 @@a1@@ , int @@a2@@ ) { if ( ! @@a2@@ || * ( _DWORD * ) ( @@a1@@ + Number ) ) { if ( ! @@a2@@ ) { if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; pthread_mutex_destroy ( ( pthread_mutex_t * ) ( @@a1@@ + Number ) ) ; } } } else { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; if ( pthread_mutex_init ( ( pthread_mutex_t * ) ( @@a1@@ + Number ) , Number L ) ) { perror ( String ) ; return Number L ; } fwrite ( String , Number , Number , stderr ) ; if ( pthread_create ( ( pthread_t * ) ( @@a1@@ + Number ) , Number L , ( void * ( * ) ( void * ) ) rds_reader , ( void * ) @@a1@@ ) ) { perror ( String ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; pthread_mutex_destroy ( ( pthread_mutex_t * ) ( @@a1@@ + Number ) ) ; return Number L ; } pthread_detach ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}]}