{"name": "usb_ehci_realize", "code": "unsigned __int64 __fastcall usb_ehci_realize ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { int @@i@@ ; unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; if ( * ( _WORD * ) ( @@a1@@ + Number ) <= Number ) { usb_bus_new ( @@a1@@ , Number L , ehci_bus_ops , @@a2@@ ) ; for ( @@i@@ = Number ; @@i@@ < * ( unsigned __int16 * ) ( @@a1@@ + Number ) ; ++ @@i@@ ) { usb_register_port ( @@a1@@ , Number L * @@i@@ + Number + @@a1@@ , @@a1@@ , ( unsigned int ) @@i@@ , ehci_port_ops , Number L ) ; * ( _QWORD * ) ( @@a1@@ + Number L * @@i@@ + Number ) = Number L ; } * ( _QWORD * ) ( @@a1@@ + Number ) = timer_new_ns ( Number , ( __int64 ) ehci_frame_timer , @@a1@@ ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = qemu_bh_new ( ehci_frame_timer , @@a1@@ ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@a2@@ ; qemu_register_reset ( ehci_reset , @@a1@@ ) ; qemu_add_vm_change_state_handler ( usb_ehci_vm_state_change , @@a1@@ ) ; } else { error_set ( @@a3@@ , Number L , String , Number L ) ; } return __readfsqword ( Number ) ^ @@v5@@ ; }", "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": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "timer_new", "code": "__int64 __fastcall timer_new ( int @@a1@@ , unsigned int @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ ) { return timer_new_tl ( main_loop_tlg [ @@a1@@ ] , @@a2@@ , @@a3@@ , @@a4@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}]} {"name": "timer_new_ns", "code": "__int64 __fastcall timer_new_ns ( int @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { return timer_new ( @@a1@@ , Number , @@a2@@ , @@a3@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "ehci_reset", "code": "unsigned __int64 __fastcall ehci_reset ( __int64 @@a1@@ ) { int i ; int j ; __int64 @@v4@@ [ Number ] ; unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; trace_usb_ehci_reset ( ) ; for ( i = Number ; i <= Number ; ++ i ) { @@v4@@ [ i ] = * ( _QWORD * ) ( @@a1@@ + Number L * i + Number ) ; if ( @@v4@@ [ i ] && * ( _DWORD * ) ( @@v4@@ [ i ] + Number ) ) usb_detach ( Number L * i + Number + @@a1@@ ) ; } memset ( ( void * ) ( @@a1@@ + Number ) , Number , Number ) ; memset ( ( void * ) ( @@a1@@ + Number ) , Number , Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; for ( j = Number ; j <= Number ; ++ j ) { if ( * ( _QWORD * ) ( @@a1@@ + Number * ( j + Number L ) ) ) * ( _DWORD * ) ( @@a1@@ + Number * ( j + Number L ) + Number ) = Number ; else * ( _DWORD * ) ( @@a1@@ + Number * ( j + Number L ) + Number ) = Number ; if ( @@v4@@ [ j ] && * ( _DWORD * ) ( @@v4@@ [ j ] + Number ) ) { usb_attach ( Number L * j + Number + @@a1@@ ) ; usb_device_reset ( @@v4@@ [ j ] ) ; } } ehci_queues_rip_all ( @@a1@@ , Number ) ; ehci_queues_rip_all ( @@a1@@ , Number ) ; timer_del ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; qemu_bh_cancel ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; return __readfsqword ( Number ) ^ @@v5@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v4", "t": {"T": 2, "n": 7, "s": 8, "t": "__int64"}, "location": "s64"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_frame_timer", "code": "unsigned __int64 __fastcall ehci_frame_timer ( __int64 @@a1@@ ) { int @@v2@@ ; int @@v3@@ ; int @@i@@ ; int @@v5@@ ; __int64 @@v6@@ ; __int64 @@v7@@ ; unsigned __int64 @@v8@@ ; @@v8@@ = __readfsqword ( Number ) ; @@v2@@ = Number ; @@v7@@ = qemu_clock_get_ns ( Number L ) ; @@v3@@ = ( @@v7@@ - * ( _QWORD * ) ( @@a1@@ + Number ) ) / Number ; if ( ! ehci_periodic_enabled ( @@a1@@ ) && * ( _DWORD * ) ( @@a1@@ + Number ) == Number ) { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; ehci_update_frindex ( ( _DWORD * ) @@a1@@ , @@v3@@ ) ; * ( _QWORD * ) ( @@a1@@ + Number ) += Number * @@v3@@ ; } else { @@v2@@ = Number ; if ( Number * * ( _DWORD * ) ( @@a1@@ + Number ) < ( unsigned int ) @@v3@@ ) { @@v5@@ = @@v3@@ - Number * * ( _DWORD * ) ( @@a1@@ + Number ) ; ehci_update_frindex ( ( _DWORD * ) @@a1@@ , @@v5@@ ) ; * ( _QWORD * ) ( @@a1@@ + Number ) += Number * @@v5@@ ; @@v3@@ -= @@v5@@ ; } for ( @@i@@ = Number ; @@i@@ < @@v3@@ ; ++ @@i@@ ) { if ( @@i@@ > Number ) { ehci_commit_irq ( ( _DWORD * ) @@a1@@ ) ; if ( ( ( unsigned __int8 ) * ( _DWORD * ) ( @@a1@@ + Number ) & ( unsigned __int8 ) * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) != Number ) break ; } if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) -- * ( _DWORD * ) ( @@a1@@ + Number ) ; ehci_update_frindex ( ( _DWORD * ) @@a1@@ , Number ) ; if ( ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) == Number ) ehci_advance_periodic_state ( ( _DWORD * ) @@a1@@ ) ; * ( _QWORD * ) ( @@a1@@ + Number ) += Number L ; } } if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; } else if ( * ( _DWORD * ) ( @@a1@@ + Number ) < * ( _DWORD * ) ( @@a1@@ + Number ) >> Number ) { ++ * ( _DWORD * ) ( @@a1@@ + Number ) ; } if ( ehci_async_enabled ( @@a1@@ ) || * ( _DWORD * ) ( @@a1@@ + Number ) != Number ) { ++ @@v2@@ ; ehci_advance_async_state ( ( _DWORD * ) @@a1@@ ) ; } ehci_commit_irq ( ( _DWORD * ) @@a1@@ ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) { ++ @@v2@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; } if ( ehci_enabled ( @@a1@@ ) && ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) != Number ) ++ @@v2@@ ; if ( @@v2@@ ) { if ( * ( _BYTE * ) ( @@a1@@ + Number ) && ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) != Number ) { @@v6@@ = get_ticks_per_sec ( ) / Number + @@v7@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; } else { @@v6@@ = ( unsigned int ) ( * ( _DWORD * ) ( @@a1@@ + Number ) + Number ) * get_ticks_per_sec ( ) / Number + @@v7@@ ; } timer_mod ( * ( _QWORD * ) ( @@a1@@ + Number ) , @@v6@@ ) ; } return __readfsqword ( Number ) ^ @@v8@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s44"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s48"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s52"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "s56"}, {"n": "v8", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "usb_ehci_vm_state_change", "code": "unsigned __int64 __fastcall usb_ehci_vm_state_change ( _DWORD * @@a1@@ , __int64 @@a2@@ , int @@a3@@ ) { unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; if ( @@a3@@ == Number ) ehci_advance_async_state ( @@a1@@ ) ; if ( @@a3@@ == Number ) { ehci_advance_async_state ( @@a1@@ ) ; ehci_queues_rip_unseen ( ( __int64 ) @@a1@@ , Number ) ; } return __readfsqword ( Number ) ^ @@v5@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}