{"type": "func", "start": 4295335232, "end": 4295335466, "name": "CCMenuItemToggler::setSizeMult", "pseudocode": "// \n// CCMenuItemToggler::setSizeMult from 0x100059d40 to 0x100059e2a (234 bytes)\n// \n// 44 xrefs:\n// > EditorUI::setupCreateMenu @ 0x10002a40a\n// > AccountLayer::createToggleButton @ 0x1000cd015\n// > CustomizeObjectLayer::createToggleButton @ 0x1001f8f31\n// > MessagesProfilePage::init @ 0x10022e037\n// > LevelCell::loadFromLevel @ 0x1002448a0\n// > GJRequestCell::loadFromScore @ 0x10024c8c0\n// > GJMessageCell::loadFromMessage @ 0x10024d1db\n// > LevelSettingsLayer::createToggleButton @ 0x10026e4a4\n// > ShareLevelSettingsLayer::init @ 0x100282a89\n// > ShareLevelSettingsLayer::init @ 0x100282d14\n// > CollisionBlockPopup::createToggleButton @ 0x100286ea0\n// > GJOptionsLayer::addToggleInternal @ 0x10029c8a8\n// > GJAccountSettingsLayer::createToggleButton @ 0x1002a12fa\n// > GameOptionsLayer::setupOptions @ 0x1002b1619\n// > GJGarageLayer::setupIconSelect @ 0x10036b631\n// > GJGarageLayer::setupIconSelect @ 0x10036b69c\n// > GJGarageLayer::setupIconSelect @ 0x10036b70a\n// > GJGarageLayer::setupIconSelect @ 0x10036b778\n// > GJGarageLayer::setupIconSelect @ 0x10036b7e6\n// > GJGarageLayer::setupIconSelect @ 0x10036b854\n// > GJGarageLayer::setupIconSelect @ 0x10036b8c2\n// > GJGarageLayer::setupIconSelect @ 0x10036b930\n// > GJGarageLayer::setupIconSelect @ 0x10036b99e\n// > GJGarageLayer::setupIconSelect @ 0x10036ba0c\n// > GJGarageLayer::setupIconSelect @ 0x10036ba7a\n// > SupportLayer::createToggleButton @ 0x10039a3a1\n// > PauseLayer::createToggleButton @ 0x1003d76d4\n// > LevelBrowserLayer::init @ 0x10048bdca\n// > GameToolbox::createToggleButton @ 0x1004eeec2\n// > LeaderboardsLayer::setupTabs @ 0x100512f8b\n// > LeaderboardsLayer::setupTabs @ 0x100513047\n// > LeaderboardsLayer::setupTabs @ 0x100513103\n// > LeaderboardsLayer::setupTabs @ 0x1005131ba\n// > ColorSelectLiveOverlay::createToggleButton @ 0x10056a270\n// > ShareCommentLayer::init @ 0x1005e00cc\n// > MoreSearchLayer::createToggleButton @ 0x10062e581\n// > CharacterColorPage::init @ 0x10065d647\n// > ColorSelectPopup::init @ 0x10072600e\n// > FRequestProfilePage::init @ 0x100790465\n// > OptionsLayer::createToggleButton @ 0x10079ad81\n// > MoreOptionsLayer::addToggle @ 0x10079cdf3\n// > VideoOptionsLayer::createToggleButton @ 0x1007a0028\n// > MoreVideoOptionsLayer::addToggle @ 0x1007a1713\n// > ParentalOptionsLayer::addToggle @ 0x1007a3c13\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 CCMenuItemToggler::setSizeMult(CCMenuItemToggler *a1, float a2)\n{\n  _BOOL4 m_toggled; // r14d\n  __int64 v4; // rdi\n  __int64 v5; // rax\n  _BYTE v6[8]; // [rsp+Ch] [rbp-24h] BYREF\n  float v7[7]; // [rsp+14h] [rbp-1Ch] BYREF\n\n  v7[2] = a2;\n  CCMenuItemSpriteExtra::setSizeMult(a1->m_offButton, a2);\n  CCMenuItemSpriteExtra::setSizeMult(a1->m_onButton, a2);\n  m_toggled = a1->m_toggled;\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_offButton->setVisible)(a1->m_offButton, !a1->m_toggled);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BOOL4))a1->m_onButton->setVisible)(a1->m_onButton, m_toggled);\n  v4 = *((_QWORD *)&a1->m_offButton + a1->m_toggled);\n  v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 312LL))(v4);\n  sub_10028CFC0(v7, v5);\n  ((void (__fastcall *)(CCMenuItemToggler *, float *))a1->setContentSize)(a1, v7);\n  sub_10028CBE0(v6, v7[0] * 0.5, 0.5 * v7[1]);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *))a1->m_offButton->setPosition)(a1->m_offButton, v6);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *))a1->m_onButton->setPosition)(a1->m_onButton, v6);\n}", "assembly": "; \n; CCMenuItemToggler::setSizeMult from 0x100059d40 to 0x100059e2a (234 bytes)\n; \n; 44 xrefs:\n; > EditorUI::setupCreateMenu @ 0x10002a40a\n; > AccountLayer::createToggleButton @ 0x1000cd015\n; > CustomizeObjectLayer::createToggleButton @ 0x1001f8f31\n; > MessagesProfilePage::init @ 0x10022e037\n; > LevelCell::loadFromLevel @ 0x1002448a0\n; > GJRequestCell::loadFromScore @ 0x10024c8c0\n; > GJMessageCell::loadFromMessage @ 0x10024d1db\n; > LevelSettingsLayer::createToggleButton @ 0x10026e4a4\n; > ShareLevelSettingsLayer::init @ 0x100282a89\n; > ShareLevelSettingsLayer::init @ 0x100282d14\n; > CollisionBlockPopup::createToggleButton @ 0x100286ea0\n; > GJOptionsLayer::addToggleInternal @ 0x10029c8a8\n; > GJAccountSettingsLayer::createToggleButton @ 0x1002a12fa\n; > GameOptionsLayer::setupOptions @ 0x1002b1619\n; > GJGarageLayer::setupIconSelect @ 0x10036b631\n; > GJGarageLayer::setupIconSelect @ 0x10036b69c\n; > GJGarageLayer::setupIconSelect @ 0x10036b70a\n; > GJGarageLayer::setupIconSelect @ 0x10036b778\n; > GJGarageLayer::setupIconSelect @ 0x10036b7e6\n; > GJGarageLayer::setupIconSelect @ 0x10036b854\n; > GJGarageLayer::setupIconSelect @ 0x10036b8c2\n; > GJGarageLayer::setupIconSelect @ 0x10036b930\n; > GJGarageLayer::setupIconSelect @ 0x10036b99e\n; > GJGarageLayer::setupIconSelect @ 0x10036ba0c\n; > GJGarageLayer::setupIconSelect @ 0x10036ba7a\n; > SupportLayer::createToggleButton @ 0x10039a3a1\n; > PauseLayer::createToggleButton @ 0x1003d76d4\n; > LevelBrowserLayer::init @ 0x10048bdca\n; > GameToolbox::createToggleButton @ 0x1004eeec2\n; > LeaderboardsLayer::setupTabs @ 0x100512f8b\n; > LeaderboardsLayer::setupTabs @ 0x100513047\n; > LeaderboardsLayer::setupTabs @ 0x100513103\n; > LeaderboardsLayer::setupTabs @ 0x1005131ba\n; > ColorSelectLiveOverlay::createToggleButton @ 0x10056a270\n; > ShareCommentLayer::init @ 0x1005e00cc\n; > MoreSearchLayer::createToggleButton @ 0x10062e581\n; > CharacterColorPage::init @ 0x10065d647\n; > ColorSelectPopup::init @ 0x10072600e\n; > FRequestProfilePage::init @ 0x100790465\n; > OptionsLayer::createToggleButton @ 0x10079ad81\n; > MoreOptionsLayer::addToggle @ 0x10079cdf3\n; > VideoOptionsLayer::createToggleButton @ 0x1007a0028\n; > MoreVideoOptionsLayer::addToggle @ 0x1007a1713\n; > ParentalOptionsLayer::addToggle @ 0x1007a3c13\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, 0x100059d40\nmov     rbp, rsp                                                       ; +0x1, 0x100059d41\npush    r14                                                            ; +0x4, 0x100059d44\npush    rbx                                                            ; +0x6, 0x100059d46\nsub     rsp, 20h                                                       ; +0x7, 0x100059d47\nmovss   [rbp+var_14], xmm0                                             ; +0xb, 0x100059d4b\nmov     rbx, rdi                                                       ; +0x10, 0x100059d50\nmov     rdi, [rdi+178h]                                                ; +0x13, 0x100059d53\ncall    CCMenuItemSpriteExtra__setSizeMult                             ; +0x1a, 0x100059d5a\nmov     rdi, [rbx+180h]                                                ; +0x1f, 0x100059d5f\nmovss   xmm0, [rbp+var_14]                                             ; +0x26, 0x100059d66\ncall    CCMenuItemSpriteExtra__setSizeMult                             ; +0x2b, 0x100059d6b\nmovzx   r14d, byte ptr [rbx+188h]                                      ; +0x30, 0x100059d70\nmov     rdi, [rbx+178h]                                                ; +0x38, 0x100059d78\nmov     eax, r14d                                                      ; +0x3f, 0x100059d7f\nxor     al, 1                                                          ; +0x42, 0x100059d82\nmov     rcx, [rdi]                                                     ; +0x44, 0x100059d84\nmovzx   esi, al                                                        ; +0x47, 0x100059d87\ncall    qword ptr [rcx+148h]                                           ; +0x4a, 0x100059d8a\nmov     rdi, [rbx+180h]                                                ; +0x50, 0x100059d90\nmov     rax, [rdi]                                                     ; +0x57, 0x100059d97\nmov     esi, r14d                                                      ; +0x5a, 0x100059d9a\ncall    qword ptr [rax+148h]                                           ; +0x5d, 0x100059d9d\nmovzx   eax, byte ptr [rbx+188h]                                       ; +0x63, 0x100059da3\nmov     rdi, [rbx+rax*8+178h]                                          ; +0x6a, 0x100059daa\nmov     rax, [rdi]                                                     ; +0x72, 0x100059db2\ncall    qword ptr [rax+138h]                                           ; +0x75, 0x100059db5\nlea     r14, [rbp+var_1C]                                              ; +0x7b, 0x100059dbb\nmov     rdi, r14                                                       ; +0x7f, 0x100059dbf\nmov     rsi, rax                                                       ; +0x82, 0x100059dc2\ncall    sub_10028CFC0                                                  ; +0x85, 0x100059dc5\nmov     rax, [rbx]                                                     ; +0x8a, 0x100059dca\nmov     rdi, rbx                                                       ; +0x8d, 0x100059dcd\nmov     rsi, r14                                                       ; +0x90, 0x100059dd0\ncall    qword ptr [rax+130h]                                           ; +0x93, 0x100059dd3\nmovss   xmm1, cs:dword_100814FA8                                       ; +0x99, 0x100059dd9\nmovss   xmm0, [rbp+var_1C]                                             ; +0xa1, 0x100059de1\nmulss   xmm0, xmm1                                                     ; +0xa6, 0x100059de6\nmulss   xmm1, [rbp+var_18]                                             ; +0xaa, 0x100059dea\nlea     r14, [rbp+var_24]                                              ; +0xaf, 0x100059def\nmov     rdi, r14                                                       ; +0xb3, 0x100059df3\ncall    sub_10028CBE0                                                  ; +0xb6, 0x100059df6\nmov     rdi, [rbx+178h]                                                ; +0xbb, 0x100059dfb\nmov     rax, [rdi]                                                     ; +0xc2, 0x100059e02\nmov     rsi, r14                                                       ; +0xc5, 0x100059e05\ncall    qword ptr [rax+0B8h]                                           ; +0xc8, 0x100059e08\nmov     rdi, [rbx+180h]                                                ; +0xce, 0x100059e0e\nmov     rax, [rdi]                                                     ; +0xd5, 0x100059e15\nmov     rsi, r14                                                       ; +0xd8, 0x100059e18\ncall    qword ptr [rax+0B8h]                                           ; +0xdb, 0x100059e1b\nadd     rsp, 20h                                                       ; +0xe1, 0x100059e21\npop     rbx                                                            ; +0xe5, 0x100059e25\npop     r14                                                            ; +0xe6, 0x100059e26\npop     rbp                                                            ; +0xe8, 0x100059e28\nretn                                                                   ; +0xe9, 0x100059e29", "xrefs": ["EditorUI::setupCreateMenu @ 0x10002a40a", "AccountLayer::createToggleButton @ 0x1000cd015", "CustomizeObjectLayer::createToggleButton @ 0x1001f8f31", "MessagesProfilePage::init @ 0x10022e037", "LevelCell::loadFromLevel @ 0x1002448a0", "GJRequestCell::loadFromScore @ 0x10024c8c0", "GJMessageCell::loadFromMessage @ 0x10024d1db", "LevelSettingsLayer::createToggleButton @ 0x10026e4a4", "ShareLevelSettingsLayer::init @ 0x100282a89", "ShareLevelSettingsLayer::init @ 0x100282d14", "CollisionBlockPopup::createToggleButton @ 0x100286ea0", "GJOptionsLayer::addToggleInternal @ 0x10029c8a8", "GJAccountSettingsLayer::createToggleButton @ 0x1002a12fa", "GameOptionsLayer::setupOptions @ 0x1002b1619", "GJGarageLayer::setupIconSelect @ 0x10036b631", "GJGarageLayer::setupIconSelect @ 0x10036b69c", "GJGarageLayer::setupIconSelect @ 0x10036b70a", "GJGarageLayer::setupIconSelect @ 0x10036b778", "GJGarageLayer::setupIconSelect @ 0x10036b7e6", "GJGarageLayer::setupIconSelect @ 0x10036b854", "GJGarageLayer::setupIconSelect @ 0x10036b8c2", "GJGarageLayer::setupIconSelect @ 0x10036b930", "GJGarageLayer::setupIconSelect @ 0x10036b99e", "GJGarageLayer::setupIconSelect @ 0x10036ba0c", "GJGarageLayer::setupIconSelect @ 0x10036ba7a", "SupportLayer::createToggleButton @ 0x10039a3a1", "PauseLayer::createToggleButton @ 0x1003d76d4", "LevelBrowserLayer::init @ 0x10048bdca", "GameToolbox::createToggleButton @ 0x1004eeec2", "LeaderboardsLayer::setupTabs @ 0x100512f8b", "LeaderboardsLayer::setupTabs @ 0x100513047", "LeaderboardsLayer::setupTabs @ 0x100513103", "LeaderboardsLayer::setupTabs @ 0x1005131ba", "ColorSelectLiveOverlay::createToggleButton @ 0x10056a270", "ShareCommentLayer::init @ 0x1005e00cc", "MoreSearchLayer::createToggleButton @ 0x10062e581", "CharacterColorPage::init @ 0x10065d647", "ColorSelectPopup::init @ 0x10072600e", "FRequestProfilePage::init @ 0x100790465", "OptionsLayer::createToggleButton @ 0x10079ad81", "MoreOptionsLayer::addToggle @ 0x10079cdf3", "VideoOptionsLayer::createToggleButton @ 0x1007a0028", "MoreVideoOptionsLayer::addToggle @ 0x1007a1713", "ParentalOptionsLayer::addToggle @ 0x1007a3c13"], "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"}