Go to the source code of this file.
◆ load_engine_data_obfuscated()
void load_engine_data_obfuscated |
( |
void | | ) |
|
Definition at line 13 of file load_engine_data_obfuscated.c.
13 {
14 s32 seed = 0x3C01A775;
15 u32 thisInsn = 0xB0018FFC;
17 s32 hash = 0;
18 u32 prevInsn;
19 u32* it;
20
21 while (IO_READ(PI_STATUS_REG) & (PI_STATUS_DMA_BUSY | PI_STATUS_IO_BUSY));
22 seed -= IO_READ(thisInsn + 0xFFFE7508);
23
24 prevInsn = 0;
25
26 for (it = (u32*) create_audio_system_obfuscated_ROM_START; it < (u32*) create_audio_system_obfuscated_ROM_END; it++) {
27 while (IO_READ(PI_STATUS_REG) & (PI_STATUS_DMA_BUSY | PI_STATUS_IO_BUSY));
28 thisInsn = IO_READ(it + 0x4000000);
29
31
36 {
37 hash -=
LOWER(thisInsn);
38 hash -=
LOWER(prevInsn);
39 }
40
42 hash -=
LOWER(thisInsn) + (
UPPER(thisInsn) & 0xFC00);
43 }
44
45 prevInsn = thisInsn;
46 }
47
50}
u8 obfuscated_load_engine_data[]
void load_engine_data(void)
Referenced by shim_load_engine_data_obfuscated().
◆ obfuscated_load_engine_data
u8 obfuscated_load_engine_data[] |
|
extern |