{"type": "func", "start": 375798, "end": 375988, "name": "sub_5BBF6", "pseudocode": "// \n// sub_5BBF6 from 0x5bbf6 to 0x5bcb4 (190 bytes)\n// \n// 1 xrefs:\n// > sub_8A178 @ 0x8a530\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\nfloat __fastcall sub_5BBF6(\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; // r5\n  float v18; // s4\n  float v19; // s0\n  float v20; // s2\n  float v21; // s6\n  float v22; // s0\n  float v23; // s2\n  float v24; // s0\n\n  result = a7;\n  v17 = 0;\n  while ( v17 < a4 )\n  {\n    v18 = a10;\n    v19 = *a6;\n    v20 = *a3 * *a3;\n    if ( v20 > *a6 )\n      v18 = a9;\n    v21 = *a5 + (float)((float)(v20 - *a5) * v18);\n    *a5 = v21;\n    v22 = v19 + (float)((float)(v21 - v19) * v18);\n    v23 = a8;\n    *a6 = v22;\n    if ( v22 > a11 )\n    {\n      result = powf(v22 * a12, a7);\n      v23 = result * a8;\n    }\n    v24 = *a1;\n    ++v17;\n    ++a3;\n    ++a1;\n    *a2++ = v24 * v23;\n  }\n  return result;\n}", "assembly": "; \n; sub_5BBF6 from 0x5bbf6 to 0x5bcb4 (190 bytes)\n; \n; 1 xrefs:\n; > sub_8A178 @ 0x8a530\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5bbf6\nADD             R7, SP, #0xC                                           ; +0x2, 0x5bbf8\nPUSH.W          {R7-R11}                                               ; +0x4, 0x5bbfa\nVPUSH           {D7-D12}                                               ; +0x8, 0x5bbfe\nVLDR            S0, [R7,#-0x48+arg_8]                                  ; +0xc, 0x5bc02\nMOV             R4, R0                                                 ; +0x10, 0x5bc06\nLDRD.W          R9, R11, [R7,#-0x48+arg_0]                             ; +0x12, 0x5bc08\nMOV             R8, R3                                                 ; +0x16, 0x5bc0c\nVMOV            R0, S0                                                 ; +0x18, 0x5bc0e\nVLDR            S16, [R7,#-0x48+arg_1C]                                ; +0x1c, 0x5bc12\nVLDR            S18, [R7,#-0x48+arg_18]                                ; +0x20, 0x5bc16\nMOV             R10, R2                                                ; +0x24, 0x5bc1a\nVLDR            S20, [R7,#-0x48+arg_14]                                ; +0x26, 0x5bc1c\nMOV             R6, R1                                                 ; +0x2a, 0x5bc20\nVLDR            S22, [R7,#-0x48+arg_10]                                ; +0x2c, 0x5bc22\nMOVS            R5, #0                                                 ; +0x30, 0x5bc26\nVLDR            S24, [R7,#-0x48+arg_C]                                 ; +0x32, 0x5bc28\nSTR             R0, [SP,#8+y]                                          ; +0x36, 0x5bc2c\nCMP             R5, R8                                                 ; +0x38, 0x5bc2e\nBGE             loc_5BCA8                                              ; +0x3a, 0x5bc30\nVLDR            S2, [R10]                                              ; +0x3c, 0x5bc32\nVMOV.F32        S4, S20                                                ; +0x40, 0x5bc36\nVLDR            S0, [R11]                                              ; +0x44, 0x5bc3a\nVMUL.F32        S2, S2, S2                                             ; +0x48, 0x5bc3e\nVCMPE.F32       S2, S0                                                 ; +0x4c, 0x5bc42\nVMRS            APSR_nzcv, FPSCR                                       ; +0x50, 0x5bc46\nIT GT                                                                  ; +0x54, 0x5bc4a\nVMOVGT.F32      S4, S22                                                ; +0x56, 0x5bc4c\nVLDR            S6, [R9]                                               ; +0x5a, 0x5bc50\nVSUB.F32        S2, S2, S6                                             ; +0x5e, 0x5bc54\nVMLA.F32        S6, S2, S4                                             ; +0x62, 0x5bc58\nVSTR            S6, [R9]                                               ; +0x66, 0x5bc5c\nVSUB.F32        S2, S6, S0                                             ; +0x6a, 0x5bc60\nVMLA.F32        S0, S2, S4                                             ; +0x6e, 0x5bc64\nVMOV.F32        S2, S24                                                ; +0x72, 0x5bc68\nVCMPE.F32       S0, S18                                                ; +0x76, 0x5bc6c\nVSTR            S0, [R11]                                              ; +0x7a, 0x5bc70\nVMRS            APSR_nzcv, FPSCR                                       ; +0x7e, 0x5bc74\nBLE             loc_5BC90                                              ; +0x82, 0x5bc78\nVMUL.F32        S0, S0, S16                                            ; +0x84, 0x5bc7a\nLDR             R1, [SP,#8+y]; y                                       ; +0x88, 0x5bc7e\nVMOV            R0, S0; x                                              ; +0x8a, 0x5bc80\nBLX             powf                                                   ; +0x8e, 0x5bc84\nVMOV            S0, R0                                                 ; +0x92, 0x5bc88\nVMUL.F32        S2, S0, S24                                            ; +0x96, 0x5bc8c\nVLDR            S0, [R4]                                               ; +0x9a, 0x5bc90\nADDS            R5, #1                                                 ; +0x9e, 0x5bc94\nADD.W           R10, R10, #4                                           ; +0xa0, 0x5bc96\nADDS            R4, #4                                                 ; +0xa4, 0x5bc9a\nVMUL.F32        S0, S0, S2                                             ; +0xa6, 0x5bc9c\nVSTR            S0, [R6]                                               ; +0xaa, 0x5bca0\nADDS            R6, #4                                                 ; +0xae, 0x5bca4\nB               loc_5BC2E                                              ; +0xb0, 0x5bca6\nVPOP            {D7-D12}                                               ; +0xb2, 0x5bca8\nADD             SP, SP, #4                                             ; +0xb6, 0x5bcac\nPOP.W           {R8-R11}                                               ; +0xb8, 0x5bcae\nPOP             {R4-R7,PC}                                             ; +0xbc, 0x5bcb2", "xrefs": ["sub_8A178 @ 0x8a530"], "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"}