{"type": "func", "start": 377636, "end": 377722, "name": "sub_5C324", "pseudocode": "// \n// sub_5C324 from 0x5c324 to 0x5c37a (86 bytes)\n// \n// 1 xrefs:\n// > sub_5C446 @ 0x5c44c\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\nint __fastcall sub_5C324(float *a1, int a2, float *a3, int a4)\n{\n  float v4; // s0\n\n  switch ( a2 )\n  {\n    case 2:\n      *a3 = sqrtf(a1[98]);\n      if ( a4 )\n      {\n        v4 = a1[98];\n        goto LABEL_10;\n      }\n      break;\n    case 1:\n      *a3 = a1[101];\n      if ( a4 )\n      {\n        v4 = a1[101];\n        goto LABEL_10;\n      }\n      break;\n    case 0:\n      *a3 = a1[100];\n      if ( a4 )\n      {\n        v4 = a1[100];\nLABEL_10:\n        sub_BE420(a4, 32, \"%.02f\", v4);\n      }\n      break;\n  }\n  return 0;\n}", "assembly": "; \n; sub_5C324 from 0x5c324 to 0x5c37a (86 bytes)\n; \n; 1 xrefs:\n; > sub_5C446 @ 0x5c44c\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            {R5-R7,LR}                                             ; +0x0, 0x5c324\nADD             R7, SP, #8                                             ; +0x2, 0x5c326\nCMP             R1, #2                                                 ; +0x4, 0x5c328\nBEQ             loc_5C340                                              ; +0x6, 0x5c32a\nCMP             R1, #1                                                 ; +0x8, 0x5c32c\nBEQ             loc_5C354                                              ; +0xa, 0x5c32e\nCBNZ            R1, loc_5C374                                          ; +0xc, 0x5c330\nLDR.W           R1, [R0,#0x190]                                        ; +0xe, 0x5c332\nSTR             R1, [R2]                                               ; +0x12, 0x5c336\nCBZ             R3, loc_5C374                                          ; +0x14, 0x5c338\nVLDR            S0, [R0,#0x190]                                        ; +0x16, 0x5c33a\nB               loc_5C360                                              ; +0x1a, 0x5c33e\nVLDR            S0, [R0,#0x188]                                        ; +0x1c, 0x5c340\nVSQRT.F32       S0, S0                                                 ; +0x20, 0x5c344\nVSTR            S0, [R2]                                               ; +0x24, 0x5c348\nCBZ             R3, loc_5C374                                          ; +0x28, 0x5c34c\nVLDR            S0, [R0,#0x188]                                        ; +0x2a, 0x5c34e\nB               loc_5C360                                              ; +0x2e, 0x5c352\nLDR.W           R1, [R0,#0x194]                                        ; +0x30, 0x5c354\nSTR             R1, [R2]                                               ; +0x34, 0x5c358\nCBZ             R3, loc_5C374                                          ; +0x36, 0x5c35a\nVLDR            S0, [R0,#0x194]                                        ; +0x38, 0x5c35c\nVCVT.F64.F32    D0, S0                                                 ; +0x3c, 0x5c360\nMOV             R0, R3                                                 ; +0x40, 0x5c364\nMOVS            R1, #0x20 ; ' '                                        ; +0x42, 0x5c366\nVSTR            D0, [SP,#var_s0]                                       ; +0x44, 0x5c368\nLDR             R2, =(a02f - 0x5C372); \"%.02f\" ...                     ; +0x48, 0x5c36c\nADD             R2, PC; \"%.02f\"                                        ; +0x4a, 0x5c36e\nBL              sub_BE420                                              ; +0x4c, 0x5c370\nMOVS            R0, #0                                                 ; +0x50, 0x5c374\nADD             SP, SP, #8                                             ; +0x52, 0x5c376\nPOP             {R7,PC}                                                ; +0x54, 0x5c378", "xrefs": ["sub_5C446 @ 0x5c44c"], "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"}