{"type": "func", "start": 384556, "end": 384616, "name": "sub_5DE2C", "pseudocode": "// \n// sub_5DE2C from 0x5de2c to 0x5de68 (60 bytes)\n// \n// 2 xrefs:\n// > sub_5E794 @ 0x5e944\n// > FMOD::Geometry::getPolygonNumVertices @ 0xd5184\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_5DE2C(__int64 a1, int a2, _DWORD *a3)\n{\n  __int64 result; // x0\n\n  if ( a2 < 0 || *(_DWORD *)(a1 + 44) <= a2 )\n    return 31;\n  result = 0;\n  if ( a3 )\n    *a3 = *(unsigned __int16 *)(*(_QWORD *)(a1 + 64) + *(int *)(*(_QWORD *)(a1 + 48) + 4LL * a2) + 184LL);\n  return result;\n}", "assembly": "; \n; sub_5DE2C from 0x5de2c to 0x5de68 (60 bytes)\n; \n; 2 xrefs:\n; > sub_5E794 @ 0x5e944\n; > FMOD::Geometry::getPolygonNumVertices @ 0xd5184\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\nTBNZ            W1, #0x1F, loc_5DE64                                   ; +0x0, 0x5de2c\nLDR             W9, [X0,#0x2C]                                         ; +0x4, 0x5de30\nMOV             X8, X0                                                 ; +0x8, 0x5de34\nCMP             W9, W1                                                 ; +0xc, 0x5de38\nB.LE            loc_5DE64                                              ; +0x10, 0x5de3c\nMOV             W0, WZR                                                ; +0x14, 0x5de40\nCBZ             X2, locret_5DE60                                       ; +0x18, 0x5de44\nLDR             X9, [X8,#0x30]                                         ; +0x1c, 0x5de48\nLDR             X8, [X8,#0x40]                                         ; +0x20, 0x5de4c\nLDRSW           X9, [X9,W1,SXTW#2]                                     ; +0x24, 0x5de50\nADD             X8, X8, X9                                             ; +0x28, 0x5de54\nLDRH            W8, [X8,#0xB8]                                         ; +0x2c, 0x5de58\nSTR             W8, [X2]                                               ; +0x30, 0x5de5c\nRET                                                                    ; +0x34, 0x5de60\nB               loc_5F22C                                              ; +0x38, 0x5de64", "xrefs": ["sub_5E794 @ 0x5e944", "FMOD::Geometry::getPolygonNumVertices @ 0xd5184"], "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"}