{"type": "func", "start": 6443542640, "end": 6443542742, "name": "sub_18010A870", "pseudocode": "// \n// sub_18010A870 from 0x18010a870 to 0x18010a8d6 (102 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801b0910\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:33 +0000\n// \n\n__int64 __fastcall sub_18010A870(__int64 *a1, int a2, int a3)\n{\n  __int64 v3; // rax\n  float v4; // xmm1_4\n  float v5; // xmm0_4\n\n  v3 = *a1;\n  if ( a2 != 10 )\n    return 31;\n  if ( *(_BYTE *)(v3 + 657) != (a3 != 0) )\n  {\n    *(_BYTE *)(v3 + 657) = a3 != 0;\n    if ( a3 )\n    {\n      v4 = *(float *)(v3 + 572);\n      v5 = fminf(*(float *)(v3 + 568), v4);\n    }\n    else\n    {\n      v4 = *(float *)(v3 + 564);\n      v5 = *(float *)(v3 + 560);\n    }\n    *(float *)(v3 + 680) = v5;\n    *(float *)(v3 + 684) = v4;\n    ++*(_DWORD *)(v3 + 644);\n  }\n  return 0;\n}", "assembly": "; \n; sub_18010A870 from 0x18010a870 to 0x18010a8d6 (102 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801b0910\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:33 +0000\n; \nmov     rax, [rcx]                                                     ; +0x0, 0x18010a870\ncmp     edx, 0Ah                                                       ; +0x3, 0x18010a873\njnz     short loc_18010A8D0                                            ; +0x6, 0x18010a876\ntest    r8d, r8d                                                       ; +0x8, 0x18010a878\nsetnz   cl                                                             ; +0xb, 0x18010a87b\ncmp     [rax+291h], cl                                                 ; +0xe, 0x18010a87e\njz      short loc_18010A8CD                                            ; +0x14, 0x18010a884\nmov     [rax+291h], cl                                                 ; +0x16, 0x18010a886\ntest    r8d, r8d                                                       ; +0x1c, 0x18010a88c\njz      short loc_18010A8A7                                            ; +0x1f, 0x18010a88f\nmovss   xmm1, dword ptr [rax+23Ch]                                     ; +0x21, 0x18010a891\nmovss   xmm0, dword ptr [rax+238h]                                     ; +0x29, 0x18010a899\nminss   xmm0, xmm1                                                     ; +0x31, 0x18010a8a1\njmp     short loc_18010A8B7                                            ; +0x35, 0x18010a8a5\nmovss   xmm1, dword ptr [rax+234h]                                     ; +0x37, 0x18010a8a7\nmovss   xmm0, dword ptr [rax+230h]                                     ; +0x3f, 0x18010a8af\nmovss   dword ptr [rax+2A8h], xmm0                                     ; +0x47, 0x18010a8b7\nmovss   dword ptr [rax+2ACh], xmm1                                     ; +0x4f, 0x18010a8bf\ninc     dword ptr [rax+284h]                                           ; +0x57, 0x18010a8c7\nxor     eax, eax                                                       ; +0x5d, 0x18010a8cd\nretn                                                                   ; +0x5f, 0x18010a8cf\nmov     eax, 1Fh                                                       ; +0x60, 0x18010a8d0\nretn                                                                   ; +0x65, 0x18010a8d5", "xrefs": ["<???> @ 0x1801b0910"], "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"}