{"type": "func", "start": 461884, "end": 462008, "name": "sub_70C3C", "pseudocode": "// \n// sub_70C3C from 0x70c3c to 0x70cb8 (124 bytes)\n// \n// 1 xrefs:\n// > sub_70DB0 @ 0x70dbc\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\n__int64 __fastcall sub_70C3C(float *a1, int a2, float *a3, __int64 a4)\n{\n  float v4; // s0\n\n  switch ( a2 )\n  {\n    case 2:\n      *a3 = sqrtf(a1[140]);\n      if ( a4 )\n      {\n        v4 = a1[140];\n        goto LABEL_10;\n      }\n      break;\n    case 1:\n      *a3 = a1[143];\n      if ( a4 )\n      {\n        v4 = a1[143];\n        goto LABEL_10;\n      }\n      break;\n    case 0:\n      *a3 = a1[142];\n      if ( a4 )\n      {\n        v4 = a1[142];\nLABEL_10:\n        sub_E3FC8(a4, 32, \"%.02f\", v4);\n      }\n      break;\n  }\n  return 0;\n}", "assembly": "; \n; sub_70C3C from 0x70c3c to 0x70cb8 (124 bytes)\n; \n; 1 xrefs:\n; > sub_70DB0 @ 0x70dbc\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\nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0x70c3c\nCMP             W1, #2                                                 ; +0x4, 0x70c40\nMOV             X29, SP                                                ; +0x8, 0x70c44\nB.EQ            loc_70C6C                                              ; +0xc, 0x70c48\nCMP             W1, #1                                                 ; +0x10, 0x70c4c\nB.EQ            loc_70C84                                              ; +0x14, 0x70c50\nCBNZ            W1, loc_70CAC                                          ; +0x18, 0x70c54\nLDR             W8, [X0,#0x238]                                        ; +0x1c, 0x70c58\nSTR             W8, [X2]                                               ; +0x20, 0x70c5c\nCBZ             X3, loc_70CAC                                          ; +0x24, 0x70c60\nLDR             S0, [X0,#0x238]                                        ; +0x28, 0x70c64\nB               loc_70C94                                              ; +0x2c, 0x70c68\nLDR             S0, [X0,#0x230]                                        ; +0x30, 0x70c6c\nFSQRT           S0, S0                                                 ; +0x34, 0x70c70\nSTR             S0, [X2]                                               ; +0x38, 0x70c74\nCBZ             X3, loc_70CAC                                          ; +0x3c, 0x70c78\nLDR             S0, [X0,#0x230]                                        ; +0x40, 0x70c7c\nB               loc_70C94                                              ; +0x44, 0x70c80\nLDR             W8, [X0,#0x23C]                                        ; +0x48, 0x70c84\nSTR             W8, [X2]                                               ; +0x4c, 0x70c88\nCBZ             X3, loc_70CAC                                          ; +0x50, 0x70c8c\nLDR             S0, [X0,#0x23C]                                        ; +0x54, 0x70c90\nADRP            X2, #a02f@PAGE; \"%.02f\"                                ; +0x58, 0x70c94\nFCVT            D0, S0                                                 ; +0x5c, 0x70c98\nADD             X2, X2, #a02f@PAGEOFF; \"%.02f\"                         ; +0x60, 0x70c9c\nMOV             W1, #0x20 ; ' '                                        ; +0x64, 0x70ca0\nMOV             X0, X3                                                 ; +0x68, 0x70ca4\nBL              sub_E3FC8                                              ; +0x6c, 0x70ca8\nMOV             W0, WZR                                                ; +0x70, 0x70cac\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x74, 0x70cb0\nRET                                                                    ; +0x78, 0x70cb4", "xrefs": ["sub_70DB0 @ 0x70dbc"], "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"}