-
-
Save zbanks/52f4fe72a401feb7dd9d265d5bcd863e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f32 FConverge__Fffff(f32, f32, f32, f32); /* extern */ | |
? catching__6TMarioFv(void *); /* extern */ | |
? changePlayerDropping__6TMarioFUlUl(void *, ?, ?); /* extern */ | |
? changePlayerJumping__6TMarioFUlUl(void *, ?, ?); /* extern */ | |
? changePlayerStatus__6TMarioFUlUlb(void *, s32, ?, ?); /* extern */ | |
? checkAllMotions__6TMarioFv(void *); /* extern */ | |
? checkEnforceJump__6TMarioFv(? *); /* extern */ | |
s32 doSliding__6TMarioFf(void *); /* extern */ | |
? downingCommon__6TMarioFifi(void *, ?, s32, f32); /* extern */ | |
? emitParticle__6TMarioFi(void *, ?); /* extern */ | |
? fireDashing__6TMarioFv(void *); /* extern */ | |
s8 gateCheck__6MSoundFUl(s32, ?); /* extern */ | |
? getSlideStopNormal__6TMarioFv(void *); /* extern */ | |
s32 jumpSlipCommon__6TMarioFsUl(void *, ?, ?); /* extern */ | |
s32 jumpSlipEvents__6TMarioFPQ26TMario14JumpSlipRecord(void *, void *); /* extern */ | |
? loserDown__6TMarioFv(void *); /* extern */ | |
? oilRun__6TMarioFv(void *); /* extern */ | |
? oilSlip__6TMarioFv(void *); /* extern */ | |
? playerRefrection__6TMarioFi(void *, ?); /* extern */ | |
? rotating__6TMarioFv(void *); /* extern */ | |
? rumbleStart__6TMarioFii(void *, ?, s16); /* extern */ | |
? running__6TMarioFv(void *); /* extern */ | |
? setAnimation__6TMarioFif(void *, ?, f32); /* extern */ | |
? setNormalAttackArea__6TMarioFv(void *); /* extern */ | |
? setPlayerVelocity__6TMarioFf(void *, f32); /* extern */ | |
? slipBackCommon__6TMarioFiii(void *, ?, ?, ?); /* extern */ | |
? slipForeCommon__6TMarioFiiii(void *, ?, ?, ?, ?); /* extern */ | |
? slippingBasic__6TMarioFiii(void *, ?, ?, ?); /* extern */ | |
? slopeProcess__6TMarioFv(void *); /* extern */ | |
? soundTorocco__6TMarioFv(void *); /* extern */ | |
? stamp__17TPollutionManagerFUsffff(s32, ?, f32, f32, f32, f32); /* extern */ | |
? startSoundActor__Q214MSoundSESystem8MSoundSEFUlPC3VecUlPP8JAISoundUlUc(?, void *, ?, ?, ?, ?); /* extern */ | |
? surfing__6TMarioFv(void *); /* extern */ | |
? toroccoEffect__6TMarioFv(void *); /* extern */ | |
? turnEnd__6TMarioFv(void *); /* extern */ | |
? turnning__6TMarioFv(void *); /* extern */ | |
? walkEnd__6TMarioFv(void *); /* extern */ | |
s32 walkProcess__6TMarioFv(void *); /* extern */ | |
extern s32 gpMSound; | |
extern s32 gpPollution; | |
static ? $$21431; /* unable to generate initializer */ | |
? moveMain__6TMarioFv(void *arg0, s32 arg1) { | |
f32 temp_f1; | |
s16 temp_r28; | |
s32 temp_r0; | |
s32 temp_r3; | |
s32 temp_r3_10; | |
s32 temp_r3_11; | |
s32 temp_r3_9; | |
s32 temp_r4; | |
u16 temp_r3_2; | |
u16 temp_r3_3; | |
u16 temp_r3_4; | |
u16 temp_r3_5; | |
u16 temp_r3_6; | |
u16 temp_r3_7; | |
u16 temp_r3_8; | |
s8 phi_r0; | |
s8 phi_r0_2; | |
s8 phi_r0_3; | |
s32 phi_r28; | |
? phi_r3; | |
? phi_r0_4; | |
? phi_r0_5; | |
? phi_r0_6; | |
? phi_r0_7; | |
? phi_r3_2; | |
? phi_r0_8; | |
? phi_r3_3; | |
? phi_r30; | |
? phi_r0_9; | |
checkEnforceJump__6TMarioFv(&$$21431); | |
arg0->unk0->unkC4(arg0); | |
temp_r4 = arg0->unk7C; | |
phi_r30 = 0; | |
if ((temp_r4 & 0x40000) != 0) { | |
phi_r0 = 1; | |
} else { | |
phi_r0 = 0; | |
} | |
if (phi_r0 != 0) { | |
if ((temp_r4 & 0x40000) != 0) { | |
phi_r0_2 = 1; | |
} else { | |
phi_r0_2 = 0; | |
} | |
if (phi_r0_2 == 0) { | |
if ((temp_r4 & 0x840000) != 0) { | |
phi_r0_3 = 1; | |
} else { | |
phi_r0_3 = 0; | |
} | |
if ((phi_r0_3 == 0) && (gateCheck__6MSoundFUl(gpMSound, 0x1009) != 0)) { | |
startSoundActor__Q214MSoundSESystem8MSoundSEFUlPC3VecUlPP8JAISoundUlUc(0x1009, arg0 + 0x10, 0, 0, 0, 4); | |
} | |
} | |
} | |
temp_r0 = arg0->unk7C; | |
if (temp_r0 != 0x800000) { | |
if (temp_r0 < 0x800000) { | |
if (temp_r0 != 0x20000) { | |
if (temp_r0 < 0x20000) { | |
if (temp_r0 != 0x44C) { | |
if (temp_r0 < 0x44C) { | |
if (temp_r0 != 0x443) { | |
if (temp_r0 < 0x443) { | |
if (temp_r0 < 0x441) { | |
return 0; | |
} | |
return rotating__6TMarioFv(arg0); | |
} | |
if (temp_r0 < 0x445) { | |
return turnEnd__6TMarioFv(arg0); | |
} | |
/* Duplicate return node #169. Try simplifying control flow for better match */ | |
return phi_r30; | |
} | |
return turnning__6TMarioFv(arg0); | |
} | |
if (temp_r0 != 0x20449) { | |
if (temp_r0 < 0x20449) { | |
if (temp_r0 != 0x479) { | |
return 0; | |
} | |
temp_r3 = arg0->unk74; | |
if ((temp_r3 & 0x4000) == 0) { | |
arg0->unk74 = (s32) (temp_r3 & 0xFFFFFFFD); | |
} | |
if (jumpSlipEvents__6TMarioFPQ26TMario14JumpSlipRecord(arg0, &$$21431 + 0x9C) != 0) { | |
phi_r0_9 = 1; | |
} else { | |
jumpSlipCommon__6TMarioFsUl(arg0, 0x98, 0x88C); | |
phi_r0_9 = 0; | |
} | |
phi_r30 = phi_r0_9; | |
/* Duplicate return node #169. Try simplifying control flow for better match */ | |
return phi_r30; | |
} | |
if (temp_r0 < 0x20460) { | |
return 0; | |
} | |
temp_r3_2 = arg0->unk86; | |
if ((u32) temp_r3_2 == 0U) { | |
arg0->unk86 = (u16) (temp_r3_2 + 1); | |
emitParticle__6TMarioFi(arg0, 0xC); | |
rumbleStart__6TMarioFii(arg0, 0x15, arg0->unk27F8); | |
} | |
downingCommon__6TMarioFifi(arg0, 1, arg0->unk88, 86.0f); | |
return 0; | |
} | |
return fireDashing__6TMarioFv(arg0); | |
} | |
temp_r28 = arg0->unk96; | |
getSlideStopNormal__6TMarioFv(arg0); | |
if (doSliding__6TMarioFf(arg0) != 0) { | |
phi_r3 = changePlayerStatus__6TMarioFUlUlb(arg0, 0xC000000, 0, 0); | |
} else { | |
slippingBasic__6TMarioFiii(arg0, 0xC000000, 0x2000000, 0xF); | |
arg0->unk96 = temp_r28; | |
phi_r3 = 0; | |
} | |
return phi_r3; | |
} | |
if (temp_r0 != 0x20467) { | |
if (temp_r0 < 0x20467) { | |
if (temp_r0 != 0x20464) { | |
if (temp_r0 < 0x20464) { | |
if (temp_r0 < 0x20463) { | |
temp_r3_3 = arg0->unk86; | |
if ((u32) temp_r3_3 == 0U) { | |
arg0->unk86 = (u16) (temp_r3_3 + 1); | |
emitParticle__6TMarioFi(arg0, 0xC); | |
rumbleStart__6TMarioFii(arg0, 0x15, arg0->unk27F8); | |
} | |
downingCommon__6TMarioFifi(arg0, 0x7B, arg0->unk88, 88.0f); | |
return 0; | |
} | |
temp_r3_4 = arg0->unk86; | |
if ((u32) temp_r3_4 == 0U) { | |
arg0->unk86 = (u16) (temp_r3_4 + 1); | |
emitParticle__6TMarioFi(arg0, 0xC); | |
rumbleStart__6TMarioFii(arg0, 0x15, arg0->unk27F8); | |
} | |
downingCommon__6TMarioFifi(arg0, 0x7C, arg0->unk88, 80.0f); | |
return 0; | |
} | |
if (temp_r0 < 0x20466) { | |
temp_r3_5 = arg0->unk86; | |
if ((u32) temp_r3_5 == 0U) { | |
arg0->unk86 = (u16) (temp_r3_5 + 1); | |
emitParticle__6TMarioFi(arg0, 0xC); | |
rumbleStart__6TMarioFii(arg0, 0x15, arg0->unk27F8); | |
} | |
downingCommon__6TMarioFifi(arg0, 0x75, arg0->unk88, 100.0f); | |
return 0; | |
} | |
temp_r3_6 = arg0->unk86; | |
if ((u32) temp_r3_6 == 0U) { | |
arg0->unk86 = (u16) (temp_r3_6 + 1); | |
emitParticle__6TMarioFi(arg0, 0xC); | |
rumbleStart__6TMarioFii(arg0, 0x15, arg0->unk27F8); | |
} | |
downingCommon__6TMarioFifi(arg0, 0x8A, arg0->unk88, 128.0f); | |
return 0; | |
} | |
temp_r3_7 = arg0->unk86; | |
if ((u32) temp_r3_7 == 0U) { | |
arg0->unk86 = (u16) (temp_r3_7 + 1); | |
emitParticle__6TMarioFi(arg0, 0xC); | |
rumbleStart__6TMarioFii(arg0, 0x15, arg0->unk27F8); | |
} | |
downingCommon__6TMarioFifi(arg0, 0x74, arg0->unk88, 200.0f); | |
return 0; | |
} | |
if (temp_r0 != 0x40000) { | |
if (temp_r0 < 0x40000) { | |
if (temp_r0 < 0x4045C) { | |
return 0; | |
} | |
return oilRun__6TMarioFv(arg0); | |
} | |
if (temp_r0 < 0x4045F) { | |
arg0->unk13C = (s16) (arg0->unk13C - 1); | |
if ((s32) arg0->unk13C <= 0) { | |
arg0->unk13C = 0; | |
arg0->unk138 = 0.0f; | |
changePlayerStatus__6TMarioFUlUlb(arg0, 0x800456, 0, 0); | |
} | |
stamp__17TPollutionManagerFUsffff(gpPollution, 1, arg0->unk10, arg0->unk14, arg0->unk18, arg0->unk269C); | |
return slipBackCommon__6TMarioFiii(arg0, 0x386, 0x88C, 0x89); | |
} | |
/* Duplicate return node #169. Try simplifying control flow for better match */ | |
return phi_r30; | |
} | |
/* Duplicate return node #169. Try simplifying control flow for better match */ | |
return phi_r30; | |
} | |
return loserDown__6TMarioFv(arg0); | |
} | |
temp_r3_8 = arg0->unk86; | |
if ((u32) temp_r3_8 == 0U) { | |
arg0->unk86 = (u16) (temp_r3_8 + 1); | |
emitParticle__6TMarioFi(arg0, 0xC); | |
rumbleStart__6TMarioFii(arg0, 0x15, arg0->unk27F8); | |
} | |
downingCommon__6TMarioFifi(arg0, 0x2C, arg0->unk88, 42.0f); | |
return 0; | |
} | |
if (temp_r0 != 0x4000000) { | |
if (temp_r0 < 0x4000000) { | |
if (temp_r0 != 0x840000) { | |
if (temp_r0 < 0x840000) { | |
if (temp_r0 != 0x810000) { | |
if (temp_r0 < 0x810000) { | |
if (temp_r0 != 0x800456) { | |
return 0; | |
} | |
return catching__6TMarioFv(arg0); | |
} | |
if (temp_r0 < 0x840452) { | |
return 0; | |
} | |
return slipForeCommon__6TMarioFiiii(arg0, 0xC000000, 0x2000000, 0x200088E, 0x91); | |
} | |
return surfing__6TMarioFv(arg0); | |
} | |
if (temp_r0 != 0x4000440) { | |
if (temp_r0 < 0x4000440) { | |
if (temp_r0 != 0x84045D) { | |
return 0; | |
} | |
return oilSlip__6TMarioFv(arg0); | |
} | |
/* Duplicate return node #169. Try simplifying control flow for better match */ | |
return phi_r30; | |
} | |
return running__6TMarioFv(arg0); | |
} | |
return slipBackCommon__6TMarioFiii(arg0, 0x386, 0x88C, 0x89); | |
} | |
if (temp_r0 != 0x4000473) { | |
if (temp_r0 < 0x4000473) { | |
if (temp_r0 != 0x4000470) { | |
if (temp_r0 < 0x4000470) { | |
if (temp_r0 != 0x400044A) { | |
return 0; | |
} | |
return walkEnd__6TMarioFv(arg0); | |
} | |
if (temp_r0 < 0x4000472) { | |
if (jumpSlipEvents__6TMarioFPQ26TMario14JumpSlipRecord(arg0, &$$21431 + 0x4C) != 0) { | |
phi_r0_4 = 1; | |
} else { | |
jumpSlipCommon__6TMarioFsUl(arg0, 0x57, 0x88C); | |
phi_r0_4 = 0; | |
} | |
return phi_r0_4; | |
} | |
if (jumpSlipEvents__6TMarioFPQ26TMario14JumpSlipRecord(arg0, &$$21431 + 0x60) != 0) { | |
phi_r0_5 = 1; | |
} else { | |
jumpSlipCommon__6TMarioFsUl(arg0, 0x4B, 0x88C); | |
phi_r0_5 = 0; | |
} | |
return phi_r0_5; | |
} | |
if (jumpSlipEvents__6TMarioFPQ26TMario14JumpSlipRecord(arg0, &$$21431 + 0x38) != 0) { | |
phi_r0_6 = 1; | |
} else { | |
jumpSlipCommon__6TMarioFsUl(arg0, 0x4E, 0x88C); | |
phi_r0_6 = 0; | |
} | |
return phi_r0_6; | |
} | |
if (temp_r0 != 0x4800000) { | |
if (temp_r0 < 0x4800000) { | |
if (temp_r0 != 0x4000478) { | |
return 0; | |
} | |
if (jumpSlipEvents__6TMarioFPQ26TMario14JumpSlipRecord(arg0, &$$21431 + 0x88) != 0) { | |
phi_r0_7 = 1; | |
} else { | |
jumpSlipCommon__6TMarioFsUl(arg0, 0xC0, 0x88C); | |
phi_r0_7 = 0; | |
} | |
return phi_r0_7; | |
} | |
return phi_r30; | |
} | |
setNormalAttackArea__6TMarioFv(arg0); | |
temp_r3_9 = arg0->unk74; | |
if ((temp_r3_9 & 8) != 0) { | |
phi_r3_2 = changePlayerStatus__6TMarioFUlUlb(arg0, 0x840000, 0, 0); | |
} else if ((temp_r3_9 & 2) != 0) { | |
phi_r3_2 = changePlayerJumping__6TMarioFUlUl(arg0, 0x2000000, 0); | |
} else if ((temp_r3_9 & 0x10) != 0) { | |
phi_r3_2 = changePlayerStatus__6TMarioFUlUlb(arg0, 0x4000000, 0, 0); | |
} else { | |
phi_r3_2 = slipForeCommon__6TMarioFiiii(arg0, 0xC000000, 0x2000000, 0x88C, 0x97); | |
} | |
return phi_r3_2; | |
} | |
if (jumpSlipEvents__6TMarioFPQ26TMario14JumpSlipRecord(arg0, &$$21431 + 0x74) != 0) { | |
phi_r0_8 = 1; | |
} else { | |
if (jumpSlipCommon__6TMarioFsUl(arg0, 0xBE, 0x88C) != 2) { | |
arg0->unk94 = 0; | |
arg0->unk9A = (s16) ((arg0->unk9A + 0x10000) - 0x8000); | |
} | |
phi_r0_8 = 0; | |
} | |
return phi_r0_8; | |
} | |
temp_r3_10 = arg0->unk74; | |
if (((temp_r3_10 & 0x10) == 0) && ((temp_r3_10 & 0xF) != 0)) { | |
phi_r3_3 = checkAllMotions__6TMarioFv(arg0); | |
} else { | |
temp_f1 = FConverge__Fffff(arg0->unkB0, 0.0f, 4.0f, 4.0f); | |
arg0->unkB0 = temp_f1; | |
phi_r28 = 0; | |
if (temp_f1 == 0.0f) { | |
phi_r28 = 1; | |
} | |
slopeProcess__6TMarioFv(arg0); | |
if (phi_r28 != 0) { | |
phi_r3_3 = changePlayerStatus__6TMarioFUlUlb(arg0, 0xC000000, 0, 0); | |
} else { | |
temp_r3_11 = walkProcess__6TMarioFv(arg0); | |
if (temp_r3_11 != 1) { | |
if (temp_r3_11 < 1) { | |
if (temp_r3_11 < 0) { | |
} else { | |
changePlayerStatus__6TMarioFUlUlb(arg0, 0x88C, 0, 0); | |
} | |
} else if (temp_r3_11 < 3) { | |
if (arg0->unkB0 > 16.0f) { | |
playerRefrection__6TMarioFi(arg0, 1); | |
changePlayerDropping__6TMarioFUlUl(arg0, 0x20000, 0); | |
} else { | |
setPlayerVelocity__6TMarioFf(arg0, 0.0f); | |
changePlayerStatus__6TMarioFUlUlb(arg0, 0xC000000, 0, 0); | |
} | |
} | |
} | |
setAnimation__6TMarioFif(arg0, 0xF, 1.0f); | |
phi_r3_3 = 0; | |
} | |
} | |
return phi_r3_3; | |
} | |
soundTorocco__6TMarioFv(arg0); | |
toroccoEffect__6TMarioFv(arg0); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment