summaryrefslogtreecommitdiff
path: root/src/code_8027C84_pre.c
blob: 2dbdd6657913deb8b7480569071c5e343abf8e23 (plain)
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
#include "global.h"


struct UnkOtherStructTemp
{
    /* 0x0 */ u32 unk0;
    /* 0x4 */ u32 unk4;
    /* 0x8 */ u32 unk8;
    /* 0xC */ u32 unkC;
    /* 0x10 */ u32 unk10;
    /* 0x14 */ u32 unk14;
    /* 0x18 */ u32 unk18;
    /* 0x1C */ u32 unk1C;
    /* 0x20 */ u16 *unk20;
    /* 0x24 */ u16 unk24;
    /* 0x26 */ u16 unk26;
    /* 0x28 */ u16 unk28;
    /* 0x2A */ u16 unk2A;
};

struct UnkStructTemp
{
    /* 0x0 */ u32 unk0;
    /* 0x4 */ u32 unk4;
    /* 0x8 */ u32 unk8;
    /* 0xC */ u32 unkC;
    /* 0x10 */ u32 unk10;
    /* 0x14 */ u32 unk14;
    /* 0x18 */ u32 unk18;
    /* 0x1C */ u32 unk1C;
    /* 0x20 */ struct UnkOtherStructTemp *unk20;
    /* 0x24 */ u16 unk24;
    /* 0x26 */ u16 unk26;
    /* 0x28 */ u16 unk28;
    /* 0x2A */ u16 unk2A;
};


extern struct UnkStructTemp *gUnknown_203B2BC;
u32 sub_801B410();
void sub_801B450();
void sub_8027184(u8 r0);
u32 sub_801EF38(u8 r0);
struct UnkOtherStructTemp *sub_801F194();
void sub_8027184(u8 r0);
void sub_801F214();

void sub_8027C84()
{
    u32 temp = sub_801B410();
    if(temp <= 1)
        return;
    if(temp > 3)
        return;
    sub_801B450();
    sub_8027184(0xB);
}

//void sub_8027CA0()
//{
//    struct UnkOtherStructTemp *temp_store;
//    u32 temp = sub_801EF38(1);
//    if(temp > 4)
//        return;
//    switch(temp)
//    {
//        case 0:
//        case 1:
//            break;
//        case 2:
//            sub_801F214();
//            sub_8027184(0x2);
//            return;
//        case 3:
//        case 4:
//            temp_store = sub_801F194();
//            gUnknown_203B2BC->unk20 = temp_store;
//            // TODO missing
//            // lsls r0, 3
//            // adds r0, r1, r0
//            // Why are we shifting the pointer by 3?
//            gUnknown_203B2BC->unk24 = temp_store->unk2A;
//            sub_8027184(0x10);
//            break;
//    }
//}