{"type": "func", "start": 6328848, "end": 6329036, "name": "DialogLayer::updateChatPlacement", "pseudocode": "// \n// DialogLayer::updateChatPlacement from 0x609210 to 0x6092cc (188 bytes)\n// \n// 50 xrefs:\n// > PlayLayer::destroyPlayer @ 0x405fd4\n// > CreatorLayer::onOnlyFullVersion @ 0x493b10\n// > CreatorLayer::onMultiplayer @ 0x493cce\n// > CreatorLayer::onSecretVault @ 0x493eee\n// > CreatorLayer::onTreasureRoom @ 0x494110\n// > CreatorLayer::onTreasureRoom @ 0x4941c8\n// > GJGarageLayer::onRewardedVideo @ 0x50c1b4\n// > GJGarageLayer::showUnlockPopup @ 0x50eb7a\n// > LevelPage::onTheTower @ 0x51390a\n// > LevelPage::onSecretDoor @ 0x513df8\n// > OptionsLayer::onSecretVault @ 0x53286c\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x53ade0\n// > RetryLevelLayer::onRewardedVideo @ 0x547506\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x5db6c2\n// > DailyLevelPage::dailyStatusFailed @ 0x607dc6\n// > GauntletSelectLayer::onPlay @ 0x60aee4\n// > GJShopLayer::didPurchaseItem @ 0x611aec\n// > GJShopLayer::showReactMessage @ 0x6121b2\n// > GJShopLayer::showReactMessage @ 0x612708\n// > GJShopLayer::showCantAffordMessage @ 0x613bf0\n// > SecretLayer2::showCompletedLevel @ 0x61b8a4\n// > SecretLayer2::onSecretLevel @ 0x61ba74\n// > SecretLayer3::firstInteractionStep2 @ 0x61bdba\n// > SecretLayer3::firstInteractionStep4 @ 0x61bfe8\n// > SecretLayer3::onClick @ 0x61c63a\n// > SecretLayer3::showUnlockDialog @ 0x61cb1e\n// > SecretLayer3::revealStep2 @ 0x61ccf8\n// > SecretLayer3::revealStep5 @ 0x61cf68\n// > SecretLayer3::revealStep4 @ 0x61da5c\n// > SecretLayer2::onDoor @ 0x61e648\n// > SecretLayer4::showDialog @ 0x621886\n// > SecretLayer4::showFirstDialog @ 0x621b10\n// > WorldSelectLayer::showCompleteDialog @ 0x62d638\n// > FollowRewardPage::onRewardedVideo @ 0x6301ec\n// > CharacterColorPage::onMode @ 0x69decc\n// > LevelAreaLayer::showDialog @ 0x6a3d44\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x6a402e\n// > SecretRewardsLayer::showDialog01 @ 0x6cb784\n// > SecretRewardsLayer::showDialog03 @ 0x6cc2cc\n// > SecretRewardsLayer::showDialogMechanic @ 0x6cccb0\n// > SecretRewardsLayer::showDialogDiamond @ 0x6cd434\n// > SecretRewardsLayer::showLockedChest @ 0x6cd970\n// > SecretRewardsLayer::onSpecialItem @ 0x6cdb1a\n// > SecretRewardsLayer::onGoldChest @ 0x6cdcb6\n// > SecretRewardsLayer::onSelectItem @ 0x6cde8a\n// > GJPathPage::showCantAffordMessage @ 0x6d46e6\n// > LevelListLayer::onClaimReward @ 0x6d6c74\n// > SecretLayer5::showDialog @ 0x6e486e\n// > SecretLayer5::showFirstDialog @ 0x6e4b4e\n// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x71108a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:54:46 +0000\n// \n\nint __fastcall DialogLayer::updateChatPlacement(cocos2d::CCDirector *a1, int a2)\n{\n  int result; // r0\n  int v5; // r6\n  int (__fastcall *v6)(int, _BYTE *); // r7\n  float v7; // r1\n  float v8; // s15\n  float v9; // r2\n  float v10; // [sp+4h] [bp-18h] BYREF\n  float v11; // [sp+8h] [bp-14h]\n  _BYTE v12[8]; // [sp+Ch] [bp-10h] BYREF\n\n  cocos2d::CCDirector::sharedDirector(a1);\n  result = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v10);\n  if ( !a2 )\n  {\n    v5 = *((_DWORD *)a1 + 114);\n    v6 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);\n    v7 = v10 * 0.5;\n    v8 = v11 * 0.5;\nLABEL_5:\n    v9 = v8;\n    goto LABEL_8;\n  }\n  if ( a2 == 1 )\n  {\n    v5 = *((_DWORD *)a1 + 114);\n    v6 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);\n    v7 = v10 * 0.5;\n    v8 = (float)(v11 - 50.0) - 20.0;\n    goto LABEL_5;\n  }\n  if ( a2 != 2 )\n    return result;\n  v5 = *((_DWORD *)a1 + 114);\n  v9 = 70.0;\n  v6 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);\n  v7 = v10 * 0.5;\nLABEL_8:\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v7, v9);\n  return v6(v5, v12);\n}", "assembly": "; \n; DialogLayer::updateChatPlacement from 0x609210 to 0x6092cc (188 bytes)\n; \n; 50 xrefs:\n; > PlayLayer::destroyPlayer @ 0x405fd4\n; > CreatorLayer::onOnlyFullVersion @ 0x493b10\n; > CreatorLayer::onMultiplayer @ 0x493cce\n; > CreatorLayer::onSecretVault @ 0x493eee\n; > CreatorLayer::onTreasureRoom @ 0x494110\n; > CreatorLayer::onTreasureRoom @ 0x4941c8\n; > GJGarageLayer::onRewardedVideo @ 0x50c1b4\n; > GJGarageLayer::showUnlockPopup @ 0x50eb7a\n; > LevelPage::onTheTower @ 0x51390a\n; > LevelPage::onSecretDoor @ 0x513df8\n; > OptionsLayer::onSecretVault @ 0x53286c\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x53ade0\n; > RetryLevelLayer::onRewardedVideo @ 0x547506\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x5db6c2\n; > DailyLevelPage::dailyStatusFailed @ 0x607dc6\n; > GauntletSelectLayer::onPlay @ 0x60aee4\n; > GJShopLayer::didPurchaseItem @ 0x611aec\n; > GJShopLayer::showReactMessage @ 0x6121b2\n; > GJShopLayer::showReactMessage @ 0x612708\n; > GJShopLayer::showCantAffordMessage @ 0x613bf0\n; > SecretLayer2::showCompletedLevel @ 0x61b8a4\n; > SecretLayer2::onSecretLevel @ 0x61ba74\n; > SecretLayer3::firstInteractionStep2 @ 0x61bdba\n; > SecretLayer3::firstInteractionStep4 @ 0x61bfe8\n; > SecretLayer3::onClick @ 0x61c63a\n; > SecretLayer3::showUnlockDialog @ 0x61cb1e\n; > SecretLayer3::revealStep2 @ 0x61ccf8\n; > SecretLayer3::revealStep5 @ 0x61cf68\n; > SecretLayer3::revealStep4 @ 0x61da5c\n; > SecretLayer2::onDoor @ 0x61e648\n; > SecretLayer4::showDialog @ 0x621886\n; > SecretLayer4::showFirstDialog @ 0x621b10\n; > WorldSelectLayer::showCompleteDialog @ 0x62d638\n; > FollowRewardPage::onRewardedVideo @ 0x6301ec\n; > CharacterColorPage::onMode @ 0x69decc\n; > LevelAreaLayer::showDialog @ 0x6a3d44\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x6a402e\n; > SecretRewardsLayer::showDialog01 @ 0x6cb784\n; > SecretRewardsLayer::showDialog03 @ 0x6cc2cc\n; > SecretRewardsLayer::showDialogMechanic @ 0x6cccb0\n; > SecretRewardsLayer::showDialogDiamond @ 0x6cd434\n; > SecretRewardsLayer::showLockedChest @ 0x6cd970\n; > SecretRewardsLayer::onSpecialItem @ 0x6cdb1a\n; > SecretRewardsLayer::onGoldChest @ 0x6cdcb6\n; > SecretRewardsLayer::onSelectItem @ 0x6cde8a\n; > GJPathPage::showCantAffordMessage @ 0x6d46e6\n; > LevelListLayer::onClaimReward @ 0x6d6c74\n; > SecretLayer5::showDialog @ 0x6e486e\n; > SecretLayer5::showFirstDialog @ 0x6e4b4e\n; > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x71108a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:54:46 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x609210\nSUB             SP, SP, #0x1C                                          ; +0x2, 0x609212\nLDR             R5, =(__stack_chk_guard_ptr - 0x60921E)                ; +0x4, 0x609214\nMOV             R6, R1                                                 ; +0x6, 0x609216\nMOV             R4, R0                                                 ; +0x8, 0x609218\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x60921a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x60921c\nLDR             R3, [R5]                                               ; +0xe, 0x60921e\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x10, 0x609220\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x12, 0x609222\nMOV             R1, R0                                                 ; +0x16, 0x609226\nADD             R0, SP, #0x1C+var_18; this                             ; +0x18, 0x609228\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x1a, 0x60922a\nCBNZ            R6, loc_609256                                         ; +0x1e, 0x60922e\nVMOV.F32        S15, #0.5                                              ; +0x20, 0x609230\nLDR.W           R6, [R4,#0x1C8]                                        ; +0x24, 0x609234\nVLDR            S14, [SP,#0x1C+var_18]                                 ; +0x28, 0x609238\nADD             R4, SP, #0x1C+var_10                                   ; +0x2c, 0x60923c\nLDR             R3, [R6]                                               ; +0x2e, 0x60923e\nMOV             R0, R4                                                 ; +0x30, 0x609240\nLDR             R7, [R3,#0x5C]                                         ; +0x32, 0x609242\nVMUL.F32        S14, S14, S15                                          ; +0x34, 0x609244\nVMOV            R1, S14                                                ; +0x38, 0x609248\nVLDR            S14, [SP,#0x1C+var_14]                                 ; +0x3c, 0x60924c\nVMUL.F32        S15, S14, S15                                          ; +0x40, 0x609250\nB               loc_60928A                                             ; +0x44, 0x609254\nCMP             R6, #1                                                 ; +0x46, 0x609256\nBNE             loc_609290                                             ; +0x48, 0x609258\nVLDR            S14, =50.0                                             ; +0x4a, 0x60925a\nLDR.W           R6, [R4,#0x1C8]                                        ; +0x4e, 0x60925e\nADD             R4, SP, #0x1C+var_10                                   ; +0x52, 0x609262\nVLDR            S15, [SP,#0x1C+var_14]                                 ; +0x54, 0x609264\nMOV             R0, R4                                                 ; +0x58, 0x609268\nLDR             R3, [R6]                                               ; +0x5a, 0x60926a\nVLDR            S13, [SP,#0x1C+var_18]                                 ; +0x5c, 0x60926c\nLDR             R7, [R3,#0x5C]                                         ; +0x60, 0x609270\nVSUB.F32        S15, S15, S14                                          ; +0x62, 0x609272\nVMOV.F32        S14, #0.5                                              ; +0x66, 0x609276\nVMUL.F32        S14, S13, S14                                          ; +0x6a, 0x60927a\nVMOV            R1, S14                                                ; +0x6e, 0x60927e\nVMOV.F32        S14, #20.0                                             ; +0x72, 0x609282\nVSUB.F32        S15, S15, S14                                          ; +0x76, 0x609286\nVMOV            R2, S15                                                ; +0x7a, 0x60928a\nB               loc_6092B2                                             ; +0x7e, 0x60928e\nCMP             R6, #2                                                 ; +0x80, 0x609290\nBNE             loc_6092BC                                             ; +0x82, 0x609292\nVMOV.F32        S15, #0.5                                              ; +0x84, 0x609294\nLDR.W           R6, [R4,#0x1C8]                                        ; +0x88, 0x609298\nVLDR            S14, [SP,#0x1C+var_18]                                 ; +0x8c, 0x60929c\nADD             R4, SP, #0x1C+var_10                                   ; +0x90, 0x6092a0\nLDR             R2, flt_6092D0; float                                  ; +0x92, 0x6092a2\nLDR             R3, [R6]                                               ; +0x94, 0x6092a4\nMOV             R0, R4; this                                           ; +0x96, 0x6092a6\nLDR             R7, [R3,#0x5C]                                         ; +0x98, 0x6092a8\nVMUL.F32        S15, S14, S15                                          ; +0x9a, 0x6092aa\nVMOV            R1, S15; float                                         ; +0x9e, 0x6092ae\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa2, 0x6092b2\nMOV             R0, R6                                                 ; +0xa6, 0x6092b6\nMOV             R1, R4                                                 ; +0xa8, 0x6092b8\nBLX             R7                                                     ; +0xaa, 0x6092ba\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xac, 0x6092bc\nLDR             R3, [R5]                                               ; +0xae, 0x6092be\nCMP             R2, R3                                                 ; +0xb0, 0x6092c0\nBEQ             loc_6092C8                                             ; +0xb2, 0x6092c2\nBLX             __stack_chk_fail                                       ; +0xb4, 0x6092c4\nADD             SP, SP, #0x1C                                          ; +0xb8, 0x6092c8\nPOP             {R4-R7,PC}                                             ; +0xba, 0x6092ca", "xrefs": ["PlayLayer::destroyPlayer @ 0x405fd4", "CreatorLayer::onOnlyFullVersion @ 0x493b10", "CreatorLayer::onMultiplayer @ 0x493cce", "CreatorLayer::onSecretVault @ 0x493eee", "CreatorLayer::onTreasureRoom @ 0x494110", "CreatorLayer::onTreasureRoom @ 0x4941c8", "GJGarageLayer::onRewardedVideo @ 0x50c1b4", "GJGarageLayer::showUnlockPopup @ 0x50eb7a", "LevelPage::onTheTower @ 0x51390a", "LevelPage::onSecretDoor @ 0x513df8", "OptionsLayer::onSecretVault @ 0x53286c", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x53ade0", "RetryLevelLayer::onRewardedVideo @ 0x547506", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x5db6c2", "DailyLevelPage::dailyStatusFailed @ 0x607dc6", "GauntletSelectLayer::onPlay @ 0x60aee4", "GJShopLayer::didPurchaseItem @ 0x611aec", "GJShopLayer::showReactMessage @ 0x6121b2", "GJShopLayer::showReactMessage @ 0x612708", "GJShopLayer::showCantAffordMessage @ 0x613bf0", "SecretLayer2::showCompletedLevel @ 0x61b8a4", "SecretLayer2::onSecretLevel @ 0x61ba74", "SecretLayer3::firstInteractionStep2 @ 0x61bdba", "SecretLayer3::firstInteractionStep4 @ 0x61bfe8", "SecretLayer3::onClick @ 0x61c63a", "SecretLayer3::showUnlockDialog @ 0x61cb1e", "SecretLayer3::revealStep2 @ 0x61ccf8", "SecretLayer3::revealStep5 @ 0x61cf68", "SecretLayer3::revealStep4 @ 0x61da5c", "SecretLayer2::onDoor @ 0x61e648", "SecretLayer4::showDialog @ 0x621886", "SecretLayer4::showFirstDialog @ 0x621b10", "WorldSelectLayer::showCompleteDialog @ 0x62d638", "FollowRewardPage::onRewardedVideo @ 0x6301ec", "CharacterColorPage::onMode @ 0x69decc", "LevelAreaLayer::showDialog @ 0x6a3d44", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x6a402e", "SecretRewardsLayer::showDialog01 @ 0x6cb784", "SecretRewardsLayer::showDialog03 @ 0x6cc2cc", "SecretRewardsLayer::showDialogMechanic @ 0x6cccb0", "SecretRewardsLayer::showDialogDiamond @ 0x6cd434", "SecretRewardsLayer::showLockedChest @ 0x6cd970", "SecretRewardsLayer::onSpecialItem @ 0x6cdb1a", "SecretRewardsLayer::onGoldChest @ 0x6cdcb6", "SecretRewardsLayer::onSelectItem @ 0x6cde8a", "GJPathPage::showCantAffordMessage @ 0x6d46e6", "LevelListLayer::onClaimReward @ 0x6d6c74", "SecretLayer5::showDialog @ 0x6e486e", "SecretLayer5::showFirstDialog @ 0x6e4b4e", "GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x71108a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}