{"name": "wpm_encode_apdu", "code": "__int64 __fastcall wpm_encode_apdu ( _BYTE * @@a1@@ , __int64 @@a2@@ , char @@a3@@ , __int64 @@a4@@ ) { char @@v6@@ [ Number ] ; __int64 @@v7@@ ; __int64 @@v8@@ ; int @@v9@@ ; char @@v10@@ ; char @@src@@ [ Number ] ; char @@v12@@ [ Number ] ; __int64 @@i@@ ; unsigned int @@v14@@ ; @@v14@@ = Number ; * ( _DWORD * ) @@v12@@ = Number ; if ( @@a1@@ ) { * ( _DWORD * ) @@v12@@ = wpm_encode_apdu_init ( @@a1@@ , @@a3@@ ) ; @@v14@@ += * ( _DWORD * ) @@v12@@ ; for ( @@i@@ = @@a4@@ ; @@i@@ ; @@i@@ = * ( _QWORD * ) ( @@i@@ + Number ) ) { * ( _DWORD * ) @@v12@@ = wpm_encode_apdu_object_begin ( ( __int64 ) & @@a1@@ [ @@v14@@ ] , * ( _DWORD * ) @@i@@ , * ( _DWORD * ) ( @@i@@ + Number ) ) ; @@v14@@ += * ( _DWORD * ) @@v12@@ ; for ( * ( _QWORD * ) & @@v12@@ [ Number ] = * ( _QWORD * ) ( @@i@@ + Number ) ; * ( _QWORD * ) & @@v12@@ [ Number ] ; * ( _QWORD * ) & @@v12@@ [ Number ] = * ( _QWORD * ) ( * ( _QWORD * ) & @@v12@@ [ Number ] + Number L ) ) { @@v7@@ = * * ( _QWORD * * ) & @@v12@@ [ Number ] ; @@v10@@ = * ( _BYTE * ) ( * ( _QWORD * ) & @@v12@@ [ Number ] + Number L ) ; @@v9@@ = bacapp_encode_data ( @@src@@ , * ( _QWORD * ) & @@v12@@ [ Number ] + Number L ) ; memcpy ( & @@v8@@ , @@src@@ , @@v9@@ ) ; * ( _DWORD * ) @@v12@@ = wpm_encode_apdu_object_property ( ( __int64 ) & @@a1@@ [ @@v14@@ ] , ( __int64 ) @@v6@@ ) ; @@v14@@ += * ( _DWORD * ) @@v12@@ ; } * ( _QWORD * ) @@v12@@ = ( unsigned int ) wpm_encode_apdu_object_end ( ( __int64 ) & @@a1@@ [ @@v14@@ ] ) ; @@v14@@ += * ( _DWORD * ) @@v12@@ ; } } return @@v14@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "char", "s": 1}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "_BYTE"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "src", "t": {"T": 2, "n": 1476, "s": 1, "t": "char"}, "location": "s1504"}, {"n": "v10", "t": {"T": 1, "n": "char", "s": 1}, "location": "s1528"}, {"n": "v9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s1532"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v12", "t": {"T": 2, "n": 12, "s": 1, "t": "char"}, "location": "s28"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s3008"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s3016"}, {"n": "v6", "t": {"T": 2, "n": 8, "s": 1, "t": "char"}, "location": "s3024"}, {"n": "v14", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]}