{"name": "ehci_get_state", "code": "__int64 __fastcall ehci_get_state ( __int64 @@a1@@ , int @@a2@@ ) { __int64 @@result@@ ; if ( @@a2@@ ) @@result@@ = * ( unsigned int * ) ( @@a1@@ + Number ) ; else @@result@@ = * ( unsigned int * ) ( @@a1@@ + Number ) ; 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"}]}
{"name": "ehci_writeback_async_complete_packet", "code": "unsigned __int64 __fastcall ehci_writeback_async_complete_packet ( __int64 @@a1@@ ) { unsigned int @@v2@@ ; __int64 * @@v3@@ ; unsigned int @@v4@@ [ Number ] ; unsigned int @@v5@@ [ Number ] ; unsigned __int64 @@v6@@ ; @@v6@@ = __readfsqword ( Number ) ; @@v3@@ = * ( __int64 * * ) @@a1@@ ; get_dwords ( * * ( _QWORD * * ) @@a1@@ , * ( _DWORD * ) ( * ( _QWORD * ) @@a1@@ + Number L ) & Number , @@v5@@ , Number ) ; get_dwords ( * @@v3@@ , * ( ( _DWORD * ) @@v3@@ + Number ) & Number , @@v4@@ , Number ) ; if ( ! ehci_verify_qh ( ( __int64 ) @@v3@@ , @@v5@@ ) || ! ehci_verify_qtd ( ( _DWORD * ) @@a1@@ , @@v4@@ ) ) { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; ehci_free_packet ( @@a1@@ ) ; } else { @@v2@@ = ehci_get_state ( * @@v3@@ , * ( ( _DWORD * ) @@v3@@ + Number ) ) ; ehci_state_executing ( @@v3@@ ) ; ehci_state_writeback ( @@v3@@ ) ; if ( ( @@v3@@ [ Number ] & Number ) == Number ) ehci_state_advqueue ( @@v3@@ ) ; ehci_set_state ( ( _DWORD * ) * @@v3@@ , * ( ( _DWORD * ) @@v3@@ + Number ) , @@v2@@ ) ; } return __readfsqword ( Number ) ^ @@v6@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v3", "t": {"T": 3, "t": "__int64"}, "location": "s104"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s108"}, {"n": "v5", "t": {"T": 2, "n": 14, "s": 4, "t": "unsigned int"}, "location": "s64"}, {"n": "v6", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}, {"n": "v4", "t": {"T": 2, "n": 8, "s": 4, "t": "unsigned int"}, "location": "s96"}]} {"name": "ehci_advance_state", "code": "unsigned __int64 __fastcall ehci_advance_state ( _DWORD * @@a1@@ , int @@a2@@ ) { int @@v3@@ ; __int64 @@v4@@ ; unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; @@v4@@ = Number L ; do { switch ( ( unsigned int ) ehci_get_state ( ( __int64 ) @@a1@@ , @@a2@@ ) ) { case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; if ( @@a2@@ ) @@a1@@ [ Number ] = Number ; @@v3@@ = ehci_state_executing ( ( _DWORD * * ) @@v4@@ ) ; break ; case Number : @@v3@@ = ehci_state_waitlisthead ( @@a1@@ , @@a2@@ ) ; break ; case Number : @@v3@@ = ehci_state_fetchentry ( @@a1@@ , @@a2@@ ) ; break ; case Number : @@v4@@ = ehci_state_fetchqh ( @@a1@@ , @@a2@@ ) ; if ( @@v4@@ ) { if ( @@a2@@ != * ( _DWORD * ) ( @@v4@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = Number ; } else { @@v3@@ = Number ; } break ; case Number : @@v3@@ = ehci_state_fetchitd ( @@a1@@ , @@a2@@ ) ; break ; case Number : @@v3@@ = ehci_state_fetchsitd ( @@a1@@ , @@a2@@ ) ; break ; case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_state_advqueue ( @@v4@@ ) ; break ; case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_state_fetchqtd ( ( _DWORD * * ) @@v4@@ ) ; break ; case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_state_execute ( ( _DWORD * * ) @@v4@@ ) ; if ( @@a2@@ ) @@a1@@ [ Number ] = Number ; break ; case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_state_writeback ( ( _DWORD * * ) @@v4@@ ) ; if ( ! @@a2@@ ) @@a1@@ [ Number ] = Number ; break ; case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_state_horizqh ( ( _DWORD * * ) @@v4@@ ) ; break ; default : fwrite ( String , Number , Number , stderr ) ; @@v3@@ = Number ; g_assertion_message_expr ( Number L , String , Number L , String , Number L ) ; break ; } if ( @@v3@@ < Number ) { fwrite ( String , Number , Number , stderr ) ; ehci_reset ( ( __int64 ) @@a1@@ ) ; @@v3@@ = Number ; } } while ( @@v3@@ ) ; return __readfsqword ( Number ) ^ @@v5@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_advance_async_state", "code": "unsigned __int64 __fastcall ehci_advance_async_state ( _DWORD * @@a1@@ ) { int @@v1@@ ; unsigned __int64 @@v3@@ ; @@v3@@ = __readfsqword ( Number ) ; @@v1@@ = ehci_get_state ( ( __int64 ) @@a1@@ , Number ) ; if ( @@v1@@ == Number ) { if ( ! ehci_async_enabled ( ( __int64 ) @@a1@@ ) ) return __readfsqword ( Number ) ^ @@v3@@ ; ehci_set_state ( @@a1@@ , Number , Number ) ; } else if ( @@v1@@ != Number ) { fprintf ( stderr , String , ( unsigned int ) @@a1@@ [ Number ] ) ; g_assertion_message_expr ( Number L , String , Number L , String , Number L ) ; return __readfsqword ( Number ) ^ @@v3@@ ; } if ( ! ehci_async_enabled ( ( __int64 ) @@a1@@ ) ) { ehci_queues_rip_all ( ( __int64 ) @@a1@@ , Number ) ; ehci_set_state ( @@a1@@ , Number , Number ) ; } else if ( ( @@a1@@ [ Number ] & Number ) == Number ) { if ( @@a1@@ [ Number ] ) { ehci_set_state ( @@a1@@ , Number , Number ) ; ehci_advance_state ( @@a1@@ , Number ) ; if ( ( @@a1@@ [ Number ] & Number ) != Number ) { ehci_queues_rip_unseen ( ( __int64 ) @@a1@@ , Number ) ; trace_usb_ehci_doorbell_ack ( ) ; @@a1@@ [ Number ] &= Number ; ehci_raise_irq ( ( __int64 ) @@a1@@ , Number ) ; } } } return __readfsqword ( Number ) ^ @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_advance_periodic_state", "code": "unsigned __int64 __fastcall ehci_advance_periodic_state ( _DWORD * @@a1@@ ) { int @@v1@@ ; int @@v3@@ ; int @@v4@@ ; unsigned int @@v5@@ ; unsigned __int64 @@v6@@ ; @@v6@@ = __readfsqword ( Number ) ; @@v4@@ = Number ; @@v1@@ = ehci_get_state ( ( __int64 ) @@a1@@ , Number ) ; if ( @@v1@@ == Number ) { if ( ( @@a1@@ [ Number ] & Number ) != Number || ! ehci_periodic_enabled ( ( __int64 ) @@a1@@ ) ) return __readfsqword ( Number ) ^ @@v6@@ ; ehci_set_state ( @@a1@@ , @@v4@@ , Number ) ; } else if ( @@v1@@ != Number ) { fprintf ( stderr , String , ( unsigned int ) @@a1@@ [ Number ] ) ; g_assertion_message_expr ( Number L , String , Number L , String , Number L ) ; return __readfsqword ( Number ) ^ @@v6@@ ; } if ( ( @@a1@@ [ Number ] & Number ) != Number || ehci_periodic_enabled ( ( __int64 ) @@a1@@ ) ) { @@v5@@ = @@a1@@ [ Number ] & Number ; if ( @@v5@@ ) { @@v5@@ |= ( @@a1@@ [ Number ] >> Number ) & Number ; if ( ( int ) get_dwords ( ( __int64 ) @@a1@@ , @@v5@@ , ( unsigned int * ) & @@v3@@ , Number ) >= Number ) { ehci_set_fetch_addr ( ( __int64 ) @@a1@@ , @@v4@@ , @@v3@@ ) ; ehci_set_state ( @@a1@@ , @@v4@@ , Number ) ; ehci_advance_state ( @@a1@@ , @@v4@@ ) ; ehci_queues_rip_unused ( ( __int64 ) @@a1@@ , @@v4@@ ) ; } } } else { ehci_queues_rip_all ( ( __int64 ) @@a1@@ , @@v4@@ ) ; ehci_set_state ( @@a1@@ , @@v4@@ , Number ) ; } return __readfsqword ( Number ) ^ @@v6@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v6", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}