//
// DialogLayer::animateInRandomSide from 0x4d68f0 to 0x4d6930 (64 bytes)
//
// 28 xrefs:
// > CreatorLayer::onMultiplayer @ 0x3aa6ee
// > CreatorLayer::onSecretVault @ 0x3aab70
// > CreatorLayer::onTreasureRoom @ 0x3aae18
// > CreatorLayer::onOnlyFullVersion @ 0x3ab18a
// > GJGarageLayer::onRewardedVideo @ 0x40271a
// > LevelPage::onTheTower @ 0x4088fe
// > OptionsLayer::onSecretVault @ 0x4219fc
// > RetryLevelLayer::onRewardedVideo @ 0x436260
// > GauntletSelectLayer::onPlay @ 0x4d6ce0
// > GJShopLayer::didPurchaseItem @ 0x4e1b66
// > GJShopLayer::showReactMessage @ 0x4e25e4
// > GJShopLayer::showReactMessage @ 0x4e2a44
// > SecretLayer2::onSecretLevel @ 0x4eac06
// > SecretLayer3::showUnlockDialog @ 0x4eadfa
// > SecretLayer2::onDoor @ 0x4edfc2
// > WorldSelectLayer::showCompleteDialog @ 0x4fc7bc
// > FollowRewardPage::onRewardedVideo @ 0x4ffb7a
// > CharacterColorPage::onMode @ 0x56503c
// > LevelAreaLayer::showDialog @ 0x56b67c
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x56b8ac
// > SecretRewardsLayer::showLockedChest @ 0x58548c
// > SecretRewardsLayer::onSpecialItem @ 0x5859d0
// > SecretRewardsLayer::onSelectItem @ 0x585cb0
// > SecretRewardsLayer::onGoldChest @ 0x58740a
// > SecretRewardsLayer::showDialog01 @ 0x587d64
// > SecretRewardsLayer::showDialog03 @ 0x5886c6
// > SecretRewardsLayer::showDialogMechanic @ 0x588f20
// > SecretRewardsLayer::showDialogDiamond @ 0x58959c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void DialogLayer::animateInRandomSide(DialogLayer *a1)
{
float v2; // s15
DialogLayer *v3; // r0
DialogAnimationType v4; // r1
v2 = vcvts_n_f32_s32(rand(), 0x1Fu);
if ( v2 <= 0.66 )
{
v3 = a1;
if ( v2 <= 0.33 )
v4 = FromCenter;
else
v4 = FromRight;
}
else
{
v3 = a1;
v4 = FromLeft;
}
DialogLayer::animateIn(v3, v4);
}