{"type": "func", "start": 376492, "end": 376826, "name": "sub_5BEAC", "pseudocode": "// \n// sub_5BEAC from 0x5beac to 0x5bffa (334 bytes)\n// \n// 1 xrefs:\n// > sub_8A178 @ 0x8a530\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:48 +0000\n// \n\nfloat __fastcall sub_5BEAC(\n        float *a1,\n        float *a2,\n        float *a3,\n        int a4,\n        float *a5,\n        float *a6,\n        float a7,\n        float a8,\n        float a9,\n        float a10,\n        float a11,\n        float a12)\n{\n  float result; // r0\n  int v17; // r10\n  float v18; // s2\n  float v19; // s4\n  float v20; // s0\n  float v21; // s6\n  float v22; // s2\n  float v23; // s0\n  float v24; // s2\n  float v25; // s4\n  float v26; // s6\n  float v27; // s8\n  float v28; // s10\n  float v29; // s1\n  float v30; // s12\n  float v31; // s14\n\n  result = a7;\n  v17 = 0;\n  while ( v17 < a4 )\n  {\n    v18 = *a6;\n    v19 = a10;\n    v20 = (float)((float)((float)((float)((float)((float)((float)(*a3 * *a3) + (float)(a3[1] * a3[1]))\n                                                + (float)(a3[2] * a3[2]))\n                                        + (float)(a3[3] * a3[3]))\n                                + (float)(a3[4] * a3[4]))\n                        + (float)(a3[5] * a3[5]))\n                + (float)(a3[6] * a3[6]))\n        + (float)(a3[7] * a3[7]);\n    if ( v20 > *a6 )\n      v19 = a9;\n    v21 = *a5 + (float)(v19 * (float)(v20 - *a5));\n    *a5 = v21;\n    v22 = v18 + (float)((float)(v21 - v18) * v19);\n    v23 = a8;\n    *a6 = v22;\n    if ( v22 > a11 )\n    {\n      result = powf(v22 * a12, a7);\n      v23 = result * a8;\n    }\n    a3 += 8;\n    ++v17;\n    v24 = *a1 * v23;\n    v25 = a1[1] * v23;\n    v26 = a1[2] * v23;\n    v27 = a1[3] * v23;\n    v28 = a1[4] * v23;\n    v29 = a1[7];\n    v30 = a1[5] * v23;\n    v31 = a1[6] * v23;\n    a1 += 8;\n    *a2 = v24;\n    a2[1] = v25;\n    a2[2] = v26;\n    a2[3] = v27;\n    a2[4] = v28;\n    a2[5] = v30;\n    a2[6] = v31;\n    a2[7] = v29 * v23;\n    a2 += 8;\n  }\n  return result;\n}", "assembly": "; \n; sub_5BEAC from 0x5beac to 0x5bffa (334 bytes)\n; \n; 1 xrefs:\n; > sub_8A178 @ 0x8a530\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:48 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5beac\nADD             R7, SP, #0xC                                           ; +0x2, 0x5beae\nPUSH.W          {R7-R11}                                               ; +0x4, 0x5beb0\nVPUSH           {D7-D12}                                               ; +0x8, 0x5beb4\nVLDR            S0, [R7,#-0x48+arg_8]                                  ; +0xc, 0x5beb8\nMOV             R4, R0                                                 ; +0x10, 0x5bebc\nLDRD.W          R9, R11, [R7,#-0x48+arg_0]                             ; +0x12, 0x5bebe\nMOV             R8, R3                                                 ; +0x16, 0x5bec2\nVMOV            R0, S0                                                 ; +0x18, 0x5bec4\nVLDR            S16, [R7,#-0x48+arg_1C]                                ; +0x1c, 0x5bec8\nVLDR            S18, [R7,#-0x48+arg_18]                                ; +0x20, 0x5becc\nMOV             R5, R2                                                 ; +0x24, 0x5bed0\nVLDR            S20, [R7,#-0x48+arg_14]                                ; +0x26, 0x5bed2\nMOV             R6, R1                                                 ; +0x2a, 0x5bed6\nVLDR            S22, [R7,#-0x48+arg_10]                                ; +0x2c, 0x5bed8\nMOV.W           R10, #0                                                ; +0x30, 0x5bedc\nVLDR            S24, [R7,#-0x48+arg_C]                                 ; +0x34, 0x5bee0\nSTR             R0, [SP,#8+y]                                          ; +0x38, 0x5bee4\nCMP             R10, R8                                                ; +0x3a, 0x5bee6\nBGE.W           loc_5BFEE                                              ; +0x3c, 0x5bee8\nVLDR            S0, [R5]                                               ; +0x40, 0x5beec\nVLDR            S2, [R5,#4]                                            ; +0x44, 0x5bef0\nVMUL.F32        S0, S0, S0                                             ; +0x48, 0x5bef4\nVLDR            S4, [R5,#8]                                            ; +0x4c, 0x5bef8\nVLDR            S6, [R5,#0xC]                                          ; +0x50, 0x5befc\nVLDR            S8, [R5,#0x10]                                         ; +0x54, 0x5bf00\nVLDR            S10, [R5,#0x14]                                        ; +0x58, 0x5bf04\nVLDR            S12, [R5,#0x18]                                        ; +0x5c, 0x5bf08\nVLDR            S14, [R5,#0x1C]                                        ; +0x60, 0x5bf0c\nVMLA.F32        S0, S2, S2                                             ; +0x64, 0x5bf10\nVLDR            S2, [R11]                                              ; +0x68, 0x5bf14\nVMLA.F32        S0, S4, S4                                             ; +0x6c, 0x5bf18\nVMOV.F32        S4, S20                                                ; +0x70, 0x5bf1c\nVMLA.F32        S0, S6, S6                                             ; +0x74, 0x5bf20\nVMLA.F32        S0, S8, S8                                             ; +0x78, 0x5bf24\nVMLA.F32        S0, S10, S10                                           ; +0x7c, 0x5bf28\nVMLA.F32        S0, S12, S12                                           ; +0x80, 0x5bf2c\nVMLA.F32        S0, S14, S14                                           ; +0x84, 0x5bf30\nVCMPE.F32       S0, S2                                                 ; +0x88, 0x5bf34\nVMRS            APSR_nzcv, FPSCR                                       ; +0x8c, 0x5bf38\nIT GT                                                                  ; +0x90, 0x5bf3c\nVMOVGT.F32      S4, S22                                                ; +0x92, 0x5bf3e\nVLDR            S6, [R9]                                               ; +0x96, 0x5bf42\nVSUB.F32        S0, S0, S6                                             ; +0x9a, 0x5bf46\nVMLA.F32        S6, S4, S0                                             ; +0x9e, 0x5bf4a\nVSTR            S6, [R9]                                               ; +0xa2, 0x5bf4e\nVSUB.F32        S0, S6, S2                                             ; +0xa6, 0x5bf52\nVMLA.F32        S2, S0, S4                                             ; +0xaa, 0x5bf56\nVMOV.F32        S0, S24                                                ; +0xae, 0x5bf5a\nVCMPE.F32       S2, S18                                                ; +0xb2, 0x5bf5e\nVSTR            S2, [R11]                                              ; +0xb6, 0x5bf62\nVMRS            APSR_nzcv, FPSCR                                       ; +0xba, 0x5bf66\nBLE             loc_5BF82                                              ; +0xbe, 0x5bf6a\nVMUL.F32        S0, S2, S16                                            ; +0xc0, 0x5bf6c\nLDR             R1, [SP,#8+y]; y                                       ; +0xc4, 0x5bf70\nVMOV            R0, S0; x                                              ; +0xc6, 0x5bf72\nBLX             powf                                                   ; +0xca, 0x5bf76\nVMOV            S0, R0                                                 ; +0xce, 0x5bf7a\nVMUL.F32        S0, S0, S24                                            ; +0xd2, 0x5bf7e\nVLDR            S2, [R4]                                               ; +0xd6, 0x5bf82\nADDS            R5, #0x20 ; ' '                                        ; +0xda, 0x5bf86\nVLDR            S4, [R4,#4]                                            ; +0xdc, 0x5bf88\nADD.W           R10, R10, #1                                           ; +0xe0, 0x5bf8c\nVLDR            S6, [R4,#8]                                            ; +0xe4, 0x5bf90\nVMUL.F32        S2, S2, S0                                             ; +0xe8, 0x5bf94\nVLDR            S8, [R4,#0xC]                                          ; +0xec, 0x5bf98\nVMUL.F32        S4, S4, S0                                             ; +0xf0, 0x5bf9c\nVLDR            S10, [R4,#0x10]                                        ; +0xf4, 0x5bfa0\nVMUL.F32        S6, S6, S0                                             ; +0xf8, 0x5bfa4\nVLDR            S12, [R4,#0x14]                                        ; +0xfc, 0x5bfa8\nVMUL.F32        S8, S8, S0                                             ; +0x100, 0x5bfac\nVLDR            S14, [R4,#0x18]                                        ; +0x104, 0x5bfb0\nVMUL.F32        S10, S10, S0                                           ; +0x108, 0x5bfb4\nVLDR            S1, [R4,#0x1C]                                         ; +0x10c, 0x5bfb8\nVMUL.F32        S12, S12, S0                                           ; +0x110, 0x5bfbc\nVMUL.F32        S14, S14, S0                                           ; +0x114, 0x5bfc0\nADDS            R4, #0x20 ; ' '                                        ; +0x118, 0x5bfc4\nVMUL.F32        S0, S1, S0                                             ; +0x11a, 0x5bfc6\nVSTR            S2, [R6]                                               ; +0x11e, 0x5bfca\nVSTR            S4, [R6,#4]                                            ; +0x122, 0x5bfce\nVSTR            S6, [R6,#8]                                            ; +0x126, 0x5bfd2\nVSTR            S8, [R6,#0xC]                                          ; +0x12a, 0x5bfd6\nVSTR            S10, [R6,#0x10]                                        ; +0x12e, 0x5bfda\nVSTR            S12, [R6,#0x14]                                        ; +0x132, 0x5bfde\nVSTR            S14, [R6,#0x18]                                        ; +0x136, 0x5bfe2\nVSTR            S0, [R6,#0x1C]                                         ; +0x13a, 0x5bfe6\nADDS            R6, #0x20 ; ' '                                        ; +0x13e, 0x5bfea\nB               loc_5BEE6                                              ; +0x140, 0x5bfec\nVPOP            {D7-D12}                                               ; +0x142, 0x5bfee\nADD             SP, SP, #4                                             ; +0x146, 0x5bff2\nPOP.W           {R8-R11}                                               ; +0x148, 0x5bff4\nPOP             {R4-R7,PC}                                             ; +0x14c, 0x5bff8", "xrefs": ["sub_8A178 @ 0x8a530"], "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"}