I'd suggest you take the broken pieces off, and go visit your nearest stainless steel fabricator and ask them to stainless weld the broken parts back together. Alternatively they may be able to fabricate what appears to be a simple hook device that allows the top of the ladder to be hooked in to brackets attached to the bulkhead.
Good luck.