{"type": "func", "start": 6443158800, "end": 6443158982, "name": "FMOD::System::getCPUUsage", "pseudocode": "// \n// FMOD::System::getCPUUsage from 0x1800acd10 to 0x1800acdc6 (182 bytes)\n// \n// 4 xrefs:\n// > FMOD_System_GetCPUUsage @ 0x1800c6a79\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fc294\n// > <???> @ 0x1801fc2a0\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__int64 __fastcall FMOD::System::getCPUUsage(__int64 a1, __int64 a2)\n{\n  int v3; // esi\n  unsigned int v4; // ebx\n  __int64 result; // rax\n  __int64 v6; // [rsp+30h] [rbp-128h] BYREF\n  _BYTE v7[256]; // [rsp+40h] [rbp-118h] BYREF\n\n  v3 = a1;\n  v4 = FMOD::SystemI::validate(a1, &v6, 0);\n  if ( v4 || (result = sub_1800E3E80(v6, a2), (v4 = result) != 0) )\n  {\n    if ( *((char *)off_1801AED20 + 16) < 0 )\n    {\n      sub_1800F3230(v7, 256, a2);\n      sub_1800B20E0(v4, 1, v3, (unsigned int)\"System::getCPUUsage\", (__int64)v7);\n    }\n    return v4;\n  }\n  return result;\n}", "assembly": "; \n; FMOD::System::getCPUUsage from 0x1800acd10 to 0x1800acdc6 (182 bytes)\n; \n; 4 xrefs:\n; > FMOD_System_GetCPUUsage @ 0x1800c6a79\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fc294\n; > <???> @ 0x1801fc2a0\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1800acd10\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800acd15\npush    rdi                                                            ; +0xa, 0x1800acd1a\nsub     rsp, 150h                                                      ; +0xb, 0x1800acd1b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1800acd22\nxor     rax, rsp                                                       ; +0x19, 0x1800acd29\nmov     [rsp+158h+var_18], rax                                         ; +0x1c, 0x1800acd2c\nmov     rdi, rdx                                                       ; +0x24, 0x1800acd34\nxor     r8d, r8d                                                       ; +0x27, 0x1800acd37\nlea     rdx, [rsp+158h+var_128]                                        ; +0x2a, 0x1800acd3a\nmov     rsi, rcx                                                       ; +0x2f, 0x1800acd3f\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x32, 0x1800acd42\nmov     ebx, eax                                                       ; +0x37, 0x1800acd47\ntest    eax, eax                                                       ; +0x39, 0x1800acd49\njnz     short loc_1800ACD60                                            ; +0x3b, 0x1800acd4b\nmov     rcx, [rsp+158h+var_128]                                        ; +0x3d, 0x1800acd4d\nmov     rdx, rdi                                                       ; +0x42, 0x1800acd52\ncall    sub_1800E3E80                                                  ; +0x45, 0x1800acd55\nmov     ebx, eax                                                       ; +0x4a, 0x1800acd5a\ntest    eax, eax                                                       ; +0x4c, 0x1800acd5c\njz      short loc_1800ACDA1                                            ; +0x4e, 0x1800acd5e\nmov     rax, cs:off_1801AED20                                          ; +0x50, 0x1800acd60\ntest    byte ptr [rax+10h], 80h                                        ; +0x57, 0x1800acd67\njz      short loc_1800ACD9F                                            ; +0x5b, 0x1800acd6b\nmov     r8, rdi                                                        ; +0x5d, 0x1800acd6d\nlea     rcx, [rsp+158h+var_118]                                        ; +0x60, 0x1800acd70\nmov     edx, 100h                                                      ; +0x65, 0x1800acd75\ncall    sub_1800F3230                                                  ; +0x6a, 0x1800acd7a\nlea     rax, [rsp+158h+var_118]                                        ; +0x6f, 0x1800acd7f\nmov     r8, rsi                                                        ; +0x74, 0x1800acd84\nlea     r9, aSystemGetcpuus; \"System::getCPUUsage\"                     ; +0x77, 0x1800acd87\nmov     [rsp+158h+var_138], rax                                        ; +0x7e, 0x1800acd8e\nmov     edx, 1                                                         ; +0x83, 0x1800acd93\nmov     ecx, ebx                                                       ; +0x88, 0x1800acd98\ncall    sub_1800B20E0                                                  ; +0x8a, 0x1800acd9a\nmov     eax, ebx                                                       ; +0x8f, 0x1800acd9f\nmov     rcx, [rsp+158h+var_18]                                         ; +0x91, 0x1800acda1\nxor     rcx, rsp; StackCookie                                          ; +0x99, 0x1800acda9\ncall    __security_check_cookie                                        ; +0x9c, 0x1800acdac\nlea     r11, [rsp+158h+var_8]                                          ; +0xa1, 0x1800acdb1\nmov     rbx, [r11+20h]                                                 ; +0xa9, 0x1800acdb9\nmov     rsi, [r11+28h]                                                 ; +0xad, 0x1800acdbd\nmov     rsp, r11                                                       ; +0xb1, 0x1800acdc1\npop     rdi                                                            ; +0xb4, 0x1800acdc4\nretn                                                                   ; +0xb5, 0x1800acdc5", "xrefs": ["FMOD_System_GetCPUUsage @ 0x1800c6a79", "<???> @ 0x180194348", "<???> @ 0x1801fc294", "<???> @ 0x1801fc2a0"], "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"}