{"name": "rl_prep_terminal", "code": "int __fastcall rl_prep_terminal ( unsigned int @@a1@@ ) { int @@result@@ ; __int64 @@v2@@ ; __int64 @@v3@@ ; struct termios @@v4@@ ; int @@v5@@ ; @@result@@ = terminal_prepped ; if ( ! terminal_prepped ) { block_sigint ( ) ; @@v5@@ = fileno ( rl_instream ) ; if ( ( int ) get_tty_settings ( @@v5@@ , & @@v4@@ ) < Number ) { if ( * _errno_location ( ) == Number || * _errno_location ( ) == Number ) readline_echoing_p = Number ; return release_sigint ( ) ; } * ( struct termios * ) otio = @@v4@@ ; if ( rl_bind_stty_chars ) { if ( rl_editing_mode ) rl_tty_unset_default_bindings ( rl_keymap ) ; else rl_tty_unset_default_bindings ( & vi_insertion_keymap ) ; } save_tty_chars ( ( __int64 ) otio ) ; rl_readline_state |= Number ; if ( rl_bind_stty_chars ) { if ( rl_editing_mode ) rl_bind_tty_special_chars ( rl_keymap , ( unsigned int ) & @@v4@@ , rl_keymap , @@v4@@ . c_ospeed , @@v2@@ , @@v3@@ , * ( _QWORD * ) & @@v4@@ . c_iflag , * ( _QWORD * ) & @@v4@@ . c_cflag , * ( _QWORD * ) & @@v4@@ . c_line , * ( _QWORD * ) & @@v4@@ . c_cc [ Number ] , * ( _QWORD * ) & @@v4@@ . c_cc [ Number ] , * ( _QWORD * ) & @@v4@@ . c_cc [ Number ] , * ( _QWORD * ) & @@v4@@ . c_cc [ Number ] , @@v4@@ . c_ospeed ) ; else rl_bind_tty_special_chars ( ( unsigned int ) & vi_insertion_keymap , ( unsigned int ) & @@v4@@ , @@v4@@ . c_ospeed , * ( _DWORD * ) & @@v4@@ . c_cc [ Number ] , @@v2@@ , @@v3@@ , * ( _QWORD * ) & @@v4@@ . c_iflag , * ( _QWORD * ) & @@v4@@ . c_cflag , * ( _QWORD * ) & @@v4@@ . c_line , * ( _QWORD * ) & @@v4@@ . c_cc [ Number ] , * ( _QWORD * ) & @@v4@@ . c_cc [ Number ] , * ( _QWORD * ) & @@v4@@ . c_cc [ Number ] , * ( _QWORD * ) & @@v4@@ . c_cc [ Number ] , @@v4@@ . c_ospeed ) ; } prepare_terminal_settings ( @@a1@@ , ( __int64 ) & @@v4@@ , @@a1@@ , * ( unsigned int * ) & otio [ Number ] , @@v2@@ , @@v3@@ , * ( int * ) otio , * ( __int64 * ) & otio [ Number ] , * ( __int64 * ) & otio [ Number ] ) ; if ( ( int ) set_tty_settings ( @@v5@@ , & @@v4@@ ) < Number ) return release_sigint ( ) ; if ( rl_enable_keypad ) rl_control_keypad ( Number L ) ; fflush ( rl_outstream ) ; terminal_prepped = Number ; rl_readline_state |= Number ; @@result@@ = release_sigint ( ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "result", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v4", "t": {"T": 6, "n": "struct termios", "l": [{"T": 4, "n": "c_iflag", "t": "tcflag_t", "s": 4}, {"T": 4, "n": "c_oflag", "t": "tcflag_t", "s": 4}, {"T": 4, "n": "c_cflag", "t": "tcflag_t", "s": 4}, {"T": 4, "n": "c_lflag", "t": "tcflag_t", "s": 4}, {"T": 4, "n": "c_line", "t": "cc_t", "s": 1}, {"T": 4, "n": "c_cc", "t": "cc_t[32]", "s": 32}, {"T": 5, "s": 3}, {"T": 4, "n": "c_ispeed", "t": "speed_t", "s": 4}, {"T": 4, "n": "c_ospeed", "t": "speed_t", "s": 4}]}, "location": "s80"}]}