{"type": "func", "start": 5373200512, "end": 5373200638, "name": "SetupSFXPopup::updateLength", "pseudocode": "// \n// SetupSFXPopup::updateLength from 0x140448880 to 0x1404488fe (126 bytes)\n// \n// 2 xrefs:\n// > SetupSFXPopup::valueDidChange @ 0x140448de4\n// > <???> @ 0x1406da664\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\n// Hidden C++ exception states: #wind=1\nvoid SetupSFXPopup::updateLength(SetupSFXPopup *a1)\n{\n  float v2; // xmm0_4\n  float v3; // xmm0_4\n  CustomSFXWidget *m_sfxWidget; // rcx\n  FMODAudioEngine *v5; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_sfxWidget )\n  {\n    if ( !qword_1406C2E88 )\n    {\n      v5 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    }\n    v2 = a1->getValue(a1, 404);\n    v3 = FMODAudioEngine::pitchForIdx((int)v2);\n    m_sfxWidget = a1->m_sfxWidget;\n    m_sfxWidget->m_lengthMod = v3;\n    CustomSFXWidget::updateSFXInfo(m_sfxWidget);\n  }\n}", "assembly": "; \n; SetupSFXPopup::updateLength from 0x140448880 to 0x1404488fe (126 bytes)\n; \n; 2 xrefs:\n; > SetupSFXPopup::valueDidChange @ 0x140448de4\n; > <???> @ 0x1406da664\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    rbx                                                            ; +0x0, 0x140448880\nsub     rsp, 20h                                                       ; +0x2, 0x140448882\nmov     rbx, rcx                                                       ; +0x6, 0x140448886\ncmp     qword ptr [rcx+3C8h], 0                                        ; +0x9, 0x140448889\njz      short loc_1404488F8                                            ; +0x11, 0x140448891\ncmp     cs:qword_1406C2E88, 0                                          ; +0x13, 0x140448893\njnz     short loc_1404488C5                                            ; +0x1b, 0x14044889b\nmov     ecx, 888h; Size                                                ; +0x1d, 0x14044889d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x1404488a2\nmov     [rsp+28h+arg_0], rax                                           ; +0x27, 0x1404488a7\nmov     rcx, rax                                                       ; +0x2c, 0x1404488ac\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2f, 0x1404488af\nnop                                                                    ; +0x34, 0x1404488b4\nmov     cs:qword_1406C2E88, rax                                        ; +0x35, 0x1404488b5\nmov     rdx, [rax]                                                     ; +0x3c, 0x1404488bc\nmov     rcx, rax                                                       ; +0x3f, 0x1404488bf\ncall    qword ptr [rdx+48h]                                            ; +0x42, 0x1404488c2\nmov     rax, [rbx]                                                     ; +0x45, 0x1404488c5\nmov     edx, 194h                                                      ; +0x48, 0x1404488c8\nmov     rcx, rbx                                                       ; +0x4d, 0x1404488cd\ncall    qword ptr [rax+470h]                                           ; +0x50, 0x1404488d0\ncvttss2si ecx, xmm0                                                    ; +0x56, 0x1404488d6\ncall    FMODAudioEngine__pitchForIdx                                   ; +0x5a, 0x1404488da\nmov     rcx, [rbx+3C8h]                                                ; +0x5f, 0x1404488df\nmovss   dword ptr [rcx+1CCh], xmm0                                     ; +0x66, 0x1404488e6\nadd     rsp, 20h                                                       ; +0x6e, 0x1404488ee\npop     rbx                                                            ; +0x72, 0x1404488f2\njmp     CustomSFXWidget__updateSFXInfo                                 ; +0x73, 0x1404488f3\nadd     rsp, 20h                                                       ; +0x78, 0x1404488f8\npop     rbx                                                            ; +0x7c, 0x1404488fc\nretn                                                                   ; +0x7d, 0x1404488fd", "xrefs": ["SetupSFXPopup::valueDidChange @ 0x140448de4", "<???> @ 0x1406da664"], "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"}