I have an AIS antenna receiving AIVDM sentences since 1 year ago.
Now I'm starting decoding the sentences using https://github.com/bcl/aisparser and found that type 5 messages has two aivdm sentences that not always come consecutively and usually loss (at least in my case) the second sentence, making the decodification quite more complicated.
I've tried to interchange second part sentences to see what happens and if its really important.
For example, if you try these sentences in https://www.maritec.co.za/tools/aisvdmvdodecoding/:
!AIVDM,2,1,0,A,58wt8Ui`g??r21`7S=:22058<v05Htp000000015>8OA;0sk,0*7B
!AIVDM,2,2,0,A,eQ8823mDm3kP00000000000,2*5D
!AIVDM,2,1,6,A,58wt8Ui`g??r21`7S=:22058<v05Htp000000015>8OA;0sk,0*7B
!AIVDM,2,2,6,A,:062paRLOaD,2*79
you'll notice that the only change is that the second pair (the "wrong" one with an "adapted" second part) has a wrong 'destination' so, it really matters to take all the decoding job if you are not interested in the 'destination' field?
All the best