{"type": "func", "start": 9532720, "end": 9533340, "name": "DialogLayer::animateIn", "pseudocode": "// \n// DialogLayer::animateIn from 0x917530 to 0x91779c (620 bytes)\n// \n// 26 xrefs:\n// > PlayLayer::destroyPlayer @ 0x5d21f8\n// > CreatorLayer::onTreasureRoom @ 0x6cb638\n// > GJGarageLayer::showUnlockPopup @ 0x7966c8\n// > LevelPage::onSecretDoor @ 0x79c124\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de398\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d5984\n// > DailyLevelPage::dailyStatusFailed @ 0x912eb0\n// > DialogLayer::animateInRandomSide @ 0x917808\n// > DialogLayer::animateInRandomSide @ 0x917818\n// > DialogLayer::animateInRandomSide @ 0x91782c\n// > DialogLayer::animateInDialog @ 0x917840\n// > GJShopLayer::showCantAffordMessage @ 0x930b14\n// > SecretLayer3::revealStep2 @ 0x93b304\n// > SecretLayer3::firstInteractionStep4 @ 0x93b7d0\n// > SecretLayer3::firstInteractionStep2 @ 0x93bd30\n// > SecretLayer3::revealStep5 @ 0x93c308\n// > SecretLayer3::revealStep4 @ 0x93ca3c\n// > SecretLayer2::showCompletedLevel @ 0x93d628\n// > SecretLayer3::onClick @ 0x93e654\n// > SecretLayer4::showFirstDialog @ 0x946bf0\n// > SecretLayer4::showDialog @ 0x9472ec\n// > GJPathPage::showCantAffordMessage @ 0xa7194c\n// > LevelListLayer::onClaimReward @ 0xa738f8\n// > SecretLayer5::showFirstDialog @ 0xa90480\n// > SecretLayer5::showDialog @ 0xa92cfc\n// > <???> @ 0x35cb8\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::animateIn(DialogLayer *a1, DialogAnimationType a2)\n{\n  float v4; // s0\n  const cocos2d::CCPoint *v5; // x0\n  bool v6; // zf\n  cocos2d::CCLayer *v7; // x22\n  float x; // s8\n  void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24\n  cocos2d::CCDirector *v10; // x0\n  float v11; // s0\n  cocos2d::CCEaseElasticOut *v12; // x0\n  cocos2d::CCActionInterval *v13; // x1\n  cocos2d::CCAction *v14; // x0\n  unsigned __int8 v15; // w21\n  cocos2d::CCFadeTo *v16; // x0\n  cocos2d::CCScaleTo *v17; // x0\n  cocos2d::CCLayer *m_mainLayer; // x22\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24\n  cocos2d::CCLayer *v20; // x22\n  void (__fastcall *v21)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24\n  cocos2d::CCDirector *v22; // x0\n  float v23; // s0\n  cocos2d::CCDirector *v24; // x0\n  float v25; // s0\n  cocos2d::CCPoint v26; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v27[2]; // [xsp+58h] [xbp+58h] BYREF\n\n  a1->setVisible(a1, 1);\n  clock_gettime(0, (struct timespec *)v27);\n  v4 = (double)(__int64)v27[0] + (double)(__int64)v27[1] / 1000000000.0;\n  a1->m_animateTime = v4;\n  if ( a2 == FromCenter )\n  {\n    v17 = (cocos2d::CCScaleTo *)((__int64 (__fastcall *)(cocos2d::CCLayer *, float))a1->m_mainLayer->setScale)(\n                                  a1->m_mainLayer,\n                                  0.1);\n    v12 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create(v17, 0.5, 1.0);\n  }\n  else\n  {\n    if ( a2 == Instant || (unsigned int)a2 > FromTop2 )\n      goto LABEL_11;\n    v5 = a1->m_mainLayer->getPosition(a1->m_mainLayer);\n    cocos2d::CCPoint::CCPoint(&v26, v5);\n    if ( a2 == FromLeft )\n    {\n      m_mainLayer = a1->m_mainLayer;\n      setPosition = m_mainLayer->setPosition;\n      cocos2d::CCPoint::CCPoint(v27, -191.0, v26.y);\n      setPosition(m_mainLayer, v27);\n    }\n    else if ( a2 == FromRight )\n    {\n      v20 = a1->m_mainLayer;\n      v21 = v20->setPosition;\n      v22 = cocos2d::CCDirector::sharedDirector();\n      cocos2d::CCDirector::getScreenRight(v22);\n      cocos2d::CCPoint::CCPoint(v27, (float)(v23 + 190.0) + 1.0, v26.y);\n      v21(v20, v27);\n    }\n    else\n    {\n      v6 = a2 == FromTop;\n      v7 = a1->m_mainLayer;\n      x = v26.x;\n      v9 = v7->setPosition;\n      if ( v6 )\n      {\n        v24 = cocos2d::CCDirector::sharedDirector();\n        cocos2d::CCDirector::getScreenTop(v24);\n        cocos2d::CCPoint::CCPoint(v27, x, (float)(v25 + 50.0) + 1.0);\n      }\n      else\n      {\n        v10 = cocos2d::CCDirector::sharedDirector();\n        cocos2d::CCDirector::getScreenTop(v10);\n        cocos2d::CCPoint::CCPoint(v27, x, (float)(v11 - 50.0) - 1.0);\n      }\n      v9(v7, v27);\n    }\n    v12 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(0.5, &v26);\n  }\n  v14 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v12, v13, 0.6);\n  cocos2d::CCNode::runAction(a1->m_mainLayer, v14);\nLABEL_11:\n  v15 = a1->getOpacity(a1);\n  if ( (float)v15 > 0.0 )\n  {\n    a1->setOpacity(a1, 0);\n    v16 = cocos2d::CCFadeTo::create(0.14, v15);\n    cocos2d::CCNode::runAction(a1, v16);\n  }\n}", "assembly": "; \n; DialogLayer::animateIn from 0x917530 to 0x91779c (620 bytes)\n; \n; 26 xrefs:\n; > PlayLayer::destroyPlayer @ 0x5d21f8\n; > CreatorLayer::onTreasureRoom @ 0x6cb638\n; > GJGarageLayer::showUnlockPopup @ 0x7966c8\n; > LevelPage::onSecretDoor @ 0x79c124\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de398\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d5984\n; > DailyLevelPage::dailyStatusFailed @ 0x912eb0\n; > DialogLayer::animateInRandomSide @ 0x917808\n; > DialogLayer::animateInRandomSide @ 0x917818\n; > DialogLayer::animateInRandomSide @ 0x91782c\n; > DialogLayer::animateInDialog @ 0x917840\n; > GJShopLayer::showCantAffordMessage @ 0x930b14\n; > SecretLayer3::revealStep2 @ 0x93b304\n; > SecretLayer3::firstInteractionStep4 @ 0x93b7d0\n; > SecretLayer3::firstInteractionStep2 @ 0x93bd30\n; > SecretLayer3::revealStep5 @ 0x93c308\n; > SecretLayer3::revealStep4 @ 0x93ca3c\n; > SecretLayer2::showCompletedLevel @ 0x93d628\n; > SecretLayer3::onClick @ 0x93e654\n; > SecretLayer4::showFirstDialog @ 0x946bf0\n; > SecretLayer4::showDialog @ 0x9472ec\n; > GJPathPage::showCantAffordMessage @ 0xa7194c\n; > LevelListLayer::onClaimReward @ 0xa738f8\n; > SecretLayer5::showFirstDialog @ 0xa90480\n; > SecretLayer5::showDialog @ 0xa92cfc\n; > <???> @ 0x35cb8\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\nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x917530\nMOV             X29, SP                                                ; +0x4, 0x917534\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x917538\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x91753c\nLDR             X2, [X0]                                               ; +0x10, 0x917540\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0x917544\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x18, 0x917548\nLDR             X3, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x91754c\nMOV             W22, W1                                                ; +0x20, 0x917550\nLDR             X2, [X2,#0x148]                                        ; +0x24, 0x917554\nMOV             W1, #1                                                 ; +0x28, 0x917558\nMOV             X19, X0                                                ; +0x2c, 0x91755c\nADD             X21, X29, #0x70+var_18                                 ; +0x30, 0x917560\nLDR             X3, [X3]                                               ; +0x34, 0x917564\nSTR             X3, [X29,#0x70+var_8]                                  ; +0x38, 0x917568\nSTR             D8, [SP,#0x70+var_30]                                  ; +0x3c, 0x91756c\nBLR             X2                                                     ; +0x40, 0x917570\nMOV             X1, X21; tp                                            ; +0x44, 0x917574\nMOV             W0, #0; clock_id                                       ; +0x48, 0x917578\nBL              .clock_gettime                                         ; +0x4c, 0x91757c\nLDR             X1, [X29,#0x70+var_10]                                 ; +0x50, 0x917580\nCMP             W22, #1                                                ; +0x54, 0x917584\nLDR             D2, =0x41CDCD6500000000                                ; +0x58, 0x917588\nLDR             X0, [X29,#0x70+var_18]                                 ; +0x5c, 0x91758c\nSCVTF           D0, X1                                                 ; +0x60, 0x917590\nSCVTF           D1, X0                                                 ; +0x64, 0x917594\nFDIV            D0, D0, D2                                             ; +0x68, 0x917598\nFADD            D0, D1, D0                                             ; +0x6c, 0x91759c\nFCVT            S0, D0                                                 ; +0x70, 0x9175a0\nSTR             S0, [X19,#0x228]                                       ; +0x74, 0x9175a4\nB.EQ            loc_9176D0                                             ; +0x78, 0x9175a8\nCBZ             W22, loc_917654                                        ; +0x7c, 0x9175ac\nCMP             W22, #5                                                ; +0x80, 0x9175b0\nB.HI            loc_917654                                             ; +0x84, 0x9175b4\nLDR             X1, [X19,#0x230]                                       ; +0x88, 0x9175b8\nADD             X23, X29, #0x70+var_20                                 ; +0x8c, 0x9175bc\nMOV             X0, X1                                                 ; +0x90, 0x9175c0\nLDR             X1, [X1]                                               ; +0x94, 0x9175c4\nLDR             X1, [X1,#0xC0]                                         ; +0x98, 0x9175c8\nBLR             X1                                                     ; +0x9c, 0x9175cc\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0xa0, 0x9175d0\nMOV             X0, X23; this                                          ; +0xa4, 0x9175d4\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xa8, 0x9175d8\nCMP             W22, #2                                                ; +0xac, 0x9175dc\nB.EQ            loc_9176F8                                             ; +0xb0, 0x9175e0\nCMP             W22, #3                                                ; +0xb4, 0x9175e4\nB.EQ            loc_917724                                             ; +0xb8, 0x9175e8\nCMP             W22, #4                                                ; +0xbc, 0x9175ec\nLDR             X22, [X19,#0x230]                                      ; +0xc0, 0x9175f0\nLDR             S8, [X23]                                              ; +0xc4, 0x9175f4\nLDR             X0, [X22]; this                                        ; +0xc8, 0x9175f8\nLDR             X24, [X0,#0xB8]                                        ; +0xcc, 0x9175fc\nB.EQ            loc_917764                                             ; +0xd0, 0x917600\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xd4, 0x917604\nBL              _ZN7cocos2d10CCDirector12getScreenTopEv; cocos2d::CCDirector::getScreenTop(void) ; +0xd8, 0x917608\nLDR             S1, =0x42480000                                        ; +0xdc, 0x91760c\nMOV             X0, X21; this                                          ; +0xe0, 0x917610\nFMOV            S2, #1.0                                               ; +0xe4, 0x917614\nFSUB            S1, S0, S1                                             ; +0xe8, 0x917618\nFMOV            S0, S8; float                                          ; +0xec, 0x91761c\nFSUB            S1, S1, S2; float                                      ; +0xf0, 0x917620\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xf4, 0x917624\nMOV             X0, X22                                                ; +0xf8, 0x917628\nMOV             X1, X21                                                ; +0xfc, 0x91762c\nBLR             X24                                                    ; +0x100, 0x917630\nFMOV            S0, #0.5; float                                        ; +0x104, 0x917634\nMOV             X0, X23; this                                          ; +0x108, 0x917638\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x10c, 0x91763c\nLDR             S0, flt_9177AC; float                                  ; +0x110, 0x917640\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x114, 0x917644\nMOV             X1, X0; cocos2d::CCAction *                            ; +0x118, 0x917648\nLDR             X0, [X19,#0x230]; this                                 ; +0x11c, 0x91764c\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x120, 0x917650\nLDR             X1, [X19]                                              ; +0x124, 0x917654\nMOV             X0, X19                                                ; +0x128, 0x917658\nLDR             X1, [X1,#0x470]                                        ; +0x12c, 0x91765c\nBLR             X1                                                     ; +0x130, 0x917660\nUXTB            W0, W0                                                 ; +0x134, 0x917664\nMOV             W21, W0                                                ; +0x138, 0x917668\nUCVTF           S0, W0                                                 ; +0x13c, 0x91766c\nFCMPE           S0, #0.0                                               ; +0x140, 0x917670\nB.LE            loc_9176A4                                             ; +0x144, 0x917674\nLDR             X2, [X19]                                              ; +0x148, 0x917678\nMOV             W1, #0                                                 ; +0x14c, 0x91767c\nMOV             X0, X19                                                ; +0x150, 0x917680\nLDR             X2, [X2,#0x480]                                        ; +0x154, 0x917684\nBLR             X2                                                     ; +0x158, 0x917688\nLDR             S0, flt_9177BC; float                                  ; +0x15c, 0x91768c\nMOV             W0, W21; this                                          ; +0x160, 0x917690\nBL              _ZN7cocos2d8CCFadeTo6createEfh; cocos2d::CCFadeTo::create(float,uchar) ; +0x164, 0x917694\nMOV             X1, X0; cocos2d::CCAction *                            ; +0x168, 0x917698\nMOV             X0, X19; this                                          ; +0x16c, 0x91769c\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x170, 0x9176a0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x174, 0x9176a4\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x178, 0x9176a8\nLDR             X0, [X20]                                              ; +0x17c, 0x9176ac\nCMP             X1, X0                                                 ; +0x180, 0x9176b0\nB.NE            loc_917798                                             ; +0x184, 0x9176b4\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x188, 0x9176b8\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x18c, 0x9176bc\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0x190, 0x9176c0\nLDR             D8, [SP,#0x70+var_30]                                  ; +0x194, 0x9176c4\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x198, 0x9176c8\nRET                                                                    ; +0x19c, 0x9176cc\nLDR             X1, [X19,#0x230]                                       ; +0x1a0, 0x9176d0\nLDR             S0, =0x3DCCCCCD                                        ; +0x1a4, 0x9176d4\nMOV             X0, X1                                                 ; +0x1a8, 0x9176d8\nLDR             X1, [X1]                                               ; +0x1ac, 0x9176dc\nLDR             X1, [X1,#0xA0]                                         ; +0x1b0, 0x9176e0\nBLR             X1                                                     ; +0x1b4, 0x9176e4\nFMOV            S1, #1.0; float                                        ; +0x1b8, 0x9176e8\nFMOV            S0, #0.5; float                                        ; +0x1bc, 0x9176ec\nBL              _ZN7cocos2d9CCScaleTo6createEff; cocos2d::CCScaleTo::create(float,float) ; +0x1c0, 0x9176f0\nB               loc_917640                                             ; +0x1c4, 0x9176f4\nLDR             X22, [X19,#0x230]                                      ; +0x1c8, 0x9176f8\nMOV             X0, X21; this                                          ; +0x1cc, 0x9176fc\nLDR             S0, flt_9177B0; float                                  ; +0x1d0, 0x917700\nLDR             S1, [X29,#0x70+var_1C]; float                          ; +0x1d4, 0x917704\nLDR             X1, [X22]                                              ; +0x1d8, 0x917708\nLDR             X24, [X1,#0xB8]                                        ; +0x1dc, 0x91770c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1e0, 0x917710\nMOV             X0, X22                                                ; +0x1e4, 0x917714\nMOV             X1, X21                                                ; +0x1e8, 0x917718\nBLR             X24                                                    ; +0x1ec, 0x91771c\nB               loc_917634                                             ; +0x1f0, 0x917720\nLDR             X22, [X19,#0x230]                                      ; +0x1f4, 0x917724\nLDR             X0, [X22]; this                                        ; +0x1f8, 0x917728\nLDR             X24, [X0,#0xB8]                                        ; +0x1fc, 0x91772c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x200, 0x917730\nBL              _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0x204, 0x917734\nLDR             S1, =0x433E0000                                        ; +0x208, 0x917738\nMOV             X0, X21; this                                          ; +0x20c, 0x91773c\nFMOV            S2, #1.0                                               ; +0x210, 0x917740\nFADD            S0, S0, S1                                             ; +0x214, 0x917744\nLDR             S1, [X23,#4]; float                                    ; +0x218, 0x917748\nFADD            S0, S0, S2; float                                      ; +0x21c, 0x91774c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x220, 0x917750\nMOV             X0, X22                                                ; +0x224, 0x917754\nMOV             X1, X21                                                ; +0x228, 0x917758\nBLR             X24                                                    ; +0x22c, 0x91775c\nB               loc_917634                                             ; +0x230, 0x917760\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x234, 0x917764\nBL              _ZN7cocos2d10CCDirector12getScreenTopEv; cocos2d::CCDirector::getScreenTop(void) ; +0x238, 0x917768\nLDR             S1, =0x42480000                                        ; +0x23c, 0x91776c\nMOV             X0, X21; this                                          ; +0x240, 0x917770\nFMOV            S2, #1.0                                               ; +0x244, 0x917774\nFADD            S1, S0, S1                                             ; +0x248, 0x917778\nFMOV            S0, S8; float                                          ; +0x24c, 0x91777c\nFADD            S1, S1, S2; float                                      ; +0x250, 0x917780\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x254, 0x917784\nMOV             X0, X22                                                ; +0x258, 0x917788\nMOV             X1, X21                                                ; +0x25c, 0x91778c\nBLR             X24                                                    ; +0x260, 0x917790\nB               loc_917634                                             ; +0x264, 0x917794\nBL              .__stack_chk_fail                                      ; +0x268, 0x917798", "xrefs": ["PlayLayer::destroyPlayer @ 0x5d21f8", "CreatorLayer::onTreasureRoom @ 0x6cb638", "GJGarageLayer::showUnlockPopup @ 0x7966c8", "LevelPage::onSecretDoor @ 0x79c124", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de398", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d5984", "DailyLevelPage::dailyStatusFailed @ 0x912eb0", "DialogLayer::animateInRandomSide @ 0x917808", "DialogLayer::animateInRandomSide @ 0x917818", "DialogLayer::animateInRandomSide @ 0x91782c", "DialogLayer::animateInDialog @ 0x917840", "GJShopLayer::showCantAffordMessage @ 0x930b14", "SecretLayer3::revealStep2 @ 0x93b304", "SecretLayer3::firstInteractionStep4 @ 0x93b7d0", "SecretLayer3::firstInteractionStep2 @ 0x93bd30", "SecretLayer3::revealStep5 @ 0x93c308", "SecretLayer3::revealStep4 @ 0x93ca3c", "SecretLayer2::showCompletedLevel @ 0x93d628", "SecretLayer3::onClick @ 0x93e654", "SecretLayer4::showFirstDialog @ 0x946bf0", "SecretLayer4::showDialog @ 0x9472ec", "GJPathPage::showCantAffordMessage @ 0xa7194c", "LevelListLayer::onClaimReward @ 0xa738f8", "SecretLayer5::showFirstDialog @ 0xa90480", "SecretLayer5::showDialog @ 0xa92cfc", "<???> @ 0x35cb8"], "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"}