{"type": "func", "start": 4295521652, "end": 4295522152, "name": "DialogLayer::animateIn", "pseudocode": "// \n// DialogLayer::animateIn from 0x100087574 to 0x100087768 (500 bytes)\n// \n// 20 xrefs:\n// > SecretLayer5::showFirstDialog @ 0x100075554\n// > DialogLayer::animateInRandomSide @ 0x100087570\n// > CreatorLayer::onTreasureRoom @ 0x1000b68d4\n// > PlayLayer::destroyPlayer @ 0x10011efc0\n// > GJShopLayer::showCantAffordMessage @ 0x10014c1a0\n// > DailyLevelPage::dailyStatusFailed @ 0x1001ba588\n// > LevelListLayer::onClaimReward @ 0x100246294\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f90\n// > GJGarageLayer::showUnlockPopup @ 0x100306884\n// > SecretLayer2::showCompletedLevel @ 0x10030c18c\n// > SecretLayer3::onClick @ 0x10030f950\n// > SecretLayer3::firstInteractionStep2 @ 0x1003100b4\n// > SecretLayer3::firstInteractionStep4 @ 0x10031050c\n// > SecretLayer3::revealStep2 @ 0x100310c74\n// > SecretLayer3::revealStep4 @ 0x10031112c\n// > SecretLayer3::revealStep5 @ 0x100311518\n// > SecretLayer4::showFirstDialog @ 0x100354ae4\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8bfc\n// > GJPathPage::showCantAffordMessage @ 0x1003ba8f0\n// > LevelPage::onSecretDoor @ 0x1004057b4\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 __fastcall DialogLayer::animateIn(DialogLayer *a1, DialogAnimationType a2)\n{\n  float v4; // s0\n  __int64 *v5; // x0\n  __n128 v6; // q0\n  __n128 v7; // q1\n  cocos2d::CCLayer *m_mainLayer; // x20\n  cocos2d::CCActionInterval *v9; // x0\n  unsigned __int32 time; // s8\n  cocos2d::CCDirector *v11; // x0\n  float v12; // s0\n  float v13; // s1\n  cocos2d::CCDirector *v14; // x0\n  cocos2d::CCEaseElasticOut *v15; // x0\n  int v16; // w0\n  unsigned __int8 v17; // w20\n  cocos2d::CCFadeTo *v18; // x0\n  int v19; // [xsp+8h] [xbp-48h] BYREF\n  timeb v20; // [xsp+10h] [xbp-40h] BYREF\n\n  ((void (__fastcall *)(DialogLayer *, __int64))a1->setVisible)(a1, 1);\n  ftime(&v20);\n  v4 = (double)(v20.millitm + 1000 * (unsigned __int64)(v20.time & 0xFFFFF)) / 1000.0;\n  a1->m_animateTime = v4;\n  if ( (unsigned int)(a2 - 2) >= 4 )\n  {\n    if ( a2 != FromCenter )\n      goto LABEL_14;\n    ((void (__fastcall *)(cocos2d::CCLayer *, float))a1->m_mainLayer->setScale)(a1->m_mainLayer, 0.1);\n    v9 = cocos2d::CCScaleTo::create_1(0.5, 1.0);\n  }\n  else\n  {\n    v5 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_mainLayer->getPosition)(a1->m_mainLayer);\n    sub_1000229B8(&v20.time, v5);\n    m_mainLayer = a1->m_mainLayer;\n    if ( a2 > FromRight )\n    {\n      time = v20.time;\n      v11 = cocos2d::CCDirector::sharedDirector();\n      v6.n128_f64[0] = sub_1001768C8(v11);\n      if ( a2 == FromTop )\n      {\n        v12 = v6.n128_f32[0] + 50.0;\n        v13 = 1.0;\n      }\n      else\n      {\n        v12 = v6.n128_f32[0] + -50.0;\n        v13 = -1.0;\n      }\n      v7.n128_f32[0] = v12 + v13;\n      v6.n128_u32[0] = time;\n    }\n    else if ( a2 == FromLeft )\n    {\n      v7.n128_u32[0] = HIDWORD(v20.time);\n      v6.n128_u32[0] = -1019281408;\n    }\n    else\n    {\n      v14 = cocos2d::CCDirector::sharedDirector();\n      v6.n128_f32[0] = (float)(sub_1001768E0(v14) + 190.0) + 1.0;\n      v7.n128_u32[0] = HIDWORD(v20.time);\n    }\n    sub_100022980(v6, v7, &v19);\n    ((void (__fastcall *)(cocos2d::CCLayer *, int *))m_mainLayer->setPosition)(m_mainLayer, &v19);\n    v9 = cocos2d::CCMoveTo::create(0.5, (const cocos2d::CCPoint *)&v20);\n  }\n  v15 = cocos2d::CCEaseElasticOut::create(v9, 0.6);\n  cocos2d::CCNode::runAction(a1->m_mainLayer, v15);\nLABEL_14:\n  v16 = ((__int64 (__fastcall *)(DialogLayer *))a1->getOpacity)(a1);\n  if ( v16 )\n  {\n    v17 = v16;\n    ((void (__fastcall *)(DialogLayer *, _QWORD))a1->setOpacity)(a1, 0);\n    v18 = cocos2d::CCFadeTo::create(0.14, v17);\n    cocos2d::CCNode::runAction(a1, v18);\n  }\n}", "assembly": "; \n; DialogLayer::animateIn from 0x100087574 to 0x100087768 (500 bytes)\n; \n; 20 xrefs:\n; > SecretLayer5::showFirstDialog @ 0x100075554\n; > DialogLayer::animateInRandomSide @ 0x100087570\n; > CreatorLayer::onTreasureRoom @ 0x1000b68d4\n; > PlayLayer::destroyPlayer @ 0x10011efc0\n; > GJShopLayer::showCantAffordMessage @ 0x10014c1a0\n; > DailyLevelPage::dailyStatusFailed @ 0x1001ba588\n; > LevelListLayer::onClaimReward @ 0x100246294\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f90\n; > GJGarageLayer::showUnlockPopup @ 0x100306884\n; > SecretLayer2::showCompletedLevel @ 0x10030c18c\n; > SecretLayer3::onClick @ 0x10030f950\n; > SecretLayer3::firstInteractionStep2 @ 0x1003100b4\n; > SecretLayer3::firstInteractionStep4 @ 0x10031050c\n; > SecretLayer3::revealStep2 @ 0x100310c74\n; > SecretLayer3::revealStep4 @ 0x10031112c\n; > SecretLayer3::revealStep5 @ 0x100311518\n; > SecretLayer4::showFirstDialog @ 0x100354ae4\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8bfc\n; > GJPathPage::showCantAffordMessage @ 0x1003ba8f0\n; > LevelPage::onSecretDoor @ 0x1004057b4\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\nSUB             SP, SP, #0x60                                          ; +0x0, 0x100087574\nSTP             D9, D8, [SP,#0x50+var_30]                              ; +0x4, 0x100087578\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x10008757c\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x100087580\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x100087584\nADD             X29, SP, #0x50                                         ; +0x14, 0x100087588\nMOV             X21, X1                                                ; +0x18, 0x10008758c\nMOV             X19, X0                                                ; +0x1c, 0x100087590\nLDR             X8, [X0]                                               ; +0x20, 0x100087594\nLDR             X8, [X8,#0x148]                                        ; +0x24, 0x100087598\nMOV             W1, #1                                                 ; +0x28, 0x10008759c\nBLR             X8                                                     ; +0x2c, 0x1000875a0\nADD             X0, SP, #0x50+var_40; timeb *                          ; +0x30, 0x1000875a4\nBL              _ftime                                                 ; +0x34, 0x1000875a8\nLDRH            W8, [SP,#0x50+var_40.millitm]                          ; +0x38, 0x1000875ac\nLDR             X9, [SP,#0x50+var_40]                                  ; +0x3c, 0x1000875b0\nAND             X9, X9, #0xFFFFF                                       ; +0x40, 0x1000875b4\nMOV             W10, #0x3E8                                            ; +0x44, 0x1000875b8\nUMADDL          X8, W9, W10, X8                                        ; +0x48, 0x1000875bc\nUCVTF           D0, X8                                                 ; +0x4c, 0x1000875c0\nADRP            X8, #qword_1006356B0@PAGE                              ; +0x50, 0x1000875c4\nLDR             D1, [X8,#qword_1006356B0@PAGEOFF]                      ; +0x54, 0x1000875c8\nFDIV            D0, D0, D1                                             ; +0x58, 0x1000875cc\nFCVT            S0, D0                                                 ; +0x5c, 0x1000875d0\nSTR             S0, [X19,#0x228]                                       ; +0x60, 0x1000875d4\nSUB             W8, W21, #2                                            ; +0x64, 0x1000875d8\nCMP             W8, #4                                                 ; +0x68, 0x1000875dc\nB.CS            loc_100087624                                          ; +0x6c, 0x1000875e0\nLDR             X0, [X19,#0x230]                                       ; +0x70, 0x1000875e4\nLDR             X8, [X0]                                               ; +0x74, 0x1000875e8\nLDR             X8, [X8,#0xC0]                                         ; +0x78, 0x1000875ec\nBLR             X8                                                     ; +0x7c, 0x1000875f0\nMOV             X1, X0                                                 ; +0x80, 0x1000875f4\nADD             X0, SP, #0x50+var_40                                   ; +0x84, 0x1000875f8\nBL              sub_1000229B8                                          ; +0x88, 0x1000875fc\nLDR             X20, [X19,#0x230]                                      ; +0x8c, 0x100087600\nCMP             W21, #3                                                ; +0x90, 0x100087604\nB.GT            loc_100087654                                          ; +0x94, 0x100087608\nCMP             W21, #2                                                ; +0x98, 0x10008760c\nB.NE            loc_10008767C                                          ; +0x9c, 0x100087610\nLDR             S1, [SP,#0x50+var_40.time+4]                           ; +0xa0, 0x100087614\nMOV             W8, #0xC33F0000                                        ; +0xa4, 0x100087618\nFMOV            S0, W8                                                 ; +0xa8, 0x10008761c\nB               loc_10008769C                                          ; +0xac, 0x100087620\nCMP             W21, #1                                                ; +0xb0, 0x100087624\nB.NE            loc_100087708                                          ; +0xb4, 0x100087628\nLDR             X0, [X19,#0x230]                                       ; +0xb8, 0x10008762c\nLDR             X8, [X0]                                               ; +0xbc, 0x100087630\nLDR             X8, [X8,#0xA0]                                         ; +0xc0, 0x100087634\nADRP            X9, #dword_100635370@PAGE                              ; +0xc4, 0x100087638\nLDR             S0, [X9,#dword_100635370@PAGEOFF]                      ; +0xc8, 0x10008763c\nBLR             X8                                                     ; +0xcc, 0x100087640\nFMOV            S0, #0.5                                               ; +0xd0, 0x100087644\nFMOV            S1, #1.0                                               ; +0xd4, 0x100087648\nBL              cocos2d__CCScaleTo__create_1                           ; +0xd8, 0x10008764c\nB               loc_1000876F0                                          ; +0xdc, 0x100087650\nCMP             W21, #4                                                ; +0xe0, 0x100087654\nB.NE            loc_1000876A4                                          ; +0xe4, 0x100087658\nLDR             S8, [SP,#0x50+var_40]                                  ; +0xe8, 0x10008765c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xec, 0x100087660\nBL              sub_1001768C8                                          ; +0xf0, 0x100087664\nMOV             W8, #0x42480000                                        ; +0xf4, 0x100087668\nFMOV            S1, W8                                                 ; +0xf8, 0x10008766c\nFADD            S0, S0, S1                                             ; +0xfc, 0x100087670\nFMOV            S1, #1.0                                               ; +0x100, 0x100087674\nB               loc_1000876C0                                          ; +0x104, 0x100087678\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x108, 0x10008767c\nBL              sub_1001768E0                                          ; +0x10c, 0x100087680\nMOV             W8, #0x433E0000                                        ; +0x110, 0x100087684\nFMOV            S1, W8                                                 ; +0x114, 0x100087688\nFADD            S0, S0, S1                                             ; +0x118, 0x10008768c\nFMOV            S1, #1.0                                               ; +0x11c, 0x100087690\nFADD            S0, S0, S1                                             ; +0x120, 0x100087694\nLDR             S1, [SP,#0x50+var_40.time+4]                           ; +0x124, 0x100087698\nADD             X0, SP, #0x50+var_48                                   ; +0x128, 0x10008769c\nB               loc_1000876CC                                          ; +0x12c, 0x1000876a0\nLDR             S8, [SP,#0x50+var_40]                                  ; +0x130, 0x1000876a4\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x134, 0x1000876a8\nBL              sub_1001768C8                                          ; +0x138, 0x1000876ac\nMOV             W8, #0xC2480000                                        ; +0x13c, 0x1000876b0\nFMOV            S1, W8                                                 ; +0x140, 0x1000876b4\nFADD            S0, S0, S1                                             ; +0x144, 0x1000876b8\nFMOV            S1, #-1.0                                              ; +0x148, 0x1000876bc\nFADD            S1, S0, S1                                             ; +0x14c, 0x1000876c0\nADD             X0, SP, #0x50+var_48                                   ; +0x150, 0x1000876c4\nFMOV            S0, S8                                                 ; +0x154, 0x1000876c8\nBL              sub_100022980                                          ; +0x158, 0x1000876cc\nLDR             X8, [X20]                                              ; +0x15c, 0x1000876d0\nLDR             X8, [X8,#0xB8]                                         ; +0x160, 0x1000876d4\nADD             X1, SP, #0x50+var_48                                   ; +0x164, 0x1000876d8\nMOV             X0, X20                                                ; +0x168, 0x1000876dc\nBLR             X8                                                     ; +0x16c, 0x1000876e0\nFMOV            S0, #0.5                                               ; +0x170, 0x1000876e4\nADD             X0, SP, #0x50+var_40                                   ; +0x174, 0x1000876e8\nBL              cocos2d__CCMoveTo__create                              ; +0x178, 0x1000876ec\nADRP            X8, #dword_10063533C@PAGE                              ; +0x17c, 0x1000876f0\nLDR             S0, [X8,#dword_10063533C@PAGEOFF]                      ; +0x180, 0x1000876f4\nBL              cocos2d__CCEaseElasticOut__create                      ; +0x184, 0x1000876f8\nMOV             X1, X0                                                 ; +0x188, 0x1000876fc\nLDR             X0, [X19,#0x230]                                       ; +0x18c, 0x100087700\nBL              cocos2d__CCNode__runAction                             ; +0x190, 0x100087704\nLDR             X8, [X19]                                              ; +0x194, 0x100087708\nLDR             X8, [X8,#0x470]                                        ; +0x198, 0x10008770c\nMOV             X0, X19                                                ; +0x19c, 0x100087710\nBLR             X8                                                     ; +0x1a0, 0x100087714\nCBZ             W0, loc_100087750                                      ; +0x1a4, 0x100087718\nMOV             X20, X0                                                ; +0x1a8, 0x10008771c\nLDR             X8, [X19]                                              ; +0x1ac, 0x100087720\nLDR             X8, [X8,#0x480]                                        ; +0x1b0, 0x100087724\nMOV             X0, X19                                                ; +0x1b4, 0x100087728\nMOV             W1, #0                                                 ; +0x1b8, 0x10008772c\nBLR             X8                                                     ; +0x1bc, 0x100087730\nADRP            X8, #dword_100635384@PAGE                              ; +0x1c0, 0x100087734\nLDR             S0, [X8,#dword_100635384@PAGEOFF]                      ; +0x1c4, 0x100087738\nMOV             X0, X20                                                ; +0x1c8, 0x10008773c\nBL              cocos2d__CCFadeTo__create                              ; +0x1cc, 0x100087740\nMOV             X1, X0                                                 ; +0x1d0, 0x100087744\nMOV             X0, X19                                                ; +0x1d4, 0x100087748\nBL              cocos2d__CCNode__runAction                             ; +0x1d8, 0x10008774c\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x1dc, 0x100087750\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x1e0, 0x100087754\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x1e4, 0x100087758\nLDP             D9, D8, [SP,#0x50+var_30]                              ; +0x1e8, 0x10008775c\nADD             SP, SP, #0x60 ; '`'                                    ; +0x1ec, 0x100087760\nRET                                                                    ; +0x1f0, 0x100087764", "xrefs": ["SecretLayer5::showFirstDialog @ 0x100075554", "DialogLayer::animateInRandomSide @ 0x100087570", "CreatorLayer::onTreasureRoom @ 0x1000b68d4", "PlayLayer::destroyPlayer @ 0x10011efc0", "GJShopLayer::showCantAffordMessage @ 0x10014c1a0", "DailyLevelPage::dailyStatusFailed @ 0x1001ba588", "LevelListLayer::onClaimReward @ 0x100246294", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f90", "GJGarageLayer::showUnlockPopup @ 0x100306884", "SecretLayer2::showCompletedLevel @ 0x10030c18c", "SecretLayer3::onClick @ 0x10030f950", "SecretLayer3::firstInteractionStep2 @ 0x1003100b4", "SecretLayer3::firstInteractionStep4 @ 0x10031050c", "SecretLayer3::revealStep2 @ 0x100310c74", "SecretLayer3::revealStep4 @ 0x10031112c", "SecretLayer3::revealStep5 @ 0x100311518", "SecretLayer4::showFirstDialog @ 0x100354ae4", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8bfc", "GJPathPage::showCantAffordMessage @ 0x1003ba8f0", "LevelPage::onSecretDoor @ 0x1004057b4"], "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"}