{"type": "func", "start": 375988, "end": 376200, "name": "sub_5BCB4", "pseudocode": "// \n// sub_5BCB4 from 0x5bcb4 to 0x5bd88 (212 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_5BCB4(\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; // s0\n  float v19; // s4\n  float v20; // s2\n  float v21; // s6\n  float v22; // s0\n  float v23; // s2\n  float v24; // s0\n  float v25; // s4\n\n  result = a7;\n  v17 = 0;\n  while ( v17 < a4 )\n  {\n    v18 = *a6;\n    v19 = (float)(*a3 * *a3) + (float)(a3[1] * a3[1]);\n    v20 = a10;\n    if ( v19 > *a6 )\n      v20 = a9;\n    v21 = *a5 + (float)(v20 * (float)(v19 - *a5));\n    *a5 = v21;\n    v22 = v18 + (float)((float)(v21 - v18) * v20);\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    a3 += 2;\n    v25 = a1[1];\n    a1 += 2;\n    ++v17;\n    *a2 = v24 * v23;\n    a2[1] = v25 * v23;\n    a2 += 2;\n  }\n  return result;\n}", "assembly": "; \n; sub_5BCB4 from 0x5bcb4 to 0x5bd88 (212 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, 0x5bcb4\nADD             R7, SP, #0xC                                           ; +0x2, 0x5bcb6\nPUSH.W          {R7-R11}                                               ; +0x4, 0x5bcb8\nVPUSH           {D7-D12}                                               ; +0x8, 0x5bcbc\nVLDR            S0, [R7,#-0x48+arg_8]                                  ; +0xc, 0x5bcc0\nMOV             R4, R0                                                 ; +0x10, 0x5bcc4\nLDRD.W          R9, R11, [R7,#-0x48+arg_0]                             ; +0x12, 0x5bcc6\nMOV             R8, R3                                                 ; +0x16, 0x5bcca\nVMOV            R0, S0                                                 ; +0x18, 0x5bccc\nVLDR            S16, [R7,#-0x48+arg_1C]                                ; +0x1c, 0x5bcd0\nVLDR            S18, [R7,#-0x48+arg_18]                                ; +0x20, 0x5bcd4\nMOV             R5, R2                                                 ; +0x24, 0x5bcd8\nVLDR            S20, [R7,#-0x48+arg_14]                                ; +0x26, 0x5bcda\nMOV             R6, R1                                                 ; +0x2a, 0x5bcde\nVLDR            S22, [R7,#-0x48+arg_10]                                ; +0x2c, 0x5bce0\nMOV.W           R10, #0                                                ; +0x30, 0x5bce4\nVLDR            S24, [R7,#-0x48+arg_C]                                 ; +0x34, 0x5bce8\nSTR             R0, [SP,#8+y]                                          ; +0x38, 0x5bcec\nCMP             R10, R8                                                ; +0x3a, 0x5bcee\nBGE             loc_5BD7C                                              ; +0x3c, 0x5bcf0\nVLDR            S0, [R5]                                               ; +0x3e, 0x5bcf2\nVLDR            S2, [R5,#4]                                            ; +0x42, 0x5bcf6\nVMUL.F32        S4, S0, S0                                             ; +0x46, 0x5bcfa\nVLDR            S0, [R11]                                              ; +0x4a, 0x5bcfe\nVMLA.F32        S4, S2, S2                                             ; +0x4e, 0x5bd02\nVMOV.F32        S2, S20                                                ; +0x52, 0x5bd06\nVCMPE.F32       S4, S0                                                 ; +0x56, 0x5bd0a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5a, 0x5bd0e\nIT GT                                                                  ; +0x5e, 0x5bd12\nVMOVGT.F32      S2, S22                                                ; +0x60, 0x5bd14\nVLDR            S6, [R9]                                               ; +0x64, 0x5bd18\nVSUB.F32        S4, S4, S6                                             ; +0x68, 0x5bd1c\nVMLA.F32        S6, S2, S4                                             ; +0x6c, 0x5bd20\nVSTR            S6, [R9]                                               ; +0x70, 0x5bd24\nVSUB.F32        S4, S6, S0                                             ; +0x74, 0x5bd28\nVMLA.F32        S0, S4, S2                                             ; +0x78, 0x5bd2c\nVMOV.F32        S2, S24                                                ; +0x7c, 0x5bd30\nVCMPE.F32       S0, S18                                                ; +0x80, 0x5bd34\nVSTR            S0, [R11]                                              ; +0x84, 0x5bd38\nVMRS            APSR_nzcv, FPSCR                                       ; +0x88, 0x5bd3c\nBLE             loc_5BD58                                              ; +0x8c, 0x5bd40\nVMUL.F32        S0, S0, S16                                            ; +0x8e, 0x5bd42\nLDR             R1, [SP,#8+y]; y                                       ; +0x92, 0x5bd46\nVMOV            R0, S0; x                                              ; +0x94, 0x5bd48\nBLX             powf                                                   ; +0x98, 0x5bd4c\nVMOV            S0, R0                                                 ; +0x9c, 0x5bd50\nVMUL.F32        S2, S0, S24                                            ; +0xa0, 0x5bd54\nVLDR            S0, [R4]                                               ; +0xa4, 0x5bd58\nADDS            R5, #8                                                 ; +0xa8, 0x5bd5c\nVLDR            S4, [R4,#4]                                            ; +0xaa, 0x5bd5e\nADDS            R4, #8                                                 ; +0xae, 0x5bd62\nVMUL.F32        S0, S0, S2                                             ; +0xb0, 0x5bd64\nADD.W           R10, R10, #1                                           ; +0xb4, 0x5bd68\nVMUL.F32        S2, S4, S2                                             ; +0xb8, 0x5bd6c\nVSTR            S0, [R6]                                               ; +0xbc, 0x5bd70\nVSTR            S2, [R6,#4]                                            ; +0xc0, 0x5bd74\nADDS            R6, #8                                                 ; +0xc4, 0x5bd78\nB               loc_5BCEE                                              ; +0xc6, 0x5bd7a\nVPOP            {D7-D12}                                               ; +0xc8, 0x5bd7c\nADD             SP, SP, #4                                             ; +0xcc, 0x5bd80\nPOP.W           {R8-R11}                                               ; +0xce, 0x5bd82\nPOP             {R4-R7,PC}                                             ; +0xd2, 0x5bd86", "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"}