{"type": "func", "start": 807392, "end": 807568, "name": "sub_C51E0", "pseudocode": "// \n// sub_C51E0 from 0xc51e0 to 0xc5290 (176 bytes)\n// \n// 2 xrefs:\n// > sub_C5134 @ 0xc51b4\n// > sub_C580C @ 0xc59a0\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:45 +0000\n// \n\n__int64 __fastcall sub_C51E0(__int64 a1, long double a2)\n{\n  __int64 v2; // x8\n  __int64 v3; // x9\n  __int64 i; // x10\n  _QWORD *v5; // x11\n  __int64 v6; // x19\n  __int64 v7; // x20\n  __int64 v8; // x21\n  __int64 v9; // x22\n  int v10; // w23\n  long double v11; // q0\n  long double v12; // q0\n  long double v13; // q0\n  __int64 result; // x0\n\n  v2 = 0;\n  *(_QWORD *)&a2 = 0;\n  v3 = a1;\n  while ( v2 != 4 )\n  {\n    for ( i = 0; i != 512; i += 16 )\n    {\n      v5 = (_QWORD *)(v3 + i);\n      v5[180] = 0;\n      v5[436] = 0;\n      v5[692] = 0;\n      v5[948] = 0;\n    }\n    ++v2;\n    v3 += 512;\n  }\n  v6 = a1 + 544;\n  v7 = a1 + 768;\n  v8 = a1 + 656;\n  v9 = a1 + 880;\n  v10 = 2;\n  do\n  {\n    sub_C5DC0(v6, a2);\n    sub_C5DC0(v7, v11);\n    sub_C5DC0(v8, v12);\n    result = sub_C5DC0(v9, v13);\n    --v10;\n  }\n  while ( v10 );\n  return result;\n}", "assembly": "; \n; sub_C51E0 from 0xc51e0 to 0xc5290 (176 bytes)\n; \n; 2 xrefs:\n; > sub_C5134 @ 0xc51b4\n; > sub_C580C @ 0xc59a0\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:45 +0000\n; \nSTR             X23, [SP,#-0x10+var_30]!                               ; +0x0, 0xc51e0\nMOV             X8, XZR                                                ; +0x4, 0xc51e4\nMOVI            D0, #0                                                 ; +0x8, 0xc51e8\nMOV             X9, X0                                                 ; +0xc, 0xc51ec\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x10, 0xc51f0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x14, 0xc51f4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x18, 0xc51f8\nADD             X29, SP, #0x30                                         ; +0x1c, 0xc51fc\nCMP             X8, #4                                                 ; +0x20, 0xc5200\nB.EQ            loc_C523C                                              ; +0x24, 0xc5204\nMOV             X10, XZR                                               ; +0x28, 0xc5208\nCMP             X10, #0x200                                            ; +0x2c, 0xc520c\nB.EQ            loc_C5230                                              ; +0x30, 0xc5210\nADD             X11, X9, X10                                           ; +0x34, 0xc5214\nSTR             D0, [X11,#0x5A0]                                       ; +0x38, 0xc5218\nSTR             D0, [X11,#0xDA0]                                       ; +0x3c, 0xc521c\nSTR             D0, [X11,#0x15A0]                                      ; +0x40, 0xc5220\nSTR             D0, [X11,#0x1DA0]                                      ; +0x44, 0xc5224\nADD             X10, X10, #0x10                                        ; +0x48, 0xc5228\nB               loc_C520C                                              ; +0x4c, 0xc522c\nADD             X8, X8, #1                                             ; +0x50, 0xc5230\nADD             X9, X9, #0x200                                         ; +0x54, 0xc5234\nB               loc_C5200                                              ; +0x58, 0xc5238\nADD             X19, X0, #0x220                                        ; +0x5c, 0xc523c\nADD             X20, X0, #0x300                                        ; +0x60, 0xc5240\nADD             X21, X0, #0x290                                        ; +0x64, 0xc5244\nADD             X22, X0, #0x370                                        ; +0x68, 0xc5248\nMOV             W23, #2                                                ; +0x6c, 0xc524c\nCBZ             W23, loc_C527C                                         ; +0x70, 0xc5250\nMOV             X0, X19                                                ; +0x74, 0xc5254\nBL              sub_C5DC0                                              ; +0x78, 0xc5258\nMOV             X0, X20                                                ; +0x7c, 0xc525c\nBL              sub_C5DC0                                              ; +0x80, 0xc5260\nMOV             X0, X21                                                ; +0x84, 0xc5264\nBL              sub_C5DC0                                              ; +0x88, 0xc5268\nMOV             X0, X22                                                ; +0x8c, 0xc526c\nBL              sub_C5DC0                                              ; +0x90, 0xc5270\nSUB             W23, W23, #1                                           ; +0x94, 0xc5274\nCBNZ            W23, loc_C5254                                         ; +0x98, 0xc5278\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x9c, 0xc527c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa0, 0xc5280\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xa4, 0xc5284\nLDR             X23, [SP+0x30+var_30],#0x40                            ; +0xa8, 0xc5288\nRET                                                                    ; +0xac, 0xc528c", "xrefs": ["sub_C5134 @ 0xc51b4", "sub_C580C @ 0xc59a0"], "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"}