{"type": "func", "start": 5072688, "end": 5073092, "name": "DialogLayer::animateIn", "pseudocode": "// \n// DialogLayer::animateIn from 0x4d6730 to 0x4d68c4 (404 bytes)\n// \n// 23 xrefs:\n// > PlayLayer::destroyPlayer @ 0x31423e\n// > CreatorLayer::onTreasureRoom @ 0x3aad72\n// > GJGarageLayer::showUnlockPopup @ 0x405b26\n// > LevelPage::onSecretDoor @ 0x408d2c\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x42d886\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x4b1996\n// > DailyLevelPage::dailyStatusFailed @ 0x4d39d0\n// > DialogLayer::animateInRandomSide @ 0x4d692c\n// > DialogLayer::animateInDialog @ 0x4d693c\n// > GJShopLayer::showCantAffordMessage @ 0x4e47da\n// > SecretLayer2::showCompletedLevel @ 0x4ea404\n// > SecretLayer3::firstInteractionStep4 @ 0x4ea686\n// > SecretLayer3::revealStep2 @ 0x4ea83c\n// > SecretLayer3::revealStep5 @ 0x4eaa70\n// > SecretLayer3::revealStep4 @ 0x4eb0d4\n// > SecretLayer3::firstInteractionStep2 @ 0x4eb628\n// > SecretLayer3::onClick @ 0x4ebb46\n// > SecretLayer4::showFirstDialog @ 0x4f00dc\n// > SecretLayer4::showDialog @ 0x4f06ae\n// > GJPathPage::showCantAffordMessage @ 0x58e8ee\n// > LevelListLayer::onClaimReward @ 0x58ed82\n// > SecretLayer5::showFirstDialog @ 0x59c2cc\n// > SecretLayer5::showDialog @ 0x59d9ea\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; // s14\n  float v5; // r2\n  cocos2d::CCEaseElasticOut *v6; // r0\n  float v7; // r2\n  const cocos2d::CCPoint *v8; // r0\n  cocos2d::CCLayer *m_mainLayer; // r6\n  cocos2d::CCLayer_vtbl *v10; // r3\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7\n  float v12; // r1\n  cocos2d::CCDirector *v13; // r0\n  bool v14; // zf\n  void (__fastcall *v15)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10\n  float x; // r7\n  cocos2d::CCDirector *v17; // r0\n  float v18; // r0\n  cocos2d::CCDirector *v19; // r0\n  float v20; // r0\n  float v21; // r1\n  float v22; // s15\n  cocos2d::CCAction *v23; // r0\n  cocos2d::CCFadeTo *v24; // r0\n  unsigned int v25; // [sp+4h] [bp-1Ch]\n  cocos2d::CCPoint v26; // [sp+Ch] [bp-14h] BYREF\n  cocos2d::CCPoint v27; // [sp+14h] [bp-Ch] BYREF\n\n  a1->setVisible(a1, 1);\n  clock_gettime(0, (struct timespec *)&v27);\n  v4 = (double)SLODWORD(v27.x) + (double)SLODWORD(v27.y) / 1000000000.0;\n  a1->m_animateTime = v4;\n  if ( a2 != FromCenter )\n  {\n    if ( a2 == Instant || (unsigned int)a2 > FromTop2 )\n      goto LABEL_17;\n    v8 = a1->m_mainLayer->getPosition(a1->m_mainLayer);\n    cocos2d::CCPoint::CCPoint(&v26, v8);\n    m_mainLayer = a1->m_mainLayer;\n    v10 = m_mainLayer->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    if ( a2 == FromLeft )\n    {\n      setPosition = v10->setPosition;\n      v12 = -191.0;\n    }\n    else\n    {\n      if ( a2 != FromRight )\n      {\n        v14 = a2 == FromTop;\n        v15 = v10->setPosition;\n        x = v26.x;\n        if ( v14 )\n        {\n          v17 = cocos2d::CCDirector::sharedDirector();\n          v18 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v17));\n          v21 = x;\n          v22 = (float)(v18 + 50.0) + 1.0;\n        }\n        else\n        {\n          v19 = cocos2d::CCDirector::sharedDirector();\n          v20 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v19));\n          v21 = x;\n          v22 = (float)(v20 - 50.0) - 1.0;\n        }\n        cocos2d::CCPoint::CCPoint(&v27, v21, v22);\n        v15(m_mainLayer, &v27);\n        goto LABEL_15;\n      }\n      setPosition = v10->setPosition;\n      v13 = cocos2d::CCDirector::sharedDirector();\n      v12 = (float)(COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v13)) + 190.0) + 1.0;\n    }\n    cocos2d::CCPoint::CCPoint(&v27, v12, v26.y);\n    setPosition(m_mainLayer, &v27);\nLABEL_15:\n    v6 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(0.5, &v26);\n    goto LABEL_16;\n  }\n  ((void (__fastcall *)(cocos2d::CCLayer *, int))a1->m_mainLayer->setScale)(a1->m_mainLayer, 1036831949);\n  v6 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3F000000, 1.0, v5);\nLABEL_16:\n  v23 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v6, (cocos2d::CCActionInterval *)0x3F19999A, v7);\n  cocos2d::CCNode::runAction(a1->m_mainLayer, v23);\nLABEL_17:\n  v25 = ((int (__fastcall *)(DialogLayer *))a1->getOpacity)(a1);\n  if ( (float)v25 > 0.0 )\n  {\n    a1->setOpacity(a1, 0);\n    v24 = cocos2d::CCFadeTo::create(0.14, v25);\n    cocos2d::CCNode::runAction(a1, v24);\n  }\n}", "assembly": "; \n; DialogLayer::animateIn from 0x4d6730 to 0x4d68c4 (404 bytes)\n; \n; 23 xrefs:\n; > PlayLayer::destroyPlayer @ 0x31423e\n; > CreatorLayer::onTreasureRoom @ 0x3aad72\n; > GJGarageLayer::showUnlockPopup @ 0x405b26\n; > LevelPage::onSecretDoor @ 0x408d2c\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x42d886\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x4b1996\n; > DailyLevelPage::dailyStatusFailed @ 0x4d39d0\n; > DialogLayer::animateInRandomSide @ 0x4d692c\n; > DialogLayer::animateInDialog @ 0x4d693c\n; > GJShopLayer::showCantAffordMessage @ 0x4e47da\n; > SecretLayer2::showCompletedLevel @ 0x4ea404\n; > SecretLayer3::firstInteractionStep4 @ 0x4ea686\n; > SecretLayer3::revealStep2 @ 0x4ea83c\n; > SecretLayer3::revealStep5 @ 0x4eaa70\n; > SecretLayer3::revealStep4 @ 0x4eb0d4\n; > SecretLayer3::firstInteractionStep2 @ 0x4eb628\n; > SecretLayer3::onClick @ 0x4ebb46\n; > SecretLayer4::showFirstDialog @ 0x4f00dc\n; > SecretLayer4::showDialog @ 0x4f06ae\n; > GJPathPage::showCantAffordMessage @ 0x58e8ee\n; > LevelListLayer::onClaimReward @ 0x58ed82\n; > SecretLayer5::showFirstDialog @ 0x59c2cc\n; > SecretLayer5::showDialog @ 0x59d9ea\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.W          {R4-R10,LR}                                            ; +0x0, 0x4d6730\nMOV             R7, R1                                                 ; +0x4, 0x4d6734\nLDR.W           R8, =(__stack_chk_guard_ptr - 0x4D6746)                ; +0x6, 0x4d6736\nMOVS            R1, #1                                                 ; +0xa, 0x4d673a\nVPUSH           {D8}                                                   ; +0xc, 0x4d673c\nMOV             R4, R0                                                 ; +0x10, 0x4d6740\nADD             R8, PC; __stack_chk_guard_ptr                          ; +0x12, 0x4d6742\nLDR.W           R8, [R8]; __stack_chk_guard                            ; +0x14, 0x4d6744\nLDR.W           R3, [R8]                                               ; +0x18, 0x4d6748\nSUB             SP, SP, #0x20                                          ; +0x1c, 0x4d674c\nADD             R5, SP, #0x20+var_C                                    ; +0x1e, 0x4d674e\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x20, 0x4d6750\nLDR             R3, [R0]                                               ; +0x22, 0x4d6752\nLDR.W           R3, [R3,#0xA4]                                         ; +0x24, 0x4d6754\nBLX             R3                                                     ; +0x28, 0x4d6758\nMOVS            R0, #0; clock_id                                       ; +0x2a, 0x4d675a\nMOV             R1, R5; tp                                             ; +0x2c, 0x4d675c\nBLX             clock_gettime                                          ; +0x2e, 0x4d675e\nVLDR            S15, [SP,#0x20+var_C]                                  ; +0x32, 0x4d6762\nCMP             R7, #1                                                 ; +0x36, 0x4d6766\nVLDR            D5, =1.0e9                                             ; +0x38, 0x4d6768\nVCVT.F64.S32    D6, S15                                                ; +0x3c, 0x4d676c\nVLDR            S15, [SP,#0x20+var_8]                                  ; +0x40, 0x4d6770\nVCVT.F64.S32    D7, S15                                                ; +0x44, 0x4d6774\nVDIV.F64        D7, D7, D5                                             ; +0x48, 0x4d6778\nVADD.F64        D7, D6, D7                                             ; +0x4c, 0x4d677c\nVCVT.F32.F64    S14, D7                                                ; +0x50, 0x4d6780\nVSTR            S14, [R4,#0x1BC]                                       ; +0x54, 0x4d6784\nBEQ             loc_4D6792                                             ; +0x58, 0x4d6788\nBCC             loc_4D6872                                             ; +0x5a, 0x4d678a\nCMP             R7, #5                                                 ; +0x5c, 0x4d678c\nBLS             loc_4D67AC                                             ; +0x5e, 0x4d678e\nB               loc_4D6872                                             ; +0x60, 0x4d6790\nLDR.W           R0, [R4,#0x1C0]                                        ; +0x62, 0x4d6792\nLDR             R1, =0x3DCCCCCD                                        ; +0x66, 0x4d6796\nLDR             R3, [R0]                                               ; +0x68, 0x4d6798\nLDR             R3, [R3,#0x50]                                         ; +0x6a, 0x4d679a\nBLX             R3                                                     ; +0x6c, 0x4d679c\nMOV.W           R1, #0x3F800000; float                                 ; +0x6e, 0x4d679e\nMOV.W           R0, #0x3F000000; this                                  ; +0x72, 0x4d67a2\nBL              _ZN7cocos2d9CCScaleTo6createEff; cocos2d::CCScaleTo::create(float,float) ; +0x76, 0x4d67a6\nB               loc_4D6862                                             ; +0x7a, 0x4d67aa\nLDR.W           R0, [R4,#0x1C0]                                        ; +0x7c, 0x4d67ac\nADD.W           R9, SP, #0x20+var_14                                   ; +0x80, 0x4d67b0\nLDR             R3, [R0]                                               ; +0x84, 0x4d67b4\nLDR             R3, [R3,#0x60]                                         ; +0x86, 0x4d67b6\nBLX             R3                                                     ; +0x88, 0x4d67b8\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x8a, 0x4d67ba\nMOV             R0, R9; this                                           ; +0x8c, 0x4d67bc\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x8e, 0x4d67be\nLDR.W           R6, [R4,#0x1C0]                                        ; +0x92, 0x4d67c2\nCMP             R7, #2                                                 ; +0x96, 0x4d67c6\nLDR             R3, [R6]                                               ; +0x98, 0x4d67c8\nBNE             loc_4D67D4                                             ; +0x9a, 0x4d67ca\nLDR             R7, [R3,#0x5C]                                         ; +0x9c, 0x4d67cc\nMOV             R0, R5                                                 ; +0x9e, 0x4d67ce\nLDR             R1, =0xC33F0000                                        ; +0xa0, 0x4d67d0\nB               loc_4D67FC                                             ; +0xa2, 0x4d67d2\nCMP             R7, #3                                                 ; +0xa4, 0x4d67d4\nVMOV.F32        S17, #1.0                                              ; +0xa6, 0x4d67d6\nBNE             loc_4D680A                                             ; +0xaa, 0x4d67da\nLDR             R7, [R3,#0x5C]                                         ; +0xac, 0x4d67dc\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xae, 0x4d67de\nBL              _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0xb2, 0x4d67e2\nVLDR            S15, =190.0                                            ; +0xb6, 0x4d67e6\nVMOV            S14, R0                                                ; +0xba, 0x4d67ea\nMOV             R0, R5; this                                           ; +0xbe, 0x4d67ee\nVADD.F32        S15, S14, S15                                          ; +0xc0, 0x4d67f0\nVADD.F32        S15, S15, S17                                          ; +0xc4, 0x4d67f4\nVMOV            R1, S15; float                                         ; +0xc8, 0x4d67f8\nLDR             R2, [SP,#0x20+var_10]; float                           ; +0xcc, 0x4d67fc\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xce, 0x4d67fe\nMOV             R0, R6                                                 ; +0xd2, 0x4d6802\nMOV             R1, R5                                                 ; +0xd4, 0x4d6804\nBLX             R7                                                     ; +0xd6, 0x4d6806\nB               loc_4D6858                                             ; +0xd8, 0x4d6808\nCMP             R7, #4                                                 ; +0xda, 0x4d680a\nLDR.W           R10, [R3,#0x5C]                                        ; +0xdc, 0x4d680c\nLDR             R7, [SP,#0x20+var_14]                                  ; +0xe0, 0x4d6810\nVLDR            S16, =50.0                                             ; +0xe2, 0x4d6812\nBNE             loc_4D6832                                             ; +0xe6, 0x4d6816\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xe8, 0x4d6818\nBL              _ZN7cocos2d10CCDirector12getScreenTopEv; cocos2d::CCDirector::getScreenTop(void) ; +0xec, 0x4d681c\nMOV             R1, R7                                                 ; +0xf0, 0x4d6820\nVMOV            S15, R0                                                ; +0xf2, 0x4d6822\nMOV             R0, R5                                                 ; +0xf6, 0x4d6826\nVADD.F32        S16, S15, S16                                          ; +0xf8, 0x4d6828\nVADD.F32        S15, S16, S17                                          ; +0xfc, 0x4d682c\nB               loc_4D684A                                             ; +0x100, 0x4d6830\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x102, 0x4d6832\nBL              _ZN7cocos2d10CCDirector12getScreenTopEv; cocos2d::CCDirector::getScreenTop(void) ; +0x106, 0x4d6836\nMOV             R1, R7; float                                          ; +0x10a, 0x4d683a\nVMOV            S15, R0                                                ; +0x10c, 0x4d683c\nMOV             R0, R5; this                                           ; +0x110, 0x4d6840\nVSUB.F32        S16, S15, S16                                          ; +0x112, 0x4d6842\nVSUB.F32        S15, S16, S17                                          ; +0x116, 0x4d6846\nVMOV            R2, S15; float                                         ; +0x11a, 0x4d684a\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x11e, 0x4d684e\nMOV             R0, R6                                                 ; +0x122, 0x4d6852\nMOV             R1, R5                                                 ; +0x124, 0x4d6854\nBLX             R10                                                    ; +0x126, 0x4d6856\nMOV.W           R0, #0x3F000000; this                                  ; +0x128, 0x4d6858\nMOV             R1, R9; float                                          ; +0x12c, 0x4d685c\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x12e, 0x4d685e\nLDR             R1, =0x3F19999A; cocos2d::CCActionInterval *           ; +0x132, 0x4d6862\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x134, 0x4d6864\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x138, 0x4d6868\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0x13a, 0x4d686a\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x13e, 0x4d686e\nLDR             R3, [R4]                                               ; +0x142, 0x4d6872\nMOV             R0, R4                                                 ; +0x144, 0x4d6874\nLDR.W           R3, [R3,#0x238]                                        ; +0x146, 0x4d6876\nBLX             R3                                                     ; +0x14a, 0x4d687a\nVMOV            S15, R0                                                ; +0x14c, 0x4d687c\nSTR             R0, [SP,#0x20+var_1C]                                  ; +0x150, 0x4d6880\nVCVT.F32.U32    S15, S15                                               ; +0x152, 0x4d6882\nVCMPE.F32       S15, #0.0                                              ; +0x156, 0x4d6886\nVMRS            APSR_nzcv, FPSCR                                       ; +0x15a, 0x4d688a\nBLE             loc_4D68AC                                             ; +0x15e, 0x4d688e\nLDR             R3, [R4]                                               ; +0x160, 0x4d6890\nMOV             R0, R4                                                 ; +0x162, 0x4d6892\nMOVS            R1, #0                                                 ; +0x164, 0x4d6894\nLDR.W           R3, [R3,#0x240]                                        ; +0x166, 0x4d6896\nBLX             R3                                                     ; +0x16a, 0x4d689a\nLDR             R1, [SP,#0x20+var_1C]; float                           ; +0x16c, 0x4d689c\nLDR             R0, =0x3E0F5C29; this                                  ; +0x16e, 0x4d689e\nBL              _ZN7cocos2d8CCFadeTo6createEfh; cocos2d::CCFadeTo::create(float,uchar) ; +0x170, 0x4d68a0\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x174, 0x4d68a4\nMOV             R0, R4; this                                           ; +0x176, 0x4d68a6\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x178, 0x4d68a8\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x17c, 0x4d68ac\nLDR.W           R3, [R8]                                               ; +0x17e, 0x4d68ae\nCMP             R2, R3                                                 ; +0x182, 0x4d68b2\nBEQ             loc_4D68BA                                             ; +0x184, 0x4d68b4\nBLX             __stack_chk_fail                                       ; +0x186, 0x4d68b6\nADD             SP, SP, #0x20 ; ' '                                    ; +0x18a, 0x4d68ba\nVPOP            {D8}                                                   ; +0x18c, 0x4d68bc\nPOP.W           {R4-R10,PC}                                            ; +0x190, 0x4d68c0", "xrefs": ["PlayLayer::destroyPlayer @ 0x31423e", "CreatorLayer::onTreasureRoom @ 0x3aad72", "GJGarageLayer::showUnlockPopup @ 0x405b26", "LevelPage::onSecretDoor @ 0x408d2c", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x42d886", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x4b1996", "DailyLevelPage::dailyStatusFailed @ 0x4d39d0", "DialogLayer::animateInRandomSide @ 0x4d692c", "DialogLayer::animateInDialog @ 0x4d693c", "GJShopLayer::showCantAffordMessage @ 0x4e47da", "SecretLayer2::showCompletedLevel @ 0x4ea404", "SecretLayer3::firstInteractionStep4 @ 0x4ea686", "SecretLayer3::revealStep2 @ 0x4ea83c", "SecretLayer3::revealStep5 @ 0x4eaa70", "SecretLayer3::revealStep4 @ 0x4eb0d4", "SecretLayer3::firstInteractionStep2 @ 0x4eb628", "SecretLayer3::onClick @ 0x4ebb46", "SecretLayer4::showFirstDialog @ 0x4f00dc", "SecretLayer4::showDialog @ 0x4f06ae", "GJPathPage::showCantAffordMessage @ 0x58e8ee", "LevelListLayer::onClaimReward @ 0x58ed82", "SecretLayer5::showFirstDialog @ 0x59c2cc", "SecretLayer5::showDialog @ 0x59d9ea"], "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"}