{"type": "func", "start": 526540, "end": 526836, "name": "sub_808CC", "pseudocode": "// \n// sub_808CC from 0x808cc to 0x809f4 (296 bytes)\n// \n// 1 xrefs:\n// > sub_7FE1C @ 0x7fe20\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:14:07 +0000\n// \n\n__int64 __fastcall sub_808CC(__int64 a1, int a2)\n{\n  int v3; // w8\n  float v4; // s0\n  float v5; // s1\n  __int64 result; // x0\n  __int64 v7; // x1\n\n  if ( a2 != 128 )\n  {\n    if ( a2 == 1 )\n    {\n      v3 = *(_DWORD *)(a1 + 644);\n      if ( v3 > *(_DWORD *)(a1 + 640) )\n      {\n        v4 = *(float *)(a1 + 584);\n        v5 = *(float *)(a1 + 660);\n        *(_DWORD *)(a1 + 640) = v3;\n        if ( v4 != v5\n          || *(float *)(a1 + 588) != *(float *)(a1 + 664)\n          || *(float *)(a1 + 592) != *(float *)(a1 + 668)\n          || *(float *)(a1 + 596) != *(float *)(a1 + 672)\n          || *(_DWORD *)(a1 + 600) != *(_DWORD *)(a1 + 676)\n          || *(float *)(a1 + 604) != *(float *)(a1 + 680)\n          || *(float *)(a1 + 608) != *(float *)(a1 + 684)\n          || *(_DWORD *)(a1 + 612) != *(_DWORD *)(a1 + 688)\n          || *(float *)(a1 + 616) != *(float *)(a1 + 692)\n          || *(float *)(a1 + 620) != *(float *)(a1 + 696)\n          || *(float *)(a1 + 636) != *(float *)(a1 + 712) )\n        {\n          sub_800E0(a1);\n          *(_BYTE *)(a1 + 656) = 1;\n          return 0;\n        }\n      }\n    }\n    return 0;\n  }\n  v7 = *(_QWORD *)(a1 + 648);\n  if ( !v7 )\n    return 0;\n  result = sub_6AE10(*(_QWORD *)(a1 + 168), v7);\n  if ( !(_DWORD)result )\n    *(_QWORD *)(a1 + 648) = 0;\n  return result;\n}", "assembly": "; \n; sub_808CC from 0x808cc to 0x809f4 (296 bytes)\n; \n; 1 xrefs:\n; > sub_7FE1C @ 0x7fe20\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:14:07 +0000\n; \nSTR             X19, [SP,#-0x10+var_10]!                               ; +0x0, 0x808cc\nCMP             W1, #0x80                                              ; +0x4, 0x808d0\nMOV             X19, X0                                                ; +0x8, 0x808d4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc, 0x808d8\nADD             X29, SP, #0x10                                         ; +0x10, 0x808dc\nB.EQ            loc_809C8                                              ; +0x14, 0x808e0\nCMP             W1, #1                                                 ; +0x18, 0x808e4\nB.NE            loc_809E4                                              ; +0x1c, 0x808e8\nLDR             W8, [X19,#0x284]                                       ; +0x20, 0x808ec\nLDR             W9, [X19,#0x280]                                       ; +0x24, 0x808f0\nCMP             W8, W9                                                 ; +0x28, 0x808f4\nB.LE            loc_809E4                                              ; +0x2c, 0x808f8\nLDR             S0, [X19,#0x248]                                       ; +0x30, 0x808fc\nLDR             S1, [X19,#0x294]                                       ; +0x34, 0x80900\nSTR             W8, [X19,#0x280]                                       ; +0x38, 0x80904\nFCMP            S0, S1                                                 ; +0x3c, 0x80908\nB.NE            loc_809B0                                              ; +0x40, 0x8090c\nLDR             S0, [X19,#0x24C]                                       ; +0x44, 0x80910\nLDR             S1, [X19,#0x298]                                       ; +0x48, 0x80914\nFCMP            S0, S1                                                 ; +0x4c, 0x80918\nB.NE            loc_809B0                                              ; +0x50, 0x8091c\nLDR             S0, [X19,#0x250]                                       ; +0x54, 0x80920\nLDR             S1, [X19,#0x29C]                                       ; +0x58, 0x80924\nFCMP            S0, S1                                                 ; +0x5c, 0x80928\nB.NE            loc_809B0                                              ; +0x60, 0x8092c\nLDR             S0, [X19,#0x254]                                       ; +0x64, 0x80930\nLDR             S1, [X19,#0x2A0]                                       ; +0x68, 0x80934\nFCMP            S0, S1                                                 ; +0x6c, 0x80938\nB.NE            loc_809B0                                              ; +0x70, 0x8093c\nLDR             W8, [X19,#0x258]                                       ; +0x74, 0x80940\nLDR             W9, [X19,#0x2A4]                                       ; +0x78, 0x80944\nCMP             W8, W9                                                 ; +0x7c, 0x80948\nB.NE            loc_809B0                                              ; +0x80, 0x8094c\nLDR             S0, [X19,#0x25C]                                       ; +0x84, 0x80950\nLDR             S1, [X19,#0x2A8]                                       ; +0x88, 0x80954\nFCMP            S0, S1                                                 ; +0x8c, 0x80958\nB.NE            loc_809B0                                              ; +0x90, 0x8095c\nLDR             S0, [X19,#0x260]                                       ; +0x94, 0x80960\nLDR             S1, [X19,#0x2AC]                                       ; +0x98, 0x80964\nFCMP            S0, S1                                                 ; +0x9c, 0x80968\nB.NE            loc_809B0                                              ; +0xa0, 0x8096c\nLDR             W8, [X19,#0x264]                                       ; +0xa4, 0x80970\nLDR             W9, [X19,#0x2B0]                                       ; +0xa8, 0x80974\nCMP             W8, W9                                                 ; +0xac, 0x80978\nB.NE            loc_809B0                                              ; +0xb0, 0x8097c\nLDR             S0, [X19,#0x268]                                       ; +0xb4, 0x80980\nLDR             S1, [X19,#0x2B4]                                       ; +0xb8, 0x80984\nFCMP            S0, S1                                                 ; +0xbc, 0x80988\nB.NE            loc_809B0                                              ; +0xc0, 0x8098c\nLDR             S0, [X19,#0x26C]                                       ; +0xc4, 0x80990\nLDR             S1, [X19,#0x2B8]                                       ; +0xc8, 0x80994\nFCMP            S0, S1                                                 ; +0xcc, 0x80998\nB.NE            loc_809B0                                              ; +0xd0, 0x8099c\nLDR             S0, [X19,#0x27C]                                       ; +0xd4, 0x809a0\nLDR             S1, [X19,#0x2C8]                                       ; +0xd8, 0x809a4\nFCMP            S0, S1                                                 ; +0xdc, 0x809a8\nB.EQ            loc_809E4                                              ; +0xe0, 0x809ac\nMOV             X0, X19                                                ; +0xe4, 0x809b0\nBL              sub_800E0                                              ; +0xe8, 0x809b4\nMOV             W8, #1                                                 ; +0xec, 0x809b8\nMOV             W0, WZR                                                ; +0xf0, 0x809bc\nSTRB            W8, [X19,#0x290]                                       ; +0xf4, 0x809c0\nB               loc_809E8                                              ; +0xf8, 0x809c4\nLDR             X1, [X19,#0x288]                                       ; +0xfc, 0x809c8\nCBZ             X1, loc_809E4                                          ; +0x100, 0x809cc\nLDR             X0, [X19,#0xA8]                                        ; +0x104, 0x809d0\nBL              sub_6AE10                                              ; +0x108, 0x809d4\nCBNZ            W0, loc_809E8                                          ; +0x10c, 0x809d8\nSTR             XZR, [X19,#0x288]                                      ; +0x110, 0x809dc\nB               loc_809E8                                              ; +0x114, 0x809e0\nMOV             W0, WZR                                                ; +0x118, 0x809e4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x11c, 0x809e8\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x120, 0x809ec\nRET                                                                    ; +0x124, 0x809f0", "xrefs": ["sub_7FE1C @ 0x7fe20"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}