{"type": "func", "start": 894660, "end": 894720, "name": "DSP_Saturate", "pseudocode": "// \n// DSP_Saturate from 0xda6c4 to 0xda700 (60 bytes)\n// \n// 4 xrefs:\n// > j_DSP_Saturate @ 0xe3418\n// > <???> @ 0x1dac\n// > j_DSP_Saturate @ 0xe3418\n// > <???> @ 0xe7270\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 DSP_Saturate(float *a1)\n{\n  if ( *a1 >= 0.99997 )\n  {\n    *a1 = 0.99997;\n    return -3;\n  }\n  else if ( *a1 > -1.0 )\n  {\n    return 0;\n  }\n  else\n  {\n    *a1 = -1.0;\n    return -4;\n  }\n}", "assembly": "; \n; DSP_Saturate from 0xda6c4 to 0xda700 (60 bytes)\n; \n; 4 xrefs:\n; > j_DSP_Saturate @ 0xe3418\n; > <???> @ 0x1dac\n; > j_DSP_Saturate @ 0xe3418\n; > <???> @ 0xe7270\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\nVLDR            S14, =0.99997                                          ; +0x0, 0xda6c4\nVLDR            S15, [R0]                                              ; +0x4, 0xda6c8\nVCMPE.F32       S15, S14                                               ; +0x8, 0xda6cc\nVMRS            APSR_nzcv, FPSCR                                       ; +0xc, 0xda6d0\nBGE             loc_DA6F4                                              ; +0x10, 0xda6d4\nVLDR            S14, =-1.0                                             ; +0x14, 0xda6d8\nVCMPE.F32       S15, S14                                               ; +0x18, 0xda6dc\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1c, 0xda6e0\nVSTRLS          S14, [R0]                                              ; +0x20, 0xda6e4\nMOVLS           R0, #0xFFFFFFFC                                        ; +0x24, 0xda6e8\nMOVHI           R0, #0                                                 ; +0x28, 0xda6ec\nBX              LR                                                     ; +0x2c, 0xda6f0\nVSTR            S14, [R0]                                              ; +0x30, 0xda6f4\nMOV             R0, #0xFFFFFFFD                                        ; +0x34, 0xda6f8\nBX              LR                                                     ; +0x38, 0xda6fc", "xrefs": ["j_DSP_Saturate @ 0xe3418", "<???> @ 0x1dac", "j_DSP_Saturate @ 0xe3418", "<???> @ 0xe7270"], "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"}