-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceHttpCache.c
202 lines (176 loc) · 8.73 KB
/
libSceHttpCache.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
/*
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__Z5dummyv;
asm(".intel_syntax noprefix\n"
".global _Z5dummyv\n"
".type _Z5dummyv @function\n"
"_Z5dummyv:\n"
"jmp qword ptr [rip + __ptr__Z5dummyv]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheClear;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheClear\n"
".type sceHttpCacheClear @function\n"
"sceHttpCacheClear:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheClear]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheClearAll;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheClearAll\n"
".type sceHttpCacheClearAll @function\n"
"sceHttpCacheClearAll:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheClearAll]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheCompleteRequest;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheCompleteRequest\n"
".type sceHttpCacheCompleteRequest @function\n"
"sceHttpCacheCompleteRequest:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheCompleteRequest]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheCreateRequest;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheCreateRequest\n"
".type sceHttpCacheCreateRequest @function\n"
"sceHttpCacheCreateRequest:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheCreateRequest]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheCreateRequestWithTag;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheCreateRequestWithTag\n"
".type sceHttpCacheCreateRequestWithTag @function\n"
"sceHttpCacheCreateRequestWithTag:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheCreateRequestWithTag]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheDeleteRequest;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheDeleteRequest\n"
".type sceHttpCacheDeleteRequest @function\n"
"sceHttpCacheDeleteRequest:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheDeleteRequest]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheInit;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheInit\n"
".type sceHttpCacheInit @function\n"
"sceHttpCacheInit:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheInit]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheReadData;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheReadData\n"
".type sceHttpCacheReadData @function\n"
"sceHttpCacheReadData:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheReadData]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheRetrieve;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheRetrieve\n"
".type sceHttpCacheRetrieve @function\n"
"sceHttpCacheRetrieve:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheRetrieve]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheRetrieveWithMemoryPool;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheRetrieveWithMemoryPool\n"
".type sceHttpCacheRetrieveWithMemoryPool @function\n"
"sceHttpCacheRetrieveWithMemoryPool:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheRetrieveWithMemoryPool]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheRevalidate;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheRevalidate\n"
".type sceHttpCacheRevalidate @function\n"
"sceHttpCacheRevalidate:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheRevalidate]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheRevalidateWithMemoryPool;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheRevalidateWithMemoryPool\n"
".type sceHttpCacheRevalidateWithMemoryPool @function\n"
"sceHttpCacheRevalidateWithMemoryPool:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheRevalidateWithMemoryPool]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheSetCacheSharing;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheSetCacheSharing\n"
".type sceHttpCacheSetCacheSharing @function\n"
"sceHttpCacheSetCacheSharing:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheSetCacheSharing]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheSetData;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheSetData\n"
".type sceHttpCacheSetData @function\n"
"sceHttpCacheSetData:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheSetData]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheSetQuota;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheSetQuota\n"
".type sceHttpCacheSetQuota @function\n"
"sceHttpCacheSetQuota:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheSetQuota]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheSetResponseHeader;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheSetResponseHeader\n"
".type sceHttpCacheSetResponseHeader @function\n"
"sceHttpCacheSetResponseHeader:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheSetResponseHeader]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheSystemClearAll;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheSystemClearAll\n"
".type sceHttpCacheSystemClearAll @function\n"
"sceHttpCacheSystemClearAll:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheSystemClearAll]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheSystemInit;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheSystemInit\n"
".type sceHttpCacheSystemInit @function\n"
"sceHttpCacheSystemInit:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheSystemInit]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheSystemSendStatistics;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheSystemSendStatistics\n"
".type sceHttpCacheSystemSendStatistics @function\n"
"sceHttpCacheSystemSendStatistics:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheSystemSendStatistics]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheSystemShutdown;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheSystemShutdown\n"
".type sceHttpCacheSystemShutdown @function\n"
"sceHttpCacheSystemShutdown:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheSystemShutdown]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheSystemTerm;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheSystemTerm\n"
".type sceHttpCacheSystemTerm @function\n"
"sceHttpCacheSystemTerm:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheSystemTerm]\n");
static __attribute__ ((used)) void* __ptr_sceHttpCacheTerm;
asm(".intel_syntax noprefix\n"
".global sceHttpCacheTerm\n"
".type sceHttpCacheTerm @function\n"
"sceHttpCacheTerm:\n"
"jmp qword ptr [rip + __ptr_sceHttpCacheTerm]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceHttpCache", &__handle)) return;
if(sprx_dlsym(__handle, "AS45QoYHjc4", &__ptr__Z5dummyv)) return;
if(sprx_dlsym(__handle, "NjhuM7DQT08", &__ptr_sceHttpCacheClear)) return;
if(sprx_dlsym(__handle, "BHrUtjVRivQ", &__ptr_sceHttpCacheClearAll)) return;
if(sprx_dlsym(__handle, "IXdwKopqJHo", &__ptr_sceHttpCacheCompleteRequest)) return;
if(sprx_dlsym(__handle, "ridDhAPwj4c", &__ptr_sceHttpCacheCreateRequest)) return;
if(sprx_dlsym(__handle, "8ztpPAczQLs", &__ptr_sceHttpCacheCreateRequestWithTag)) return;
if(sprx_dlsym(__handle, "c8pxB0Z4QNY", &__ptr_sceHttpCacheDeleteRequest)) return;
if(sprx_dlsym(__handle, "cZp79Bc6ovs", &__ptr_sceHttpCacheInit)) return;
if(sprx_dlsym(__handle, "xExAZRNEpEM", &__ptr_sceHttpCacheReadData)) return;
if(sprx_dlsym(__handle, "GpptAvO+vGI", &__ptr_sceHttpCacheRetrieve)) return;
if(sprx_dlsym(__handle, "TPKIWtZkFU0", &__ptr_sceHttpCacheRetrieveWithMemoryPool)) return;
if(sprx_dlsym(__handle, "7rwsM14lA0Y", &__ptr_sceHttpCacheRevalidate)) return;
if(sprx_dlsym(__handle, "+8M7+xoeeaE", &__ptr_sceHttpCacheRevalidateWithMemoryPool)) return;
if(sprx_dlsym(__handle, "3+a6oBBT2rs", &__ptr_sceHttpCacheSetCacheSharing)) return;
if(sprx_dlsym(__handle, "7UnZ7b3kkvM", &__ptr_sceHttpCacheSetData)) return;
if(sprx_dlsym(__handle, "yg6hx58UNqc", &__ptr_sceHttpCacheSetQuota)) return;
if(sprx_dlsym(__handle, "moPKPd0A5FA", &__ptr_sceHttpCacheSetResponseHeader)) return;
if(sprx_dlsym(__handle, "R9VdZjbxQi8", &__ptr_sceHttpCacheSystemClearAll)) return;
if(sprx_dlsym(__handle, "LfOVpdFit+Q", &__ptr_sceHttpCacheSystemInit)) return;
if(sprx_dlsym(__handle, "0gRbLi4WKVg", &__ptr_sceHttpCacheSystemSendStatistics)) return;
if(sprx_dlsym(__handle, "kbFr-IcUqH4", &__ptr_sceHttpCacheSystemShutdown)) return;
if(sprx_dlsym(__handle, "J25sxFmD+1w", &__ptr_sceHttpCacheSystemTerm)) return;
if(sprx_dlsym(__handle, "UU-WJhJQWxQ", &__ptr_sceHttpCacheTerm)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}