{"type": "func", "start": 6443298320, "end": 6443298504, "name": "sub_1800CEE10", "pseudocode": "// \n// sub_1800CEE10 from 0x1800cee10 to 0x1800ceec8 (184 bytes)\n// \n// 16 xrefs:\n// > sub_18001CFD0 @ 0x18001f656\n// > sub_1800252C0 @ 0x180025756\n// > sub_180027A20 @ 0x18002802a\n// > sub_180028110 @ 0x18002880f\n// > sub_1800381A0 @ 0x180038ba5\n// > sub_180038CE0 @ 0x180039629\n// > sub_180040AD0 @ 0x180040c6f\n// > FMOD::Channel::setFrequency @ 0x1800a0563\n// > sub_1800CC1C0 @ 0x1800cc24a\n// > sub_1800CE9A0 @ 0x1800ceb74\n// > sub_1800CEB90 @ 0x1800cebbb\n// > sub_1800CECE0 @ 0x1800ced70\n// > sub_1800CFA00 @ 0x1800cfa50\n// > <???> @ 0x18018b924\n// > <???> @ 0x18018b934\n// > <???> @ 0x1801fe8a4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:54:08 +0000\n// \n\n__int64 __fastcall sub_1800CEE10(__int64 a1, float a2)\n{\n  __int64 result; // rax\n  float *v4; // rcx\n  float v5; // xmm6_4\n  __int64 v6; // rdx\n  bool v7; // cc\n\n  if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 )\n    return 29;\n  v4 = *(float **)(a1 + 472);\n  if ( !v4 || !*(_QWORD *)(a1 + 32) )\n    return 30;\n  v5 = *(float *)(a1 + 556);\n  *(float *)(a1 + 556) = fminf(fmaxf(v4[26], a2), v4[25]);\n  result = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v4 + 104LL))(v4);\n  if ( !(_DWORD)result )\n  {\n    if ( !*(_QWORD *)(a1 + 496) )\n      return 0;\n    v7 = v5 <= 0.0;\n    if ( v5 < 0.0 )\n    {\n      if ( *(float *)(a1 + 556) > 0.0 )\n      {\nLABEL_12:\n        LOBYTE(v6) = 1;\n        sub_1800D0760(a1, v6);\n        return 0;\n      }\n      v7 = v5 <= 0.0;\n    }\n    if ( v7 || *(float *)(a1 + 556) >= 0.0 )\n      return 0;\n    goto LABEL_12;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800CEE10 from 0x1800cee10 to 0x1800ceec8 (184 bytes)\n; \n; 16 xrefs:\n; > sub_18001CFD0 @ 0x18001f656\n; > sub_1800252C0 @ 0x180025756\n; > sub_180027A20 @ 0x18002802a\n; > sub_180028110 @ 0x18002880f\n; > sub_1800381A0 @ 0x180038ba5\n; > sub_180038CE0 @ 0x180039629\n; > sub_180040AD0 @ 0x180040c6f\n; > FMOD::Channel::setFrequency @ 0x1800a0563\n; > sub_1800CC1C0 @ 0x1800cc24a\n; > sub_1800CE9A0 @ 0x1800ceb74\n; > sub_1800CEB90 @ 0x1800cebbb\n; > sub_1800CECE0 @ 0x1800ced70\n; > sub_1800CFA00 @ 0x1800cfa50\n; > <???> @ 0x18018b924\n; > <???> @ 0x18018b934\n; > <???> @ 0x1801fe8a4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:54:08 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800cee10\nsub     rsp, 30h                                                       ; +0x2, 0x1800cee12\nmovaps  xmm0, xmm1                                                     ; +0x6, 0x1800cee16\nmov     rbx, rcx                                                       ; +0x9, 0x1800cee19\nmovss   [rsp+38h+arg_8], xmm0                                          ; +0xc, 0x1800cee1c\nmov     eax, [rsp+38h+arg_8]                                           ; +0x12, 0x1800cee22\nand     eax, 7F800000h                                                 ; +0x16, 0x1800cee26\ncmp     eax, 7F800000h                                                 ; +0x1b, 0x1800cee2b\njnz     short loc_1800CEE3D                                            ; +0x20, 0x1800cee30\nmov     eax, 1Dh                                                       ; +0x22, 0x1800cee32\nadd     rsp, 30h                                                       ; +0x27, 0x1800cee37\npop     rbx                                                            ; +0x2b, 0x1800cee3b\nretn                                                                   ; +0x2c, 0x1800cee3c\nmov     rcx, [rcx+1D8h]                                                ; +0x2d, 0x1800cee3d\ntest    rcx, rcx                                                       ; +0x34, 0x1800cee44\njz      short loc_1800CEEBD                                            ; +0x37, 0x1800cee47\ncmp     qword ptr [rbx+20h], 0                                         ; +0x39, 0x1800cee49\njz      short loc_1800CEEBD                                            ; +0x3e, 0x1800cee4e\nmovss   xmm1, dword ptr [rcx+68h]                                      ; +0x40, 0x1800cee50\nmaxss   xmm1, xmm0                                                     ; +0x45, 0x1800cee55\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x49, 0x1800cee59\nmovss   xmm6, dword ptr [rbx+22Ch]                                     ; +0x4e, 0x1800cee5e\nminss   xmm1, dword ptr [rcx+64h]                                      ; +0x56, 0x1800cee66\nmovss   dword ptr [rbx+22Ch], xmm1                                     ; +0x5b, 0x1800cee6b\nmov     rax, [rcx]                                                     ; +0x63, 0x1800cee73\ncall    qword ptr [rax+68h]                                            ; +0x66, 0x1800cee76\ntest    eax, eax                                                       ; +0x69, 0x1800cee79\njnz     short loc_1800CEEB2                                            ; +0x6b, 0x1800cee7b\ncmp     qword ptr [rbx+1F0h], 0                                        ; +0x6d, 0x1800cee7d\njz      short loc_1800CEEB0                                            ; +0x75, 0x1800cee85\nxorps   xmm0, xmm0                                                     ; +0x77, 0x1800cee87\ncomiss  xmm6, xmm0                                                     ; +0x7a, 0x1800cee8a\njnb     short loc_1800CEE9B                                            ; +0x7d, 0x1800cee8d\ncomiss  xmm0, dword ptr [rbx+22Ch]                                     ; +0x7f, 0x1800cee8f\njb      short loc_1800CEEA6                                            ; +0x86, 0x1800cee96\ncomiss  xmm6, xmm0                                                     ; +0x88, 0x1800cee98\njbe     short loc_1800CEEB0                                            ; +0x8b, 0x1800cee9b\ncomiss  xmm0, dword ptr [rbx+22Ch]                                     ; +0x8d, 0x1800cee9d\njbe     short loc_1800CEEB0                                            ; +0x94, 0x1800ceea4\nmov     dl, 1                                                          ; +0x96, 0x1800ceea6\nmov     rcx, rbx                                                       ; +0x98, 0x1800ceea8\ncall    sub_1800D0760                                                  ; +0x9b, 0x1800ceeab\nxor     eax, eax                                                       ; +0xa0, 0x1800ceeb0\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xa2, 0x1800ceeb2\nadd     rsp, 30h                                                       ; +0xa7, 0x1800ceeb7\npop     rbx                                                            ; +0xab, 0x1800ceebb\nretn                                                                   ; +0xac, 0x1800ceebc\nmov     eax, 1Eh                                                       ; +0xad, 0x1800ceebd\nadd     rsp, 30h                                                       ; +0xb2, 0x1800ceec2\npop     rbx                                                            ; +0xb6, 0x1800ceec6\nretn                                                                   ; +0xb7, 0x1800ceec7", "xrefs": ["sub_18001CFD0 @ 0x18001f656", "sub_1800252C0 @ 0x180025756", "sub_180027A20 @ 0x18002802a", "sub_180028110 @ 0x18002880f", "sub_1800381A0 @ 0x180038ba5", "sub_180038CE0 @ 0x180039629", "sub_180040AD0 @ 0x180040c6f", "FMOD::Channel::setFrequency @ 0x1800a0563", "sub_1800CC1C0 @ 0x1800cc24a", "sub_1800CE9A0 @ 0x1800ceb74", "sub_1800CEB90 @ 0x1800cebbb", "sub_1800CECE0 @ 0x1800ced70", "sub_1800CFA00 @ 0x1800cfa50", "<???> @ 0x18018b924", "<???> @ 0x18018b934", "<???> @ 0x1801fe8a4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}