{"type": "func", "start": 9528796, "end": 9529116, "name": "DialogLayer::updateChatPlacement", "pseudocode": "// \n// DialogLayer::updateChatPlacement from 0x9165dc to 0x91671c (320 bytes)\n// \n// 50 xrefs:\n// > PlayLayer::destroyPlayer @ 0x5d21ec\n// > CreatorLayer::onMultiplayer @ 0x6caa90\n// > CreatorLayer::onSecretVault @ 0x6caf98\n// > CreatorLayer::onTreasureRoom @ 0x6cb414\n// > CreatorLayer::onTreasureRoom @ 0x6cb62c\n// > CreatorLayer::onOnlyFullVersion @ 0x6cbc30\n// > GJGarageLayer::onRewardedVideo @ 0x790734\n// > GJGarageLayer::showUnlockPopup @ 0x7966bc\n// > LevelPage::onTheTower @ 0x79b8ec\n// > LevelPage::onSecretDoor @ 0x79c118\n// > OptionsLayer::onSecretVault @ 0x7c7980\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de38c\n// > RetryLevelLayer::onRewardedVideo @ 0x7ee9b8\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d5978\n// > DailyLevelPage::dailyStatusFailed @ 0x912ea4\n// > GauntletSelectLayer::onPlay @ 0x917ef0\n// > GJShopLayer::didPurchaseItem @ 0x92afdc\n// > GJShopLayer::showReactMessage @ 0x92c41c\n// > GJShopLayer::showReactMessage @ 0x92c7f4\n// > GJShopLayer::showCantAffordMessage @ 0x930b08\n// > SecretLayer2::onSecretLevel @ 0x93af98\n// > SecretLayer3::revealStep2 @ 0x93b2f8\n// > SecretLayer3::firstInteractionStep4 @ 0x93b7c4\n// > SecretLayer3::firstInteractionStep2 @ 0x93bd24\n// > SecretLayer3::revealStep5 @ 0x93c2fc\n// > SecretLayer3::revealStep4 @ 0x93ca30\n// > SecretLayer2::showCompletedLevel @ 0x93d61c\n// > SecretLayer3::showUnlockDialog @ 0x93df54\n// > SecretLayer3::onClick @ 0x93e648\n// > SecretLayer2::onDoor @ 0x94636c\n// > SecretLayer4::showFirstDialog @ 0x946be4\n// > SecretLayer4::showDialog @ 0x9472e0\n// > WorldSelectLayer::showCompleteDialog @ 0x95eb84\n// > FollowRewardPage::onRewardedVideo @ 0x9636f8\n// > CharacterColorPage::onMode @ 0xa24cec\n// > LevelAreaLayer::showDialog @ 0xa2dbe4\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xa2e098\n// > SecretRewardsLayer::showLockedChest @ 0xa60e6c\n// > SecretRewardsLayer::onSpecialItem @ 0xa618c4\n// > SecretRewardsLayer::onSelectItem @ 0xa61f40\n// > SecretRewardsLayer::onGoldChest @ 0xa64518\n// > SecretRewardsLayer::showDialog01 @ 0xa647dc\n// > SecretRewardsLayer::showDialog03 @ 0xa6657c\n// > SecretRewardsLayer::showDialogMechanic @ 0xa67c04\n// > SecretRewardsLayer::showDialogDiamond @ 0xa69184\n// > GJPathPage::showCantAffordMessage @ 0xa71940\n// > LevelListLayer::onClaimReward @ 0xa738ec\n// > SecretLayer5::showFirstDialog @ 0xa90474\n// > SecretLayer5::showDialog @ 0xa92cf0\n// > <???> @ 0x44250\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::updateChatPlacement(DialogLayer *a1, DialogChatPlacement a2)\n{\n  cocos2d::CCDirector *v3; // x0\n  cocos2d::CCLayer *v4; // x20\n  void (__fastcall *v5)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21\n  cocos2d::CCLayer *v6; // x21\n  void (__fastcall *v7)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20\n  cocos2d::CCLayer *m_mainLayer; // x21\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20\n  float v11; // [xsp+48h] [xbp+48h]\n  float v12; // [xsp+4Ch] [xbp+4Ch]\n  cocos2d::CCPoint v13; // [xsp+50h] [xbp+50h] BYREF\n\n  v3 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v3);\n  if ( a2 )\n  {\n    if ( a2 == Top )\n    {\n      m_mainLayer = a1->m_mainLayer;\n      setPosition = m_mainLayer->setPosition;\n      cocos2d::CCPoint::CCPoint(&v13, v11 * 0.5, (float)(v12 - 50.0) - 20.0);\n      setPosition(m_mainLayer, &v13);\n    }\n    else if ( a2 == Bottom )\n    {\n      v6 = a1->m_mainLayer;\n      v7 = v6->setPosition;\n      cocos2d::CCPoint::CCPoint(&v13, v11 * 0.5, 70.0);\n      v7(v6, &v13);\n    }\n  }\n  else\n  {\n    v4 = a1->m_mainLayer;\n    v5 = v4->setPosition;\n    cocos2d::CCPoint::CCPoint(&v13, v11 * 0.5, v12 * 0.5);\n    v5(v4, &v13);\n  }\n}", "assembly": "; \n; DialogLayer::updateChatPlacement from 0x9165dc to 0x91671c (320 bytes)\n; \n; 50 xrefs:\n; > PlayLayer::destroyPlayer @ 0x5d21ec\n; > CreatorLayer::onMultiplayer @ 0x6caa90\n; > CreatorLayer::onSecretVault @ 0x6caf98\n; > CreatorLayer::onTreasureRoom @ 0x6cb414\n; > CreatorLayer::onTreasureRoom @ 0x6cb62c\n; > CreatorLayer::onOnlyFullVersion @ 0x6cbc30\n; > GJGarageLayer::onRewardedVideo @ 0x790734\n; > GJGarageLayer::showUnlockPopup @ 0x7966bc\n; > LevelPage::onTheTower @ 0x79b8ec\n; > LevelPage::onSecretDoor @ 0x79c118\n; > OptionsLayer::onSecretVault @ 0x7c7980\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de38c\n; > RetryLevelLayer::onRewardedVideo @ 0x7ee9b8\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d5978\n; > DailyLevelPage::dailyStatusFailed @ 0x912ea4\n; > GauntletSelectLayer::onPlay @ 0x917ef0\n; > GJShopLayer::didPurchaseItem @ 0x92afdc\n; > GJShopLayer::showReactMessage @ 0x92c41c\n; > GJShopLayer::showReactMessage @ 0x92c7f4\n; > GJShopLayer::showCantAffordMessage @ 0x930b08\n; > SecretLayer2::onSecretLevel @ 0x93af98\n; > SecretLayer3::revealStep2 @ 0x93b2f8\n; > SecretLayer3::firstInteractionStep4 @ 0x93b7c4\n; > SecretLayer3::firstInteractionStep2 @ 0x93bd24\n; > SecretLayer3::revealStep5 @ 0x93c2fc\n; > SecretLayer3::revealStep4 @ 0x93ca30\n; > SecretLayer2::showCompletedLevel @ 0x93d61c\n; > SecretLayer3::showUnlockDialog @ 0x93df54\n; > SecretLayer3::onClick @ 0x93e648\n; > SecretLayer2::onDoor @ 0x94636c\n; > SecretLayer4::showFirstDialog @ 0x946be4\n; > SecretLayer4::showDialog @ 0x9472e0\n; > WorldSelectLayer::showCompleteDialog @ 0x95eb84\n; > FollowRewardPage::onRewardedVideo @ 0x9636f8\n; > CharacterColorPage::onMode @ 0xa24cec\n; > LevelAreaLayer::showDialog @ 0xa2dbe4\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xa2e098\n; > SecretRewardsLayer::showLockedChest @ 0xa60e6c\n; > SecretRewardsLayer::onSpecialItem @ 0xa618c4\n; > SecretRewardsLayer::onSelectItem @ 0xa61f40\n; > SecretRewardsLayer::onGoldChest @ 0xa64518\n; > SecretRewardsLayer::showDialog01 @ 0xa647dc\n; > SecretRewardsLayer::showDialog03 @ 0xa6657c\n; > SecretRewardsLayer::showDialogMechanic @ 0xa67c04\n; > SecretRewardsLayer::showDialogDiamond @ 0xa69184\n; > GJPathPage::showCantAffordMessage @ 0xa71940\n; > LevelListLayer::onClaimReward @ 0xa738ec\n; > SecretLayer5::showFirstDialog @ 0xa90474\n; > SecretLayer5::showDialog @ 0xa92cf0\n; > <???> @ 0x44250\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x9165dc\nMOV             X29, SP                                                ; +0x4, 0x9165e0\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x9165e4\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x9165e8\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x10, 0x9165ec\nMOV             X21, X0                                                ; +0x14, 0x9165f0\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x18, 0x9165f4\nADD             X20, X29, #0x60+var_18                                 ; +0x1c, 0x9165f8\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x9165fc\nLDR             X0, [X0]; this                                         ; +0x24, 0x916600\nSTR             X0, [X29,#0x60+var_8]                                  ; +0x28, 0x916604\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x916608\nMOV             X8, X20                                                ; +0x30, 0x91660c\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x34, 0x916610\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x38, 0x916614\nCBZ             W1, loc_916650                                         ; +0x3c, 0x916618\nCMP             W1, #1                                                 ; +0x40, 0x91661c\nB.EQ            loc_9166CC                                             ; +0x44, 0x916620\nCMP             W1, #2                                                 ; +0x48, 0x916624\nB.EQ            loc_916690                                             ; +0x4c, 0x916628\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x50, 0x91662c\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x54, 0x916630\nLDR             X0, [X19]                                              ; +0x58, 0x916634\nCMP             X1, X0                                                 ; +0x5c, 0x916638\nB.NE            loc_916718                                             ; +0x60, 0x91663c\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x64, 0x916640\nLDR             X21, [SP,#0x60+var_40]                                 ; +0x68, 0x916644\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x6c, 0x916648\nRET                                                                    ; +0x70, 0x91664c\nLDR             X20, [X21,#0x230]                                      ; +0x74, 0x916650\nADD             X1, X29, #0x60+var_10                                  ; +0x78, 0x916654\nLDR             S0, [X29,#0x60+var_18]                                 ; +0x7c, 0x916658\nMOV             X0, X1; this                                           ; +0x80, 0x91665c\nLDR             S2, [X29,#0x60+var_14]                                 ; +0x84, 0x916660\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x88, 0x916664\nFMOV            S1, #0.5                                               ; +0x8c, 0x916668\nLDR             X2, [X20]                                              ; +0x90, 0x91666c\nFMUL            S0, S0, S1; float                                      ; +0x94, 0x916670\nFMUL            S1, S2, S1; float                                      ; +0x98, 0x916674\nLDR             X21, [X2,#0xB8]                                        ; +0x9c, 0x916678\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa0, 0x91667c\nLDR             X1, [X29,#0x60+var_28]                                 ; +0xa4, 0x916680\nMOV             X0, X20                                                ; +0xa8, 0x916684\nBLR             X21                                                    ; +0xac, 0x916688\nB               loc_91662C                                             ; +0xb0, 0x91668c\nLDR             X21, [X21,#0x230]                                      ; +0xb4, 0x916690\nADD             X1, X29, #0x60+var_10                                  ; +0xb8, 0x916694\nLDR             S1, [X20]                                              ; +0xbc, 0x916698\nMOV             X0, X1; this                                           ; +0xc0, 0x91669c\nFMOV            S0, #0.5                                               ; +0xc4, 0x9166a0\nSTR             X1, [X29,#0x60+var_28]                                 ; +0xc8, 0x9166a4\nLDR             X2, [X21]                                              ; +0xcc, 0x9166a8\nFMUL            S0, S1, S0; float                                      ; +0xd0, 0x9166ac\nLDR             S1, flt_916720; float                                  ; +0xd4, 0x9166b0\nLDR             X20, [X2,#0xB8]                                        ; +0xd8, 0x9166b4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xdc, 0x9166b8\nLDR             X1, [X29,#0x60+var_28]                                 ; +0xe0, 0x9166bc\nMOV             X0, X21                                                ; +0xe4, 0x9166c0\nBLR             X20                                                    ; +0xe8, 0x9166c4\nB               loc_91662C                                             ; +0xec, 0x9166c8\nLDR             S1, [X20,#4]                                           ; +0xf0, 0x9166cc\nLDR             X21, [X21,#0x230]                                      ; +0xf4, 0x9166d0\nLDR             S0, =0x42480000                                        ; +0xf8, 0x9166d4\nADD             X1, X29, #0x60+var_10                                  ; +0xfc, 0x9166d8\nLDR             S2, [X20]                                              ; +0x100, 0x9166dc\nMOV             X0, X1; this                                           ; +0x104, 0x9166e0\nFSUB            S1, S1, S0                                             ; +0x108, 0x9166e4\nLDR             X2, [X21]                                              ; +0x10c, 0x9166e8\nFMOV            S0, #0.5                                               ; +0x110, 0x9166ec\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x114, 0x9166f0\nFMUL            S0, S2, S0; float                                      ; +0x118, 0x9166f4\nLDR             X20, [X2,#0xB8]                                        ; +0x11c, 0x9166f8\nFMOV            S2, #20.0                                              ; +0x120, 0x9166fc\nFSUB            S1, S1, S2; float                                      ; +0x124, 0x916700\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x128, 0x916704\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x12c, 0x916708\nMOV             X0, X21                                                ; +0x130, 0x91670c\nBLR             X20                                                    ; +0x134, 0x916710\nB               loc_91662C                                             ; +0x138, 0x916714\nBL              .__stack_chk_fail                                      ; +0x13c, 0x916718", "xrefs": ["PlayLayer::destroyPlayer @ 0x5d21ec", "CreatorLayer::onMultiplayer @ 0x6caa90", "CreatorLayer::onSecretVault @ 0x6caf98", "CreatorLayer::onTreasureRoom @ 0x6cb414", "CreatorLayer::onTreasureRoom @ 0x6cb62c", "CreatorLayer::onOnlyFullVersion @ 0x6cbc30", "GJGarageLayer::onRewardedVideo @ 0x790734", "GJGarageLayer::showUnlockPopup @ 0x7966bc", "LevelPage::onTheTower @ 0x79b8ec", "LevelPage::onSecretDoor @ 0x79c118", "OptionsLayer::onSecretVault @ 0x7c7980", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de38c", "RetryLevelLayer::onRewardedVideo @ 0x7ee9b8", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d5978", "DailyLevelPage::dailyStatusFailed @ 0x912ea4", "GauntletSelectLayer::onPlay @ 0x917ef0", "GJShopLayer::didPurchaseItem @ 0x92afdc", "GJShopLayer::showReactMessage @ 0x92c41c", "GJShopLayer::showReactMessage @ 0x92c7f4", "GJShopLayer::showCantAffordMessage @ 0x930b08", "SecretLayer2::onSecretLevel @ 0x93af98", "SecretLayer3::revealStep2 @ 0x93b2f8", "SecretLayer3::firstInteractionStep4 @ 0x93b7c4", "SecretLayer3::firstInteractionStep2 @ 0x93bd24", "SecretLayer3::revealStep5 @ 0x93c2fc", "SecretLayer3::revealStep4 @ 0x93ca30", "SecretLayer2::showCompletedLevel @ 0x93d61c", "SecretLayer3::showUnlockDialog @ 0x93df54", "SecretLayer3::onClick @ 0x93e648", "SecretLayer2::onDoor @ 0x94636c", "SecretLayer4::showFirstDialog @ 0x946be4", "SecretLayer4::showDialog @ 0x9472e0", "WorldSelectLayer::showCompleteDialog @ 0x95eb84", "FollowRewardPage::onRewardedVideo @ 0x9636f8", "CharacterColorPage::onMode @ 0xa24cec", "LevelAreaLayer::showDialog @ 0xa2dbe4", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xa2e098", "SecretRewardsLayer::showLockedChest @ 0xa60e6c", "SecretRewardsLayer::onSpecialItem @ 0xa618c4", "SecretRewardsLayer::onSelectItem @ 0xa61f40", "SecretRewardsLayer::onGoldChest @ 0xa64518", "SecretRewardsLayer::showDialog01 @ 0xa647dc", "SecretRewardsLayer::showDialog03 @ 0xa6657c", "SecretRewardsLayer::showDialogMechanic @ 0xa67c04", "SecretRewardsLayer::showDialogDiamond @ 0xa69184", "GJPathPage::showCantAffordMessage @ 0xa71940", "LevelListLayer::onClaimReward @ 0xa738ec", "SecretLayer5::showFirstDialog @ 0xa90474", "SecretLayer5::showDialog @ 0xa92cf0", "<???> @ 0x44250"], "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"}