{"type": "func", "start": 388852, "end": 389032, "name": "sub_5EEF4", "pseudocode": "// \n// sub_5EEF4 from 0x5eef4 to 0x5efa8 (180 bytes)\n// \n// 2 xrefs:\n// > sub_5F9D0 @ 0x5fb46\n// > sub_5F9D0 @ 0x5fe92\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_5EEF4(float *a1, float *a2, float *a3, float a4, float a5)\n{\n  float v5; // r5\n  int v6; // r4\n  float v11; // s0\n  float v12; // s6\n  float v13; // s2\n  float v14; // [sp+8h] [bp-28h] BYREF\n  float v15; // [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  if ( 2 * *((_DWORD *)a1 + 4) )\n  {\n    sincosf(a4 * 0.017453, &v15, &v14);\n    v11 = (float)(*(float *)(LODWORD(v5) + 8) * v14) - (float)(*(float *)(LODWORD(v5) + 16) * v15);\n    v12 = (float)(*(float *)(v6 + 16) * v15) - (float)(*(float *)(v6 + 8) * v14);\n    v13 = (float)(a1[5] * a5) / sqrtf((float)(v12 * v12) + (float)(v11 * v11));\n    *a2 = *a2 + (float)(v13 * v12);\n    *a3 = *a3 + (float)(v13 * v11);\n  }\n  else\n  {\n    sub_5EE6C((int)a1, a2, a3, a4, a5);\n  }\n  return 0;\n}", "assembly": "; \n; sub_5EEF4 from 0x5eef4 to 0x5efa8 (180 bytes)\n; \n; 2 xrefs:\n; > sub_5F9D0 @ 0x5fb46\n; > sub_5F9D0 @ 0x5fe92\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, 0x5eef4\nADD             R7, SP, #0xC                                           ; +0x2, 0x5eef6\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0x5eef8\nVPUSH           {D6-D8}; float                                         ; +0x8, 0x5eefc\nLDR             R5, [R0]                                               ; +0xc, 0x5ef00\nCBZ             R5, loc_5EF2C                                          ; +0xe, 0x5ef02\nLDR             R4, [R0,#4]                                            ; +0x10, 0x5ef04\nMOV             R6, R0                                                 ; +0x12, 0x5ef06\nCBZ             R4, loc_5EF2C                                          ; +0x14, 0x5ef08\nLDR             R0, [R6,#0x10]                                         ; +0x16, 0x5ef0a\nVMOV            S0, R3; int                                            ; +0x18, 0x5ef0c\nVLDR            S16, [R7,#-0x20+arg_0]                                 ; +0x1c, 0x5ef10\nMOV             R8, R2                                                 ; +0x20, 0x5ef14\nMOV             R9, R1                                                 ; +0x22, 0x5ef16\nLSLS            R0, R0, #1                                             ; +0x24, 0x5ef18\nBNE             loc_5EF30                                              ; +0x26, 0x5ef1a\nMOV             R0, R6; int                                            ; +0x28, 0x5ef1c\nMOV             R1, R9; int                                            ; +0x2a, 0x5ef1e\nMOV             R2, R8; int                                            ; +0x2c, 0x5ef20\nVSTR            S16, [SP,#0x10+var_10]                                 ; +0x2e, 0x5ef22\nBL              sub_5EE6C                                              ; +0x32, 0x5ef26\nB               loc_5EF9C                                              ; +0x36, 0x5ef2a\nMOVS            R0, #0x43 ; 'C'                                        ; +0x38, 0x5ef2c\nB               loc_5EF9E                                              ; +0x3a, 0x5ef2e\nVLDR            S2, =0.017453                                          ; +0x3c, 0x5ef30\nADD             R1, SP, #0x10+var_4                                    ; +0x40, 0x5ef34\nADD             R2, SP, #0x10+var_8                                    ; +0x42, 0x5ef36\nVMUL.F32        S0, S0, S2                                             ; +0x44, 0x5ef38\nVMOV            R0, S0                                                 ; +0x48, 0x5ef3c\nBLX             sincosf                                                ; +0x4c, 0x5ef40\nVLDR            S0, [R5,#8]                                            ; +0x50, 0x5ef44\nVLDR            S4, [SP,#0x10+var_8]                                   ; +0x54, 0x5ef48\nVLDR            S2, [R5,#0x10]                                         ; +0x58, 0x5ef4c\nVMUL.F32        S0, S0, S4                                             ; +0x5c, 0x5ef50\nVLDR            S6, [SP,#0x10+var_4]                                   ; +0x60, 0x5ef54\nVLDR            S8, [R4,#0x10]                                         ; +0x64, 0x5ef58\nVMLS.F32        S0, S2, S6                                             ; +0x68, 0x5ef5c\nVLDR            S2, [R4,#8]                                            ; +0x6c, 0x5ef60\nVMUL.F32        S6, S8, S6                                             ; +0x70, 0x5ef64\nVMLS.F32        S6, S2, S4                                             ; +0x74, 0x5ef68\nVLDR            S4, [R6,#0x14]                                         ; +0x78, 0x5ef6c\nVMUL.F32        S4, S4, S16                                            ; +0x7c, 0x5ef70\nVMUL.F32        S2, S6, S6                                             ; +0x80, 0x5ef74\nVMLA.F32        S2, S0, S0                                             ; +0x84, 0x5ef78\nVSQRT.F32       S2, S2                                                 ; +0x88, 0x5ef7c\nVDIV.F32        S2, S4, S2                                             ; +0x8c, 0x5ef80\nVLDR            S4, [R9]                                               ; +0x90, 0x5ef84\nVMLA.F32        S4, S2, S6                                             ; +0x94, 0x5ef88\nVSTR            S4, [R9]                                               ; +0x98, 0x5ef8c\nVLDR            S4, [R8]                                               ; +0x9c, 0x5ef90\nVMLA.F32        S4, S2, S0                                             ; +0xa0, 0x5ef94\nVSTR            S4, [R8]                                               ; +0xa4, 0x5ef98\nMOVS            R0, #0                                                 ; +0xa8, 0x5ef9c\nVPOP            {D6-D8}                                                ; +0xaa, 0x5ef9e\nPOP.W           {R8,R9,R11}                                            ; +0xae, 0x5efa2\nPOP             {R4-R7,PC}                                             ; +0xb2, 0x5efa6", "xrefs": ["sub_5F9D0 @ 0x5fb46", "sub_5F9D0 @ 0x5fe92"], "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"}