aboutsummaryrefslogtreecommitdiffstats
path: root/fw/pseudo/powerplay_command_surface.c
blob: c3e1bcbdde68d8d1463b87f271d748a8f8e67226 (plain) (blame)
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
// POWERPLAY TA command surface, decompiled with restored names, prototypes and types.
// Source: psp_out/versions_win/ta_34-0-0-20_e391bdbb.bin
// Handlers resolved from fw/cmdmaps/powerplay.json; loc_* labels mapped to their
// containing function. Generated by fw/ta_surface.py.

// ================ cmd 0x6 @ 0x4028b8 ================
int __fastcall powerplay_cmd06(void *ctx, struct ta_params *params)
{
  int (__fastcall *v2)(void *, struct ta_params *); // r2

  v2 = (int (__fastcall *)(void *, struct ta_params *))off_4028E8[9];
  if ( v2 != nullptr )
    return v2(a1: ctx, a2: params);
  else
    return dword_4028EC;
}

// ================ cmd 0x0, 0x1 @ 0x4028c4 ================
int __fastcall powerplay_cmd00(void *ctx, struct ta_params *params)
{
  int (__fastcall *v2)(void *, struct ta_params *); // r3

  v2 = (int (__fastcall *)(void *, struct ta_params *))off_4028E8[3];
  if ( v2 != nullptr )
    return v2(a1: ctx, a2: params);
  else
    return 2;
}

// ================ cmd 0x5 @ 0x4028d0 ================
int __fastcall powerplay_cmd05(void *ctx, struct ta_params *params)
{
  int (__fastcall *v2)(void *, struct ta_params *); // r2

  v2 = (int (__fastcall *)(void *, struct ta_params *))off_4028E8[8];
  if ( v2 != nullptr )
    return v2(a1: ctx, a2: params);
  else
    return dword_4028EC;
}

// ================ cmd 0x2 @ 0x4028dc ================
int __fastcall powerplay_cmd02(void *ctx, struct ta_params *params)
{
  int (__fastcall *v2)(void *, struct ta_params *); // r2

  v2 = (int (__fastcall *)(void *, struct ta_params *))off_4028E8[5];
  if ( v2 != nullptr )
    return v2(a1: ctx, a2: params);
  else
    return dword_4028EC;
}

// ================ cmd 0x4 @ 0x4063d0 ================
int __fastcall powerplay_cmd04(void *ctx, struct ta_params *params)
{
  int (__fastcall *v2)(void *, struct ta_params *); // r2

  v2 = (int (__fastcall *)(void *, struct ta_params *))off_4063E8[7];
  if ( v2 != nullptr )
    return v2(a1: ctx, a2: params);
  else
    return dword_4063EC;
}

// ================ cmd 0x3 @ 0x4063dc ================
int __fastcall powerplay_cmd03(void *ctx, struct ta_params *params)
{
  int (__fastcall *v2)(void *, struct ta_params *); // r2

  v2 = (int (__fastcall *)(void *, struct ta_params *))off_4063E8[6];
  if ( v2 != nullptr )
    return v2(a1: ctx, a2: params);
  else
    return dword_4063EC;
}