{"type": "func", "start": 388244, "end": 388346, "name": "sub_5EC94", "pseudocode": "// \n// sub_5EC94 from 0x5ec94 to 0x5ecfa (102 bytes)\n// \n// 3 xrefs:\n// > sub_5ED08 @ 0x5ed16\n// > sub_5F2D0 @ 0x5f452\n// > sub_5F2D0 @ 0x5f462\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\nint __fastcall sub_5EC94(int a1, int a2, int a3)\n{\n  int v3; // r3\n  float v4; // s0\n  float v5; // s4\n  float v6; // s2\n  float v7; // s6\n  float v8; // s6\n\n  v3 = 31;\n  if ( a2 && a3 )\n  {\n    *(_DWORD *)a1 = a2;\n    *(_DWORD *)(a1 + 4) = a3;\n    v4 = *(float *)(a2 + 4);\n    v5 = *(float *)(a3 + 4);\n    v6 = (float)(v5 + v4) * 0.5;\n    if ( v4 > v5 )\n    {\n      if ( v6 >= 0.0 )\n        v7 = -180.0;\n      else\n        v7 = 180.0;\n      v6 = v6 + v7;\n    }\n    v8 = v5 - v4;\n    v3 = 0;\n    if ( v4 > v5 )\n      v8 = (float)(v5 - v4) + 360.0;\n    *(float *)(a1 + 8) = v6;\n    *(float *)(a1 + 12) = v8;\n  }\n  return v3;\n}", "assembly": "; \n; sub_5EC94 from 0x5ec94 to 0x5ecfa (102 bytes)\n; \n; 3 xrefs:\n; > sub_5ED08 @ 0x5ed16\n; > sub_5F2D0 @ 0x5f452\n; > sub_5F2D0 @ 0x5f462\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\nMOVS            R3, #0x1F                                              ; +0x0, 0x5ec94\nCBZ             R1, loc_5ECF6                                          ; +0x2, 0x5ec96\nCBZ             R2, loc_5ECF6                                          ; +0x4, 0x5ec98\nSTRD.W          R1, R2, [R0]                                           ; +0x6, 0x5ec9a\nVMOV.F32        S6, #0.5                                               ; +0xa, 0x5ec9e\nVLDR            S0, [R1,#4]                                            ; +0xe, 0x5eca2\nVLDR            S4, [R2,#4]                                            ; +0x12, 0x5eca6\nVADD.F32        S2, S4, S0                                             ; +0x16, 0x5ecaa\nVCMPE.F32       S0, S4                                                 ; +0x1a, 0x5ecae\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1e, 0x5ecb2\nVMUL.F32        S2, S2, S6                                             ; +0x22, 0x5ecb6\nBLE             loc_5ECD2                                              ; +0x26, 0x5ecba\nVCMPE.F32       S2, #0.0                                               ; +0x28, 0x5ecbc\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2c, 0x5ecc0\nITE LT                                                                 ; +0x30, 0x5ecc4\nVLDRLT          S6, =180.0                                             ; +0x32, 0x5ecc6\nVLDRGE          S6, =-180.0                                            ; +0x36, 0x5ecca\nVADD.F32        S2, S2, S6                                             ; +0x3a, 0x5ecce\nVSUB.F32        S6, S4, S0                                             ; +0x3e, 0x5ecd2\nVLDR            S8, =360.0                                             ; +0x42, 0x5ecd6\nVCMPE.F32       S0, S4                                                 ; +0x46, 0x5ecda\nMOVS            R3, #0                                                 ; +0x4a, 0x5ecde\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4c, 0x5ece0\nVADD.F32        S8, S6, S8                                             ; +0x50, 0x5ece4\nIT GT                                                                  ; +0x54, 0x5ece8\nVMOVGT.F32      S6, S8                                                 ; +0x56, 0x5ecea\nVSTR            S2, [R0,#8]                                            ; +0x5a, 0x5ecee\nVSTR            S6, [R0,#0xC]                                          ; +0x5e, 0x5ecf2\nMOV             R0, R3                                                 ; +0x62, 0x5ecf6\nBX              LR                                                     ; +0x64, 0x5ecf8", "xrefs": ["sub_5ED08 @ 0x5ed16", "sub_5F2D0 @ 0x5f452", "sub_5F2D0 @ 0x5f462"], "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"}