{"type": "func", "start": 6443311776, "end": 6443311829, "name": "sub_1800D22A0", "pseudocode": "// \n// sub_1800D22A0 from 0x1800d22a0 to 0x1800d22d5 (53 bytes)\n// \n// 1 xrefs:\n// > FMOD::Geometry::getPolygonNumVertices @ 0x1800a44a7\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_1800D22A0(__int64 a1, int a2, _DWORD *a3)\n{\n  if ( a2 < 0 || a2 >= *(_DWORD *)(a1 + 44) )\n    return 31;\n  if ( a3 )\n    *a3 = *(unsigned __int16 *)(*(int *)(*(_QWORD *)(a1 + 48) + 4LL * a2) + *(_QWORD *)(a1 + 64) + 184LL);\n  return 0;\n}", "assembly": "; \n; sub_1800D22A0 from 0x1800d22a0 to 0x1800d22d5 (53 bytes)\n; \n; 1 xrefs:\n; > FMOD::Geometry::getPolygonNumVertices @ 0x1800a44a7\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     r9, r8                                                         ; +0x0, 0x1800d22a0\ntest    edx, edx                                                       ; +0x3, 0x1800d22a3\njs      short loc_1800D22CF                                            ; +0x5, 0x1800d22a5\ncmp     edx, [rcx+2Ch]                                                 ; +0x7, 0x1800d22a7\njge     short loc_1800D22CF                                            ; +0xa, 0x1800d22aa\ntest    r8, r8                                                         ; +0xc, 0x1800d22ac\njz      short loc_1800D22CC                                            ; +0xf, 0x1800d22af\nmov     rax, [rcx+30h]                                                 ; +0x11, 0x1800d22b1\nmovsxd  rdx, edx                                                       ; +0x15, 0x1800d22b5\nmovsxd  r8, dword ptr [rax+rdx*4]                                      ; +0x18, 0x1800d22b8\nmov     rax, [rcx+40h]                                                 ; +0x1c, 0x1800d22bc\nmovzx   ecx, word ptr [r8+rax+0B8h]                                    ; +0x20, 0x1800d22c0\nmov     [r9], ecx                                                      ; +0x29, 0x1800d22c9\nxor     eax, eax                                                       ; +0x2c, 0x1800d22cc\nretn                                                                   ; +0x2e, 0x1800d22ce\nmov     eax, 1Fh                                                       ; +0x2f, 0x1800d22cf\nretn                                                                   ; +0x34, 0x1800d22d4", "xrefs": ["FMOD::Geometry::getPolygonNumVertices @ 0x1800a44a7"], "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"}