-
Notifications
You must be signed in to change notification settings - Fork 4
/
0x81307B0C.txt
99 lines (85 loc) · 3.47 KB
/
0x81307B0C.txt
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
81307B0C 7C0802A6 mflr r0
81307B10 5465063E rlwinm r5, r3, 0, 24, 31 mask:0x000000FF
81307B14 90010004 stw r0, 4 (r1)
81307B18 20850010 subfic r4, r5, 16
81307B1C 38000001 li r0, 1
81307B20 9421FFC0 stwu r1, -64 (r1)
81307B24 28050000 cmplwi r5, 0
81307B28 38C00000 li r6, 0
81307B2C DBE10038 stfd fr31, 56 (r1)
81307B30 DBC10030 stfd fr30, 48 (r1)
81307B34 93E1002C stw r31, 44 (r1)
81307B38 93C10028 stw r30, 40 (r1)
81307B3C 93A10024 stw r29, 36 (r1)
81307B40 908D837C stw r4, -0x7C84 (r13)
81307B44 B00D8378 sth r0, -0x7C88 (r13)
81307B48 408100AC ble- 0x81307BF4
81307B4C 28050008 cmplwi r5, 8
81307B50 3803FFF8 subi r0, r3, 8
81307B54 4081007C ble- 0x81307BD0
81307B58 5400063E rlwinm r0, r0, 0, 24, 31 mask:0x000000FF
81307B5C 48000068 b 0x81307BC4
81307B60
r6 += 8
(u16)(var_7C88) <<= 8;
81307BC4
r4 = r6 & 0xff
if ( r4 < r0 ) goto 0x81307B60
81307BD0
r0 = r3 & 0xff
goto 0x81307BE8
81307BD8
r6++;
(u16)(var_7C88) <<= 1;
81307BE8
r3 = r6 & 0xff;
if ( r3 < r0 ) goto 0x81307BD8
-----
81307BF4 A06D8378 lhz r3, -0x7C88 (r13)
81307BF8 7C601670 srawi r0, r3, 2
81307BFC 7C000194 addze r0, r0
81307C00 7C030214 add r0, r3, r0
81307C04 5403103A rlwinm r3, r0, 2, 0, 29 mask:0xFFFFFFFC
81307C08 48000239 bl HeapAlloc
81307C0C 906D8380 stw r3, -0x7C80 (r13)
81307C10 800D8380 lwz r0, -0x7C80 (r13)
81307C14 28000000 cmplwi r0, 0
81307C18 4082000C bne- 0x81307C24
81307C1C 38600000 li r3, 0
81307C20 4800008C b 0x81307CAC
81307C24 C3C28118 lfs fr30, -0x7EE8 (r2)
81307C28 3BA00000 li r29, 0
81307C2C CBE28120 lfd fr31, -0x7EE0 (r2)
81307C30 3BC00000 li r30, 0
81307C34 3FE04330 lis r31, 0x4330
81307C38 48000044 b 0x81307C7C
81307C3C 9081001C stw r4, 28 (r1)
81307C40 57A0043E rlwinm r0, r29, 0, 16, 31 mask:0x0000FFFF
81307C44 93E10018 stw r31, 24 (r1)
81307C48 C8010018 lfd fr0, 24 (r1)
81307C4C 90010014 stw r0, 20 (r1)
81307C50 EC00F828 fsubs fr0, fr0, fr31
81307C54 93E10010 stw r31, 16 (r1)
81307C58 EC3E0024 fdivs fr1, fr30, fr0
81307C5C C8010010 lfd fr0, 16 (r1)
81307C60 EC00F828 fsubs fr0, fr0, fr31
81307C64 EC210032 fmuls fr1, fr1, fr0
81307C68 48076C11 bl sinf
81307C6C 806D8380 lwz r3, -0x7C80 (r13)
81307C70 3BBD0001 addi r29, r29, 1
81307C74 7C23F52E stfsx fr1, r3, r30
81307C78 3BDE0004 addi r30, r30, 4
81307C7C A08D8378 lhz r4, -0x7C88 (r13)
81307C80 57A3043E rlwinm r3, r29, 0, 16, 31 mask:0x0000FFFF
81307C84 7C851670 srawi r5, r4, 2
81307C88 7CA50194 addze r5, r5
81307C8C 7C042A14 add r0, r4, r5
81307C90 7C030000 cmpw r3, r0
81307C94 4180FFA8 blt+ 0x81307C3C
81307C98 808D8380 lwz r4, -0x7C80 (r13)
81307C9C 54A0103A rlwinm r0, r5, 2, 0, 29 mask:0xFFFFFFFC
81307CA0 38600001 li r3, 1
81307CA4 7C040214 add r0, r4, r0
81307CA8 900D8384 stw r0, -0x7C7C (r13)
81307CAC
return