-
Notifications
You must be signed in to change notification settings - Fork 0
/
libSceAjmi.c
186 lines (162 loc) · 7.7 KB
/
libSceAjmi.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
/*
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_sceAjmBatchJobControlBufferRa;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobControlBufferRa\n"
".type sceAjmBatchJobControlBufferRa @function\n"
"sceAjmBatchJobControlBufferRa:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobControlBufferRa]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobInlineBuffer;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobInlineBuffer\n"
".type sceAjmBatchJobInlineBuffer @function\n"
"sceAjmBatchJobInlineBuffer:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobInlineBuffer]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobRunBufferRa;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobRunBufferRa\n"
".type sceAjmBatchJobRunBufferRa @function\n"
"sceAjmBatchJobRunBufferRa:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobRunBufferRa]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchJobRunSplitBufferRa;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchJobRunSplitBufferRa\n"
".type sceAjmBatchJobRunSplitBufferRa @function\n"
"sceAjmBatchJobRunSplitBufferRa:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchJobRunSplitBufferRa]\n");
static __attribute__ ((used)) void* __ptr_sceAjmBatchStartBuffer;
asm(".intel_syntax noprefix\n"
".global sceAjmBatchStartBuffer\n"
".type sceAjmBatchStartBuffer @function\n"
"sceAjmBatchStartBuffer:\n"
"jmp qword ptr [rip + __ptr_sceAjmBatchStartBuffer]\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_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("libSceAjmi", &__handle)) return;
if(sprx_dlsym(__handle, "NVDXiUesSbA", &__ptr_sceAjmBatchCancel)) return;
if(sprx_dlsym(__handle, "WfAiBW8Wcek", &__ptr_sceAjmBatchErrorDump)) return;
if(sprx_dlsym(__handle, "dmDybN--Fn8", &__ptr_sceAjmBatchJobControlBufferRa)) return;
if(sprx_dlsym(__handle, "stlghnic3Jc", &__ptr_sceAjmBatchJobInlineBuffer)) return;
if(sprx_dlsym(__handle, "ElslOCpOIns", &__ptr_sceAjmBatchJobRunBufferRa)) return;
if(sprx_dlsym(__handle, "7jdAXK+2fMo", &__ptr_sceAjmBatchJobRunSplitBufferRa)) return;
if(sprx_dlsym(__handle, "fFFkk0xfGWs", &__ptr_sceAjmBatchStartBuffer)) 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, "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);
}