{"type": "func", "start": 6329344, "end": 6329744, "name": "DialogLayer::animateIn", "pseudocode": "// \n// DialogLayer::animateIn from 0x609400 to 0x609590 (400 bytes)\n// \n// 24 xrefs:\n// > PlayLayer::destroyPlayer @ 0x405fdc\n// > CreatorLayer::onTreasureRoom @ 0x494118\n// > GJGarageLayer::showUnlockPopup @ 0x50eb82\n// > LevelPage::onSecretDoor @ 0x513e00\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x53ade8\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x5db6ca\n// > DailyLevelPage::dailyStatusFailed @ 0x607dce\n// > DialogLayer::animateInRandomSide @ 0x6095f4\n// > DialogLayer::animateInDialog @ 0x609604\n// > GJShopLayer::showCantAffordMessage @ 0x613bf8\n// > SecretLayer2::showCompletedLevel @ 0x61b8ac\n// > SecretLayer3::firstInteractionStep2 @ 0x61bdc2\n// > SecretLayer3::firstInteractionStep4 @ 0x61bff0\n// > SecretLayer3::onClick @ 0x61c642\n// > SecretLayer3::revealStep2 @ 0x61cd00\n// > SecretLayer3::revealStep5 @ 0x61cf70\n// > SecretLayer3::revealStep4 @ 0x61da64\n// > SecretLayer4::showDialog @ 0x62188e\n// > SecretLayer4::showFirstDialog @ 0x621b18\n// > GJPathPage::showCantAffordMessage @ 0x6d46ee\n// > LevelListLayer::onClaimReward @ 0x6d6c7c\n// > SecretLayer5::showDialog @ 0x6e4876\n// > SecretLayer5::showFirstDialog @ 0x6e4b56\n// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x711092\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:54:46 +0000\n// \n\nunsigned int __fastcall DialogLayer::animateIn(cocos2d::CCNode *a1, unsigned int a2)\n{\n  float v4; // r2\n  cocos2d::CCEaseElasticOut *v5; // r0\n  float v6; // r2\n  const cocos2d::CCPoint *v7; // r0\n  cocos2d::CCDirector *v8; // r0\n  int *v9; // r6\n  int v10; // r3\n  void (__fastcall *v11)(int *, float *); // r7\n  float v12; // r1\n  cocos2d::CCDirector *v13; // r0\n  const cocos2d::CCPoint *v14; // r2\n  bool v15; // zf\n  void (__fastcall *v16)(int *, float *); // r10\n  float v17; // r7\n  cocos2d::CCDirector *v18; // r0\n  float v19; // r0\n  cocos2d::CCDirector *v20; // r0\n  float v21; // r0\n  float v22; // r1\n  float v23; // s15\n  cocos2d::CCAction *v24; // r0\n  unsigned int result; // r0\n  unsigned __int8 v26; // r2\n  cocos2d::CCAction *v27; // r0\n  float v28; // [sp+4h] [bp-1Ch]\n  _DWORD v29[2]; // [sp+Ch] [bp-14h] BYREF\n  float v30[2]; // [sp+14h] [bp-Ch] BYREF\n\n  (*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)a1 + 172))(a1, 1);\n  clock_gettime(0, (struct timespec *)v30);\n  *((double *)a1 + 56) = (double)SLODWORD(v30[0]) + (double)SLODWORD(v30[1]) / 1000000000.0;\n  if ( a2 != 1 )\n  {\n    if ( !a2 || a2 > 5 )\n      goto LABEL_17;\n    v7 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 114) + 96))(*((_DWORD *)a1 + 114));\n    v8 = (cocos2d::CCDirector *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, v7);\n    v9 = *((int **)a1 + 114);\n    v10 = *v9;\n    if ( a2 == 2 )\n    {\n      v11 = *(void (__fastcall **)(int *, float *))(v10 + 92);\n      v12 = -191.0;\n    }\n    else\n    {\n      if ( a2 != 3 )\n      {\n        v15 = a2 == 4;\n        v16 = *(void (__fastcall **)(int *, float *))(v10 + 92);\n        v17 = *(float *)v29;\n        if ( v15 )\n        {\n          v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n          v19 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v18));\n          v22 = v17;\n          v23 = (float)(v19 + 50.0) + 1.0;\n        }\n        else\n        {\n          v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n          v21 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v20));\n          v22 = v17;\n          v23 = (float)(v21 - 50.0) - 1.0;\n        }\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, v22, v23);\n        v16(v9, v30);\n        goto LABEL_15;\n      }\n      v11 = *(void (__fastcall **)(int *, float *))(v10 + 92);\n      v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n      v12 = (float)(COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v13)) + 190.0) + 1.0;\n    }\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, v12, *(float *)&v29[1]);\n    v11(v9, v30);\nLABEL_15:\n    v5 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)0x3F000000, COERCE_FLOAT(v29), v14);\n    goto LABEL_16;\n  }\n  (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 114) + 80))(*((_DWORD *)a1 + 114), 1036831949);\n  v5 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3F000000, 1.0, v4);\nLABEL_16:\n  v24 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v5, (cocos2d::CCActionInterval *)0x3F19999A, v6);\n  cocos2d::CCNode::runAction(*((cocos2d::CCNode **)a1 + 114), v24);\nLABEL_17:\n  *(float *)&result = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)a1 + 576))(a1));\n  v28 = *(float *)&result;\n  if ( (float)result > 0.0 )\n  {\n    (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)a1 + 584))(a1, 0);\n    v27 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3E0F5C29, v28, v26);\n    *(float *)&result = COERCE_FLOAT(cocos2d::CCNode::runAction(a1, v27));\n  }\n  return result;\n}", "assembly": "; \n; DialogLayer::animateIn from 0x609400 to 0x609590 (400 bytes)\n; \n; 24 xrefs:\n; > PlayLayer::destroyPlayer @ 0x405fdc\n; > CreatorLayer::onTreasureRoom @ 0x494118\n; > GJGarageLayer::showUnlockPopup @ 0x50eb82\n; > LevelPage::onSecretDoor @ 0x513e00\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x53ade8\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x5db6ca\n; > DailyLevelPage::dailyStatusFailed @ 0x607dce\n; > DialogLayer::animateInRandomSide @ 0x6095f4\n; > DialogLayer::animateInDialog @ 0x609604\n; > GJShopLayer::showCantAffordMessage @ 0x613bf8\n; > SecretLayer2::showCompletedLevel @ 0x61b8ac\n; > SecretLayer3::firstInteractionStep2 @ 0x61bdc2\n; > SecretLayer3::firstInteractionStep4 @ 0x61bff0\n; > SecretLayer3::onClick @ 0x61c642\n; > SecretLayer3::revealStep2 @ 0x61cd00\n; > SecretLayer3::revealStep5 @ 0x61cf70\n; > SecretLayer3::revealStep4 @ 0x61da64\n; > SecretLayer4::showDialog @ 0x62188e\n; > SecretLayer4::showFirstDialog @ 0x621b18\n; > GJPathPage::showCantAffordMessage @ 0x6d46ee\n; > LevelListLayer::onClaimReward @ 0x6d6c7c\n; > SecretLayer5::showDialog @ 0x6e4876\n; > SecretLayer5::showFirstDialog @ 0x6e4b56\n; > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x711092\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:54:46 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x609400\nMOV             R7, R1                                                 ; +0x4, 0x609404\nVPUSH           {D8}                                                   ; +0x6, 0x609406\nMOVS            R1, #1                                                 ; +0xa, 0x60940a\nLDR.W           R8, =(__stack_chk_guard_ptr - 0x609416)                ; +0xc, 0x60940c\nMOV             R4, R0                                                 ; +0x10, 0x609410\nADD             R8, PC; __stack_chk_guard_ptr                          ; +0x12, 0x609412\nLDR.W           R8, [R8]; __stack_chk_guard                            ; +0x14, 0x609414\nSUB             SP, SP, #0x20                                          ; +0x18, 0x609418\nLDR.W           R3, [R8]                                               ; +0x1a, 0x60941a\nADD             R5, SP, #0x20+var_C                                    ; +0x1e, 0x60941e\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x20, 0x609420\nLDR             R3, [R0]                                               ; +0x22, 0x609422\nLDR.W           R3, [R3,#0xAC]                                         ; +0x24, 0x609424\nBLX             R3                                                     ; +0x28, 0x609428\nMOVS            R0, #0; clock_id                                       ; +0x2a, 0x60942a\nMOV             R1, R5; tp                                             ; +0x2c, 0x60942c\nBLX             clock_gettime                                          ; +0x2e, 0x60942e\nVLDR            S15, [SP,#0x20+var_C]                                  ; +0x32, 0x609432\nCMP             R7, #1                                                 ; +0x36, 0x609436\nVLDR            D5, =1.0e9                                             ; +0x38, 0x609438\nVCVT.F64.S32    D6, S15                                                ; +0x3c, 0x60943c\nVLDR            S15, [SP,#0x20+var_8]                                  ; +0x40, 0x609440\nVCVT.F64.S32    D7, S15                                                ; +0x44, 0x609444\nVDIV.F64        D7, D7, D5                                             ; +0x48, 0x609448\nVADD.F64        D7, D6, D7                                             ; +0x4c, 0x60944c\nVSTR            D7, [R4,#0x1C0]                                        ; +0x50, 0x609450\nBEQ             loc_60945E                                             ; +0x54, 0x609454\nBCC             loc_60953E                                             ; +0x56, 0x609456\nCMP             R7, #5                                                 ; +0x58, 0x609458\nBLS             loc_609478                                             ; +0x5a, 0x60945a\nB               loc_60953E                                             ; +0x5c, 0x60945c\nLDR.W           R0, [R4,#0x1C8]                                        ; +0x5e, 0x60945e\nLDR             R1, =0x3DCCCCCD                                        ; +0x62, 0x609462\nLDR             R3, [R0]                                               ; +0x64, 0x609464\nLDR             R3, [R3,#0x50]                                         ; +0x66, 0x609466\nBLX             R3                                                     ; +0x68, 0x609468\nMOV.W           R1, #0x3F800000; float                                 ; +0x6a, 0x60946a\nMOV.W           R0, #0x3F000000; this                                  ; +0x6e, 0x60946e\nBL              _ZN7cocos2d9CCScaleTo6createEff; cocos2d::CCScaleTo::create(float,float) ; +0x72, 0x609472\nB               loc_60952E                                             ; +0x76, 0x609476\nLDR.W           R0, [R4,#0x1C8]                                        ; +0x78, 0x609478\nADD.W           R9, SP, #0x20+var_14                                   ; +0x7c, 0x60947c\nLDR             R3, [R0]                                               ; +0x80, 0x609480\nLDR             R3, [R3,#0x60]                                         ; +0x82, 0x609482\nBLX             R3                                                     ; +0x84, 0x609484\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x86, 0x609486\nMOV             R0, R9; this                                           ; +0x88, 0x609488\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x8a, 0x60948a\nLDR.W           R6, [R4,#0x1C8]                                        ; +0x8e, 0x60948e\nCMP             R7, #2                                                 ; +0x92, 0x609492\nLDR             R3, [R6]                                               ; +0x94, 0x609494\nBNE             loc_6094A0                                             ; +0x96, 0x609496\nLDR             R7, [R3,#0x5C]                                         ; +0x98, 0x609498\nMOV             R0, R5                                                 ; +0x9a, 0x60949a\nLDR             R1, =0xC33F0000                                        ; +0x9c, 0x60949c\nB               loc_6094C8                                             ; +0x9e, 0x60949e\nCMP             R7, #3                                                 ; +0xa0, 0x6094a0\nVMOV.F32        S17, #1.0                                              ; +0xa2, 0x6094a2\nBNE             loc_6094D6                                             ; +0xa6, 0x6094a6\nLDR             R7, [R3,#0x5C]                                         ; +0xa8, 0x6094a8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xaa, 0x6094aa\nBL              _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0xae, 0x6094ae\nVLDR            S15, =190.0                                            ; +0xb2, 0x6094b2\nVMOV            S14, R0                                                ; +0xb6, 0x6094b6\nMOV             R0, R5; this                                           ; +0xba, 0x6094ba\nVADD.F32        S15, S14, S15                                          ; +0xbc, 0x6094bc\nVADD.F32        S15, S15, S17                                          ; +0xc0, 0x6094c0\nVMOV            R1, S15; float                                         ; +0xc4, 0x6094c4\nLDR             R2, [SP,#0x20+var_10]; float                           ; +0xc8, 0x6094c8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xca, 0x6094ca\nMOV             R0, R6                                                 ; +0xce, 0x6094ce\nMOV             R1, R5                                                 ; +0xd0, 0x6094d0\nBLX             R7                                                     ; +0xd2, 0x6094d2\nB               loc_609524                                             ; +0xd4, 0x6094d4\nCMP             R7, #4                                                 ; +0xd6, 0x6094d6\nLDR.W           R10, [R3,#0x5C]                                        ; +0xd8, 0x6094d8\nLDR             R7, [SP,#0x20+var_14]                                  ; +0xdc, 0x6094dc\nVLDR            S16, =50.0                                             ; +0xde, 0x6094de\nBNE             loc_6094FE                                             ; +0xe2, 0x6094e2\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xe4, 0x6094e4\nBL              _ZN7cocos2d10CCDirector12getScreenTopEv; cocos2d::CCDirector::getScreenTop(void) ; +0xe8, 0x6094e8\nMOV             R1, R7                                                 ; +0xec, 0x6094ec\nVMOV            S15, R0                                                ; +0xee, 0x6094ee\nMOV             R0, R5                                                 ; +0xf2, 0x6094f2\nVADD.F32        S16, S15, S16                                          ; +0xf4, 0x6094f4\nVADD.F32        S15, S16, S17                                          ; +0xf8, 0x6094f8\nB               loc_609516                                             ; +0xfc, 0x6094fc\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xfe, 0x6094fe\nBL              _ZN7cocos2d10CCDirector12getScreenTopEv; cocos2d::CCDirector::getScreenTop(void) ; +0x102, 0x609502\nMOV             R1, R7; float                                          ; +0x106, 0x609506\nVMOV            S15, R0                                                ; +0x108, 0x609508\nMOV             R0, R5; this                                           ; +0x10c, 0x60950c\nVSUB.F32        S16, S15, S16                                          ; +0x10e, 0x60950e\nVSUB.F32        S15, S16, S17                                          ; +0x112, 0x609512\nVMOV            R2, S15; float                                         ; +0x116, 0x609516\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x11a, 0x60951a\nMOV             R0, R6                                                 ; +0x11e, 0x60951e\nMOV             R1, R5                                                 ; +0x120, 0x609520\nBLX             R10                                                    ; +0x122, 0x609522\nMOV.W           R0, #0x3F000000; this                                  ; +0x124, 0x609524\nMOV             R1, R9; float                                          ; +0x128, 0x609528\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x12a, 0x60952a\nLDR             R1, =0x3F19999A; cocos2d::CCActionInterval *           ; +0x12e, 0x60952e\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x130, 0x609530\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x134, 0x609534\nLDR.W           R0, [R4,#0x1C8]; this                                  ; +0x136, 0x609536\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x13a, 0x60953a\nLDR             R3, [R4]                                               ; +0x13e, 0x60953e\nMOV             R0, R4                                                 ; +0x140, 0x609540\nLDR.W           R3, [R3,#0x240]                                        ; +0x142, 0x609542\nBLX             R3                                                     ; +0x146, 0x609546\nVMOV            S15, R0                                                ; +0x148, 0x609548\nSTR             R0, [SP,#0x20+var_1C]                                  ; +0x14c, 0x60954c\nVCVT.F32.U32    S15, S15                                               ; +0x14e, 0x60954e\nVCMPE.F32       S15, #0.0                                              ; +0x152, 0x609552\nVMRS            APSR_nzcv, FPSCR                                       ; +0x156, 0x609556\nBLE             loc_609578                                             ; +0x15a, 0x60955a\nLDR             R3, [R4]                                               ; +0x15c, 0x60955c\nMOV             R0, R4                                                 ; +0x15e, 0x60955e\nMOVS            R1, #0                                                 ; +0x160, 0x609560\nLDR.W           R3, [R3,#0x248]                                        ; +0x162, 0x609562\nBLX             R3                                                     ; +0x166, 0x609566\nLDR             R1, [SP,#0x20+var_1C]; float                           ; +0x168, 0x609568\nLDR             R0, =0x3E0F5C29; this                                  ; +0x16a, 0x60956a\nBL              _ZN7cocos2d8CCFadeTo6createEfh; cocos2d::CCFadeTo::create(float,uchar) ; +0x16c, 0x60956c\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x170, 0x609570\nMOV             R0, R4; this                                           ; +0x172, 0x609572\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x174, 0x609574\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x178, 0x609578\nLDR.W           R3, [R8]                                               ; +0x17a, 0x60957a\nCMP             R2, R3                                                 ; +0x17e, 0x60957e\nBEQ             loc_609586                                             ; +0x180, 0x609580\nBLX             __stack_chk_fail                                       ; +0x182, 0x609582\nADD             SP, SP, #0x20 ; ' '                                    ; +0x186, 0x609586\nVPOP            {D8}                                                   ; +0x188, 0x609588\nPOP.W           {R4-R10,PC}                                            ; +0x18c, 0x60958c", "xrefs": ["PlayLayer::destroyPlayer @ 0x405fdc", "CreatorLayer::onTreasureRoom @ 0x494118", "GJGarageLayer::showUnlockPopup @ 0x50eb82", "LevelPage::onSecretDoor @ 0x513e00", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x53ade8", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x5db6ca", "DailyLevelPage::dailyStatusFailed @ 0x607dce", "DialogLayer::animateInRandomSide @ 0x6095f4", "DialogLayer::animateInDialog @ 0x609604", "GJShopLayer::showCantAffordMessage @ 0x613bf8", "SecretLayer2::showCompletedLevel @ 0x61b8ac", "SecretLayer3::firstInteractionStep2 @ 0x61bdc2", "SecretLayer3::firstInteractionStep4 @ 0x61bff0", "SecretLayer3::onClick @ 0x61c642", "SecretLayer3::revealStep2 @ 0x61cd00", "SecretLayer3::revealStep5 @ 0x61cf70", "SecretLayer3::revealStep4 @ 0x61da64", "SecretLayer4::showDialog @ 0x62188e", "SecretLayer4::showFirstDialog @ 0x621b18", "GJPathPage::showCantAffordMessage @ 0x6d46ee", "LevelListLayer::onClaimReward @ 0x6d6c7c", "SecretLayer5::showDialog @ 0x6e4876", "SecretLayer5::showFirstDialog @ 0x6e4b56", "GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x711092"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}