{"type": "func", "start": 524512, "end": 524812, "name": "sub_800E0", "pseudocode": "// \n// sub_800E0 from 0x800e0 to 0x8020c (300 bytes)\n// \n// 1 xrefs:\n// > sub_808CC @ 0x809b4\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_800E0(__int64 a1)\n{\n  __int64 v2; // x0\n  int v3; // w8\n  float v4; // s0\n\n  if ( *(float *)(a1 + 588) == *(float *)(a1 + 664)\n    && *(float *)(a1 + 592) == *(float *)(a1 + 668)\n    && *(float *)(a1 + 604) == *(float *)(a1 + 680)\n    && *(_DWORD *)(a1 + 612) == *(_DWORD *)(a1 + 688)\n    && *(float *)(a1 + 616) == *(float *)(a1 + 692)\n    && *(float *)(a1 + 620) == *(float *)(a1 + 696) )\n  {\n    if ( *(_DWORD *)(a1 + 600) == *(_DWORD *)(a1 + 676) && *(float *)(a1 + 608) == *(float *)(a1 + 684) )\n    {\n      sub_80A78();\n      return 0;\n    }\n    sub_80A78();\n  }\n  else\n  {\n    v2 = sub_80A78();\n    v3 = *(_DWORD *)(a1 + 612);\n    *(_DWORD *)(a1 + 556) = 0;\n    if ( v3 == 1 )\n    {\n      v4 = fmaxf(*(float *)(a1 + 620), sub_8020C(v2, *(float *)(a1 + 592), *(float *)(a1 + 616)));\n      goto LABEL_11;\n    }\n    if ( !v3 )\n    {\n      v4 = sub_8020C(v2, *(float *)(a1 + 592), *(float *)(a1 + 604) + *(float *)(a1 + 604));\nLABEL_11:\n      *(float *)(a1 + 556) = v4;\n    }\n  }\n  sub_75BF4(\n    *(unsigned int *)(a1 + 600),\n    (float *)(a1 + 544),\n    *(float *)(a1 + 588),\n    *(float *)(a1 + 604),\n    *(float *)(a1 + 608),\n    *(float *)(*(_QWORD *)(a1 + 168) + 69112LL));\n  return 0;\n}", "assembly": "; \n; sub_800E0 from 0x800e0 to 0x8020c (300 bytes)\n; \n; 1 xrefs:\n; > sub_808CC @ 0x809b4\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\nSTR             D8, [SP,#-0x10+var_10]!                                ; +0x0, 0x800e0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x800e4\nLDR             S0, [X0,#0x24C]                                        ; +0x8, 0x800e8\nLDR             S1, [X0,#0x298]                                        ; +0xc, 0x800ec\nSTR             X19, [SP,#0x10+var_8]                                  ; +0x10, 0x800f0\nMOV             X19, X0                                                ; +0x14, 0x800f4\nADD             X8, X0, #0x248                                         ; +0x18, 0x800f8\nFCMP            S0, S1                                                 ; +0x1c, 0x800fc\nADD             X9, X0, #0x294                                         ; +0x20, 0x80100\nADD             X29, SP, #0x10                                         ; +0x24, 0x80104\nB.NE            loc_8015C                                              ; +0x28, 0x80108\nLDR             S0, [X19,#0x250]                                       ; +0x2c, 0x8010c\nLDR             S1, [X19,#0x29C]                                       ; +0x30, 0x80110\nFCMP            S0, S1                                                 ; +0x34, 0x80114\nB.NE            loc_8015C                                              ; +0x38, 0x80118\nLDR             S0, [X19,#0x25C]                                       ; +0x3c, 0x8011c\nLDR             S1, [X19,#0x2A8]                                       ; +0x40, 0x80120\nFCMP            S0, S1                                                 ; +0x44, 0x80124\nB.NE            loc_8015C                                              ; +0x48, 0x80128\nLDR             W10, [X19,#0x264]                                      ; +0x4c, 0x8012c\nLDR             W11, [X19,#0x2B0]                                      ; +0x50, 0x80130\nCMP             W10, W11                                               ; +0x54, 0x80134\nB.NE            loc_8015C                                              ; +0x58, 0x80138\nLDR             S0, [X19,#0x268]                                       ; +0x5c, 0x8013c\nLDR             S1, [X19,#0x2B4]                                       ; +0x60, 0x80140\nFCMP            S0, S1                                                 ; +0x64, 0x80144\nB.NE            loc_8015C                                              ; +0x68, 0x80148\nLDR             S0, [X19,#0x26C]                                       ; +0x6c, 0x8014c\nLDR             S1, [X19,#0x2B8]                                       ; +0x70, 0x80150\nFCMP            S0, S1                                                 ; +0x74, 0x80154\nB.EQ            loc_801DC                                              ; +0x78, 0x80158\nBL              sub_80A78                                              ; +0x7c, 0x8015c\nLDR             W8, [X19,#0x264]                                       ; +0x80, 0x80160\nSTR             WZR, [X19,#0x22C]                                      ; +0x84, 0x80164\nCMP             W8, #1                                                 ; +0x88, 0x80168\nB.EQ            loc_80188                                              ; +0x8c, 0x8016c\nCBNZ            W8, loc_801A0                                          ; +0x90, 0x80170\nLDR             S1, [X19,#0x25C]                                       ; +0x94, 0x80174\nLDR             S0, [X19,#0x250]                                       ; +0x98, 0x80178\nFADD            S1, S1, S1                                             ; +0x9c, 0x8017c\nBL              sub_8020C                                              ; +0xa0, 0x80180\nB               loc_8019C                                              ; +0xa4, 0x80184\nLDR             S0, [X19,#0x250]                                       ; +0xa8, 0x80188\nLDR             S1, [X19,#0x268]                                       ; +0xac, 0x8018c\nLDR             S8, [X19,#0x26C]                                       ; +0xb0, 0x80190\nBL              sub_8020C                                              ; +0xb4, 0x80194\nFMAXNM          S0, S8, S0                                             ; +0xb8, 0x80198\nSTR             S0, [X19,#0x22C]                                       ; +0xbc, 0x8019c\nLDR             X8, [X19,#0xA8]                                        ; +0xc0, 0x801a0\nMOV             W9, #0x10DF8                                           ; +0xc4, 0x801a4\nLDR             W0, [X19,#0x258]                                       ; +0xcc, 0x801ac\nLDR             S0, [X19,#0x24C]                                       ; +0xd0, 0x801b0\nLDR             S1, [X19,#0x25C]                                       ; +0xd4, 0x801b4\nLDR             S2, [X19,#0x260]                                       ; +0xd8, 0x801b8\nLDR             S3, [X8,X9]                                            ; +0xdc, 0x801bc\nADD             X1, X19, #0x220                                        ; +0xe0, 0x801c0\nBL              sub_75BF4                                              ; +0xe4, 0x801c4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xe8, 0x801c8\nLDR             X19, [SP,#0x10+var_8]                                  ; +0xec, 0x801cc\nMOV             W0, WZR                                                ; +0xf0, 0x801d0\nLDR             D8, [SP+0x10+var_10],#0x20                             ; +0xf4, 0x801d4\nRET                                                                    ; +0xf8, 0x801d8\nLDR             W10, [X19,#0x258]                                      ; +0xfc, 0x801dc\nLDR             W11, [X19,#0x2A4]                                      ; +0x100, 0x801e0\nCMP             W10, W11                                               ; +0x104, 0x801e4\nB.NE            loc_801FC                                              ; +0x108, 0x801e8\nLDR             S0, [X19,#0x260]                                       ; +0x10c, 0x801ec\nLDR             S1, [X19,#0x2AC]                                       ; +0x110, 0x801f0\nFCMP            S0, S1                                                 ; +0x114, 0x801f4\nB.EQ            loc_80204                                              ; +0x118, 0x801f8\nBL              sub_80A78                                              ; +0x11c, 0x801fc\nB               loc_801A0                                              ; +0x120, 0x80200\nBL              sub_80A78                                              ; +0x124, 0x80204\nB               loc_801C8                                              ; +0x128, 0x80208", "xrefs": ["sub_808CC @ 0x809b4"], "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"}