{"type": "func", "start": 4299973872, "end": 4299974175, "name": "GJUINode::updateButtonScale", "pseudocode": "// \n// GJUINode::updateButtonScale from 0x1004c64f0 to 0x1004c661f (303 bytes)\n// \n// 7 xrefs:\n// > UIOptionsLayer::valueDidChange @ 0x1002a2578\n// > UIOptionsLayer::valueDidChange @ 0x1002a2694\n// > UIOptionsLayer::valueDidChange @ 0x1002a2807\n// > UIOptionsLayer::valueDidChange @ 0x1002a2856\n// > GJUINode::init @ 0x1004c6137\n// > GJUINode::loadFromConfig @ 0x1004c68b0\n// > TouchControlEditLayer::valueDidChange @ 0x10097a601\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:31:07 +0000\n// \n\n__int64 __fastcall GJUINode::updateButtonScale(__int64 a1, float a2)\n{\n  __int64 *v3; // rdi\n  __int64 v4; // rax\n  __int64 result; // rax\n  __int64 v6; // rdi\n  __int64 *v7; // rdi\n  __int64 v8; // rax\n  float v9; // xmm0_4\n  float *v10; // r14\n  __int64 v11; // rbx\n  float v12; // [rsp+8h] [rbp-28h] BYREF\n  float v13; // [rsp+10h] [rbp-20h]\n  float v14; // [rsp+14h] [rbp-1Ch]\n\n  if ( a2 <= 0.1 )\n    a2 = 0.1;\n  v3 = *(__int64 **)(a1 + 320);\n  v4 = *v3;\n  v14 = a2;\n  result = (*(__int64 (__fastcall **)(__int64 *))(v4 + 160))(v3);\n  v6 = *(_QWORD *)(a1 + 328);\n  if ( v6 )\n  {\n    result = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL))(v6, v14);\n    if ( *(_QWORD *)(a1 + 328) )\n    {\n      v7 = *(__int64 **)(a1 + 320);\n      v8 = *v7;\n      if ( *(_BYTE *)(a1 + 381) == 1 )\n      {\n        return (*(__int64 (__fastcall **)(__int64 *, _QWORD *))(v8 + 184))(v7, &qword_100BE42F8);\n      }\n      else\n      {\n        v9 = (*(float (**)(void))(v8 + 168))();\n        v10 = *(float **)(a1 + 320);\n        v13 = v9 * v10[108];\n        v14 = *(float *)(a1 + 372);\n        sub_100278250(&v12, (float)(-0.5 * v13) - v14, 0.0);\n        (*(void (__fastcall **)(float *, float *))(*(_QWORD *)v10 + 184LL))(v10, &v12);\n        v11 = *(_QWORD *)(a1 + 328);\n        sub_100278250(&v12, (float)(v13 * 0.5) + v14, 0.0);\n        return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, &v12);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJUINode::updateButtonScale from 0x1004c64f0 to 0x1004c661f (303 bytes)\n; \n; 7 xrefs:\n; > UIOptionsLayer::valueDidChange @ 0x1002a2578\n; > UIOptionsLayer::valueDidChange @ 0x1002a2694\n; > UIOptionsLayer::valueDidChange @ 0x1002a2807\n; > UIOptionsLayer::valueDidChange @ 0x1002a2856\n; > GJUINode::init @ 0x1004c6137\n; > GJUINode::loadFromConfig @ 0x1004c68b0\n; > TouchControlEditLayer::valueDidChange @ 0x10097a601\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:31:07 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004c64f0\nmov     rbp, rsp                                                       ; +0x1, 0x1004c64f1\npush    r15                                                            ; +0x4, 0x1004c64f4\npush    r14                                                            ; +0x6, 0x1004c64f6\npush    rbx                                                            ; +0x8, 0x1004c64f8\nsub     rsp, 18h                                                       ; +0x9, 0x1004c64f9\nmov     rbx, rdi                                                       ; +0xd, 0x1004c64fd\ncvtss2sd xmm1, xmm0                                                    ; +0x10, 0x1004c6500\nucomisd xmm1, cs:qword_100A0A888                                       ; +0x14, 0x1004c6504\nja      short loc_1004C6516                                            ; +0x1c, 0x1004c650c\nmovss   xmm0, cs:dword_100A03744                                       ; +0x1e, 0x1004c650e\nmov     rdi, [rbx+140h]                                                ; +0x26, 0x1004c6516\nmov     rax, [rdi]                                                     ; +0x2d, 0x1004c651d\nmovss   [rbp+var_1C], xmm0                                             ; +0x30, 0x1004c6520\ncall    qword ptr [rax+0A0h]                                           ; +0x35, 0x1004c6525\nmov     rdi, [rbx+148h]                                                ; +0x3b, 0x1004c652b\ntest    rdi, rdi                                                       ; +0x42, 0x1004c6532\njz      loc_1004C6614                                                  ; +0x45, 0x1004c6535\nmov     rax, [rdi]                                                     ; +0x4b, 0x1004c653b\nmovss   xmm0, [rbp+var_1C]                                             ; +0x4e, 0x1004c653e\ncall    qword ptr [rax+0A0h]                                           ; +0x53, 0x1004c6543\ncmp     qword ptr [rbx+148h], 0                                        ; +0x59, 0x1004c6549\njz      loc_1004C6614                                                  ; +0x61, 0x1004c6551\nmov     rdi, [rbx+140h]                                                ; +0x67, 0x1004c6557\nmov     rax, [rdi]                                                     ; +0x6e, 0x1004c655e\ncmp     byte ptr [rbx+17Dh], 1                                         ; +0x71, 0x1004c6561\njnz     short loc_1004C6584                                            ; +0x78, 0x1004c6568\nmov     rax, [rax+0B8h]                                                ; +0x7a, 0x1004c656a\nlea     rsi, qword_100BE42F8                                           ; +0x81, 0x1004c6571\nadd     rsp, 18h                                                       ; +0x88, 0x1004c6578\npop     rbx                                                            ; +0x8c, 0x1004c657c\npop     r14                                                            ; +0x8d, 0x1004c657d\npop     r15                                                            ; +0x8f, 0x1004c657f\npop     rbp                                                            ; +0x91, 0x1004c6581\njmp     rax                                                            ; +0x92, 0x1004c6582\ncall    qword ptr [rax+0A8h]                                           ; +0x94, 0x1004c6584\nmovaps  xmm1, xmm0                                                     ; +0x9a, 0x1004c658a\nmov     r14, [rbx+140h]                                                ; +0x9d, 0x1004c658d\nmulss   xmm1, dword ptr [r14+1B0h]                                     ; +0xa4, 0x1004c6594\nmovss   [rbp+var_20], xmm1                                             ; +0xad, 0x1004c659d\nmovss   xmm2, dword ptr [rbx+174h]                                     ; +0xb2, 0x1004c65a2\nmovss   [rbp+var_1C], xmm2                                             ; +0xba, 0x1004c65aa\nmovss   xmm0, cs:dword_100A037A0                                       ; +0xbf, 0x1004c65af\nmulss   xmm0, xmm1                                                     ; +0xc7, 0x1004c65b7\nsubss   xmm0, xmm2                                                     ; +0xcb, 0x1004c65bb\nlea     r15, [rbp+var_28]                                              ; +0xcf, 0x1004c65bf\nxorps   xmm1, xmm1                                                     ; +0xd3, 0x1004c65c3\nmov     rdi, r15                                                       ; +0xd6, 0x1004c65c6\ncall    sub_100278250                                                  ; +0xd9, 0x1004c65c9\nmov     rax, [r14]                                                     ; +0xde, 0x1004c65ce\nmov     rdi, r14                                                       ; +0xe1, 0x1004c65d1\nmov     rsi, r15                                                       ; +0xe4, 0x1004c65d4\ncall    qword ptr [rax+0B8h]                                           ; +0xe7, 0x1004c65d7\nmov     rbx, [rbx+148h]                                                ; +0xed, 0x1004c65dd\nmovss   xmm0, [rbp+var_20]                                             ; +0xf4, 0x1004c65e4\nmulss   xmm0, cs:dword_100A03578                                       ; +0xf9, 0x1004c65e9\naddss   xmm0, [rbp+var_1C]                                             ; +0x101, 0x1004c65f1\nlea     r14, [rbp+var_28]                                              ; +0x106, 0x1004c65f6\nxorps   xmm1, xmm1                                                     ; +0x10a, 0x1004c65fa\nmov     rdi, r14                                                       ; +0x10d, 0x1004c65fd\ncall    sub_100278250                                                  ; +0x110, 0x1004c6600\nmov     rax, [rbx]                                                     ; +0x115, 0x1004c6605\nmov     rdi, rbx                                                       ; +0x118, 0x1004c6608\nmov     rsi, r14                                                       ; +0x11b, 0x1004c660b\ncall    qword ptr [rax+0B8h]                                           ; +0x11e, 0x1004c660e\nadd     rsp, 18h                                                       ; +0x124, 0x1004c6614\npop     rbx                                                            ; +0x128, 0x1004c6618\npop     r14                                                            ; +0x129, 0x1004c6619\npop     r15                                                            ; +0x12b, 0x1004c661b\npop     rbp                                                            ; +0x12d, 0x1004c661d\nretn                                                                   ; +0x12e, 0x1004c661e", "xrefs": ["UIOptionsLayer::valueDidChange @ 0x1002a2578", "UIOptionsLayer::valueDidChange @ 0x1002a2694", "UIOptionsLayer::valueDidChange @ 0x1002a2807", "UIOptionsLayer::valueDidChange @ 0x1002a2856", "GJUINode::init @ 0x1004c6137", "GJUINode::loadFromConfig @ 0x1004c68b0", "TouchControlEditLayer::valueDidChange @ 0x10097a601"], "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"}