-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceAjm.native.c
322 lines (281 loc) · 13.8 KB
/
libSceAjm.native.c
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
/*
This file was generated by genstub.py, do not edit manually!
*/
int sprx_dlsym(unsigned int handle, const char *nid, void *addr);
int sprx_dlopen(const char* libname, unsigned short *handle);
int sprx_dlclose(unsigned int handle);
static __attribute__ ((used)) void* __ptr_sceAjmBatchCancel;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchCancel\n"
".type sceAjmBatchCancel @function\n"
"sceAjmBatchCancel:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchCancel]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchErrorDump;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchErrorDump\n"
".type sceAjmBatchErrorDump @function\n"
"sceAjmBatchErrorDump:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchErrorDump]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchGetLog;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchGetLog\n"
".type sceAjmBatchGetLog @function\n"
"sceAjmBatchGetLog:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchGetLog]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchInitialize;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchInitialize\n"
".type sceAjmBatchInitialize @function\n"
"sceAjmBatchInitialize:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchInitialize]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobClearContext;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobClearContext\n"
".type sceAjmBatchJobClearContext @function\n"
"sceAjmBatchJobClearContext:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobClearContext]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobControl;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobControl\n"
".type sceAjmBatchJobControl @function\n"
"sceAjmBatchJobControl:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobControl]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobDecode;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobDecode\n"
".type sceAjmBatchJobDecode @function\n"
"sceAjmBatchJobDecode:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobDecode]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobDecodeSingle;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobDecodeSingle\n"
".type sceAjmBatchJobDecodeSingle @function\n"
"sceAjmBatchJobDecodeSingle:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobDecodeSingle]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobDecodeSplit;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobDecodeSplit\n"
".type sceAjmBatchJobDecodeSplit @function\n"
"sceAjmBatchJobDecodeSplit:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobDecodeSplit]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobEncode;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobEncode\n"
".type sceAjmBatchJobEncode @function\n"
"sceAjmBatchJobEncode:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobEncode]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobGetCodecInfo;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobGetCodecInfo\n"
".type sceAjmBatchJobGetCodecInfo @function\n"
"sceAjmBatchJobGetCodecInfo:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobGetCodecInfo]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobGetGaplessDecode;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobGetGaplessDecode\n"
".type sceAjmBatchJobGetGaplessDecode @function\n"
"sceAjmBatchJobGetGaplessDecode:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobGetGaplessDecode]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobGetInfo;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobGetInfo\n"
".type sceAjmBatchJobGetInfo @function\n"
"sceAjmBatchJobGetInfo:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobGetInfo]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobGetResampleInfo;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobGetResampleInfo\n"
".type sceAjmBatchJobGetResampleInfo @function\n"
"sceAjmBatchJobGetResampleInfo:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobGetResampleInfo]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobGetStatistics;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobGetStatistics\n"
".type sceAjmBatchJobGetStatistics @function\n"
"sceAjmBatchJobGetStatistics:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobGetStatistics]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobInitialize;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobInitialize\n"
".type sceAjmBatchJobInitialize @function\n"
"sceAjmBatchJobInitialize:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobInitialize]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobRun;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobRun\n"
".type sceAjmBatchJobRun @function\n"
"sceAjmBatchJobRun:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobRun]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobRunSplit;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobRunSplit\n"
".type sceAjmBatchJobRunSplit @function\n"
"sceAjmBatchJobRunSplit:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobRunSplit]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobSetGaplessDecode;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobSetGaplessDecode\n"
".type sceAjmBatchJobSetGaplessDecode @function\n"
"sceAjmBatchJobSetGaplessDecode:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobSetGaplessDecode]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobSetResampleParameters;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobSetResampleParameters\n"
".type sceAjmBatchJobSetResampleParameters @function\n"
"sceAjmBatchJobSetResampleParameters:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobSetResampleParameters]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobSetResampleParametersEx;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobSetResampleParametersEx\n"
".type sceAjmBatchJobSetResampleParametersEx @function\n"
"sceAjmBatchJobSetResampleParametersEx:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobSetResampleParametersEx]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchStart;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchStart\n"
".type sceAjmBatchStart @function\n"
"sceAjmBatchStart:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchStart]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchWait;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchWait\n"
".type sceAjmBatchWait @function\n"
"sceAjmBatchWait:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchWait]\n");
static __attribute__ ((used)) void* __ptr_sceAjmDecAt9ParseConfigData;
asm(".intel_syntax noprefix\n"
".global sceAjmDecAt9ParseConfigData\n"
".type sceAjmDecAt9ParseConfigData @function\n"
"sceAjmDecAt9ParseConfigData:\n"
"jmp qword ptr [rip + __ptr_sceAjmDecAt9ParseConfigData]\n");
static __attribute__ ((used)) void* __ptr_sceAjmDecMp3ParseFrame;
asm(".intel_syntax noprefix\n"
".global sceAjmDecMp3ParseFrame\n"
".type sceAjmDecMp3ParseFrame @function\n"
"sceAjmDecMp3ParseFrame:\n"
"jmp qword ptr [rip + __ptr_sceAjmDecMp3ParseFrame]\n");
static __attribute__ ((used)) void* __ptr_sceAjmFinalize;
asm(".intel_syntax noprefix\n"
".global sceAjmFinalize\n"
".type sceAjmFinalize @function\n"
"sceAjmFinalize:\n"
"jmp qword ptr [rip + __ptr_sceAjmFinalize]\n");
static __attribute__ ((used)) void* __ptr_sceAjmInitialize;
asm(".intel_syntax noprefix\n"
".global sceAjmInitialize\n"
".type sceAjmInitialize @function\n"
"sceAjmInitialize:\n"
"jmp qword ptr [rip + __ptr_sceAjmInitialize]\n");
static __attribute__ ((used)) void* __ptr_sceAjmInstanceAvailable;
asm(".intel_syntax noprefix\n"
".global sceAjmInstanceAvailable\n"
".type sceAjmInstanceAvailable @function\n"
"sceAjmInstanceAvailable:\n"
"jmp qword ptr [rip + __ptr_sceAjmInstanceAvailable]\n");
static __attribute__ ((used)) void* __ptr_sceAjmInstanceCodecType;
asm(".intel_syntax noprefix\n"
".global sceAjmInstanceCodecType\n"
".type sceAjmInstanceCodecType @function\n"
"sceAjmInstanceCodecType:\n"
"jmp qword ptr [rip + __ptr_sceAjmInstanceCodecType]\n");
static __attribute__ ((used)) void* __ptr_sceAjmInstanceCreate;
asm(".intel_syntax noprefix\n"
".global sceAjmInstanceCreate\n"
".type sceAjmInstanceCreate @function\n"
"sceAjmInstanceCreate:\n"
"jmp qword ptr [rip + __ptr_sceAjmInstanceCreate]\n");
static __attribute__ ((used)) void* __ptr_sceAjmInstanceDestroy;
asm(".intel_syntax noprefix\n"
".global sceAjmInstanceDestroy\n"
".type sceAjmInstanceDestroy @function\n"
"sceAjmInstanceDestroy:\n"
"jmp qword ptr [rip + __ptr_sceAjmInstanceDestroy]\n");
static __attribute__ ((used)) void* __ptr_sceAjmInstanceExtend;
asm(".intel_syntax noprefix\n"
".global sceAjmInstanceExtend\n"
".type sceAjmInstanceExtend @function\n"
"sceAjmInstanceExtend:\n"
"jmp qword ptr [rip + __ptr_sceAjmInstanceExtend]\n");
static __attribute__ ((used)) void* __ptr_sceAjmInstanceSwitch;
asm(".intel_syntax noprefix\n"
".global sceAjmInstanceSwitch\n"
".type sceAjmInstanceSwitch @function\n"
"sceAjmInstanceSwitch:\n"
"jmp qword ptr [rip + __ptr_sceAjmInstanceSwitch]\n");
static __attribute__ ((used)) void* __ptr_sceAjmMemoryRegister;
asm(".intel_syntax noprefix\n"
".global sceAjmMemoryRegister\n"
".type sceAjmMemoryRegister @function\n"
"sceAjmMemoryRegister:\n"
"jmp qword ptr [rip + __ptr_sceAjmMemoryRegister]\n");
static __attribute__ ((used)) void* __ptr_sceAjmMemoryUnregister;
asm(".intel_syntax noprefix\n"
".global sceAjmMemoryUnregister\n"
".type sceAjmMemoryUnregister @function\n"
"sceAjmMemoryUnregister:\n"
"jmp qword ptr [rip + __ptr_sceAjmMemoryUnregister]\n");
static __attribute__ ((used)) void* __ptr_sceAjmModuleRegister;
asm(".intel_syntax noprefix\n"
".global sceAjmModuleRegister\n"
".type sceAjmModuleRegister @function\n"
"sceAjmModuleRegister:\n"
"jmp qword ptr [rip + __ptr_sceAjmModuleRegister]\n");
static __attribute__ ((used)) void* __ptr_sceAjmModuleUnregister;
asm(".intel_syntax noprefix\n"
".global sceAjmModuleUnregister\n"
".type sceAjmModuleUnregister @function\n"
"sceAjmModuleUnregister:\n"
"jmp qword ptr [rip + __ptr_sceAjmModuleUnregister]\n");
static __attribute__ ((used)) void* __ptr_sceAjmStrError;
asm(".intel_syntax noprefix\n"
".global sceAjmStrError\n"
".type sceAjmStrError @function\n"
"sceAjmStrError:\n"
"jmp qword ptr [rip + __ptr_sceAjmStrError]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceAjm.native", &__handle)) return;
if(sprx_dlsym(__handle, "NVDXiUesSbA", &__ptr_sceAjmBatchCancel)) return;
if(sprx_dlsym(__handle, "WfAiBW8Wcek", &__ptr_sceAjmBatchErrorDump)) return;
if(sprx_dlsym(__handle, "nXpC4dnxlI0", &__ptr_sceAjmBatchGetLog)) return;
if(sprx_dlsym(__handle, "MmpF1XsQiHw", &__ptr_sceAjmBatchInitialize)) return;
if(sprx_dlsym(__handle, "uJ3m8INuikg", &__ptr_sceAjmBatchJobClearContext)) return;
if(sprx_dlsym(__handle, "7FZsbyVRM4U", &__ptr_sceAjmBatchJobControl)) return;
if(sprx_dlsym(__handle, "39WxhR-ePew", &__ptr_sceAjmBatchJobDecode)) return;
if(sprx_dlsym(__handle, "5LLWbpP5xi8", &__ptr_sceAjmBatchJobDecodeSingle)) return;
if(sprx_dlsym(__handle, "SJ3i0DXP8vg", &__ptr_sceAjmBatchJobDecodeSplit)) return;
if(sprx_dlsym(__handle, "SlVIGK1Kl38", &__ptr_sceAjmBatchJobEncode)) return;
if(sprx_dlsym(__handle, "uSrXaxT+oPQ", &__ptr_sceAjmBatchJobGetCodecInfo)) return;
if(sprx_dlsym(__handle, "Esr9db8S1S0", &__ptr_sceAjmBatchJobGetGaplessDecode)) return;
if(sprx_dlsym(__handle, "TBWW4aPfWcA", &__ptr_sceAjmBatchJobGetInfo)) return;
if(sprx_dlsym(__handle, "JkdNCocpu1M", &__ptr_sceAjmBatchJobGetResampleInfo)) return;
if(sprx_dlsym(__handle, "3cAg7xN995U", &__ptr_sceAjmBatchJobGetStatistics)) return;
if(sprx_dlsym(__handle, "ezM2OhNxzck", &__ptr_sceAjmBatchJobInitialize)) return;
if(sprx_dlsym(__handle, "jVCWcthifr8", &__ptr_sceAjmBatchJobRun)) return;
if(sprx_dlsym(__handle, "Z9NVCesiP0Q", &__ptr_sceAjmBatchJobRunSplit)) return;
if(sprx_dlsym(__handle, "SkEwpiu3tZg", &__ptr_sceAjmBatchJobSetGaplessDecode)) return;
if(sprx_dlsym(__handle, "81HsnXFbWS4", &__ptr_sceAjmBatchJobSetResampleParameters)) return;
if(sprx_dlsym(__handle, "5ldnD16rYZw", &__ptr_sceAjmBatchJobSetResampleParametersEx)) return;
if(sprx_dlsym(__handle, "5tOfnaClcqM", &__ptr_sceAjmBatchStart)) return;
if(sprx_dlsym(__handle, "-qLsfDAywIY", &__ptr_sceAjmBatchWait)) return;
if(sprx_dlsym(__handle, "1t3ixYNXyuc", &__ptr_sceAjmDecAt9ParseConfigData)) return;
if(sprx_dlsym(__handle, "eDFeTyi+G3Y", &__ptr_sceAjmDecMp3ParseFrame)) return;
if(sprx_dlsym(__handle, "MHur6qCsUus", &__ptr_sceAjmFinalize)) return;
if(sprx_dlsym(__handle, "dl+4eHSzUu4", &__ptr_sceAjmInitialize)) return;
if(sprx_dlsym(__handle, "d4SQL+QQLTY", &__ptr_sceAjmInstanceAvailable)) return;
if(sprx_dlsym(__handle, "diXjQNiMu-s", &__ptr_sceAjmInstanceCodecType)) return;
if(sprx_dlsym(__handle, "AxoDrINp4J8", &__ptr_sceAjmInstanceCreate)) return;
if(sprx_dlsym(__handle, "RbLbuKv8zho", &__ptr_sceAjmInstanceDestroy)) return;
if(sprx_dlsym(__handle, "YDFR0dDVGAg", &__ptr_sceAjmInstanceExtend)) return;
if(sprx_dlsym(__handle, "rgLjmfdXocI", &__ptr_sceAjmInstanceSwitch)) return;
if(sprx_dlsym(__handle, "bkRHEYG6lEM", &__ptr_sceAjmMemoryRegister)) return;
if(sprx_dlsym(__handle, "pIpGiaYkHkM", &__ptr_sceAjmMemoryUnregister)) return;
if(sprx_dlsym(__handle, "Q3dyFuwGn64", &__ptr_sceAjmModuleRegister)) return;
if(sprx_dlsym(__handle, "Wi7DtlLV+KI", &__ptr_sceAjmModuleUnregister)) return;
if(sprx_dlsym(__handle, "AxhcqVv5AYU", &__ptr_sceAjmStrError)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}