{"type": "func", "start": 4298838496, "end": 4298838697, "name": "DialogLayer::updateChatPlacement", "pseudocode": "// \n// DialogLayer::updateChatPlacement from 0x1003b11e0 to 0x1003b12a9 (201 bytes)\n// \n// 50 xrefs:\n// > PlayLayer::destroyPlayer @ 0x1000882b5\n// > DailyLevelPage::dailyStatusFailed @ 0x100216310\n// > LevelAreaLayer::showDialog @ 0x100265d6c\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x100267e22\n// > CreatorLayer::onMultiplayer @ 0x1002833b2\n// > CreatorLayer::onOnlyFullVersion @ 0x100283aa1\n// > CreatorLayer::onSecretVault @ 0x10028402d\n// > CreatorLayer::onTreasureRoom @ 0x1002843ee\n// > CreatorLayer::onTreasureRoom @ 0x100284587\n// > sub_10029EC20 @ 0x10029ee27\n// > sub_1002EC240 @ 0x1002ec3c2\n// > sub_100310700 @ 0x100310882\n// > GJShopLayer::didPurchaseItem @ 0x100311239\n// > GJShopLayer::showReactMessage @ 0x100311961\n// > GJShopLayer::showReactMessage @ 0x100312322\n// > LevelListLayer::onClaimReward @ 0x10034a8d0\n// > GJGarageLayer::onRewardedVideo @ 0x100355a5b\n// > GJGarageLayer::showUnlockPopup @ 0x100358911\n// > SecretLayer4::showFirstDialog @ 0x10039b03d\n// > sub_10039C370 @ 0x10039c6a7\n// > WorldSelectLayer::showCompleteDialog @ 0x1003ac377\n// > sub_10040E060 @ 0x10040e33f\n// > LevelPage::onTheTower @ 0x100423f13\n// > LevelPage::onSecretDoor @ 0x100424ce1\n// > SecretLayer5::showFirstDialog @ 0x10047080b\n// > sub_100472510 @ 0x100472847\n// > SecretLayer2::onDoor @ 0x100498c7e\n// > SecretLayer2::onSecretLevel @ 0x100498e6a\n// > SecretLayer2::showCompletedLevel @ 0x100499842\n// > SecretLayer3::onClick @ 0x10049ea48\n// > SecretLayer3::firstInteractionStep2 @ 0x10049f3d7\n// > SecretLayer3::firstInteractionStep4 @ 0x10049f91a\n// > SecretLayer3::showUnlockDialog @ 0x10049fda3\n// > SecretLayer3::revealStep2 @ 0x1004a027a\n// > SecretLayer3::revealStep4 @ 0x1004a0a1b\n// > SecretLayer3::revealStep5 @ 0x1004a0fea\n// > RetryLevelLayer::onRewardedVideo @ 0x1004f846f\n// > GauntletSelectLayer::onPlay @ 0x1005a00b7\n// > sub_100602BF0 @ 0x100602df7\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1006d984b\n// > SecretRewardsLayer::onGoldChest @ 0x10070f2ff\n// > SecretRewardsLayer::onSpecialItem @ 0x10070fbdd\n// > SecretRewardsLayer::showLockedChest @ 0x10070fef0\n// > SecretRewardsLayer::onSelectItem @ 0x100711712\n// > SecretRewardsLayer::showDialog01 @ 0x100712ecd\n// > SecretRewardsLayer::showDialog03 @ 0x1007145fb\n// > SecretRewardsLayer::showDialogMechanic @ 0x100715b8f\n// > SecretRewardsLayer::showDialogDiamond @ 0x100716a92\n// > CharacterColorPage::onMode @ 0x10073cfe5\n// > OptionsLayer::onSecretVault @ 0x10087bcf1\n// \n// This function is hookable on this platform (idp: pc, 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 12:29:25 +0000\n// \n\n__int64 __fastcall DialogLayer::updateChatPlacement(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rax\n  __int64 result; // rax\n  __int64 v4; // rbx\n  float v5; // xmm0_4\n  float v6; // xmm1_4\n  float v7; // [rsp+0h] [rbp-20h] BYREF\n  float v8; // [rsp+8h] [rbp-18h] BYREF\n  float v9; // [rsp+Ch] [rbp-14h]\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1, a2);\n  result = cocos2d::CCDirector::getWinSize(&v8, v2);\n  if ( (_DWORD)a2 == 2 )\n  {\n    v4 = *(_QWORD *)(a1 + 560);\n    v5 = v8 * 0.5;\n    v6 = 70.0;\n  }\n  else if ( (_DWORD)a2 == 1 )\n  {\n    v4 = *(_QWORD *)(a1 + 560);\n    v5 = v8 * 0.5;\n    v6 = (float)(v9 + -50.0) + -20.0;\n  }\n  else\n  {\n    if ( (_DWORD)a2 )\n      return result;\n    v4 = *(_QWORD *)(a1 + 560);\n    v5 = v8 * 0.5;\n    v6 = 0.5 * v9;\n  }\n  sub_100278250(&v7, v5, v6);\n  return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 184LL))(v4, &v7);\n}", "assembly": "; \n; DialogLayer::updateChatPlacement from 0x1003b11e0 to 0x1003b12a9 (201 bytes)\n; \n; 50 xrefs:\n; > PlayLayer::destroyPlayer @ 0x1000882b5\n; > DailyLevelPage::dailyStatusFailed @ 0x100216310\n; > LevelAreaLayer::showDialog @ 0x100265d6c\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x100267e22\n; > CreatorLayer::onMultiplayer @ 0x1002833b2\n; > CreatorLayer::onOnlyFullVersion @ 0x100283aa1\n; > CreatorLayer::onSecretVault @ 0x10028402d\n; > CreatorLayer::onTreasureRoom @ 0x1002843ee\n; > CreatorLayer::onTreasureRoom @ 0x100284587\n; > sub_10029EC20 @ 0x10029ee27\n; > sub_1002EC240 @ 0x1002ec3c2\n; > sub_100310700 @ 0x100310882\n; > GJShopLayer::didPurchaseItem @ 0x100311239\n; > GJShopLayer::showReactMessage @ 0x100311961\n; > GJShopLayer::showReactMessage @ 0x100312322\n; > LevelListLayer::onClaimReward @ 0x10034a8d0\n; > GJGarageLayer::onRewardedVideo @ 0x100355a5b\n; > GJGarageLayer::showUnlockPopup @ 0x100358911\n; > SecretLayer4::showFirstDialog @ 0x10039b03d\n; > sub_10039C370 @ 0x10039c6a7\n; > WorldSelectLayer::showCompleteDialog @ 0x1003ac377\n; > sub_10040E060 @ 0x10040e33f\n; > LevelPage::onTheTower @ 0x100423f13\n; > LevelPage::onSecretDoor @ 0x100424ce1\n; > SecretLayer5::showFirstDialog @ 0x10047080b\n; > sub_100472510 @ 0x100472847\n; > SecretLayer2::onDoor @ 0x100498c7e\n; > SecretLayer2::onSecretLevel @ 0x100498e6a\n; > SecretLayer2::showCompletedLevel @ 0x100499842\n; > SecretLayer3::onClick @ 0x10049ea48\n; > SecretLayer3::firstInteractionStep2 @ 0x10049f3d7\n; > SecretLayer3::firstInteractionStep4 @ 0x10049f91a\n; > SecretLayer3::showUnlockDialog @ 0x10049fda3\n; > SecretLayer3::revealStep2 @ 0x1004a027a\n; > SecretLayer3::revealStep4 @ 0x1004a0a1b\n; > SecretLayer3::revealStep5 @ 0x1004a0fea\n; > RetryLevelLayer::onRewardedVideo @ 0x1004f846f\n; > GauntletSelectLayer::onPlay @ 0x1005a00b7\n; > sub_100602BF0 @ 0x100602df7\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1006d984b\n; > SecretRewardsLayer::onGoldChest @ 0x10070f2ff\n; > SecretRewardsLayer::onSpecialItem @ 0x10070fbdd\n; > SecretRewardsLayer::showLockedChest @ 0x10070fef0\n; > SecretRewardsLayer::onSelectItem @ 0x100711712\n; > SecretRewardsLayer::showDialog01 @ 0x100712ecd\n; > SecretRewardsLayer::showDialog03 @ 0x1007145fb\n; > SecretRewardsLayer::showDialogMechanic @ 0x100715b8f\n; > SecretRewardsLayer::showDialogDiamond @ 0x100716a92\n; > CharacterColorPage::onMode @ 0x10073cfe5\n; > OptionsLayer::onSecretVault @ 0x10087bcf1\n; \n; This function is hookable on this platform (idp: pc, 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 12:29:25 +0000\n; \npush    rbp                                                            ; +0x0, 0x1003b11e0\nmov     rbp, rsp                                                       ; +0x1, 0x1003b11e1\npush    r14                                                            ; +0x4, 0x1003b11e4\npush    rbx                                                            ; +0x6, 0x1003b11e6\nsub     rsp, 10h                                                       ; +0x7, 0x1003b11e7\nmov     r14d, esi                                                      ; +0xb, 0x1003b11eb\nmov     rbx, rdi                                                       ; +0xe, 0x1003b11ee\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x11, 0x1003b11f1\nlea     rdi, [rbp+var_18]                                              ; +0x16, 0x1003b11f6\nmov     rsi, rax                                                       ; +0x1a, 0x1003b11fa\ncall    cocos2d__CCDirector__getWinSize                                ; +0x1d, 0x1003b11fd\ncmp     r14d, 2                                                        ; +0x22, 0x1003b1202\njz      short loc_1003B1269                                            ; +0x26, 0x1003b1206\ncmp     r14d, 1                                                        ; +0x28, 0x1003b1208\njz      short loc_1003B123A                                            ; +0x2c, 0x1003b120c\ntest    r14d, r14d                                                     ; +0x2e, 0x1003b120e\njnz     loc_1003B12A0                                                  ; +0x31, 0x1003b1211\nmov     rbx, [rbx+230h]                                                ; +0x37, 0x1003b1217\nmovss   xmm1, cs:dword_100A03578                                       ; +0x3e, 0x1003b121e\nmovss   xmm0, [rbp+var_18]                                             ; +0x46, 0x1003b1226\nmulss   xmm0, xmm1                                                     ; +0x4b, 0x1003b122b\nmulss   xmm1, [rbp+var_14]                                             ; +0x4f, 0x1003b122f\nlea     r14, [rbp+var_20]                                              ; +0x54, 0x1003b1234\njmp     short loc_1003B1289                                            ; +0x58, 0x1003b1238\nmov     rbx, [rbx+230h]                                                ; +0x5a, 0x1003b123a\nmovss   xmm0, [rbp+var_18]                                             ; +0x61, 0x1003b1241\nmovss   xmm1, [rbp+var_14]                                             ; +0x66, 0x1003b1246\nmulss   xmm0, cs:dword_100A03578                                       ; +0x6b, 0x1003b124b\naddss   xmm1, cs:dword_100A037F0                                       ; +0x73, 0x1003b1253\naddss   xmm1, cs:dword_100A03598                                       ; +0x7b, 0x1003b125b\nlea     r14, [rbp+var_20]                                              ; +0x83, 0x1003b1263\njmp     short loc_1003B1289                                            ; +0x87, 0x1003b1267\nmov     rbx, [rbx+230h]                                                ; +0x89, 0x1003b1269\nmovss   xmm0, [rbp+var_18]                                             ; +0x90, 0x1003b1270\nmulss   xmm0, cs:dword_100A03578                                       ; +0x95, 0x1003b1275\nlea     r14, [rbp+var_20]                                              ; +0x9d, 0x1003b127d\nmovss   xmm1, cs:dword_100A039A0                                       ; +0xa1, 0x1003b1281\nmov     rdi, r14                                                       ; +0xa9, 0x1003b1289\ncall    sub_100278250                                                  ; +0xac, 0x1003b128c\nmov     rax, [rbx]                                                     ; +0xb1, 0x1003b1291\nmov     rdi, rbx                                                       ; +0xb4, 0x1003b1294\nmov     rsi, r14                                                       ; +0xb7, 0x1003b1297\ncall    qword ptr [rax+0B8h]                                           ; +0xba, 0x1003b129a\nadd     rsp, 10h                                                       ; +0xc0, 0x1003b12a0\npop     rbx                                                            ; +0xc4, 0x1003b12a4\npop     r14                                                            ; +0xc5, 0x1003b12a5\npop     rbp                                                            ; +0xc7, 0x1003b12a7\nretn                                                                   ; +0xc8, 0x1003b12a8", "xrefs": ["PlayLayer::destroyPlayer @ 0x1000882b5", "DailyLevelPage::dailyStatusFailed @ 0x100216310", "LevelAreaLayer::showDialog @ 0x100265d6c", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x100267e22", "CreatorLayer::onMultiplayer @ 0x1002833b2", "CreatorLayer::onOnlyFullVersion @ 0x100283aa1", "CreatorLayer::onSecretVault @ 0x10028402d", "CreatorLayer::onTreasureRoom @ 0x1002843ee", "CreatorLayer::onTreasureRoom @ 0x100284587", "sub_10029EC20 @ 0x10029ee27", "sub_1002EC240 @ 0x1002ec3c2", "sub_100310700 @ 0x100310882", "GJShopLayer::didPurchaseItem @ 0x100311239", "GJShopLayer::showReactMessage @ 0x100311961", "GJShopLayer::showReactMessage @ 0x100312322", "LevelListLayer::onClaimReward @ 0x10034a8d0", "GJGarageLayer::onRewardedVideo @ 0x100355a5b", "GJGarageLayer::showUnlockPopup @ 0x100358911", "SecretLayer4::showFirstDialog @ 0x10039b03d", "sub_10039C370 @ 0x10039c6a7", "WorldSelectLayer::showCompleteDialog @ 0x1003ac377", "sub_10040E060 @ 0x10040e33f", "LevelPage::onTheTower @ 0x100423f13", "LevelPage::onSecretDoor @ 0x100424ce1", "SecretLayer5::showFirstDialog @ 0x10047080b", "sub_100472510 @ 0x100472847", "SecretLayer2::onDoor @ 0x100498c7e", "SecretLayer2::onSecretLevel @ 0x100498e6a", "SecretLayer2::showCompletedLevel @ 0x100499842", "SecretLayer3::onClick @ 0x10049ea48", "SecretLayer3::firstInteractionStep2 @ 0x10049f3d7", "SecretLayer3::firstInteractionStep4 @ 0x10049f91a", "SecretLayer3::showUnlockDialog @ 0x10049fda3", "SecretLayer3::revealStep2 @ 0x1004a027a", "SecretLayer3::revealStep4 @ 0x1004a0a1b", "SecretLayer3::revealStep5 @ 0x1004a0fea", "RetryLevelLayer::onRewardedVideo @ 0x1004f846f", "GauntletSelectLayer::onPlay @ 0x1005a00b7", "sub_100602BF0 @ 0x100602df7", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x1006d984b", "SecretRewardsLayer::onGoldChest @ 0x10070f2ff", "SecretRewardsLayer::onSpecialItem @ 0x10070fbdd", "SecretRewardsLayer::showLockedChest @ 0x10070fef0", "SecretRewardsLayer::onSelectItem @ 0x100711712", "SecretRewardsLayer::showDialog01 @ 0x100712ecd", "SecretRewardsLayer::showDialog03 @ 0x1007145fb", "SecretRewardsLayer::showDialogMechanic @ 0x100715b8f", "SecretRewardsLayer::showDialogDiamond @ 0x100716a92", "CharacterColorPage::onMode @ 0x10073cfe5", "OptionsLayer::onSecretVault @ 0x10087bcf1"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}