{"type": "func", "start": 5369577840, "end": 5369578404, "name": "DialogLayer::animateInRandomSide", "pseudocode": "// \n// DialogLayer::animateInRandomSide from 0x1400d4170 to 0x1400d43a4 (564 bytes)\n// \n// 23 xrefs:\n// > CharacterColorPage::onMode @ 0x1400897fd\n// > CreatorLayer::onMultiplayer @ 0x14009e17c\n// > CreatorLayer::onSecretVault @ 0x14009ecfa\n// > CreatorLayer::onTreasureRoom @ 0x14009f59a\n// > GauntletSelectLayer::onPlay @ 0x1401fab72\n// > GJShopLayer::didPurchaseItem @ 0x1402acd30\n// > GJShopLayer::showReactMessage @ 0x1402ad65a\n// > GJShopLayer::showReactMessage @ 0x1402ae4fc\n// > LevelAreaLayer::showDialog @ 0x1402c55a3\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7b92\n// > LevelPage::onTheTower @ 0x14031c308\n// > OptionsLayer::onSecretVault @ 0x14037336a\n// > SecretRewardsLayer::onSelectItem @ 0x1403d64d3\n// > SecretRewardsLayer::onSpecialItem @ 0x1403d6d2e\n// > SecretRewardsLayer::onGoldChest @ 0x1403d79e3\n// > SecretRewardsLayer::showDialog01 @ 0x1403d976a\n// > SecretRewardsLayer::showDialog03 @ 0x1403daa54\n// > SecretRewardsLayer::showDialogMechanic @ 0x1403dbce9\n// > SecretRewardsLayer::showDialogDiamond @ 0x1403dc99c\n// > SecretLayer2::onSecretLevel @ 0x1403e48f1\n// > SecretLayer2::onDoor @ 0x1403e51bd\n// > SecretLayer3::showUnlockDialog @ 0x1403edc10\n// > <???> @ 0x1406c86dc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid DialogLayer::animateInRandomSide(DialogLayer *a1)\n{\n  float v1; // xmm3_4\n  unsigned int v3; // eax\n  _BOOL8 v4; // rdx\n  __m128i v5; // xmm0\n  DialogLayer_vtbl *v6; // rax\n  float v7; // xmm0_4\n  double v8; // xmm0_8\n  cocos2d::CCLayer *v9; // rcx\n  float v10; // xmm1_4\n  const struct cocos2d::CCPoint *v11; // rax\n  cocos2d::CCLayer_vtbl *v12; // rbx\n  const cocos2d::CCPoint *v13; // rax\n  struct cocos2d::CCScaleTo *v14; // rax\n  double v15; // xmm0_8\n  cocos2d::CCLayer *v16; // rcx\n  float v17; // xmm1_4\n  const struct cocos2d::CCPoint *v18; // rax\n  cocos2d::CCLayer_vtbl *v19; // rbx\n  __int64 v20; // rcx\n  cocos2d::CCDirector *v21; // rax\n  float v22; // xmm0_4\n  const cocos2d::CCPoint *v23; // rax\n  double v24; // xmm0_8\n  cocos2d::CCLayer *m_mainLayer; // rcx\n  float v26; // xmm1_4\n  struct cocos2d::CCEaseElasticOut *v27; // rax\n  cocos2d::ccColor3B *v28; // r8\n  float v29; // xmm6_4\n  struct cocos2d::CCFadeTo *v30; // rax\n  cocos2d::ccColor3B *v31; // r8\n  float v32; // [rsp+20h] [rbp-18h]\n  float v33; // [rsp+20h] [rbp-18h]\n  cocos2d::CCPoint v34; // [rsp+48h] [rbp+10h] BYREF\n  cocos2d::CCPoint v35; // [rsp+50h] [rbp+18h] BYREF\n\n  v3 = rand();\n  LOBYTE(v4) = 1;\n  v5 = _mm_cvtsi32_si128(v3);\n  v6 = a1->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v7 = _mm_cvtepi32_ps(v5).m128_f32[0] / 32767.0;\n  if ( v7 <= 0.66000003 )\n  {\n    v6->setVisible(a1, v4);\n    if ( v7 <= 0.33000001 )\n    {\n      v24 = sub_14003CF30();\n      m_mainLayer = a1->m_mainLayer;\n      v26 = v24;\n      a1->m_animateTime = v26;\n      ((void (__fastcall *)(cocos2d::CCLayer *))m_mainLayer->setScale_0)(m_mainLayer);\n      v14 = cocos2d::CCScaleTo::create(0.5, 1.0);\n    }\n    else\n    {\n      v15 = sub_14003CF30();\n      v16 = a1->m_mainLayer;\n      v17 = v15;\n      a1->m_animateTime = v17;\n      v18 = v16->getPosition_0(v16);\n      cocos2d::CCPoint::CCPoint(&v34, v18);\n      v19 = a1->m_mainLayer->__vftable;\n      v21 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v20);\n      v22 = (float)(cocos2d::CCDirector::getScreenRight(v21) + 190.0) + 1.0;\n      cocos2d::CCPoint::CCPoint(&v35, v22, v34.y);\n      v19->setPosition_0(a1->m_mainLayer, v23);\n      v14 = (struct cocos2d::CCScaleTo *)cocos2d::CCMoveTo::create(0.5, &v34);\n    }\n  }\n  else\n  {\n    v6->setVisible(a1, v4);\n    v8 = sub_14003CF30();\n    v9 = a1->m_mainLayer;\n    v10 = v8;\n    a1->m_animateTime = v10;\n    v11 = v9->getPosition_0(v9);\n    cocos2d::CCPoint::CCPoint(&v34, v11);\n    v12 = a1->m_mainLayer->__vftable;\n    cocos2d::CCPoint::CCPoint(&v35, -191.0, v34.y);\n    v12->setPosition_0(a1->m_mainLayer, v13);\n    v14 = (struct cocos2d::CCScaleTo *)cocos2d::CCMoveTo::create(0.5, &v34);\n  }\n  v27 = cocos2d::CCEaseElasticOut::create(v14, 0.60000002);\n  cocos2d::CCNode::runAction((CCLightFlash *)a1->m_mainLayer, (cocos2d::CCPoint)v27, v28, v1, v32);\n  v29 = (float)a1->getOpacity(&a1->cocos2d::CCRGBAProtocol);\n  if ( v29 > 0.0 )\n  {\n    a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, 0);\n    v30 = cocos2d::CCFadeTo::create(0.14, (int)v29);\n    cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v30, v31, v1, v33);\n  }\n}", "assembly": "; \n; DialogLayer::animateInRandomSide from 0x1400d4170 to 0x1400d43a4 (564 bytes)\n; \n; 23 xrefs:\n; > CharacterColorPage::onMode @ 0x1400897fd\n; > CreatorLayer::onMultiplayer @ 0x14009e17c\n; > CreatorLayer::onSecretVault @ 0x14009ecfa\n; > CreatorLayer::onTreasureRoom @ 0x14009f59a\n; > GauntletSelectLayer::onPlay @ 0x1401fab72\n; > GJShopLayer::didPurchaseItem @ 0x1402acd30\n; > GJShopLayer::showReactMessage @ 0x1402ad65a\n; > GJShopLayer::showReactMessage @ 0x1402ae4fc\n; > LevelAreaLayer::showDialog @ 0x1402c55a3\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7b92\n; > LevelPage::onTheTower @ 0x14031c308\n; > OptionsLayer::onSecretVault @ 0x14037336a\n; > SecretRewardsLayer::onSelectItem @ 0x1403d64d3\n; > SecretRewardsLayer::onSpecialItem @ 0x1403d6d2e\n; > SecretRewardsLayer::onGoldChest @ 0x1403d79e3\n; > SecretRewardsLayer::showDialog01 @ 0x1403d976a\n; > SecretRewardsLayer::showDialog03 @ 0x1403daa54\n; > SecretRewardsLayer::showDialogMechanic @ 0x1403dbce9\n; > SecretRewardsLayer::showDialogDiamond @ 0x1403dc99c\n; > SecretLayer2::onSecretLevel @ 0x1403e48f1\n; > SecretLayer2::onDoor @ 0x1403e51bd\n; > SecretLayer3::showUnlockDialog @ 0x1403edc10\n; > <???> @ 0x1406c86dc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400d4170\npush    rdi                                                            ; +0x5, 0x1400d4175\nsub     rsp, 30h                                                       ; +0x6, 0x1400d4176\nmovaps  xmmword ptr [rsp+38h+var_18], xmm6                             ; +0xa, 0x1400d417a\nmov     rdi, rcx                                                       ; +0xf, 0x1400d417f\ncall    cs:rand                                                        ; +0x12, 0x1400d4182\nmov     dl, 1                                                          ; +0x18, 0x1400d4188\nmov     rcx, rdi                                                       ; +0x1a, 0x1400d418a\nmovd    xmm0, eax                                                      ; +0x1d, 0x1400d418d\nmov     rax, [rdi]                                                     ; +0x21, 0x1400d4191\ncvtdq2ps xmm0, xmm0                                                    ; +0x24, 0x1400d4194\ndivss   xmm0, cs:dword_140623644                                       ; +0x27, 0x1400d4197\ncomiss  xmm0, cs:dword_140622B60                                       ; +0x2f, 0x1400d419f\njbe     loc_1400D422F                                                  ; +0x36, 0x1400d41a6\ncall    qword ptr [rax+140h]                                           ; +0x3c, 0x1400d41ac\ncall    sub_14003CF30                                                  ; +0x42, 0x1400d41b2\nmov     rcx, [rdi+230h]                                                ; +0x47, 0x1400d41b7\nxorps   xmm1, xmm1                                                     ; +0x4e, 0x1400d41be\ncvtsd2ss xmm1, xmm0                                                    ; +0x51, 0x1400d41c1\nmovss   dword ptr [rdi+228h], xmm1                                     ; +0x55, 0x1400d41c5\nmov     rax, [rcx]                                                     ; +0x5d, 0x1400d41cd\ncall    qword ptr [rax+0C8h]                                           ; +0x60, 0x1400d41d0\nmov     rdx, rax                                                       ; +0x66, 0x1400d41d6\nlea     rcx, [rsp+38h+arg_8]                                           ; +0x69, 0x1400d41d9\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x6e, 0x1400d41de\nmov     rax, [rdi+230h]                                                ; +0x74, 0x1400d41e4\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x7b, 0x1400d41eb\nmovss   xmm2, [rsp+38h+arg_C]                                          ; +0x80, 0x1400d41f0\nmovss   xmm1, cs:dword_140623AB0                                       ; +0x86, 0x1400d41f6\nmov     rbx, [rax]                                                     ; +0x8e, 0x1400d41fe\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x91, 0x1400d4201\nmov     rcx, [rdi+230h]                                                ; +0x97, 0x1400d4207\nmov     rdx, rax                                                       ; +0x9e, 0x1400d420e\ncall    qword ptr [rbx+0B8h]                                           ; +0xa1, 0x1400d4211\nmovss   xmm0, cs:dword_140622B08                                       ; +0xa7, 0x1400d4217\nlea     rdx, [rsp+38h+arg_8]                                           ; +0xaf, 0x1400d421f\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0xb4, 0x1400d4224\njmp     loc_1400D431F                                                  ; +0xba, 0x1400d422a\ncomiss  xmm0, cs:dword_140622AB0                                       ; +0xbf, 0x1400d422f\nmov     r8, [rax+140h]                                                 ; +0xc6, 0x1400d4236\njbe     loc_1400D42DA                                                  ; +0xcd, 0x1400d423d\ncall    r8                                                             ; +0xd3, 0x1400d4243\ncall    sub_14003CF30                                                  ; +0xd6, 0x1400d4246\nmov     rcx, [rdi+230h]                                                ; +0xdb, 0x1400d424b\nxorps   xmm1, xmm1                                                     ; +0xe2, 0x1400d4252\ncvtsd2ss xmm1, xmm0                                                    ; +0xe5, 0x1400d4255\nmovss   dword ptr [rdi+228h], xmm1                                     ; +0xe9, 0x1400d4259\nmov     rax, [rcx]                                                     ; +0xf1, 0x1400d4261\ncall    qword ptr [rax+0C8h]                                           ; +0xf4, 0x1400d4264\nmov     rdx, rax                                                       ; +0xfa, 0x1400d426a\nlea     rcx, [rsp+38h+arg_8]                                           ; +0xfd, 0x1400d426d\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x102, 0x1400d4272\nmov     rax, [rdi+230h]                                                ; +0x108, 0x1400d4278\nmov     rbx, [rax]                                                     ; +0x10f, 0x1400d427f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x112, 0x1400d4282\nmov     rcx, rax                                                       ; +0x118, 0x1400d4288\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x11b, 0x1400d428b\nmovss   xmm2, [rsp+38h+arg_C]                                          ; +0x121, 0x1400d4291\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x127, 0x1400d4297\naddss   xmm0, cs:dword_1406233BC                                       ; +0x12c, 0x1400d429c\naddss   xmm0, cs:flt_140622C24                                         ; +0x134, 0x1400d42a4\nmovaps  xmm1, xmm0                                                     ; +0x13c, 0x1400d42ac\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x13f, 0x1400d42af\nmov     rcx, [rdi+230h]                                                ; +0x145, 0x1400d42b5\nmov     rdx, rax                                                       ; +0x14c, 0x1400d42bc\ncall    qword ptr [rbx+0B8h]                                           ; +0x14f, 0x1400d42bf\nmovss   xmm0, cs:dword_140622B08                                       ; +0x155, 0x1400d42c5\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x15d, 0x1400d42cd\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0x162, 0x1400d42d2\njmp     short loc_1400D431F                                            ; +0x168, 0x1400d42d8\ncall    r8                                                             ; +0x16a, 0x1400d42da\ncall    sub_14003CF30                                                  ; +0x16d, 0x1400d42dd\nmov     rcx, [rdi+230h]                                                ; +0x172, 0x1400d42e2\nxorps   xmm1, xmm1                                                     ; +0x179, 0x1400d42e9\ncvtsd2ss xmm1, xmm0                                                    ; +0x17c, 0x1400d42ec\nmovss   dword ptr [rdi+228h], xmm1                                     ; +0x180, 0x1400d42f0\nmov     rax, [rcx]                                                     ; +0x188, 0x1400d42f8\nmovss   xmm1, cs:dword_140622A10                                       ; +0x18b, 0x1400d42fb\ncall    qword ptr [rax+0A0h]                                           ; +0x193, 0x1400d4303\nmovss   xmm1, cs:flt_140622C24                                         ; +0x199, 0x1400d4309\nmovss   xmm0, cs:dword_140622B08                                       ; +0x1a1, 0x1400d4311\ncall    cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0x1a9, 0x1400d4319\nmovss   xmm1, cs:dword_140622B38                                       ; +0x1af, 0x1400d431f\nmov     rcx, rax                                                       ; +0x1b7, 0x1400d4327\ncall    cs:?create@CCEaseElasticOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x1ba, 0x1400d432a\nmov     rcx, [rdi+230h]                                                ; +0x1c0, 0x1400d4330\nmov     rdx, rax                                                       ; +0x1c7, 0x1400d4337\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x1ca, 0x1400d433a\nmov     rax, [rdi+198h]                                                ; +0x1d0, 0x1400d4340\nlea     rcx, [rdi+198h]                                                ; +0x1d7, 0x1400d4347\ncall    qword ptr [rax+20h]                                            ; +0x1de, 0x1400d434e\nmovzx   eax, al                                                        ; +0x1e1, 0x1400d4351\nxorps   xmm0, xmm0                                                     ; +0x1e4, 0x1400d4354\nmovd    xmm6, eax                                                      ; +0x1e7, 0x1400d4357\ncvtdq2ps xmm6, xmm6                                                    ; +0x1eb, 0x1400d435b\ncomiss  xmm6, xmm0                                                     ; +0x1ee, 0x1400d435e\njbe     short loc_1400D4394                                            ; +0x1f1, 0x1400d4361\nmov     rax, [rdi+198h]                                                ; +0x1f3, 0x1400d4363\nlea     rcx, [rdi+198h]                                                ; +0x1fa, 0x1400d436a\nxor     edx, edx                                                       ; +0x201, 0x1400d4371\ncall    qword ptr [rax+28h]                                            ; +0x203, 0x1400d4373\nmovss   xmm0, cs:dword_140622A38                                       ; +0x206, 0x1400d4376\ncvttss2si edx, xmm6                                                    ; +0x20e, 0x1400d437e\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x212, 0x1400d4382\nmov     rdx, rax                                                       ; +0x218, 0x1400d4388\nmov     rcx, rdi                                                       ; +0x21b, 0x1400d438b\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x21e, 0x1400d438e\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x224, 0x1400d4394\nmovaps  xmm6, xmmword ptr [rsp+38h+var_18]                             ; +0x229, 0x1400d4399\nadd     rsp, 30h                                                       ; +0x22e, 0x1400d439e\npop     rdi                                                            ; +0x232, 0x1400d43a2\nretn                                                                   ; +0x233, 0x1400d43a3", "xrefs": ["CharacterColorPage::onMode @ 0x1400897fd", "CreatorLayer::onMultiplayer @ 0x14009e17c", "CreatorLayer::onSecretVault @ 0x14009ecfa", "CreatorLayer::onTreasureRoom @ 0x14009f59a", "GauntletSelectLayer::onPlay @ 0x1401fab72", "GJShopLayer::didPurchaseItem @ 0x1402acd30", "GJShopLayer::showReactMessage @ 0x1402ad65a", "GJShopLayer::showReactMessage @ 0x1402ae4fc", "LevelAreaLayer::showDialog @ 0x1402c55a3", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7b92", "LevelPage::onTheTower @ 0x14031c308", "OptionsLayer::onSecretVault @ 0x14037336a", "SecretRewardsLayer::onSelectItem @ 0x1403d64d3", "SecretRewardsLayer::onSpecialItem @ 0x1403d6d2e", "SecretRewardsLayer::onGoldChest @ 0x1403d79e3", "SecretRewardsLayer::showDialog01 @ 0x1403d976a", "SecretRewardsLayer::showDialog03 @ 0x1403daa54", "SecretRewardsLayer::showDialogMechanic @ 0x1403dbce9", "SecretRewardsLayer::showDialogDiamond @ 0x1403dc99c", "SecretLayer2::onSecretLevel @ 0x1403e48f1", "SecretLayer2::onDoor @ 0x1403e51bd", "SecretLayer3::showUnlockDialog @ 0x1403edc10", "<???> @ 0x1406c86dc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}