{"type": "func", "start": 6443105920, "end": 6443106133, "name": "FMOD::Channel::getLoopCount", "pseudocode": "// \n// FMOD::Channel::getLoopCount from 0x18009fe80 to 0x18009ff55 (213 bytes)\n// \n// 3 xrefs:\n// > FMOD_Channel_GetLoopCount @ 0x1800c55b9\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fadc4\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::Channel::getLoopCount(__int64 a1, _DWORD *a2)\n{\n  int v3; // esi\n  unsigned int v4; // ebx\n  __int64 v6; // [rsp+30h] [rbp-128h] BYREF\n  __int64 v7; // [rsp+38h] [rbp-120h] BYREF\n  _BYTE v8[256]; // [rsp+40h] [rbp-118h] BYREF\n\n  v3 = a1;\n  if ( a2 )\n    *a2 = 0;\n  v6 = 0;\n  v4 = FMOD::ChannelI::validate(a1, &v7, &v6);\n  if ( (v4 || (v4 = sub_1800CD980(v7, a2)) != 0) && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    sub_1800F3020(v8, 256, a2);\n    sub_1800B20E0(v4, 2, v3, (unsigned int)\"Channel::getLoopCount\", (__int64)v8);\n  }\n  if ( v6 )\n    sub_180102320();\n  return v4;\n}", "assembly": "; \n; FMOD::Channel::getLoopCount from 0x18009fe80 to 0x18009ff55 (213 bytes)\n; \n; 3 xrefs:\n; > FMOD_Channel_GetLoopCount @ 0x1800c55b9\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fadc4\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, 0x18009fe80\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x18009fe85\npush    rdi                                                            ; +0xa, 0x18009fe8a\nsub     rsp, 150h                                                      ; +0xb, 0x18009fe8b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x18009fe92\nxor     rax, rsp                                                       ; +0x19, 0x18009fe99\nmov     [rsp+158h+var_18], rax                                         ; +0x1c, 0x18009fe9c\nxor     eax, eax                                                       ; +0x24, 0x18009fea4\nmov     rdi, rdx                                                       ; +0x26, 0x18009fea6\nmov     rsi, rcx                                                       ; +0x29, 0x18009fea9\ntest    rdx, rdx                                                       ; +0x2c, 0x18009feac\njz      short loc_18009FEB3                                            ; +0x2f, 0x18009feaf\nmov     [rdx], eax                                                     ; +0x31, 0x18009feb1\nlea     r8, [rsp+158h+var_128]                                         ; +0x33, 0x18009feb3\nmov     [rsp+158h+var_128], rax                                        ; +0x38, 0x18009feb8\nlea     rdx, [rsp+158h+var_120]                                        ; +0x3d, 0x18009febd\ncall    ?validate@ChannelI@FMOD@@SA?AW4FMOD_RESULT@@PEAVChannel@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::ChannelI::validate(FMOD::Channel *,FMOD::ChannelI * *,FMOD::SystemLockScope *) ; +0x42, 0x18009fec2\nmov     ebx, eax                                                       ; +0x47, 0x18009fec7\ntest    eax, eax                                                       ; +0x49, 0x18009fec9\njnz     short loc_18009FEE0                                            ; +0x4b, 0x18009fecb\nmov     rcx, [rsp+158h+var_120]                                        ; +0x4d, 0x18009fecd\nmov     rdx, rdi                                                       ; +0x52, 0x18009fed2\ncall    sub_1800CD980                                                  ; +0x55, 0x18009fed5\nmov     ebx, eax                                                       ; +0x5a, 0x18009feda\ntest    eax, eax                                                       ; +0x5c, 0x18009fedc\njz      short loc_18009FF1F                                            ; +0x5e, 0x18009fede\nmov     rax, cs:off_1801AED20                                          ; +0x60, 0x18009fee0\ntest    byte ptr [rax+10h], 80h                                        ; +0x67, 0x18009fee7\njz      short loc_18009FF1F                                            ; +0x6b, 0x18009feeb\nmov     r8, rdi                                                        ; +0x6d, 0x18009feed\nlea     rcx, [rsp+158h+var_118]                                        ; +0x70, 0x18009fef0\nmov     edx, 100h                                                      ; +0x75, 0x18009fef5\ncall    sub_1800F3020                                                  ; +0x7a, 0x18009fefa\nlea     rax, [rsp+158h+var_118]                                        ; +0x7f, 0x18009feff\nmov     r8, rsi                                                        ; +0x84, 0x18009ff04\nlea     r9, aChannelGetloop; \"Channel::getLoopCount\"                   ; +0x87, 0x18009ff07\nmov     [rsp+158h+var_138], rax                                        ; +0x8e, 0x18009ff0e\nmov     edx, 2                                                         ; +0x93, 0x18009ff13\nmov     ecx, ebx                                                       ; +0x98, 0x18009ff18\ncall    sub_1800B20E0                                                  ; +0x9a, 0x18009ff1a\nmov     rcx, [rsp+158h+var_128]                                        ; +0x9f, 0x18009ff1f\ntest    rcx, rcx                                                       ; +0xa4, 0x18009ff24\njz      short loc_18009FF2E                                            ; +0xa7, 0x18009ff27\ncall    sub_180102320                                                  ; +0xa9, 0x18009ff29\nmov     eax, ebx                                                       ; +0xae, 0x18009ff2e\nmov     rcx, [rsp+158h+var_18]                                         ; +0xb0, 0x18009ff30\nxor     rcx, rsp; StackCookie                                          ; +0xb8, 0x18009ff38\ncall    __security_check_cookie                                        ; +0xbb, 0x18009ff3b\nlea     r11, [rsp+158h+var_8]                                          ; +0xc0, 0x18009ff40\nmov     rbx, [r11+20h]                                                 ; +0xc8, 0x18009ff48\nmov     rsi, [r11+28h]                                                 ; +0xcc, 0x18009ff4c\nmov     rsp, r11                                                       ; +0xd0, 0x18009ff50\npop     rdi                                                            ; +0xd3, 0x18009ff53\nretn                                                                   ; +0xd4, 0x18009ff54", "xrefs": ["FMOD_Channel_GetLoopCount @ 0x1800c55b9", "<???> @ 0x180194348", "<???> @ 0x1801fadc4"], "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"}