The variable "binstat" didn't make a lot of sense, it was a leftover from when the bincode struct was named something like "bincode state".
YFBKBUKBX3JB7OCB4D3ZKSLWTP6QWZ36HEE5GZROJE55RK33MZCAC
QLH63JBHSLUR4D7RQRPWJMKNPTTPZJPVB3YYAP46H74RDP5YNIXAC
VXQYIOBXHTYEB62XSIAZGRNNIKXMDZLE5ANBGA7E7V3HOBVEMVSAC
43NR5PEYZHA6YFVRX4ZAVYQZAXYBQDT7CHV6HGFFCIOCZ72XZCAQC
7WA2F6RSQBGJJE5MZGQGAYJOWYEKQUWVI2MTZ4AMICEEQFENXANQC
Q7TKZCJP2Z75EICZYKCEZDHKGERSOKZGMTSU3UXETBHTF663T66AC
JVU3TTT5T776LB2UNT5DCISJDWOITRSJPRG3CDTX4NDQEHC5VI3QC
WGGDK6VO56H2JP26KPSCQEGH5QETOPGWL6JVJVEKG6VK275FX2BAC
XTKRT6OQYN4LARQRDLI2KBSAJTOFZNT4AMBZ46CPUDZXD7IDYYWQC
U3JWO63YYQDCJX7CWXCS3N26CHY2TASADTCQIEDSJ7WC25GLZD5QC
ZKAOPMCHBGP7J7NQB233AQJQDX6TBD7REPLF3KN3EIKZK6TZZMBQC
FMYCPGKDAPOUFLQOCXXKZ6TR75HT3TNCG4X3GAJDM4ARWKNWOSWAC
WFA5BBRFVUHJ53MOPZ2WDXZ4CEHKA32LDYERSYLVETIZTZDW22GAC
JAGXXSR7DR5FG77VKBF62BW7Q3JMVHCLHF4VB2PSLIZF4RLE553QC
KEC3WLFNXGJHCEDFZYYXWMAGYGC56MTZSLITJ6GHEMYCWKGX4W3AC
55SITR556Q3VRFOZNNQWJQZYYSTOZU6HQ5XFGR5KXMA6PGQ56PTAC
TGT4VSMEWWTFYILTXVZWA5WHB2RCZZYNGZJ3UUKZ5OPD6JQD4G5QC
NEORNIZEGPZAVZV2J6TTCWPZAQM3N7MH7SMS3NDT4WKTXI34NSUAC
33ZXTRXRO7X7M2F5TM55CDE45RYVEYO5JGWULEJ337OHHQBO325QC
2YF4J5SJ2Z5EWPGJ4K57JGMRFAHIUL24ODELKRCXA4ILZDVS5LWQC
O7XAUFM6CCSFXSBTGOMVHRUQFJEWPO6YLNO52OT3AZ4GYN6JJONAC
2LYNPDBTIKRIG2MJSCNGFW3Y2CBWCQMYWGR4PUEVB3G3TCCPMCPQC
Y26WT3ZFN7KSVXOZ26B5Y2OR4M4VQYQLPMAHPC4O5VIT3ENBISXAC
RIWSVVASWLJQQTSVRHIIUPENOZWOMHQLZMTQVGJUS2ZUGDPSWWIQC
4RYULBDDDIVSJTIOTBBSQAWMSN6ZBZEFJ6UR7P6ECEXEXTGPMUOAC
QYRJIOYPM7SAB3OHMALL67K44U5HPBRQ2AFNWUKATPXM6BUYRKBQC
VKLGQREYOZDV46F672RFE5XJO3OEOP4EHTCWZYOJY24HVPQX3L6QC
LCEKN25G5GFBUWWQAR4REIGPOL6JYNDWLNCDJGZQKOWIDHGIRMZAC
NZNIG2ULNMS5Z3OWEKRVOPLFA6CWYNF47U7UMXNZFSX256F2ZZVAC
YG4DZB3AW3Z3LB5CFBZZ4ORJOLZFN3G4CA2YTAMSUOQX3USVNVEAC
2U7P5SFQG3AVALKMPJF4WMZE6PXIXXZYOMZ3RZKILBUJ4UMFXVIAC
IS5A7VT6TJ6ZXKY5LNUVT4BF4OV2Y3XCII4L4VI6XAKRKL42DJSQC
LVX6U4EKYXM6H32X5SZS4UBIM5PW4ND4F4QQOF5EQDX3DUHBYFGAC
off->version = bincode_getu64(&binstat);
off->hashed_len = bincode_getu64(&binstat);
off->unhashed_off = bincode_getu64(&binstat);
off->unhashed_len = bincode_getu64(&binstat);
off->contents_off = bincode_getu64(&binstat);
off->contents_len = bincode_getu64(&binstat);
off->total = bincode_getu64(&binstat);
off->version = bincode_getu64(&bc);
off->hashed_len = bincode_getu64(&bc);
off->unhashed_off = bincode_getu64(&bc);
off->unhashed_len = bincode_getu64(&bc);
off->contents_off = bincode_getu64(&bc);
off->contents_len = bincode_getu64(&bc);
off->total = bincode_getu64(&bc);
change_decode_position(binstat, &edge->from);
change_decode_vertex(binstat, &edge->to);
change_decode_introducedby(binstat, &edge->introducedby);
change_decode_position(bc, &edge->from);
change_decode_vertex(bc, &edge->to);
change_decode_introducedby(bc, &edge->introducedby);
change_decode_atom(binstat, &bhunk->replacement.change);
change_decode_atom(
binstat, &bhunk->replacement.replacement
);
change_decode_local(binstat, &bhunk->replacement.local);
change_decode_encoding(
binstat, &bhunk->replacement.encoding
);
change_decode_atom(bc, &bhunk->replacement.change);
change_decode_atom(bc, &bhunk->replacement.replacement);
change_decode_local(bc, &bhunk->replacement.local);
change_decode_encoding(bc, &bhunk->replacement.encoding);
change_decode_atom(binstat, &bhunk->fileadd.addname);
change_decode_atom(binstat, &bhunk->fileadd.addinode);
if (bincode_getu8(binstat))
change_decode_atom(
binstat, &bhunk->fileadd.contents
);
slen = bincode_getu64(binstat);
bhunk->fileadd.path = bincode_getstr(binstat, slen);
change_decode_encoding(
binstat, &bhunk->fileadd.encoding
);
change_decode_atom(bc, &bhunk->fileadd.addname);
change_decode_atom(bc, &bhunk->fileadd.addinode);
if (bincode_getu8(bc))
change_decode_atom(bc, &bhunk->fileadd.contents);
slen = bincode_getu64(bc);
bhunk->fileadd.path = bincode_getstr(bc, slen);
change_decode_encoding(bc, &bhunk->fileadd.encoding);
change_decode_atom(binstat, &bhunk->filemove.del);
change_decode_atom(binstat, &bhunk->filemove.add);
slen = bincode_getu64(binstat);
bhunk->filemove.path = bincode_getstr(binstat, slen);
change_decode_atom(bc, &bhunk->filemove.del);
change_decode_atom(bc, &bhunk->filemove.add);
slen = bincode_getu64(bc);
bhunk->filemove.path = bincode_getstr(bc, slen);
slen = bincode_getu64(binstat);
bhunk->filedel.path = bincode_getstr(binstat, slen);
change_decode_encoding(
binstat, &bhunk->filedel.encoding
);
slen = bincode_getu64(bc);
bhunk->filedel.path = bincode_getstr(bc, slen);
change_decode_encoding(bc, &bhunk->filedel.encoding);
slen = bincode_getu64(binstat);
bhunk->fileundel.path = bincode_getstr(binstat, slen);
change_decode_encoding(
binstat, &bhunk->fileundel.encoding
);
slen = bincode_getu64(bc);
bhunk->fileundel.path = bincode_getstr(bc, slen);
change_decode_encoding(bc, &bhunk->fileundel.encoding);
change_decode_atom(
binstat, &bhunk->unsolvenameconflict.name
);
slen = bincode_getu64(binstat);
change_decode_atom(bc, &bhunk->unsolvenameconflict.name);
slen = bincode_getu64(bc);
if (bincode_getu8(&binstat)) {
len = bincode_getu64(&binstat);
hashed->header.description = bincode_getstr(&binstat, len);
if (bincode_getu8(&bc)) {
len = bincode_getu64(&bc);
hashed->header.description = bincode_getstr(&bc, len);