{"name": "sensors_changed", "code": "__int64 __fastcall sensors_changed ( void * * @@a1@@ ) { int @@v1@@ ; @@v1@@ = get_sensor_index ( @@a1@@ ) ; sensors_flags [ @@v1@@ ] |= Number ; return process_poll ( & sensors_process ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "void *"}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}]}
{"name": "pir_sensor_changed", "code": "__int64 __fastcall pir_sensor_changed ( int @@a1@@ ) { pir_value += @@a1@@ ; return sensors_changed ( & pir_sensor ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}]} {"name": "get_sensor_index", "code": "__int64 __fastcall get_sensor_index ( void * * @@a1@@ ) { unsigned int @@i@@ ; for ( @@i@@ = Number ; ( int ) @@i@@ < ( unsigned __int8 ) num_sensors ; ++ @@i@@ ) { if ( @@a1@@ == ( & sensors ) [ @@i@@ ] ) return @@i@@ ; } return @@i@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "void *"}, "location": "r56"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "process_poll", "code": "__int64 __fastcall process_poll ( __int64 @@a1@@ ) { __int64 @@result@@ ; if ( @@a1@@ ) { if ( * ( _BYTE * ) ( @@a1@@ + Number ) == Number || ( @@result@@ = * ( unsigned __int8 * ) ( @@a1@@ + Number ) , ( _BYTE ) @@result@@ == Number ) ) { @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; poll_requested = Number ; } } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]}