{"type": "func", "start": 4299069488, "end": 4299069606, "name": "FMODAudioEngine::getMusicTime", "pseudocode": "// \n// FMODAudioEngine::getMusicTime from 0x1003e9830 to 0x1003e98a6 (118 bytes)\n// \n// 1 xrefs:\n// > DrawGridLayer::update @ 0x10010109d\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 __fastcall FMODAudioEngine::getMusicTime(FMODAudioEngine *a1, int a2)\n{\n  __int64 v2; // rax\n  FMOD::Channel *v3; // rax\n  float v4; // xmm0_4\n  int *v6; // [rsp+0h] [rbp-20h] BYREF\n  int v7; // [rsp+Ch] [rbp-14h] BYREF\n  unsigned int v8; // [rsp+10h] [rbp-10h] BYREF\n  _BYTE v9[9]; // [rsp+17h] [rbp-9h] BYREF\n\n  v7 = a2;\n  v8 = 0;\n  v6 = &v7;\n  v2 = sub_1003EF570(&a1->m_fmodMusic, &v7, &unk_10081B0A2, &v6, v9);\n  v3 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(v2 + 24));\n  if ( v3 )\n  {\n    FMOD::Channel::getPosition(v3, &v8, 1u);\n    v4 = (float)(int)v8;\n  }\n  else\n  {\n    v4 = 0.0;\n  }\n  return v4 / 1000.0;\n}", "assembly": "; \n; FMODAudioEngine::getMusicTime from 0x1003e9830 to 0x1003e98a6 (118 bytes)\n; \n; 1 xrefs:\n; > DrawGridLayer::update @ 0x10010109d\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    rbp                                                            ; +0x0, 0x1003e9830\nmov     rbp, rsp                                                       ; +0x1, 0x1003e9831\npush    rbx                                                            ; +0x4, 0x1003e9834\nsub     rsp, 18h                                                       ; +0x5, 0x1003e9835\nmov     rbx, rdi                                                       ; +0x9, 0x1003e9839\nmov     [rbp+var_14], esi                                              ; +0xc, 0x1003e983c\nmov     [rbp+var_10], 0                                                ; +0xf, 0x1003e983f\nadd     rdi, 140h                                                      ; +0x16, 0x1003e9846\nlea     rsi, [rbp+var_14]                                              ; +0x1d, 0x1003e984d\nmov     [rbp+var_20], rsi                                              ; +0x21, 0x1003e9851\nlea     rdx, unk_10081B0A2                                             ; +0x25, 0x1003e9855\nlea     rcx, [rbp+var_20]                                              ; +0x2c, 0x1003e985c\nlea     r8, [rbp+var_9]                                                ; +0x30, 0x1003e9860\ncall    sub_1003EF570                                                  ; +0x34, 0x1003e9864\nmov     esi, [rax+18h]                                                 ; +0x39, 0x1003e9869\nmov     rdi, rbx                                                       ; +0x3c, 0x1003e986c\ncall    FMODAudioEngine__channelForChannelID                           ; +0x3f, 0x1003e986f\ntest    rax, rax                                                       ; +0x44, 0x1003e9874\njz      short loc_1003E9894                                            ; +0x47, 0x1003e9877\nlea     rsi, [rbp+var_10]; unsigned int *                              ; +0x49, 0x1003e9879\nmov     rdi, rax; this                                                 ; +0x4d, 0x1003e987d\nmov     edx, 1; unsigned int                                           ; +0x50, 0x1003e9880\ncall    __ZN4FMOD7Channel11getPositionEPjj; FMOD::Channel::getPosition(uint *,uint) ; +0x55, 0x1003e9885\nmov     eax, [rbp+var_10]                                              ; +0x5a, 0x1003e988a\ncvtsi2ss xmm0, rax                                                     ; +0x5d, 0x1003e988d\njmp     short loc_1003E9897                                            ; +0x62, 0x1003e9892\nxorps   xmm0, xmm0                                                     ; +0x64, 0x1003e9894\ndivss   xmm0, cs:dword_1008152B8                                       ; +0x67, 0x1003e9897\nadd     rsp, 18h                                                       ; +0x6f, 0x1003e989f\npop     rbx                                                            ; +0x73, 0x1003e98a3\npop     rbp                                                            ; +0x74, 0x1003e98a4\nretn                                                                   ; +0x75, 0x1003e98a5", "xrefs": ["DrawGridLayer::update @ 0x10010109d"], "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"}