Callee-saved registers
Registers a function promises to hand back untouched — as opposed to caller-saved ones, which anybody may clobber.
A calling convention splits the register file into two camps. The callee may freely trash the caller-saved registers ("volatile" in Microsoft's terminology), so a caller that wants a value to survive a call has to stash it somewhere. The callee-saved ones ("non-volatile") must be restored before returning, which in practice means the prologue pushes them and the epilogue pops them back.
In the System V x86-64 ABI the callee-saved set is rbx, rbp and r12–r15; Windows adds rdi, rsi and xmm6–xmm15. The split is a trade-off. Lots of callee-saved registers make long-lived values cheap across calls, but force even tiny functions to save whatever they touch. Leaf functions therefore stick to the free camp where they can, and shrink-wrapping moves the saving to where it is actually needed.