{"type": "func", "start": 4295559564, "end": 4295559644, "name": "DialogLayer::animateInRandomSide", "pseudocode": "// \n// DialogLayer::animateInRandomSide from 0x10009098c to 0x1000909dc (80 bytes)\n// \n// 22 xrefs:\n// > CreatorLayer::onMultiplayer @ 0x1000dba6c\n// > CreatorLayer::onSecretVault @ 0x1000dc138\n// > CreatorLayer::onTreasureRoom @ 0x1000dc4c4\n// > OptionsLayer::onSecretVault @ 0x1001136c4\n// > CharacterColorPage::onMode @ 0x10015325c\n// > GJShopLayer::didPurchaseItem @ 0x1001cb110\n// > sub_1001CB24C @ 0x1001cb6c0\n// > sub_1001CB24C @ 0x1001cbb68\n// > GauntletSelectLayer::onPlay @ 0x100255754\n// > SecretRewardsLayer::onGoldChest @ 0x100385054\n// > sub_100385500 @ 0x100385674\n// > SecretRewardsLayer::onSelectItem @ 0x1003867f8\n// > sub_100386874 @ 0x1003874bc\n// > sub_100387984 @ 0x1003882d8\n// > sub_10038866C @ 0x100388f58\n// > sub_1003892C0 @ 0x100389864\n// > SecretLayer2::onDoor @ 0x1003a8794\n// > sub_1003A8808 @ 0x1003a8918\n// > sub_1003AD35C @ 0x1003ad5b0\n// > sub_1003E39F4 @ 0x1003e3b3c\n// > sub_1003E503C @ 0x1003e52bc\n// > LevelPage::onTheTower @ 0x1004856f0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:58:23 +0000\n// \n\n__int64 __fastcall DialogLayer::animateInRandomSide(__int64 a1)\n{\n  float v2; // s0\n  unsigned int v3; // w8\n  __int64 v4; // x1\n\n  v2 = vcvts_n_f32_s32(rand(), 0x1Fu);\n  if ( v2 <= 0.33 )\n    v3 = 1;\n  else\n    v3 = 3;\n  if ( v2 <= 0.66 )\n    v4 = v3;\n  else\n    v4 = 2;\n  return sub_1000909DC(a1, v4);\n}", "assembly": "; \n; DialogLayer::animateInRandomSide from 0x10009098c to 0x1000909dc (80 bytes)\n; \n; 22 xrefs:\n; > CreatorLayer::onMultiplayer @ 0x1000dba6c\n; > CreatorLayer::onSecretVault @ 0x1000dc138\n; > CreatorLayer::onTreasureRoom @ 0x1000dc4c4\n; > OptionsLayer::onSecretVault @ 0x1001136c4\n; > CharacterColorPage::onMode @ 0x10015325c\n; > GJShopLayer::didPurchaseItem @ 0x1001cb110\n; > sub_1001CB24C @ 0x1001cb6c0\n; > sub_1001CB24C @ 0x1001cbb68\n; > GauntletSelectLayer::onPlay @ 0x100255754\n; > SecretRewardsLayer::onGoldChest @ 0x100385054\n; > sub_100385500 @ 0x100385674\n; > SecretRewardsLayer::onSelectItem @ 0x1003867f8\n; > sub_100386874 @ 0x1003874bc\n; > sub_100387984 @ 0x1003882d8\n; > sub_10038866C @ 0x100388f58\n; > sub_1003892C0 @ 0x100389864\n; > SecretLayer2::onDoor @ 0x1003a8794\n; > sub_1003A8808 @ 0x1003a8918\n; > sub_1003AD35C @ 0x1003ad5b0\n; > sub_1003E39F4 @ 0x1003e3b3c\n; > sub_1003E503C @ 0x1003e52bc\n; > LevelPage::onTheTower @ 0x1004856f0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:58:23 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10009098c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100090990\nADD             X29, SP, #0x10                                         ; +0x8, 0x100090994\nMOV             X19, X0                                                ; +0xc, 0x100090998\nBL              _rand                                                  ; +0x10, 0x10009099c\nSCVTF           S0, W0, #0x1F                                          ; +0x14, 0x1000909a0\nADRP            X8, #dword_10075D8D8@PAGE                              ; +0x18, 0x1000909a4\nLDR             S1, [X8,#dword_10075D8D8@PAGEOFF]                      ; +0x1c, 0x1000909a8\nFCMP            S0, S1                                                 ; +0x20, 0x1000909ac\nMOV             W8, #3                                                 ; +0x24, 0x1000909b0\nCSINC           W8, W8, WZR, GT                                        ; +0x28, 0x1000909b4\nADRP            X9, #dword_10075D8DC@PAGE                              ; +0x2c, 0x1000909b8\nLDR             S1, [X9,#dword_10075D8DC@PAGEOFF]                      ; +0x30, 0x1000909bc\nFCMP            S0, S1                                                 ; +0x34, 0x1000909c0\nMOV             W9, #2                                                 ; +0x38, 0x1000909c4\nCSEL            W1, W9, W8, GT                                         ; +0x3c, 0x1000909c8\nMOV             X0, X19                                                ; +0x40, 0x1000909cc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x44, 0x1000909d0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x48, 0x1000909d4\nB               sub_1000909DC                                          ; +0x4c, 0x1000909d8", "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"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}