-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceAudiodec.native.c
178 lines (155 loc) · 7.68 KB
/
libSceAudiodec.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
/*
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_sceAudiodecClearContext;
asm(".intel_syntax noprefix\n"
".global sceAudiodecClearContext\n"
".type sceAudiodecClearContext @function\n"
"sceAudiodecClearContext:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecClearContext]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecClearContextEx;
asm(".intel_syntax noprefix\n"
".global sceAudiodecClearContextEx\n"
".type sceAudiodecClearContextEx @function\n"
"sceAudiodecClearContextEx:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecClearContextEx]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecCreateDecoder;
asm(".intel_syntax noprefix\n"
".global sceAudiodecCreateDecoder\n"
".type sceAudiodecCreateDecoder @function\n"
"sceAudiodecCreateDecoder:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecCreateDecoder]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecCreateDecoderEx;
asm(".intel_syntax noprefix\n"
".global sceAudiodecCreateDecoderEx\n"
".type sceAudiodecCreateDecoderEx @function\n"
"sceAudiodecCreateDecoderEx:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecCreateDecoderEx]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecDecode;
asm(".intel_syntax noprefix\n"
".global sceAudiodecDecode\n"
".type sceAudiodecDecode @function\n"
"sceAudiodecDecode:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecDecode]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecDecode2;
asm(".intel_syntax noprefix\n"
".global sceAudiodecDecode2\n"
".type sceAudiodecDecode2 @function\n"
"sceAudiodecDecode2:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecDecode2]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecDecode2Ex;
asm(".intel_syntax noprefix\n"
".global sceAudiodecDecode2Ex\n"
".type sceAudiodecDecode2Ex @function\n"
"sceAudiodecDecode2Ex:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecDecode2Ex]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecDecode2WithPriority;
asm(".intel_syntax noprefix\n"
".global sceAudiodecDecode2WithPriority\n"
".type sceAudiodecDecode2WithPriority @function\n"
"sceAudiodecDecode2WithPriority:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecDecode2WithPriority]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecDecode2WithPriorityEx;
asm(".intel_syntax noprefix\n"
".global sceAudiodecDecode2WithPriorityEx\n"
".type sceAudiodecDecode2WithPriorityEx @function\n"
"sceAudiodecDecode2WithPriorityEx:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecDecode2WithPriorityEx]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecDecodeEx;
asm(".intel_syntax noprefix\n"
".global sceAudiodecDecodeEx\n"
".type sceAudiodecDecodeEx @function\n"
"sceAudiodecDecodeEx:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecDecodeEx]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecDecodeWithPriority;
asm(".intel_syntax noprefix\n"
".global sceAudiodecDecodeWithPriority\n"
".type sceAudiodecDecodeWithPriority @function\n"
"sceAudiodecDecodeWithPriority:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecDecodeWithPriority]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecDecodeWithPriorityEx;
asm(".intel_syntax noprefix\n"
".global sceAudiodecDecodeWithPriorityEx\n"
".type sceAudiodecDecodeWithPriorityEx @function\n"
"sceAudiodecDecodeWithPriorityEx:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecDecodeWithPriorityEx]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecDeleteDecoder;
asm(".intel_syntax noprefix\n"
".global sceAudiodecDeleteDecoder\n"
".type sceAudiodecDeleteDecoder @function\n"
"sceAudiodecDeleteDecoder:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecDeleteDecoder]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecDeleteDecoderEx;
asm(".intel_syntax noprefix\n"
".global sceAudiodecDeleteDecoderEx\n"
".type sceAudiodecDeleteDecoderEx @function\n"
"sceAudiodecDeleteDecoderEx:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecDeleteDecoderEx]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecGetContext;
asm(".intel_syntax noprefix\n"
".global sceAudiodecGetContext\n"
".type sceAudiodecGetContext @function\n"
"sceAudiodecGetContext:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecGetContext]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecInitLibrary;
asm(".intel_syntax noprefix\n"
".global sceAudiodecInitLibrary\n"
".type sceAudiodecInitLibrary @function\n"
"sceAudiodecInitLibrary:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecInitLibrary]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecInitialize;
asm(".intel_syntax noprefix\n"
".global sceAudiodecInitialize\n"
".type sceAudiodecInitialize @function\n"
"sceAudiodecInitialize:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecInitialize]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecRegisterCodec;
asm(".intel_syntax noprefix\n"
".global sceAudiodecRegisterCodec\n"
".type sceAudiodecRegisterCodec @function\n"
"sceAudiodecRegisterCodec:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecRegisterCodec]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecTermLibrary;
asm(".intel_syntax noprefix\n"
".global sceAudiodecTermLibrary\n"
".type sceAudiodecTermLibrary @function\n"
"sceAudiodecTermLibrary:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecTermLibrary]\n");
static __attribute__ ((used)) void* __ptr_sceAudiodecTerminate;
asm(".intel_syntax noprefix\n"
".global sceAudiodecTerminate\n"
".type sceAudiodecTerminate @function\n"
"sceAudiodecTerminate:\n"
"jmp qword ptr [rip + __ptr_sceAudiodecTerminate]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceAudiodec.native", &__handle)) return;
if(sprx_dlsym(__handle, "6Vf9WTLDoss", &__ptr_sceAudiodecClearContext)) return;
if(sprx_dlsym(__handle, "3pBbmM8ZyN4", &__ptr_sceAudiodecClearContextEx)) return;
if(sprx_dlsym(__handle, "O3f1sLMWRvs", &__ptr_sceAudiodecCreateDecoder)) return;
if(sprx_dlsym(__handle, "F31VqfrQ80A", &__ptr_sceAudiodecCreateDecoderEx)) return;
if(sprx_dlsym(__handle, "KHXHMDLkILw", &__ptr_sceAudiodecDecode)) return;
if(sprx_dlsym(__handle, "+eFOGH-2A8M", &__ptr_sceAudiodecDecode2)) return;
if(sprx_dlsym(__handle, "hxPWcZh4OZM", &__ptr_sceAudiodecDecode2Ex)) return;
if(sprx_dlsym(__handle, "S4per83VASY", &__ptr_sceAudiodecDecode2WithPriority)) return;
if(sprx_dlsym(__handle, "3oL6ZnWIW80", &__ptr_sceAudiodecDecode2WithPriorityEx)) return;
if(sprx_dlsym(__handle, "Bsmr2r9f5Vg", &__ptr_sceAudiodecDecodeEx)) return;
if(sprx_dlsym(__handle, "VUMO2kAbo7w", &__ptr_sceAudiodecDecodeWithPriority)) return;
if(sprx_dlsym(__handle, "vbDE8iuKPKY", &__ptr_sceAudiodecDecodeWithPriorityEx)) return;
if(sprx_dlsym(__handle, "Tp+ZEy69mLk", &__ptr_sceAudiodecDeleteDecoder)) return;
if(sprx_dlsym(__handle, "VZroxfK-OjE", &__ptr_sceAudiodecDeleteDecoderEx)) return;
if(sprx_dlsym(__handle, "pJf1t3SkkWw", &__ptr_sceAudiodecGetContext)) return;
if(sprx_dlsym(__handle, "VjhsmxpcezI", &__ptr_sceAudiodecInitLibrary)) return;
if(sprx_dlsym(__handle, "EsSbFnoWxVc", &__ptr_sceAudiodecInitialize)) return;
if(sprx_dlsym(__handle, "wPZSJibBFsw", &__ptr_sceAudiodecRegisterCodec)) return;
if(sprx_dlsym(__handle, "h5jSB2QIDV0", &__ptr_sceAudiodecTermLibrary)) return;
if(sprx_dlsym(__handle, "-Y0Yv5Y+h-M", &__ptr_sceAudiodecTerminate)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}