File: vacall-mipsel-macro.S

package info (click to toggle)
ffcall 2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,808 kB
  • sloc: asm: 43,409; ansic: 23,224; sh: 5,383; makefile: 1,517; cpp: 2
file content (286 lines) | stat: -rw-r--r-- 3,670 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
#include "asm-mips.h"
	.file	1 "vacall-mips.c"
	.nan	legacy
	.module	fp=xx
	.module	nooddspreg
	.text
	.align	2
	.globl	vacall_receiver
	.set	nomips16
	.set	nomicromips
	.ent	vacall_receiver
	DECLARE_FUNCTION(vacall_receiver)
vacall_receiver:
	.frame	$fp,104,$31		
	.mask	0xc0000000,-4
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$25
	.set	reorder
	addiu	$sp,$sp,-104
	sw	$fp,96($sp)
	move	$fp,$sp
	sw	$31,100($sp)
	sw	$5,108($fp)
	addiu	$5,$fp,104
	sw	$4,104($fp)
	addiu	$4,$fp,24
	sw	$5,40($fp)
	addiu	$5,$fp,120
	sdc1	$f12,80($fp)
	sw	$5,56($fp)
	la	$5,vacall_function
	sdc1	$f14,88($fp)
	.cprestore	16
	sw	$6,112($fp)
	sw	$7,116($fp)
	sw	$0,24($fp)
	sw	$0,44($fp)
	sw	$0,48($fp)
	sw	$0,60($fp)
	sw	$0,64($fp)
	lw	$25,0($5)
	swc1	$f12,68($fp)
	swc1	$f14,72($fp)
	jal	$25
	lw	$4,48($fp)
	.set	noreorder
	.set	nomacro
	beq	$4,$0,$L1
	li	$5,1			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L23
	li	$5,2			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L23
	li	$5,3			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L29
	li	$5,4			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L30
	li	$5,5			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L31
	li	$5,6			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L27
	li	$5,7			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L27
	li	$5,8			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L27
	li	$5,9			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L27
	addiu	$5,$4,-10
	.set	macro
	.set	reorder

	sltu	$5,$5,2
	.set	noreorder
	.set	nomacro
	bne	$5,$0,$L32
	li	$5,12			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L33
	li	$5,13			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L34
	li	$5,14			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L27
	li	$5,15			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	bne	$4,$5,$L1
	lw	$4,24($fp)
	.set	macro
	.set	reorder

	andi	$4,$4,0x2
	.set	noreorder
	.set	nomacro
	beq	$4,$0,$L16
	lw	$4,52($fp)
	.set	macro
	.set	reorder

	li	$5,1			
	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L35
	li	$5,2			
	.set	macro
	.set	reorder

	.set	noreorder
	.set	nomacro
	beq	$4,$5,$L36
	li	$5,4			
	.set	macro
	.set	reorder

	bne	$4,$5,$L1
	lw	$2,44($fp)
	lw	$2,0($2)
$L1:
	move	$sp,$fp
	lw	$31,100($fp)
	lw	$fp,96($sp)
	.set	noreorder
	.set	nomacro
	j	$31
	addiu	$sp,$sp,104
	.set	macro
	.set	reorder

$L23:
	move	$sp,$fp
	lb	$2,32($fp)
	lw	$31,100($sp)
	lw	$fp,96($sp)
	.set	noreorder
	.set	nomacro
	j	$31
	addiu	$sp,$sp,104
	.set	macro
	.set	reorder

$L29:
	.set	noreorder
	.set	nomacro
	b	$L1
	lbu	$2,32($fp)
	.set	macro
	.set	reorder

$L27:
	.set	noreorder
	.set	nomacro
	b	$L1
	lw	$2,32($fp)
	.set	macro
	.set	reorder

$L30:
	.set	noreorder
	.set	nomacro
	b	$L1
	lh	$2,32($fp)
	.set	macro
	.set	reorder

$L31:
	.set	noreorder
	.set	nomacro
	b	$L1
	lhu	$2,32($fp)
	.set	macro
	.set	reorder

$L32:
	lw	$2,32($fp)
	.set	noreorder
	.set	nomacro
	b	$L1
	lw	$3,36($fp)
	.set	macro
	.set	reorder

$L33:
	.set	noreorder
	.set	nomacro
	b	$L1
	lwc1	$f0,32($fp)
	.set	macro
	.set	reorder

$L34:
	.set	noreorder
	.set	nomacro
	b	$L1
	ldc1	$f0,32($fp)
	.set	macro
	.set	reorder

$L16:
	.set	noreorder
	.set	nomacro
	b	$L1
	lw	$2,44($fp)
	.set	macro
	.set	reorder

$L35:
	lw	$2,44($fp)
	.set	noreorder
	.set	nomacro
	b	$L1
	lbu	$2,0($2)
	.set	macro
	.set	reorder

$L36:
	lw	$2,44($fp)
	.set	noreorder
	.set	nomacro
	b	$L1
	lhu	$2,0($2)
	.set	macro
	.set	reorder

	.end	vacall_receiver
	.size	vacall_receiver, .-vacall_receiver