{"type": "func", "start": 5370239024, "end": 5370239505, "name": "DialogLayer::animateInRandomSide", "pseudocode": "// \n// DialogLayer::animateInRandomSide from 0x140175830 to 0x140175a11 (481 bytes)\n// \n// 25 xrefs:\n// > CharacterColorPage::onMode @ 0x1400a209c\n// > CreatorLayer::onMultiplayer @ 0x140138065\n// > CreatorLayer::onSecretVault @ 0x140138c1c\n// > CreatorLayer::onTreasureRoom @ 0x1401393e4\n// > GauntletSelectLayer::onPlay @ 0x1402ffa7f\n// > GJShopLayer::didPurchaseItem @ 0x1403b3082\n// > GJShopLayer::showReactMessage @ 0x1403b39b9\n// > GJShopLayer::showReactMessage @ 0x1403b488a\n// > LevelAreaLayer::showDialog @ 0x1403de8a3\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0ed7\n// > LevelPage::onTheTower @ 0x140445876\n// > OptionsLayer::onSecretVault @ 0x1404cc37a\n// > SecretRewardsLayer::onSelectItem @ 0x14056bf1b\n// > SecretRewardsLayer::onSpecialItem @ 0x14056c7a0\n// > SecretRewardsLayer::onGoldChest @ 0x14056d497\n// > SecretRewardsLayer::showDialog01 @ 0x14056f20c\n// > SecretRewardsLayer::showDialog03 @ 0x1405704c9\n// > SecretRewardsLayer::showDialogMechanic @ 0x140571731\n// > SecretRewardsLayer::showDialogDiamond @ 0x1405723b1\n// > SecretLayer2::onSecretLevel @ 0x14057a3c3\n// > SecretLayer2::onDoor @ 0x14057ac46\n// > SecretLayer3::showUnlockDialog @ 0x14058366e\n// > <???> @ 0x14089d324\n// > <???> @ 0x14089d360\n// > <???> @ 0x1409184a0\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:32 +0000\n// \n\n__int64 __fastcall DialogLayer::animateInRandomSide(cocos2d::CCNode *a1)\n{\n  __int64 v2; // rdx\n  float v3; // xmm0_4\n  __int64 result; // rax\n  __int64 v5; // rcx\n  const struct cocos2d::CCPoint *v6; // rax\n  __int64 *v7; // rdi\n  __int64 v8; // rbx\n  __int64 v9; // rcx\n  cocos2d::CCDirector *v10; // rax\n  float ScreenRight; // xmm0_4\n  __int64 v12; // rax\n  struct cocos2d::CCActionInterval *v13; // rax\n  struct cocos2d::CCAction *v14; // rax\n  float v15; // xmm6_4\n  struct cocos2d::CCAction *v16; // rax\n  _BYTE v17[4]; // [rsp+20h] [rbp-38h] BYREF\n  float v18; // [rsp+24h] [rbp-34h]\n  struct __timeb64 Time; // [rsp+28h] [rbp-30h] BYREF\n\n  v3 = (float)rand() / 32767.0;\n  if ( v3 > 0.66000003 )\n    return DialogLayer::animateIn(a1, 2);\n  if ( v3 <= 0.33000001 )\n    return DialogLayer::animateIn(a1, 1);\n  LOBYTE(v2) = 1;\n  (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 336LL))(a1, v2);\n  ftime64(&Time);\n  v5 = *((_QWORD *)a1 + 70);\n  *((double *)a1 + 69) = (double)Time.millitm / 1000.0 + (double)SLODWORD(Time.time);\n  v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 200LL))(v5);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v6);\n  v7 = *((__int64 **)a1 + 70);\n  v8 = *v7;\n  v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);\n  ScreenRight = cocos2d::CCDirector::getScreenRight(v10);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Time, (float)(ScreenRight + 190.0) + 1.0, v18);\n  (*(void (__fastcall **)(__int64 *, __int64))(v8 + 184))(v7, v12);\n  v13 = cocos2d::CCMoveTo::create(0.5, (const struct cocos2d::CCPoint *)v17);\n  v14 = cocos2d::CCEaseElasticOut::create(v13, 0.60000002);\n  cocos2d::CCNode::runAction(*((cocos2d::CCNode **)a1 + 70), v14);\n  result = (*(unsigned __int8 (__fastcall **)(__int64))(*((_QWORD *)a1 + 51) + 32LL))((__int64)a1 + 408);\n  v15 = (float)(unsigned __int8)result;\n  if ( v15 > 0.0 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)a1 + 51) + 40LL))((__int64)a1 + 408, 0);\n    v16 = cocos2d::CCFadeTo::create(0.14, (int)v15);\n    return (__int64)cocos2d::CCNode::runAction(a1, v16);\n  }\n  return result;\n}", "assembly": "; \n; DialogLayer::animateInRandomSide from 0x140175830 to 0x140175a11 (481 bytes)\n; \n; 25 xrefs:\n; > CharacterColorPage::onMode @ 0x1400a209c\n; > CreatorLayer::onMultiplayer @ 0x140138065\n; > CreatorLayer::onSecretVault @ 0x140138c1c\n; > CreatorLayer::onTreasureRoom @ 0x1401393e4\n; > GauntletSelectLayer::onPlay @ 0x1402ffa7f\n; > GJShopLayer::didPurchaseItem @ 0x1403b3082\n; > GJShopLayer::showReactMessage @ 0x1403b39b9\n; > GJShopLayer::showReactMessage @ 0x1403b488a\n; > LevelAreaLayer::showDialog @ 0x1403de8a3\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0ed7\n; > LevelPage::onTheTower @ 0x140445876\n; > OptionsLayer::onSecretVault @ 0x1404cc37a\n; > SecretRewardsLayer::onSelectItem @ 0x14056bf1b\n; > SecretRewardsLayer::onSpecialItem @ 0x14056c7a0\n; > SecretRewardsLayer::onGoldChest @ 0x14056d497\n; > SecretRewardsLayer::showDialog01 @ 0x14056f20c\n; > SecretRewardsLayer::showDialog03 @ 0x1405704c9\n; > SecretRewardsLayer::showDialogMechanic @ 0x140571731\n; > SecretRewardsLayer::showDialogDiamond @ 0x1405723b1\n; > SecretLayer2::onSecretLevel @ 0x14057a3c3\n; > SecretLayer2::onDoor @ 0x14057ac46\n; > SecretLayer3::showUnlockDialog @ 0x14058366e\n; > <???> @ 0x14089d324\n; > <???> @ 0x14089d360\n; > <???> @ 0x1409184a0\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:32 +0000\n; \npush    rsi                                                            ; +0x0, 0x140175830\nsub     rsp, 50h                                                       ; +0x2, 0x140175832\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140175836\nxor     rax, rsp                                                       ; +0xd, 0x14017583d\nmov     [rsp+58h+var_20], rax                                          ; +0x10, 0x140175840\nmov     rsi, rcx                                                       ; +0x15, 0x140175845\ncall    cs:rand                                                        ; +0x18, 0x140175848\nmov     rcx, rsi                                                       ; +0x1e, 0x14017584e\nmovd    xmm0, eax                                                      ; +0x21, 0x140175851\ncvtdq2ps xmm0, xmm0                                                    ; +0x25, 0x140175855\ndivss   xmm0, cs:dword_140835BDC                                       ; +0x28, 0x140175858\ncomiss  xmm0, cs:dword_140834F98                                       ; +0x30, 0x140175860\njbe     short loc_140175886                                            ; +0x37, 0x140175867\nmov     edx, 2                                                         ; +0x39, 0x140175869\ncall    DialogLayer__animateIn                                         ; +0x3e, 0x14017586e\nmov     rcx, [rsp+58h+var_20]                                          ; +0x43, 0x140175873\nxor     rcx, rsp; StackCookie                                          ; +0x48, 0x140175878\ncall    __security_check_cookie                                        ; +0x4b, 0x14017587b\nadd     rsp, 50h                                                       ; +0x50, 0x140175880\npop     rsi                                                            ; +0x54, 0x140175884\nretn                                                                   ; +0x55, 0x140175885\ncomiss  xmm0, cs:dword_140834EB4                                       ; +0x56, 0x140175886\njbe     loc_1401759F4                                                  ; +0x5d, 0x14017588d\nmov     rax, [rsi]                                                     ; +0x63, 0x140175893\nmov     dl, 1                                                          ; +0x66, 0x140175896\nmov     [rsp+58h+arg_8], rbx                                           ; +0x68, 0x140175898\nmov     [rsp+58h+arg_10], rdi                                          ; +0x6d, 0x14017589d\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x72, 0x1401758a2\ncall    qword ptr [rax+150h]                                           ; +0x77, 0x1401758a7\nlea     rcx, [rsp+58h+Time]; Time                                      ; +0x7d, 0x1401758ad\ncall    cs:_ftime64                                                    ; +0x82, 0x1401758b2\nmovzx   eax, [rsp+58h+Time.millitm]                                    ; +0x88, 0x1401758b8\nxorps   xmm0, xmm0                                                     ; +0x8d, 0x1401758bd\ncvtsi2sd xmm0, [rsp+58h+Time.time]                                     ; +0x90, 0x1401758c0\nmov     rcx, [rsi+230h]                                                ; +0x97, 0x1401758c7\nmovd    xmm1, eax                                                      ; +0x9e, 0x1401758ce\ncvtdq2pd xmm1, xmm1                                                    ; +0xa2, 0x1401758d2\ndivsd   xmm1, cs:qword_140835460                                       ; +0xa6, 0x1401758d6\naddsd   xmm1, xmm0                                                     ; +0xae, 0x1401758de\nmovsd   qword ptr [rsi+228h], xmm1                                     ; +0xb2, 0x1401758e2\nmov     rax, [rcx]                                                     ; +0xba, 0x1401758ea\ncall    qword ptr [rax+0C8h]                                           ; +0xbd, 0x1401758ed\nmov     rdx, rax                                                       ; +0xc3, 0x1401758f3\nlea     rcx, [rsp+58h+var_38]                                          ; +0xc6, 0x1401758f6\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xcb, 0x1401758fb\nmov     rdi, [rsi+230h]                                                ; +0xd1, 0x140175901\nmov     rbx, [rdi]                                                     ; +0xd8, 0x140175908\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xdb, 0x14017590b\nmov     rcx, rax                                                       ; +0xe1, 0x140175911\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0xe4, 0x140175914\nmovss   xmm2, [rsp+58h+var_34]                                         ; +0xea, 0x14017591a\nlea     rcx, [rsp+58h+Time]                                            ; +0xf0, 0x140175920\naddss   xmm0, cs:dword_1408358D8                                       ; +0xf5, 0x140175925\naddss   xmm0, cs:flt_140835080                                         ; +0xfd, 0x14017592d\nmovaps  xmm1, xmm0                                                     ; +0x105, 0x140175935\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x108, 0x140175938\nmov     rdx, rax                                                       ; +0x10e, 0x14017593e\nmov     rcx, rdi                                                       ; +0x111, 0x140175941\ncall    qword ptr [rbx+0B8h]                                           ; +0x114, 0x140175944\nmovss   xmm0, cs:dword_140834F20                                       ; +0x11a, 0x14017594a\nlea     rdx, [rsp+58h+var_38]                                          ; +0x122, 0x140175952\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0x127, 0x140175957\nmovss   xmm1, cs:dword_140834F64                                       ; +0x12d, 0x14017595d\nmov     rcx, rax                                                       ; +0x135, 0x140175965\ncall    cs:?create@CCEaseElasticOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x138, 0x140175968\nmov     rcx, [rsi+230h]                                                ; +0x13e, 0x14017596e\nmov     rdx, rax                                                       ; +0x145, 0x140175975\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x148, 0x140175978\nmov     rax, [rsi+198h]                                                ; +0x14e, 0x14017597e\nlea     rcx, [rsi+198h]                                                ; +0x155, 0x140175985\ncall    qword ptr [rax+20h]                                            ; +0x15c, 0x14017598c\nmov     rdi, [rsp+58h+arg_10]                                          ; +0x15f, 0x14017598f\nxorps   xmm0, xmm0                                                     ; +0x164, 0x140175994\nmovzx   eax, al                                                        ; +0x167, 0x140175997\nmovd    xmm6, eax                                                      ; +0x16a, 0x14017599a\ncvtdq2ps xmm6, xmm6                                                    ; +0x16e, 0x14017599e\ncomiss  xmm6, xmm0                                                     ; +0x171, 0x1401759a1\njbe     short loc_1401759D7                                            ; +0x174, 0x1401759a4\nmov     rax, [rsi+198h]                                                ; +0x176, 0x1401759a6\nlea     rcx, [rsi+198h]                                                ; +0x17d, 0x1401759ad\nxor     edx, edx                                                       ; +0x184, 0x1401759b4\ncall    qword ptr [rax+28h]                                            ; +0x186, 0x1401759b6\nmovss   xmm0, cs:dword_140834E28                                       ; +0x189, 0x1401759b9\ncvttss2si edx, xmm6                                                    ; +0x191, 0x1401759c1\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x195, 0x1401759c5\nmov     rdx, rax                                                       ; +0x19b, 0x1401759cb\nmov     rcx, rsi                                                       ; +0x19e, 0x1401759ce\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x1a1, 0x1401759d1\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x1a7, 0x1401759d7\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x1ac, 0x1401759dc\nmov     rcx, [rsp+58h+var_20]                                          ; +0x1b1, 0x1401759e1\nxor     rcx, rsp; StackCookie                                          ; +0x1b6, 0x1401759e6\ncall    __security_check_cookie                                        ; +0x1b9, 0x1401759e9\nadd     rsp, 50h                                                       ; +0x1be, 0x1401759ee\npop     rsi                                                            ; +0x1c2, 0x1401759f2\nretn                                                                   ; +0x1c3, 0x1401759f3\nmov     edx, 1                                                         ; +0x1c4, 0x1401759f4\ncall    DialogLayer__animateIn                                         ; +0x1c9, 0x1401759f9\nmov     rcx, [rsp+58h+var_20]                                          ; +0x1ce, 0x1401759fe\nxor     rcx, rsp; StackCookie                                          ; +0x1d3, 0x140175a03\ncall    __security_check_cookie                                        ; +0x1d6, 0x140175a06\nadd     rsp, 50h                                                       ; +0x1db, 0x140175a0b\npop     rsi                                                            ; +0x1df, 0x140175a0f\nretn                                                                   ; +0x1e0, 0x140175a10", "xrefs": ["CharacterColorPage::onMode @ 0x1400a209c", "CreatorLayer::onMultiplayer @ 0x140138065", "CreatorLayer::onSecretVault @ 0x140138c1c", "CreatorLayer::onTreasureRoom @ 0x1401393e4", "GauntletSelectLayer::onPlay @ 0x1402ffa7f", "GJShopLayer::didPurchaseItem @ 0x1403b3082", "GJShopLayer::showReactMessage @ 0x1403b39b9", "GJShopLayer::showReactMessage @ 0x1403b488a", "LevelAreaLayer::showDialog @ 0x1403de8a3", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0ed7", "LevelPage::onTheTower @ 0x140445876", "OptionsLayer::onSecretVault @ 0x1404cc37a", "SecretRewardsLayer::onSelectItem @ 0x14056bf1b", "SecretRewardsLayer::onSpecialItem @ 0x14056c7a0", "SecretRewardsLayer::onGoldChest @ 0x14056d497", "SecretRewardsLayer::showDialog01 @ 0x14056f20c", "SecretRewardsLayer::showDialog03 @ 0x1405704c9", "SecretRewardsLayer::showDialogMechanic @ 0x140571731", "SecretRewardsLayer::showDialogDiamond @ 0x1405723b1", "SecretLayer2::onSecretLevel @ 0x14057a3c3", "SecretLayer2::onDoor @ 0x14057ac46", "SecretLayer3::showUnlockDialog @ 0x14058366e", "<???> @ 0x14089d324", "<???> @ 0x14089d360", "<???> @ 0x1409184a0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}