{"type": "func", "start": 4301538704, "end": 4301538900, "name": "GJTransformControl::scaleButtons", "pseudocode": "// \n// GJTransformControl::scaleButtons from 0x100644590 to 0x100644654 (196 bytes)\n// \n// 2 xrefs:\n// > EditorUI::updateZoom @ 0x1000122ae\n// > EditorUI::showTransformControl @ 0x100613605\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:34:44 +0000\n// \n\n__int64 __fastcall GJTransformControl::scaleButtons(__int64 a1, float a2)\n{\n  __int64 v2; // rax\n  unsigned int *v3; // rax\n  _QWORD *v4; // r15\n  unsigned __int64 v5; // r12\n  __int64 v6; // r14\n  float v7; // xmm0_4\n  __int64 v8; // rax\n\n  v2 = *(_QWORD *)(a1 + 512);\n  if ( v2 )\n  {\n    v3 = *(unsigned int **)(v2 + 56);\n    if ( *v3 )\n    {\n      v4 = *((_QWORD **)v3 + 2);\n      v5 = (unsigned __int64)&v4[*v3 - 1];\n      do\n      {\n        v6 = *v4;\n        if ( !*v4 )\n          break;\n        v7 = 1.0;\n        if ( (*(unsigned int (__fastcall **)(_QWORD))(*(_QWORD *)v6 + 64LL))(*v4) - 1 <= 8 )\n          v7 = *(float *)(a1 + 616);\n        (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL))(v6, v7 * (float)(0.69999999 * a2));\n        ++v4;\n      }\n      while ( (unsigned __int64)v4 <= v5 );\n    }\n  }\n  v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 512LL))(*(_QWORD *)(a1 + 528));\n  return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, a2);\n}", "assembly": "; \n; GJTransformControl::scaleButtons from 0x100644590 to 0x100644654 (196 bytes)\n; \n; 2 xrefs:\n; > EditorUI::updateZoom @ 0x1000122ae\n; > EditorUI::showTransformControl @ 0x100613605\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:34:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x100644590\nmov     rbp, rsp                                                       ; +0x1, 0x100644591\npush    r15                                                            ; +0x4, 0x100644594\npush    r14                                                            ; +0x6, 0x100644596\npush    r12                                                            ; +0x8, 0x100644598\npush    rbx                                                            ; +0xa, 0x10064459a\nsub     rsp, 10h                                                       ; +0xb, 0x10064459b\nmovss   [rbp+var_24], xmm0                                             ; +0xf, 0x10064459f\nmov     rbx, rdi                                                       ; +0x14, 0x1006445a4\nmov     rax, [rdi+200h]                                                ; +0x17, 0x1006445a7\ntest    rax, rax                                                       ; +0x1e, 0x1006445ae\njz      short loc_100644624                                            ; +0x21, 0x1006445b1\nmov     rax, [rax+38h]                                                 ; +0x23, 0x1006445b3\nmov     ecx, [rax]                                                     ; +0x27, 0x1006445b7\ntest    rcx, rcx                                                       ; +0x29, 0x1006445b9\njz      short loc_100644624                                            ; +0x2c, 0x1006445bc\nmov     r15, [rax+10h]                                                 ; +0x2e, 0x1006445be\nlea     r12, [r15+rcx*8]                                               ; +0x32, 0x1006445c2\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0x36, 0x1006445c6\nmovss   xmm0, cs:dword_100A0374C                                       ; +0x3a, 0x1006445ca\nmulss   xmm0, [rbp+var_24]                                             ; +0x42, 0x1006445d2\nmovss   [rbp+var_28], xmm0                                             ; +0x47, 0x1006445d7\njmp     short loc_1006445FA                                            ; +0x4c, 0x1006445dc\nalign 20h                                                              ; +0x4e, 0x1006445de\nmulss   xmm0, [rbp+var_28]                                             ; +0x50, 0x1006445e0\nmov     rax, [r14]                                                     ; +0x55, 0x1006445e5\nmov     rdi, r14                                                       ; +0x58, 0x1006445e8\ncall    qword ptr [rax+0A0h]                                           ; +0x5b, 0x1006445eb\nadd     r15, 8                                                         ; +0x61, 0x1006445f1\ncmp     r15, r12                                                       ; +0x65, 0x1006445f5\nja      short loc_100644624                                            ; +0x68, 0x1006445f8\nmov     r14, [r15]                                                     ; +0x6a, 0x1006445fa\ntest    r14, r14                                                       ; +0x6d, 0x1006445fd\njz      short loc_100644624                                            ; +0x70, 0x100644600\nmov     rax, [r14]                                                     ; +0x72, 0x100644602\nmov     rdi, r14                                                       ; +0x75, 0x100644605\ncall    qword ptr [rax+40h]                                            ; +0x78, 0x100644608\ndec     eax                                                            ; +0x7b, 0x10064460b\nmovss   xmm0, cs:alpha                                                 ; +0x7d, 0x10064460d\ncmp     eax, 8                                                         ; +0x85, 0x100644615\nja      short loc_1006445E0                                            ; +0x88, 0x100644618\nmovss   xmm0, dword ptr [rbx+268h]                                     ; +0x8a, 0x10064461a\njmp     short loc_1006445E0                                            ; +0x92, 0x100644622\nmov     rdi, [rbx+210h]                                                ; +0x94, 0x100644624\nmov     rax, [rdi]                                                     ; +0x9b, 0x10064462b\ncall    qword ptr [rax+200h]                                           ; +0x9e, 0x10064462e\nmov     rcx, [rax]                                                     ; +0xa4, 0x100644634\nmov     rcx, [rcx+0A0h]                                                ; +0xa7, 0x100644637\nmov     rdi, rax                                                       ; +0xae, 0x10064463e\nmovss   xmm0, [rbp+var_24]                                             ; +0xb1, 0x100644641\nadd     rsp, 10h                                                       ; +0xb6, 0x100644646\npop     rbx                                                            ; +0xba, 0x10064464a\npop     r12                                                            ; +0xbb, 0x10064464b\npop     r14                                                            ; +0xbd, 0x10064464d\npop     r15                                                            ; +0xbf, 0x10064464f\npop     rbp                                                            ; +0xc1, 0x100644651\njmp     rcx                                                            ; +0xc2, 0x100644652", "xrefs": ["EditorUI::updateZoom @ 0x1000122ae", "EditorUI::showTransformControl @ 0x100613605"], "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"}