{"type": "func", "start": 5373393936, "end": 5373394044, "name": "SetupTriggerPopup::getTruncatedValue", "pseudocode": "// \n// SetupTriggerPopup::getTruncatedValue from 0x140477c10 to 0x140477c7c (108 bytes)\n// \n// 3 xrefs:\n// > SetupTriggerPopup::textChanged @ 0x140475978\n// > SetupTriggerPopup::triggerSliderChanged @ 0x140475d95\n// > <???> @ 0x1406db798\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\nfloat SetupTriggerPopup::getTruncatedValue(SetupTriggerPopup *a1, float a2, int a3)\n{\n  float v4; // xmm6_4\n\n  if ( a3 <= 0 )\n    return (float)(int)a2;\n  v4 = 10.0;\n  if ( a3 > 1 )\n    v4 = powf(10.0, (float)a3);\n  return roundf(v4 * a2) / v4;\n}", "assembly": "; \n; SetupTriggerPopup::getTruncatedValue from 0x140477c10 to 0x140477c7c (108 bytes)\n; \n; 3 xrefs:\n; > SetupTriggerPopup::textChanged @ 0x140475978\n; > SetupTriggerPopup::triggerSliderChanged @ 0x140475d95\n; > <???> @ 0x1406db798\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\nsub     rsp, 48h                                                       ; +0x0, 0x140477c10\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x4, 0x140477c14\nmovaps  xmm7, xmm1                                                     ; +0x9, 0x140477c19\ntest    r8d, r8d                                                       ; +0xc, 0x140477c1c\njg      short loc_140477C36                                            ; +0xf, 0x140477c1f\ncvttss2si eax, xmm7                                                    ; +0x11, 0x140477c21\nmovd    xmm0, eax                                                      ; +0x15, 0x140477c25\ncvtdq2ps xmm0, xmm0                                                    ; +0x19, 0x140477c29\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x1c, 0x140477c2c\nadd     rsp, 48h                                                       ; +0x21, 0x140477c31\nretn                                                                   ; +0x25, 0x140477c35\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x26, 0x140477c36\nmovss   xmm6, cs:flt_14062307C                                         ; +0x2b, 0x140477c3b\ncmp     r8d, 1                                                         ; +0x33, 0x140477c43\njle     short loc_140477C5C                                            ; +0x37, 0x140477c47\nmovd    xmm1, r8d                                                      ; +0x39, 0x140477c49\nmovaps  xmm0, xmm6; X                                                  ; +0x3e, 0x140477c4e\ncvtdq2ps xmm1, xmm1; Y                                                 ; +0x41, 0x140477c51\ncall    powf                                                           ; +0x44, 0x140477c54\nmovaps  xmm6, xmm0                                                     ; +0x49, 0x140477c59\nmovaps  xmm0, xmm6                                                     ; +0x4c, 0x140477c5c\nmulss   xmm0, xmm7; X                                                  ; +0x4f, 0x140477c5f\ncall    cs:__imp_roundf                                                ; +0x53, 0x140477c63\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x59, 0x140477c69\ndivss   xmm0, xmm6                                                     ; +0x5e, 0x140477c6e\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x62, 0x140477c72\nadd     rsp, 48h                                                       ; +0x67, 0x140477c77\nretn                                                                   ; +0x6b, 0x140477c7b", "xrefs": ["SetupTriggerPopup::textChanged @ 0x140475978", "SetupTriggerPopup::triggerSliderChanged @ 0x140475d95", "<???> @ 0x1406db798"], "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"}