-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceAvPlayer.native.c
250 lines (218 loc) · 10.4 KB
/
libSceAvPlayer.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
/*
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_sceAvPlayerAddSource;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerAddSource\n"
".type sceAvPlayerAddSource @function\n"
"sceAvPlayerAddSource:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerAddSource]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerAddSourceEx;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerAddSourceEx\n"
".type sceAvPlayerAddSourceEx @function\n"
"sceAvPlayerAddSourceEx:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerAddSourceEx]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerChangeStream;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerChangeStream\n"
".type sceAvPlayerChangeStream @function\n"
"sceAvPlayerChangeStream:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerChangeStream]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerClose;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerClose\n"
".type sceAvPlayerClose @function\n"
"sceAvPlayerClose:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerClose]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerCurrentTime;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerCurrentTime\n"
".type sceAvPlayerCurrentTime @function\n"
"sceAvPlayerCurrentTime:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerCurrentTime]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerDisableStream;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerDisableStream\n"
".type sceAvPlayerDisableStream @function\n"
"sceAvPlayerDisableStream:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerDisableStream]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerEnableStream;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerEnableStream\n"
".type sceAvPlayerEnableStream @function\n"
"sceAvPlayerEnableStream:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerEnableStream]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerGetAudioData;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerGetAudioData\n"
".type sceAvPlayerGetAudioData @function\n"
"sceAvPlayerGetAudioData:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerGetAudioData]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerGetStreamInfo;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerGetStreamInfo\n"
".type sceAvPlayerGetStreamInfo @function\n"
"sceAvPlayerGetStreamInfo:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerGetStreamInfo]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerGetStreamInfoEx;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerGetStreamInfoEx\n"
".type sceAvPlayerGetStreamInfoEx @function\n"
"sceAvPlayerGetStreamInfoEx:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerGetStreamInfoEx]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerGetVideoDataEx;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerGetVideoDataEx\n"
".type sceAvPlayerGetVideoDataEx @function\n"
"sceAvPlayerGetVideoDataEx:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerGetVideoDataEx]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerInit;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerInit\n"
".type sceAvPlayerInit @function\n"
"sceAvPlayerInit:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerInit]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerInitEx;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerInitEx\n"
".type sceAvPlayerInitEx @function\n"
"sceAvPlayerInitEx:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerInitEx]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerIsActive;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerIsActive\n"
".type sceAvPlayerIsActive @function\n"
"sceAvPlayerIsActive:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerIsActive]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerJumpToTime;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerJumpToTime\n"
".type sceAvPlayerJumpToTime @function\n"
"sceAvPlayerJumpToTime:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerJumpToTime]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerPause;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerPause\n"
".type sceAvPlayerPause @function\n"
"sceAvPlayerPause:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerPause]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerPostInit;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerPostInit\n"
".type sceAvPlayerPostInit @function\n"
"sceAvPlayerPostInit:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerPostInit]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerPrintf;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerPrintf\n"
".type sceAvPlayerPrintf @function\n"
"sceAvPlayerPrintf:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerPrintf]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerResume;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerResume\n"
".type sceAvPlayerResume @function\n"
"sceAvPlayerResume:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerResume]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerSetAvSyncMode;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerSetAvSyncMode\n"
".type sceAvPlayerSetAvSyncMode @function\n"
"sceAvPlayerSetAvSyncMode:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerSetAvSyncMode]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerSetAvailableBandwidth;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerSetAvailableBandwidth\n"
".type sceAvPlayerSetAvailableBandwidth @function\n"
"sceAvPlayerSetAvailableBandwidth:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerSetAvailableBandwidth]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerSetLogCallback;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerSetLogCallback\n"
".type sceAvPlayerSetLogCallback @function\n"
"sceAvPlayerSetLogCallback:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerSetLogCallback]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerSetLooping;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerSetLooping\n"
".type sceAvPlayerSetLooping @function\n"
"sceAvPlayerSetLooping:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerSetLooping]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerSetTrickSpeed;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerSetTrickSpeed\n"
".type sceAvPlayerSetTrickSpeed @function\n"
"sceAvPlayerSetTrickSpeed:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerSetTrickSpeed]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerStart;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerStart\n"
".type sceAvPlayerStart @function\n"
"sceAvPlayerStart:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerStart]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerStartEx;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerStartEx\n"
".type sceAvPlayerStartEx @function\n"
"sceAvPlayerStartEx:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerStartEx]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerStop;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerStop\n"
".type sceAvPlayerStop @function\n"
"sceAvPlayerStop:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerStop]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerStreamCount;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerStreamCount\n"
".type sceAvPlayerStreamCount @function\n"
"sceAvPlayerStreamCount:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerStreamCount]\n");
static __attribute__ ((used)) void* __ptr_sceAvPlayerVprintf;
asm(".intel_syntax noprefix\n"
".global sceAvPlayerVprintf\n"
".type sceAvPlayerVprintf @function\n"
"sceAvPlayerVprintf:\n"
"jmp qword ptr [rip + __ptr_sceAvPlayerVprintf]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceAvPlayer.native", &__handle)) return;
if(sprx_dlsym(__handle, "KMcEa+rHsIo", &__ptr_sceAvPlayerAddSource)) return;
if(sprx_dlsym(__handle, "x8uvuFOPZhU", &__ptr_sceAvPlayerAddSourceEx)) return;
if(sprx_dlsym(__handle, "buMCiJftcfw", &__ptr_sceAvPlayerChangeStream)) return;
if(sprx_dlsym(__handle, "NkJwDzKmIlw", &__ptr_sceAvPlayerClose)) return;
if(sprx_dlsym(__handle, "wwM99gjFf1Y", &__ptr_sceAvPlayerCurrentTime)) return;
if(sprx_dlsym(__handle, "BOVKAzRmuTQ", &__ptr_sceAvPlayerDisableStream)) return;
if(sprx_dlsym(__handle, "ODJK2sn9w4A", &__ptr_sceAvPlayerEnableStream)) return;
if(sprx_dlsym(__handle, "Wnp1OVcrZgk", &__ptr_sceAvPlayerGetAudioData)) return;
if(sprx_dlsym(__handle, "d8FcbzfAdQw", &__ptr_sceAvPlayerGetStreamInfo)) return;
if(sprx_dlsym(__handle, "ctTAcF5DiKQ", &__ptr_sceAvPlayerGetStreamInfoEx)) return;
if(sprx_dlsym(__handle, "JdksQu8pNdQ", &__ptr_sceAvPlayerGetVideoDataEx)) return;
if(sprx_dlsym(__handle, "aS66RI0gGgo", &__ptr_sceAvPlayerInit)) return;
if(sprx_dlsym(__handle, "o9eWRkSL+M4", &__ptr_sceAvPlayerInitEx)) return;
if(sprx_dlsym(__handle, "UbQoYawOsfY", &__ptr_sceAvPlayerIsActive)) return;
if(sprx_dlsym(__handle, "XC9wM+xULz8", &__ptr_sceAvPlayerJumpToTime)) return;
if(sprx_dlsym(__handle, "9y5v+fGN4Wk", &__ptr_sceAvPlayerPause)) return;
if(sprx_dlsym(__handle, "HD1YKVU26-M", &__ptr_sceAvPlayerPostInit)) return;
if(sprx_dlsym(__handle, "agig-iDRrTE", &__ptr_sceAvPlayerPrintf)) return;
if(sprx_dlsym(__handle, "w5moABNwnRY", &__ptr_sceAvPlayerResume)) return;
if(sprx_dlsym(__handle, "k-q+xOxdc3E", &__ptr_sceAvPlayerSetAvSyncMode)) return;
if(sprx_dlsym(__handle, "N6Oy-EjduiY", &__ptr_sceAvPlayerSetAvailableBandwidth)) return;
if(sprx_dlsym(__handle, "eBTreZ84JFY", &__ptr_sceAvPlayerSetLogCallback)) return;
if(sprx_dlsym(__handle, "OVths0xGfho", &__ptr_sceAvPlayerSetLooping)) return;
if(sprx_dlsym(__handle, "av8Z++94rs0", &__ptr_sceAvPlayerSetTrickSpeed)) return;
if(sprx_dlsym(__handle, "ET4Gr-Uu07s", &__ptr_sceAvPlayerStart)) return;
if(sprx_dlsym(__handle, "NxSdL9t-KXk", &__ptr_sceAvPlayerStartEx)) return;
if(sprx_dlsym(__handle, "ZC17w3vB5Lo", &__ptr_sceAvPlayerStop)) return;
if(sprx_dlsym(__handle, "hdTyRzCXQeQ", &__ptr_sceAvPlayerStreamCount)) return;
if(sprx_dlsym(__handle, "yN7Jhuv8g24", &__ptr_sceAvPlayerVprintf)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}