{"type": "func", "start": 5370239520, "end": 5370240117, "name": "DialogLayer::animateIn", "pseudocode": "// \n// DialogLayer::animateIn from 0x140175a20 to 0x140175c75 (597 bytes)\n// \n// 23 xrefs:\n// > CreatorLayer::onTreasureRoom @ 0x140139178\n// > DailyLevelPage::dailyStatusFailed @ 0x140170d25\n// > DialogLayer::animateInRandomSide @ 0x14017586e\n// > DialogLayer::animateInRandomSide @ 0x1401759f9\n// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8b43\n// > GJGarageLayer::showUnlockPopup @ 0x140380be8\n// > GJPathPage::showCantAffordMessage @ 0x1403959c2\n// > GJShopLayer::showCantAffordMessage @ 0x1403b27e2\n// > LevelListLayer::onClaimReward @ 0x14042e408\n// > LevelPage::onSecretDoor @ 0x140446c35\n// > SecretLayer2::showCompletedLevel @ 0x14057a087\n// > SecretLayer3::firstInteractionStep2 @ 0x140581a08\n// > SecretLayer3::firstInteractionStep4 @ 0x140581ed9\n// > SecretLayer3::onClick @ 0x140583130\n// > SecretLayer3::revealStep2 @ 0x140583c36\n// > SecretLayer3::revealStep4 @ 0x14058435c\n// > SecretLayer3::revealStep5 @ 0x140584990\n// > SecretLayer4::showFirstDialog @ 0x140588525\n// > SecretLayer5::showFirstDialog @ 0x14058d7d6\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x140636173\n// > <???> @ 0x14089d38c\n// > <???> @ 0x14089d39c\n// > <???> @ 0x1409184dc\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:33 +0000\n// \n\nstruct cocos2d::CCAction *__fastcall DialogLayer::animateIn(cocos2d::CCNode *a1, __int64 a2)\n{\n  int v2; // ebx\n  const struct cocos2d::CCPoint *v4; // rax\n  __int64 v5; // rcx\n  float v6; // xmm2_4\n  __int64 *v7; // rbx\n  float v8; // xmm1_4\n  __int64 v9; // rdi\n  cocos2d::CCDirector *v10; // rax\n  float ScreenRight; // xmm0_4\n  cocos2d::CCDirector *v12; // rax\n  float ScreenTop; // xmm0_4\n  __int64 v14; // rax\n  struct cocos2d::CCActionInterval *v15; // rax\n  struct cocos2d::CCAction *v16; // rax\n  struct cocos2d::CCActionInterval *v17; // rax\n  struct cocos2d::CCAction *v18; // rax\n  struct cocos2d::CCAction *result; // rax\n  float v20; // xmm6_4\n  struct cocos2d::CCAction *v21; // rax\n  float v22; // [rsp+20h] [rbp-38h] BYREF\n  float v23; // [rsp+24h] [rbp-34h]\n  struct __timeb64 Time; // [rsp+28h] [rbp-30h] BYREF\n\n  v2 = a2;\n  LOBYTE(a2) = 1;\n  (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 336LL))(a1, a2);\n  ftime64(&Time);\n  *((double *)a1 + 69) = (double)Time.millitm / 1000.0 + (double)SLODWORD(Time.time);\n  if ( v2 != 1 )\n  {\n    if ( v2 != 2 && v2 != 3 && (unsigned int)(v2 - 4) > 1 )\n      goto LABEL_15;\n    v4 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 70) + 200LL))(*((_QWORD *)a1 + 70));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, v4);\n    if ( v2 == 2 )\n    {\n      v6 = v23;\n      v7 = *((__int64 **)a1 + 70);\n      v8 = -191.0;\n      v9 = *v7;\n    }\n    else\n    {\n      if ( v2 == 3 )\n      {\n        v9 = **((_QWORD **)a1 + 70);\n        v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n        ScreenRight = cocos2d::CCDirector::getScreenRight(v10);\n        v6 = v23;\n        v8 = (float)(ScreenRight + 190.0) + 1.0;\n      }\n      else\n      {\n        if ( v2 != 4 )\n        {\nLABEL_13:\n          v15 = cocos2d::CCMoveTo::create(0.5, (const struct cocos2d::CCPoint *)&v22);\n          v16 = cocos2d::CCEaseElasticOut::create(v15, 0.60000002);\n          cocos2d::CCNode::runAction(*((cocos2d::CCNode **)a1 + 70), v16);\n          goto LABEL_15;\n        }\n        v9 = **((_QWORD **)a1 + 70);\n        v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n        ScreenTop = cocos2d::CCDirector::getScreenTop(v12);\n        v8 = v22;\n        v6 = (float)(ScreenTop + 50.0) + 1.0;\n      }\n      v7 = *((__int64 **)a1 + 70);\n    }\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Time, v8, v6);\n    (*(void (__fastcall **)(__int64 *, __int64))(v9 + 184))(v7, v14);\n    goto LABEL_13;\n  }\n  (*(void (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 70) + 160LL))(*((_QWORD *)a1 + 70));\n  v17 = cocos2d::CCScaleTo::create(0.5, 1.0);\n  v18 = cocos2d::CCEaseElasticOut::create(v17, 0.60000002);\n  cocos2d::CCNode::runAction(*((cocos2d::CCNode **)a1 + 70), v18);\nLABEL_15:\n  result = (struct cocos2d::CCAction *)(*(unsigned __int8 (__fastcall **)(__int64))(*((_QWORD *)a1 + 51) + 32LL))((__int64)a1 + 408);\n  v20 = (float)(unsigned __int8)result;\n  if ( v20 > 0.0 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)a1 + 51) + 40LL))((__int64)a1 + 408, 0);\n    v21 = cocos2d::CCFadeTo::create(0.14, (int)v20);\n    return cocos2d::CCNode::runAction(a1, v21);\n  }\n  return result;\n}", "assembly": "; \n; DialogLayer::animateIn from 0x140175a20 to 0x140175c75 (597 bytes)\n; \n; 23 xrefs:\n; > CreatorLayer::onTreasureRoom @ 0x140139178\n; > DailyLevelPage::dailyStatusFailed @ 0x140170d25\n; > DialogLayer::animateInRandomSide @ 0x14017586e\n; > DialogLayer::animateInRandomSide @ 0x1401759f9\n; > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8b43\n; > GJGarageLayer::showUnlockPopup @ 0x140380be8\n; > GJPathPage::showCantAffordMessage @ 0x1403959c2\n; > GJShopLayer::showCantAffordMessage @ 0x1403b27e2\n; > LevelListLayer::onClaimReward @ 0x14042e408\n; > LevelPage::onSecretDoor @ 0x140446c35\n; > SecretLayer2::showCompletedLevel @ 0x14057a087\n; > SecretLayer3::firstInteractionStep2 @ 0x140581a08\n; > SecretLayer3::firstInteractionStep4 @ 0x140581ed9\n; > SecretLayer3::onClick @ 0x140583130\n; > SecretLayer3::revealStep2 @ 0x140583c36\n; > SecretLayer3::revealStep4 @ 0x14058435c\n; > SecretLayer3::revealStep5 @ 0x140584990\n; > SecretLayer4::showFirstDialog @ 0x140588525\n; > SecretLayer5::showFirstDialog @ 0x14058d7d6\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x140636173\n; > <???> @ 0x14089d38c\n; > <???> @ 0x14089d39c\n; > <???> @ 0x1409184dc\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:33 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140175a20\npush    rsi                                                            ; +0x5, 0x140175a25\nsub     rsp, 50h                                                       ; +0x6, 0x140175a26\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xa, 0x140175a2a\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x140175a2f\nxor     rax, rsp                                                       ; +0x16, 0x140175a36\nmov     [rsp+58h+var_20], rax                                          ; +0x19, 0x140175a39\nmov     rax, [rcx]                                                     ; +0x1e, 0x140175a3e\nmov     ebx, edx                                                       ; +0x21, 0x140175a41\nmov     dl, 1                                                          ; +0x23, 0x140175a43\nmov     rsi, rcx                                                       ; +0x25, 0x140175a45\ncall    qword ptr [rax+150h]                                           ; +0x28, 0x140175a48\nlea     rcx, [rsp+58h+Time]; Time                                      ; +0x2e, 0x140175a4e\ncall    cs:_ftime64                                                    ; +0x33, 0x140175a53\nmovzx   eax, [rsp+58h+Time.millitm]                                    ; +0x39, 0x140175a59\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x140175a5e\ncvtsi2sd xmm0, [rsp+58h+Time.time]                                     ; +0x41, 0x140175a61\nmov     ecx, ebx                                                       ; +0x48, 0x140175a68\nmovd    xmm1, eax                                                      ; +0x4a, 0x140175a6a\ncvtdq2pd xmm1, xmm1                                                    ; +0x4e, 0x140175a6e\ndivsd   xmm1, cs:qword_140835460                                       ; +0x52, 0x140175a72\naddsd   xmm1, xmm0                                                     ; +0x5a, 0x140175a7a\nmovsd   qword ptr [rsi+228h], xmm1                                     ; +0x5e, 0x140175a7e\nsub     ecx, 1                                                         ; +0x66, 0x140175a86\njz      loc_140175BB5                                                  ; +0x69, 0x140175a89\nsub     ecx, 1                                                         ; +0x6f, 0x140175a8f\njz      short loc_140175AA7                                            ; +0x72, 0x140175a92\nsub     ecx, 1                                                         ; +0x74, 0x140175a94\njz      short loc_140175AA7                                            ; +0x77, 0x140175a97\nsub     ecx, 1                                                         ; +0x79, 0x140175a99\njz      short loc_140175AA7                                            ; +0x7c, 0x140175a9c\ncmp     ecx, 1                                                         ; +0x7e, 0x140175a9e\njnz     loc_140175C04                                                  ; +0x81, 0x140175aa1\nmov     rcx, [rsi+230h]                                                ; +0x87, 0x140175aa7\nmov     [rsp+58h+arg_8], rdi                                           ; +0x8e, 0x140175aae\nmov     rax, [rcx]                                                     ; +0x93, 0x140175ab3\ncall    qword ptr [rax+0C8h]                                           ; +0x96, 0x140175ab6\nmov     rdx, rax                                                       ; +0x9c, 0x140175abc\nlea     rcx, [rsp+58h+var_38]                                          ; +0x9f, 0x140175abf\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xa4, 0x140175ac4\ncmp     ebx, 2                                                         ; +0xaa, 0x140175aca\njnz     short loc_140175AEC                                            ; +0xad, 0x140175acd\nmov     rax, [rsi+230h]                                                ; +0xaf, 0x140175acf\nmovss   xmm2, [rsp+58h+var_34]                                         ; +0xb6, 0x140175ad6\nmov     rbx, rax                                                       ; +0xbc, 0x140175adc\nmovss   xmm1, cs:dword_140836080                                       ; +0xbf, 0x140175adf\nmov     rdi, [rax]                                                     ; +0xc7, 0x140175ae7\njmp     short loc_140175B63                                            ; +0xca, 0x140175aea\ncmp     ebx, 3                                                         ; +0xcc, 0x140175aec\njnz     short loc_140175B25                                            ; +0xcf, 0x140175aef\nmov     rax, [rsi+230h]                                                ; +0xd1, 0x140175af1\nmov     rdi, [rax]                                                     ; +0xd8, 0x140175af8\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xdb, 0x140175afb\nmov     rcx, rax                                                       ; +0xe1, 0x140175b01\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0xe4, 0x140175b04\naddss   xmm0, cs:dword_1408358D8                                       ; +0xea, 0x140175b0a\nmovss   xmm2, [rsp+58h+var_34]                                         ; +0xf2, 0x140175b12\naddss   xmm0, cs:flt_140835080                                         ; +0xf8, 0x140175b18\nmovaps  xmm1, xmm0                                                     ; +0x100, 0x140175b20\njmp     short loc_140175B5C                                            ; +0x103, 0x140175b23\ncmp     ebx, 4                                                         ; +0x105, 0x140175b25\njnz     short loc_140175B7A                                            ; +0x108, 0x140175b28\nmov     rax, [rsi+230h]                                                ; +0x10a, 0x140175b2a\nmov     rdi, [rax]                                                     ; +0x111, 0x140175b31\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x114, 0x140175b34\nmov     rcx, rax                                                       ; +0x11a, 0x140175b3a\ncall    cs:?getScreenTop@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenTop(void) ; +0x11d, 0x140175b3d\naddss   xmm0, cs:dword_1408356B0                                       ; +0x123, 0x140175b43\nmovss   xmm1, [rsp+58h+var_38]                                         ; +0x12b, 0x140175b4b\naddss   xmm0, cs:flt_140835080                                         ; +0x131, 0x140175b51\nmovaps  xmm2, xmm0                                                     ; +0x139, 0x140175b59\nmov     rbx, [rsi+230h]                                                ; +0x13c, 0x140175b5c\nlea     rcx, [rsp+58h+Time]                                            ; +0x143, 0x140175b63\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x148, 0x140175b68\nmov     rdx, rax                                                       ; +0x14e, 0x140175b6e\nmov     rcx, rbx                                                       ; +0x151, 0x140175b71\ncall    qword ptr [rdi+0B8h]                                           ; +0x154, 0x140175b74\nmovss   xmm0, cs:dword_140834F20                                       ; +0x15a, 0x140175b7a\nlea     rdx, [rsp+58h+var_38]                                          ; +0x162, 0x140175b82\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0x167, 0x140175b87\nmovss   xmm1, cs:dword_140834F64                                       ; +0x16d, 0x140175b8d\nmov     rcx, rax                                                       ; +0x175, 0x140175b95\ncall    cs:?create@CCEaseElasticOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x178, 0x140175b98\nmov     rcx, [rsi+230h]                                                ; +0x17e, 0x140175b9e\nmov     rdx, rax                                                       ; +0x185, 0x140175ba5\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x188, 0x140175ba8\nmov     rdi, [rsp+58h+arg_8]                                           ; +0x18e, 0x140175bae\njmp     short loc_140175C04                                            ; +0x193, 0x140175bb3\nmov     rcx, [rsi+230h]                                                ; +0x195, 0x140175bb5\nmovss   xmm1, cs:dword_140834E00                                       ; +0x19c, 0x140175bbc\nmov     rax, [rcx]                                                     ; +0x1a4, 0x140175bc4\ncall    qword ptr [rax+0A0h]                                           ; +0x1a7, 0x140175bc7\nmovss   xmm1, cs:flt_140835080                                         ; +0x1ad, 0x140175bcd\nmovss   xmm0, cs:dword_140834F20                                       ; +0x1b5, 0x140175bd5\ncall    cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0x1bd, 0x140175bdd\nmovss   xmm1, cs:dword_140834F64                                       ; +0x1c3, 0x140175be3\nmov     rcx, rax                                                       ; +0x1cb, 0x140175beb\ncall    cs:?create@CCEaseElasticOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x1ce, 0x140175bee\nmov     rcx, [rsi+230h]                                                ; +0x1d4, 0x140175bf4\nmov     rdx, rax                                                       ; +0x1db, 0x140175bfb\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x1de, 0x140175bfe\nmov     rax, [rsi+198h]                                                ; +0x1e4, 0x140175c04\nlea     rcx, [rsi+198h]                                                ; +0x1eb, 0x140175c0b\ncall    qword ptr [rax+20h]                                            ; +0x1f2, 0x140175c12\nmovzx   eax, al                                                        ; +0x1f5, 0x140175c15\nxorps   xmm0, xmm0                                                     ; +0x1f8, 0x140175c18\nmovd    xmm6, eax                                                      ; +0x1fb, 0x140175c1b\ncvtdq2ps xmm6, xmm6                                                    ; +0x1ff, 0x140175c1f\ncomiss  xmm6, xmm0                                                     ; +0x202, 0x140175c22\njbe     short loc_140175C58                                            ; +0x205, 0x140175c25\nmov     rax, [rsi+198h]                                                ; +0x207, 0x140175c27\nlea     rcx, [rsi+198h]                                                ; +0x20e, 0x140175c2e\nxor     edx, edx                                                       ; +0x215, 0x140175c35\ncall    qword ptr [rax+28h]                                            ; +0x217, 0x140175c37\nmovss   xmm0, cs:dword_140834E28                                       ; +0x21a, 0x140175c3a\ncvttss2si edx, xmm6                                                    ; +0x222, 0x140175c42\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x226, 0x140175c46\nmov     rdx, rax                                                       ; +0x22c, 0x140175c4c\nmov     rcx, rsi                                                       ; +0x22f, 0x140175c4f\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x232, 0x140175c52\nmov     rcx, [rsp+58h+var_20]                                          ; +0x238, 0x140175c58\nxor     rcx, rsp; StackCookie                                          ; +0x23d, 0x140175c5d\ncall    __security_check_cookie                                        ; +0x240, 0x140175c60\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x245, 0x140175c65\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x24a, 0x140175c6a\nadd     rsp, 50h                                                       ; +0x24f, 0x140175c6f\npop     rsi                                                            ; +0x253, 0x140175c73\nretn                                                                   ; +0x254, 0x140175c74", "xrefs": ["CreatorLayer::onTreasureRoom @ 0x140139178", "DailyLevelPage::dailyStatusFailed @ 0x140170d25", "DialogLayer::animateInRandomSide @ 0x14017586e", "DialogLayer::animateInRandomSide @ 0x1401759f9", "GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8b43", "GJGarageLayer::showUnlockPopup @ 0x140380be8", "GJPathPage::showCantAffordMessage @ 0x1403959c2", "GJShopLayer::showCantAffordMessage @ 0x1403b27e2", "LevelListLayer::onClaimReward @ 0x14042e408", "LevelPage::onSecretDoor @ 0x140446c35", "SecretLayer2::showCompletedLevel @ 0x14057a087", "SecretLayer3::firstInteractionStep2 @ 0x140581a08", "SecretLayer3::firstInteractionStep4 @ 0x140581ed9", "SecretLayer3::onClick @ 0x140583130", "SecretLayer3::revealStep2 @ 0x140583c36", "SecretLayer3::revealStep4 @ 0x14058435c", "SecretLayer3::revealStep5 @ 0x140584990", "SecretLayer4::showFirstDialog @ 0x140588525", "SecretLayer5::showFirstDialog @ 0x14058d7d6", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x140636173", "<???> @ 0x14089d38c", "<???> @ 0x14089d39c", "<???> @ 0x1409184dc"], "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"}