The cube holds the items on the left of the first frame. The scan tries the CubeMain rows from record 0 and the first row whose header tests and inputs all fit is the recipe.
Each input claims every cube item that fits it, not only its quantity; the count of claimed items must equal the quantity.
The draws are listed in the order the game makes them: first the game seed, then the new item's unit seed and item seed.
The cube's items and the game seed come from one recorded transmute; every value after them is computed by our model, whose check reproduces each value that game logged.