-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceBeisobmf.c
162 lines (141 loc) · 6.89 KB
/
libSceBeisobmf.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
/*
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_isobmf_box_getchildbox;
asm(".intel_syntax noprefix\n"
".global isobmf_box_getchildbox\n"
".type isobmf_box_getchildbox @function\n"
"isobmf_box_getchildbox:\n"
"jmp qword ptr [rip + __ptr_isobmf_box_getchildbox]\n");
static __attribute__ ((used)) void* __ptr_isobmf_box_getdiskoffset;
asm(".intel_syntax noprefix\n"
".global isobmf_box_getdiskoffset\n"
".type isobmf_box_getdiskoffset @function\n"
"isobmf_box_getdiskoffset:\n"
"jmp qword ptr [rip + __ptr_isobmf_box_getdiskoffset]\n");
static __attribute__ ((used)) void* __ptr_isobmf_box_getflags32b;
asm(".intel_syntax noprefix\n"
".global isobmf_box_getflags32b\n"
".type isobmf_box_getflags32b @function\n"
"isobmf_box_getflags32b:\n"
"jmp qword ptr [rip + __ptr_isobmf_box_getflags32b]\n");
static __attribute__ ((used)) void* __ptr_isobmf_box_getmember_length;
asm(".intel_syntax noprefix\n"
".global isobmf_box_getmember_length\n"
".type isobmf_box_getmember_length @function\n"
"isobmf_box_getmember_length:\n"
"jmp qword ptr [rip + __ptr_isobmf_box_getmember_length]\n");
static __attribute__ ((used)) void* __ptr_isobmf_box_getmember_ptr;
asm(".intel_syntax noprefix\n"
".global isobmf_box_getmember_ptr\n"
".type isobmf_box_getmember_ptr @function\n"
"isobmf_box_getmember_ptr:\n"
"jmp qword ptr [rip + __ptr_isobmf_box_getmember_ptr]\n");
static __attribute__ ((used)) void* __ptr_isobmf_box_getmember_type;
asm(".intel_syntax noprefix\n"
".global isobmf_box_getmember_type\n"
".type isobmf_box_getmember_type @function\n"
"isobmf_box_getmember_type:\n"
"jmp qword ptr [rip + __ptr_isobmf_box_getmember_type]\n");
static __attribute__ ((used)) void* __ptr_isobmf_box_getnextbox;
asm(".intel_syntax noprefix\n"
".global isobmf_box_getnextbox\n"
".type isobmf_box_getnextbox @function\n"
"isobmf_box_getnextbox:\n"
"jmp qword ptr [rip + __ptr_isobmf_box_getnextbox]\n");
static __attribute__ ((used)) void* __ptr_isobmf_box_getstate;
asm(".intel_syntax noprefix\n"
".global isobmf_box_getstate\n"
".type isobmf_box_getstate @function\n"
"isobmf_box_getstate:\n"
"jmp qword ptr [rip + __ptr_isobmf_box_getstate]\n");
static __attribute__ ((used)) void* __ptr_isobmf_box_gettype;
asm(".intel_syntax noprefix\n"
".global isobmf_box_gettype\n"
".type isobmf_box_gettype @function\n"
"isobmf_box_gettype:\n"
"jmp qword ptr [rip + __ptr_isobmf_box_gettype]\n");
static __attribute__ ((used)) void* __ptr_isobmf_decoder_clear;
asm(".intel_syntax noprefix\n"
".global isobmf_decoder_clear\n"
".type isobmf_decoder_clear @function\n"
"isobmf_decoder_clear:\n"
"jmp qword ptr [rip + __ptr_isobmf_decoder_clear]\n");
static __attribute__ ((used)) void* __ptr_isobmf_decoder_create;
asm(".intel_syntax noprefix\n"
".global isobmf_decoder_create\n"
".type isobmf_decoder_create @function\n"
"isobmf_decoder_create:\n"
"jmp qword ptr [rip + __ptr_isobmf_decoder_create]\n");
static __attribute__ ((used)) void* __ptr_isobmf_decoder_decode;
asm(".intel_syntax noprefix\n"
".global isobmf_decoder_decode\n"
".type isobmf_decoder_decode @function\n"
"isobmf_decoder_decode:\n"
"jmp qword ptr [rip + __ptr_isobmf_decoder_decode]\n");
static __attribute__ ((used)) void* __ptr_isobmf_decoder_destroy;
asm(".intel_syntax noprefix\n"
".global isobmf_decoder_destroy\n"
".type isobmf_decoder_destroy @function\n"
"isobmf_decoder_destroy:\n"
"jmp qword ptr [rip + __ptr_isobmf_decoder_destroy]\n");
static __attribute__ ((used)) void* __ptr_isobmf_decoder_get_decoder_tree;
asm(".intel_syntax noprefix\n"
".global isobmf_decoder_get_decoder_tree\n"
".type isobmf_decoder_get_decoder_tree @function\n"
"isobmf_decoder_get_decoder_tree:\n"
"jmp qword ptr [rip + __ptr_isobmf_decoder_get_decoder_tree]\n");
static __attribute__ ((used)) void* __ptr_isobmf_decoder_getquerydata;
asm(".intel_syntax noprefix\n"
".global isobmf_decoder_getquerydata\n"
".type isobmf_decoder_getquerydata @function\n"
"isobmf_decoder_getquerydata:\n"
"jmp qword ptr [rip + __ptr_isobmf_decoder_getquerydata]\n");
static __attribute__ ((used)) void* __ptr_isobmf_decoder_next_disk_offset;
asm(".intel_syntax noprefix\n"
".global isobmf_decoder_next_disk_offset\n"
".type isobmf_decoder_next_disk_offset @function\n"
"isobmf_decoder_next_disk_offset:\n"
"jmp qword ptr [rip + __ptr_isobmf_decoder_next_disk_offset]\n");
static __attribute__ ((used)) void* __ptr_isobmf_decoder_query;
asm(".intel_syntax noprefix\n"
".global isobmf_decoder_query\n"
".type isobmf_decoder_query @function\n"
"isobmf_decoder_query:\n"
"jmp qword ptr [rip + __ptr_isobmf_decoder_query]\n");
static __attribute__ ((used)) void* __ptr_isobmf_memmanager_set;
asm(".intel_syntax noprefix\n"
".global isobmf_memmanager_set\n"
".type isobmf_memmanager_set @function\n"
"isobmf_memmanager_set:\n"
"jmp qword ptr [rip + __ptr_isobmf_memmanager_set]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceBeisobmf", &__handle)) return;
if(sprx_dlsym(__handle, "0d9dtBvFgxg", &__ptr_isobmf_box_getchildbox)) return;
if(sprx_dlsym(__handle, "lJxTpIpgTtg", &__ptr_isobmf_box_getdiskoffset)) return;
if(sprx_dlsym(__handle, "uj8oGGu4uow", &__ptr_isobmf_box_getflags32b)) return;
if(sprx_dlsym(__handle, "mLOiEi-xKxY", &__ptr_isobmf_box_getmember_length)) return;
if(sprx_dlsym(__handle, "bi7s+MGJqII", &__ptr_isobmf_box_getmember_ptr)) return;
if(sprx_dlsym(__handle, "b9pVidwn2zU", &__ptr_isobmf_box_getmember_type)) return;
if(sprx_dlsym(__handle, "Q4PE3rWPS6Y", &__ptr_isobmf_box_getnextbox)) return;
if(sprx_dlsym(__handle, "3XaFUrB8Bns", &__ptr_isobmf_box_getstate)) return;
if(sprx_dlsym(__handle, "F0ZOyF38ynA", &__ptr_isobmf_box_gettype)) return;
if(sprx_dlsym(__handle, "UBEiRuWypeA", &__ptr_isobmf_decoder_clear)) return;
if(sprx_dlsym(__handle, "i6cUWwgcRl4", &__ptr_isobmf_decoder_create)) return;
if(sprx_dlsym(__handle, "TwlpNb2TjhM", &__ptr_isobmf_decoder_decode)) return;
if(sprx_dlsym(__handle, "xfrFfxRfm0c", &__ptr_isobmf_decoder_destroy)) return;
if(sprx_dlsym(__handle, "uzXBOD-IILs", &__ptr_isobmf_decoder_get_decoder_tree)) return;
if(sprx_dlsym(__handle, "JKJK4IdI5DE", &__ptr_isobmf_decoder_getquerydata)) return;
if(sprx_dlsym(__handle, "2WQSpbbBBUU", &__ptr_isobmf_decoder_next_disk_offset)) return;
if(sprx_dlsym(__handle, "Qj2wX5hFDq8", &__ptr_isobmf_decoder_query)) return;
if(sprx_dlsym(__handle, "NlTtYet81fQ", &__ptr_isobmf_memmanager_set)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}