Correction. The rim is a doubled 2x10, the joists are 2x10s, 16 o.c.
What I see that may not show well in pics, are the rim is bowing down in the middle and splaying out.
I'm a little reluctant to put pressure trying to shore it up for fear the remaining structure comes more loose or fails.
My plan is to build support first on the opposite side that has bowed down, using a 14 foot 4x4 under the joists, supported by 3, 4x4s, one at each end and one in the middle, with a 2x4bottom plate laid on the black top aisle floor. Then build the same on the other end where the joists tore loose, jacking the 4x4 up with a barn jack. Maybe not jack them all up level, but get the middle 4 or so joists supported flat by the 4x4. Then support the 4x4 temporary beam with 4x4s .
Then add cross bracing. Then go up in the loft and take some or all the hay out, until permanent repairs can be done.