{"name": "ide_ioport_write", "code": "__int64 __fastcall ide_ioport_write ( __int64 @@a1@@ , char @@a2@@ , int @@a3@@ ) { __int64 result ; unsigned int v4 ; unsigned int v5 ; int v6 ; char v7 ; int v8 ; char @@v10@@ ; __int64 @@v11@@ ; char @@v12@@ ; int v13 ; int k ; int l ; int i ; int j ; int m ; int n ; int ii ; int v21 ; @@v12@@ = Number ; if ( ( @@a2@@ & Number ) == Number || ( result = * ( _BYTE * ) ( idebus_active_if ( @@a1@@ ) + Number ) & Number , ! ( _DWORD ) result ) ) { result = @@a2@@ & Number ; switch ( @@a2@@ & Number ) { case Number : return result ; case Number : ide_clear_hob ( @@a1@@ ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a3@@ ; result = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a3@@ ; return result ; case Number : ide_clear_hob ( @@a1@@ ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; result = @@a1@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; return result ; case Number : ide_clear_hob ( @@a1@@ ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a3@@ ; result = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a3@@ ; return result ; case Number : ide_clear_hob ( @@a1@@ ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a3@@ ; result = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a3@@ ; return result ; case Number : ide_clear_hob ( @@a1@@ ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a3@@ ; result = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a3@@ ; return result ; case Number : * ( _BYTE * ) ( @@a1@@ + Number ) = @@a3@@ & Number | Number ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a3@@ | Number ; result = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = ( @@a3@@ & Number ) != Number ; return result ; default : @@v11@@ = idebus_active_if ( @@a1@@ ) ; if ( @@v11@@ != @@a1@@ + Number ) { result = * ( _QWORD * ) ( @@v11@@ + Number ) ; if ( ! result ) return result ; } result = * ( _BYTE * ) ( @@v11@@ + Number ) & Number ; if ( ( * ( _BYTE * ) ( @@v11@@ + Number ) & Number ) != Number && @@a3@@ != Number ) return result ; break ; } switch ( @@a3@@ ) { case Number : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; ide_set_signature ( @@v11@@ ) ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; result = @@v11@@ ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return result ; case Number : case Number : goto LABEL_109 ; case Number : case Number : goto LABEL_35 ; case Number : @@v12@@ = Number ; LABEL_35 : if ( ! * ( _QWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; ide_cmd_lba48_transform ( @@v11@@ , @@v12@@ ) ; * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; return ide_sector_read ( @@v11@@ ) ; case Number : @@v12@@ = Number ; goto LABEL_48 ; case Number : @@v12@@ = Number ; goto LABEL_54 ; case Number : @@v12@@ = Number ; goto LABEL_40 ; case Number : case Number : case Number : case Number : goto LABEL_38 ; case Number : @@v12@@ = Number ; LABEL_38 : ide_cmd_lba48_transform ( @@v11@@ , @@v12@@ ) ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; ide_transfer_start ( @@v11@@ , * ( _QWORD * ) ( @@v11@@ + Number ) , Number , ( __int64 ) ide_sector_write ) ; result = @@v11@@ ; * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; return result ; case Number : @@v12@@ = Number ; goto LABEL_51 ; case Number : @@v12@@ = Number ; goto LABEL_43 ; case Number : case Number : goto LABEL_33 ; case Number : @@v12@@ = Number ; LABEL_33 : ide_cmd_lba48_transform ( @@v11@@ , @@v12@@ ) ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) ) goto LABEL_141 ; goto LABEL_185 ; case Number : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; memset ( * ( void * * ) ( @@v11@@ + Number ) , Number , Number ) ; * * ( _BYTE * * ) ( @@v11@@ + Number ) = * ( _BYTE * ) ( @@v11@@ + Number ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = * ( _BYTE * ) ( @@v11@@ + Number ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = * ( _BYTE * ) ( @@v11@@ + Number ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = * ( _BYTE * ) ( @@v11@@ + Number ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = ( unsigned int ) ide_get_sector ( @@v11@@ ) >> Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = ( unsigned __int16 ) ide_get_sector ( @@v11@@ ) >> Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = ide_get_sector ( @@v11@@ ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; ide_transfer_start ( @@v11@@ , * ( _QWORD * ) ( @@v11@@ + Number ) , Number , ( __int64 ) ide_transfer_stop ) ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : ide_set_signature ( @@v11@@ ) ; if ( * ( _DWORD * ) ( @@v11@@ + Number ) ) * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; else * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : case Number : case Number : case Number : case Number : case Number : case Number : case Number : case Number : case Number : * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : case Number : * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) || ( * ( _BYTE * ) ( @@v11@@ + Number ) & Number ) != Number ) goto LABEL_185 ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _DWORD * ) ( @@v11@@ + Number ) = * ( _BYTE * ) ( @@v11@@ + Number ) & Number ; * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; return ide_transfer_start ( @@v11@@ , * ( _QWORD * ) ( @@v11@@ + Number ) , Number , ( __int64 ) ide_atapi_cmd ) ; case Number : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) ) goto LABEL_91 ; ide_atapi_identify ( @@v11@@ ) ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; ide_transfer_start ( @@v11@@ , * ( _QWORD * ) ( @@v11@@ + Number ) , Number , ( __int64 ) ide_transfer_stop ) ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : if ( * ( _DWORD * ) ( @@v11@@ + Number ) || * ( _BYTE * ) ( @@v11@@ + Number ) != Number || * ( _BYTE * ) ( @@v11@@ + Number ) != Number || ! * ( _BYTE * ) ( @@v11@@ + Number ) && * ( _BYTE * ) ( @@v11@@ + Number ) != Number ) { goto LABEL_185 ; } switch ( * ( _BYTE * ) ( @@v11@@ + Number ) ) { case Number : memset ( * ( void * * ) ( @@v11@@ + Number ) , Number , Number ) ; * * ( _BYTE * * ) ( @@v11@@ + Number ) = Number ; for ( i = Number ; i <= Number && * ( ( _DWORD * ) & smart_attributes + Number * i ) ; ++ i ) { * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number * i + Number ) = * ( ( _DWORD * ) & smart_attributes + Number * i ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number * i + Number ) = * ( ( _DWORD * ) & unk_7164 + Number * i ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number * i + Number ) = * ( ( _DWORD * ) & unk_7168 + Number * i ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number * i + Number ) = * ( ( _DWORD * ) & unk_716C + Number * i ) ; } if ( * ( _BYTE * ) ( @@v11@@ + Number ) ) v7 = Number ; else v7 = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = v7 ; if ( * ( _BYTE * ) ( @@v11@@ + Number ) ) * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = * ( _BYTE * ) ( Number * ( * ( unsigned __int8 * ) ( @@v11@@ + Number ) - Number ) + Number + * ( _QWORD * ) ( @@v11@@ + Number ) ) ; else * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; for ( j = Number ; j <= Number ; ++ j ) * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) += * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + j ) ; goto LABEL_149 ; case Number : memset ( * ( void * * ) ( @@v11@@ + Number ) , Number , Number ) ; * * ( _BYTE * * ) ( @@v11@@ + Number ) = Number ; for ( k = Number ; k <= Number && * ( ( _DWORD * ) & smart_attributes + Number * k ) ; ++ k ) { * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number * k + Number ) = * ( ( _DWORD * ) & smart_attributes + Number * k ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number * k + Number ) = dword_7170 [ Number * k ] ; } for ( l = Number ; l <= Number ; ++ l ) * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) += * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + l ) ; LABEL_149 : * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = - * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; ide_transfer_start ( @@v11@@ , * ( _QWORD * ) ( @@v11@@ + Number ) , Number , ( __int64 ) ide_transfer_stop ) ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : if ( * ( _BYTE * ) ( @@v11@@ + Number ) ) { if ( * ( unsigned __int8 * ) ( @@v11@@ + Number ) != Number ) goto LABEL_185 ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; } else { * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; } goto LABEL_141 ; case Number : if ( * ( unsigned __int8 * ) ( @@v11@@ + Number ) > Number ) goto LABEL_185 ; if ( ++ * ( _BYTE * ) ( @@v11@@ + Number ) > Number ) * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; v21 = Number * ( * ( unsigned __int8 * ) ( @@v11@@ + Number ) - Number ) + Number ; * ( _BYTE * ) ( v21 + * ( _QWORD * ) ( @@v11@@ + Number ) ) = * ( _BYTE * ) ( @@v11@@ + Number ) ; * ( _BYTE * ) ( v21 + Number L + * ( _QWORD * ) ( @@v11@@ + Number ) ) = Number ; * ( _BYTE * ) ( v21 + Number L + * ( _QWORD * ) ( @@v11@@ + Number ) ) = Number ; * ( _BYTE * ) ( v21 + Number L + * ( _QWORD * ) ( @@v11@@ + Number ) ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : v8 = * ( unsigned __int8 * ) ( @@v11@@ + Number ) ; if ( v8 == Number ) { memset ( * ( void * * ) ( @@v11@@ + Number ) , Number , Number ) ; * * ( _BYTE * * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; * ( _WORD * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = * ( _DWORD * ) ( @@v11@@ + Number ) ; for ( m = Number ; m <= Number ; ++ m ) * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) += * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + m ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = - * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) ; } else { if ( v8 != Number ) goto LABEL_185 ; memset ( * ( void * * ) ( @@v11@@ + Number ) , Number , Number ) ; * * ( _BYTE * * ) ( @@v11@@ + Number ) = Number ; if ( * ( _BYTE * ) ( @@v11@@ + Number ) ) { * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = * ( _BYTE * ) ( @@v11@@ + Number ) ; for ( n = Number ; n <= Number ; ++ n ) * ( _BYTE * ) ( n + * ( _QWORD * ) ( @@v11@@ + Number ) ) = * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + n ) ; } else { * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = Number ; } for ( ii = Number ; ii <= Number ; ++ ii ) * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) += * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + ii ) ; * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) = - * ( _BYTE * ) ( * ( _QWORD * ) ( @@v11@@ + Number ) + Number L ) ; } * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; ide_transfer_start ( @@v11@@ , * ( _QWORD * ) ( @@v11@@ + Number ) , Number , ( __int64 ) ide_transfer_stop ) ; result = ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; break ; case Number : * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : if ( * ( _DWORD * ) ( @@v11@@ + Number ) ) { * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; } else { * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; } goto LABEL_141 ; default : goto LABEL_185 ; } return result ; case Number : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; v6 = * ( unsigned __int8 * ) ( @@v11@@ + Number ) ; if ( v6 == Number ) { ide_cfata_metadata_write ( @@v11@@ ) ; } else { if ( * ( unsigned __int8 * ) ( @@v11@@ + Number ) > Number ) goto LABEL_185 ; if ( v6 == Number ) { ide_cfata_metadata_inquiry ( @@v11@@ ) ; } else { if ( v6 != Number ) goto LABEL_185 ; ide_cfata_metadata_read ( @@v11@@ ) ; } } ide_transfer_start ( @@v11@@ , * ( _QWORD * ) ( @@v11@@ + Number ) , Number , ( __int64 ) ide_transfer_stop ) ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : case Number : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; if ( @@a3@@ == Number ) * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; if ( @@a3@@ == Number ) * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; LABEL_109 : * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : LABEL_40 : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; ide_cmd_lba48_transform ( @@v11@@ , @@v12@@ ) ; * ( _DWORD * ) ( @@v11@@ + Number ) = * ( _DWORD * ) ( @@v11@@ + Number ) ; return ide_sector_read ( @@v11@@ ) ; case Number : case Number : LABEL_43 : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; ide_cmd_lba48_transform ( @@v11@@ , @@v12@@ ) ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; * ( _DWORD * ) ( @@v11@@ + Number ) = * ( _DWORD * ) ( @@v11@@ + Number ) ; v13 = * ( _DWORD * ) ( @@v11@@ + Number ) ; if ( v13 > * ( _DWORD * ) ( @@v11@@ + Number ) ) v13 = * ( _DWORD * ) ( @@v11@@ + Number ) ; ide_transfer_start ( @@v11@@ , * ( _QWORD * ) ( @@v11@@ + Number ) , v13 << Number , ( __int64 ) ide_sector_write ) ; result = @@v11@@ ; * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; return result ; case Number : if ( * ( _DWORD * ) ( @@v11@@ + Number ) && ! * ( _DWORD * ) ( @@v11@@ + Number ) ) { * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; } if ( ( unsigned __int8 ) * ( _DWORD * ) ( @@v11@@ + Number ) && ( ( unsigned __int8 ) * ( _DWORD * ) ( @@v11@@ + Number ) > Number || ( * ( _DWORD * ) ( @@v11@@ + Number ) & ( * ( _DWORD * ) ( @@v11@@ + Number ) - Number ) ) != Number ) ) { goto LABEL_91 ; } * ( _DWORD * ) ( @@v11@@ + Number ) = ( unsigned __int8 ) * ( _DWORD * ) ( @@v11@@ + Number ) ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : case Number : LABEL_48 : if ( ! * ( _QWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; ide_cmd_lba48_transform ( @@v11@@ , @@v12@@ ) ; return ide_sector_read_dma ( @@v11@@ ) ; case Number : case Number : LABEL_51 : if ( ! * ( _QWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; ide_cmd_lba48_transform ( @@v11@@ , @@v12@@ ) ; ide_sector_write_dma ( @@v11@@ ) ; result = @@v11@@ ; * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; return result ; case Number : case Number : if ( * ( _QWORD * ) ( @@v11@@ + Number ) ) result = bdrv_aio_flush ( * ( _QWORD * ) ( @@v11@@ + Number ) , ide_flush_cb , @@v11@@ ) ; else result = ide_flush_cb ( @@v11@@ ) ; return result ; case Number : if ( ! * ( _QWORD * ) ( @@v11@@ + Number ) || * ( _DWORD * ) ( @@v11@@ + Number ) ) { if ( * ( _DWORD * ) ( @@v11@@ + Number ) ) ide_set_signature ( @@v11@@ ) ; LABEL_91 : ide_abort_command ( @@v11@@ ) ; } else { if ( * ( _DWORD * ) ( @@v11@@ + Number ) ) ide_cfata_identify ( @@v11@@ ) ; else ide_identify ( @@v11@@ ) ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; ide_transfer_start ( @@v11@@ , * ( _QWORD * ) ( @@v11@@ + Number ) , Number , ( __int64 ) ide_transfer_stop ) ; } return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : if ( ! * ( _QWORD * ) ( @@v11@@ + Number ) ) goto LABEL_185 ; v4 = * ( unsigned __int8 * ) ( @@v11@@ + Number ) ; if ( v4 > Number ) goto LABEL_185 ; if ( * ( unsigned __int8 * ) ( @@v11@@ + Number ) < Number ) { if ( * ( unsigned __int8 * ) ( @@v11@@ + Number ) <= Number ) { if ( * ( unsigned __int8 * ) ( @@v11@@ + Number ) >= Number ) { if ( ( ( Number L << ( ( unsigned __int8 ) v4 - Number ) ) & Number ) != Number ) goto LABEL_141 ; } else { if ( v4 == Number ) goto LABEL_141 ; if ( * ( unsigned __int8 * ) ( @@v11@@ + Number ) <= Number ) { if ( v4 == Number ) goto LABEL_141 ; if ( * ( unsigned __int8 * ) ( @@v11@@ + Number ) <= Number ) { if ( v4 == Number ) goto LABEL_141 ; if ( v4 != Number ) goto LABEL_185 ; @@v10@@ = * ( _DWORD * ) ( @@v11@@ + Number ) & Number ; v5 = * ( _DWORD * ) ( @@v11@@ + Number ) >> Number ; if ( v5 == Number ) { put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , ( Number << ( @@v10@@ + Number ) ) | Number ) ; goto LABEL_141 ; } if ( v5 <= Number ) { if ( v5 == Number ) { put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , ( Number << ( @@v10@@ + Number ) ) | Number ) ; put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , Number ) ; goto LABEL_141 ; } if ( v5 <= Number ) { if ( v5 <= Number ) { put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , Number ) ; } else { if ( v5 != Number ) goto LABEL_185 ; put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , ( Number << ( @@v10@@ + Number ) ) | Number ) ; put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@v11@@ + Number ) , Number ) ; } goto LABEL_141 ; } } } } } } LABEL_185 : ide_abort_command ( @@v11@@ ) ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; } if ( ( ( Number L << ( ( unsigned __int8 ) v4 + Number ) ) & Number ) == Number ) goto LABEL_185 ; LABEL_141 : * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : if ( ! * ( _DWORD * ) ( @@v11@@ + Number ) || * ( _BYTE * ) ( @@v11@@ + Number ) != Number ) goto LABEL_185 ; * ( _DWORD * ) ( @@v11@@ + Number ) = Number ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; case Number : LABEL_54 : ide_cmd_lba48_transform ( @@v11@@ , @@v12@@ ) ; ide_set_sector ( @@v11@@ , * ( _QWORD * ) ( @@v11@@ + Number ) - Number L ) ; * ( _BYTE * ) ( @@v11@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@v11@@ ) ; default : goto LABEL_185 ; } } 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": "char", "s": 1}, "location": "r64"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v10", "t": {"T": 1, "n": "char", "s": 1}, "location": "s25"}, {"n": "v12", "t": {"T": 1, "n": "char", "s": 1}, "location": "s8"}]}
{"name": "idebus_active_if", "code": "__int64 __fastcall idebus_active_if ( __int64 @@a1@@ ) { return @@a1@@ + Number + Number L * * ( unsigned __int8 * ) ( @@a1@@ + Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "ide_set_irq", "code": "__int64 __fastcall ide_set_irq ( __int64 @@a1@@ ) { __int64 @@result@@ ; __int64 @@v2@@ ; @@v2@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; @@result@@ = * ( _BYTE * ) ( @@a1@@ + Number ) & Number ; if ( ( * ( _BYTE * ) ( @@a1@@ + Number ) & Number ) == Number ) { if ( @@v2@@ ) * ( _BYTE * ) ( @@v2@@ + Number ) |= Number ; @@result@@ = qemu_irq_raise ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; } 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": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "put_le16", "code": "__int64 __fastcall put_le16 ( _WORD * @@a1@@ , unsigned __int16 @@a2@@ ) { __int64 @@result@@ ; @@result@@ = cpu_to_le16 ( @@a2@@ ) ; * @@a1@@ = @@result@@ ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_WORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "ide_identify", "code": "void * __fastcall ide_identify ( __int64 @@a1@@ ) { void * result ; int v2 ; int @@v3@@ ; _WORD * @@src@@ ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) return memcpy ( * ( void * * ) ( @@a1@@ + Number ) , ( const void * ) ( @@a1@@ + Number ) , Number ) ; memset ( * ( void * * ) ( @@a1@@ + Number ) , Number , Number ) ; @@src@@ = * ( _WORD * * ) ( @@a1@@ + Number ) ; put_le16 ( @@src@@ , Number ) ; put_le16 ( @@src@@ + Number , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( @@src@@ + Number , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( @@src@@ + Number , * ( _WORD * ) ( @@a1@@ + Number ) << Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; padstr ( ( __int64 ) ( @@src@@ + Number ) , ( char * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; padstr ( ( __int64 ) ( @@src@@ + Number ) , ( char * ) ( @@a1@@ + Number ) , Number ) ; padstr ( ( __int64 ) ( @@src@@ + Number ) , String , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( @@src@@ + Number , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( @@src@@ + Number , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; @@v3@@ = * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) ; put_le16 ( @@src@@ + Number , @@v3@@ ) ; put_le16 ( @@src@@ + Number , HIWORD ( @@v3@@ ) ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) { v2 = * ( _DWORD * ) ( @@a1@@ + Number ) ; BYTE1 ( v2 ) |= Number ; put_le16 ( @@src@@ + Number , v2 ) ; } put_le16 ( @@src@@ + Number , * ( _QWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( @@src@@ + Number , WORD1 ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; if ( ( unsigned int ) bdrv_enable_write_cache ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) put_le16 ( @@src@@ + Number , Number ) ; else put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , * ( _QWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( @@src@@ + Number , WORD1 ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) ; put_le16 ( @@src@@ + Number , WORD2 ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) ; put_le16 ( @@src@@ + Number , HIWORD ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) ; memcpy ( ( void * ) ( @@a1@@ + Number ) , @@src@@ , Number ) ; result = ( void * ) @@a1@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "src", "t": {"T": 3, "t": "_WORD"}, "location": "s8"}]} {"name": "ide_atapi_identify", "code": "void * __fastcall ide_atapi_identify ( __int64 @@a1@@ ) { void * @@result@@ ; _WORD * @@src@@ ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) return memcpy ( * ( void * * ) ( @@a1@@ + Number ) , ( const void * ) ( @@a1@@ + Number ) , Number ) ; memset ( * ( void * * ) ( @@a1@@ + Number ) , Number , Number ) ; @@src@@ = * ( _WORD * * ) ( @@a1@@ + Number ) ; put_le16 ( @@src@@ , Number ) ; padstr ( ( __int64 ) ( @@src@@ + Number ) , ( char * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; padstr ( ( __int64 ) ( @@src@@ + Number ) , ( char * ) ( @@a1@@ + Number ) , Number ) ; padstr ( ( __int64 ) ( @@src@@ + Number ) , String , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; put_le16 ( @@src@@ + Number , Number ) ; memcpy ( ( void * ) ( @@a1@@ + Number ) , @@src@@ , Number ) ; @@result@@ = ( void * ) @@a1@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 3, "t": "void"}, "location": "r8"}, {"n": "src", "t": {"T": 3, "t": "_WORD"}, "location": "s8"}]} {"name": "ide_cfata_identify", "code": "void * __fastcall ide_cfata_identify ( __int64 @@a1@@ ) { int @@v1@@ ; int @@v3@@ ; _WORD * @@s@@ ; @@s@@ = ( _WORD * ) ( @@a1@@ + Number ) ; if ( ! * ( _DWORD * ) ( @@a1@@ + Number ) ) { memset ( @@s@@ , Number , Number ) ; @@v3@@ = * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) ; put_le16 ( @@s@@ , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , WORD1 ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , * ( _QWORD * ) ( @@a1@@ + Number ) ) ; padstr ( @@a1@@ + Number , ( char * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; padstr ( @@a1@@ + Number , ( char * ) ( @@a1@@ + Number ) , Number ) ; padstr ( @@a1@@ + Number , String , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , @@v3@@ ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , HIWORD ( @@v3@@ ) ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) { @@v1@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; BYTE1 ( @@v1@@ ) |= Number ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , @@v1@@ ) ; } put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , * ( _QWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , WORD1 ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; put_le16 ( ( _WORD * ) ( @@a1@@ + Number ) , Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; } return memcpy ( * ( void * * ) ( @@a1@@ + Number ) , @@s@@ , Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "s", "t": {"T": 3, "t": "_WORD"}, "location": "s8"}]} {"name": "ide_set_signature", "code": "__int64 __fastcall ide_set_signature ( __int64 @@a1@@ ) { __int64 @@result@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) &= Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; } else if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; } else { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; } 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"}]} {"name": "ide_abort_command", "code": "__int64 __fastcall ide_abort_command ( __int64 @@a1@@ ) { __int64 @@result@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; 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"}]} {"name": "ide_transfer_start", "code": "__int64 __fastcall ide_transfer_start ( __int64 @@a1@@ , __int64 @@a2@@ , int @@a3@@ , __int64 @@a4@@ ) { __int64 @@result@@ ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a4@@ ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a2@@ ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a2@@ + @@a3@@ ; @@result@@ = * ( _BYTE * ) ( @@a1@@ + Number ) & Number ; if ( ( * ( _BYTE * ) ( @@a1@@ + Number ) & Number ) == Number ) { @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) |= Number ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "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": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "ide_transfer_stop", "code": "__int64 __fastcall ide_transfer_stop ( __int64 @@a1@@ ) { __int64 @@result@@ ; * ( _QWORD * ) ( @@a1@@ + Number ) = ide_transfer_stop ; * ( _QWORD * ) ( @@a1@@ + Number ) = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = * ( _QWORD * ) ( @@a1@@ + Number ) ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) &= Number ; 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"}]} {"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_set_sector", "code": "__int64 __fastcall ide_set_sector ( __int64 @@a1@@ , signed __int64 @@a2@@ ) { __int64 @@result@@ ; unsigned int @@v3@@ ; if ( ( * ( _BYTE * ) ( @@a1@@ + Number ) & Number ) != Number ) { if ( * ( _BYTE * ) ( @@a1@@ + Number ) ) { * ( _WORD * ) ( @@a1@@ + Number ) = @@a2@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = BYTE2 ( @@a2@@ ) ; * ( _WORD * ) ( @@a1@@ + Number ) = ( unsigned __int64 ) @@a2@@ >> Number ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = BYTE5 ( @@a2@@ ) ; } else { * ( _BYTE * ) ( @@a1@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) & Number | BYTE3 ( @@a2@@ ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = BYTE2 ( @@a2@@ ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = BYTE1 ( @@a2@@ ) ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a2@@ ; } } else { @@v3@@ = @@a2@@ % ( * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) ) ; * ( _WORD * ) ( @@a1@@ + Number ) = @@a2@@ / ( * ( _DWORD * ) ( @@a1@@ + Number ) * * ( _DWORD * ) ( @@a1@@ + Number ) ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = ( @@v3@@ / * ( _DWORD * ) ( @@a1@@ + Number ) ) & Number | * ( _BYTE * ) ( @@a1@@ + Number ) & Number ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@v3@@ % * ( _DWORD * ) ( @@a1@@ + Number ) + Number ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "signed __int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]} {"name": "ide_sector_read", "code": "__int64 __fastcall ide_sector_read ( __int64 @@a1@@ ) { __int64 @@result@@ ; int @@v2@@ ; unsigned __int64 @@v3@@ ; unsigned int @@v4@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@v3@@ = ide_get_sector ( @@a1@@ ) ; @@v4@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; if ( ! @@v4@@ ) return ide_transfer_stop ( @@a1@@ ) ; if ( ( signed int ) @@v4@@ > * ( _DWORD * ) ( @@a1@@ + Number ) ) @@v4@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; @@v2@@ = bdrv_read ( * ( _QWORD * ) ( @@a1@@ + Number ) , @@v3@@ , * ( _QWORD * ) ( @@a1@@ + Number ) , @@v4@@ ) ; if ( ! @@v2@@ || ( @@result@@ = ide_handle_rw_error ( @@a1@@ , ( unsigned int ) - @@v2@@ , Number L ) , ! ( _DWORD ) @@result@@ ) ) { ide_transfer_start ( @@a1@@ , * ( _QWORD * ) ( @@a1@@ + Number ) , @@v4@@ << Number , ( __int64 ) ide_sector_read ) ; ide_set_irq ( * ( _QWORD * ) @@a1@@ ) ; ide_set_sector ( @@a1@@ , @@v3@@ + ( int ) @@v4@@ ) ; @@result@@ = @@a1@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) -= @@v4@@ ; } 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": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"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", "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_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_flush_cb", "code": "__int64 __fastcall ide_flush_cb ( __int64 @@a1@@ ) { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; return ide_set_irq ( * ( _QWORD * ) @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "ide_atapi_cmd", "code": "__int64 __fastcall ide_atapi_cmd ( __int64 @@a1@@ ) { __int64 result ; int v2 ; int v3 ; unsigned __int8 v4 ; unsigned __int8 v5 ; char @@v6@@ ; unsigned __int64 @@v7@@ ; unsigned __int64 @@v8@@ ; unsigned __int64 @@v9@@ ; int @@v10@@ ; int @@v11@@ ; int @@v13@@ ; int @@v14@@ ; unsigned int @@v15@@ ; int @@v16@@ ; unsigned int @@v17@@ ; _BOOL4 @@v18@@ ; int @@v19@@ ; int @@v20@@ ; int @@v21@@ ; int @@v22@@ ; int @@v23@@ ; int @@v24@@ ; int @@v25@@ ; void * @@s@@ ; __int64 @@v27@@ ; int @@v28@@ ; int @@v29@@ ; int @@v30@@ ; @@v27@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; @@s@@ = * ( void * * ) ( @@a1@@ + Number ) ; if ( * ( _BYTE * ) ( @@a1@@ + Number ) == Number && * * ( _BYTE * * ) ( @@a1@@ + Number ) != Number && * * ( _BYTE * * ) ( @@a1@@ + Number ) != Number ) return ide_atapi_cmd_check_status ( @@a1@@ ) ; if ( * * ( unsigned __int8 * * ) ( @@a1@@ + Number ) > Number ) { if ( * * ( unsigned __int8 * * ) ( @@a1@@ + Number ) <= Number && * * ( unsigned __int8 * * ) ( @@a1@@ + Number ) >= Number ) { switch ( * * ( _BYTE * * ) ( @@a1@@ + Number ) ) { case Number : LABEL_38 : if ( * ( _BYTE * ) @@v27@@ == Number ) @@v29@@ = ube16_to_cpu ( ( unsigned __int8 * ) ( @@v27@@ + Number ) ) ; else @@v29@@ = ube32_to_cpu ( ( unsigned int * ) ( @@v27@@ + Number ) ) ; @@v14@@ = ube32_to_cpu ( ( unsigned int * ) ( @@v27@@ + Number ) ) ; if ( ! @@v29@@ ) goto LABEL_63 ; return ide_atapi_cmd_read ( @@a1@@ , @@v14@@ , @@v29@@ , Number ) ; case Number : @@v23@@ = * ( unsigned __int8 * ) ( @@v27@@ + Number ) ; @@v22@@ = * ( unsigned __int8 * ) ( @@v27@@ + Number ) ; @@v30@@ = ube16_to_cpu ( ( unsigned __int8 * ) ( @@v27@@ + Number ) ) ; if ( @@v22@@ > Number ) goto LABEL_84 ; if ( media_is_cd ( @@a1@@ ) ) return ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; if ( ! media_present ( @@a1@@ ) ) goto LABEL_96 ; LABEL_84 : v3 = Number ; if ( @@v30@@ <= Number ) v3 = @@v30@@ ; memset ( @@s@@ , Number , v3 ) ; if ( @@v22@@ > Number && @@v22@@ != Number || @@v23@@ ) goto LABEL_96 ; @@v21@@ = ide_dvd_read_structure ( @@a1@@ , @@v22@@ , @@v27@@ , @@s@@ ) ; if ( @@v21@@ >= Number ) result = ide_atapi_cmd_reply ( @@a1@@ , @@v21@@ , @@v30@@ ) ; else result = ide_atapi_cmd_error ( @@a1@@ , Number , - ( char ) @@v21@@ ) ; return result ; case Number : goto LABEL_63 ; case Number : @@v30@@ = ube16_to_cpu ( ( unsigned __int8 * ) ( @@v27@@ + Number ) ) ; cpu_to_ube16 ( @@s@@ , Number ) ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; cpu_to_ube16 ( ( _BYTE * ) @@s@@ + Number , Number ) ; return ide_atapi_cmd_reply ( @@a1@@ , Number , @@v30@@ ) ; case Number : @@v25@@ = ( * ( unsigned __int8 * ) ( @@v27@@ + Number ) << Number ) | ( * ( unsigned __int8 * ) ( @@v27@@ + Number ) << Number ) | * ( unsigned __int8 * ) ( @@v27@@ + Number ) ; @@v24@@ = ube32_to_cpu ( ( unsigned int * ) ( @@v27@@ + Number ) ) ; if ( ! @@v25@@ ) goto LABEL_63 ; v2 = * ( _BYTE * ) ( @@v27@@ + Number ) & Number ; if ( v2 == Number ) return ide_atapi_cmd_read ( @@a1@@ , @@v24@@ , @@v25@@ , Number ) ; if ( ( * ( _BYTE * ) ( @@v27@@ + Number ) & Number ) > Number ) goto LABEL_96 ; if ( ( * ( _BYTE * ) ( @@v27@@ + Number ) & Number ) != Number ) { if ( v2 == Number ) return ide_atapi_cmd_read ( @@a1@@ , @@v24@@ , @@v25@@ , Number ) ; LABEL_96 : result = ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; } else { LABEL_63 : result = ide_atapi_cmd_ok ( @@a1@@ ) ; } break ; default : goto LABEL_104 ; } } else { LABEL_104 : result = ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; } } else { switch ( * * ( _BYTE * * ) ( @@a1@@ + Number ) ) { case Number : if ( ( unsigned int ) bdrv_is_inserted ( * ( _QWORD * ) ( @@a1@@ + Number ) ) && ! * ( _BYTE * ) ( @@a1@@ + Number ) ) goto LABEL_63 ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; return ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; case Number : @@v30@@ = * ( unsigned __int8 * ) ( @@v27@@ + Number ) ; memset ( @@s@@ , Number , Number ) ; * ( _BYTE * ) @@s@@ = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = * ( _BYTE * ) ( @@a1@@ + Number ) ; if ( * ( _BYTE * ) ( @@a1@@ + Number ) == Number ) * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; return ide_atapi_cmd_reply ( @@a1@@ , Number , @@v30@@ ) ; case Number : @@v30@@ = * ( unsigned __int8 * ) ( @@v27@@ + Number ) ; * ( _BYTE * ) @@s@@ = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; padstr8 ( ( __int64 ) @@s@@ + Number , Number , String ) ; padstr8 ( ( __int64 ) @@s@@ + Number , Number , String ) ; padstr8 ( ( __int64 ) @@s@@ + Number , Number , ( _BYTE * ) ( @@a1@@ + Number ) ) ; return ide_atapi_cmd_reply ( @@a1@@ , Number , @@v30@@ ) ; case Number : case Number : if ( * ( _BYTE * ) @@v27@@ == Number ) @@v30@@ = ube16_to_cpu ( ( unsigned __int8 * ) ( @@v27@@ + Number ) ) ; else @@v30@@ = * ( unsigned __int8 * ) ( @@v27@@ + Number ) ; @@v11@@ = * ( _BYTE * ) ( @@v27@@ + Number ) >> Number ; @@v10@@ = * ( _BYTE * ) ( @@v27@@ + Number ) & Number ; if ( @@v11@@ == Number ) goto LABEL_76 ; if ( @@v11@@ > Number ) return ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; if ( @@v11@@ ) goto LABEL_76 ; if ( @@v10@@ == Number ) { cpu_to_ube16 ( @@s@@ , Number ) ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; if ( ( unsigned int ) bdrv_is_locked ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) * ( ( _BYTE * ) @@s@@ + Number ) |= Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; cpu_to_ube16 ( ( _BYTE * ) @@s@@ + Number , Number ) ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; cpu_to_ube16 ( ( _BYTE * ) @@s@@ + Number , Number ) ; cpu_to_ube16 ( ( _BYTE * ) @@s@@ + Number , Number ) ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; result = ide_atapi_cmd_reply ( @@a1@@ , Number , @@v30@@ ) ; } else { if ( @@v10@@ > Number ) goto LABEL_76 ; if ( @@v10@@ == Number ) { cpu_to_ube16 ( @@s@@ , Number ) ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; result = ide_atapi_cmd_reply ( @@a1@@ , Number , @@v30@@ ) ; } else { if ( @@v10@@ != Number ) goto LABEL_76 ; cpu_to_ube16 ( @@s@@ , Number ) ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; result = ide_atapi_cmd_reply ( @@a1@@ , Number , @@v30@@ ) ; } } return result ; case Number : @@v28@@ = Number ; @@v13@@ = * ( _BYTE * ) ( @@v27@@ + Number ) & Number ; if ( ( * ( _BYTE * ) ( @@v27@@ + Number ) & Number ) != Number ) @@v28@@ = bdrv_eject ( * ( _QWORD * ) ( @@a1@@ + Number ) , @@v13@@ == Number ) ; if ( @@v28@@ == Number ) return ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; if ( @@v28@@ ) return ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; goto LABEL_63 ; case Number : if ( ! ( unsigned int ) bdrv_is_inserted ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) return ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; bdrv_set_locked ( * ( _QWORD * ) ( @@a1@@ + Number ) , * ( _BYTE * ) ( @@v27@@ + Number ) & Number ) ; return ide_atapi_cmd_ok ( @@a1@@ ) ; case Number : bdrv_get_geometry ( * ( _QWORD * ) ( @@a1@@ + Number ) , & @@v7@@ ) ; @@v7@@ >>= Number ; if ( ! @@v7@@ ) return ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; cpu_to_ube32 ( @@s@@ , @@v7@@ - Number ) ; cpu_to_ube32 ( ( _BYTE * ) @@s@@ + Number , Number ) ; return ide_atapi_cmd_reply ( @@a1@@ , Number , Number ) ; case Number : goto LABEL_38 ; case Number : bdrv_get_geometry ( * ( _QWORD * ) ( @@a1@@ + Number ) , & @@v9@@ ) ; @@v9@@ >>= Number ; if ( ! @@v9@@ ) return ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; @@v15@@ = ube32_to_cpu ( ( unsigned int * ) ( @@v27@@ + Number ) ) ; if ( @@v15@@ < @@v9@@ ) result = ide_atapi_cmd_ok ( @@a1@@ ) ; else result = ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; return result ; case Number : bdrv_get_geometry ( * ( _QWORD * ) ( @@a1@@ + Number ) , & @@v8@@ ) ; @@v8@@ >>= Number ; if ( ! @@v8@@ ) return ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; @@v30@@ = ube16_to_cpu ( ( unsigned __int8 * ) ( @@v27@@ + Number ) ) ; @@v19@@ = * ( _BYTE * ) ( @@v27@@ + Number ) >> Number ; @@v18@@ = ( * ( _BYTE * ) ( @@v27@@ + Number ) & Number ) != Number ; @@v17@@ = * ( unsigned __int8 * ) ( @@v27@@ + Number ) ; if ( @@v19@@ == Number ) { @@v16@@ = cdrom_read_toc_raw ( ( unsigned int ) @@v8@@ , @@s@@ , @@v18@@ , @@v17@@ ) ; if ( @@v16@@ >= Number ) return ide_atapi_cmd_reply ( @@a1@@ , @@v16@@ , @@v30@@ ) ; } else if ( @@v19@@ <= Number ) { if ( @@v19@@ ) { memset ( @@s@@ , Number , Number ) ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; * ( ( _BYTE * ) @@s@@ + Number ) = Number ; return ide_atapi_cmd_reply ( @@a1@@ , Number , @@v30@@ ) ; } @@v16@@ = cdrom_read_toc ( ( unsigned int ) @@v8@@ , @@s@@ , @@v18@@ , @@v17@@ ) ; if ( @@v16@@ >= Number ) return ide_atapi_cmd_reply ( @@a1@@ , @@v16@@ , @@v30@@ ) ; } LABEL_76 : result = ide_atapi_cmd_error ( @@a1@@ , Number , Number ) ; break ; case Number : @@v6@@ = Number ; if ( * ( _BYTE * ) ( @@v27@@ + Number ) || * ( _BYTE * ) ( @@v27@@ + Number ) ) goto LABEL_96 ; @@v30@@ = ube16_to_cpu ( ( unsigned __int8 * ) ( @@v27@@ + Number ) ) ; if ( @@v30@@ > Number ) @@v30@@ = Number ; memset ( @@s@@ , Number , @@v30@@ ) ; if ( media_is_dvd ( @@a1@@ ) ) { cpu_to_ube16 ( ( _BYTE * ) @@s@@ + Number , Number ) ; } else if ( media_is_cd ( @@a1@@ ) ) { cpu_to_ube16 ( ( _BYTE * ) @@s@@ + Number , Number ) ; } * ( ( _BYTE * ) @@s@@ + Number ) = Number ; @@v20@@ = Number ; v4 = ide_atapi_set_profile ( @@s@@ , & @@v6@@ , Number ) ; @@v20@@ += v4 ; v5 = ide_atapi_set_profile ( @@s@@ , & @@v6@@ , Number ) ; @@v20@@ += v5 ; cpu_to_ube32 ( @@s@@ , @@v20@@ - Number ) ; return ide_atapi_cmd_reply ( @@a1@@ , @@v20@@ , @@v30@@ ) ; default : goto LABEL_104 ; } } return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s100"}, {"n": "v9", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s112"}, {"n": "v28", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v8", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s120"}, {"n": "v7", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s128"}, {"n": "v6", "t": {"T": 1, "n": "char", "s": 1}, "location": "s129"}, {"n": "v27", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "s", "t": {"T": 3, "t": "void"}, "location": "s32"}, {"n": "v25", "t": {"T": 1, "n": "int", "s": 4}, "location": "s36"}, {"n": "v30", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v24", "t": {"T": 1, "n": "int", "s": 4}, "location": "s40"}, {"n": "v23", "t": {"T": 1, "n": "int", "s": 4}, "location": "s48"}, {"n": "v22", "t": {"T": 1, "n": "int", "s": 4}, "location": "s52"}, {"n": "v21", "t": {"T": 1, "n": "int", "s": 4}, "location": "s56"}, {"n": "v20", "t": {"T": 1, "n": "int", "s": 4}, "location": "s60"}, {"n": "v19", "t": {"T": 1, "n": "int", "s": 4}, "location": "s64"}, {"n": "v18", "t": {"T": 1, "n": "_BOOL4", "s": 4}, "location": "s68"}, {"n": "v17", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s72"}, {"n": "v16", "t": {"T": 1, "n": "int", "s": 4}, "location": "s76"}, {"n": "v29", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}, {"n": "v15", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s80"}, {"n": "v14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s84"}, {"n": "v13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s88"}, {"n": "v11", "t": {"T": 1, "n": "int", "s": 4}, "location": "s96"}]} {"name": "ide_cfata_metadata_inquiry", "code": "__int64 __fastcall ide_cfata_metadata_inquiry ( __int64 @@a1@@ ) { unsigned int @@v2@@ ; _WORD * @@s@@ ; @@s@@ = * ( _WORD * * ) ( @@a1@@ + Number ) ; memset ( @@s@@ , Number , Number ) ; @@v2@@ = ( ( unsigned int ) ( * ( _DWORD * ) ( @@a1@@ + Number ) - Number ) >> Number ) + Number ; put_le16 ( @@s@@ , Number ) ; put_le16 ( @@s@@ + Number , Number ) ; put_le16 ( @@s@@ + Number , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( @@s@@ + Number , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; put_le16 ( @@s@@ + Number , HIWORD ( * ( _DWORD * ) ( @@a1@@ + Number ) ) ) ; put_le16 ( @@s@@ + Number , @@v2@@ ) ; return put_le16 ( @@s@@ + Number , HIWORD ( @@v2@@ ) ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "s", "t": {"T": 3, "t": "_WORD"}, "location": "s8"}]} {"name": "ide_cfata_metadata_read", "code": "void * __fastcall ide_cfata_metadata_read ( __int64 @@a1@@ ) { void * result ; unsigned int v2 ; char * @@s@@ ; if ( ( ( * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | ( unsigned int ) * ( unsigned __int8 * ) ( @@a1@@ + Number ) ) << Number <= * ( _DWORD * ) ( @@a1@@ + Number ) + Number ) { @@s@@ = * ( char * * ) ( @@a1@@ + Number ) ; memset ( @@s@@ , Number , Number ) ; put_le16 ( @@s@@ , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; v2 = * ( _DWORD * ) ( @@a1@@ + Number ) - ( ( ( * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | * ( unsigned __int8 * ) ( @@a1@@ + Number ) ) << Number ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) << Number <= v2 ) v2 = * ( _DWORD * ) ( @@a1@@ + Number ) << Number ; if ( v2 > Number ) v2 = Number ; result = memcpy ( @@s@@ + Number , ( const void * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + ( ( ( * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | * ( unsigned __int8 * ) ( @@a1@@ + Number ) ) << Number ) ) , v2 ) ; } else { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; result = ( void * ) @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; } return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "s", "t": {"T": 3, "t": "char"}, "location": "s8"}]} {"name": "ide_cfata_metadata_write", "code": "void * __fastcall ide_cfata_metadata_write ( __int64 @@a1@@ ) { void * result ; unsigned int v2 ; if ( ( ( * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | ( unsigned int ) * ( unsigned __int8 * ) ( @@a1@@ + Number ) ) << Number <= * ( _DWORD * ) ( @@a1@@ + Number ) + Number ) { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; v2 = * ( _DWORD * ) ( @@a1@@ + Number ) - ( ( ( * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | * ( unsigned __int8 * ) ( @@a1@@ + Number ) ) << Number ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) << Number <= v2 ) v2 = * ( _DWORD * ) ( @@a1@@ + Number ) << Number ; if ( v2 > Number ) v2 = Number ; result = memcpy ( ( void * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + ( ( ( * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ) | * ( unsigned __int8 * ) ( @@a1@@ + Number ) ) << Number ) ) , ( const void * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) , v2 ) ; } else { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; result = ( void * ) @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; } return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "ide_cmd_lba48_transform", "code": "__int64 __fastcall ide_cmd_lba48_transform ( __int64 @@a1@@ , char @@a2@@ ) { __int64 @@result@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = @@a2@@ ; if ( * ( _BYTE * ) ( @@a1@@ + Number ) ) { if ( * ( _DWORD * ) ( @@a1@@ + Number ) || * ( _BYTE * ) ( @@a1@@ + Number ) ) { @@result@@ = @@a1@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) |= * ( unsigned __int8 * ) ( @@a1@@ + Number ) << Number ; } else { @@result@@ = @@a1@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; } } else { @@result@@ = * ( unsigned int * ) ( @@a1@@ + Number ) ; if ( ! ( _DWORD ) @@result@@ ) { @@result@@ = @@a1@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; } } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "ide_clear_hob", "code": "__int64 __fastcall ide_clear_hob ( __int64 @@a1@@ ) { __int64 @@result@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) &= Number ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) &= Number ; 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"}]} {"name": "ide_init_ioport", "code": "__int64 __fastcall ide_init_ioport ( __int64 @@a1@@ , unsigned int @@a2@@ , unsigned int @@a3@@ ) { register_ioport_write ( @@a2@@ , Number L , Number L , ide_ioport_write , @@a1@@ ) ; register_ioport_read ( @@a2@@ , Number L , Number L , ide_ioport_read , @@a1@@ ) ; if ( @@a3@@ ) { register_ioport_read ( @@a3@@ , Number L , Number L , ide_status_read , @@a1@@ ) ; register_ioport_write ( @@a3@@ , Number L , Number L , ide_cmd_write , @@a1@@ ) ; } register_ioport_write ( @@a2@@ , Number L , Number L , ide_data_writew , @@a1@@ ) ; register_ioport_read ( @@a2@@ , Number L , Number L , ide_data_readw , @@a1@@ ) ; register_ioport_write ( @@a2@@ , Number L , Number L , ide_data_writel , @@a1@@ ) ; return register_ioport_read ( @@a2@@ , Number L , Number L , ide_data_readl , @@a1@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}]}