{"name": "ehci_execute_complete", "code": "unsigned __int64 __fastcall ehci_execute_complete ( __int64 @@a1@@ ) { int @@v1@@ ; int v3 ; int v4 ; _DWORD * @@v5@@ ; unsigned __int64 @@v6@@ ; @@v6@@ = __readfsqword ( Number ) ; @@v5@@ = * ( _DWORD * * ) ( @@a1@@ + Number ) ; if ( ! @@v5@@ ) _assert_fail ( String , String , Number , String ) ; if ( @@v5@@ [ Number ] != * ( _DWORD * ) ( @@a1@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; if ( @@v5@@ [ Number ] != Number && @@v5@@ [ Number ] != Number ) _assert_fail ( String , String , Number , String ) ; switch ( @@v5@@ [ Number ] ) { case Number : case Number : * ( _DWORD * ) ( @@a1@@ + Number ) |= Number ; * ( _DWORD * ) ( @@a1@@ + Number ) &= Number ; ehci_raise_irq ( * ( _QWORD * ) @@a1@@ , Number ) ; goto LABEL_14 ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) |= Number ; ehci_raise_irq ( * ( _QWORD * ) @@a1@@ , Number ) ; goto LABEL_14 ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) |= Number ; ehci_raise_irq ( * ( _QWORD * ) @@a1@@ , Number ) ; goto LABEL_14 ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) &= Number ; return __readfsqword ( Number ) ^ @@v6@@ ; case Number : goto LABEL_14 ; default : fprintf ( stderr , String , ( unsigned int ) @@v5@@ [ Number ] ) ; g_assertion_message_expr ( Number L , String , Number L , String , Number L ) ; LABEL_14 : v3 = HIWORD ( * ( _DWORD * ) ( @@a1@@ + Number ) ) & Number ; if ( v3 && @@v5@@ [ Number ] == Number ) { v4 = v3 - @@v5@@ [ Number ] ; if ( v4 ) { ehci_raise_irq ( * ( _QWORD * ) @@a1@@ , Number ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) * ( _BYTE * ) ( * ( _QWORD * ) @@a1@@ + Number L ) = Number ; } } else { v4 = Number ; } * ( _DWORD * ) ( @@a1@@ + Number ) = ( v4 << Number ) & Number | * ( _DWORD * ) ( @@a1@@ + Number ) & Number ; ehci_finish_transfer ( @@a1@@ , @@v5@@ [ Number ] ) ; usb_packet_unmap ( @@v5@@ + Number , @@v5@@ + Number ) ; qemu_sglist_destroy ( @@v5@@ + Number ) ; @@v5@@ [ Number ] = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) ^= Number ; @@v1@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; LOBYTE ( @@v1@@ ) = @@v1@@ & Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v1@@ ; if ( ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) != Number ) { ehci_raise_irq ( * ( _QWORD * ) @@a1@@ , Number ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) ) * ( _BYTE * ) ( * ( _QWORD * ) @@a1@@ + Number L ) = Number ; } return __readfsqword ( Number ) ^ @@v6@@ ; } }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v5", "t": {"T": 3, "t": "_DWORD"}, "location": "s16"}, {"n": "v6", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "ehci_raise_irq", "code": "unsigned __int64 __fastcall ehci_raise_irq ( __int64 @@a1@@ , int @@a2@@ ) { unsigned __int64 @@v3@@ ; @@v3@@ = __readfsqword ( Number ) ; if ( ( @@a2@@ & Number ) != Number ) { * ( _DWORD * ) ( @@a1@@ + Number ) |= @@a2@@ ; ehci_update_irq ( @@a1@@ ) ; } else { * ( _DWORD * ) ( @@a1@@ + Number ) |= @@a2@@ ; } return __readfsqword ( Number ) ^ @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_finish_transfer", "code": "unsigned __int64 __fastcall ehci_finish_transfer ( __int64 @@a1@@ , int @@a2@@ ) { unsigned int @@v3@@ ; unsigned __int64 @@v4@@ ; @@v4@@ = __readfsqword ( Number ) ; if ( @@a2@@ > Number ) { @@v3@@ = @@a2@@ + ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = ( ( ( unsigned __int16 ) ( @@v3@@ >> Number ) + ( ( * ( _DWORD * ) ( @@a1@@ + Number ) >> Number ) & Number ) ) << Number ) & Number | * ( _DWORD * ) ( @@a1@@ + Number ) & Number ; * ( _DWORD * ) ( @@a1@@ + Number ) &= Number ; * ( _DWORD * ) ( @@a1@@ + Number ) |= @@v3@@ & Number ; } return __readfsqword ( Number ) ^ @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s16"}, {"n": "v4", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_execute", "code": "__int64 __fastcall ehci_execute ( _QWORD * @@a1@@ , __int64 @@a2@@ ) { bool @@v3@@ ; __int64 @@v4@@ ; if ( * ( ( _DWORD * ) @@a1@@ + Number ) && * ( ( _DWORD * ) @@a1@@ + Number ) != Number ) _assert_fail ( String , String , Number , String ) ; if ( ( @@a1@@ [ Number ] & Number ) == Number ) { fwrite ( String , Number , Number , stderr ) ; return Number ; } if ( ( HIWORD ( * ( ( _DWORD * ) @@a1@@ + Number ) ) & Number ) > Number ) { ehci_trace_guest_bug ( * ( _QWORD * ) * @@a1@@ , String ) ; return Number ; } if ( ! ehci_verify_pid ( * @@a1@@ , ( __int64 ) ( @@a1@@ + Number ) ) ) ehci_queue_stopped ( * @@a1@@ ) ; * ( ( _DWORD * ) @@a1@@ + Number ) = ehci_get_pid ( ( __int64 ) ( @@a1@@ + Number ) ) ; * ( _DWORD * ) ( * @@a1@@ + Number L ) = * ( ( _DWORD * ) @@a1@@ + Number ) ; @@v4@@ = usb_ep_get ( * ( _QWORD * ) ( * @@a1@@ + Number L ) , * ( ( unsigned int * ) @@a1@@ + Number ) , ( * ( _DWORD * ) ( * @@a1@@ + Number L ) >> Number ) & Number ) ; if ( ! * ( ( _DWORD * ) @@a1@@ + Number ) ) { if ( ( unsigned int ) ehci_init_transfer ( @@a1@@ ) ) return Number ; @@v3@@ = * ( ( _DWORD * ) @@a1@@ + Number ) == Number && ( * ( ( _DWORD * ) @@a1@@ + Number ) & Number ) == Number ; usb_packet_setup ( @@a1@@ + Number , * ( ( unsigned int * ) @@a1@@ + Number ) , @@v4@@ , Number L , * ( ( unsigned int * ) @@a1@@ + Number ) , @@v3@@ , ( @@a1@@ [ Number ] & Number ) != Number ) ; usb_packet_map ( @@a1@@ + Number , @@a1@@ + Number ) ; * ( ( _DWORD * ) @@a1@@ + Number ) = Number ; } trace_usb_ehci_packet_action ( * @@a1@@ , @@a1@@ , @@a2@@ ) ; usb_handle_packet ( * ( _QWORD * ) ( * @@a1@@ + Number L ) , @@a1@@ + Number ) ; if ( * ( ( int * ) @@a1@@ + Number ) <= Number ) return Number L ; fwrite ( String , Number , Number , stderr ) ; return Number ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "bool", "s": 1}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}]} {"name": "ehci_state_executing", "code": "__int64 __fastcall ehci_state_executing ( _DWORD * * @@a1@@ ) { _DWORD * @@v2@@ ; @@v2@@ = @@a1@@ [ Number ] ; if ( ! @@v2@@ ) _assert_fail ( String , String , Number , String ) ; if ( @@v2@@ [ Number ] != * ( ( _DWORD * ) @@a1@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; ehci_execute_complete ( ( __int64 ) @@a1@@ ) ; if ( ! * ( ( _DWORD * ) @@a1@@ + Number ) && * ( ( int * ) @@a1@@ + Number ) > Number ) -- * ( ( _DWORD * ) @@a1@@ + Number ) ; if ( @@v2@@ [ Number ] == Number ) ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; else ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; ehci_flush_qh ( ( __int64 ) @@a1@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD *"}, "location": "r56"}, {"n": "v2", "t": {"T": 3, "t": "_DWORD"}, "location": "s16"}]}