{"name": "ide_init2", "code": "__int64 __fastcall ide_init2 ( __int64 @@a1@@ , _QWORD * @@a2@@ , _QWORD * @@a3@@ , __int64 @@a4@@ ) { int v4 ; __int64 result ; __int64 @@v8@@ ; int @@i@@ ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { @@v8@@ = @@a1@@ + Number + Number L * @@i@@ ; * ( _QWORD * ) @@v8@@ = @@a1@@ ; * ( _BYTE * ) ( @@v8@@ + Number ) = @@i@@ ; v4 = drive_serial_11079 ++ ; * ( _DWORD * ) ( @@v8@@ + Number ) = v4 ; * ( _QWORD * ) ( @@v8@@ + Number ) = qemu_blockalign ( * ( _QWORD * ) ( @@v8@@ + Number ) , Number L ) ; * ( _DWORD * ) ( @@v8@@ + Number ) = Number ; * ( _QWORD * ) ( @@v8@@ + Number ) = qemu_blockalign ( * ( _QWORD * ) ( @@v8@@ + Number ) , Number L ) ; * ( _QWORD * ) ( @@v8@@ + Number ) = qemu_new_timer ( vm_clock , ide_sector_write_timer_cb , @@v8@@ ) ; if ( ! @@i@@ ) ide_init_drive ( @@v8@@ , @@a2@@ , Number L ) ; if ( @@i@@ == Number ) ide_init_drive ( @@v8@@ , @@a3@@ , Number L ) ; } result = @@a1@@ ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a4@@ ; return result ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "_QWORD"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]}
{"name": "ide_sector_write_timer_cb", "code": "__int64 __fastcall ide_sector_write_timer_cb ( __int64 * @@a1@@ ) { return ide_set_irq ( * @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "__int64"}, "location": "r56"}]} {"name": "ide_sector_write", "code": "__int64 __fastcall ide_sector_write ( __int64 @@a1@@ ) { __int64 @@result@@ ; int @@v2@@ ; unsigned __int64 @@v3@@ ; int @@v4@@ ; unsigned int @@v5@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@v3@@ = ide_get_sector ( @@a1@@ ) ; @@v5@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; if ( ( signed int ) @@v5@@ > * ( _DWORD * ) ( @@a1@@ + Number ) ) @@v5@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; @@v2@@ = bdrv_write ( * ( _QWORD * ) ( @@a1@@ + Number ) , @@v3@@ , * ( _QWORD * ) ( @@a1@@ + Number ) , @@v5@@ ) ; if ( ! @@v2@@ || ( @@result@@ = ide_handle_rw_error ( ( __int64 * ) @@a1@@ , - @@v2@@ , Number ) , ! ( _DWORD ) @@result@@ ) ) { * ( _DWORD * ) ( @@a1@@ + Number ) -= @@v5@@ ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) { @@v4@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; if ( @@v4@@ > * ( _DWORD * ) ( @@a1@@ + Number ) ) @@v4@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; ide_transfer_start ( @@a1@@ , * ( _QWORD * ) ( @@a1@@ + Number ) , @@v4@@ << Number , ( __int64 ) ide_sector_write ) ; } else { ide_transfer_stop ( @@a1@@ ) ; } ide_set_sector ( @@a1@@ , @@v3@@ + ( int ) @@v5@@ ) ; @@result@@ = ide_set_irq ( * ( _QWORD * ) @@a1@@ ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s16"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]} {"name": "ide_init_drive", "code": "__int64 __fastcall ide_init_drive ( __int64 @@a1@@ , _QWORD * @@a2@@ , __int64 @@a3@@ ) { const char * @@v3@@ ; __int64 @@v6@@ ; int @@v7@@ ; int @@v8@@ ; int @@v9@@ ; if ( @@a2@@ && * @@a2@@ ) { * ( _QWORD * ) ( @@a1@@ + Number ) = * @@a2@@ ; bdrv_get_geometry ( * ( _QWORD * ) ( @@a1@@ + Number ) , & @@v6@@ ) ; bdrv_guess_geometry ( * ( _QWORD * ) ( @@a1@@ + Number ) , & @@v9@@ , & @@v8@@ , & @@v7@@ ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v9@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v8@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v7@@ ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@v6@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; if ( ( unsigned int ) bdrv_get_type_hint ( * ( _QWORD * ) ( @@a1@@ + Number ) ) == Number ) { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; bdrv_set_change_cb ( * ( _QWORD * ) ( @@a1@@ + Number ) , cdrom_change_cb , @@a1@@ ) ; } @@v3@@ = ( const char * ) drive_get_serial ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; strncpy ( ( char * ) ( @@a1@@ + Number ) , @@v3@@ , Number ) ; } if ( ! * ( _BYTE * ) ( @@a1@@ + Number ) ) snprintf ( ( char * ) ( @@a1@@ + Number ) , Number , String , * ( unsigned int * ) ( @@a1@@ + Number ) ) ; if ( @@a3@@ ) pstrcpy ( @@a1@@ + Number , Number L , @@a3@@ ) ; else pstrcpy ( @@a1@@ + Number , Number L , String ) ; return ide_reset ( @@a1@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "v3", "t": {"T": 3, "t": "const char"}, "location": "r8"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]}