-
Notifications
You must be signed in to change notification settings - Fork 0
/
libSceEsvmEngine.c
170 lines (148 loc) · 9.19 KB
/
libSceEsvmEngine.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
/*
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_sceEsvmEngineDestroyMediaKeySystemAccess;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineDestroyMediaKeySystemAccess\n"
".type sceEsvmEngineDestroyMediaKeySystemAccess @function\n"
"sceEsvmEngineDestroyMediaKeySystemAccess:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineDestroyMediaKeySystemAccess]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySessionClose;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySessionClose\n"
".type sceEsvmEngineMediaKeySessionClose @function\n"
"sceEsvmEngineMediaKeySessionClose:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySessionClose]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySessionGenerateRequest;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySessionGenerateRequest\n"
".type sceEsvmEngineMediaKeySessionGenerateRequest @function\n"
"sceEsvmEngineMediaKeySessionGenerateRequest:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySessionGenerateRequest]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySessionGetExpiration;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySessionGetExpiration\n"
".type sceEsvmEngineMediaKeySessionGetExpiration @function\n"
"sceEsvmEngineMediaKeySessionGetExpiration:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySessionGetExpiration]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySessionGetKeyStatuses;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySessionGetKeyStatuses\n"
".type sceEsvmEngineMediaKeySessionGetKeyStatuses @function\n"
"sceEsvmEngineMediaKeySessionGetKeyStatuses:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySessionGetKeyStatuses]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySessionGetSessionId;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySessionGetSessionId\n"
".type sceEsvmEngineMediaKeySessionGetSessionId @function\n"
"sceEsvmEngineMediaKeySessionGetSessionId:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySessionGetSessionId]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySessionLoad;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySessionLoad\n"
".type sceEsvmEngineMediaKeySessionLoad @function\n"
"sceEsvmEngineMediaKeySessionLoad:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySessionLoad]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySessionRemove;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySessionRemove\n"
".type sceEsvmEngineMediaKeySessionRemove @function\n"
"sceEsvmEngineMediaKeySessionRemove:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySessionRemove]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySessionSetEventHandler;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySessionSetEventHandler\n"
".type sceEsvmEngineMediaKeySessionSetEventHandler @function\n"
"sceEsvmEngineMediaKeySessionSetEventHandler:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySessionSetEventHandler]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySessionUpdate;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySessionUpdate\n"
".type sceEsvmEngineMediaKeySessionUpdate @function\n"
"sceEsvmEngineMediaKeySessionUpdate:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySessionUpdate]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySystemAccessCreateMediaKeys;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySystemAccessCreateMediaKeys\n"
".type sceEsvmEngineMediaKeySystemAccessCreateMediaKeys @function\n"
"sceEsvmEngineMediaKeySystemAccessCreateMediaKeys:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySystemAccessCreateMediaKeys]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySystemAccessDestroyMediaKeys;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySystemAccessDestroyMediaKeys\n"
".type sceEsvmEngineMediaKeySystemAccessDestroyMediaKeys @function\n"
"sceEsvmEngineMediaKeySystemAccessDestroyMediaKeys:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySystemAccessDestroyMediaKeys]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySystemAccessGetConfiguration;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySystemAccessGetConfiguration\n"
".type sceEsvmEngineMediaKeySystemAccessGetConfiguration @function\n"
"sceEsvmEngineMediaKeySystemAccessGetConfiguration:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySystemAccessGetConfiguration]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeySystemAccessSetCdmStorageConfig;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeySystemAccessSetCdmStorageConfig\n"
".type sceEsvmEngineMediaKeySystemAccessSetCdmStorageConfig @function\n"
"sceEsvmEngineMediaKeySystemAccessSetCdmStorageConfig:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeySystemAccessSetCdmStorageConfig]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeysCreateSession;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeysCreateSession\n"
".type sceEsvmEngineMediaKeysCreateSession @function\n"
"sceEsvmEngineMediaKeysCreateSession:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeysCreateSession]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeysDestroySession;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeysDestroySession\n"
".type sceEsvmEngineMediaKeysDestroySession @function\n"
"sceEsvmEngineMediaKeysDestroySession:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeysDestroySession]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeysSetEventHandler;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeysSetEventHandler\n"
".type sceEsvmEngineMediaKeysSetEventHandler @function\n"
"sceEsvmEngineMediaKeysSetEventHandler:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeysSetEventHandler]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineMediaKeysSetServerCertificate;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineMediaKeysSetServerCertificate\n"
".type sceEsvmEngineMediaKeysSetServerCertificate @function\n"
"sceEsvmEngineMediaKeysSetServerCertificate:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineMediaKeysSetServerCertificate]\n");
static __attribute__ ((used)) void* __ptr_sceEsvmEngineRequestMediaKeySystemAccess;
asm(".intel_syntax noprefix\n"
".global sceEsvmEngineRequestMediaKeySystemAccess\n"
".type sceEsvmEngineRequestMediaKeySystemAccess @function\n"
"sceEsvmEngineRequestMediaKeySystemAccess:\n"
"jmp qword ptr [rip + __ptr_sceEsvmEngineRequestMediaKeySystemAccess]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceEsvmEngine", &__handle)) return;
if(sprx_dlsym(__handle, "jV6nu+8j1BU", &__ptr_sceEsvmEngineDestroyMediaKeySystemAccess)) return;
if(sprx_dlsym(__handle, "E7LV-Vm+w0s", &__ptr_sceEsvmEngineMediaKeySessionClose)) return;
if(sprx_dlsym(__handle, "TTi1wXli58Q", &__ptr_sceEsvmEngineMediaKeySessionGenerateRequest)) return;
if(sprx_dlsym(__handle, "b8YwdPYpAq4", &__ptr_sceEsvmEngineMediaKeySessionGetExpiration)) return;
if(sprx_dlsym(__handle, "uZrg74SvVvk", &__ptr_sceEsvmEngineMediaKeySessionGetKeyStatuses)) return;
if(sprx_dlsym(__handle, "9Yv7222knIM", &__ptr_sceEsvmEngineMediaKeySessionGetSessionId)) return;
if(sprx_dlsym(__handle, "BFEwbDCkoNM", &__ptr_sceEsvmEngineMediaKeySessionLoad)) return;
if(sprx_dlsym(__handle, "Z49nv-Xs1A0", &__ptr_sceEsvmEngineMediaKeySessionRemove)) return;
if(sprx_dlsym(__handle, "RgminlbfK8E", &__ptr_sceEsvmEngineMediaKeySessionSetEventHandler)) return;
if(sprx_dlsym(__handle, "7mNuSDZQNNo", &__ptr_sceEsvmEngineMediaKeySessionUpdate)) return;
if(sprx_dlsym(__handle, "pvuuD5bRjf0", &__ptr_sceEsvmEngineMediaKeySystemAccessCreateMediaKeys)) return;
if(sprx_dlsym(__handle, "A+gXFduc9gM", &__ptr_sceEsvmEngineMediaKeySystemAccessDestroyMediaKeys)) return;
if(sprx_dlsym(__handle, "3MdvN660P4w", &__ptr_sceEsvmEngineMediaKeySystemAccessGetConfiguration)) return;
if(sprx_dlsym(__handle, "LqBKASoabtM", &__ptr_sceEsvmEngineMediaKeySystemAccessSetCdmStorageConfig)) return;
if(sprx_dlsym(__handle, "1EoMsKB-clM", &__ptr_sceEsvmEngineMediaKeysCreateSession)) return;
if(sprx_dlsym(__handle, "q527znq3hOE", &__ptr_sceEsvmEngineMediaKeysDestroySession)) return;
if(sprx_dlsym(__handle, "94TcQVqP4Fw", &__ptr_sceEsvmEngineMediaKeysSetEventHandler)) return;
if(sprx_dlsym(__handle, "HnWRDz8K3l4", &__ptr_sceEsvmEngineMediaKeysSetServerCertificate)) return;
if(sprx_dlsym(__handle, "hJLHJLp47qc", &__ptr_sceEsvmEngineRequestMediaKeySystemAccess)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}