{"type": "func", "start": 4295520436, "end": 4295520624, "name": "DialogLayer::updateChatPlacement", "pseudocode": "// \n// DialogLayer::updateChatPlacement from 0x1000870b4 to 0x100087170 (188 bytes)\n// \n// 41 xrefs:\n// > SecretLayer5::showFirstDialog @ 0x100075548\n// > CreatorLayer::onMultiplayer @ 0x1000b5ff4\n// > CreatorLayer::onSecretVault @ 0x1000b6648\n// > CreatorLayer::onTreasureRoom @ 0x1000b68c8\n// > CreatorLayer::onTreasureRoom @ 0x1000b69d4\n// > OptionsLayer::onSecretVault @ 0x1000ed2dc\n// > PlayLayer::destroyPlayer @ 0x10011efb4\n// > CharacterColorPage::onMode @ 0x100129824\n// > GJShopLayer::showCantAffordMessage @ 0x10014c194\n// > GJShopLayer::didPurchaseItem @ 0x10014c808\n// > GJShopLayer::showReactMessage @ 0x10014cdb8\n// > GJShopLayer::showReactMessage @ 0x10014d260\n// > DailyLevelPage::dailyStatusFailed @ 0x1001ba57c\n// > GauntletSelectLayer::onPlay @ 0x1001bfbd0\n// > LevelListLayer::onClaimReward @ 0x100246288\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f84\n// > SecretRewardsLayer::onGoldChest @ 0x1002e9ec4\n// > SecretRewardsLayer::onSpecialItem @ 0x1002ea4e4\n// > SecretRewardsLayer::onSelectItem @ 0x1002eb668\n// > SecretRewardsLayer::showDialog01 @ 0x1002ec32c\n// > SecretRewardsLayer::showDialog03 @ 0x1002ed148\n// > SecretRewardsLayer::showDialogMechanic @ 0x1002eddc8\n// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee6d4\n// > GJGarageLayer::showUnlockPopup @ 0x100306878\n// > SecretLayer2::onDoor @ 0x10030ba70\n// > SecretLayer2::onSecretLevel @ 0x10030bbf8\n// > SecretLayer2::showCompletedLevel @ 0x10030c180\n// > SecretLayer3::onClick @ 0x10030f944\n// > SecretLayer3::firstInteractionStep2 @ 0x1003100a8\n// > SecretLayer3::firstInteractionStep4 @ 0x100310500\n// > SecretLayer3::showUnlockDialog @ 0x100310890\n// > SecretLayer3::revealStep2 @ 0x100310c68\n// > SecretLayer3::revealStep4 @ 0x100311120\n// > SecretLayer3::revealStep5 @ 0x10031150c\n// > LevelAreaLayer::showDialog @ 0x1003453b8\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x100346b38\n// > SecretLayer4::showFirstDialog @ 0x100354ad8\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8bf0\n// > GJPathPage::showCantAffordMessage @ 0x1003ba8e4\n// > LevelPage::onTheTower @ 0x100404c80\n// > LevelPage::onSecretDoor @ 0x1004057a8\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::CCDirector *v4; // x0\n  __n128 v5; // q0\n  __n128 v6; // q1\n  cocos2d::CCLayer *m_mainLayer; // x19\n  int v8; // [xsp+0h] [xbp-20h] BYREF\n  float v9; // [xsp+8h] [xbp-18h]\n  float v10; // [xsp+Ch] [xbp-14h]\n\n  v4 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v4);\n  if ( a2 == Bottom )\n  {\n    m_mainLayer = a1->m_mainLayer;\n    v5.n128_f32[0] = v9 * 0.5;\n    v6.n128_u32[0] = 1116471296;\n  }\n  else if ( a2 == Top )\n  {\n    m_mainLayer = a1->m_mainLayer;\n    v5.n128_f32[0] = v9 * 0.5;\n    v6.n128_f32[0] = (float)(v10 + -50.0) + -20.0;\n  }\n  else\n  {\n    if ( a2 )\n      return;\n    m_mainLayer = a1->m_mainLayer;\n    v5.n128_f32[0] = v9 * 0.5;\n    v6.n128_f32[0] = v10 * 0.5;\n  }\n  sub_100022980(v5, v6, &v8);\n  ((void (__fastcall *)(cocos2d::CCLayer *, int *))m_mainLayer->setPosition)(m_mainLayer, &v8);\n}", "assembly": "; \n; DialogLayer::updateChatPlacement from 0x1000870b4 to 0x100087170 (188 bytes)\n; \n; 41 xrefs:\n; > SecretLayer5::showFirstDialog @ 0x100075548\n; > CreatorLayer::onMultiplayer @ 0x1000b5ff4\n; > CreatorLayer::onSecretVault @ 0x1000b6648\n; > CreatorLayer::onTreasureRoom @ 0x1000b68c8\n; > CreatorLayer::onTreasureRoom @ 0x1000b69d4\n; > OptionsLayer::onSecretVault @ 0x1000ed2dc\n; > PlayLayer::destroyPlayer @ 0x10011efb4\n; > CharacterColorPage::onMode @ 0x100129824\n; > GJShopLayer::showCantAffordMessage @ 0x10014c194\n; > GJShopLayer::didPurchaseItem @ 0x10014c808\n; > GJShopLayer::showReactMessage @ 0x10014cdb8\n; > GJShopLayer::showReactMessage @ 0x10014d260\n; > DailyLevelPage::dailyStatusFailed @ 0x1001ba57c\n; > GauntletSelectLayer::onPlay @ 0x1001bfbd0\n; > LevelListLayer::onClaimReward @ 0x100246288\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f84\n; > SecretRewardsLayer::onGoldChest @ 0x1002e9ec4\n; > SecretRewardsLayer::onSpecialItem @ 0x1002ea4e4\n; > SecretRewardsLayer::onSelectItem @ 0x1002eb668\n; > SecretRewardsLayer::showDialog01 @ 0x1002ec32c\n; > SecretRewardsLayer::showDialog03 @ 0x1002ed148\n; > SecretRewardsLayer::showDialogMechanic @ 0x1002eddc8\n; > SecretRewardsLayer::showDialogDiamond @ 0x1002ee6d4\n; > GJGarageLayer::showUnlockPopup @ 0x100306878\n; > SecretLayer2::onDoor @ 0x10030ba70\n; > SecretLayer2::onSecretLevel @ 0x10030bbf8\n; > SecretLayer2::showCompletedLevel @ 0x10030c180\n; > SecretLayer3::onClick @ 0x10030f944\n; > SecretLayer3::firstInteractionStep2 @ 0x1003100a8\n; > SecretLayer3::firstInteractionStep4 @ 0x100310500\n; > SecretLayer3::showUnlockDialog @ 0x100310890\n; > SecretLayer3::revealStep2 @ 0x100310c68\n; > SecretLayer3::revealStep4 @ 0x100311120\n; > SecretLayer3::revealStep5 @ 0x10031150c\n; > LevelAreaLayer::showDialog @ 0x1003453b8\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x100346b38\n; > SecretLayer4::showFirstDialog @ 0x100354ad8\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8bf0\n; > GJPathPage::showCantAffordMessage @ 0x1003ba8e4\n; > LevelPage::onTheTower @ 0x100404c80\n; > LevelPage::onSecretDoor @ 0x1004057a8\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1000870b4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000870b8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000870bc\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000870c0\nMOV             X20, X1                                                ; +0x10, 0x1000870c4\nMOV             X19, X0                                                ; +0x14, 0x1000870c8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x18, 0x1000870cc\nADD             X8, SP, #0x20+var_18                                   ; +0x1c, 0x1000870d0\nBL              cocos2d__CCDirector__getWinSize                        ; +0x20, 0x1000870d4\nCMP             W20, #2                                                ; +0x24, 0x1000870d8\nB.EQ            loc_10008712C                                          ; +0x28, 0x1000870dc\nCMP             W20, #1                                                ; +0x2c, 0x1000870e0\nB.EQ            loc_100087104                                          ; +0x30, 0x1000870e4\nCBNZ            W20, loc_100087160                                     ; +0x34, 0x1000870e8\nLDR             X19, [X19,#0x230]                                      ; +0x38, 0x1000870ec\nFMOV            S1, #0.5                                               ; +0x3c, 0x1000870f0\nLDP             S0, S2, [SP,#0x20+var_18]                              ; +0x40, 0x1000870f4\nFMUL            S0, S0, S1                                             ; +0x44, 0x1000870f8\nFMUL            S1, S2, S1                                             ; +0x48, 0x1000870fc\nB               loc_100087144                                          ; +0x4c, 0x100087100\nLDR             X19, [X19,#0x230]                                      ; +0x50, 0x100087104\nFMOV            S0, #0.5                                               ; +0x54, 0x100087108\nLDP             S1, S2, [SP,#0x20+var_18]                              ; +0x58, 0x10008710c\nFMUL            S0, S1, S0                                             ; +0x5c, 0x100087110\nMOV             W8, #0xC2480000                                        ; +0x60, 0x100087114\nFMOV            S1, W8                                                 ; +0x64, 0x100087118\nFADD            S1, S2, S1                                             ; +0x68, 0x10008711c\nFMOV            S2, #-20.0                                             ; +0x6c, 0x100087120\nFADD            S1, S1, S2                                             ; +0x70, 0x100087124\nB               loc_100087144                                          ; +0x74, 0x100087128\nLDR             X19, [X19,#0x230]                                      ; +0x78, 0x10008712c\nLDR             S0, [SP,#0x20+var_18]                                  ; +0x7c, 0x100087130\nFMOV            S1, #0.5                                               ; +0x80, 0x100087134\nFMUL            S0, S0, S1                                             ; +0x84, 0x100087138\nMOV             W8, #0x428C0000                                        ; +0x88, 0x10008713c\nFMOV            S1, W8                                                 ; +0x8c, 0x100087140\nMOV             X0, SP                                                 ; +0x90, 0x100087144\nBL              sub_100022980                                          ; +0x94, 0x100087148\nLDR             X8, [X19]                                              ; +0x98, 0x10008714c\nLDR             X8, [X8,#0xB8]                                         ; +0x9c, 0x100087150\nMOV             X1, SP                                                 ; +0xa0, 0x100087154\nMOV             X0, X19                                                ; +0xa4, 0x100087158\nBLR             X8                                                     ; +0xa8, 0x10008715c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xac, 0x100087160\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb0, 0x100087164\nADD             SP, SP, #0x30 ; '0'                                    ; +0xb4, 0x100087168\nRET                                                                    ; +0xb8, 0x10008716c", "xrefs": ["SecretLayer5::showFirstDialog @ 0x100075548", "CreatorLayer::onMultiplayer @ 0x1000b5ff4", "CreatorLayer::onSecretVault @ 0x1000b6648", "CreatorLayer::onTreasureRoom @ 0x1000b68c8", "CreatorLayer::onTreasureRoom @ 0x1000b69d4", "OptionsLayer::onSecretVault @ 0x1000ed2dc", "PlayLayer::destroyPlayer @ 0x10011efb4", "CharacterColorPage::onMode @ 0x100129824", "GJShopLayer::showCantAffordMessage @ 0x10014c194", "GJShopLayer::didPurchaseItem @ 0x10014c808", "GJShopLayer::showReactMessage @ 0x10014cdb8", "GJShopLayer::showReactMessage @ 0x10014d260", "DailyLevelPage::dailyStatusFailed @ 0x1001ba57c", "GauntletSelectLayer::onPlay @ 0x1001bfbd0", "LevelListLayer::onClaimReward @ 0x100246288", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f84", "SecretRewardsLayer::onGoldChest @ 0x1002e9ec4", "SecretRewardsLayer::onSpecialItem @ 0x1002ea4e4", "SecretRewardsLayer::onSelectItem @ 0x1002eb668", "SecretRewardsLayer::showDialog01 @ 0x1002ec32c", "SecretRewardsLayer::showDialog03 @ 0x1002ed148", "SecretRewardsLayer::showDialogMechanic @ 0x1002eddc8", "SecretRewardsLayer::showDialogDiamond @ 0x1002ee6d4", "GJGarageLayer::showUnlockPopup @ 0x100306878", "SecretLayer2::onDoor @ 0x10030ba70", "SecretLayer2::onSecretLevel @ 0x10030bbf8", "SecretLayer2::showCompletedLevel @ 0x10030c180", "SecretLayer3::onClick @ 0x10030f944", "SecretLayer3::firstInteractionStep2 @ 0x1003100a8", "SecretLayer3::firstInteractionStep4 @ 0x100310500", "SecretLayer3::showUnlockDialog @ 0x100310890", "SecretLayer3::revealStep2 @ 0x100310c68", "SecretLayer3::revealStep4 @ 0x100311120", "SecretLayer3::revealStep5 @ 0x10031150c", "LevelAreaLayer::showDialog @ 0x1003453b8", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x100346b38", "SecretLayer4::showFirstDialog @ 0x100354ad8", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8bf0", "GJPathPage::showCantAffordMessage @ 0x1003ba8e4", "LevelPage::onTheTower @ 0x100404c80", "LevelPage::onSecretDoor @ 0x1004057a8"], "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"}