{"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_reply_end", "code": "__int64 __fastcall ide_atapi_cmd_reply_end ( __int64 @@a1@@ ) { __int64 @@result@@ ; int @@v2@@ ; int v3 ; int v4 ; int @@v5@@ ; if ( * ( int * ) ( @@a1@@ + Number ) <= Number ) { ide_transfer_stop ( @@a1@@ ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) & Number | Number ; return ide_set_irq ( * ( _QWORD * ) @@a1@@ ) ; } if ( * ( _DWORD * ) ( @@a1@@ + Number ) != Number && * ( _DWORD * ) ( @@a1@@ + Number ) >= * ( _DWORD * ) ( @@a1@@ + Number ) ) { @@v2@@ = cd_read_sector ( * ( _QWORD * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) , * ( _BYTE * * ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; if ( @@v2@@ < Number ) { ide_transfer_stop ( @@a1@@ ) ; return ide_atapi_io_error ( @@a1@@ , @@v2@@ ) ; } ++ * ( _DWORD * ) ( @@a1@@ + Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; } if ( * ( int * ) ( @@a1@@ + Number ) <= Number ) { * ( _DWORD * ) ( @@a1@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) & Number | Number ; @@v5@@ = * ( unsigned __int16 * ) ( @@a1@@ + Number ) ; if ( @@v5@@ == Number ) @@v5@@ = Number ; v4 = * ( _DWORD * ) ( @@a1@@ + Number ) ; if ( v4 > @@v5@@ ) { if ( ( @@v5@@ & Number ) != Number ) -- @@v5@@ ; v4 = @@v5@@ ; } * ( _WORD * ) ( @@a1@@ + Number ) = v4 ; * ( _DWORD * ) ( @@a1@@ + Number ) = v4 ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) != Number && v4 > * ( _DWORD * ) ( @@a1@@ + Number ) - * ( _DWORD * ) ( @@a1@@ + Number ) ) v4 = * ( _DWORD * ) ( @@a1@@ + Number ) - * ( _DWORD * ) ( @@a1@@ + Number ) ; ide_transfer_start ( @@a1@@ , * ( _QWORD * ) ( @@a1@@ + Number ) + * ( int * ) ( @@a1@@ + Number ) , v4 , ( __int64 ) ide_atapi_cmd_reply_end ) ; * ( _DWORD * ) ( @@a1@@ + Number ) -= v4 ; * ( _DWORD * ) ( @@a1@@ + Number ) -= v4 ; * ( _DWORD * ) ( @@a1@@ + Number ) += v4 ; @@result@@ = ide_set_irq ( * ( _QWORD * ) @@a1@@ ) ; } else { v3 = * ( _DWORD * ) ( @@a1@@ + Number ) - * ( _DWORD * ) ( @@a1@@ + Number ) ; if ( v3 > * ( _DWORD * ) ( @@a1@@ + Number ) ) v3 = * ( _DWORD * ) ( @@a1@@ + Number ) ; ide_transfer_start ( @@a1@@ , * ( _QWORD * ) ( @@a1@@ + Number ) + * ( int * ) ( @@a1@@ + Number ) , v3 , ( __int64 ) ide_atapi_cmd_reply_end ) ; * ( _DWORD * ) ( @@a1@@ + Number ) -= v3 ; * ( _DWORD * ) ( @@a1@@ + Number ) -= v3 ; @@result@@ = @@a1@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) += v3 ; } 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": "int", "s": 4}, "location": "s12"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "ide_atapi_cmd_read_pio", "code": "__int64 __fastcall ide_atapi_cmd_read_pio ( __int64 @@a1@@ , int @@a2@@ , int @@a3@@ , int @@a4@@ ) { * ( _DWORD * ) ( @@a1@@ + Number ) = @@a2@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a4@@ * @@a3@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a4@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a4@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; return ide_atapi_cmd_reply_end ( @@a1@@ ) ; }", "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_atapi_cmd_read_dma_cb", "code": "__int64 __fastcall ide_atapi_cmd_read_dma_cb ( __int64 @@a1@@ , int @@a2@@ ) { __int64 @@result@@ ; __int64 @@v3@@ ; int v4 ; int v5 ; int @@v6@@ ; @@v3@@ = bmdma_active_if ( @@a1@@ ) ; if ( @@a2@@ < Number ) { ide_atapi_io_error ( @@v3@@ , @@a2@@ ) ; LABEL_12 : * ( _BYTE * ) ( @@a1@@ + Number ) &= Number ; * ( _BYTE * ) ( @@a1@@ + Number ) |= Number ; * ( _QWORD * ) ( @@a1@@ + Number ) = Number L ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@result@@ = @@a1@@ ; * ( _QWORD * ) ( @@a1@@ + Number ) = Number L ; return @@result@@ ; } if ( * ( int * ) ( @@v3@@ + Number ) > Number ) { if ( * ( _DWORD * ) ( @@v3@@ + Number ) != Number ) { if ( * ( _DWORD * ) ( @@v3@@ + Number ) == Number ) { v4 = Number ; cd_data_to_raw ( * ( _BYTE * * ) ( @@v3@@ + Number ) , * ( _DWORD * ) ( @@v3@@ + Number ) ) ; } else { v4 = * ( int * ) ( @@v3@@ + Number ) >> Number ; } * ( _DWORD * ) ( @@v3@@ + Number ) += v4 ; } * ( _DWORD * ) ( @@v3@@ + Number ) -= * ( _DWORD * ) ( @@v3@@ + Number ) ; if ( ! ( unsigned int ) dma_buf_rw ( ( _DWORD * ) @@a1@@ , Number ) ) goto LABEL_12 ; } if ( * ( int * ) ( @@v3@@ + Number ) <= Number ) { * ( _BYTE * ) ( @@v3@@ + Number ) = Number ; * ( _DWORD * ) ( @@v3@@ + Number ) = * ( _DWORD * ) ( @@v3@@ + Number ) & Number | Number ; ide_set_irq ( * ( _QWORD * ) @@v3@@ ) ; goto LABEL_12 ; } * ( _DWORD * ) ( @@v3@@ + Number ) = Number ; if ( * ( _DWORD * ) ( @@v3@@ + Number ) == Number ) { v5 = Number ; * ( _DWORD * ) ( @@v3@@ + Number ) = * ( _DWORD * ) ( @@v3@@ + Number ) ; @@v6@@ = Number ; } else { v5 = * ( int * ) ( @@v3@@ + Number ) >> Number ; if ( v5 > Number ) v5 = Number ; * ( _DWORD * ) ( @@v3@@ + Number ) = v5 << Number ; @@v6@@ = Number ; } * ( _QWORD * ) ( @@a1@@ + Number ) = @@v6@@ + * ( _QWORD * ) ( @@v3@@ + Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = v5 << Number ; qemu_iovec_init_external ( @@a1@@ + Number , @@a1@@ + Number , Number L ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = bdrv_aio_readv ( * ( _QWORD * ) ( @@v3@@ + Number ) , Number L * * ( int * ) ( @@v3@@ + Number ) , @@a1@@ + Number , ( unsigned int ) ( Number * v5 ) , ide_atapi_cmd_read_dma_cb , @@a1@@ ) ; @@result@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; if ( ! @@result@@ ) { ide_atapi_cmd_error ( @@v3@@ , Number , Number ) ; goto LABEL_12 ; } return @@result@@ ; }", "source": [{"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": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"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_atapi_cmd_read", "code": "__int64 __fastcall ide_atapi_cmd_read ( __int64 @@a1@@ , int @@a2@@ , int @@a3@@ , int @@a4@@ ) { __int64 @@result@@ ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) @@result@@ = ide_atapi_cmd_read_dma ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; else @@result@@ = ide_atapi_cmd_read_pio ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; 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": 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"}]} {"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_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"}]}