{"name": "tx_fifo_push", "code": "unsigned __int64 __fastcall tx_fifo_push ( __int64 @@a1@@ , unsigned int @@a2@@ ) { int v2 ; unsigned int v3 ; int v4 ; unsigned int @@v7@@ ; int v8 ; int v9 ; int v10 ; unsigned __int64 @@v11@@ ; @@v7@@ = @@a2@@ ; @@v11@@ = __readfsqword ( Number ) ; if ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) == * ( _DWORD * ) ( @@a1@@ + Number ) ) { v2 = * ( _DWORD * ) ( @@a1@@ + Number ) ; BYTE1 ( v2 ) |= Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = v2 ; } else { v3 = * * ( _DWORD * * ) ( @@a1@@ + Number ) ; if ( v3 == Number ) { if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) <= Number ) { if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) <= Number && * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) { -- * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; } else { v10 = Number ; while ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) { @@v7@@ >>= Number ; -- v10 ; -- * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; } while ( v10 -- ) { * ( _BYTE * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + ( int ) ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ++ + Number L ) = @@v7@@ ; @@v7@@ >>= Number ; -- * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; } ++ * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; } if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) <= Number && ! * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) { if ( ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) & Number ) != Number ) do_tx_packet ( @@a1@@ ) ; if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) < Number ) * ( _DWORD * ) ( @@a1@@ + Number ) |= Number ; * * ( _DWORD * * ) ( @@a1@@ + Number ) = Number ; } } else { * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) -= Number ; } } else if ( v3 <= Number ) { if ( v3 ) { if ( ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) & Number ) != Number ) { * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = @@a2@@ ; ++ * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) & Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = HIWORD ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) & Number ; v8 = ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) + * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) + Number ) >> Number ; v4 = ( ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) + * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) + Number ) >> Number ) & Number ; if ( v4 == Number ) { v9 = - v8 & Number ; } else if ( v4 == Number ) { v9 = - v8 & Number ; } else { v9 = Number ; } * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = v9 ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = Number ; } * * ( _DWORD * * ) ( @@a1@@ + Number ) = Number ; } else { * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = @@a2@@ & Number ; ++ * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; * * ( _DWORD * * ) ( @@a1@@ + Number ) = Number ; } } } return __readfsqword ( Number ) ^ @@v11@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v7", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s28"}, {"n": "v11", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "do_tx_packet", "code": "unsigned __int64 __fastcall do_tx_packet ( __int64 @@a1@@ ) { int v1 ; int v2 ; unsigned __int64 @@v4@@ ; @@v4@@ = __readfsqword ( Number ) ; if ( ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) != Number ) lan9118_receive ( * ( _QWORD * ) ( @@a1@@ + Number ) , ( _BYTE * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) , * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ; else qemu_send_packet ( * ( _QWORD * ) ( @@a1@@ + Number ) , * ( _QWORD * ) ( @@a1@@ + Number ) + Number L , * ( unsigned int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = Number ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) != Number ) { v1 = * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; LOWORD ( v1 ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number * ( ( ( ( unsigned __int16 ) * ( _DWORD * ) ( @@a1@@ + Number ) + ( unsigned __int16 ) ( * ( _DWORD * ) ( @@a1@@ + Number ) ) ++ ) & Number ) + Number L ) ) = v1 ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) == Number ) { v2 = * ( _DWORD * ) ( @@a1@@ + Number ) ; BYTE1 ( v2 ) |= Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = v2 ; } } return __readfsqword ( Number ) ^ @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v4", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "lan9118_writel", "code": "unsigned __int64 __fastcall lan9118_writel ( __int64 @@a1@@ , unsigned __int8 @@a2@@ , signed int @@a3@@ ) { unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; if ( @@a2@@ <= Number || @@a2@@ > Number ) { switch ( @@a2@@ ) { case Number : * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ & Number | * ( _DWORD * ) ( @@a1@@ + Number ) & Number ; break ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) &= ~ @@a3@@ ; break ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ & Number ; * ( _DWORD * ) ( @@a1@@ + Number ) |= @@a3@@ & Number ; break ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; break ; case Number : if ( ( @@a3@@ & Number ) != Number ) { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) ; * ( _DWORD * ) ( @@a1@@ + Number * ( * ( int * ) ( @@a1@@ + Number ) + Number L ) ) = Number ; } * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ & Number ; break ; case Number : if ( ( @@a3@@ & Number ) != Number ) * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; if ( ( @@a3@@ & Number ) != Number ) { * * ( _DWORD * * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = Number ; } * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ & Number ; break ; case Number : if ( ( @@a3@@ & Number ) != Number ) lan9118_reset ( @@a1@@ ) ; else * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ & Number ; break ; case Number : if ( @@a3@@ < Number ) { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; if ( ! * ( _DWORD * ) ( @@a1@@ + Number ) ) { rx_fifo_pop ( ( _DWORD * ) @@a1@@ ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; } * ( _DWORD * ) ( @@a1@@ + Number ) += * ( _DWORD * ) ( @@a1@@ + Number ) ; if ( * ( _DWORD * ) ( @@a1@@ + Number ) >= * ( _DWORD * ) ( @@a1@@ + Number ) ) * ( _DWORD * ) ( @@a1@@ + Number ) -= * ( _DWORD * ) ( @@a1@@ + Number ) ; } break ; case Number : if ( ( @@a3@@ & Number ) != Number ) phy_reset ( ( _DWORD * ) @@a1@@ ) ; * ( _DWORD * ) ( @@a1@@ + Number ) &= Number ; * ( _DWORD * ) ( @@a1@@ + Number ) |= @@a3@@ & Number ; break ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ & Number ; break ; case Number : if ( ( ( @@a3@@ ^ * ( _DWORD * ) ( @@a1@@ + Number ) ) & Number ) != Number ) { if ( ( @@a3@@ & Number ) != Number ) { ptimer_set_count ( * ( _QWORD * ) ( @@a1@@ + Number ) , ( unsigned __int16 ) @@a3@@ ) ; ptimer_run ( * ( _QWORD * ) ( @@a1@@ + Number ) , Number L ) ; } else { ptimer_stop ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; ptimer_set_count ( * ( _QWORD * ) ( @@a1@@ + Number ) , Number ) ; } } * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ & Number ; break ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; break ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ & Number ; if ( @@a3@@ < Number ) { if ( ( @@a3@@ & Number ) != Number ) * ( _DWORD * ) ( @@a1@@ + Number ) = do_mac_read ( @@a1@@ , @@a3@@ & Number ) ; else do_mac_write ( @@a1@@ , @@a3@@ & Number , * ( _DWORD * ) ( @@a1@@ + Number ) ) ; } break ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; break ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ & Number ; break ; case Number : lan9118_eeprom_cmd ( ( _DWORD * ) @@a1@@ , ( ( unsigned int ) @@a3@@ >> Number ) & Number , ( unsigned __int8 ) @@a3@@ ) ; break ; case Number : * ( _DWORD * ) ( @@a1@@ + Number ) = ( unsigned __int8 ) @@a3@@ ; break ; default : hw_error ( String , @@a2@@ , ( unsigned int ) @@a3@@ ) ; break ; } lan9118_update ( @@a1@@ ) ; } else { tx_fifo_push ( @@a1@@ , @@a3@@ ) ; } return __readfsqword ( Number ) ^ @@v5@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "signed int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}