Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned int __fastcall makePID__(unsigned int idSet, int speciesValue, void *b, int generationType, void *d, void *e)
- {
- int v6; // r5@1
- unsigned int v7; // r6@1
- int v8; // r4@1
- unsigned int PID; // r4@2
- unsigned int v10; // r7@3
- unsigned int v11; // r4@3
- void *v13; // [sp+0h] [bp-18h]@1
- v6 = generationType;
- v7 = idSet;
- v8 = speciesValue;
- v13 = b;
- if ( generationType == 2 )
- {
- PID = rand__();
- }
- else
- {
- v10 = rand__() & 0xFFFFFF00;
- v11 = sub_2018614(v8, v13, v6);
- if ( v6 || (sub_201AF88)() )
- {
- if ( v6 == 1 && !sub_201AF88(v11) )
- v11 = rand__() + 1;
- }
- else
- {
- v11 += rand__();
- }
- PID = v11 | v10;
- }
- if ( e )
- {
- if ( e == 1 )
- {
- PID = PID | ((v7 ^ ((v7 & 0xFFFF0000) >> 16) ^ PID) << 16);
- if ( (PID & 0x10000) != d << 16 )
- goto LABEL_19;
- return PID;
- }
- if ( e != 2 )
- return PID;
- }
- else if ( checkShiny__(v7, PID) == 1 )
- {
- PID ^= 0x10000000u;
- }
- if ( (PID & 0x10000) != d << 16 )
- LABEL_19:
- PID ^= 0x10000u;
- return PID;
- }
Advertisement
Add Comment
Please, Sign In to add comment