{"type": "func", "start": 803604, "end": 803724, "name": "sub_C4314", "pseudocode": "// \n// sub_C4314 from 0xc4314 to 0xc438c (120 bytes)\n// \n// 1 xrefs:\n// > sub_C4B28 @ 0xc4b2c\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_C4314(__int64 a1, int a2, unsigned int a3)\n{\n  unsigned int v3; // w9\n  unsigned int v4; // w8\n  float v5; // s0\n  bool v6; // cf\n  unsigned int v7; // w9\n\n  if ( a2 )\n  {\n    v3 = *(_DWORD *)(a1 + 2084);\n    if ( !v3 )\n      return 11;\n  }\n  else\n  {\n    v5 = *(float *)(a1 + 2076);\n    if ( v5 <= -80.0 )\n    {\n      v3 = *(_DWORD *)(a1 + 2084);\n    }\n    else\n    {\n      v3 = (unsigned int)(float)((float)((float)(v5 * 0.000016667) + 0.0016667)\n                               * (float)(*(float *)(a1 + 2032) * (float)*(int *)(a1 + 2080)));\n      *(_DWORD *)(a1 + 2084) = v3;\n    }\n  }\n  v6 = v3 >= a3;\n  v7 = v3 - a3;\n  v4 = 0;\n  if ( !v6 )\n    v7 = 0;\n  *(_DWORD *)(a1 + 2084) = v7;\n  return v4;\n}", "assembly": "; \n; sub_C4314 from 0xc4314 to 0xc438c (120 bytes)\n; \n; 1 xrefs:\n; > sub_C4B28 @ 0xc4b2c\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\nCBZ             W1, loc_C4328                                          ; +0x0, 0xc4314\nLDR             W9, [X0,#0x824]                                        ; +0x4, 0xc4318\nCBNZ            W9, loc_C4374                                          ; +0x8, 0xc431c\nMOV             W8, #0xB                                               ; +0xc, 0xc4320\nB               loc_C4384                                              ; +0x10, 0xc4324\nLDR             S0, [X0,#0x81C]                                        ; +0x14, 0xc4328\nMOV             W8, #0xC2A00000                                        ; +0x18, 0xc432c\nFMOV            S1, W8                                                 ; +0x1c, 0xc4330\nFCMP            S0, S1                                                 ; +0x20, 0xc4334\nB.LE            loc_C4370                                              ; +0x24, 0xc4338\nLDR             S1, [X0,#0x820]                                        ; +0x28, 0xc433c\nADRP            X8, #dword_2F000@PAGE                                  ; +0x2c, 0xc4340\nADRP            X9, #dword_2F138@PAGE                                  ; +0x30, 0xc4344\nLDR             S2, [X8,#dword_2F000@PAGEOFF]                          ; +0x34, 0xc4348\nLDR             S3, [X9,#dword_2F138@PAGEOFF]                          ; +0x38, 0xc434c\nLDR             S4, [X0,#0x7F0]                                        ; +0x3c, 0xc4350\nSCVTF           S1, S1                                                 ; +0x40, 0xc4354\nFMADD           S0, S0, S3, S2                                         ; +0x44, 0xc4358\nFMUL            S1, S4, S1                                             ; +0x48, 0xc435c\nFMUL            S0, S0, S1                                             ; +0x4c, 0xc4360\nFCVTZU          W9, S0                                                 ; +0x50, 0xc4364\nSTR             W9, [X0,#0x824]                                        ; +0x54, 0xc4368\nB               loc_C4374                                              ; +0x58, 0xc436c\nLDR             W9, [X0,#0x824]                                        ; +0x5c, 0xc4370\nSUBS            W9, W9, W2                                             ; +0x60, 0xc4374\nMOV             W8, WZR                                                ; +0x64, 0xc4378\nCSEL            W9, WZR, W9, CC                                        ; +0x68, 0xc437c\nSTR             W9, [X0,#0x824]                                        ; +0x6c, 0xc4380\nMOV             W0, W8                                                 ; +0x70, 0xc4384\nRET                                                                    ; +0x74, 0xc4388", "xrefs": ["sub_C4B28 @ 0xc4b2c"], "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"}