A related article discussing Gustedt’s first defer implementation, which also looks at the generated assembly:
https://oshub.org/projects/retros-32/posts/defer-resource-cl...