Hi! I know I'm quite a bit late, but I investigated the save format on WiiU and I saw your drive explaining the format. I took a look in Switch's format to check everything and did this, hope it helps:
[Example 1-1 1-2 1-3]
00 ff ff ff ff ff ff ff
ff 00 00 00 00 00 00 00
00 00 00 00{4b 00 01 00 (Unlocked and Cleared with Mario & Toad = 01+02+08+40 = 4B)
03 00 00 00 00 00 80 3f (Top flagpole with Toad)
b2 9d 00 00 35 00 00 00
07 00 00 00}00 00 00 00 (1st, 2nd, 3rd green stars = 01+02+04 = 07)
00 00 00 00{5b 00 01 00 (Unlocked and Cleared with Mario, Luigi & Toad = 01+02+08+10+40 = 4B)
03 00 00 00 00 00 80 3f (Top flagpole with Toad)
54 5a 01 00 3d 00 00 00 (Score=88660, Time=61)
07 00 00 00}00 00 00 00
00 00 00 00{43 00 01 00 (Unlocked and Cleared with Toad = 01+02+40 = 43)
03 00 00 00 d5 e6 f0 3c (Bottom flagpole with Toad) (the exact value depends on player's posision andhitbox)
42 77 00 00 71 00 00 00
00 00 00 00}00 00 00 00 (no green stars)
00 00 00 00 01 00 00 00
00 00 00 00 00 00 00 00
[Format]
00 00 00 00 QQ 00 0X 00
FF 00 00 00 PP PP PP PP
SS SS SS SS TT TT TT TT
RR RR RR RR
QQ = State 0X = Stamp (Unlck+=01; Clear+=02; Bowsr+=04; M+=08; L+=10; P+=20; T+=40; E+=80)
FF = FlagIcon PP = Position (M=00; L=01; P=02; T=03; E=04) (golden top flag = 00 00 80 3f)
SS = Score TT = Time (little-endian)
RR = Stars (1st+=01, 2nd+=02, 3rd+=04, 4th+=08, 5th+=10, 6th+=20, etc.)
Bowsr] = required stars to unlock
M]ario
L]uigi
P]each
T]oad
E]stela (Rosalina)
So basically the level state and number of stars is a list in which each active element adds a number (next power of two). In decimal numbers:
Decimal sumands = [1,2,4,8,16,32,64,128,256,512,1024,etc.]
Level state = [unlock,cleared,bowserstatue,mario,luigi,peach,toad,estela]
Green stars = [1st,2nd,3rd,4th,5th,6th,7th,etc.]
Hope it helps to improve your format explanison on your drive or your save editor, DNA-Trainer.