This source file includes following definitions.
- set_quality
- movie_record_task
- sub_FFD13328_my
- change_video_tables
1 #include "conf.h"
2
3 int *video_quality = &conf.video_quality;
4 int *video_mode = &conf.video_mode;
5
6 void set_quality(int *x){
7 if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
8 }
9
10
11 void __attribute__((naked,noinline)) movie_record_task(){
12 asm volatile(
13 "STMFD SP!, {R2-R8,LR}\n"
14 "LDR R8, =0x346\n"
15 "LDR R7, =0x2710\n"
16 "LDR R4, =0x56C0\n"
17 "MOV R6, #0\n"
18 "MOV R5, #1\n"
19 "loc_FFD13834:\n"
20 "LDR R0, [R4,#0x18]\n"
21 "MOV R2, #0\n"
22 "ADD R1, SP, #4\n"
23 "BL sub_FFC28E74 \n"
24 "LDR R0, [R4,#0x20]\n"
25 "CMP R0, #0\n"
26 "BNE loc_FFD13904\n"
27 "LDR R0, [SP,#4]\n"
28 "LDR R1, [R0]\n"
29 "SUB R1, R1, #2\n"
30 "CMP R1, #9\n"
31 "ADDLS PC, PC, R1,LSL#2\n"
32 "B loc_FFD13904\n"
33 "loc_FFD13868:\n"
34 "B loc_FFD138B8\n"
35 "loc_FFD1386C:\n"
36 "B loc_FFD138D8\n"
37 "loc_FFD13870:\n"
38 "B loc_FFD138E8\n"
39 "loc_FFD13874:\n"
40 "B loc_FFD138F0\n"
41 "loc_FFD13878:\n"
42 "B loc_FFD138C0\n"
43 "loc_FFD1387C:\n"
44 "B loc_FFD138F8\n"
45 "loc_FFD13880:\n"
46 "B loc_FFD138C8\n"
47 "loc_FFD13884:\n"
48 "B loc_FFD13904\n"
49 "loc_FFD13888:\n"
50 "B loc_FFD13900\n"
51 "loc_FFD1388C:\n"
52 "B loc_FFD13890\n"
53 "loc_FFD13890:\n"
54 "LDR R0, =0xFFD13528\n"
55 "STR R6, [R4,#0x34]\n"
56 "STR R0, [R4,#0xA8]\n"
57 "LDR R0, =0xFFD12FB8\n"
58 "LDR R2, =0xFFD12ED4\n"
59 "LDR R1, =0x6F460\n"
60 "STR R6, [R4,#0x24]\n"
61 "BL sub_FFCBA0D8\n"
62 "STR R5, [R4,#0x38]\n"
63 "B loc_FFD13904\n"
64 "loc_FFD138B8:\n"
65 "BL unlock_optical_zoom\n"
66 "BL sub_FFD13620\n"
67 "B loc_FFD13904\n"
68 "loc_FFD138C0:\n"
69
70 "BL sub_FFD13328_my\n"
71 "B loc_FFD13904\n"
72 "loc_FFD138C8:\n"
73 "LDR R1, [R0,#0x10]\n"
74 "LDR R0, [R0,#4]\n"
75 "BL sub_FFE03438 \n"
76 "B loc_FFD13904\n"
77 "loc_FFD138D8:\n"
78 "LDR R0, [R4,#0x38]\n"
79 "CMP R0, #5\n"
80 "STRNE R5, [R4,#0x28]\n"
81 "B loc_FFD13904\n"
82 "loc_FFD138E8:\n"
83 "BL sub_FFD13140\n"
84 "B loc_FFD13904\n"
85 "loc_FFD138F0:\n"
86 "BL sub_FFD13004\n"
87 "B loc_FFD13904\n"
88 "loc_FFD138F8:\n"
89 "BL sub_FFD12E60\n"
90 "B loc_FFD13904\n"
91 "loc_FFD13900:\n"
92 "BL sub_FFD13A6C\n"
93 "loc_FFD13904:\n"
94 "LDR R1, [SP,#4]\n"
95 "LDR R3, =0xFFD12CF0\n"
96 "STR R6, [R1]\n"
97 "STR R8, [SP]\n"
98 "LDR R0, [R4,#0x1C]\n"
99 "MOV R2, R7\n"
100 "BL sub_FFC0F528\n"
101 "B loc_FFD13834\n"
102 );
103 }
104
105 void __attribute__((naked,noinline)) sub_FFD13328_my(){
106 asm volatile(
107 "STMFD SP!, {R4-R8,LR}\n"
108 "SUB SP, SP, #0x40\n"
109 "MOV R6, #0\n"
110 "LDR R5, =0x56C0\n"
111 "MOV R4, R0\n"
112 "STR R6, [SP,#0x30]\n"
113 "STR R6, [SP,#0x28]\n"
114 "LDR R0, [R5,#0x38]\n"
115 "MOV R8, #4\n"
116 "CMP R0, #3\n"
117 "STREQ R8, [R5,#0x38]\n"
118 "LDR R0, [R5,#0xA8]\n"
119 "BLX R0\n"
120 "LDR R0, [R5,#0x38]\n"
121 "CMP R0, #4\n"
122 "BNE loc_FFD13400\n"
123 "ADD R3, SP, #0x28\n"
124 "ADD R2, SP, #0x2C\n"
125 "ADD R1, SP, #0x30\n"
126 "ADD R0, SP, #0x34\n"
127 "BL sub_FFE035CC\n"
128 "CMP R0, #0\n"
129 "MOV R7, #1\n"
130 "BNE loc_FFD133A4\n"
131 "LDR R1, [R5,#0x28]\n"
132 "CMP R1, #1\n"
133 "BNE loc_FFD13408\n"
134 "LDR R1, [R5,#0x60]\n"
135 "LDR R2, [R5,#0x3C]\n"
136 "CMP R1, R2\n"
137 "BCC loc_FFD13408\n"
138 "loc_FFD133A4:\n"
139 "CMP R0, #0x80000001\n"
140 "STREQ R8, [R5,#0x64]\n"
141 "BEQ loc_FFD133DC\n"
142 "CMP R0, #0x80000003\n"
143 "STREQ R7, [R5,#0x64]\n"
144 "BEQ loc_FFD133DC\n"
145 "CMP R0, #0x80000005\n"
146 "MOVEQ R0, #2\n"
147 "BEQ loc_FFD133D8\n"
148 "CMP R0, #0x80000007\n"
149 "STRNE R6, [R5,#0x64]\n"
150 "BNE loc_FFD133DC\n"
151 "MOV R0, #3\n"
152 "loc_FFD133D8:\n"
153 "STR R0, [R5,#0x64]\n"
154 "loc_FFD133DC:\n"
155 "LDR R0, =0x6F490\n"
156 "LDR R0, [R0,#8]\n"
157 "CMP R0, #0\n"
158 "BEQ loc_FFD133F4\n"
159 "BL sub_FFC45588\n"
160 "B loc_FFD133F8\n"
161 "loc_FFD133F4:\n"
162 "BL sub_FFD12E60 \n"
163 "loc_FFD133F8:\n"
164 "MOV R0, #5\n"
165 "STR R0, [R5,#0x38]\n"
166 "loc_FFD13400:\n"
167 "ADD SP, SP, #0x40\n"
168 "LDMFD SP!, {R4-R8,PC}\n"
169 "loc_FFD13408:\n"
170 "LDR LR, [SP,#0x30]\n"
171 "CMP LR, #0\n"
172 "BEQ loc_FFD134D0\n"
173 "STR R7, [R5,#0x2C]\n"
174 "LDR R0, [R5,#0x7C]\n"
175 "LDR R1, [R4,#0x14]\n"
176 "LDR R2, [R4,#0x18]\n"
177 "LDR R12, [R4,#0xC]\n"
178 "ADD R3, SP, #0x38\n"
179 "ADD R8, SP, #0x14\n"
180 "STMIA R8, {R0-R3}\n"
181 "LDR R3, [R5,#0x68]\n"
182 "ADD R2, SP, #0x3C\n"
183 "ADD R8, SP, #8\n"
184 "LDRD R0, [SP,#0x28]\n"
185 "STMIA R8, {R0,R2,R3}\n"
186 "STR R1, [SP,#4]\n"
187 "STR LR, [SP]\n"
188 "LDMIB R4, {R0,R1}\n"
189 "LDR R3, [SP,#0x34]\n"
190 "MOV R2, R12\n"
191 "BL sub_FFDD8270\n"
192 "LDR R0, [R5,#0x10]\n"
193 "LDR R1, [R5,#0x58]\n"
194 "BL sub_FFC0EF9C \n"
195 "CMP R0, #9\n"
196 "BNE loc_FFD13484\n"
197 "BL sub_FFE03BB8\n"
198 "MOV R0, #0x90000\n"
199 "STR R7, [R5,#0x38]\n"
200 "B loc_FFD1349C\n"
201 "loc_FFD13484:\n"
202 "LDR R0, [SP,#0x38]\n"
203 "CMP R0, #0\n"
204 "BEQ loc_FFD134A4\n"
205 "BL sub_FFE03BB8\n"
206 "MOV R0, #0xA0000\n"
207 "STR R7, [R5,#0x38]\n"
208 "loc_FFD1349C:\n"
209 "BL sub_FFC701C0\n"
210 "B loc_FFD13400\n"
211 "loc_FFD134A4:\n"
212 "BL sub_FFDD8334\n"
213 "LDR R0, [SP,#0x34]\n"
214 "LDR R1, [SP,#0x3C]\n"
215 "BL sub_FFE03960 \n"
216 "LDR R0, [R5,#0x5C]\n"
217 "LDR R1, =0x573C\n"
218 "ADD R0, R0, #1\n"
219 "STR R0, [R5,#0x5C]\n"
220 "LDR R0, [SP,#0x3C]\n"
221 "MOV R2, #0\n"
222 "BL sub_FFE01784\n"
223 "LDR R0, =0x573C\n"
224 "BL set_quality\n"
225 "loc_FFD134D0:\n"
226 "LDR R0, [R5,#0x60]\n"
227 "ADD R0, R0, #1\n"
228 "STR R0, [R5,#0x60]\n"
229 "LDR R1, [R5,#0x4C]\n"
230 "MUL R0, R1, R0\n"
231 "LDR R1, [R5,#0x48]\n"
232 "BL sub_FFE8F028\n"
233 "MOV R4, R0\n"
234 "BL sub_FFE03BF0\n"
235 "LDR R1, [R5,#0x80]\n"
236 "CMP R1, R4\n"
237 "BNE loc_FFD1350C\n"
238 "LDR R0, [R5,#0x30]\n"
239 "CMP R0, #1\n"
240 "BNE loc_FFD13520\n"
241 "loc_FFD1350C:\n"
242 "LDR R1, [R5,#0x8C]\n"
243 "MOV R0, R4\n"
244 "BLX R1\n"
245 "STR R4, [R5,#0x80]\n"
246 "STR R6, [R5,#0x30]\n"
247 "loc_FFD13520:\n"
248 "STR R6, [R5,#0x2C]\n"
249 "B loc_FFD13400\n"
250 );
251 };
252
253 void change_video_tables(__attribute__ ((unused))int a, __attribute__ ((unused))int b) {}
254
255