{"type": "func", "start": 6443311840, "end": 6443311930, "name": "sub_1800D22E0", "pseudocode": "// \n// sub_1800D22E0 from 0x1800d22e0 to 0x1800d233a (90 bytes)\n// \n// 1 xrefs:\n// > FMOD::Geometry::getPolygonVertex @ 0x1800a44f2\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 sub_1800D22E0(__int64 a1, int a2, int a3, __int64 a4)\n{\n  __int64 v4; // r10\n\n  if ( a2 < 0 )\n    return 31;\n  if ( a2 >= *(_DWORD *)(a1 + 44) )\n    return 31;\n  if ( !a4 )\n    return 31;\n  if ( a3 < 0 )\n    return 31;\n  v4 = *(_QWORD *)(a1 + 64) + *(int *)(*(_QWORD *)(a1 + 48) + 4LL * a2);\n  if ( a3 >= *(unsigned __int16 *)(v4 + 184) )\n    return 31;\n  *(_QWORD *)a4 = *(_QWORD *)(v4 + 12LL * a3 + 188);\n  *(_DWORD *)(a4 + 8) = *(_DWORD *)(v4 + 12LL * a3 + 196);\n  return 0;\n}", "assembly": "; \n; sub_1800D22E0 from 0x1800d22e0 to 0x1800d233a (90 bytes)\n; \n; 1 xrefs:\n; > FMOD::Geometry::getPolygonVertex @ 0x1800a44f2\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\ntest    edx, edx                                                       ; +0x0, 0x1800d22e0\njs      short loc_1800D2334                                            ; +0x2, 0x1800d22e2\ncmp     edx, [rcx+2Ch]                                                 ; +0x4, 0x1800d22e4\njge     short loc_1800D2334                                            ; +0x7, 0x1800d22e7\ntest    r9, r9                                                         ; +0x9, 0x1800d22e9\njz      short loc_1800D2334                                            ; +0xc, 0x1800d22ec\ntest    r8d, r8d                                                       ; +0xe, 0x1800d22ee\njs      short loc_1800D2334                                            ; +0x11, 0x1800d22f1\nmov     rax, [rcx+30h]                                                 ; +0x13, 0x1800d22f3\nmovsxd  rdx, edx                                                       ; +0x17, 0x1800d22f7\nmovsxd  r10, dword ptr [rax+rdx*4]                                     ; +0x1a, 0x1800d22fa\nadd     r10, [rcx+40h]                                                 ; +0x1e, 0x1800d22fe\nmovzx   eax, word ptr [r10+0B8h]                                       ; +0x22, 0x1800d2302\ncmp     r8d, eax                                                       ; +0x2a, 0x1800d230a\njge     short loc_1800D2334                                            ; +0x2d, 0x1800d230d\nmovsxd  rax, r8d                                                       ; +0x2f, 0x1800d230f\nlea     rcx, [rax+rax*2]                                               ; +0x32, 0x1800d2312\nmovsd   xmm0, qword ptr [r10+rcx*4+0BCh]                               ; +0x36, 0x1800d2316\nmovsd   qword ptr [r9], xmm0                                           ; +0x40, 0x1800d2320\nmov     eax, [r10+rcx*4+0C4h]                                          ; +0x45, 0x1800d2325\nmov     [r9+8], eax                                                    ; +0x4d, 0x1800d232d\nxor     eax, eax                                                       ; +0x51, 0x1800d2331\nretn                                                                   ; +0x53, 0x1800d2333\nmov     eax, 1Fh                                                       ; +0x54, 0x1800d2334\nretn                                                                   ; +0x59, 0x1800d2339", "xrefs": ["FMOD::Geometry::getPolygonVertex @ 0x1800a44f2"], "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"}