{"type": "func", "start": 4298933360, "end": 4298933875, "name": "DialogLayer::animateIn", "pseudocode": "// \n// DialogLayer::animateIn from 0x1003c8470 to 0x1003c8673 (515 bytes)\n// \n// 23 xrefs:\n// > PlayLayer::destroyPlayer @ 0x1000ba77f\n// > DailyLevelPage::dailyStatusFailed @ 0x100231cdd\n// > CreatorLayer::onTreasureRoom @ 0x1002994ab\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002b1b14\n// > GJPathPage::showCantAffordMessage @ 0x1003016ef\n// > GJShopLayer::showCantAffordMessage @ 0x10032522f\n// > LevelListLayer::onClaimReward @ 0x10035f2bd\n// > GJGarageLayer::showUnlockPopup @ 0x10036f44e\n// > SecretLayer4::showFirstDialog @ 0x1003b1c4a\n// > SecretLayer4::showDialog @ 0x1003b32b4\n// > DialogLayer::animateInRandomSide @ 0x1003c8462\n// > DialogLayer::animateInDialog @ 0x1003c869b\n// > LevelPage::onSecretDoor @ 0x10043724e\n// > SecretLayer5::showFirstDialog @ 0x10047beb8\n// > SecretLayer5::showDialog @ 0x10047def4\n// > SecretLayer2::showCompletedLevel @ 0x1004a087f\n// > SecretLayer3::onClick @ 0x1004a5a85\n// > SecretLayer3::firstInteractionStep2 @ 0x1004a6414\n// > SecretLayer3::firstInteractionStep4 @ 0x1004a6957\n// > SecretLayer3::revealStep2 @ 0x1004a72b7\n// > SecretLayer3::revealStep4 @ 0x1004a7a58\n// > SecretLayer3::revealStep5 @ 0x1004a8027\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x100601ef8\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 v3; // xmm0_4\n  __int64 v4; // r15\n  double *v5; // rsi\n  cocos2d::CCLayer *m_mainLayer; // r14\n  DialogAnimationType v7; // kr00_4\n  float v8; // xmm1_4\n  float v9; // xmm0_4\n  cocos2d::CCActionInterval *v10; // rax\n  cocos2d::CCDirector *v11; // rax\n  double v12; // xmm0_8\n  cocos2d::CCDirector *v13; // rax\n  double v14; // xmm0_8\n  cocos2d::CCDirector *v15; // rax\n  cocos2d::CCEaseElasticOut *v16; // rsi\n  unsigned __int8 v17; // al\n  unsigned __int8 v18; // r14\n  cocos2d::CCFadeTo *v19; // rax\n  float v20; // [rsp+8h] [rbp-38h] BYREF\n  timeb v21; // [rsp+10h] [rbp-30h] BYREF\n  float v22; // [rsp+24h] [rbp-1Ch]\n\n  ((void (__fastcall *)(DialogLayer *, __int64))a1->setVisible)(a1, 1);\n  ftime(&v21);\n  v3 = (double)(v21.millitm + 1000 * (v21.time & 0xFFFFF)) / 1000.0;\n  a1->m_animateTime = v3;\n  v4 = (unsigned int)(a2 - 2);\n  v5 = (double *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_mainLayer->getPosition)(a1->m_mainLayer);\n  sub_10028CC60(&v21, v5);\n  v7 = a2;\n  m_mainLayer = a1->m_mainLayer;\n  switch ( v4 )\n  {\n    case 0LL:\n      v8 = *((float *)&v21.time + 1);\n      v9 = -191.0;\n      goto LABEL_9;\n    case 1LL:\n      v15 = cocos2d::CCDirector::sharedDirector();\n      v9 = (float)(sub_100484DA0(v15) + 190.0) + 1.0;\n      v8 = *((float *)&v21.time + 1);\n      goto LABEL_9;\n    case 2LL:\n      v22 = *(float *)&v21.time;\n      v11 = cocos2d::CCDirector::sharedDirector();\n      v12 = sub_100484D70(v11);\n      v8 = (float)(*(float *)&v12 + 50.0) + 1.0;\n      goto LABEL_7;\n    case 3LL:\n      v22 = *(float *)&v21.time;\n      v13 = cocos2d::CCDirector::sharedDirector();\n      v14 = sub_100484D70(v13);\n      v8 = (float)(*(float *)&v14 + -50.0) + -1.0;\nLABEL_7:\n      v9 = v22;\nLABEL_9:\n      sub_10028CBE0(&v20, v9, v8);\n      ((void (__fastcall *)(cocos2d::CCLayer *, float *))m_mainLayer->setPosition)(m_mainLayer, &v20);\n      v10 = cocos2d::CCMoveTo::create(0.5, (const cocos2d::CCPoint *)&v21);\n      goto LABEL_10;\n    default:\n      if ( v7 != FromCenter )\n        goto LABEL_11;\n      ((void (__fastcall *)(cocos2d::CCLayer *, float))a1->m_mainLayer->setScale)(a1->m_mainLayer, 0.1);\n      v10 = cocos2d::CCScaleTo::create_1(0.5, 1.0);\nLABEL_10:\n      v16 = cocos2d::CCEaseElasticOut::create(v10, 0.60000002);\n      cocos2d::CCNode::runAction(a1->m_mainLayer, v16);\nLABEL_11:\n      v17 = ((__int64 (__fastcall *)(DialogLayer *))a1->getOpacity)(a1);\n      if ( v17 )\n      {\n        v18 = v17;\n        ((void (__fastcall *)(DialogLayer *, _QWORD))a1->setOpacity)(a1, 0);\n        v19 = cocos2d::CCFadeTo::create(0.14, v18);\n        cocos2d::CCNode::runAction(a1, v19);\n      }\n      return;\n  }\n}", "assembly": "; \n; DialogLayer::animateIn from 0x1003c8470 to 0x1003c8673 (515 bytes)\n; \n; 23 xrefs:\n; > PlayLayer::destroyPlayer @ 0x1000ba77f\n; > DailyLevelPage::dailyStatusFailed @ 0x100231cdd\n; > CreatorLayer::onTreasureRoom @ 0x1002994ab\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002b1b14\n; > GJPathPage::showCantAffordMessage @ 0x1003016ef\n; > GJShopLayer::showCantAffordMessage @ 0x10032522f\n; > LevelListLayer::onClaimReward @ 0x10035f2bd\n; > GJGarageLayer::showUnlockPopup @ 0x10036f44e\n; > SecretLayer4::showFirstDialog @ 0x1003b1c4a\n; > SecretLayer4::showDialog @ 0x1003b32b4\n; > DialogLayer::animateInRandomSide @ 0x1003c8462\n; > DialogLayer::animateInDialog @ 0x1003c869b\n; > LevelPage::onSecretDoor @ 0x10043724e\n; > SecretLayer5::showFirstDialog @ 0x10047beb8\n; > SecretLayer5::showDialog @ 0x10047def4\n; > SecretLayer2::showCompletedLevel @ 0x1004a087f\n; > SecretLayer3::onClick @ 0x1004a5a85\n; > SecretLayer3::firstInteractionStep2 @ 0x1004a6414\n; > SecretLayer3::firstInteractionStep4 @ 0x1004a6957\n; > SecretLayer3::revealStep2 @ 0x1004a72b7\n; > SecretLayer3::revealStep4 @ 0x1004a7a58\n; > SecretLayer3::revealStep5 @ 0x1004a8027\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x100601ef8\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\npush    rbp                                                            ; +0x0, 0x1003c8470\nmov     rbp, rsp                                                       ; +0x1, 0x1003c8471\npush    r15                                                            ; +0x4, 0x1003c8474\npush    r14                                                            ; +0x6, 0x1003c8476\npush    rbx                                                            ; +0x8, 0x1003c8478\nsub     rsp, 28h                                                       ; +0x9, 0x1003c8479\nmov     r14d, esi                                                      ; +0xd, 0x1003c847d\nmov     rbx, rdi                                                       ; +0x10, 0x1003c8480\nmov     rax, [rdi]                                                     ; +0x13, 0x1003c8483\nmov     esi, 1                                                         ; +0x16, 0x1003c8486\ncall    qword ptr [rax+148h]                                           ; +0x1b, 0x1003c848b\nlea     rdi, [rbp+var_30]; timeb *                                     ; +0x21, 0x1003c8491\ncall    _ftime                                                         ; +0x25, 0x1003c8495\nmovzx   eax, [rbp+var_30.millitm]                                      ; +0x2a, 0x1003c849a\nmov     rcx, [rbp+var_30.time]                                         ; +0x2e, 0x1003c849e\nand     ecx, 0FFFFFh                                                   ; +0x32, 0x1003c84a2\nimul    rcx, 3E8h                                                      ; +0x38, 0x1003c84a8\nadd     rcx, rax                                                       ; +0x3f, 0x1003c84af\ncvtsi2sd xmm0, rcx                                                     ; +0x42, 0x1003c84b2\ndivsd   xmm0, cs:qword_100815208                                       ; +0x47, 0x1003c84b7\ncvtsd2ss xmm0, xmm0                                                    ; +0x4f, 0x1003c84bf\nmovss   dword ptr [rbx+228h], xmm0                                     ; +0x53, 0x1003c84c3\nlea     r15d, [r14-2]; switch 4 cases                                  ; +0x5b, 0x1003c84cb\ncmp     r15d, 4                                                        ; +0x5f, 0x1003c84cf\njnb     short def_1003C8506; jumptable 00000001003C8506 default case   ; +0x63, 0x1003c84d3\nmov     rdi, [rbx+230h]                                                ; +0x65, 0x1003c84d5\nmov     rax, [rdi]                                                     ; +0x6c, 0x1003c84dc\ncall    qword ptr [rax+0C0h]                                           ; +0x6f, 0x1003c84df\nlea     rdi, [rbp+var_30]                                              ; +0x75, 0x1003c84e5\nmov     rsi, rax                                                       ; +0x79, 0x1003c84e9\ncall    sub_10028CC60                                                  ; +0x7c, 0x1003c84ec\nmov     r14, [rbx+230h]                                                ; +0x81, 0x1003c84f1\nlea     rax, jpt_1003C8506                                             ; +0x88, 0x1003c84f8\nmovsxd  rcx, (jpt_1003C8506 - 1003C8674h)[rax+r15*4]                   ; +0x8f, 0x1003c84ff\nadd     rcx, rax                                                       ; +0x93, 0x1003c8503\njmp     rcx; switch jump                                               ; +0x96, 0x1003c8506\nmovss   xmm1, dword ptr [rbp+var_30.time+4]; jumptable 00000001003C8506 case 2 ; +0x98, 0x1003c8508\nlea     r15, [rbp+var_38]                                              ; +0x9d, 0x1003c850d\nmovss   xmm0, cs:dword_10081AE1C                                       ; +0xa1, 0x1003c8511\njmp     loc_1003C85E4                                                  ; +0xa9, 0x1003c8519\ncmp     r14d, 1; jumptable 00000001003C8506 default case               ; +0xae, 0x1003c851e\njnz     loc_1003C862B                                                  ; +0xb2, 0x1003c8522\nmov     rdi, [rbx+230h]                                                ; +0xb8, 0x1003c8528\nmov     rax, [rdi]                                                     ; +0xbf, 0x1003c852f\nmovss   xmm0, cs:dword_100815058                                       ; +0xc2, 0x1003c8532\ncall    qword ptr [rax+0A0h]                                           ; +0xca, 0x1003c853a\nmovss   xmm0, cs:dword_100814FA8                                       ; +0xd0, 0x1003c8540\nmovss   xmm1, cs:alpha                                                 ; +0xd8, 0x1003c8548\ncall    cocos2d__CCScaleTo__create_1                                   ; +0xe0, 0x1003c8550\njmp     loc_1003C860C                                                  ; +0xe5, 0x1003c8555\nmovss   xmm0, dword ptr [rbp+var_30.time]; jumptable 00000001003C8506 case 4 ; +0xea, 0x1003c855a\nmovss   [rbp+var_1C], xmm0                                             ; +0xef, 0x1003c855f\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xf4, 0x1003c8564\nmov     rdi, rax                                                       ; +0xf9, 0x1003c8569\ncall    sub_100484D70                                                  ; +0xfc, 0x1003c856c\nmovaps  xmm1, xmm0                                                     ; +0x101, 0x1003c8571\naddss   xmm1, cs:dword_100814FDC                                       ; +0x104, 0x1003c8574\naddss   xmm1, cs:alpha                                                 ; +0x10c, 0x1003c857c\njmp     short loc_1003C85B0                                            ; +0x114, 0x1003c8584\nmovss   xmm0, dword ptr [rbp+var_30.time]; jumptable 00000001003C8506 case 5 ; +0x116, 0x1003c8586\nmovss   [rbp+var_1C], xmm0                                             ; +0x11b, 0x1003c858b\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x120, 0x1003c8590\nmov     rdi, rax                                                       ; +0x125, 0x1003c8595\ncall    sub_100484D70                                                  ; +0x128, 0x1003c8598\nmovaps  xmm1, xmm0                                                     ; +0x12d, 0x1003c859d\naddss   xmm1, cs:dword_100814FC0                                       ; +0x130, 0x1003c85a0\naddss   xmm1, cs:dword_100815094                                       ; +0x138, 0x1003c85a8\nlea     r15, [rbp+var_38]                                              ; +0x140, 0x1003c85b0\nmov     rdi, r15                                                       ; +0x144, 0x1003c85b4\nmovss   xmm0, [rbp+var_1C]                                             ; +0x147, 0x1003c85b7\njmp     short loc_1003C85E7                                            ; +0x14c, 0x1003c85bc\ncall    cocos2d__CCDirector__sharedDirector; jumptable 00000001003C8506 case 3 ; +0x14e, 0x1003c85be\nmov     rdi, rax                                                       ; +0x153, 0x1003c85c3\ncall    sub_100484DA0                                                  ; +0x156, 0x1003c85c6\naddss   xmm0, cs:dword_10081573C                                       ; +0x15b, 0x1003c85cb\naddss   xmm0, cs:alpha                                                 ; +0x163, 0x1003c85d3\nmovss   xmm1, dword ptr [rbp+var_30.time+4]                            ; +0x16b, 0x1003c85db\nlea     r15, [rbp+var_38]                                              ; +0x170, 0x1003c85e0\nmov     rdi, r15                                                       ; +0x174, 0x1003c85e4\ncall    sub_10028CBE0                                                  ; +0x177, 0x1003c85e7\nmov     rax, [r14]                                                     ; +0x17c, 0x1003c85ec\nmov     rdi, r14                                                       ; +0x17f, 0x1003c85ef\nmov     rsi, r15                                                       ; +0x182, 0x1003c85f2\ncall    qword ptr [rax+0B8h]                                           ; +0x185, 0x1003c85f5\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x18b, 0x1003c85fb\nlea     rdi, [rbp+var_30]                                              ; +0x193, 0x1003c8603\ncall    cocos2d__CCMoveTo__create                                      ; +0x197, 0x1003c8607\nmovss   xmm0, cs:dword_100814FB0                                       ; +0x19c, 0x1003c860c\nmov     rdi, rax                                                       ; +0x1a4, 0x1003c8614\ncall    cocos2d__CCEaseElasticOut__create                              ; +0x1a7, 0x1003c8617\nmov     rdi, [rbx+230h]                                                ; +0x1ac, 0x1003c861c\nmov     rsi, rax                                                       ; +0x1b3, 0x1003c8623\ncall    cocos2d__CCNode__runAction                                     ; +0x1b6, 0x1003c8626\nmov     rax, [rbx]                                                     ; +0x1bb, 0x1003c862b\nmov     rdi, rbx                                                       ; +0x1be, 0x1003c862e\ncall    qword ptr [rax+470h]                                           ; +0x1c1, 0x1003c8631\ntest    al, al                                                         ; +0x1c7, 0x1003c8637\njz      short loc_1003C8668                                            ; +0x1c9, 0x1003c8639\nmov     r14d, eax                                                      ; +0x1cb, 0x1003c863b\nmov     rax, [rbx]                                                     ; +0x1ce, 0x1003c863e\nmov     rdi, rbx                                                       ; +0x1d1, 0x1003c8641\nxor     esi, esi                                                       ; +0x1d4, 0x1003c8644\ncall    qword ptr [rax+480h]                                           ; +0x1d6, 0x1003c8646\nmovzx   edi, r14b                                                      ; +0x1dc, 0x1003c864c\nmovss   xmm0, cs:dword_100817A50                                       ; +0x1e0, 0x1003c8650\ncall    cocos2d__CCFadeTo__create                                      ; +0x1e8, 0x1003c8658\nmov     rdi, rbx                                                       ; +0x1ed, 0x1003c865d\nmov     rsi, rax                                                       ; +0x1f0, 0x1003c8660\ncall    cocos2d__CCNode__runAction                                     ; +0x1f3, 0x1003c8663\nadd     rsp, 28h                                                       ; +0x1f8, 0x1003c8668\npop     rbx                                                            ; +0x1fc, 0x1003c866c\npop     r14                                                            ; +0x1fd, 0x1003c866d\npop     r15                                                            ; +0x1ff, 0x1003c866f\npop     rbp                                                            ; +0x201, 0x1003c8671\nretn                                                                   ; +0x202, 0x1003c8672", "xrefs": ["PlayLayer::destroyPlayer @ 0x1000ba77f", "DailyLevelPage::dailyStatusFailed @ 0x100231cdd", "CreatorLayer::onTreasureRoom @ 0x1002994ab", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002b1b14", "GJPathPage::showCantAffordMessage @ 0x1003016ef", "GJShopLayer::showCantAffordMessage @ 0x10032522f", "LevelListLayer::onClaimReward @ 0x10035f2bd", "GJGarageLayer::showUnlockPopup @ 0x10036f44e", "SecretLayer4::showFirstDialog @ 0x1003b1c4a", "SecretLayer4::showDialog @ 0x1003b32b4", "DialogLayer::animateInRandomSide @ 0x1003c8462", "DialogLayer::animateInDialog @ 0x1003c869b", "LevelPage::onSecretDoor @ 0x10043724e", "SecretLayer5::showFirstDialog @ 0x10047beb8", "SecretLayer5::showDialog @ 0x10047def4", "SecretLayer2::showCompletedLevel @ 0x1004a087f", "SecretLayer3::onClick @ 0x1004a5a85", "SecretLayer3::firstInteractionStep2 @ 0x1004a6414", "SecretLayer3::firstInteractionStep4 @ 0x1004a6957", "SecretLayer3::revealStep2 @ 0x1004a72b7", "SecretLayer3::revealStep4 @ 0x1004a7a58", "SecretLayer3::revealStep5 @ 0x1004a8027", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x100601ef8"], "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"}