{"type": "func", "start": 4298931440, "end": 4298931641, "name": "DialogLayer::updateChatPlacement", "pseudocode": "// \n// DialogLayer::updateChatPlacement from 0x1003c7cf0 to 0x1003c7db9 (201 bytes)\n// \n// 49 xrefs:\n// > PlayLayer::destroyPlayer @ 0x1000ba772\n// > DailyLevelPage::dailyStatusFailed @ 0x100231cd0\n// > LevelAreaLayer::showDialog @ 0x10027976c\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x10027b822\n// > CreatorLayer::onMultiplayer @ 0x1002987a2\n// > CreatorLayer::onOnlyFullVersion @ 0x100298db1\n// > CreatorLayer::onSecretVault @ 0x1002990dd\n// > CreatorLayer::onTreasureRoom @ 0x10029949e\n// > CreatorLayer::onTreasureRoom @ 0x100299637\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002b1b07\n// > GJPathPage::showCantAffordMessage @ 0x1003016e2\n// > GJShopLayer::showCantAffordMessage @ 0x100325222\n// > GJShopLayer::didPurchaseItem @ 0x100325b29\n// > GJShopLayer::showReactMessage @ 0x100326251\n// > GJShopLayer::showReactMessage @ 0x100326c12\n// > LevelListLayer::onClaimReward @ 0x10035f2b0\n// > GJGarageLayer::onRewardedVideo @ 0x10036c63b\n// > GJGarageLayer::showUnlockPopup @ 0x10036f441\n// > SecretLayer4::showFirstDialog @ 0x1003b1c3d\n// > SecretLayer4::showDialog @ 0x1003b32a7\n// > WorldSelectLayer::showCompleteDialog @ 0x1003c2f77\n// > FollowRewardPage::onRewardedVideo @ 0x1004216df\n// > LevelPage::onTheTower @ 0x100436473\n// > LevelPage::onSecretDoor @ 0x100437241\n// > SecretLayer5::showFirstDialog @ 0x10047beab\n// > SecretLayer5::showDialog @ 0x10047dee7\n// > SecretLayer2::onDoor @ 0x10049fcae\n// > SecretLayer2::onSecretLevel @ 0x10049fe9c\n// > SecretLayer2::showCompletedLevel @ 0x1004a0872\n// > SecretLayer3::onClick @ 0x1004a5a78\n// > SecretLayer3::firstInteractionStep2 @ 0x1004a6407\n// > SecretLayer3::firstInteractionStep4 @ 0x1004a694a\n// > SecretLayer3::showUnlockDialog @ 0x1004a6dd3\n// > SecretLayer3::revealStep2 @ 0x1004a72aa\n// > SecretLayer3::revealStep4 @ 0x1004a7a4b\n// > SecretLayer3::revealStep5 @ 0x1004a801a\n// > RetryLevelLayer::onRewardedVideo @ 0x1004f95df\n// > GauntletSelectLayer::onPlay @ 0x100572d27\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x100601eeb\n// > SecretRewardsLayer::onGoldChest @ 0x1006326cf\n// > SecretRewardsLayer::onSpecialItem @ 0x100632fad\n// > SecretRewardsLayer::showLockedChest @ 0x1006332c0\n// > SecretRewardsLayer::onSelectItem @ 0x100634ae2\n// > SecretRewardsLayer::showDialog01 @ 0x10063629d\n// > SecretRewardsLayer::showDialog03 @ 0x1006379cb\n// > SecretRewardsLayer::showDialogMechanic @ 0x100638f5f\n// > SecretRewardsLayer::showDialogDiamond @ 0x100639e62\n// > CharacterColorPage::onMode @ 0x10065d995\n// > OptionsLayer::onSecretVault @ 0x10079b081\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::updateChatPlacement(DialogLayer *a1, DialogChatPlacement a2)\n{\n  cocos2d::CCLayer *m_mainLayer; // rbx\n  float v3; // xmm0_4\n  float v4; // xmm1_4\n  float v5; // [rsp+0h] [rbp-20h] BYREF\n  float v6; // [rsp+8h] [rbp-18h] BYREF\n  float v7; // [rsp+Ch] [rbp-14h]\n\n  cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v6);\n  if ( a2 == Bottom )\n  {\n    m_mainLayer = a1->m_mainLayer;\n    v3 = v6 * 0.5;\n    v4 = 70.0;\n  }\n  else if ( a2 == Top )\n  {\n    m_mainLayer = a1->m_mainLayer;\n    v3 = v6 * 0.5;\n    v4 = (float)(v7 + -50.0) + -20.0;\n  }\n  else\n  {\n    if ( a2 )\n      return;\n    m_mainLayer = a1->m_mainLayer;\n    v3 = v6 * 0.5;\n    v4 = 0.5 * v7;\n  }\n  sub_10028CBE0(&v5, v3, v4);\n  ((void (__fastcall *)(cocos2d::CCLayer *, float *))m_mainLayer->setPosition)(m_mainLayer, &v5);\n}", "assembly": "; \n; DialogLayer::updateChatPlacement from 0x1003c7cf0 to 0x1003c7db9 (201 bytes)\n; \n; 49 xrefs:\n; > PlayLayer::destroyPlayer @ 0x1000ba772\n; > DailyLevelPage::dailyStatusFailed @ 0x100231cd0\n; > LevelAreaLayer::showDialog @ 0x10027976c\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x10027b822\n; > CreatorLayer::onMultiplayer @ 0x1002987a2\n; > CreatorLayer::onOnlyFullVersion @ 0x100298db1\n; > CreatorLayer::onSecretVault @ 0x1002990dd\n; > CreatorLayer::onTreasureRoom @ 0x10029949e\n; > CreatorLayer::onTreasureRoom @ 0x100299637\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002b1b07\n; > GJPathPage::showCantAffordMessage @ 0x1003016e2\n; > GJShopLayer::showCantAffordMessage @ 0x100325222\n; > GJShopLayer::didPurchaseItem @ 0x100325b29\n; > GJShopLayer::showReactMessage @ 0x100326251\n; > GJShopLayer::showReactMessage @ 0x100326c12\n; > LevelListLayer::onClaimReward @ 0x10035f2b0\n; > GJGarageLayer::onRewardedVideo @ 0x10036c63b\n; > GJGarageLayer::showUnlockPopup @ 0x10036f441\n; > SecretLayer4::showFirstDialog @ 0x1003b1c3d\n; > SecretLayer4::showDialog @ 0x1003b32a7\n; > WorldSelectLayer::showCompleteDialog @ 0x1003c2f77\n; > FollowRewardPage::onRewardedVideo @ 0x1004216df\n; > LevelPage::onTheTower @ 0x100436473\n; > LevelPage::onSecretDoor @ 0x100437241\n; > SecretLayer5::showFirstDialog @ 0x10047beab\n; > SecretLayer5::showDialog @ 0x10047dee7\n; > SecretLayer2::onDoor @ 0x10049fcae\n; > SecretLayer2::onSecretLevel @ 0x10049fe9c\n; > SecretLayer2::showCompletedLevel @ 0x1004a0872\n; > SecretLayer3::onClick @ 0x1004a5a78\n; > SecretLayer3::firstInteractionStep2 @ 0x1004a6407\n; > SecretLayer3::firstInteractionStep4 @ 0x1004a694a\n; > SecretLayer3::showUnlockDialog @ 0x1004a6dd3\n; > SecretLayer3::revealStep2 @ 0x1004a72aa\n; > SecretLayer3::revealStep4 @ 0x1004a7a4b\n; > SecretLayer3::revealStep5 @ 0x1004a801a\n; > RetryLevelLayer::onRewardedVideo @ 0x1004f95df\n; > GauntletSelectLayer::onPlay @ 0x100572d27\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x100601eeb\n; > SecretRewardsLayer::onGoldChest @ 0x1006326cf\n; > SecretRewardsLayer::onSpecialItem @ 0x100632fad\n; > SecretRewardsLayer::showLockedChest @ 0x1006332c0\n; > SecretRewardsLayer::onSelectItem @ 0x100634ae2\n; > SecretRewardsLayer::showDialog01 @ 0x10063629d\n; > SecretRewardsLayer::showDialog03 @ 0x1006379cb\n; > SecretRewardsLayer::showDialogMechanic @ 0x100638f5f\n; > SecretRewardsLayer::showDialogDiamond @ 0x100639e62\n; > CharacterColorPage::onMode @ 0x10065d995\n; > OptionsLayer::onSecretVault @ 0x10079b081\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, 0x1003c7cf0\nmov     rbp, rsp                                                       ; +0x1, 0x1003c7cf1\npush    r14                                                            ; +0x4, 0x1003c7cf4\npush    rbx                                                            ; +0x6, 0x1003c7cf6\nsub     rsp, 10h                                                       ; +0x7, 0x1003c7cf7\nmov     r14d, esi                                                      ; +0xb, 0x1003c7cfb\nmov     rbx, rdi                                                       ; +0xe, 0x1003c7cfe\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x11, 0x1003c7d01\nlea     rdi, [rbp+var_18]                                              ; +0x16, 0x1003c7d06\nmov     rsi, rax                                                       ; +0x1a, 0x1003c7d0a\ncall    cocos2d__CCDirector__getWinSize                                ; +0x1d, 0x1003c7d0d\ncmp     r14d, 2                                                        ; +0x22, 0x1003c7d12\njz      short loc_1003C7D79                                            ; +0x26, 0x1003c7d16\ncmp     r14d, 1                                                        ; +0x28, 0x1003c7d18\njz      short loc_1003C7D4A                                            ; +0x2c, 0x1003c7d1c\ntest    r14d, r14d                                                     ; +0x2e, 0x1003c7d1e\njnz     loc_1003C7DB0                                                  ; +0x31, 0x1003c7d21\nmov     rbx, [rbx+230h]                                                ; +0x37, 0x1003c7d27\nmovss   xmm1, cs:dword_100814FA8                                       ; +0x3e, 0x1003c7d2e\nmovss   xmm0, [rbp+var_18]                                             ; +0x46, 0x1003c7d36\nmulss   xmm0, xmm1                                                     ; +0x4b, 0x1003c7d3b\nmulss   xmm1, [rbp+var_14]                                             ; +0x4f, 0x1003c7d3f\nlea     r14, [rbp+var_20]                                              ; +0x54, 0x1003c7d44\njmp     short loc_1003C7D99                                            ; +0x58, 0x1003c7d48\nmov     rbx, [rbx+230h]                                                ; +0x5a, 0x1003c7d4a\nmovss   xmm0, [rbp+var_18]                                             ; +0x61, 0x1003c7d51\nmovss   xmm1, [rbp+var_14]                                             ; +0x66, 0x1003c7d56\nmulss   xmm0, cs:dword_100814FA8                                       ; +0x6b, 0x1003c7d5b\naddss   xmm1, cs:dword_100814FC0                                       ; +0x73, 0x1003c7d63\naddss   xmm1, cs:dword_100815074                                       ; +0x7b, 0x1003c7d6b\nlea     r14, [rbp+var_20]                                              ; +0x83, 0x1003c7d73\njmp     short loc_1003C7D99                                            ; +0x87, 0x1003c7d77\nmov     rbx, [rbx+230h]                                                ; +0x89, 0x1003c7d79\nmovss   xmm0, [rbp+var_18]                                             ; +0x90, 0x1003c7d80\nmulss   xmm0, cs:dword_100814FA8                                       ; +0x95, 0x1003c7d85\nlea     r14, [rbp+var_20]                                              ; +0x9d, 0x1003c7d8d\nmovss   xmm1, cs:dword_100814FCC                                       ; +0xa1, 0x1003c7d91\nmov     rdi, r14                                                       ; +0xa9, 0x1003c7d99\ncall    sub_10028CBE0                                                  ; +0xac, 0x1003c7d9c\nmov     rax, [rbx]                                                     ; +0xb1, 0x1003c7da1\nmov     rdi, rbx                                                       ; +0xb4, 0x1003c7da4\nmov     rsi, r14                                                       ; +0xb7, 0x1003c7da7\ncall    qword ptr [rax+0B8h]                                           ; +0xba, 0x1003c7daa\nadd     rsp, 10h                                                       ; +0xc0, 0x1003c7db0\npop     rbx                                                            ; +0xc4, 0x1003c7db4\npop     r14                                                            ; +0xc5, 0x1003c7db5\npop     rbp                                                            ; +0xc7, 0x1003c7db7\nretn                                                                   ; +0xc8, 0x1003c7db8", "xrefs": ["PlayLayer::destroyPlayer @ 0x1000ba772", "DailyLevelPage::dailyStatusFailed @ 0x100231cd0", "LevelAreaLayer::showDialog @ 0x10027976c", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x10027b822", "CreatorLayer::onMultiplayer @ 0x1002987a2", "CreatorLayer::onOnlyFullVersion @ 0x100298db1", "CreatorLayer::onSecretVault @ 0x1002990dd", "CreatorLayer::onTreasureRoom @ 0x10029949e", "CreatorLayer::onTreasureRoom @ 0x100299637", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002b1b07", "GJPathPage::showCantAffordMessage @ 0x1003016e2", "GJShopLayer::showCantAffordMessage @ 0x100325222", "GJShopLayer::didPurchaseItem @ 0x100325b29", "GJShopLayer::showReactMessage @ 0x100326251", "GJShopLayer::showReactMessage @ 0x100326c12", "LevelListLayer::onClaimReward @ 0x10035f2b0", "GJGarageLayer::onRewardedVideo @ 0x10036c63b", "GJGarageLayer::showUnlockPopup @ 0x10036f441", "SecretLayer4::showFirstDialog @ 0x1003b1c3d", "SecretLayer4::showDialog @ 0x1003b32a7", "WorldSelectLayer::showCompleteDialog @ 0x1003c2f77", "FollowRewardPage::onRewardedVideo @ 0x1004216df", "LevelPage::onTheTower @ 0x100436473", "LevelPage::onSecretDoor @ 0x100437241", "SecretLayer5::showFirstDialog @ 0x10047beab", "SecretLayer5::showDialog @ 0x10047dee7", "SecretLayer2::onDoor @ 0x10049fcae", "SecretLayer2::onSecretLevel @ 0x10049fe9c", "SecretLayer2::showCompletedLevel @ 0x1004a0872", "SecretLayer3::onClick @ 0x1004a5a78", "SecretLayer3::firstInteractionStep2 @ 0x1004a6407", "SecretLayer3::firstInteractionStep4 @ 0x1004a694a", "SecretLayer3::showUnlockDialog @ 0x1004a6dd3", "SecretLayer3::revealStep2 @ 0x1004a72aa", "SecretLayer3::revealStep4 @ 0x1004a7a4b", "SecretLayer3::revealStep5 @ 0x1004a801a", "RetryLevelLayer::onRewardedVideo @ 0x1004f95df", "GauntletSelectLayer::onPlay @ 0x100572d27", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x100601eeb", "SecretRewardsLayer::onGoldChest @ 0x1006326cf", "SecretRewardsLayer::onSpecialItem @ 0x100632fad", "SecretRewardsLayer::showLockedChest @ 0x1006332c0", "SecretRewardsLayer::onSelectItem @ 0x100634ae2", "SecretRewardsLayer::showDialog01 @ 0x10063629d", "SecretRewardsLayer::showDialog03 @ 0x1006379cb", "SecretRewardsLayer::showDialogMechanic @ 0x100638f5f", "SecretRewardsLayer::showDialogDiamond @ 0x100639e62", "CharacterColorPage::onMode @ 0x10065d995", "OptionsLayer::onSecretVault @ 0x10079b081"], "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"}