I have a sequence of splines which its being resampled with a fix number each one, this number represents how many instances each spline will be instancing and its is saved in an field coming from somewhere else of my nodetree (not relevant right now for my question).
Next, I'm using a another curve to divide my splines, this produces a new spline creating a incoherence between the number of splines (now there are four) and my field of integers with the resampling count for each spline, filled with 3 integers, this, as you can see in the images below, creates unwanted results as there is a missmatch between the number of splines and the number of integers.
So, how can I make GN distribute the points according to the new splines? So for the given example the splitted spline should instance one object for the first spline and two for the second spline, while the untouched splines should keep instancing 3 objects each one.
I'm providing a blend file with an example.
EDIT
From the comments let me share a simple sketch of what I'm looking for: