{"name": "update_field_value", "code": "__int64 __fastcall update_field_value ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , char * @@a4@@ ) { unsigned int v4 ; __int64 v5 ; _DWORD * v6 ; int v7 ; int @@v9@@ ; int * @@v10@@ ; char * @@s@@ ; __int64 @@v12@@ ; __int64 @@v14@@ ; __int64 @@v15@@ ; @@v12@@ = @@a3@@ ; @@s@@ = @@a4@@ ; @@v14@@ = Number L ; if ( ! @@a4@@ ) @@s@@ = ( char * ) & unk_4FF0 ; @@v15@@ = find_head_of_field_group ( @@a1@@ , @@a3@@ ) ; if ( @@v15@@ ) @@v12@@ = @@v15@@ ; fz_var_imp ( & @@v14@@ ) ; if ( ( unsigned int ) fz_push_try ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) { @@v10@@ = * ( int * * ) ( @@a1@@ + Number ) ; @@v9@@ = * @@v10@@ ; @@v10@@ [ Number * @@v9@@ + Number ] = _sigsetjmp ( ( struct __jmp_buf_tag * ) & @@v10@@ [ Number * * @@v10@@ + Number ] , Number ) ; if ( ! @@v10@@ [ Number * @@v9@@ + Number ] ) { v4 = strlen ( @@s@@ ) ; @@v14@@ = pdf_new_string ( @@a1@@ , @@a2@@ , @@s@@ , v4 ) ; pdf_dict_put ( @@a1@@ , @@v12@@ , Number L , @@v14@@ ) ; } } if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) + Number ) <= Number ) { v5 = * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) ; ++ * ( _DWORD * ) ( v5 + Number ) ; pdf_drop_obj ( @@a1@@ , @@v14@@ ) ; } v6 = * ( _DWORD * * ) ( @@a1@@ + Number ) ; v7 = ( * v6 ) -- ; if ( ( int ) v6 [ Number * v7 + Number ] > Number ) fz_rethrow ( @@a1@@ ) ; return pdf_field_mark_dirty ( @@a1@@ , @@a2@@ , @@v12@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "char"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "s", "t": {"T": 3, "t": "char"}, "location": "s48"}, {"n": "v10", "t": {"T": 3, "t": "int"}, "location": "s56"}, {"n": "v9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s60"}, {"n": "v15", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}
{"name": "find_head_of_field_group", "code": "__int64 __fastcall find_head_of_field_group ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@v3@@ ; if ( ! @@a2@@ || pdf_dict_get ( @@a1@@ , @@a2@@ , Number L ) ) return @@a2@@ ; @@v3@@ = pdf_dict_get ( @@a1@@ , @@a2@@ , Number L ) ; return find_head_of_field_group ( @@a1@@ , @@v3@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "pdf_field_mark_dirty", "code": "__int64 __fastcall pdf_field_mark_dirty ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { __int64 v3 ; __int64 result ; int @@v6@@ ; __int64 @@v7@@ ; unsigned int @@i@@ ; @@v7@@ = pdf_dict_get ( @@a1@@ , @@a3@@ , Number L ) ; if ( ! @@v7@@ ) return pdf_dirty_obj ( @@a1@@ , @@a3@@ ) ; @@v6@@ = pdf_array_len ( @@a1@@ , @@v7@@ ) ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { result = @@i@@ ; if ( ( int ) @@i@@ >= @@v6@@ ) break ; v3 = pdf_array_get ( @@a1@@ , @@v7@@ , @@i@@ ) ; pdf_field_mark_dirty ( @@a1@@ , @@a2@@ , v3 ) ; } return result ; }", "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": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "recalculate", "code": "__int64 __fastcall recalculate ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 result ; __int64 v3 ; __int64 v4 ; __int64 v5 ; _DWORD * v6 ; int @@v7@@ ; int @@v8@@ ; int * @@v9@@ ; __int64 @@v10@@ [ Number ] ; __int64 @@v11@@ ; __int64 @@v12@@ ; int @@v13@@ ; __int64 @@v14@@ ; unsigned int @@i@@ ; result = * ( unsigned int * ) ( @@a2@@ + Number ) ; if ( ! ( _DWORD ) result ) { * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; if ( ( unsigned int ) fz_push_try ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) { @@v9@@ = * ( int * * ) ( @@a1@@ + Number ) ; @@v8@@ = * @@v9@@ ; @@v9@@ [ Number * @@v8@@ + Number ] = _sigsetjmp ( ( struct __jmp_buf_tag * ) & @@v9@@ [ Number * * @@v9@@ + Number ] , Number ) ; if ( ! @@v9@@ [ Number * @@v8@@ + Number ] ) { v3 = pdf_trailer ( @@a1@@ , @@a2@@ ) ; @@v14@@ = pdf_dict_getp ( @@a1@@ , v3 , String ) ; if ( @@v14@@ ) { if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { @@v13@@ = pdf_array_len ( @@a1@@ , @@v14@@ ) ; for ( @@i@@ = Number ; ( int ) @@i@@ < @@v13@@ ; ++ @@i@@ ) { @@v12@@ = pdf_array_get ( @@a1@@ , @@v14@@ , @@i@@ ) ; @@v11@@ = pdf_dict_getp ( @@a1@@ , @@v12@@ , String ) ; if ( @@v11@@ ) { @@v10@@ [ Number ] = @@v12@@ ; @@v10@@ [ Number ] = pdf_field_value ( @@a1@@ , @@a2@@ , @@v12@@ ) ; pdf_js_setup_event ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@v10@@ ) ; execute_action ( @@a1@@ , @@a2@@ , @@v12@@ , @@v11@@ ) ; v4 = pdf_js_get_event ( * ( _QWORD * ) ( @@a2@@ + Number ) ) ; update_field_value ( @@a1@@ , @@a2@@ , @@v12@@ , * ( char * * ) ( v4 + Number ) ) ; } } } } } } if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) + Number ) <= Number ) { v5 = * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) ; ++ * ( _DWORD * ) ( v5 + Number ) ; * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; } v6 = * ( _DWORD * * ) ( @@a1@@ + Number ) ; @@v7@@ = ( * v6 ) -- ; result = ( unsigned int ) v6 [ Number * @@v7@@ + Number ] ; if ( ( int ) result > Number ) result = fz_rethrow ( @@a1@@ ) ; } return result ; }", "source": [{"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v10", "t": {"T": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s64"}, {"n": "v9", "t": {"T": 3, "t": "int"}, "location": "s88"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s92"}]} {"name": "set_text_field_value", "code": "__int64 __fastcall set_text_field_value ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , char * @@a4@@ ) { __int64 @@v7@@ [ Number ] ; __int64 @@v8@@ ; @@v8@@ = pdf_dict_getp ( @@a1@@ , @@a3@@ , String ) ; if ( @@v8@@ && * ( _QWORD * ) ( @@a2@@ + Number ) ) { @@v7@@ [ Number ] = @@a3@@ ; @@v7@@ [ Number ] = ( __int64 ) @@a4@@ ; pdf_js_setup_event ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@v7@@ ) ; execute_action ( @@a1@@ , @@a2@@ , @@a3@@ , @@v8@@ ) ; if ( ! * ( _DWORD * ) ( pdf_js_get_event ( * ( _QWORD * ) ( @@a2@@ + Number ) ) + Number ) ) return Number L ; @@a4@@ = * ( char * * ) ( pdf_js_get_event ( * ( _QWORD * ) ( @@a2@@ + Number ) ) + Number ) ; } if ( pdf_field_dirties_document ( @@a1@@ , @@a2@@ , @@a3@@ ) ) * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; update_field_value ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "char"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v7", "t": {"T": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s32"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "set_checkbox_value", "code": "__int64 __fastcall set_checkbox_value ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , char * @@a4@@ ) { update_checkbox_selector ( @@a1@@ , @@a2@@ , @@a3@@ , ( __int64 ) @@a4@@ ) ; update_field_value ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "char"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "pdf_field_set_value", "code": "__int64 __fastcall pdf_field_set_value ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , char * @@a4@@ ) { int @@v4@@ ; unsigned int @@v8@@ ; @@v4@@ = pdf_field_type ( @@a1@@ , @@a2@@ , @@a3@@ ) ; if ( @@v4@@ > Number ) { if ( @@v4@@ != Number ) { LABEL_7 : update_field_value ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; @@v8@@ = Number ; goto LABEL_8 ; } @@v8@@ = set_text_field_value ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; } else { if ( @@v4@@ <= Number ) goto LABEL_7 ; @@v8@@ = set_checkbox_value ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; } LABEL_8 : recalculate ( @@a1@@ , @@a2@@ ) ; return @@v8@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "char"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v8", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]}