{"type": "func", "start": 379880, "end": 380076, "name": "sub_5CBE8", "pseudocode": "// \n// sub_5CBE8 from 0x5cbe8 to 0x5ccac (196 bytes)\n// \n// 1 xrefs:\n// > sub_A51F0 @ 0xa521a\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:49 +0000\n// \n\nfloat *__fastcall sub_5CBE8(\n        int a1,\n        float a2,\n        float a3,\n        float a4,\n        float *a5,\n        float *a6,\n        float *a7,\n        float *a8,\n        float *a9)\n{\n  float v9; // s6\n  float v10; // s2\n  float v12; // s4\n  float v13; // s2\n  float v14; // s6\n  float v15; // s8\n  float v16; // s4\n  float v17; // s4\n  float v19; // [sp+0h] [bp-10h] BYREF\n  float v20; // [sp+4h] [bp-Ch] BYREF\n\n  v19 = a3;\n  v20 = a4;\n  v9 = 10.0;\n  v10 = a2 * 0.49;\n  if ( a3 > 10.0 )\n    v9 = a3;\n  v12 = 22000.0;\n  if ( v9 < 22000.0 )\n    v12 = v9;\n  if ( v12 < v10 )\n    v10 = v12;\n  sincosf((float)(v10 * 6.2832) / a2, &v20, &v19);\n  v13 = v19;\n  v14 = v20 / (float)(a4 + a4);\n  v15 = 1.0 / (float)(v14 + 1.0);\n  v16 = v15 * (float)(1.0 - v19);\n  *a6 = v16;\n  v17 = v16 * 0.5;\n  *a7 = v17;\n  *a5 = v17;\n  *a8 = (float)(v13 * -2.0) * v15;\n  *a9 = v15 * (float)(1.0 - v14);\n  return a9;\n}", "assembly": "; \n; sub_5CBE8 from 0x5cbe8 to 0x5ccac (196 bytes)\n; \n; 1 xrefs:\n; > sub_A51F0 @ 0xa521a\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:49 +0000\n; \nPUSH            {R2-R4,R6,R7,LR}                                       ; +0x0, 0x5cbe8\nADD             R7, SP, #0x10                                          ; +0x2, 0x5cbea\nVMOV.F32        S6, #10.0                                              ; +0x4, 0x5cbec\nVLDR            S2, =0.49                                              ; +0x8, 0x5cbf0\nVMOV            S0, R1                                                 ; +0xc, 0x5cbf4\nADD             R1, SP, #8+var_4                                       ; +0x10, 0x5cbf8\nVMOV            S4, R2                                                 ; +0x12, 0x5cbfa\nMOV             R2, SP                                                 ; +0x16, 0x5cbfe\nVMUL.F32        S2, S0, S2                                             ; +0x18, 0x5cc00\nMOV             R4, R3                                                 ; +0x1c, 0x5cc04\nVCMPE.F32       S4, S6                                                 ; +0x1e, 0x5cc06\nVMRS            APSR_nzcv, FPSCR                                       ; +0x22, 0x5cc0a\nIT GT                                                                  ; +0x26, 0x5cc0e\nVMOVGT.F32      S6, S4                                                 ; +0x28, 0x5cc10\nVLDR            S4, =22000.0                                           ; +0x2c, 0x5cc14\nVCMPE.F32       S6, S4                                                 ; +0x30, 0x5cc18\nVMRS            APSR_nzcv, FPSCR                                       ; +0x34, 0x5cc1c\nIT LT                                                                  ; +0x38, 0x5cc20\nVMOVLT.F32      S4, S6                                                 ; +0x3a, 0x5cc22\nVCMPE.F32       S4, S2                                                 ; +0x3e, 0x5cc26\nVMRS            APSR_nzcv, FPSCR                                       ; +0x42, 0x5cc2a\nIT LT                                                                  ; +0x46, 0x5cc2e\nVMOVLT.F32      S2, S4                                                 ; +0x48, 0x5cc30\nVLDR            S4, =6.2832                                            ; +0x4c, 0x5cc34\nVMUL.F32        S2, S2, S4                                             ; +0x50, 0x5cc38\nVDIV.F32        S0, S2, S0                                             ; +0x54, 0x5cc3c\nVMOV            R0, S0                                                 ; +0x58, 0x5cc40\nBLX             sincosf                                                ; +0x5c, 0x5cc44\nVMOV            S6, R4                                                 ; +0x60, 0x5cc48\nVLDR            S8, [SP,#8+var_4]                                      ; +0x64, 0x5cc4c\nVMOV.F32        S0, #1.0                                               ; +0x68, 0x5cc50\nVLDR            S2, [SP,#8+var_8]                                      ; +0x6c, 0x5cc54\nVADD.F32        S6, S6, S6                                             ; +0x70, 0x5cc58\nLDR             R0, [R7,#-8+arg_4]                                     ; +0x74, 0x5cc5c\nVMOV.F32        S10, #0.5                                              ; +0x76, 0x5cc5e\nVSUB.F32        S4, S0, S2                                             ; +0x7a, 0x5cc62\nVDIV.F32        S6, S8, S6                                             ; +0x7e, 0x5cc66\nVADD.F32        S8, S6, S0                                             ; +0x82, 0x5cc6a\nVDIV.F32        S8, S0, S8                                             ; +0x86, 0x5cc6e\nVMUL.F32        S4, S8, S4                                             ; +0x8a, 0x5cc72\nVSUB.F32        S0, S0, S6                                             ; +0x8e, 0x5cc76\nVSTR            S4, [R0]                                               ; +0x92, 0x5cc7a\nVMUL.F32        S4, S4, S10                                            ; +0x96, 0x5cc7e\nLDR             R0, [R7,#-8+arg_8]                                     ; +0x9a, 0x5cc82\nVMUL.F32        S0, S8, S0                                             ; +0x9c, 0x5cc84\nVSTR            S4, [R0]                                               ; +0xa0, 0x5cc88\nLDR             R0, [R7,#-8+arg_0]                                     ; +0xa4, 0x5cc8c\nVSTR            S4, [R0]                                               ; +0xa6, 0x5cc8e\nVMOV.F32        S4, #-2.0                                              ; +0xaa, 0x5cc92\nLDR             R0, [R7,#-8+arg_C]                                     ; +0xae, 0x5cc96\nVMUL.F32        S2, S2, S4                                             ; +0xb0, 0x5cc98\nVMUL.F32        S2, S2, S8                                             ; +0xb4, 0x5cc9c\nVSTR            S2, [R0]                                               ; +0xb8, 0x5cca0\nLDR             R0, [R7,#-8+arg_10]                                    ; +0xbc, 0x5cca4\nVSTR            S0, [R0]                                               ; +0xbe, 0x5cca6\nPOP             {R2-R4,R6,R7,PC}                                       ; +0xc2, 0x5ccaa", "xrefs": ["sub_A51F0 @ 0xa521a"], "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"}