Blob


1 .globl _setlabel
2 .type _setlabel,@function
4 _setlabel:
5 movl 4(%esp), %eax
6 movl 0(%esp), %edx
7 movl %edx, 0(%eax)
8 movl %ebx, 4(%eax)
9 movl %esp, 8(%eax)
10 movl %ebp, 12(%eax)
11 movl %esi, 16(%eax)
12 movl %edi, 20(%eax)
13 xorl %eax, %eax
14 ret
16 .globl _gotolabel
17 .type _gotolabel,@function
19 _gotolabel:
20 movl 4(%esp), %edx
21 movl 0(%edx), %ecx
22 movl 4(%edx), %ebx
23 movl 8(%edx), %esp
24 movl 12(%edx), %ebp
25 movl 16(%edx), %esi
26 movl 20(%edx), %edi
27 xorl %eax, %eax
28 incl %eax
29 movl %ecx, 0(%esp)
30 ret
33 .globl _xinc
34 _xinc:
35 movl 4(%esp), %eax
36 lock incl 0(%eax)
37 ret
39 .globl _xdec
40 _xdec:
41 movl 4(%esp), %eax
42 lock decl 0(%eax)
43 jz iszero
44 movl %eax, 1
45 ret
46 iszero:
47 movl %eax, 0
48 ret