{"type": "func", "start": 388548, "end": 388712, "name": "sub_5EDC4", "pseudocode": "// \n// sub_5EDC4 from 0x5edc4 to 0x5ee68 (164 bytes)\n// \n// 2 xrefs:\n// > sub_5F9D0 @ 0x5fd14\n// > sub_5F9D0 @ 0x5fea0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:40:50 +0000\n// \n\nint __fastcall sub_5EDC4(float *a1, float *a2, float *a3, int a4, float a5)\n{\n  float v5; // r6\n  int v6; // r4\n  float v7; // s18\n  float v11; // s4\n  float v12; // s6\n  float v13; // [sp+8h] [bp-28h] BYREF\n  float v14; // [sp+Ch] [bp-24h] BYREF\n\n  v5 = *a1;\n  if ( !*(_DWORD *)a1 )\n    return 67;\n  v6 = *((_DWORD *)a1 + 1);\n  if ( !v6 )\n    return 67;\n  v7 = a1[4];\n  if ( v7 == 0.0 )\n  {\n    sub_5EE6C((int)a1, (int)a2, (int)a3, a4, a5);\n  }\n  else\n  {\n    sincosf(*(float *)&a4 * 0.017453, &v14, &v13);\n    v11 = v14;\n    v12 = v13;\n    *a2 = *a2\n        + (float)((float)((float)(*(float *)(v6 + 16) * v14) - (float)(*(float *)(v6 + 8) * v13)) * (float)(v7 * a5));\n    *a3 = *a3\n        + (float)((float)((float)(*(float *)(LODWORD(v5) + 8) * v12) - (float)(*(float *)(LODWORD(v5) + 16) * v11))\n                * (float)(v7 * a5));\n  }\n  return 0;\n}", "assembly": "; \n; sub_5EDC4 from 0x5edc4 to 0x5ee68 (164 bytes)\n; \n; 2 xrefs:\n; > sub_5F9D0 @ 0x5fd14\n; > sub_5F9D0 @ 0x5fea0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:40:50 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5edc4\nADD             R7, SP, #0xC                                           ; +0x2, 0x5edc6\nPUSH.W          {R8}                                                   ; +0x4, 0x5edc8\nVPUSH           {D6-D9}; float                                         ; +0x8, 0x5edcc\nLDR             R6, [R0]                                               ; +0xc, 0x5edd0\nCBZ             R6, loc_5EE00                                          ; +0xe, 0x5edd2\nLDR             R4, [R0,#4]                                            ; +0x10, 0x5edd4\nCBZ             R4, loc_5EE00                                          ; +0x12, 0x5edd6\nVLDR            S18, [R0,#0x10]                                        ; +0x14, 0x5edd8\nVMOV            S0, R3; int                                            ; +0x18, 0x5eddc\nVLDR            S16, [R7,#-0x20+arg_0]                                 ; +0x1c, 0x5ede0\nMOV             R8, R2                                                 ; +0x20, 0x5ede4\nVCMP.F32        S18, #0.0                                              ; +0x22, 0x5ede6\nMOV             R5, R1                                                 ; +0x26, 0x5edea\nVMRS            APSR_nzcv, FPSCR                                       ; +0x28, 0x5edec\nBNE             loc_5EE04                                              ; +0x2c, 0x5edf0\nMOV             R1, R5; int                                            ; +0x2e, 0x5edf2\nMOV             R2, R8; int                                            ; +0x30, 0x5edf4\nVSTR            S16, [SP,#0x10+var_10]                                 ; +0x32, 0x5edf6\nBL              sub_5EE6C                                              ; +0x36, 0x5edfa\nB               loc_5EE5C                                              ; +0x3a, 0x5edfe\nMOVS            R0, #0x43 ; 'C'                                        ; +0x3c, 0x5ee00\nB               loc_5EE5E                                              ; +0x3e, 0x5ee02\nVLDR            S2, =0.017453                                          ; +0x40, 0x5ee04\nADD             R1, SP, #0x10+var_4                                    ; +0x44, 0x5ee08\nADD             R2, SP, #0x10+var_8                                    ; +0x46, 0x5ee0a\nVMUL.F32        S0, S0, S2                                             ; +0x48, 0x5ee0c\nVMOV            R0, S0                                                 ; +0x4c, 0x5ee10\nBLX             sincosf                                                ; +0x50, 0x5ee14\nVLDR            S2, [R4,#0x10]                                         ; +0x54, 0x5ee18\nVLDR            S4, [SP,#0x10+var_4]                                   ; +0x58, 0x5ee1c\nVLDR            S0, [R4,#8]                                            ; +0x5c, 0x5ee20\nVMUL.F32        S2, S2, S4                                             ; +0x60, 0x5ee24\nVLDR            S6, [SP,#0x10+var_8]                                   ; +0x64, 0x5ee28\nVLDR            S8, [R5]                                               ; +0x68, 0x5ee2c\nVMLS.F32        S2, S0, S6                                             ; +0x6c, 0x5ee30\nVMUL.F32        S0, S18, S16                                           ; +0x70, 0x5ee34\nVMLA.F32        S8, S2, S0                                             ; +0x74, 0x5ee38\nVSTR            S8, [R5]                                               ; +0x78, 0x5ee3c\nVLDR            S2, [R6,#8]                                            ; +0x7c, 0x5ee40\nVLDR            S8, [R6,#0x10]                                         ; +0x80, 0x5ee44\nVMUL.F32        S2, S2, S6                                             ; +0x84, 0x5ee48\nVMLS.F32        S2, S8, S4                                             ; +0x88, 0x5ee4c\nVLDR            S4, [R8]                                               ; +0x8c, 0x5ee50\nVMLA.F32        S4, S2, S0                                             ; +0x90, 0x5ee54\nVSTR            S4, [R8]                                               ; +0x94, 0x5ee58\nMOVS            R0, #0                                                 ; +0x98, 0x5ee5c\nVPOP            {D6-D9}                                                ; +0x9a, 0x5ee5e\nPOP.W           {R8}                                                   ; +0x9e, 0x5ee62\nPOP             {R4-R7,PC}                                             ; +0xa2, 0x5ee66", "xrefs": ["sub_5F9D0 @ 0x5fd14", "sub_5F9D0 @ 0x5fea0"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}