{"type": "func", "start": 4299090008, "end": 4299090168, "name": "GJTransformControl::scaleButtons", "pseudocode": "// \n// GJTransformControl::scaleButtons from 0x1003ee858 to 0x1003ee8f8 (160 bytes)\n// \n// 3 xrefs:\n// > EditorUI::updateZoom @ 0x1003ee83c\n// > EditorUI::activateTransformControl @ 0x1003efe98\n// > GJTransformControl::init @ 0x1003fbaf8\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 GJTransformControl::scaleButtons(GJTransformControl *a1, float a2)\n{\n  cocos2d::CCArray *m_warpSprites; // x8\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  cocos2d::CCObject **arr; // x20\n  unsigned __int64 v8; // x21\n  __int64 v9; // x0\n\n  m_warpSprites = a1->m_warpSprites;\n  if ( m_warpSprites )\n  {\n    data = m_warpSprites->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      v8 = (unsigned __int64)&arr[num - 1];\n      do\n      {\n        if ( !*arr )\n          break;\n        ((void (__fastcall *)(cocos2d::CCObject *, float))(*arr)->__vftable[2].copyWithZone)(\n          *arr,\n          (float)(a2 * 0.7) * a1->m_buttonScale);\n        ++arr;\n      }\n      while ( (unsigned __int64)arr <= v8 );\n    }\n  }\n  v9 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_warpLockButton->getNormalImage)(a1->m_warpLockButton);\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 160LL))(v9, a2);\n}", "assembly": "; \n; GJTransformControl::scaleButtons from 0x1003ee858 to 0x1003ee8f8 (160 bytes)\n; \n; 3 xrefs:\n; > EditorUI::updateZoom @ 0x1003ee83c\n; > EditorUI::activateTransformControl @ 0x1003efe98\n; > GJTransformControl::init @ 0x1003fbaf8\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\nSTP             D9, D8, [SP,#-0x10+var_30]!                            ; +0x0, 0x1003ee858\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1003ee85c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003ee860\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003ee864\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003ee868\nFMOV            S8, S0                                                 ; +0x14, 0x1003ee86c\nMOV             X19, X0                                                ; +0x18, 0x1003ee870\nLDR             X8, [X0,#0x1F8]                                        ; +0x1c, 0x1003ee874\nCBZ             X8, loc_1003EE8C8                                      ; +0x20, 0x1003ee878\nLDR             X9, [X8,#0x38]                                         ; +0x24, 0x1003ee87c\nLDR             W8, [X9]                                               ; +0x28, 0x1003ee880\nCBZ             W8, loc_1003EE8C8                                      ; +0x2c, 0x1003ee884\nLDR             X20, [X9,#0x10]                                        ; +0x30, 0x1003ee888\nADD             X8, X20, X8,LSL#3                                      ; +0x34, 0x1003ee88c\nSUB             X21, X8, #8                                            ; +0x38, 0x1003ee890\nADRP            X8, #dword_100635380@PAGE                              ; +0x3c, 0x1003ee894\nLDR             S0, [X8,#dword_100635380@PAGEOFF]                      ; +0x40, 0x1003ee898\nFMUL            S9, S8, S0                                             ; +0x44, 0x1003ee89c\nLDR             X0, [X20]                                              ; +0x48, 0x1003ee8a0\nCBZ             X0, loc_1003EE8C8                                      ; +0x4c, 0x1003ee8a4\nLDR             S0, [X19,#0x228]                                       ; +0x50, 0x1003ee8a8\nFMUL            S0, S9, S0                                             ; +0x54, 0x1003ee8ac\nLDR             X8, [X0]                                               ; +0x58, 0x1003ee8b0\nLDR             X8, [X8,#0xA0]                                         ; +0x5c, 0x1003ee8b4\nBLR             X8                                                     ; +0x60, 0x1003ee8b8\nADD             X20, X20, #8                                           ; +0x64, 0x1003ee8bc\nCMP             X20, X21                                               ; +0x68, 0x1003ee8c0\nB.LS            loc_1003EE8A0                                          ; +0x6c, 0x1003ee8c4\nLDR             X0, [X19,#0x208]                                       ; +0x70, 0x1003ee8c8\nLDR             X8, [X0]                                               ; +0x74, 0x1003ee8cc\nLDR             X8, [X8,#0x420]                                        ; +0x78, 0x1003ee8d0\nBLR             X8                                                     ; +0x7c, 0x1003ee8d4\nLDR             X8, [X0]                                               ; +0x80, 0x1003ee8d8\nLDR             X1, [X8,#0xA0]                                         ; +0x84, 0x1003ee8dc\nFMOV            S0, S8                                                 ; +0x88, 0x1003ee8e0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8c, 0x1003ee8e4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x90, 0x1003ee8e8\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x94, 0x1003ee8ec\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0x98, 0x1003ee8f0\nBR              X1                                                     ; +0x9c, 0x1003ee8f4", "xrefs": ["EditorUI::updateZoom @ 0x1003ee83c", "EditorUI::activateTransformControl @ 0x1003efe98", "GJTransformControl::init @ 0x1003fbaf8"], "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"}