{"name": "ide_dma_start", "code": "__int64 __fastcall ide_dma_start ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; __int64 @@v3@@ ; @@result@@ = * ( _QWORD * ) ( * ( _QWORD * ) @@a1@@ + Number L ) ; @@v3@@ = @@result@@ ; if ( @@result@@ ) { * ( _BYTE * ) ( @@result@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@result@@ + Number ) = @@a2@@ ; * ( _DWORD * ) ( @@result@@ + Number ) = Number ; * ( _DWORD * ) ( @@result@@ + Number ) = Number ; * ( _DWORD * ) ( @@result@@ + Number ) = Number ; * ( _QWORD * ) ( @@result@@ + Number ) = ide_get_sector ( @@a1@@ ) ; * ( _DWORD * ) ( @@v3@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) ; @@result@@ = * ( _BYTE * ) ( @@v3@@ + Number ) & Number ; if ( ( * ( _BYTE * ) ( @@v3@@ + Number ) & Number ) != Number ) @@result@@ = ( * ( __int64 ( __fastcall * * ) ( __int64 , _QWORD ) ) ( @@v3@@ + Number ) ) ( @@v3@@ , Number L ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}
{"name": "ide_get_sector", "code": "unsigned __int64 __fastcall ide_get_sector ( __int64 @@a1@@ ) { if ( ( * ( _BYTE * ) ( @@a1@@ + Number ) & Number ) == Number ) return ( * ( _BYTE * ) ( @@a1@@ + Number ) & Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) + * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) * * ( unsigned __int16 * ) ( @@a1@@ + Number ) + * ( unsigned __int8 * ) ( @@a1@@ + Number ) - Number ; if ( * ( _BYTE * ) ( @@a1@@ + Number ) ) return ( ( unsigned __int64 ) * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | ( ( unsigned __int64 ) * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | ( ( unsigned __int64 ) * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | ( ( unsigned __int64 ) * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | ( ( unsigned __int64 ) * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | * ( unsigned __int8 * ) ( @@a1@@ + Number ) ; return ( * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | ( * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | ( * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) & Number | ( unsigned int ) * ( unsigned __int8 * ) ( @@a1@@ + Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "ide_sector_read_dma", "code": "__int64 __fastcall ide_sector_read_dma ( __int64 @@a1@@ ) { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; return ide_dma_start ( @@a1@@ , ide_read_dma_cb ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "ide_sector_write_dma", "code": "__int64 __fastcall ide_sector_write_dma ( __int64 @@a1@@ ) { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; return ide_dma_start ( @@a1@@ , ide_write_dma_cb ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "ide_atapi_cmd_reply", "code": "__int64 __fastcall ide_atapi_cmd_reply ( __int64 @@a1@@ , int @@a2@@ , int @@a3@@ ) { __int64 @@result@@ ; int @@v4@@ ; @@v4@@ = @@a2@@ ; if ( @@a2@@ > @@a3@@ ) @@v4@@ = @@a3@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v4@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v4@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@result@@ = ide_dma_start ( @@a1@@ , ide_atapi_cmd_read_dma_cb ) ; } else { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@result@@ = ide_atapi_cmd_reply_end ( @@a1@@ ) ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "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": "int", "s": 4}, "location": "s12"}]} {"name": "ide_atapi_cmd_read_dma", "code": "__int64 __fastcall ide_atapi_cmd_read_dma ( __int64 @@a1@@ , int @@a2@@ , int @@a3@@ , int @@a4@@ ) { * ( _DWORD * ) ( @@a1@@ + Number ) = @@a2@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a4@@ * @@a3@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a4@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; return ide_dma_start ( @@a1@@ , ide_atapi_cmd_read_dma_cb ) ; }", "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": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}]} {"name": "ide_dma_restart", "code": "__int64 __fastcall ide_dma_restart ( _DWORD * @@a1@@ , int @@a2@@ ) { __int64 @@v3@@ ; @@v3@@ = * ( _QWORD * ) ( * ( _QWORD * ) @@a1@@ + Number L ) ; ide_set_sector ( ( __int64 ) @@a1@@ , * ( _QWORD * ) ( @@v3@@ + Number ) ) ; @@a1@@ [ Number ] = Number ; @@a1@@ [ Number ] = Number ; @@a1@@ [ Number ] = * ( _DWORD * ) ( @@v3@@ + Number ) ; * ( _DWORD * ) ( @@v3@@ + Number ) = * ( _DWORD * ) ( @@v3@@ + Number ) ; if ( @@a2@@ ) * ( _QWORD * ) ( @@v3@@ + Number ) = ide_read_dma_cb ; else * ( _QWORD * ) ( @@v3@@ + Number ) = ide_write_dma_cb ; return ide_dma_start ( ( __int64 ) @@a1@@ , * ( _QWORD * ) ( @@v3@@ + Number ) ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}