1 /* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */
4 .type _longjmp,@function
5 .type longjmp,@function
9 cmp $
1,%esi
/* CF = val ? 0 : 1 */
10 adc
%esi
,%eax
/* eax = val + !val */
11 mov
(%rdi
),%rbx
/* rdi is the jmp_buf, restore regs from it */
18 jmp
*56(%rdi
) /* goto saved address without altering rsp */