{"type": "func", "start": 385152, "end": 385308, "name": "sub_5E080", "pseudocode": "// \n// sub_5E080 from 0x5e080 to 0x5e11c (156 bytes)\n// \n// 2 xrefs:\n// > sub_5E794 @ 0x5ea60\n// > FMOD::Geometry::getPolygonAttributes @ 0xd5280\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_5E080(__int64 a1, int a2, _DWORD *a3, _DWORD *a4, _BYTE *a5)\n{\n  __int64 v10; // x0\n  __int64 v11; // x0\n  __int64 v12; // x8\n\n  if ( a2 < 0 || *(_DWORD *)(a1 + 44) <= a2 )\n    return 31;\n  v10 = sub_5F218(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 400LL));\n  v11 = sub_5F23C(v10);\n  v12 = *(_QWORD *)(a1 + 64) + *(int *)(*(_QWORD *)(a1 + 48) + 4LL * a2);\n  if ( a3 )\n    *a3 = *(_DWORD *)(v12 + 176);\n  if ( a4 )\n    *a4 = *(_DWORD *)(v12 + 180);\n  if ( a5 )\n    *a5 = *(_BYTE *)(v12 + 186) & 1;\n  sub_5F234(v11);\n  return 0;\n}", "assembly": "; \n; sub_5E080 from 0x5e080 to 0x5e11c (156 bytes)\n; \n; 2 xrefs:\n; > sub_5E794 @ 0x5ea60\n; > FMOD::Geometry::getPolygonAttributes @ 0xd5280\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x5e080\nSTR             X23, [SP,#0x40+var_30]                                 ; +0x4, 0x5e084\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x5e088\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x5e08c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x5e090\nADD             X29, SP, #0x40                                         ; +0x14, 0x5e094\nTBNZ            W1, #0x1F, loc_5E110                                   ; +0x18, 0x5e098\nLDR             W8, [X0,#0x2C]                                         ; +0x1c, 0x5e09c\nMOV             W22, W1                                                ; +0x20, 0x5e0a0\nMOV             X23, X0                                                ; +0x24, 0x5e0a4\nCMP             W8, W1                                                 ; +0x28, 0x5e0a8\nB.LE            loc_5E110                                              ; +0x2c, 0x5e0ac\nLDR             X8, [X23,#0x18]                                        ; +0x30, 0x5e0b0\nMOV             X19, X4                                                ; +0x34, 0x5e0b4\nMOV             X20, X3                                                ; +0x38, 0x5e0b8\nMOV             X21, X2                                                ; +0x3c, 0x5e0bc\nLDR             X0, [X8,#0x190]                                        ; +0x40, 0x5e0c0\nBL              sub_5F218                                              ; +0x44, 0x5e0c4\nBL              sub_5F23C                                              ; +0x48, 0x5e0c8\nLDR             X8, [X23,#0x30]                                        ; +0x4c, 0x5e0cc\nLDR             X9, [X23,#0x40]                                        ; +0x50, 0x5e0d0\nLDRSW           X8, [X8,W22,SXTW#2]                                    ; +0x54, 0x5e0d4\nADD             X8, X9, X8                                             ; +0x58, 0x5e0d8\nCBZ             X21, loc_5E0E8                                         ; +0x5c, 0x5e0dc\nLDR             W9, [X8,#0xB0]                                         ; +0x60, 0x5e0e0\nSTR             W9, [X21]                                              ; +0x64, 0x5e0e4\nCBZ             X20, loc_5E0F4                                         ; +0x68, 0x5e0e8\nLDR             W9, [X8,#0xB4]                                         ; +0x6c, 0x5e0ec\nSTR             W9, [X20]                                              ; +0x70, 0x5e0f0\nCBZ             X19, loc_5E104                                         ; +0x74, 0x5e0f4\nLDRB            W8, [X8,#0xBA]                                         ; +0x78, 0x5e0f8\nAND             W8, W8, #1                                             ; +0x7c, 0x5e0fc\nSTRB            W8, [X19]                                              ; +0x80, 0x5e100\nBL              sub_5F234                                              ; +0x84, 0x5e104\nMOV             W0, WZR                                                ; +0x88, 0x5e108\nB               loc_5E114                                              ; +0x8c, 0x5e10c\nMOV             W0, #0x1F                                              ; +0x90, 0x5e110\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x94, 0x5e114\nB               loc_5F260                                              ; +0x98, 0x5e118", "xrefs": ["sub_5E794 @ 0x5ea60", "FMOD::Geometry::getPolygonAttributes @ 0xd5280"], "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"}