decomp(md5): improve ProcessBlock with sequential word consumption #1054
Reference in New Issue
Block a user
Delete Branch "agent/bittle/md5-cursor-review"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Partial reconstruction
The first 16 MD5 steps consume the context's block sequentially: two endian loads, then advance the cursor. Express that real pointer contract in rotateNextSum and use it only in the first round. The indexed remaining rounds retain rotateSum. This small helper distinction preserves the existing unsigned rotation expression; no extra state, arbitrary ordering hint or register forcing.
This archived natural form was previously discarded for helper duplication despite a safe partial gain; it is now reviewed under the decompiled-first priority. It remains nonexact and unlinked.
Independent verification
Rebased on 404a8675f1285007154a5aef7bbd755a691e8739; tested tree
63f3dd8f5a.Detailed scope and evidence: tools/decomp-assist/allhands-md5-cursor.attempts.md. No linking flags, headers or compiler settings changed.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.