//
// DialogLayer::animateInRandomSide from 0x10009098c to 0x1000909dc (80 bytes)
//
// 22 xrefs:
// > CreatorLayer::onMultiplayer @ 0x1000dba6c
// > CreatorLayer::onSecretVault @ 0x1000dc138
// > CreatorLayer::onTreasureRoom @ 0x1000dc4c4
// > OptionsLayer::onSecretVault @ 0x1001136c4
// > CharacterColorPage::onMode @ 0x10015325c
// > GJShopLayer::didPurchaseItem @ 0x1001cb110
// > sub_1001CB24C @ 0x1001cb6c0
// > sub_1001CB24C @ 0x1001cbb68
// > GauntletSelectLayer::onPlay @ 0x100255754
// > SecretRewardsLayer::onGoldChest @ 0x100385054
// > sub_100385500 @ 0x100385674
// > SecretRewardsLayer::onSelectItem @ 0x1003867f8
// > sub_100386874 @ 0x1003874bc
// > sub_100387984 @ 0x1003882d8
// > sub_10038866C @ 0x100388f58
// > sub_1003892C0 @ 0x100389864
// > SecretLayer2::onDoor @ 0x1003a8794
// > sub_1003A8808 @ 0x1003a8918
// > sub_1003AD35C @ 0x1003ad5b0
// > sub_1003E39F4 @ 0x1003e3b3c
// > sub_1003E503C @ 0x1003e52bc
// > LevelPage::onTheTower @ 0x1004856f0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:58:23 +0000
//
__int64 __fastcall DialogLayer::animateInRandomSide(__int64 a1)
{
float v2; // s0
unsigned int v3; // w8
__int64 v4; // x1
v2 = vcvts_n_f32_s32(rand(), 0x1Fu);
if ( v2 <= 0.33 )
v3 = 1;
else
v3 = 3;
if ( v2 <= 0.66 )
v4 = v3;
else
v4 = 2;
return sub_1000909DC(a1, v4);
}