{"type": "func", "start": 802700, "end": 802816, "name": "sub_C3F8C", "pseudocode": "// \n// sub_C3F8C from 0xc3f8c to 0xc4000 (116 bytes)\n// \n// 2 xrefs:\n// > sub_C3BD4 @ 0xc3cac\n// > sub_C4404 @ 0xc4454\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_C3F8C(__int64 a1, __int64 a2)\n{\n  __int64 v2; // x0\n  __int64 v3; // x1\n  long double v4; // q0\n  long double v5; // q1\n  char v6; // nf\n  char v7; // vf\n  int v8; // s1\n  float v9; // s0\n  int v10; // w8\n\n  v2 = sub_C4B8C(*(float *)(a2 + 4), *(float *)&xmmword_155470);\n  if ( v6 != v7 || (LODWORD(v5) = DWORD1(xmmword_155470), *(float *)&v4 > *((float *)&xmmword_155470 + 1)) )\n  {\n    v4 = v5;\n    *(_DWORD *)(v3 + 4) = LODWORD(v5);\n  }\n  v8 = *(_DWORD *)(v2 + 2080);\n  *(_DWORD *)(v2 + 2036) = LODWORD(v4);\n  v9 = *(float *)&v4 * 0.001;\n  *(float *)(v2 + 1664) = v9;\n  *(float *)&v4 = v9 * (float)v8;\n  v10 = (int)*(float *)&v4;\n  if ( !(int)*(float *)&v4 )\n    v10 = 1;\n  *(_DWORD *)(v2 + 1700) = v10;\n  sub_C4000(v4);\n  return 0;\n}", "assembly": "; \n; sub_C3F8C from 0xc3f8c to 0xc4000 (116 bytes)\n; \n; 2 xrefs:\n; > sub_C3BD4 @ 0xc3cac\n; > sub_C4404 @ 0xc4454\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; \nSTP             X29, X30, [SP,#var_10]!                                ; +0x0, 0xc3f8c\nADRP            X8, #xmmword_155470@PAGE                               ; +0x4, 0xc3f90\nLDR             S0, [X1,#4]                                            ; +0x8, 0xc3f94\nLDR             S1, [X8,#xmmword_155470@PAGEOFF]                       ; +0xc, 0xc3f98\nBL              sub_C4B8C                                              ; +0x10, 0xc3f9c\nB.LT            loc_C3FB4                                              ; +0x14, 0xc3fa0\nADRP            X8, #(xmmword_155470+4)@PAGE                           ; +0x18, 0xc3fa4\nLDR             S1, [X8,#(xmmword_155470+4)@PAGEOFF]                   ; +0x1c, 0xc3fa8\nFCMP            S0, S1                                                 ; +0x20, 0xc3fac\nB.LE            loc_C3FBC                                              ; +0x24, 0xc3fb0\nMOV             V0.16B, V1.16B                                         ; +0x28, 0xc3fb4\nSTR             S1, [X1,#4]                                            ; +0x2c, 0xc3fb8\nADRP            X8, #dword_2F10C@PAGE                                  ; +0x30, 0xc3fbc\nLDR             S1, [X0,#0x820]                                        ; +0x34, 0xc3fc0\nLDR             S2, [X8,#dword_2F10C@PAGEOFF]                          ; +0x38, 0xc3fc4\nSTR             S0, [X0,#0x7F4]                                        ; +0x3c, 0xc3fc8\nADD             X1, X0, #0x7F0                                         ; +0x40, 0xc3fcc\nSCVTF           S1, S1                                                 ; +0x44, 0xc3fd0\nFMUL            S0, S0, S2                                             ; +0x48, 0xc3fd4\nSTR             S0, [X0,#0x680]                                        ; +0x4c, 0xc3fd8\nFMUL            S0, S0, S1                                             ; +0x50, 0xc3fdc\nFCVTZS          W8, S0                                                 ; +0x54, 0xc3fe0\nCMP             W8, #0                                                 ; +0x58, 0xc3fe4\nCSINC           W8, W8, WZR, NE                                        ; +0x5c, 0xc3fe8\nSTR             W8, [X0,#0x6A4]                                        ; +0x60, 0xc3fec\nBL              sub_C4000                                              ; +0x64, 0xc3ff0\nMOV             W0, WZR                                                ; +0x68, 0xc3ff4\nLDP             X29, X30, [SP+0x10+var_10],#0x10                       ; +0x6c, 0xc3ff8\nRET                                                                    ; +0x70, 0xc3ffc", "xrefs": ["sub_C3BD4 @ 0xc3cac", "sub_C4404 @ 0xc4454"], "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"}