{"type": "func", "start": 10945484, "end": 10945804, "name": "DialogLayer::updateChatPlacement", "pseudocode": "// \n// DialogLayer::updateChatPlacement from 0xa703cc to 0xa7050c (320 bytes)\n// \n// 51 xrefs:\n// > PlayLayer::destroyPlayer @ 0x6ff4c0\n// > CreatorLayer::onOnlyFullVersion @ 0x7dbe98\n// > CreatorLayer::onMultiplayer @ 0x7dc098\n// > CreatorLayer::onSecretVault @ 0x7dc42c\n// > CreatorLayer::onTreasureRoom @ 0x7dc784\n// > CreatorLayer::onTreasureRoom @ 0x7dc988\n// > GJGarageLayer::onRewardedVideo @ 0x8bb624\n// > GJGarageLayer::showUnlockPopup @ 0x8bfbc0\n// > LevelPage::onTheTower @ 0x8c6884\n// > LevelPage::onSecretDoor @ 0x8c6e50\n// > OptionsLayer::onSecretVault @ 0x8f73d4\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x903e38\n// > RetryLevelLayer::onRewardedVideo @ 0x918e14\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0xa2b68c\n// > DailyLevelPage::dailyStatusFailed @ 0xa6d480\n// > GauntletSelectLayer::onPlay @ 0xa73b48\n// > GJShopLayer::didPurchaseItem @ 0xa7d768\n// > GJShopLayer::showReactMessage @ 0xa7de28\n// > GJShopLayer::showReactMessage @ 0xa7e1c8\n// > GJShopLayer::showCantAffordMessage @ 0xa806a0\n// > SecretLayer2::showCompletedLevel @ 0xa8be3c\n// > SecretLayer2::onSecretLevel @ 0xa8c0fc\n// > SecretLayer3::firstInteractionStep2 @ 0xa8c688\n// > SecretLayer3::firstInteractionStep4 @ 0xa8c9d8\n// > SecretLayer3::onClick @ 0xa8cb94\n// > SecretLayer3::showUnlockDialog @ 0xa8d7f0\n// > SecretLayer3::revealStep2 @ 0xa8db7c\n// > SecretLayer3::revealStep5 @ 0xa8df18\n// > SecretLayer3::revealStep4 @ 0xa8f038\n// > SecretLayer2::onDoor @ 0xa93a00\n// > SecretLayer4::showDialog @ 0xa94a04\n// > SecretLayer4::showFirstDialog @ 0xa95148\n// > WorldSelectLayer::showCompleteDialog @ 0xaa6f5c\n// > FollowRewardPage::onRewardedVideo @ 0xaaab98\n// > CharacterColorPage::onMode @ 0xb51f38\n// > LevelAreaLayer::showDialog @ 0xb5a708\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xb5aa88\n// > SecretRewardsLayer::showDialog01 @ 0xb9ad5c\n// > SecretRewardsLayer::showDialog03 @ 0xb9bedc\n// > SecretRewardsLayer::showDialogMechanic @ 0xb9cc50\n// > SecretRewardsLayer::showDialogDiamond @ 0xb9d92c\n// > SecretRewardsLayer::showLockedChest @ 0xb9e4e8\n// > SecretRewardsLayer::onSpecialItem @ 0xb9e834\n// > SecretRewardsLayer::onGoldChest @ 0xb9eb50\n// > SecretRewardsLayer::onSelectItem @ 0xb9ee24\n// > GJPathPage::showCantAffordMessage @ 0xba8400\n// > LevelListLayer::onClaimReward @ 0xbac08c\n// > SecretLayer5::showDialog @ 0xbc5af8\n// > SecretLayer5::showFirstDialog @ 0xbc62b0\n// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0xc06a68\n// > <???> @ 0x610f0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:00:23 +0000\n// \n\n__int64 __fastcall DialogLayer::updateChatPlacement(__int64 a1, int a2)\n{\n  cocos2d::CCDirector *v3; // x0\n  __int64 v5; // x20\n  void (__fastcall *v6)(__int64, _BYTE *); // x21\n  __int64 v7; // x21\n  void (__fastcall *v8)(__int64, _BYTE *); // x20\n  __int64 v9; // x21\n  void (__fastcall *v10)(__int64, _BYTE *); // x20\n  __int64 v12; // [xsp+48h] [xbp+48h] BYREF\n  _BYTE v13[8]; // [xsp+50h] [xbp+50h] BYREF\n\n  v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);\n  cocos2d::CCDirector::getWinSize(&v12, v3);\n  if ( a2 )\n  {\n    if ( a2 == 1 )\n    {\n      v9 = *(_QWORD *)(a1 + 560);\n      v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL);\n      cocos2d::CCPoint::CCPoint(\n        (cocos2d::CCPoint *)v13,\n        *(float *)&v12 * 0.5,\n        (float)(*((float *)&v12 + 1) - 50.0) - 20.0);\n      v10(v9, v13);\n    }\n    else if ( a2 == 2 )\n    {\n      v7 = *(_QWORD *)(a1 + 560);\n      v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 184LL);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, *(float *)&v12 * 0.5, 70.0);\n      v8(v7, v13);\n    }\n  }\n  else\n  {\n    v5 = *(_QWORD *)(a1 + 560);\n    v6 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, *(float *)&v12 * 0.5, *((float *)&v12 + 1) * 0.5);\n    v6(v5, v13);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; DialogLayer::updateChatPlacement from 0xa703cc to 0xa7050c (320 bytes)\n; \n; 51 xrefs:\n; > PlayLayer::destroyPlayer @ 0x6ff4c0\n; > CreatorLayer::onOnlyFullVersion @ 0x7dbe98\n; > CreatorLayer::onMultiplayer @ 0x7dc098\n; > CreatorLayer::onSecretVault @ 0x7dc42c\n; > CreatorLayer::onTreasureRoom @ 0x7dc784\n; > CreatorLayer::onTreasureRoom @ 0x7dc988\n; > GJGarageLayer::onRewardedVideo @ 0x8bb624\n; > GJGarageLayer::showUnlockPopup @ 0x8bfbc0\n; > LevelPage::onTheTower @ 0x8c6884\n; > LevelPage::onSecretDoor @ 0x8c6e50\n; > OptionsLayer::onSecretVault @ 0x8f73d4\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x903e38\n; > RetryLevelLayer::onRewardedVideo @ 0x918e14\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0xa2b68c\n; > DailyLevelPage::dailyStatusFailed @ 0xa6d480\n; > GauntletSelectLayer::onPlay @ 0xa73b48\n; > GJShopLayer::didPurchaseItem @ 0xa7d768\n; > GJShopLayer::showReactMessage @ 0xa7de28\n; > GJShopLayer::showReactMessage @ 0xa7e1c8\n; > GJShopLayer::showCantAffordMessage @ 0xa806a0\n; > SecretLayer2::showCompletedLevel @ 0xa8be3c\n; > SecretLayer2::onSecretLevel @ 0xa8c0fc\n; > SecretLayer3::firstInteractionStep2 @ 0xa8c688\n; > SecretLayer3::firstInteractionStep4 @ 0xa8c9d8\n; > SecretLayer3::onClick @ 0xa8cb94\n; > SecretLayer3::showUnlockDialog @ 0xa8d7f0\n; > SecretLayer3::revealStep2 @ 0xa8db7c\n; > SecretLayer3::revealStep5 @ 0xa8df18\n; > SecretLayer3::revealStep4 @ 0xa8f038\n; > SecretLayer2::onDoor @ 0xa93a00\n; > SecretLayer4::showDialog @ 0xa94a04\n; > SecretLayer4::showFirstDialog @ 0xa95148\n; > WorldSelectLayer::showCompleteDialog @ 0xaa6f5c\n; > FollowRewardPage::onRewardedVideo @ 0xaaab98\n; > CharacterColorPage::onMode @ 0xb51f38\n; > LevelAreaLayer::showDialog @ 0xb5a708\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xb5aa88\n; > SecretRewardsLayer::showDialog01 @ 0xb9ad5c\n; > SecretRewardsLayer::showDialog03 @ 0xb9bedc\n; > SecretRewardsLayer::showDialogMechanic @ 0xb9cc50\n; > SecretRewardsLayer::showDialogDiamond @ 0xb9d92c\n; > SecretRewardsLayer::showLockedChest @ 0xb9e4e8\n; > SecretRewardsLayer::onSpecialItem @ 0xb9e834\n; > SecretRewardsLayer::onGoldChest @ 0xb9eb50\n; > SecretRewardsLayer::onSelectItem @ 0xb9ee24\n; > GJPathPage::showCantAffordMessage @ 0xba8400\n; > LevelListLayer::onClaimReward @ 0xbac08c\n; > SecretLayer5::showDialog @ 0xbc5af8\n; > SecretLayer5::showFirstDialog @ 0xbc62b0\n; > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0xc06a68\n; > <???> @ 0x610f0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:00:23 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0xa703cc\nMOV             X29, SP                                                ; +0x4, 0xa703d0\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0xa703d4\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xa703d8\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x10, 0xa703dc\nMOV             X21, X0                                                ; +0x14, 0xa703e0\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x18, 0xa703e4\nADD             X20, X29, #0x60+var_18                                 ; +0x1c, 0xa703e8\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xa703ec\nLDR             X0, [X0]; this                                         ; +0x24, 0xa703f0\nSTR             X0, [X29,#0x60+var_8]                                  ; +0x28, 0xa703f4\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0xa703f8\nMOV             X8, X20                                                ; +0x30, 0xa703fc\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x34, 0xa70400\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x38, 0xa70404\nCBZ             W1, loc_A70440                                         ; +0x3c, 0xa70408\nCMP             W1, #1                                                 ; +0x40, 0xa7040c\nB.EQ            loc_A704BC                                             ; +0x44, 0xa70410\nCMP             W1, #2                                                 ; +0x48, 0xa70414\nB.EQ            loc_A70480                                             ; +0x4c, 0xa70418\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x50, 0xa7041c\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x54, 0xa70420\nLDR             X0, [X19]                                              ; +0x58, 0xa70424\nCMP             X1, X0                                                 ; +0x5c, 0xa70428\nB.NE            loc_A70508                                             ; +0x60, 0xa7042c\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x64, 0xa70430\nLDR             X21, [SP,#0x60+var_40]                                 ; +0x68, 0xa70434\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x6c, 0xa70438\nRET                                                                    ; +0x70, 0xa7043c\nLDR             X20, [X21,#0x230]                                      ; +0x74, 0xa70440\nADD             X1, X29, #0x60+var_10                                  ; +0x78, 0xa70444\nLDR             S0, [X29,#0x60+var_18]                                 ; +0x7c, 0xa70448\nMOV             X0, X1; this                                           ; +0x80, 0xa7044c\nLDR             S2, [X29,#0x60+var_14]                                 ; +0x84, 0xa70450\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x88, 0xa70454\nFMOV            S1, #0.5                                               ; +0x8c, 0xa70458\nLDR             X2, [X20]                                              ; +0x90, 0xa7045c\nFMUL            S0, S0, S1; float                                      ; +0x94, 0xa70460\nFMUL            S1, S2, S1; float                                      ; +0x98, 0xa70464\nLDR             X21, [X2,#0xB8]                                        ; +0x9c, 0xa70468\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa0, 0xa7046c\nLDR             X1, [X29,#0x60+var_28]                                 ; +0xa4, 0xa70470\nMOV             X0, X20                                                ; +0xa8, 0xa70474\nBLR             X21                                                    ; +0xac, 0xa70478\nB               loc_A7041C                                             ; +0xb0, 0xa7047c\nLDR             X21, [X21,#0x230]                                      ; +0xb4, 0xa70480\nADD             X1, X29, #0x60+var_10                                  ; +0xb8, 0xa70484\nLDR             S1, [X20]                                              ; +0xbc, 0xa70488\nMOV             X0, X1; this                                           ; +0xc0, 0xa7048c\nFMOV            S0, #0.5                                               ; +0xc4, 0xa70490\nSTR             X1, [X29,#0x60+var_28]                                 ; +0xc8, 0xa70494\nLDR             X2, [X21]                                              ; +0xcc, 0xa70498\nFMUL            S0, S1, S0; float                                      ; +0xd0, 0xa7049c\nLDR             S1, flt_A70510; float                                  ; +0xd4, 0xa704a0\nLDR             X20, [X2,#0xB8]                                        ; +0xd8, 0xa704a4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xdc, 0xa704a8\nLDR             X1, [X29,#0x60+var_28]                                 ; +0xe0, 0xa704ac\nMOV             X0, X21                                                ; +0xe4, 0xa704b0\nBLR             X20                                                    ; +0xe8, 0xa704b4\nB               loc_A7041C                                             ; +0xec, 0xa704b8\nLDR             S1, [X20,#4]                                           ; +0xf0, 0xa704bc\nLDR             X21, [X21,#0x230]                                      ; +0xf4, 0xa704c0\nLDR             S0, =0x42480000                                        ; +0xf8, 0xa704c4\nADD             X1, X29, #0x60+var_10                                  ; +0xfc, 0xa704c8\nLDR             S2, [X20]                                              ; +0x100, 0xa704cc\nMOV             X0, X1; this                                           ; +0x104, 0xa704d0\nFSUB            S1, S1, S0                                             ; +0x108, 0xa704d4\nLDR             X2, [X21]                                              ; +0x10c, 0xa704d8\nFMOV            S0, #0.5                                               ; +0x110, 0xa704dc\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x114, 0xa704e0\nFMUL            S0, S2, S0; float                                      ; +0x118, 0xa704e4\nLDR             X20, [X2,#0xB8]                                        ; +0x11c, 0xa704e8\nFMOV            S2, #20.0                                              ; +0x120, 0xa704ec\nFSUB            S1, S1, S2; float                                      ; +0x124, 0xa704f0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x128, 0xa704f4\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x12c, 0xa704f8\nMOV             X0, X21                                                ; +0x130, 0xa704fc\nBLR             X20                                                    ; +0x134, 0xa70500\nB               loc_A7041C                                             ; +0x138, 0xa70504\nBL              .__stack_chk_fail                                      ; +0x13c, 0xa70508", "xrefs": ["PlayLayer::destroyPlayer @ 0x6ff4c0", "CreatorLayer::onOnlyFullVersion @ 0x7dbe98", "CreatorLayer::onMultiplayer @ 0x7dc098", "CreatorLayer::onSecretVault @ 0x7dc42c", "CreatorLayer::onTreasureRoom @ 0x7dc784", "CreatorLayer::onTreasureRoom @ 0x7dc988", "GJGarageLayer::onRewardedVideo @ 0x8bb624", "GJGarageLayer::showUnlockPopup @ 0x8bfbc0", "LevelPage::onTheTower @ 0x8c6884", "LevelPage::onSecretDoor @ 0x8c6e50", "OptionsLayer::onSecretVault @ 0x8f73d4", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x903e38", "RetryLevelLayer::onRewardedVideo @ 0x918e14", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0xa2b68c", "DailyLevelPage::dailyStatusFailed @ 0xa6d480", "GauntletSelectLayer::onPlay @ 0xa73b48", "GJShopLayer::didPurchaseItem @ 0xa7d768", "GJShopLayer::showReactMessage @ 0xa7de28", "GJShopLayer::showReactMessage @ 0xa7e1c8", "GJShopLayer::showCantAffordMessage @ 0xa806a0", "SecretLayer2::showCompletedLevel @ 0xa8be3c", "SecretLayer2::onSecretLevel @ 0xa8c0fc", "SecretLayer3::firstInteractionStep2 @ 0xa8c688", "SecretLayer3::firstInteractionStep4 @ 0xa8c9d8", "SecretLayer3::onClick @ 0xa8cb94", "SecretLayer3::showUnlockDialog @ 0xa8d7f0", "SecretLayer3::revealStep2 @ 0xa8db7c", "SecretLayer3::revealStep5 @ 0xa8df18", "SecretLayer3::revealStep4 @ 0xa8f038", "SecretLayer2::onDoor @ 0xa93a00", "SecretLayer4::showDialog @ 0xa94a04", "SecretLayer4::showFirstDialog @ 0xa95148", "WorldSelectLayer::showCompleteDialog @ 0xaa6f5c", "FollowRewardPage::onRewardedVideo @ 0xaaab98", "CharacterColorPage::onMode @ 0xb51f38", "LevelAreaLayer::showDialog @ 0xb5a708", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xb5aa88", "SecretRewardsLayer::showDialog01 @ 0xb9ad5c", "SecretRewardsLayer::showDialog03 @ 0xb9bedc", "SecretRewardsLayer::showDialogMechanic @ 0xb9cc50", "SecretRewardsLayer::showDialogDiamond @ 0xb9d92c", "SecretRewardsLayer::showLockedChest @ 0xb9e4e8", "SecretRewardsLayer::onSpecialItem @ 0xb9e834", "SecretRewardsLayer::onGoldChest @ 0xb9eb50", "SecretRewardsLayer::onSelectItem @ 0xb9ee24", "GJPathPage::showCantAffordMessage @ 0xba8400", "LevelListLayer::onClaimReward @ 0xbac08c", "SecretLayer5::showDialog @ 0xbc5af8", "SecretLayer5::showFirstDialog @ 0xbc62b0", "GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0xc06a68", "<???> @ 0x610f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}