{"name": "metric_value", "code": "__int64 __fastcall metric_value ( __int64 @@a1@@ , unsigned __int8 @@a2@@ ) { __int64 @@result@@ ; if ( * ( int * ) ( @@a1@@ + Number * ( @@a2@@ + Number L ) + Number ) >= Number ) return * ( unsigned int * ) ( @@a1@@ + Number * ( @@a2@@ + Number L ) + Number ) ; if ( @@a2@@ == Number ) { if ( * ( _DWORD * ) ( @@a1@@ + Number ) == Number ) @@result@@ = Number L ; else @@result@@ = Number L ; } else if ( * ( int * ) ( @@a1@@ + Number ) >= Number ) { @@result@@ = * ( unsigned int * ) ( @@a1@@ + Number ) ; } else { @@result@@ = Number L ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]}
{"name": "ospf_external_lsa_body_set", "code": "__int64 __fastcall ospf_external_lsa_body_set ( __int64 @@a1@@ , unsigned __int8 * @@a2@@ , __int64 @@a3@@ ) { int v3 ; int v4 ; uint32_t v5 ; unsigned int v6 ; unsigned int @@v9@@ ; unsigned int @@v10@@ ; uint32_t @@v11@@ ; int @@v12@@ ; int @@v13@@ ; unsigned __int8 * @@v14@@ ; @@v14@@ = @@a2@@ + Number ; masklen2ip ( @@a2@@ [ Number ] , & @@v10@@ ) ; stream_put_ipv4 ( @@a1@@ , @@v10@@ ) ; if ( ( unsigned int ) is_prefix_default ( @@a2@@ + Number ) ) v3 = Number ; else v3 = * @@a2@@ ; @@v13@@ = v3 ; if ( * ( ( _DWORD * ) @@a2@@ + Number ) == Number ) v4 = metric_type ( @@a3@@ , @@v13@@ ) ; else v4 = * ( ( _DWORD * ) @@a2@@ + Number ) ; @@v12@@ = v4 ; if ( * ( ( _DWORD * ) @@a2@@ + Number ) == Number ) v5 = metric_value ( @@a3@@ , @@v13@@ ) ; else v5 = * ( ( _DWORD * ) @@a2@@ + Number ) ; @@v11@@ = v5 ; if ( @@v12@@ == Number ) v6 = Number ; else v6 = Number ; stream_putc ( @@a1@@ , v6 ) ; stream_put_ospf_metric ( @@a1@@ , @@v11@@ ) ; @@v9@@ = ospf_external_lsa_nexthop_get ( @@a3@@ , * ( ( _DWORD * ) @@a2@@ + Number ) ) ; stream_put_ipv4 ( @@a1@@ , @@v9@@ ) ; return stream_putl ( @@a1@@ , Number L ) ; }", "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": 3, "t": "unsigned __int8"}, "location": "r64"}, {"n": "v13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v12", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v11", "t": {"T": 1, "n": "uint32_t", "s": 4}, "location": "s20"}, {"n": "v10", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s24"}, {"n": "v9", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s28"}, {"n": "v14", "t": {"T": 3, "t": "unsigned __int8"}, "location": "s8"}]}